/* ==========================================================================
   Terrasse sur Embrun — feuille de style
   Architecture :
   0. @font-face (self-hosted variable fonts)
   1. Design tokens
   2. Reset / base
   3. Typography
   4. Layout primitives
   5. Components (button, card, link)
   6. Header / nav
   7. Footer
   8. Homepage sections
   9. Page templates
   10. Utilities
   11. Motion
   ========================================================================== */

/* --- 0. @font-face (self-hosted) ---------------------------------------- */
/* Satoshi : geometric sans variable (Fontshare). Titres + wordmark.
   Style modern premium type Linear / Framer / Brex. */
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/satoshi-variable.woff2') format('woff2-variations'),
       url('../fonts/satoshi-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/satoshi-variable-italic.woff2') format('woff2-variations'),
       url('../fonts/satoshi-variable-italic.woff2') format('woff2');
}
/* Inter : body, UI, nav, copy. Lisibilité optimale. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2-variations'),
       url('../fonts/inter-variable.woff2') format('woff2');
}

/* --- 1. Design tokens --------------------------------------------------- */
:root {
  /* Palette V3 — blanc dominant + gris très clair (accent sections) + vert forêt + terracotta */
  --bg:           #FCFCFB;  /* blanc cassé minimal — dominant 70%, presque pur */
  --surface:      #FFFFFF;  /* blanc pur — cards, surfaces */
  --grey-soft:    #F1F1ED;  /* gris très clair, moderne — remplace l'ancien crème */
  --grey-line:    #E5E5E0;  /* gris ligne légèrement plus marqué */
  --ink:          #1A1816;  /* vert-noir profond légèrement warm */
  --surface-dk:   #2A2724;  /* cards sur fond ink */
  --ink-soft:     #545A57;
  --ink-muted:    #8D928F;
  --accent:       #2D4A38;  /* VERT forêt — accent principal (remplace l'ancien bleu) */
  --accent-hover: #1F3527;
  --green:        #2D4A38;  /* alias — utilisé sur halo features + hero gradient */
  --warm:         #C2683A;  /* terracotta — touche chaude rare (CTA) */
  --line:         rgba(26, 24, 22, 0.09);
  --line-strong:  rgba(26, 24, 22, 0.18);
  --white:        #FFFFFF;
  /* Aliases legacy */
  --bg-alt:       var(--bg);
  --bg-deep:      var(--bg);
  --cream:        var(--grey-soft); /* compat : l'ancien token crème pointe maintenant sur le gris */
  --line-soft:    var(--line);
  /* Variants pour texte sur fond foncé */
  --cream-on-ink: rgba(251, 250, 247, 0.92);
  --cream-on-ink-muted: rgba(251, 250, 247, 0.65);
  --shadow-sm:    0 1px 2px rgba(26, 24, 22, 0.04), 0 1px 3px rgba(26, 24, 22, 0.06);
  --shadow-md:    0 4px 14px rgba(26, 24, 22, 0.07), 0 2px 5px rgba(26, 24, 22, 0.04);
  --shadow-lg:    0 30px 60px -16px rgba(26, 24, 22, 0.15);
  --shadow-card:  0 1px 0 rgba(26, 24, 22, 0.02), 0 4px 12px -2px rgba(26, 24, 22, 0.06);

  /* Typographie : Satoshi geometric sans pour titres/display (Linear/Framer), Inter pour body/UI */
  --font-display: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Échelle fluide (clamp(min, ideal, max)) */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --fs-xl:   clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-2xl:  clamp(1.5rem, 2vw + 1rem, 2rem);
  --fs-3xl:  clamp(2rem, 3vw + 1rem, 2.75rem);
  --fs-4xl:  clamp(2.25rem, 4vw + 1rem, 3.25rem);
  --fs-hero: clamp(2.75rem, 6vw + 1rem, 5.25rem);

  /* Spacing (rem) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Layout */
  --container:     1280px;
  --container-sm:  860px;
  --container-pad: clamp(1.5rem, 4vw, 4rem);
  --header-h:      76px; /* hauteur du header sticky, utilisée pour tirer les heros immersifs sous lui */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast:     150ms;
  --t-base:     250ms;
  --t-slow:     500ms;
  --t-reveal:   700ms;
}

/* --- 2. Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* min-height au lieu de height pour que body puisse grandir avec le contenu
   sans casser le sticky du header (sticky se confine au containing block du parent). */
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'kern', 'liga', 'calt', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--accent); color: var(--white); }

