/* =========================================================================
   Villa Azur — Mandelieu-la-Napoule
   Direction artistique « Pinède & mimosa ».

   Le vert pin porte les surfaces, l'ivoire les respirations, le mimosa —
   emblème de Mandelieu — signale l'action. La mer et le ciel viennent des
   photographies, jamais de la palette : c'est le logement qu'on regarde.

   Deux polices auto-hébergées, aucune requête tierce (CSP font-src 'self').
   ========================================================================= */

/* ---------- Polices ---------- */

@font-face {
  font-family: "Zodiak";
  src: url("/assets/fonts/Zodiak-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/Switzer-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */

:root {
  /* Palette. Le mimosa ne reçoit jamais de texte blanc : toujours --encre. */
  --pin:         oklch(0.28  0.055 165);
  --pin-deep:    oklch(0.185 0.040 168);
  --pin-soft:    oklch(0.42  0.060 163);
  --pin-line:    oklch(0.42  0.045 165 / .38);
  --ivoire:      oklch(0.985 0.002 100);
  --ivoire-2:    oklch(0.955 0.004 110);
  --encre:       oklch(0.225 0.020 165);
  --encre-doux:  oklch(0.44  0.018 165);
  --mimosa:      oklch(0.84  0.155  92);
  --mimosa-deep: oklch(0.72  0.145  88);
  --porphyre:    oklch(0.55  0.150  38);
  --line:        oklch(0.225 0.020 165 / .14);

  /* Rôles contextuels : chaque bande les redéfinit, les composants n'ont
     jamais à savoir sur quel fond ils se trouvent. */
  --surface:     var(--ivoire);
  --fg:          var(--encre);
  --fg-quiet:    var(--encre-doux);
  --rule:        var(--line);
  --focus-ring:  var(--pin);

  --serif: "Zodiak", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  "Switzer", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Échelle fluide, ratio ≈ 1,3. */
  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);
  --fs-h1:      clamp(2.2rem, 1.5rem + 3.2vw, 4rem);
  --fs-h2:      clamp(1.75rem, 1.3rem + 2vw, 2.9rem);
  --fs-h3:      clamp(1.3rem, 1.15rem + .7vw, 1.75rem);
  --fs-body:    clamp(1.02rem, .98rem + .2vw, 1.12rem);
  --fs-lede:    clamp(1.12rem, 1.02rem + .45vw, 1.35rem);
  --fs-small:   .9rem;
  --fs-micro:   .8rem;

  /* Angles francs plutôt qu'arrondis mous : registre architectural. */
  --radius-btn: 4px;
  --radius:     10px;
  --radius-img: 2px;

  --shadow-sm: 0 1px 2px oklch(0.185 0.04 168 / .06), 0 6px 18px oklch(0.185 0.04 168 / .06);
  --shadow-md: 0 12px 34px oklch(0.185 0.04 168 / .13);
  --shadow-lg: 0 30px 70px oklch(0.185 0.04 168 / .3);

  --wrap: 1240px;
  --band: clamp(4rem, 9vw, 8.5rem);   /* respiration généreuse */
  --band-tight: clamp(2.5rem, 5vw, 4.25rem);

  /* Une seule courbe, exponentielle sortante. Aucun rebond. */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur:  .62s;

  /* Échelle sémantique. Aucune valeur arbitraire ailleurs dans la feuille. */
  --z-sticky: 100;
  --z-navpanel: 110;
  --z-consent: 250;
  --z-lightbox: 300;
  --z-skip: 400;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* Réserve la gouttière de la barre de défilement : l'ouverture de la
     visionneuse (qui verrouille le défilement) ne décale plus la page. */
  scrollbar-gutter: stable;
  scrollbar-color: color-mix(in oklch, var(--pin) 45%, transparent) transparent;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--mimosa); color: var(--encre); }

input, textarea, select { caret-color: var(--pin); }

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

/* Sans cette taille de repli, un SVG hérite de la largeur de son conteneur. */
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1rem; height: 1rem; }

/* [hidden] doit l'emporter sur les display des composants. */
[hidden] { display: none !important; }

/* ---------- Typographie ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  /* Zodiak est une variable dont la graisse par défaut vaut 900 : on la fixe
     explicitement, faute de quoi tous les titres partiraient en noir. */
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--fg);
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; text-wrap: pretty; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--fg-quiet);
  max-width: 54ch;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklch, currentColor 32%, transparent);
  text-underline-offset: .2em;
  transition: text-decoration-color .18s ease, color .18s ease;
}
a:hover { text-decoration-color: currentColor; }

strong, b { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; z-index: var(--z-skip);
  transform: translate(-50%, -140%);
  background: var(--pin); color: var(--ivoire);
  padding: .85rem 1.5rem; text-decoration: none;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Structure et bandes ---------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.band { padding-block: var(--band); background: var(--surface); color: var(--fg); }
.band-tight { padding-block: var(--band-tight); }

.band-ivoire   { --surface: var(--ivoire); }
.band-ivoire-2 { --surface: var(--ivoire-2); }

.band-pin {
  --surface: var(--pin);
  --fg: var(--ivoire);
  --fg-quiet: oklch(0.84 0.020 165);
  --rule: var(--pin-line);
  --focus-ring: var(--mimosa);
  --line: var(--pin-line);
}

.band-mimosa {
  --surface: var(--mimosa);
  --fg: var(--encre);
  --fg-quiet: oklch(0.36 0.055 88);
  --rule: oklch(0.225 0.02 165 / .22);
  --focus-ring: var(--encre);
}

/* Titre de section : un intitulé, une accroche, rien de décoratif au-dessus.
   Pas de sur-titre en capitales espacées répété de section en section.
   La mesure limite le texte, pas le titre : `max-width` sur le bloc entier
   contraignait les h2 à la largeur d'un paragraphe et les coupait en deux. */
.head { margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem); }
.head-tight { margin-bottom: 1.25rem; }
.head > :is(h2, h3) { max-width: 24ch; }
.head p { color: var(--fg-quiet); font-size: var(--fs-lede); line-height: 1.5; max-width: 62ch; }
.head-wide > p { max-width: 70ch; }
.head-center { margin-inline: auto; text-align: center; }
.head-center p { margin-inline: auto; }
.head-center > :is(h2, h3) { margin-inline: auto; }

.center { text-align: center; justify-content: center; margin-inline: auto; }

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: var(--pin);
  --btn-fg: var(--ivoire);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.6rem;
  font: 500 1rem/1.2 var(--sans); letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn-primary { --btn-bg: var(--mimosa); --btn-fg: var(--encre); }
