
/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --brown: #845f46;
  --brown-dark: #624735;
  --cream: #ecd8cd;
  --cream-light: #f5e8df;
  --white: #ffffff;
  --text: #4d4038;
  --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.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}


/* ==========================================================
   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: space-evenly;

  list-style: none;

  font:
    500 18px Oswald,
    sans-serif;

  color: var(--cream);

  gap: 40px;
}


.menu > li {
  position: relative;
}


.menu a,
.submenu-toggle {
  transition: opacity 0.25s ease;
}


.menu a:hover,
.submenu-toggle:hover {
  opacity: 0.7;
}


.nav-booking {
  background: var(--cream);

  color: var(--brown) !important;

  padding: 8px 22px;

  border-radius: 3px;
}


/* ==========================================================
   SOUS-MENU
   ========================================================== */

.submenu-toggle {
  border: 0;
  background: none;

  color: inherit;
}


.submenu-toggle span {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  margin-left: 6px;

  position: relative;
  top: 3px;

  transition:
    transform 0.3s ease;
}


.has-submenu:hover .submenu,
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
}


.has-submenu.open
.submenu-toggle span {
  transform: rotate(180deg);
}


.submenu {
  position: absolute;

  top: calc(100% + 12px);
  left: 50%;

  transform:
    translate(-50%, -8px);

  width: 250px;

  padding: 10px;

  background: var(--brown);

  list-style: none;

  box-shadow:
    0 10px 25px #0003;

  border-radius: 4px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}


.submenu a {
  display: block;

  padding: 9px 12px;
}


/* ==========================================================
   PAGE EN CONSTRUCTION
   ========================================================== */

.construction {

  position: relative;

  min-height:
    calc(100vh - 76px);

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: var(--cream);
}


/* ==========================================================
   CONTENU CENTRAL
   ========================================================== */

.construction-content {

  position: relative;

  z-index: 2;

  width: min(
    700px,
    calc(100% - 40px)
  );

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}


/* ==========================================================
   COLIBRI
   ========================================================== */

.construction-bird {

  width: clamp(
    150px,
    20vw,
    260px
  );

  height: auto;

  margin-bottom: 25px;

  object-fit: contain;

  animation:
    construction-bird-float
    5s ease-in-out infinite;
}


@keyframes construction-bird-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

}


/* ==========================================================
   TITRE
   ========================================================== */

.construction h1 {

  color: var(--brown);

  font-family: Oswald, sans-serif;

  font-size:
    clamp(
      2.5rem,
      6vw,
      5rem
    );

  font-weight: 500;

  line-height: 1.05;

  letter-spacing: 0.03em;
}


/* ==========================================================
   PETITE LIGNE
   ========================================================== */

.construction-line {

  display: block;

  width: 50px;
  height: 4px;

  margin: 22px auto;

  background: var(--brown);

  border-radius: 999px;
}


/* ==========================================================
   TEXTE
   ========================================================== */

.construction p {

  max-width: 550px;

  color: var(--text);

  font-family: Montserrat, sans-serif;

  font-size:
    clamp(
      0.95rem,
      1.5vw,
      1.1rem
    );

  line-height: 1.8;
}


/* ==========================================================
   BOUTON
   ========================================================== */

.construction-button {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  margin-top: 30px;

  padding: 12px 28px;

  border:
    1px solid var(--brown);

  border-radius: 4px;

  background: var(--brown);

  color: var(--cream);

  font-family: Montserrat, sans-serif;

  font-size: 15px;

  font-weight: 600;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}


.construction-button:hover {

  background:
    var(--brown-dark);

  box-shadow:
    0 7px 15px rgba(0, 0, 0, 0.14);

  transform:
    translateY(-2px);
}


/* ==========================================================
   DÉCORATIONS STEM
   ========================================================== */

.construction-stem {

  position: absolute;

  width: clamp(
    50px,
    10vw,
    130px
  );

  height: 360px;

  background:
    url("../img/stem.png")
    center / contain
    no-repeat;

  opacity: 0.85;

  pointer-events: none;
}


.construction-stem-left {

  left: 2%;

  top: 10%;

  transform:
    rotate(270deg);
}