/* --- 3. Typography ------------------------------------------------------ */
/* Système global Hn — appliqué partout. Pas d'override de taille/poids par section ;
   seuls les changements de couleur sur fond foncé sont autorisés en override. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.04em;  line-height: 1; }
h2 { font-size: var(--fs-4xl);  font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: var(--fs-xl);   font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: var(--fs-lg);   font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; }
h5, h6 { font-size: var(--fs-md); font-weight: 500; line-height: 1.4; }

p { max-width: 65ch; }
.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}
strong { font-weight: 600; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- 4. Layout primitives ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: var(--container-sm); }

section {
  padding-block: clamp(5rem, 10vw, var(--s-10));
}
/* Sections fortes (ink, accent ou crème) : un poil plus de respiration verticale */
.features,
.location,
.discover,
.seasons,
.cta-section {
  padding-block: clamp(6rem, 12vw, 10rem);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: clamp(var(--s-7), 6vw, var(--s-8));
  max-width: 60ch;
}

/* Sur mobile : plus d'air entre les éléments des grilles + autour des cards */
@media (max-width: 720px) {
  .features__grid, .gallery__grid, .grid {
    gap: var(--s-5);
  }
  .card { padding: var(--s-7) var(--s-6); }
  .hero__meta { gap: var(--s-5); }
}

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --- 5. Components ------------------------------------------------------ */

/* Boutons — SYSTÈME UNIQUE (ne pas créer de variantes ad hoc).
   2 rôles seulement :
   · .btn            = PRIMAIRE, plein vert action. Universel (lisible sur clair ET foncé).
   · .btn--secondary = SECONDAIRE, outline. S'adapte au fond via .on-dark sur le conteneur.
   Taille : .btn--lg. Aucune autre variante de couleur (pas de --accent / --on-dark / --ghost). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  border: 1px solid transparent; /* aligne la hauteur avec le secondaire (qui a un border) */
  transition:
    background var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }
.btn--lg { padding: 0.8rem 1.6rem; font-size: var(--fs-base); }

/* Secondaire = outline. Défaut = contexte clair (texte/bord ink). */
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--secondary:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Underline link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--t-base) var(--ease);
}
.link-arrow > span {
  display: inline-block;
  transition: transform var(--t-base) var(--ease);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover > span { transform: translateX(4px); }

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition:
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  color: var(--green);
  margin-bottom: var(--s-4);
}
.card__icon i { font-size: 24px; line-height: 1; }
.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-bottom: var(--s-2);
}
.card__text {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- 6. Header / nav ---------------------------------------------------- */
/* Header ink par défaut (style maison de luxe Aman/Belmond/Six Senses).
   Sur pages avec hero immersif : transparent au chargement, ink au scroll.
   Pas de border-bottom (ça réserverait 1px et créerait un offset avec le hero
   tiré en margin-top négatif). On utilise box-shadow inset au scroll pour
   marquer la séparation sans modifier la hauteur. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 24, 22, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition:
    background var(--t-base) var(--ease),
    backdrop-filter var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: inset 0 -1px 0 rgba(251, 250, 247, 0.08);
}
/* Override : pages avec hero immersif au top → transparent, le hero monte derrière */
body.has-immersive-hero .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: var(--header-h);
}

/* Pages avec hero immersif : on tire le hero sous le header sticky pour que
   l'image bg monte derrière le header transparent (effet Aman / Belmond). */
body.has-immersive-hero .hero--immersive,
body.has-immersive-hero .destination-hero {
  margin-top: calc(var(--header-h) * -1);
}
/* Compense le margin-top négatif :
   1) min-height bumpé de header-h → zone visible conserve la hauteur cible
   2) padding-top bumpé de header-h → contenu poussé sous le header transparent
   Sans ça, le contenu paraissait collé au menu et le hero "écrasé" sur mobile. */
body.has-immersive-hero .hero--immersive {
  /* hero tiré à y=0 par le margin-top négatif → min-height = hauteur visible.
     100vh fallback puis 100dvh pour un vrai plein écran (barres navigateur mobile). */
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(clamp(6rem, 14vw, 10rem) + var(--header-h));
}
body.has-immersive-hero .destination-hero__image {
  max-height: calc(70vh + var(--header-h));
}

/* Logo : mark géométrique abstrait + wordmark Satoshi medium.
   currentColor → s'adapte au header dark/light. */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bg);
  line-height: 1;
  transition: opacity var(--t-base) var(--ease);
}
.site-logo:hover { opacity: 0.72; }
.site-logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: inherit;
}
.site-logo__mark svg { display: block; }
.site-logo__text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .site-logo { font-size: 0.95rem; gap: 0.5rem; }
  .site-logo__mark { width: 30px; height: 30px; }
  .site-logo__mark svg { width: 30px; height: 30px; }
}

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__list {
  display: flex;
  list-style: none;
  gap: var(--s-5);
  align-items: center;
  padding: 0;
  margin: 0;
}
.nav__list a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(251, 250, 247, 0.7);
  position: relative;
  padding: var(--s-2) 0;
  transition: color var(--t-base) var(--ease);
}
.nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--bg);
  transition: width var(--t-base) var(--ease);
}
.nav__list a:hover { color: var(--bg); }
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after { width: 100%; }