.btn-primary:hover { --btn-bg: var(--mimosa-deep); }

.btn-pin { --btn-bg: var(--pin); --btn-fg: var(--ivoire); }
.btn-pin:hover { --btn-bg: var(--pin-deep); }

.btn-quiet {
  --btn-bg: transparent; --btn-fg: var(--fg);
  --btn-bd: color-mix(in oklch, var(--fg) 28%, transparent);
}
.btn-quiet:hover { --btn-bd: var(--fg); --btn-bg: color-mix(in oklch, var(--fg) 6%, transparent); }

.btn-clear {
  --btn-bg: transparent; --btn-fg: var(--ivoire);
  --btn-bd: oklch(1 0 0 / .45);
}
.btn-clear:hover { --btn-bg: oklch(1 0 0 / .12); --btn-bd: oklch(1 0 0 / .8); }

.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0; }
.btn-row-spaced { margin-top: 2rem; }
/* `p` plafonne sa largeur et `.btn-row` remet les marges à zéro : sans cette
   règle, une rangée centrée se retrouve calée à gauche de sa colonne. */
.btn-row.center { max-width: none; justify-content: center; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer; text-align: left;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--ivoire) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), backdrop-filter .3s var(--ease);
}

/* Sur une page à héros, l'en-tête flotte au-dessus de la photo tant qu'on n'a
   pas défilé. Le voile pin du héros garantit le contraste du texte ivoire. */
body:has(.hero) .site-header {
  position: fixed; inset-inline: 0; top: 0;
  background: transparent; backdrop-filter: none;
  color: var(--ivoire);
}
body:has(.hero) .site-header .brand-sub { color: oklch(0.9 0.02 165 / .85); }
/* Sur photo, un poids un cran au-dessus compense la perte de lisibilité. */
body:has(.hero) .site-header .site-nav ul a { font-weight: 500; }
/* L'en-tête est un FRÈRE du héros, pas un descendant : il n'hérite donc pas du
   `--focus-ring` que `.hero` redéfinit, et se retrouvait avec du vert foncé
   sur une photo sombre — mesuré à 1,35:1 là où WCAG 1.4.11 exige 3:1. */
body:has(.hero) .site-header { --focus-ring: var(--mimosa); }
body:has(.hero) .site-header .nav-toggle {
  border-color: oklch(1 0 0 / .4); background: oklch(1 0 0 / .1); color: var(--ivoire);
}
body:has(.hero) .site-header .nav-toggle-bars span { background: currentColor; }

.site-header.is-scrolled,
body:has(.hero) .site-header.is-scrolled {
  background: color-mix(in oklch, var(--ivoire) 92%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  color: var(--encre);
}
body:has(.hero) .site-header.is-scrolled .brand-sub { color: var(--encre-doux); }
body:has(.hero) .site-header.is-scrolled .nav-toggle {
  border-color: var(--line); background: transparent; color: var(--encre);
}
/* Redevenu ivoire opaque, l'en-tête reprend l'anneau sombre. */
body:has(.hero) .site-header.is-scrolled { --focus-ring: var(--pin); }

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 84px;
  transition: min-height .3s var(--ease);
}
.is-scrolled .header-inner { min-height: 68px; }

.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: inherit; margin-right: auto;
  min-width: 0;
}
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-btn); background: var(--mimosa); color: var(--pin-deep);
}
.brand-icon { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  letter-spacing: -.015em; white-space: nowrap;
}
.brand-sub {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--encre-doux); font-weight: 500;
  white-space: nowrap; line-height: 1.35;
}
/* À 320 px, le lockup complet frôle le bouton de menu : resserrer le
   sous-titre de 2 px suffit à lui rendre une marge confortable. */
