/* ============================================================
   layout.css — Header, footer, overlay menu, structures globales
   ============================================================ */

/* ============================================================
   SITE HEADER (navbar)
   - Position fixed, toujours au-dessus de tout (z-index nav)
   - Contient : logo (gauche) + toggle MENU/FERMER (droite)
   - Pas de bouton Réserver (validé : retiré)
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-4);
  background-color: transparent;
  transition: background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  background-color: #b776aa;     /* même mauve que l'overlay menu */
  box-shadow: none;
  padding-block: var(--space-3);
}

/* Couleur du texte du header selon le contexte :
   - sur fond sombre (hero) OU scrollé (fond mauve)  → blanc cassé
   - sur fond clair par défaut (autres pages)        → anthracite */
.site-header.is-on-dark,
.site-header.is-scrolled {
  --header-text: var(--color-bg);
}

.site-header:not(.is-on-dark):not(.is-scrolled) {
  --header-text: var(--color-ink-deepest);
}

/* Quand l'overlay est ouvert : header sur fond mauve sombre,
   texte clair forcé pour la lisibilité du toggle.
   !important sur --header-text pour battre la règle :not() ci-dessus
   qui a une spécificité plus élevée (0,3,0 vs 0,2,1). */
body.is-menu-open .site-header {
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  --header-text: var(--color-bg) !important;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

/* === Logo navbar === */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out);
}

.site-header__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-header__logo-img { height: 52px; }
}

/* Logo navbar caché quand overlay ouvert (le gros logo overlay le remplace) */
body.is-menu-open .site-header__logo {
  opacity: 0;
  visibility: hidden;
}

/* === Toggle MENU / FERMER ============================
   Police : Playwrite NZ Basic (cursive) — 28px desktop, 20px mobile
   Icône à gauche du label : 2 barres (=) qui se transforment en X.
============================================================ */
.site-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-1);
  color: var(--header-text, var(--color-ink-deepest));
  font-family: var(--font-display);
  font-size: 1.25rem;            /* 20px mobile */
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  line-height: 1;
}

@media (min-width: 768px) {
  .site-header__menu-toggle {
    font-size: 1.75rem;          /* 28px desktop */
  }
}

.site-header__menu-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
}

.site-header__menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform var(--dur-base) var(--ease-out),
              top var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.site-header__menu-icon span:nth-child(1) { top: 4px; }
.site-header__menu-icon span:nth-child(2) { top: 12px; }

[data-menu-toggle][aria-expanded="true"] .site-header__menu-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

[data-menu-toggle][aria-expanded="true"] .site-header__menu-icon span:nth-child(2) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Switch des labels MENU ↔ FERMER selon aria-expanded */
.site-header__menu-label-text--open { display: none; }
[data-menu-toggle][aria-expanded="true"] .site-header__menu-label-text--closed { display: none; }
[data-menu-toggle][aria-expanded="true"] .site-header__menu-label-text--open { display: inline; }


/* ============================================================
   OVERLAY MENU (plein écran)
   - z-index < header → toggle reste cliquable au-dessus
   - Fond mauve sombre solide
   - Layout : logo en haut, nav (gauche) + aside (droite),
     footer (legal + copy) en bas
   ============================================================ */

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-color: #b776aa;
  color: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
  overflow-y: auto;
}

.overlay-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility 0s linear 0s;
}

/* Conteneur interne : padding 80px partout (clamp mobile) + grille verticale */
.overlay-menu__container {
  min-height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 4vh, 3rem);
}

/* === Gros logo overlay (350×66 environ) === */
.overlay-menu__logo {
  display: inline-block;
  justify-self: start;
  max-width: 350px;
  width: 100%;
}

.overlay-menu__logo img {
  width: 100%;
  height: auto;
  display: block;
  /* Pas de filtre : le SVG s'affiche dans ses vraies couleurs
     (strokes anthracite + détails blancs) — lisible sur fond mauve clair */
}

/* === Corps : 2 colonnes (nav + aside) === */
.overlay-menu__body {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-content: center;
}

@media (min-width: 900px) {
  .overlay-menu__body {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* === Liste nav === */
.overlay-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 1vh, 0.75rem);
  padding: 0;
  margin: 0;
}