/* Dropdown "Découvrir" */
.nav__has-dropdown { position: relative; }
.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(251, 250, 247, 0.7);
  padding: var(--s-2) 0;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--t-base) var(--ease);
}
.nav__dropdown-trigger:hover { color: var(--bg); }
.nav__dropdown-icon {
  display: inline-flex;
  transition: transform var(--t-base) var(--ease);
}
.nav__has-dropdown:hover .nav__dropdown-icon,
.nav__has-dropdown.is-open .nav__dropdown-icon { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink);
  border: 1px solid rgba(251, 250, 247, 0.1);
  border-radius: var(--radius);
  padding: var(--s-2);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
  z-index: 50;
}
.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s, 0s, 0s;
}
.nav__dropdown a {
  display: block;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  color: rgba(251, 250, 247, 0.7);
  border-radius: var(--radius-sm);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.nav__dropdown a:hover {
  background: rgba(251, 250, 247, 0.06);
  color: var(--bg);
}
.nav__dropdown a::after { display: none; }

/* CTA Réserver dans le header — compact, plus discret */
.nav__cta {
  padding: 0.45rem 0.95rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle__bar {
  width: 22px; height: 1.5px;
  background: var(--bg);
  position: relative;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  position: absolute; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  transition: transform var(--t-base) var(--ease);
}
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after  { top: 7px; }

@media (max-width: 880px) {
  /* IMPORTANT : sur mobile on retire le backdrop-filter qui crée un "containing block"
     pour les enfants en position:fixed → empêche le menu de couvrir le viewport. */
  .site-header {
    background: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Override transparent sur mobile pour les pages immersives au top */
  body.has-immersive-hero .site-header:not(.is-scrolled) {
    background: transparent;
  }
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 100; /* reste cliquable au-dessus du menu ouvert */
  }
  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    z-index: 80;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(76px + var(--s-7)) var(--container-pad) var(--s-7);
    gap: var(--s-5);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  }
  .nav__list a {
    font-size: var(--fs-xl);
    font-family: var(--font-display);
    color: var(--bg);
  }

  /* Dropdown "Découvrir" en mobile : tout déplié, pas de toggle */
  .nav__has-dropdown { width: 100%; }
  .nav__dropdown-trigger {
    font-size: var(--fs-xl);
    font-family: var(--font-display);
    color: var(--bg);
    cursor: default;
    padding: 0;
  }
  .nav__dropdown-icon { display: none; }
  .nav__dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: var(--s-3) 0 0 0;
    margin: 0;
    min-width: 0;
    transition: none;
  }
  .nav__dropdown a {
    font-size: var(--fs-md);
    font-family: var(--font-body);
    color: rgba(251, 250, 247, 0.7);
    padding: var(--s-2) var(--s-4);
    border-left: 2px solid rgba(251, 250, 247, 0.15);
    border-radius: 0;
  }
  .nav__dropdown a:hover {
    background: transparent;
    color: var(--bg);
    border-left-color: var(--bg);
  }

  .nav.is-open .nav__list { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav.is-open .nav-toggle__bar { background: transparent; }
  .nav.is-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); background: var(--bg); }
  .nav.is-open .nav-toggle__bar::after  { transform: translateY(-7px) rotate(-45deg); background: var(--bg); }

  /* CTA Réserver dans le drawer mobile — fixé en bas, visible uniquement quand le menu est ouvert */
  .nav__cta { display: none; }
  .nav.is-open .nav__cta {
    display: inline-flex;
    position: fixed;
    bottom: var(--s-6);
    left: var(--container-pad);
    right: var(--container-pad);
    width: auto;
    padding: 0.85rem var(--s-5);
    font-size: var(--fs-base);
    z-index: 91;
    justify-content: center;
  }
}

/* --- 7. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg-alt);
  padding-block: clamp(6rem, 10vw, 9rem) var(--s-7);
}
.site-footer__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  margin-bottom: var(--s-9);
}
.site-footer__col--brand p:first-of-type { margin-bottom: var(--s-3); }
.site-footer h3 {
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.site-footer p, .site-footer li, .site-footer a {
  font-size: var(--fs-sm);
  color: rgba(251, 250, 247, 0.72);
  line-height: 1.7;
}
.site-footer a { transition: color var(--t-base) var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer__brand {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--bg);
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(251, 250, 247, 0.1);
  font-size: var(--fs-xs);
  color: rgba(251, 250, 247, 0.5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
ul.site-footer__legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-3);
  align-items: center;
}
.site-footer__legal li { display: flex; align-items: center; gap: var(--s-3); }
.site-footer__legal li + li::before {
  content: '·';
  color: rgba(251, 250, 247, 0.3);
}
.site-footer__legal a {
  font-size: var(--fs-xs);
  color: rgba(251, 250, 247, 0.5);
}
.site-footer__legal a:hover { color: var(--white); }

@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { justify-content: flex-start; }
}

/* --- 8. Homepage sections ----------------------------------------------- */