@media (max-width: 400px) {
  .brand-sub { font-size: .64rem; letter-spacing: .075em; }
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.9rem); }
.site-nav ul {
  display: flex; align-items: center; gap: clamp(.85rem, 1.5vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
/* Portée limitée à la liste : le bouton d'appel à l'action est un frère de
   l'`ul`, et `.site-nav a` l'emporterait sur `.btn` par spécificité — il
   perdrait ses marges intérieures et sa taille de texte. */
.site-nav ul a {
  text-decoration: none; color: inherit; font-size: .94rem; font-weight: 450;
  padding: .4rem 0; position: relative; white-space: nowrap;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--mimosa); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { font-weight: 600; }

/* Sept entrées d'un bloc dépassent la capacité de lecture immédiate. Plutôt
   que d'en masquer sous un menu déroulant — qui les rendrait moins
   découvrables — un filet sépare les pages du logement des pages d'aide :
   deux groupes de quatre et trois se parcourent mieux qu'une liste de sept. */
@media (min-width: 1200px) {
  .site-nav ul li[data-group="aide"] {
    margin-left: .5rem; padding-left: 1.1rem;
    border-left: 1px solid color-mix(in oklch, currentColor 22%, transparent);
  }
}
.btn-nav { min-height: 44px; padding: .55rem 1.15rem; font-size: .92rem; flex: none; white-space: nowrap; }

/* Sélecteur de langue : discret, mais reconnaissable au premier coup d'œil
   par un visiteur qui ne lit pas la langue de la page. */
.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  min-height: 44px; padding: .4rem .7rem;
  font-size: .88rem; font-weight: 500; white-space: nowrap;
  color: inherit; text-decoration: none;
  border-radius: var(--radius-btn);
  transition: background-color .2s var(--ease);
}
.lang-switch:hover { background: color-mix(in oklch, currentColor 10%, transparent); }
.lang-switch .icon { opacity: .8; }

/* Mention de portée : la traduction est partielle, le dire vaut mieux que de
   laisser le visiteur le découvrir en cliquant. */
.lang-note {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small); color: var(--fg-quiet); max-width: 52ch;
}
.lang-note:empty { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: transparent; color: inherit; cursor: pointer; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars span {
  display: block; width: 20px; height: 1.5px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1199px) {
  /* Le repli en panneau dépend du bouton, donc de JavaScript. Sans lui, la
     navigation reste une simple liste déroulée dans le flux : le menu
     principal ne doit jamais devenir injoignable. */
  .js .nav-toggle { display: grid; }
  /* Sans JavaScript, la navigation se déplie dans le flux. Suspendu au-dessus
     du héros, l'en-tête laisserait alors les liens et l'appel à l'action
     recouvrir le titre : il redevient un bandeau plein, dans le flux. */
  html:not(.js) body:has(.hero) .site-header {
    position: static;
    background: var(--pin);
    border-bottom-color: oklch(1 0 0 / .14);
  }
  html:not(.js) .site-nav {
    display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
    padding-block: .5rem 1rem;
  }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }
  html:not(.js) .site-nav li { border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; min-height: 0; }
  html:not(.js) .btn-nav { margin-top: 0; }

  .js .site-nav {
    position: fixed; inset: 84px 0 auto; z-index: var(--z-navpanel);
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1.25rem 1.5rem 2rem;
    background: var(--ivoire); color: var(--encre);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    /* `visibility` retire le panneau fermé de l'ordre de tabulation et de
       l'arbre d'accessibilité ; `opacity` seule le laissait focusable. */
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .28s var(--ease),
                visibility 0s linear .28s;
    max-height: calc(100dvh - 84px); overflow: auto;
    overscroll-behavior: contain;
  }
  .js .site-nav.is-open {
    transform: none; opacity: 1; pointer-events: auto; visibility: visible;
    transition: opacity .22s var(--ease), transform .28s var(--ease),
                visibility 0s;
  }
  html.nav-open, body.nav-open { overflow: hidden; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav ul a { display: block; padding: .95rem .1rem; font-size: 1.05rem; }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav .btn-nav { margin-top: 1.1rem; }
  .js .is-scrolled .site-nav { inset-block-start: 68px; }
}

/* ---------- Héros ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(94svh, 940px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  /* Les rôles sont redéfinis ici : les composants placés dans le héros
     (boutons discrets, listes) n'ont pas à savoir qu'ils sont sur du sombre. */
  color: var(--ivoire);
  --fg: var(--ivoire);
  --fg-quiet: oklch(0.88 0.015 165);
  --rule: oklch(1 0 0 / .22);
  --focus-ring: var(--mimosa);
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img, .hero-media picture { width: 100%; height: 100%; object-fit: cover; }

/* Voile pin en fusion multiplicative : la photo est teintée vers la pinède au
   lieu d'être simplement assombrie par un gris. */
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background: var(--pin); mix-blend-mode: multiply; opacity: .42;
}
/* Rampe basse : lisibilité du texte, indépendante du voile. */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, oklch(0.185 0.04 168 / .88) 0%, oklch(0.185 0.04 168 / .25) 42%, transparent 68%),
    /* La rampe haute n'est pas décorative : l'en-tête flotte au-dessus de la
       photo, et son texte ivoire doit rester lisible sur un ciel de midi. */
    linear-gradient(to bottom, oklch(0.16 0.035 168 / .72) 0%, oklch(0.16 0.035 168 / .3) 12%, transparent 26%),
    /* Rampe latérale : tout le texte du héros vit dans la colonne de gauche.
       L'assombrir garantit le contraste quelle que soit la photo publiée,
       sans ternir la moitié droite de l'image. Mesuré, pas supposé. */
    linear-gradient(to right, oklch(0.16 0.035 168 / .62) 0%, oklch(0.16 0.035 168 / .32) 40%, transparent 66%);
}
.hero-fallback {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(160deg, var(--pin-deep), var(--pin) 55%, var(--pin-soft));
}

.hero-inner {
  padding-block: clamp(9rem, 20vh, 12rem) clamp(3rem, 7vh, 5rem);
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.hero h1 {
  color: var(--ivoire);
  font-size: var(--fs-display);
  letter-spacing: -.025em;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: .35em;
}
.hero-sub {
  font-size: var(--fs-lede);
  color: oklch(0.93 0.012 165);
  max-width: 44ch;
  margin-bottom: 2.25rem;
}
.hero-place {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: oklch(0.9 0.02 165);
  margin-bottom: 1.5rem;
}
.hero-place .icon { width: 15px; height: 15px; color: var(--mimosa); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 3rem);
  margin: 0; padding: 1.75rem 0 0;
  border-top: 1px solid oklch(1 0 0 / .22);
  list-style: none;
}
.hero-fact { display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; color: oklch(0.88 0.015 165); }
.hero-fact strong {
  font-family: var(--serif); font-weight: 500; font-size: 1.5rem;
  color: var(--ivoire); letter-spacing: -.02em;
}

/* Amorce de défilement. Discrète, purement indicative. */
.hero-scroll {
  position: absolute; bottom: 1.75rem; right: max(1.25rem, calc((100vw - var(--wrap)) / 2));
  display: none; place-items: center; gap: .45rem;
  font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase;
  color: oklch(0.85 0.02 165 / .8); text-decoration: none;
}
/* L'amorce ne s'affiche que là où elle ne risque pas de heurter les chiffres
   clés du héros : au-delà de la largeur maximale du conteneur, il reste de la
   marge de chaque côté. */
@media (min-width: 1340px) { .hero-scroll { display: grid; } }
.hero-scroll .icon { width: 16px; height: 16px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); opacity: .8; }
  30%           { transform: translateY(5px); opacity: 1; }
}

/* ---------- En-tête des pages intérieures ---------- */

.page-head {
  background: var(--pin); color: var(--ivoire);
  --fg: var(--ivoire); --fg-quiet: oklch(0.84 0.02 165);
  --rule: var(--pin-line); --focus-ring: var(--mimosa);
  /* L'en-tête est collant sur ces pages, donc déjà dans le flux : la garde
     haute qui dégageait l'en-tête *fixe* de l'accueil n'a rien à faire ici et
     repoussait le titre à 281 px du haut, soit un tiers du premier écran. */
  padding-block: clamp(3rem, 5.5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

/* Variante illustrée, pour les pages où le logement doit se voir avant de se
   lire — la page de réservation au premier chef. */
.page-head-photo { position: relative; isolation: isolate; overflow: hidden; }
.page-head-photo .head-media { position: absolute; inset: 0; z-index: -3; }
.page-head-photo .head-media img,
.page-head-photo .head-media picture { width: 100%; height: 100%; object-fit: cover; }
.page-head-photo .head-veil {
  position: absolute; inset: 0; z-index: -2;
  background: var(--pin); mix-blend-mode: multiply; opacity: .52;
}
.page-head-photo .head-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, oklch(0.16 0.035 168 / .78) 0%, oklch(0.16 0.035 168 / .45) 45%, oklch(0.16 0.035 168 / .2) 100%),
    linear-gradient(to bottom, oklch(0.16 0.035 168 / .5) 0%, transparent 22%);
}
.page-head-photo { padding-block: clamp(4.5rem, 8vw, 7rem) clamp(3.5rem, 6vw, 5rem); }
.page-head h1 { color: var(--ivoire); max-width: 20ch; }
.page-head .lede { color: oklch(0.86 0.018 165); max-width: 58ch; }