.construction-stem-right {

  right: 2%;

  bottom: 5%;

  transform:
    rotate(90deg);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {

  width: 100%;

  background: var(--brown);

  color: var(--cream);

  padding:
    28px 25px 18px;

  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;
  justify-content: center;

  flex-wrap: wrap;

  gap: 12px 28px;
}


.footer-links a {

  position: relative;

  color: var(--cream);

  font-size: 13px;

  line-height: 1.5;

  transition:
    opacity 0.25s ease;
}


.footer-links a::after {

  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -5px;

  height: 1px;

  background: var(--cream);

  transform:
    scaleX(0);

  transform-origin: center;

  transition:
    transform 0.25s ease;
}


.footer-links a:hover {
  opacity: 0.75;
}


.footer-links a:hover::after {
  transform: scaleX(1);
}


/* ==========================================================
   RÉSEAUX
   ========================================================== */

.socials {

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 11px;
}


.socials a {

  width: 36px;
  height: 36px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(236, 216, 205, 0.75);

  border-radius: 50%;

  color: var(--cream);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


.socials ion-icon {

  font-size: 19px;

  pointer-events: none;
}


.socials a:hover {

  background: var(--cream);

  color: var(--brown);

  transform:
    translateY(-3px);
}


/* ==========================================================
   BAS DU FOOTER
   ========================================================== */

.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;

  line-height: 1.5;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 850px) {

  .nav {

    min-height: 66px;

    justify-content:
      space-between;
  }


  .brand {
    display: block;
  }


  /* --------------------------------------------------------
     BURGER
     -------------------------------------------------------- */

  .burger {

    display: block;

    position: relative;

    z-index: 1002;

    border: 0;

    background: none;

    width: 42px;
    height: 42px;

    padding: 8px;
  }


  .burger span {

    display: block;

    width: 100%;
    height: 2px;

    background: var(--cream);

    margin: 5px 0;

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }


  /* --------------------------------------------------------
     MENU MOBILE
     -------------------------------------------------------- */

  .menu {

    position: fixed;

    top: 66px;
    left: 0;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    background: var(--brown);

    padding:
      12px 22px 25px;

    transform:
      translateY(-120%);

    opacity: 0;

    visibility: hidden;

    transition:
      transform 0.4s ease,
      opacity 0.4s ease,
      visibility 0.4s ease;

    box-shadow:
      0 12px 25px #0003;
  }


  .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 → X
     -------------------------------------------------------- */

  .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);
  }


  /* --------------------------------------------------------
     SOUS-MENU MOBILE
     -------------------------------------------------------- */

  .submenu {

    position: static;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    padding: 0;
    margin: 0;

    background:
      var(--brown-dark);

    transform: none;

    opacity: 1;

    visibility: visible;

    box-shadow: none;

    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
  }


  .has-submenu.open
  .submenu {

    max-height: 150px;

    padding: 5px 0;
  }


  .submenu a {

    display: block;

    padding: 10px 15px;

    font:
      400 15px Montserrat,
      sans-serif;

    color: var(--cream);
  }


  /* --------------------------------------------------------
     PAGE CONSTRUCTION
     -------------------------------------------------------- */

  .construction {

    min-height:
      calc(100vh - 66px);
  }


  .construction-stem {

    opacity: 0.45;
  }


  .construction-stem-left {
    left: -25px;
  }


  .construction-stem-right {
    right: -25px;
  }


  .footer {

    padding:
      28px 20px 18px;
  }


  .footer-inner {

    flex-direction: column;

    gap: 22px;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 430px) {

  .container {

    width:
      calc(100% - 32px);
  }


  .construction-content {

    width:
      calc(100% - 32px);
  }


  .construction-bird {

    width: 160px;

    margin-bottom: 20px;
  }


  .construction h1 {

    font-size: 2.4rem;
  }


  .construction-line {

    margin:
      18px auto;
  }


  .construction p {

    font-size: 0.9rem;

    line-height: 1.7;
  }


  .construction-button {

    width: 100%;

    max-width: 280px;
  }


  .construction-stem {

    width: 70px;

    height: 220px;

    opacity: 0.3;
  }


  .footer {

    padding:
      26px 16px 16px;
  }


  .footer-links {

    flex-direction: column;

    gap: 12px;
  }


  .socials {

    gap: 10px;
  }


  .socials a {

    width: 34px;
    height: 34px;
  }


  .footer-bottom {

    margin-top: 20px;
  }

}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .construction-bird {
    animation: none;
  }

}