/* HERO IMMERSIF — image full-bleed, overlay sombre, contenu centré.
   Style Aman / Six Senses / Aesop : minimaliste premium, éditorial. */
.hero--immersive {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(6rem, 14vw, 10rem);
  isolation: isolate;
}
.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(26, 24, 22, 0.48) 0%,
      rgba(26, 24, 22, 0.55) 45%,
      rgba(26, 24, 22, 0.72) 100%
    ),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26, 24, 22, 0.18), transparent 70%);
}
.hero--immersive .container {
  position: relative;
  z-index: 2;
}
.hero__content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  color: var(--bg);
}
.hero--immersive h1 {
  color: var(--bg);
  margin-bottom: var(--s-5);
}
.hero--immersive h1 em {
  font-style: italic;
  color: var(--bg);
}
.hero__lead {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: rgba(251, 250, 247, 0.86);
  margin: 0 auto var(--s-7);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}
.eyebrow--on-dark { color: rgba(251, 250, 247, 0.85); margin-bottom: var(--s-4); }
.eyebrow--on-dark::before { background: rgba(251, 250, 247, 0.85); }

/* Contexte fond foncé : SEUL le secondaire change (passe en crème).
   Le primaire vert reste identique partout. On pose .on-dark sur le conteneur
   des boutons (.hero__actions, .cta__actions…), pas sur chaque bouton. */
.on-dark .btn--secondary {
  color: var(--bg);
  border-color: rgba(251, 250, 247, 0.4);
}
.on-dark .btn--secondary:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

/* Meta bar éditoriale en bas du hero */
.hero__meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s-4), 3vw, var(--s-7));
  margin-top: clamp(4rem, 10vw, 6rem);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(251, 250, 247, 0.18);
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}
.hero__meta-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(251, 250, 247, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__meta-value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--bg);
  letter-spacing: -0.015em;
}
.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(251, 250, 247, 0.22);
}

@media (max-width: 720px) {
  .hero--immersive { min-height: 100vh; min-height: 100dvh; }
  body.has-immersive-hero .hero--immersive { min-height: 100vh; min-height: 100dvh; }
  .hero__meta-bar { gap: var(--s-4); }
  .hero__meta-divider { display: none; }
  .hero__meta-item { flex: 1 1 calc(50% - var(--s-4)); }
}

/* INTRO / about */
.intro {
  background: var(--bg-alt);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--s-8);
  align-items: start;
}
.intro__text p + p { margin-top: var(--s-4); }
.intro__text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.9;
  float: left;
  padding-right: var(--s-3);
  padding-top: var(--s-1);
  color: var(--accent);
}
@media (max-width: 880px) {
  .intro__grid { grid-template-columns: 1fr; }
}

/* FEATURES — ★ Section forte INK */
.features {
  background: var(--ink);
  color: var(--cream-on-ink);
  position: relative;
  overflow: hidden;
}
.features .container { position: relative; z-index: 1; }
.features .section-head h2 { color: var(--bg); }
.features .lead { color: var(--cream-on-ink-muted); }
.features .eyebrow { color: var(--cream-on-ink); }
.features .eyebrow::before { background: var(--cream-on-ink); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  counter-reset: feature;
}

/* Cards sombres sur fond ink */
.features .card {
  background: var(--surface-dk);
  border-color: rgba(255, 255, 255, 0.06);
  position: relative;
  counter-increment: feature;
}
.features .card::after {
  /* Numéro éditorial 01 · 02 · 03 ... en haut à droite */
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(251, 250, 247, 0.35);
}
.features .card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  /* pas de background change → évite la confusion avec le fond du picto */
}
.features .card__title { color: var(--bg); }
.features .card__text { color: var(--cream-on-ink-muted); }
.features .card__icon {
  background: rgba(45, 74, 56, 0.18);
  color: #9DBA9F;
}