.breadcrumb { font-size: var(--fs-small); color: oklch(0.78 0.02 165); margin-bottom: 1.75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .45rem; opacity: .5; }
.breadcrumb a { color: inherit; }

/* ---------- Chiffres clés ---------- */

.specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.specs li {
  display: grid; gap: .15rem;
  padding-top: 1.1rem; border-top: 1px solid var(--rule);
}
.specs strong {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1;
  letter-spacing: -.03em; color: var(--fg);
}
.specs span { font-size: var(--fs-small); color: var(--fg-quiet); }
/* Valeur textuelle (« 3e étage avec ascenseur ») : même place que les chiffres,
   sans l'échelle d'affichage qui la ferait déborder de sa colonne. */
.specs strong.spec-text { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; }

/* ---------- Blocs image + texte ---------- */

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split-reverse .split-media { order: 2; }
  /* Décalage vertical : la composition n'est pas parfaitement symétrique. */
  .split-offset .split-media { transform: translateY(-2rem); }
}
.split-media img, .split-media picture {
  border-radius: var(--radius-img);
  width: 100%;
}
.split-media picture img { aspect-ratio: 4 / 5; object-fit: cover; }
.split-media-wide picture img { aspect-ratio: 4 / 3; }

.feature-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .icon { width: 19px; height: 19px; color: var(--mimosa); flex: none; margin-top: .3rem; }
.band-ivoire .feature-list .icon,
.band-ivoire-2 .feature-list .icon { color: var(--pin-soft); }
.feature-list span { color: var(--fg-quiet); }
.feature-list strong { color: var(--fg); }

/* ---------- Raisons (« pourquoi choisir ») ----------
   Volontairement pas une grille de cartes : pas d'encadré, pas de gros
   pictogramme arrondi au-dessus de chaque titre. Du texte, de l'espace, et
   un décalage vertical qui casse la symétrie. */

.reasons { display: grid; gap: clamp(2.25rem, 4.5vw, 3.75rem); }
/* Deux colonnes exactement : le décalage vertical d'une ligne sur deux ne lit
   comme une intention que si la grille est stable. */
@media (min-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); } }
/* Pas de pictogramme au-dessus du titre : le filet de tête suffit à structurer,
   et la section reste typographique là où les voisines sont illustrées. */
.reason { max-width: 40ch; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.reason h3 { margin-bottom: .65rem; }
.reason p { color: var(--fg-quiet); }
@media (min-width: 900px) {
  .reason:nth-child(even) { transform: translateY(2.5rem); }
}

/* ---------- Repères alentour ----------
   La distance porte l'information : elle devient l'ancrage typographique. */

.landmarks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.landmark {
  display: grid; gap: .35rem 2rem; align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}
.landmarks > .landmark:last-child { border-bottom: 1px solid var(--rule); }
.landmark-dist {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem); line-height: 1.05;
  letter-spacing: -.025em; color: var(--mimosa);
  /* Toutes les valeurs ne sont pas des durées : « Toute l'année » doit pouvoir
     passer à la ligne dans sa colonne plutôt que chevaucher le titre. */
  text-wrap: balance;
}
.band-ivoire .landmark-dist, .band-ivoire-2 .landmark-dist { color: var(--pin-soft); }
.landmark h3 { margin-bottom: .35rem; }
.landmark p { color: var(--fg-quiet); margin: 0; }
@media (min-width: 760px) {
  .landmark { grid-template-columns: 8.5rem 1fr; }
  .landmark-dist { grid-row: span 2; }
}

/* ---------- Repères en ligne (accès, conditions) ---------- */

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; } }
.note { display: grid; gap: .4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.note .icon { width: 20px; height: 20px; color: var(--mimosa); }
.band-ivoire .note .icon, .band-ivoire-2 .note .icon { color: var(--pin-soft); }
.note h3 { font-size: 1.1rem; margin: .3rem 0 0; }
.note p { color: var(--fg-quiet); font-size: var(--fs-small); margin: 0; }

/* ---------- Équipements ---------- */

.amenities {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem); list-style: none; margin: 0; padding: 0;
}
.amenity {
  display: flex; align-items: center; gap: .85rem;
  padding-block: .95rem; border-top: 1px solid var(--rule);
  font-size: 1rem; color: var(--fg);
}
.amenity .icon { width: 22px; height: 22px; color: var(--mimosa); flex: none; }
.band-ivoire .amenity .icon, .band-ivoire-2 .amenity .icon { color: var(--pin-soft); }

/* ---------- Cartes (uniquement là où c'est la bonne réponse) ---------- */

.card {
  background: color-mix(in oklch, var(--fg) 4%, var(--surface));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex; flex-direction: column; gap: .8rem;
}
.card h3 { margin: 0; }
.card p { color: var(--fg-quiet); margin: 0; }
.card .btn-row { margin-top: auto; padding-top: .6rem; }

.platform-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
/* Les plateformes suivent immédiatement l'avertissement de redirection :
   c'est la même décision, elle n'a pas à être coupée par une bande vide. */
.platforms-wrap { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- Encarts d'information ---------- */

.notice {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: color-mix(in oklch, var(--fg) 5%, var(--surface));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--fg); font-size: var(--fs-small); line-height: 1.6;
}
.notice p { margin: 0; }
.notice .icon { width: 19px; height: 19px; flex: none; margin-top: .18rem; color: var(--fg-quiet); }
.notice-warn  { background: oklch(0.96 0.05 92);  border-color: oklch(0.82 0.09 90);  color: oklch(0.36 0.08 70); }
.notice-ok    { background: oklch(0.96 0.03 160); border-color: oklch(0.82 0.07 160); color: oklch(0.36 0.07 160); }
.notice-error { background: oklch(0.96 0.03 25);  border-color: oklch(0.83 0.07 27);  color: oklch(0.4 0.13 28); }
.notice-warn .icon, .notice-ok .icon, .notice-error .icon { color: currentColor; }

/* Résumé d'erreurs en tête de formulaire. Reçoit le focus au chargement, d'où
   l'anneau explicite : sans lui, la cible du focus serait invisible. */
