/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --brown: #845f46;
  --brown-dark: #624735;
  --cream: #ecd8cd;
  --cream-light: #f7eee9;
  --text: #4d4038;
  --white: #ffffff;

  --max: 1200px;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family:
    Montserrat,
    Arial,
    sans-serif;

  color: var(--text);

  background:
    var(--cream-light);

  line-height: 1.7;
}


a {
  color: inherit;
  text-decoration: none;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.container {

  width:
    min(
      var(--max),
      calc(100% - 48px)
    );

  margin: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.header {

  position: sticky;

  top: 0;

  z-index: 1000;

  background:
    var(--brown);

  box-shadow:
    0 2px 12px #0002;
}


.nav {

  min-height: 76px;

  display: flex;

  align-items: center;
  justify-content: center;
}


.brand {

  display: none;

  color: var(--cream);

  font:
    500 18px Oswald,
    sans-serif;
}


.menu {

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 40px;

  list-style: none;

  color: var(--cream);

  font:
    500 18px Oswald,
    sans-serif;
}


.menu > li {
  position: relative;
}


.menu a,
.submenu-toggle {

  transition:
    opacity 0.25s ease;
}


.menu a:hover,
.submenu-toggle:hover {

  opacity: 0.7;
}


.nav-booking {

  padding:
    8px 22px;

  background:
    var(--cream);

  color:
    var(--brown) !important;

  border-radius: 3px;
}


/* ==========================================================
   SOUS-MENU
   ========================================================== */

.submenu-toggle {

  border: 0;

  background: none;

  color: inherit;

  font: inherit;
}


.submenu-toggle span {

  display: inline-block;

  margin-left: 5px;

  transition:
    transform 0.3s ease;
}


.submenu {

  position: absolute;

  top: calc(100% + 12px);

  left: 50%;

  transform:
    translate(-50%, -8px);

  width: 250px;

  padding: 10px;

  list-style: none;

  background:
    var(--brown);

  border-radius: 4px;

  box-shadow:
    0 10px 25px #0003;

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}


.has-submenu:hover .submenu,
.has-submenu.open .submenu {

  opacity: 1;

  visibility: visible;
}


.has-submenu.open
.submenu-toggle span {

  transform:
    rotate(180deg);
}


.submenu a {

  display: block;

  padding:
    9px 12px;
}


/* ==========================================================
   PAGE JURIDIQUE
   ========================================================== */

.legal-page {

  min-height:
    calc(100vh - 76px);

  padding:
    70px 20px 90px;

  background:
    var(--cream-light);
}


.legal-container {

  width:
    min(
      900px,
      100%
    );

  margin:
    0 auto;

  padding:
    clamp(30px, 5vw, 65px);

  background:
    var(--white);

  box-shadow:
    0 8px 30px rgba(98, 71, 53, 0.08);
}


/* ==========================================================
   TITRE
   ========================================================== */

.legal-heading {

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  margin-bottom: 45px;
}


.legal-heading img {

  width:
    clamp(
      100px,
      15vw,
      170px
    );

  height: auto;

  margin-bottom: 15px;
}


.legal-heading h1 {

  color:
    var(--brown);

  font:
    500 clamp(
      2rem,
      5vw,
      3.5rem
    )
    Oswald,
    sans-serif;

  line-height: 1.15;
}


.legal-heading span {

  display: block;

  width: 50px;
  height: 3px;

  margin-top: 20px;

  background:
    var(--brown);

  border-radius: 999px;
}


/* ==========================================================
   INTRODUCTION
   ========================================================== */

.legal-intro {

  margin-bottom: 45px;

  font-size:
    clamp(
      0.95rem,
      1.5vw,
      1.05rem
    );

  text-align: center;
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.legal-section {

  margin-bottom: 42px;
}


.legal-section h2 {

  margin-bottom: 16px;

  color:
    var(--brown);

  font:
    500 1.6rem Oswald,
    sans-serif;

  line-height: 1.3;
}


.legal-section p {

  margin-bottom: 15px;
}


.legal-section ul {

  margin:
    10px 0 20px 25px;
}


.legal-section li {

  margin-bottom: 8px;

  padding-left: 5px;
}


.legal-section a {

  color:
    var(--brown);

  text-decoration:
    underline;

  text-underline-offset:
    3px;
}


/* ==========================================================
   BOX INFORMATIONS
   ========================================================== */

.legal-box {

  margin-top: 20px;

  padding:
    22px 25px;

  background:
    var(--cream);

  border-left:
    4px solid
    var(--brown);
}


.legal-box p {

  margin-bottom: 7px;
}


.legal-box p:last-child {

  margin-bottom: 0;
}


/* ==========================================================
   DATE
   ========================================================== */

.legal-update {

  padding-top: 25px;

  border-top:
    1px solid
    rgba(132, 95, 70, 0.2);

  color:
    rgba(77, 64, 56, 0.7);

  font-size:
    0.85rem;

  text-align: right;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {

  padding:
    28px 25px 18px;

  background:
    var(--brown);

  color:
    var(--cream);

  font-family:
    Oswald,
    sans-serif;
}


.footer-inner {

  width:
    min(
      var(--max),
      100%
    );

  margin:
    0 auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 35px;
}


.footer-links {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px 28px;
}


.footer-links a {

  font-size: 13px;

  transition:
    opacity 0.25s ease;
}


.footer-links a:hover {

  opacity: 0.7;
}


.socials {

  display: flex;

  align-items: center;

  gap: 11px;
}


.socials a {

  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(236, 216, 205, 0.75);

  border-radius: 50%;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


.socials a:hover {

  background:
    var(--cream);

  color:
    var(--brown);

  transform:
    translateY(-3px);
}


.socials ion-icon {

  font-size: 19px;
}


.footer-bottom {

  width:
    min(
      var(--max),
      100%
    );

  margin:
    22px auto 0;

  padding-top:
    14px;

  border-top:
    1px solid
    rgba(236, 216, 205, 0.3);

  text-align: center;
}


.footer-bottom p {

  color:
    rgba(236, 216, 205, 0.8);

  font-family:
    Montserrat,
    sans-serif;

  font-size:
    11px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

.burger {

  display: none;

  border: 0;

  background: none;

  width: 42px;
  height: 42px;

  padding: 8px;
}


.burger span {

  display: block;

  height: 2px;

  width: 100%;

  margin: 5px 0;

  background:
    var(--cream);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


@media (max-width: 850px) {

  .nav {

    min-height: 66px;

    justify-content:
      space-between;
  }


  .brand {

    display: block;
  }


  .burger {

    display: block;
  }


  .menu {

    position: fixed;

    top: 66px;
    left: 0;

    width: 100%;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding:
      12px 22px 25px;

    background:
      var(--brown);

    transform:
      translateY(-120%);

    opacity: 0;

    visibility: hidden;

    transition:
      transform 0.4s ease,
      opacity 0.4s ease,
      visibility 0.4s ease;
  }


  .menu.open {

    transform:
      translateY(0);

    opacity: 1;

    visibility: visible;
  }


  .menu > li > a,
  .submenu-toggle {

    display: block;

    width: 100%;

    padding:
      14px 5px;

    text-align: left;

    font-size: 20px;
  }


  .nav-booking {

    margin-top: 8px;

    text-align: center !important;
  }


  .burger.open span:nth-child(1) {

    transform:
      translateY(7px)
      rotate(45deg);
  }


  .burger.open span:nth-child(2) {

    opacity: 0;
  }


  .burger.open span:nth-child(3) {

    transform:
      translateY(-7px)
      rotate(-45deg);
  }


  .submenu {

    position: static;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    padding: 0;

    background:
      var(--brown-dark);

    transform: none;

    opacity: 1;

    visibility: visible;

    box-shadow: none;

    transition:
      max-height 0.35s ease;
  }


  .has-submenu.open
  .submenu {

    max-height: 150px;

    padding:
      5px 0;
  }


  .submenu a {

    padding:
      10px 15px;

    font:
      400 15px Montserrat,
      sans-serif;
  }


  .legal-page {

    min-height:
      calc(100vh - 66px);

    padding:
      40px 14px 60px;
  }


  .legal-container {

    padding:
      30px 22px;
  }


  .legal-section {

    margin-bottom: 35px;
  }


  .legal-section h2 {

    font-size:
      1.4rem;
  }


  .legal-update {

    text-align: left;
  }


  .footer-inner {

    flex-direction: column;

    gap: 22px;

    text-align: center;
  }


  .footer-links {

    flex-direction: column;

    gap: 12px;
  }

}


@media (max-width: 430px) {

  .container {

    width:
      calc(100% - 32px);
  }


  .legal-container {

    padding:
      25px 18px;
  }


  .legal-heading h1 {

    font-size:
      2.1rem;
  }


  .legal-section h2 {

    font-size:
      1.3rem;
  }


  .legal-section {

    font-size:
      0.92rem;
  }


  .legal-box {

    padding:
      18px;
  }

}