/* TEMPO — section transitionnelle gris clair, 3 cards éditoriales */
.tempo {
  background: var(--grey-soft);
}
.tempo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.tempo__item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.tempo__item:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tempo__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink) 100%);
}
.tempo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.tempo__item:hover .tempo__image img {
  transform: scale(1.04);
}
.tempo__content {
  padding: var(--s-6);
  flex-grow: 1;
}
.tempo__time {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.tempo__item h3 { margin-bottom: var(--s-2); }
.tempo__item p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 880px) {
  .tempo__grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* SEASONS — 4 colonnes éditoriales, style épuré façon revue */
.seasons {
  background: var(--bg);
}
.seasons__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.seasons__item {
  padding-top: var(--s-5);
  border-top: 1.5px solid var(--ink);
}
.seasons__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grey-soft);
  color: var(--accent);
  margin-bottom: var(--s-4);
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.seasons__icon i {
  font-size: 28px;
  line-height: 1;
}
.seasons__item:hover .seasons__icon {
  transform: scale(1.06);
}
/* Teintes saisonnières discrètes sur le picto */
.seasons__item--spring .seasons__icon { color: #5B8D6C; background: rgba(91, 141, 108, 0.10); }
.seasons__item--summer .seasons__icon { color: #D9A521; background: rgba(217, 165, 33, 0.14); }
.seasons__item--autumn .seasons__icon { color: #B8722D; background: rgba(184, 114, 45, 0.12); }
.seasons__item--winter .seasons__icon { color: #4A6E80; background: rgba(74, 110, 128, 0.12); }
.seasons__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.seasons__item h3 { margin-bottom: var(--s-3); }
.seasons__item p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1024px) {
  .seasons__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
}
@media (max-width: 540px) {
  .seasons__grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* GALLERY */
.gallery {
  background: var(--bg-deep);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-3);
}
.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* DA placeholder unifiée avec .apt-visual : gradient clair + picto Phosphor centré. */
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(45, 74, 56, 0.15), transparent 70%),
    linear-gradient(135deg, var(--grey-soft) 0%, #E5E5DE 100%);
  border: 1px solid var(--line-soft);
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(45, 74, 56, 0.32);
  transition: transform var(--t-base) var(--ease);
}
.gallery__item i {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.gallery__item:has(img) i { display: none; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--wide   { grid-column: span 8; aspect-ratio: 16 / 9; }
.gallery__item--square { grid-column: span 4; }
.gallery__item--tall   { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery__item--med    { grid-column: span 8; aspect-ratio: 16 / 9; }

@media (max-width: 720px) {
  .gallery__item,
  .gallery__item--wide,
  .gallery__item--square,
  .gallery__item--tall,
  .gallery__item--med { grid-column: span 12; aspect-ratio: 4 / 3; }
}
.gallery__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s-7);
}

/* LOCATION — section forte ACCENT bleu lac */
.location {
  background: var(--accent);
  color: var(--cream-on-ink);
  position: relative;
  overflow: hidden;
}
.location::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(251, 250, 247, 0.06), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(26, 24, 22, 0.18), transparent 60%);
  pointer-events: none;
}
.location .container { position: relative; z-index: 1; }
.location h2 { color: var(--bg); }
.location .lead { color: rgba(251, 250, 247, 0.85); }
.location .eyebrow { color: rgba(251, 250, 247, 0.92); }
.location .eyebrow::before { background: rgba(251, 250, 247, 0.92); }

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-7);
  align-items: center;
}
.location__map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(251, 250, 247, 0.18);
  background: rgba(26, 24, 22, 0.2);
  box-shadow: var(--shadow-lg);
}
.location__map iframe {
  width: 100%; height: 100%;
  border: 0;
}
.location__list {
  list-style: none;
  padding: 0;
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.location__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(251, 250, 247, 0.14);
  color: var(--bg);
}
.location__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.location__list li strong { font-weight: 500; color: var(--bg); }
.location__list li span { font-size: var(--fs-sm); color: rgba(251, 250, 247, 0.65); }
@media (max-width: 880px) {
  .location__grid { grid-template-columns: 1fr; }
}

/* CTA RÉSERVATION — image panoramique vallée + overlay foncé + accent terracotta */
.cta-section {
  background:
    url('../img/embrun/embrun-vue-panoramique-vallee.jpg') center 30% / cover no-repeat,
    var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  /* Voile foncé uniforme pour lecture du texte */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 24, 22, 0.82) 0%, rgba(26, 24, 22, 0.78) 100%);
  pointer-events: none;
  z-index: 0;
}
.cta {
  background: transparent;
  color: var(--bg);
  padding: 0;
  position: relative;
  z-index: 1;
}
.cta__inner {
  position: relative;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.cta h2 {
  color: var(--bg);
  margin-bottom: var(--s-4);
}
.cta p {
  color: rgba(251, 250, 247, 0.78);
  font-size: var(--fs-lg);
  margin: 0 auto var(--s-6);
  max-width: 50ch;
}
.cta__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}
/* (boutons CTA : gérés par le système global — primaire vert + .on-dark sur .cta__actions) */

/* Eyebrow lisible sur fond foncé du CTA */
.cta .eyebrow { color: rgba(251, 250, 247, 0.85); }
.cta .eyebrow::before { background: rgba(251, 250, 247, 0.85); }