.form-summary { margin-bottom: 2rem; }
.form-summary:focus-visible { outline-color: oklch(0.45 0.16 28); }
.form-summary strong { display: block; margin-bottom: .5rem; }
.form-summary ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .3rem; }
.form-summary a { color: inherit; text-decoration-color: currentColor; }

/* Colonne d'appoint : présente, mais typographiquement en retrait de la tâche
   principale de la page. */
.card-aside { align-self: start; }
.card-aside h3 { font-size: 1.35rem; }
.card-aside h4 { margin: 1.4rem 0 .1rem; font-size: 1.02rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.card-aside p { font-size: var(--fs-small); }
.card-aside .feature-list { margin-top: .9rem; }

/* ---------- Galerie ---------- */

.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.filter-btn {
  border: 1px solid var(--rule); background: transparent; color: var(--fg-quiet);
  border-radius: var(--radius-btn); padding: .55rem 1.05rem;
  font: 450 .9rem var(--sans); cursor: pointer; min-height: 44px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { border-color: var(--fg); color: var(--fg); }
.filter-btn[aria-pressed="true"] { background: var(--pin); border-color: var(--pin); color: var(--ivoire); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: .75rem;
}
.gallery-item { position: relative; margin: 0; }
.gallery-item.is-hidden { display: none; }
.gallery-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius-img); overflow: hidden; position: relative;
  color: inherit;
}
.gallery-btn img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.gallery-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.185 0.04 168 / .72), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-btn:hover img, .gallery-btn:focus-visible img { transform: scale(1.045); }
.gallery-btn:hover::after, .gallery-btn:focus-visible::after { opacity: 1; }
.gallery-item figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem;
  color: var(--ivoire); font-size: var(--fs-small); font-weight: 500;
  opacity: 0; transform: translateY(5px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.gallery-btn:hover + figcaption, .gallery-btn:focus-visible + figcaption { opacity: 1; transform: none; }

/* ---------- Carrousel en éventail ----------
   Deux modes. Par défaut — sans JavaScript, sur petit écran, ou en mouvement
   réduit — une bande à défilement aimanté : utilisable, indexable, tactile.
   Avec JavaScript et à partir de 900 px, la même liste devient une scène 3D. */

.fan {
  --fan-w: 520px;
  --fan-h: 340px;
  --fan-spacing: calc(var(--fan-w) * .52);   /* recouvrement 0,48 */
  --fan-step: 24deg;                          /* étalement 48° / 2 */
  --fan-depth: 140px;
  position: relative;
}

.fan-track {
  display: flex; gap: 1rem; margin: 0; padding: 0 0 1rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.fan-slide {
  flex: 0 0 min(84vw, var(--fan-w));
  scroll-snap-align: center;
}

.fan-card {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: none; cursor: zoom-in; color: inherit;
  border-radius: var(--radius-img); overflow: hidden;
  aspect-ratio: 3 / 2;
  /* Un <button> n'hérite pas de la fonte du document : sans cette ligne, la
     légende secondaire retombait sur Arial, seule dans la page. */
  font-family: var(--sans);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card::after {
  content: ""; position: absolute; inset: 0;
  /* Le voile doit couvrir toute la hauteur de la légende, pas seulement ses
     deux premiers centimètres : sur une photo claire, le texte fin passait
     sous 3:1. La zone sombre s'arrête avant le milieu de l'image. */
  background: linear-gradient(to top,
    oklch(0.145 0.03 168 / .94) 0%,
    oklch(0.145 0.03 168 / .78) 30%,
    oklch(0.145 0.03 168 / .28) 58%,
    transparent 78%);
}
.fan-caption {
  /* Au-dessus du dégradé de lisibilité : un pseudo-élément ::after est généré
     en dernier enfant, il passerait donc par-dessus la légende. */
  position: absolute; z-index: 1;
  left: 1.2rem; right: 1.2rem; bottom: 1rem;
  text-align: left; color: var(--ivoire); pointer-events: none;
}
.fan-caption strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.2;
}
/* Chromium ne crée pas de boîte de ligne pour ce span inline lorsqu'il suit
   le <strong> block dans un bouton en position absolue : la légende était
   mesurée à 0 × 0 et jamais peinte. En block, les deux navigateurs la rendent. */
.fan-caption > span {
  display: block; font-size: var(--fs-small);
  color: oklch(0.94 0.012 165); line-height: 1.35;
}

/* En bande, les cartes voisines sont tranchées net par le bord du conteneur,
   légende comprise. Un fondu de quelques pixels transforme cette coupure en
   débordement assumé, et signale au passage qu'il reste des photos à voir. */
.fan:not(.is-3d) .fan-track {
  --fade: clamp(1rem, 4vw, 3rem);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade),
                              #000 calc(100% - var(--fade)), transparent);
}

.fan-controls {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .75rem 1.25rem;
  margin-top: 1.75rem;
}
/* Une galerie fournie peut compter beaucoup de photos : la rangée de repères
   doit pouvoir passer à la ligne plutôt que pousser la page. */
.fan-dots { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.fan-dot {
  width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.fan-dot::before {
  content: ""; width: 100%; height: 2px;
  background: color-mix(in oklch, var(--fg) 25%, transparent);
  transition: background-color .3s var(--ease);
}
.fan-dot:hover::before { background: color-mix(in oklch, var(--fg) 55%, transparent); }
.fan-dot[aria-current="true"]::before { background: var(--mimosa); }
.band-ivoire .fan-dot[aria-current="true"]::before,
.band-ivoire-2 .fan-dot[aria-current="true"]::before { background: var(--pin); }

.fan-nav {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  background: transparent; color: var(--fg); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.fan-nav:hover { background: color-mix(in oklch, var(--fg) 10%, transparent); border-color: var(--fg); }
.fan-prev .icon { transform: rotate(180deg); }

/* Mode scène 3D — activé par JS, à partir de 900 px, hors mouvement réduit. */
.fan.is-3d { --fan-h: 340px; }
.fan.is-3d .fan-track {
  display: block; position: relative;
  /* Garde haute pour la carte active — elle monte de 22 px et grandit de 3 % —
     et garde basse pour les cartes latérales, qui descendent le long de l'arc.
     Sans cette dernière, elles recouvriraient les commandes. */
  height: calc(var(--fan-h) + 4.5rem);
  overflow: visible;
  perspective: 1100px;
  scroll-snap-type: none;
  padding: 0;
  touch-action: pan-y;
}
.fan.is-3d .fan-slide {
  position: absolute; left: 50%; bottom: 1.5rem;
  width: var(--fan-w); height: var(--fan-h);
  margin-left: calc(var(--fan-w) / -2);
  transform-style: preserve-3d;
  z-index: calc(100 - var(--abs, 0));
  /* Géométrie du gabarit : translation latérale + arc descendant + rotation. */
  transform:
    translate3d(
      calc(var(--off, 0) * var(--fan-spacing) + var(--drag, 0px)),
      calc(var(--abs, 0) * 10px + var(--lift, 0px)),
      0)
    rotateX(var(--tilt, 0deg))
    rotateZ(calc(var(--off, 0) * var(--fan-step)))
    scale(var(--scale, .94));
  transition: transform var(--dur) var(--ease), opacity .4s var(--ease);
  will-change: transform;
}
.fan.is-3d .fan-slide[data-state="hidden"] {
  opacity: 0; pointer-events: none;
  transform: translate3d(calc(var(--off, 0) * var(--fan-spacing)), 0, 0) scale(.9);
}
.fan.is-3d .fan-slide[data-state="active"] { --lift: -22px; --scale: 1.03; --tilt: 0deg; }
.fan.is-3d .fan-slide[data-state="near"]   { --tilt: 12deg; }
.fan.is-3d .fan-depth {
  height: 100%; transform-style: preserve-3d;
  transform: translateZ(calc(var(--abs, 0) * var(--fan-depth) * -1));
  transition: transform var(--dur) var(--ease);
}
.fan.is-3d .fan-card {
  height: 100%; aspect-ratio: auto;
  box-shadow: var(--shadow-md);
  border: 1px solid oklch(1 0 0 / .12);
}
.fan.is-3d .fan-slide[data-state="active"] .fan-card { cursor: grab; box-shadow: var(--shadow-lg); }
.fan.is-3d.is-dragging .fan-slide[data-state="active"] { transition: none; }
.fan.is-3d.is-dragging .fan-slide[data-state="active"] .fan-card { cursor: grabbing; }
.fan.is-3d .fan-slide:not([data-state="active"]) .fan-card { cursor: pointer; }
.fan.is-3d .fan-slide:not([data-state="active"]) .fan-caption { opacity: 0; transition: opacity .3s var(--ease); }

/* L'éventail déborde volontairement de part et d'autre : la bande qui le
   contient rogne ce débordement, sinon c'est toute la page qui défile
   horizontalement. `clip` sur un seul axe préserve le halo, sous la scène. */
.band:has(.fan.is-3d) { overflow-x: clip; }

/* Halo sous la scène : donne du sol à l'éventail. */
.fan.is-3d .fan-track::after {
  content: ""; position: absolute; left: 50%; bottom: -1.5rem;
  width: 74%; height: 5rem; transform: translateX(-50%);
  background: oklch(0.12 0.03 168 / .35); filter: blur(42px); border-radius: 50%;
  z-index: 0; pointer-events: none;
}

@media (max-width: 1200px) {
  .fan { --fan-w: 420px; --fan-h: 280px; }
}

/* ---------- Visionneuse plein écran ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: grid; place-items: center;
  background: oklch(0.14 0.025 168 / .96);
  padding: clamp(1rem, 4vw, 3rem);
  --focus-ring: var(--mimosa);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0; max-width: min(100%, 1500px); max-height: 100%;
  display: grid; gap: 1.1rem; justify-items: center;
}
.lightbox-figure img {
  max-height: 78dvh; width: auto; object-fit: contain;
  border-radius: var(--radius-img); box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  color: oklch(0.82 0.015 165); text-align: center;
  font-size: var(--fs-small); max-width: 60ch;
}
.lightbox-caption strong {
  display: block; color: var(--ivoire); font-family: var(--serif);
  font-weight: 500; font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: .25rem;
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid oklch(1 0 0 / .28);
  background: oklch(1 0 0 / .1); color: var(--ivoire); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox-btn:hover { background: oklch(1 0 0 / .22); border-color: oklch(1 0 0 / .6); }
.lightbox-prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox-next { right: clamp(.5rem, 2vw, 2rem); }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-close { top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); transform: none; }
.lightbox-count {
  position: absolute; bottom: clamp(.75rem, 2vw, 1.5rem); left: 50%; transform: translateX(-50%);
  color: oklch(0.75 0.02 165); font-size: var(--fs-small); letter-spacing: .08em;
}
.lightbox .icon { width: 22px; height: 22px; }

/* ---------- Formulaires ---------- */

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: .93rem; color: var(--fg); }
.field .hint { font-size: .82rem; color: var(--fg-quiet); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="url"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; padding: .85rem 1rem;
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--surface);
  border: 1px solid color-mix(in oklch, var(--fg) 22%, transparent);
  border-radius: var(--radius-btn);
  min-height: 50px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea { min-height: 170px; resize: vertical; line-height: 1.6; }

/* Le gris de repli des navigateurs tombe sous 4,5:1 : on impose le nôtre. */
::placeholder { color: var(--fg-quiet); opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: color-mix(in oklch, var(--fg) 38%, transparent); }
input:focus, select:focus, textarea:focus {
  border-color: var(--pin);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--pin) 20%, transparent);
  outline: none;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: oklch(0.5 0.16 28); }
input:disabled, select:disabled, textarea:disabled {
  background: color-mix(in oklch, var(--fg) 5%, var(--surface));
  color: var(--fg-quiet); cursor: not-allowed;
}

.checkbox { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; }
.checkbox input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: .12rem; accent-color: var(--pin); }
.field-error { color: oklch(0.45 0.16 28); font-size: .85rem; font-weight: 500; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0; max-width: 62rem; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-list > .faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem .25rem; cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em;
  color: var(--fg); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 1.5px solid var(--mimosa); border-bottom: 1.5px solid var(--mimosa);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.band-ivoire .faq-item summary::after, .band-ivoire-2 .faq-item summary::after {
  border-color: var(--pin-soft);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq-item summary:hover { color: var(--fg); }
.faq-answer { padding: 0 .25rem 1.6rem; color: var(--fg-quiet); max-width: 68ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Carte ---------- */

.map-holder {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule); background: color-mix(in oklch, var(--fg) 4%, var(--surface));
  min-height: 380px;
}
.map-holder iframe { width: 100%; height: 480px; border: 0; display: block; }
.map-placeholder {
  display: grid; place-items: center; gap: 1rem; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem); min-height: 380px;
}
.map-placeholder .icon { width: 34px; height: 34px; color: var(--pin-soft); }
.map-placeholder p { color: var(--fg-quiet); max-width: 52ch; }
.map-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin: 0; padding: .75rem 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small); color: var(--fg-quiet); max-width: none;
}
.map-note .icon { color: var(--fg-quiet); }
.map-note a { margin-left: auto; color: var(--fg); }