.overlay-menu__list a {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: clamp(2.25rem, 6vw, 4rem);   /* 36 → 64px */
  line-height: 1.15;
  color: var(--color-bg);
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.overlay-menu__list a:hover {
  color: var(--color-accent-soft);
  transform: translateX(8px);
}

/* === Aside (email / téléphone / réseaux sociaux) === */
.overlay-menu__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.overlay-menu__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.overlay-menu__label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);                /* 13px */
  font-weight: var(--fw-regular);
  color: var(--color-bg);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.overlay-menu__contact {
  font-family: var(--font-body);
  font-size: 1.25rem;                     /* 20px */
  color: var(--color-bg);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.overlay-menu__contact:hover {
  color: var(--color-accent-soft);
}

/* === Réseaux sociaux === */
.overlay-menu__social {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.overlay-menu__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
  color: var(--color-accent-deep);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.overlay-menu__social a:hover {
  transform: translateY(-2px);
  background-color: var(--color-accent-soft);
  color: var(--color-accent-deep);
}

/* === Footer overlay (legal + copyright) === */
.overlay-menu__footer {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .overlay-menu__footer {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }
}

.overlay-menu__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.overlay-menu__legal a {
  font-family: var(--font-body);
  font-size: 1.25rem;                     /* 20px */
  color: var(--color-bg);
  transition: color var(--dur-fast) var(--ease-out);
}

.overlay-menu__legal a:hover {
  color: var(--color-accent-soft);
}

.overlay-menu__copy {
  font-family: var(--font-body);
  font-size: 1rem;                        /* 16px */
  color: var(--color-bg);
  margin: 0;
  opacity: 0.8;
  text-align: left;
}

@media (min-width: 900px) {
  .overlay-menu__copy { text-align: right; }
}

/* Empêche le scroll du body quand le menu est ouvert */
body.is-menu-open {
  overflow: hidden;
}


/* ============================================================
   SITE FOOTER (pied de page sur fond mauve #b776aa)
   Structure :
     - Top : 3 colonnes (brand / Navigation / Contact)
     - Décoration : gros logo wordmark en filigrane blanc
     - Bottom : mentions / crédit / copyright
   ============================================================ */

.site-footer {
  background-color: #b776aa;                      /* mauve principal */
  color: var(--color-bg);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-8);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* === Top : grille 3 colonnes (desktop) / 1 colonne (mobile) === */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
  }
}

/* === Colonne brand (logo wordmark + tagline + CTA) === */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 460px;
}

.site-footer__logo {
  display: inline-block;
}

.site-footer__logo-img {
  height: 52px;
  width: auto;
  display: block;
  /* Pas de filtre : le SVG s'affiche dans ses vraies couleurs
     (strokes anthracite + détails blancs) — visible sur fond mauve */
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-bg);
  margin: 0;
  letter-spacing: 0;
  line-height: 1.2;
  opacity: 0.95;
}

/* CTA "Voir les disponibilités" : surcharge légère pour la bordure
   blanche au lieu de mauve (le bouton est blanc sur fond mauve) */
.site-footer__cta {
  border-color: var(--color-bg);
}
.site-footer__cta:hover {
  border-color: var(--color-bg);
}

/* === Sections Navigation + Contact === */
.site-footer__section-title {
  margin-bottom: var(--space-4);
}

/* Pill "Navigation" / "Contact" sur fond mauve :
   variante solide en mauve plus foncé pour ressortir */
.pill--solid {
  background-color: var(--color-accent-mid);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.site-footer__nav ul,
.site-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__nav a,
.site-footer__contact-list a {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-out),
              gap var(--dur-base) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.site-footer__nav a:hover,
.site-footer__contact-list a:hover {
  opacity: 1;
  color: var(--color-bg);
}

.site-footer__nav a:hover {
  gap: var(--space-2);
}

/* === Réseaux sociaux : ronds clairs avec icône mauve === */
.site-footer__social {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  padding: 0;
  margin: var(--space-4) 0 0 0;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
  color: var(--color-accent);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.site-footer__social a:hover {
  background-color: var(--color-accent-bg);
  color: var(--color-accent-deep);
  transform: translateY(-2px);
}

/* === Décoration : gros logo wordmark en filigrane blanc ===
   S'étend large sur le footer, blanc transparent pour effet watermark. */
.site-footer__decoration {
  position: relative;
  z-index: 1;
  margin-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  overflow: hidden;
}

.site-footer__decoration-img {
  width: clamp(360px, 70vw, 1200px);
  height: auto;
  /* Pas de filtre : vraies couleurs du SVG. Opacité réduite pour
     l'effet watermark (le logo reste perceptible mais discret). */
  opacity: 0.35;
}

/* === Bottom : mentions légales + crédit + copyright === */
.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-bg);
  position: relative;
  z-index: 2;
  align-items: center;
}

@media (min-width: 900px) {
  .site-footer__bottom {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-6);
  }
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.site-footer__legal a {
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.site-footer__legal a:hover {
  opacity: 1;
}

/* === Crédit créateur (Luca CRTT) === */
.site-footer__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  text-align: center;
  color: var(--color-bg);
  line-height: var(--lh-snug);
  opacity: 0.92;
}

.site-footer__credits-name {
  font-weight: var(--fw-semibold);
  color: var(--color-bg);
}

.site-footer__credits-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-success);   /* vert — contraste sur mauve */
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 12px;
  line-height: 1;
}

.site-footer__credits-tagline {
  width: 100%;
  font-size: var(--fs-xs);
  color: var(--color-bg);
  opacity: 0.75;
  display: block;
}

/* === Copyright === */
.site-footer__copy {
  margin: 0;
  text-align: left;
  color: var(--color-bg);
  opacity: 0.7;
}

@media (min-width: 900px) {
  .site-footer__copy {
    text-align: right;
  }
}

body.has-solid-header {
  padding-top: 76px;
}