/* DÉCOUVRIR EMBRUN — ★ Section forte CRÈME (moment refuge chaud) */
.discover {
  background: var(--cream);
  position: relative;
}
.discover__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.discover__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition:
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.discover__card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.discover__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink) 100%);
}
.discover__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.discover__card:hover .discover__image img { transform: scale(1.04); }
.discover__content {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.discover__meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.discover__content h3 { margin: 0; }
.discover__content p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* PAGE DESTINATION (Lac, Cathédrale, Parc, Stations) */
.destination-hero {
  position: relative;
  padding: 0;
}
.destination-hero__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}
.destination-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.destination-hero__image::after {
  /* Overlay uniforme, même formule que la section CTA, pour cohérence visuelle */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 24, 22, 0.82) 0%, rgba(26, 24, 22, 0.78) 100%);
}
.destination-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-7) var(--container-pad);
  z-index: 2;
  color: var(--bg);
  max-width: var(--container);
  margin-inline: auto;
}
.destination-hero__content .eyebrow { color: rgba(251, 250, 247, 0.85); margin-bottom: var(--s-3); }
.destination-hero__content .eyebrow::before { background: rgba(251, 250, 247, 0.85); }
.destination-hero__content h1 {
  color: var(--bg);
  margin-bottom: var(--s-4);
  max-width: 22ch;
}
.destination-hero__content .lead {
  color: rgba(251, 250, 247, 0.92);
  font-size: var(--fs-lg);
  max-width: 60ch;
}

.destination-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.destination-main h2 { margin-top: 0; margin-bottom: var(--s-4); }
.destination-main h2:not(:first-child) { margin-top: var(--s-7); }
.destination-main p { font-size: var(--fs-md); color: var(--ink-soft); margin-bottom: var(--s-3); }
.destination-main p strong { color: var(--ink); }
.destination-main ul {
  padding-left: var(--s-5);
  color: var(--ink-soft);
  font-size: var(--fs-md);
  margin-bottom: var(--s-4);
}
.destination-main ul li { margin-bottom: var(--s-2); }
.destination-main figure {
  margin: var(--s-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.destination-main figure img { width: 100%; height: auto; display: block; }
.destination-main figure figcaption {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-top: var(--s-2);
  text-align: center;
  font-style: italic;
}

.destination-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(76px + var(--s-4));
}
.destination-aside h3 { margin-bottom: var(--s-4); }
.destination-aside dl {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.destination-aside dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}
.destination-aside dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.destination-aside dt {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.destination-aside dd { color: var(--ink); font-size: var(--fs-md); font-weight: 500; }
.destination-aside__cta {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  .destination-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .destination-aside { position: static; }
  /* min-height force une hauteur visible cohérente quand l'aspect-ratio donnerait
     une image trop petite (~280px sur mobile à 375px de large). */
  .destination-hero__image { aspect-ratio: 4 / 3; max-height: 60vh; min-height: 60vh; }
  body.has-immersive-hero .destination-hero__image {
    max-height: calc(60vh + var(--header-h));
    min-height: calc(60vh + var(--header-h));
  }
  .destination-hero__content { padding: var(--s-5) var(--container-pad); }
}

/* FAQ teaser */
.faq-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-7);
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: var(--s-2); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-4);
}
.faq-item:last-child { border-bottom: 0; }
.faq-item__q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--t-base) var(--ease);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--accent); }
.faq-item__icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: grid; place-items: center;
  transition: transform var(--t-base) var(--ease);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: var(--fs-md);
}
.faq-item__a p { padding-top: var(--s-3); }

@media (max-width: 880px) {
  .faq-teaser__grid { grid-template-columns: 1fr; }
}

/* --- 9. Page templates -------------------------------------------------- */
.page-hero {
  padding-block: clamp(var(--s-8), 8vw, var(--s-10)) var(--s-7);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.page-content {
  background: var(--bg);
}
.page-hero__eyebrow { margin-bottom: var(--s-3); }
.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero__lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 55ch;
}

.page-content {
  padding-block: var(--s-8);
}
.page-content .container--narrow > * + * { margin-top: var(--s-4); }
.page-content h2 { margin-top: var(--s-7); margin-bottom: var(--s-3); }
.page-content h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.page-content p { font-size: var(--fs-md); color: var(--ink-soft); }
.page-content p strong { color: var(--ink); }
.page-content ul, .page-content ol {
  padding-left: var(--s-5);
  color: var(--ink-soft);
  font-size: var(--fs-md);
}
.page-content ul li, .page-content ol li { margin-bottom: var(--s-2); }
.page-content a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--t-base) var(--ease);
}
.page-content a:not(.btn):hover { color: var(--accent-hover); }