/* ---------- Bandeau final ---------- */

.cta-inner { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-inner h2 { max-width: 18ch; margin-bottom: .4em; }
.cta-inner p { color: var(--fg-quiet); max-width: 46ch; margin: 0; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--pin-deep); color: oklch(0.78 0.018 165);
  --focus-ring: var(--mimosa);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer-brand {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  letter-spacing: -.015em; color: var(--ivoire); margin-bottom: .7rem;
}
.footer-brand-place {
  display: block; margin-top: .2rem;
  font-family: var(--sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: oklch(0.74 0.025 165);
}
.footer-title {
  font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase;
  color: oklch(0.66 0.03 165); margin-bottom: 1rem; font-weight: 600;
}
.footer-text { font-size: .92rem; line-height: 1.7; color: oklch(0.78 0.018 165); }
.footer-text a { color: oklch(0.86 0.015 165); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.footer-text a:hover { color: var(--ivoire); }
.footer-note {
  margin-top: 1rem; max-width: 34ch;
  font-size: .82rem; line-height: 1.55; color: oklch(0.7 0.02 165);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.footer-links a, .footer-links button {
  display: inline-flex; align-items: center; min-height: 28px; padding-block: .15rem;
  color: oklch(0.78 0.018 165); text-decoration: none; font-size: .92rem;
}
.footer-links a:hover, .footer-links button:hover { color: var(--ivoire); }
/* Contraste 4,5:1 tenu : l'accès admin est discret par la place qu'il occupe,
   pas par un gris illisible. */
.footer-links .discreet { color: oklch(0.66 0.025 165); font-size: .85rem; }
.footer-links .discreet:hover { color: var(--ivoire); }
.footer-bottom {
  margin-top: 3rem; padding-block: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / .1);
  font-size: .85rem; color: oklch(0.66 0.025 165);
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--ivoire); }

/* ---------- Bandeau cookies ---------- */

.consent {
  position: fixed; left: 50%; bottom: clamp(.75rem, 3vw, 1.5rem); transform: translateX(-50%);
  width: min(100% - 1.5rem, 40rem); z-index: var(--z-consent);
  background: var(--ivoire); color: var(--encre);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.5rem;
}
.consent-title { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-bottom: .5rem; }
.consent-text { font-size: .92rem; color: var(--encre-doux); margin-bottom: 1.25rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.consent-actions .btn { flex: 1 1 9rem; min-height: 46px; }
.consent-link { font-size: .88rem; color: var(--encre-doux); }

/* ---------- Prose (mentions, confidentialité) ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; margin-bottom: 1.4rem; max-width: 68ch; }
.prose li { color: var(--fg-quiet); }
.prose li strong { color: var(--fg); }

/* Une table longue doit défiler dans son propre conteneur : la page, elle,
   ne défile jamais horizontalement. */
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
.prose table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.prose th, .prose td {
  text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--rule);
  vertical-align: top; font-size: var(--fs-small);
}
.prose th { font-weight: 600; color: var(--fg); }
.prose td { color: var(--fg-quiet); }

/* ---------- Page d'erreur ---------- */

.error-page {
  display: grid; place-items: center; min-height: 72dvh; text-align: center;
  padding: 6rem 1.5rem 3rem;
}
.error-code {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(4.5rem, 14vw, 9rem); line-height: 1;
  letter-spacing: -.04em; color: var(--mimosa); margin-bottom: .1em;
}

/* ---------- Passe de finition : mosaïque, chiffres, équipements ----------
   Même palette, mêmes polices : on durcit les proportions et les contrastes. */

/* Mosaïque bento : une grande photo verticale, deux plus courtes empilées. */
.split-mosaic { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .split-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }

.mosaic {
  display: grid; gap: .75rem;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, clamp(10rem, 19vw, 16.5rem));
}
.mosaic-1 { grid-row: span 2; }
.mosaic-item { overflow: hidden; border-radius: var(--radius); }
.mosaic-item .gallery-btn, .mosaic-item picture { height: 100%; border-radius: inherit; }
.mosaic-item .gallery-btn img { height: 100%; aspect-ratio: auto; }
/* Colonne droite décalée vers le bas : l'asymétrie vient du padding, pas d'un
   transform — le clip-path de l'animation d'entrée rognerait un débordement. */
.mosaic-2, .mosaic-3 { margin-top: 1.5rem; }
.mosaic { padding-bottom: 0; }
.mosaic-2 { margin-top: 1.5rem; }
@media (max-width: 560px) {
  .mosaic { grid-template-rows: repeat(2, 9.5rem); }
  .mosaic-2, .mosaic-3 { margin-top: 0; }
}

/* Chiffres clés : un bandeau continu, séparé par des filets verticaux. */
.specs { gap: 0; border-block: 1px solid var(--rule); }
.specs li {
  padding: 1.35rem clamp(.75rem, 1.5vw, 1.5rem); border-top: 0;
  border-left: 1px solid var(--rule);
}
.specs li:first-child { border-left: 0; padding-left: 0; }
.specs strong { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); color: var(--pin); }
.band-pin .specs strong { color: var(--mimosa); }
@media (max-width: 560px) {
  .specs, .split-mosaic .specs { grid-template-columns: repeat(3, 1fr); }
  .specs li { border-left: 1px solid var(--rule); }
  .specs li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .specs li:nth-child(n+4) { border-top: 1px solid var(--rule); }
}