/* --- Page /appartement -------------------------------------------------- */
/* Visual placeholder commun (cards image "à venir") */
.apt-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(45, 74, 56, 0.15), transparent 70%),
    linear-gradient(135deg, var(--grey-soft) 0%, #E5E5DE 100%);
  display: grid;
  place-items: center;
  color: rgba(45, 74, 56, 0.32);
  border: 1px solid var(--line-soft);
}
.apt-visual i {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
}
.apt-visual--md { aspect-ratio: 4 / 3; }
.apt-visual--dark {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(251, 250, 247, 0.06), transparent 70%),
    linear-gradient(135deg, #2A2724 0%, #1F1D1B 100%);
  color: rgba(251, 250, 247, 0.28);
  border-color: rgba(255, 255, 255, 0.05);
}
.apt-visual--wide {
  aspect-ratio: 16 / 10;
}
/* Vraies photos : couvrent le placeholder, l'icône Phosphor se masque via :has(img). */
.apt-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.apt-visual:has(img) i { display: none; }
.apt-space:hover .apt-visual img,
.apt-interior__item:hover .apt-visual img,
.apt-room:hover .apt-visual img { transform: scale(1.04); }

.apt-spaces { background: var(--bg); padding-block: clamp(5rem, 10vw, var(--s-10)); }
.apt-spaces__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-7);
}
.apt-space {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.apt-space__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.apt-space__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: var(--s-1);
}
.apt-space p {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.65;
  max-width: 60ch;
}
@media (max-width: 880px) {
  .apt-spaces__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

.apt-interior { background: var(--grey-soft); padding-block: clamp(5rem, 10vw, var(--s-10)); }
.apt-interior__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.apt-interior__item .apt-visual {
  margin-bottom: var(--s-4);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(45, 74, 56, 0.15), transparent 70%),
    linear-gradient(135deg, var(--white) 0%, #EDEDE6 100%);
}
.apt-interior__item h3 { margin-bottom: var(--s-3); }
.apt-interior__item p {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.65;
}
@media (max-width: 880px) {
  .apt-interior__grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

.apt-rooms {
  background: var(--ink);
  color: var(--cream-on-ink);
  padding-block: clamp(6rem, 12vw, 10rem);
}
.apt-rooms .section-head h2 { color: var(--bg); }
.apt-rooms .lead { color: var(--cream-on-ink-muted); }
.apt-rooms .eyebrow { color: var(--cream-on-ink); }
.apt-rooms .eyebrow::before { background: var(--cream-on-ink); }
.apt-rooms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.apt-room {
  background: var(--surface-dk);
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.apt-room .apt-visual {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  aspect-ratio: 16 / 10;
}
.apt-room__body {
  padding: var(--s-7);
}
.apt-room__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.85);
  margin-bottom: var(--s-4);
}
.apt-room h3 {
  color: var(--bg);
  margin-bottom: var(--s-5);
}
.apt-room ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.apt-room li {
  color: var(--cream-on-ink-muted);
  font-size: var(--fs-md);
  padding-left: var(--s-5);
  position: relative;
}
.apt-room li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 1px;
  background: rgba(251, 250, 247, 0.45);
}
@media (max-width: 880px) {
  .apt-rooms__grid { grid-template-columns: 1fr; }
  .apt-room__body { padding: var(--s-6); }
}

.apt-comfort { background: var(--bg); padding-block: clamp(5rem, 10vw, var(--s-10)); }
.apt-comfort__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-8);
  align-items: start;
}
.apt-comfort__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.apt-comfort__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.apt-comfort__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.apt-comfort__list strong { font-weight: 500; color: var(--ink); }
.apt-comfort__list span {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  text-align: right;
}
@media (max-width: 880px) {
  .apt-comfort__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

.apt-garage {
  background: var(--grey-soft);
  padding-block: clamp(5rem, 10vw, var(--s-10));
}
.apt-garage__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.apt-garage__content .eyebrow {
  margin-bottom: var(--s-3);
}
.apt-garage h2 { margin-bottom: var(--s-4); }
.apt-garage p {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 55ch;
}
@media (max-width: 880px) {
  .apt-garage__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Contact form (utilisé aussi sur page réservation).
   Padding aligné sur .reservation-aside / .destination-aside (var(--s-6)) pour cohérence inter-cards. */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--white);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}
@media (max-width: 600px) {
  .contact-form { padding: var(--s-5); }
}
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field label {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem var(--s-4);
  background: var(--bg);
  /* 16px explicite : empêche iOS Safari de zoomer au focus sur mobile (seuil natif iOS). */
  font-size: 1rem;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--white);
  outline: 0;
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }

/* 404 */
.error-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-9);
}
.error-404 .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.9;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* --- 10. Utilities ------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-3) var(--s-4);
  z-index: 1000;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 0; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* --- Page Contact ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-info h3 { margin-bottom: var(--s-3); }
.contact-info p, .contact-info a {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  line-height: 1.7;
}
.contact-info a { color: var(--accent); }
.contact-info a:hover { color: var(--accent-hover); }
.contact-info + .contact-info { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line-soft); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  margin-bottom: var(--s-5);
  font-size: var(--fs-md);
  font-weight: 500;
}
.form-message--success {
  background: rgba(45, 74, 56, 0.08);
  border: 1px solid rgba(45, 74, 56, 0.2);
  color: var(--accent);
}
.form-message--error {
  background: rgba(176, 47, 47, 0.06);
  border: 1px solid rgba(176, 47, 47, 0.2);
  color: #8B2C2C;
}

.form-submit { margin-top: var(--s-3); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* --- Page Réservation --------------------------------------------------- */
.reservation-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.reservation-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(76px + var(--s-4));
}
.reservation-aside h3 { margin-bottom: var(--s-4); }
.reservation-aside dl {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.reservation-aside dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}
.reservation-aside dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.reservation-aside dt { color: var(--ink-muted); }
.reservation-aside dd { color: var(--ink); font-weight: 500; }
.reservation-aside__cta {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.reservation-aside__cta a {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-1);
}
.reservation-aside__cta small {
  display: block;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .reservation-grid { grid-template-columns: 1fr; }
  .reservation-aside { position: static; }
}

/* --- Page FAQ ----------------------------------------------------------- */
.faq-section { padding-block: var(--s-7); }
.faq-section + .faq-section { border-top: 1px solid var(--line-soft); }
/* Chapeau de section : numéro éditorial + titre + descriptif. Donne du corps
   au titre (sinon "sec"/flottant dans la colonne) sans toucher à la taille H2. */
.faq-section__head { margin-bottom: var(--s-6); }
.faq-section__head .eyebrow { margin-bottom: var(--s-3); }
.faq-section__head h2 { margin-bottom: var(--s-3); }
.faq-section__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 34ch;
}
.faq-section .faq-list { gap: var(--s-1); }

/* Layout 2 colonnes éditorial sur desktop : chapeau sticky à gauche, items à droite */
@media (min-width: 880px) {
  .faq-section {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2.4fr;
    column-gap: var(--s-8);
    align-items: start;
  }
  .faq-section__head {
    margin-bottom: 0;
    position: sticky;
    top: calc(76px + var(--s-5));
  }
  .faq-section .faq-list { max-width: 70ch; }
}

/* --- 11. Motion --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }

/* Désactive les reveal animations sur mobile + tablette : sur petit écran, le décalage
   se ressent comme un retard d'affichage gênant. Desktop (1025px+) les garde. */
@media (max-width: 1024px) {
  .reveal,
  .reveal--delay-1,
  .reveal--delay-2,
  .reveal--delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- 12. Lightbox (photos appartement) ---------------------------------- */
/* Affordance : curseur zoom + badge loupe au survol sur les photos cliquables. */
.gallery__item:has(img),
.apt-visual:has(img) { cursor: zoom-in; }

.gallery__item:has(img)::after,
.apt-visual:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-color: rgba(26, 24, 22, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='25' fill='rgba(26,24,22,0.55)'/%3E%3Cg fill='none' stroke='%23FCFCFB' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='23' cy='23' r='8'/%3E%3Cpath d='M29 29l6 6'/%3E%3Cpath d='M23 19v8M19 23h8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 52px 52px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.gallery__item:has(img):hover::after,
.apt-visual:has(img):hover::after,
.gallery__item:has(img):focus-within::after,
.apt-visual:has(img):focus-within::after { opacity: 1; }

/* L'image reste au-dessus du gradient placeholder mais sous le badge ::after.
   NB : .apt-visual img garde son position:absolute défini plus haut — on n'ajoute que le z-index. */
.gallery__item img { position: relative; z-index: 1; }
.apt-visual img { z-index: 1; }

/* Overlay plein écran */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(15, 14, 13, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base) var(--ease);
}
.lightbox__figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform var(--t-base) var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__caption {
  color: rgba(252, 250, 247, 0.78);
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: center;
  max-width: 62ch;
}
.lightbox__caption[hidden] { display: none; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  background: rgba(252, 250, 247, 0.10);
  color: #FCFCFB;
  border: 1px solid rgba(252, 250, 247, 0.18);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(252, 250, 247, 0.22); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid #FCFCFB; outline-offset: 2px; }
.lightbox__close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px;
}
.lightbox__nav {
  top: 50%;
  width: 52px; height: 52px;
  transform: translateY(-50%);
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 2rem); }
.lightbox__nav[hidden] { display: none; }

@media (max-width: 600px) {
  .lightbox__img { max-height: 74vh; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__close { width: 44px; height: 44px; }
}