/* Dans la colonne étroite, les cinq chiffres tiennent sur une seule ligne. */
@media (min-width: 561px) { .split-mosaic .specs { grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr)); } }
.split-mosaic .specs strong { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }

/* Héros : les chiffres se lisent d'un coup d'œil, séparés par des filets. */
.hero-facts { gap: 0; padding-top: 1.5rem; }
.hero-fact { padding-inline: clamp(1rem, 2.4vw, 2.25rem); border-left: 1px solid oklch(1 0 0 / .22); }
.hero-fact:first-child { padding-left: 0; border-left: 0; }
.hero-fact strong { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
@media (max-width: 560px) {
  .hero-facts { row-gap: 1rem; }
  .hero-fact { padding-inline: 0 1.25rem; border-left: 0; }
}

/* Équipements : cellules à filets partagés, l'icône vire au mimosa au survol. */
.amenities {
  /* Le fond du conteneur transparaît dans le gap de 1 px : des filets nets, sans double trait. */
  gap: 1px; background: color-mix(in oklch, var(--fg) 15%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--fg) 15%, var(--surface)); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.amenity {
  padding: 1.15rem 1.25rem; border-top: 0; background: var(--surface);
  transition: background-color .3s var(--ease);
}
.amenity .icon {
  width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  background: color-mix(in oklch, var(--pin) 8%, transparent);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.amenity:hover { background: color-mix(in oklch, var(--mimosa) 14%, var(--surface)); }
.amenity:hover .icon { background: var(--mimosa); color: var(--encre); }

/* Raisons de choisir : sur fond pin, titres plus francs, filet mimosa. */
.band-pin .reason { border-top-color: color-mix(in oklch, var(--mimosa) 55%, transparent); }
.reason h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }

/* Bouton principal : un léger relief au survol, pas de rebond. */
.btn-primary:hover { box-shadow: 0 8px 22px color-mix(in oklch, var(--mimosa) 38%, transparent); }
.btn { transition-property: background-color, border-color, color, box-shadow, transform; }
.btn-primary:active { transform: translateY(1px); }

/* ---------- Mouvement ----------
   Règle fondatrice : le contenu est visible par défaut. L'observateur ne fait
   qu'ajouter une classe qui joue une animation. Si l'observateur ne se
   déclenche jamais — onglet en arrière-plan, rendu sans affichage, robot
   d'indexation — la page reste entièrement lisible. */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise-soft {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: translateY(16px) scale(.995); }
  to   { transform: none; }
}
/* Volet qui s'ouvre, sans mise à l'échelle : agrandir un bloc déjà large que
   son conteneur provoque une barre de défilement horizontale pendant toute la
   durée de l'animation. */
@keyframes photo-in {
  from { opacity: 0; clip-path: inset(0 0 14% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes hero-pan {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.js .reveal.is-in       { animation: rise .8s var(--ease) both; }
.js .reveal-soft.is-in  { animation: rise-soft .6s var(--ease) both; }
.js .reveal-photo.is-in { animation: photo-in 1.1s var(--ease) both; }

/* Décalage en cascade à l'intérieur d'une liste — pas d'une page à l'autre. */
.js .stagger.is-in > * { animation: rise-soft .65s var(--ease) both; }
.js .stagger.is-in > *:nth-child(1) { animation-delay: 0ms; }
.js .stagger.is-in > *:nth-child(2) { animation-delay: 70ms; }
.js .stagger.is-in > *:nth-child(3) { animation-delay: 140ms; }
.js .stagger.is-in > *:nth-child(4) { animation-delay: 210ms; }
.js .stagger.is-in > *:nth-child(5) { animation-delay: 280ms; }
.js .stagger.is-in > *:nth-child(6) { animation-delay: 350ms; }

/* Ouverture du héros : une seule séquence orchestrée, au chargement. */
.js .hero-media img { animation: hero-pan 1.8s var(--ease) both; }
.js .hero-inner > * { animation: settle .95s var(--ease) both; }
.js .hero-place  { animation-delay: .05s; }
.js .hero h1     { animation-delay: .14s; }
.js .hero-sub    { animation-delay: .24s; }
.js .hero .btn-row { animation-delay: .32s; }
.js .hero-facts  { animation-delay: .4s; }

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

@media print {
  .site-header, .site-footer, .consent, .btn, .fan-controls, .hero-scroll { display: none !important; }
  .hero { min-height: 0; }
  body { background: #fff; color: #000; }
}

/* ---------- Projecteur au survol ----------
   Idée reprise du bloc « Feature Grid Spotlight Cards » de 21st.dev, refaite en
   CSS natif : une lueur mimosa suit le pointeur (--mx / --my posées par app.js).
   Sans JavaScript ou sans souris, le dégradé reste hors champ : rien ne change. */
.reason, .amenity { position: relative; isolation: isolate; }
.reason::before, .amenity::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in oklch, var(--mimosa) 16%, transparent), transparent 70%);
  transition: opacity .35s var(--ease);
}
.reason:hover::before, .amenity:hover::before { opacity: 1; }
.reason-icon { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.1em; color: var(--mimosa); }
.band-ivoire .reason-icon, .band-ivoire-2 .reason-icon { color: var(--pin-soft); }
@media (prefers-reduced-motion: reduce) { .reason::before, .amenity::before { transition: none; } }

/* ---------- FAQ : recherche et liens directs ---------- */
.faq-search { max-width: 62rem; margin-bottom: 1.75rem; }
.faq-search label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: .35rem; }
.faq-field {
  display: flex; align-items: center; gap: .65rem; padding-inline: .1rem;
  border-bottom: 1.5px solid var(--fg);
}
.faq-field .icon { flex: none; color: var(--fg-quiet); }
.faq-field input {
  flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--fg);
  font: inherit; font-size: var(--fs-lede); outline: none; padding: .35rem 0;
}
.faq-field input::placeholder { color: var(--fg-quiet); opacity: .8; }
.faq-field:focus-within { box-shadow: 0 1.5px 0 var(--fg); }
.faq-count { min-height: 1.4em; margin: .4rem 0 0; font-size: var(--fs-small); color: var(--fg-quiet); }
.faq-empty { max-width: 62rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.2rem; }
.faq-item[hidden] { display: none; }
.faq-item summary mark, .faq-answer mark { background: color-mix(in oklch, var(--mimosa) 55%, transparent); color: inherit; border-radius: 2px; }
.faq-item { scroll-margin-top: 6rem; }
.faq-copy {
  display: inline-block; margin-top: 1rem; padding: .5rem 0; border: 0; background: none; cursor: pointer;
  color: var(--fg-quiet); font: inherit; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px;
}
.faq-copy:hover { color: var(--fg); }

/* ---------- Barre de réservation mobile ---------- */
.book-bar { display: none; }
@media (max-width: 899px) {
  .book-bar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 30;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: color-mix(in oklch, var(--pin-deep) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--pin-line);
    transition: transform .4s var(--ease);
  }
  .js .book-bar { transform: translateY(105%); }
  .js .book-bar.is-on { transform: none; }
  .book-bar .btn { width: 100%; justify-content: center; }
  .site-footer { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) { .book-bar { transition: none; } }
.faq-field input, .faq-field input:focus { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.faq-field input::-webkit-search-cancel-button { display: none; }
