/* ==========================================================================
   L'Écrin de la Roche · feuille de style du site
   Porté depuis les maquettes Claude Design (site/*.dc.html + Nav.dc.html).
   Pas de reset box-sizing : les maquettes reposent sur le modèle de boîte par défaut.
   ========================================================================== */

@font-face {
  font-family: Batica;
  src: url('../fonts/BaticaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Thème sombre (défaut) ; thème clair : <html class="theme-light"> (Camping-cars) */
:root {
  --bg: #070807;
  --fg: #F2EFEB;
  --muted: rgba(242, 239, 235, .55); /* texte secondaire */
  --rule: rgba(242, 239, 235, .15);  /* filets */
  --line: rgba(242, 239, 235, .35);  /* bordure bouton, champs, placeholders */
  --chip: rgba(242, 239, 235, .12);  /* fond des mentions « à compléter » */
  --glass: rgba(7, 8, 7, .58);       /* voile de l'en-tête fixe (verre dépoli) */

  --gutter: clamp(22px, 4.4vw, 56px);
  --section: clamp(72px, 12.5vw, 160px);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-reveal: cubic-bezier(.2, .7, .2, 1);
  --ease-wipe: cubic-bezier(.6, 0, .2, 1);
}

.theme-light {
  --bg: #F2EFEB;
  --fg: #233126;
  --muted: rgba(35, 49, 38, .7); /* .6 sur la maquette : relevé pour atteindre 4,5:1 (accessibilité AA) */
  --rule: rgba(35, 49, 38, .2);
  --line: rgba(35, 49, 38, .35);
  --chip: rgba(35, 49, 38, .08);
  --glass: rgba(242, 239, 235, .72);
}

/* Base
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Batica, Helvetica, sans-serif;
  overflow-x: clip; /* le titre animé déborde un instant à droite : pas de défilement horizontal */
  text-wrap: pretty; /* pas de mot seul en dernière ligne (complété par site-outils/typographie.py) */
}

h1, h2, p, figure, dl, dd { margin: 0; }
h1, h2 { font-size: inherit; font-weight: 400; }
a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* Pages courtes (Accès, Mentions) : le pied de page reste en bas de l'écran */
.fill { min-height: 100vh; display: flex; flex-direction: column; }
.fill > main { flex: 1; display: flex; flex-direction: column; }

/* Entrée de page + révélations
   [data-reveal="lock|fade|wipe"] passe à [data-in] quand l'élément entre dans
   le viewport (assets/js/ecrin.js). Délai par élément : style="--d:120ms".
   L'état masqué est conditionné à .js : sans script, tout reste visible.
   ========================================================================== */

/* « lock » : le titre se resserre en sortant du flou. La maquette animait letter-spacing, ce qui
   recomposait les lignes en cours d'animation (saut de mots, décalage de mise en page pénalisé
   par Google). Même effet avec une transformation, qui ne touche pas à la mise en page. */
@keyframes ecrinLock { from { opacity: 0; transform: scaleX(1.06); filter: blur(6px); } to { opacity: 1; transform: none; } }
@keyframes ecrinWipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes ecrinFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ecrinNoir { from { opacity: 0; } to { opacity: 1; } }
@keyframes ecrinSecours { from { opacity: 0; } to { opacity: 1; } } /* même fondu, autre nom : il repart de zéro */
@keyframes ecrinPage { to { opacity: 0; visibility: hidden; } }

/* Entrée de page : un voile de la couleur du fond se dissipe au-dessus du contenu. La maquette
   passait le body de l'opacité 0 à 1 : rendu identique, mais tant que l'opacité vaut 0 le
   navigateur ne peint rien, et les mesures de Google (premier affichage, plus grand élément)
   pouvaient ne jamais se déclencher. Ici le contenu est peint dès le départ. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  pointer-events: none;
  animation: ecrinPage 600ms 80ms var(--ease) forwards;
}

.js [data-reveal] { opacity: 0; }
.js [data-reveal="lock"] { transform-origin: 0 50%; }
.js [data-reveal="wipe"] { opacity: 1; clip-path: inset(100% 0 0 0); }
.js [data-reveal="lock"][data-in] { animation: ecrinLock 1200ms var(--ease-reveal) var(--d, 0ms) both; }
.js [data-reveal="fade"][data-in] { animation: ecrinFade 900ms var(--ease-reveal) var(--d, 0ms) both; }
.js [data-reveal="wipe"][data-in] { animation: ecrinWipe 1300ms var(--ease-wipe) var(--d, 0ms) both; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="wipe"] { opacity: 1; clip-path: none; animation: none !important; }
  body::before { display: none; }
}

@media print {
  .js [data-reveal], .js [data-reveal="wipe"] { opacity: 1; clip-path: none; animation: none !important; }
  body::before { display: none; }
}

/* Typographie
   ========================================================================== */

.t-display { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; } /* lignes de longueur voisine */
/* Écrans de 320px : le grand titre perd 4px pour qu'un long mot composé (rez-de-chaussée) tienne sur une ligne */
@media (max-width: 340px) { .t-display { font-size: 34px; } }
.t-title { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.t-subtitle { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; text-wrap: balance; }
.t-statement { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; max-width: 600px; text-wrap: pretty; }
.t-intro { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; text-wrap: pretty; }
.t-prose { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; text-wrap: pretty; }
.t-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; text-wrap: pretty; }
.t-body { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; text-wrap: pretty; }

.kicker { font-size: 15px; color: var(--muted); }
/* Mot composé jamais coupé au trait d'union (posé par site-outils/typographie.py) */
.nb { white-space: nowrap; }

.mw-440 { max-width: 440px; }
.mw-480 { max-width: 480px; }

/* Éléments partagés
   ========================================================================== */

/* Grille deux colonnes qui passe à une colonne sous ~900px */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

/* Lien à soulignement qui se trace au survol */
.link {
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 700ms var(--ease);
}
.link:hover,
.link[aria-current="page"] { background-size: 100% 1px; }
.link--start { font-size: 16px; align-self: flex-start; }

.button {
  display: inline-block;
  padding: 16px 32px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: all 600ms var(--ease);
}
.button:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.button[disabled] { cursor: default; opacity: .5; }

/* Mention « à compléter » (information que la maquette laisse en attente) */
.chip { font: 15px ui-monospace, Menlo, monospace; background: var(--chip); padding: 2px 6px; white-space: nowrap; }

/* Petite note technique : ne sert plus qu'au mode démo du formulaire (acces.html). Aucune annotation sur les images. */
.photo-note { font: 11px ui-monospace, Menlo, monospace; color: rgba(242, 239, 235, .45); }

/* Grande image : un <picture> dans le <figure>, qui couvre le dégradé d'attente. Ni libellé ni légende
   (demande de Jeremy, 05/10/2026). */
.plate { position: relative; height: clamp(420px, 56vw, 720px); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.plate--porte { background: linear-gradient(200deg, #161d18, #070807 70%); }
.plate--lounge { background: linear-gradient(180deg, #070807, #141a15); }
.plate--matiere { background: linear-gradient(180deg, #0a0c0a, #151b16 45%, #050605); }
.plate--rdc { background: linear-gradient(200deg, #1a221c, #0b0e0c 70%); }
/* Couloir de l'étage : sur téléphone le cadre est plus étroit que la photo, on garde le grand « 39 » de gauche */
.plate--couloir img { object-position: 0 50%; }

/* Pierre en 3D (L'esprit du lieu) : la scène three.js est posée par assets/js/pierre.js.
   L'image fixe n'est qu'un secours. Elle montre la pierre à la même taille et dans la même pose que la
   scène à son départ (constantes de pierre.js), pour que le passage de l'une à l'autre ne se voie pas.
   Elle apparaît seule si la scène n'est pas là au bout de 3 s (connexion lente), tout de suite si la scène
   ne viendra pas (data-pierre="fixe"), et sans attendre en mouvement réduit ou sans JavaScript. */
.plate.pierre { background: #070807; overflow: hidden; touch-action: pan-y; container-type: size; }
.pierre__fixe { position: absolute; inset: 0; display: block; }
.js .pierre__fixe { opacity: 0; animation: ecrinNoir 1500ms var(--ease) 3000ms both; }
.js .pierre[data-pierre="fixe"] .pierre__fixe { animation: ecrinSecours 1500ms var(--ease) both; }
.pierre[data-pierre="scene"] .pierre__fixe { display: none; } /* la scène a pris sa place */
/* Mouvement réduit, impression : l'image fixe, tout de suite et sans fondu (à garder après les règles ci-dessus) */
@media (prefers-reduced-motion: reduce), print { .js .pierre__fixe { opacity: 1; animation: none; } }
.pierre__fixe img {
  inset: auto;
  left: 50%;
  top: 50%;
  width: auto;
  height: 100%;
  height: min(100cqh, 104cqw);
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  /* bords de l'image fondus dans le noir : aucun cadre visible, même si la compression décale le fond d'un ton */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.pierre__scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; } /* opacité pilotée par pierre.js */

/* Variantes : image en retrait (marges latérales) et image portrait */
.plate--inset { margin: clamp(56px, 9.4vw, 120px) var(--gutter) 0; height: clamp(300px, 44vw, 560px); }
.plate--portrait { height: auto; aspect-ratio: 4 / 5; }

/* Conclusion de page : une phrase + le bouton « Demander un accès » */
.closing {
  padding: var(--section) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.closing--tight { padding-top: clamp(72px, 9.4vw, 120px); }
.closing--ruled {
  margin: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 9.4vw, 120px) 0 var(--section);
}

/* Navigation (Nav.dc.html) : le menu plein écran suit le thème de la page.
   En-tête fixe : en haut de page la barre est transparente, à la place prévue par la maquette.
   Dès qu'on défile (classe .nav-scrolled posée par ecrin.js) elle se resserre et devient un
   verre dépoli : flou de l'arrière-plan, voile de la couleur du thème, filet en bas.
   .nav réserve la hauteur de la barre dans la page. Sans JavaScript, la barre reste dans le flux.
   ========================================================================== */

.nav { position: relative; z-index: 10; min-height: calc(clamp(20px, 2.8vw, 36px) + 30px); }

.nav__bar {
  padding: clamp(20px, 2.8vw, 36px) var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.js .nav__bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1; /* sous le menu plein écran (z-index 20), dans le même empilement */
  border-bottom: 1px solid transparent;
  transition: padding 500ms var(--ease), background-color 500ms var(--ease), border-color 500ms var(--ease);
}
.js.nav-scrolled .nav__bar {
  padding-top: 16px;
  padding-bottom: 16px;
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--rule);
}
@media (max-width: 759.98px) {
  .nav { min-height: calc(clamp(20px, 2.8vw, 36px) + 44px); }
  .js.nav-scrolled .nav__bar { padding-top: 6px; padding-bottom: 6px; }
}

.nav__logo { display: flex; }
.nav__logo svg { width: 30px; }

.nav__links { display: flex; gap: 40px; }
.nav__links .link { padding-bottom: 3px; }

.nav__toggle {
  background: none;
  border: 0;
  padding: 12px 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
}

@media (min-width: 760px) { .nav__toggle { display: none; } }
@media (max-width: 759.98px) { .nav__links { display: none; } }

.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

.menu__bar {
  padding: 20px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.menu__bar .nav__logo svg { width: 26px; }
.menu__bar .nav__toggle { display: inline-block; }
/* Page défilée : la barre du menu reprend la hauteur de l'en-tête compact, « Menu » et « Fermer » restent au même endroit */
.js.nav-scrolled .menu__bar { padding-top: 6px; }

.menu__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 0 22px 80px;
  font-size: 34px;
  letter-spacing: -.02em;
  line-height: 1;
}
.menu__links a { padding: 6px 0; }

.menu__note { padding: 0 22px 28px; font-size: 13px; opacity: .6; }

/* Pied de page
   ========================================================================== */

.footer {
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer .link { padding-bottom: 2px; transition: background-size 700ms; }

/* Accueil
   ========================================================================== */

.hero {
  position: relative;
  min-height: clamp(620px, 64vw, 820px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0a0c0a 0%, #151b16 45%, #050605 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 70% 55%, rgba(242, 239, 235, .07), transparent 70%);
}

/* Photo du héro : <picture class="hero__media"> en premier enfant de .hero, avec une source
   portrait sous 760px et une source paysage au-delà. Le voile garde le menu et le titre lisibles. */
.hero__media { position: absolute; inset: 0; }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 7, .45) 0%, rgba(7, 8, 7, .1) 35%, rgba(7, 8, 7, .75) 100%);
}

.hero__content {
  position: relative;
  margin-top: auto;
  padding: 0 var(--gutter) clamp(40px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__title { max-width: 820px; }

/* « À l'abri des regards, » : flou qui se lève au survol */
.hero__veil { filter: blur(3px); transition: filter 800ms var(--ease); }
.hero__veil:hover { filter: blur(0); }

/* Deux rangs : l'esprit du lieu, puis le secteur (référencement local) */
.intro { padding: var(--section) var(--gutter); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.intro__row { gap: 12px 80px; }

/* Sécurité : une accroche (surtitre, titre, texte) puis quatre repères, grand mot et légende
   sur un filet, quatre colonnes sur ordinateur et deux sur téléphone. Placée juste après
   l'introduction, elle précède l'image « La porte ». */
.securite { padding: 0 var(--gutter) var(--section); }
.securite__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px 80px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.securite__head .kicker { margin-bottom: 18px; }
.securite__head h2 { text-wrap: balance; } /* lignes équilibrées, pas de mot seul en fin de titre */
.securite__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 32px 40px;
}
.securite__item { border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.securite__label { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.securite__text { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Bloc « secteur » en fin de page : la conclusion qui suit porte déjà son espacement */
.intro--fin { padding-bottom: 0; }

/* Les deux entrées du lieu : deux panneaux pleins, vert et ivoire. Chaque panneau est un lien
   entier vers sa page, le « bouton » n'en est que le repère visuel. */
.entrees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px;
  padding: var(--section) var(--gutter) clamp(72px, 11vw, 140px);
}
.entrees + .intro--fin { padding-top: 0; } /* un seul espacement entre les panneaux et le bloc « secteur » */

.entree {
  min-height: clamp(440px, 42vw, 560px);
  box-sizing: border-box;
  padding: clamp(28px, 3.75vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  transition: background-color 600ms var(--ease);
}
.entree--ecrin { background: #233126; color: #F2EFEB; }
.entree--ecrin:hover { background: #2b3c2f; }
.entree--camping { background: #F2EFEB; color: #233126; }
.entree--camping:hover { background: #E8E4DE; }
.entree:focus-visible { outline-color: var(--fg); } /* le contour reste lisible autour du panneau ivoire */

.entree__label { font-size: 15px; opacity: .6; }
.entree--camping .entree__label { opacity: .7; } /* .6 sur la maquette : relevé pour le contraste AA, comme le thème clair */
.entree__body { display: flex; flex-direction: column; gap: 24px; }
.entree__title { font-size: clamp(44px, 5vw, 64px); letter-spacing: -.03em; line-height: 1; }
/* Téléphones : « Camping-cars » tient sur une ligne dans le panneau (largeur d'écran moins 100px de marges) */
@media (max-width: 400px) { .entree__title { font-size: min(44px, 15.6vw - 15.6px); } }
.entree__text { font-size: 18px; line-height: 1.5; max-width: 420px; text-wrap: pretty; }
.entree__btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 16px;
  border: 1px solid currentColor;
  white-space: nowrap;
  transition: background-color 600ms var(--ease), color 600ms var(--ease), border-color 600ms var(--ease);
}
@media (max-width: 340px) { .entree__btn { padding: 14px 16px; } } /* « Voir les informations » reste sur une ligne à 320px */
.entree--ecrin .entree__btn { border-color: rgba(242, 239, 235, .45); }
.entree--camping .entree__btn { border-color: rgba(35, 49, 38, .4); }
.entree--ecrin .entree__btn:hover { background: #F2EFEB; color: #233126; border-color: #F2EFEB; }
.entree--camping .entree__btn:hover { background: #233126; color: #F2EFEB; border-color: #233126; }

/* L'Écrin
   ========================================================================== */

.ecrin-head {
  padding: clamp(100px, 15.6vw, 200px) var(--gutter) clamp(56px, 9.4vw, 120px);
  gap: 28px 80px;
  align-items: end;
}
.ecrin-intro { padding: var(--section) var(--gutter) 0; gap: 12px 80px; }

.formats { margin: clamp(48px, 6vw, 80px) var(--gutter) 0; border-top: 1px solid var(--rule); }
.format { gap: 10px 80px; padding: clamp(28px, 3.75vw, 48px) 0; border-bottom: 1px solid var(--rule); }

.ecrin-lounge { padding: var(--section) var(--gutter); gap: 24px 80px; align-items: center; }
.ecrin-lounge__body { display: flex; flex-direction: column; gap: 24px; }

.ecrin-hours {
  margin: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 9.4vw, 120px) 0;
  gap: 16px 80px;
}

/* Camping-cars (thème clair)
   ========================================================================== */

.camping-head {
  padding: clamp(100px, 14vw, 180px) var(--gutter) clamp(48px, 7.8vw, 100px);
  gap: 28px 80px;
  align-items: end;
}

.specs { margin: 0 var(--gutter); border-top: 1px solid var(--rule); }
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 6px 40px;
  padding: clamp(20px, 2.5vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
}
.spec dt { color: var(--muted); }
.spec dd { grid-column: span 2; }
/* Sur une seule colonne, la valeur ne doit pas réclamer une seconde colonne : sous 342px de
   large elle dépassait de l'écran (défaut de la grille d'origine). */
@media (max-width: 660px) {
  .spec { grid-template-columns: 1fr; }
  .spec dd { grid-column: auto; }
}

.camping-how { padding: clamp(64px, 9.4vw, 120px) var(--gutter); gap: 24px 80px; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 480px;
}

/* L'esprit du lieu
   ========================================================================== */

/* La pierre en 3D porte déjà du noir autour d'elle : le texte du dessus et celui du dessous s'en rapprochent
   (la maquette prévoyait une photo pleine largeur, avec un espacement de section de chaque côté) */
.esprit-head { padding: clamp(100px, 15.6vw, 200px) var(--gutter) clamp(8px, 2vw, 28px); gap: 32px 80px; }
.esprit-why { padding: clamp(16px, 3vw, 44px) var(--gutter) var(--section); gap: 20px 80px; }
.esprit-ask {
  margin: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 9.4vw, 120px) 0 var(--section);
  gap: 20px 80px;
}
.esprit-ask__body { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; max-width: 520px; }

.prose { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.prose--head { padding-top: 12px; }

/* Demander un accès
   ========================================================================== */

.acces { flex: 1; padding: clamp(100px, 14vw, 180px) var(--gutter) var(--section); gap: 64px 120px; }
.acces__aside { display: flex; flex-direction: column; gap: 32px; align-self: start; }
/* Colonne collante seulement quand la grille a deux colonnes ; sur une colonne elle
   recouvrirait le formulaire. Deux colonnes dès 1009px de fenêtre (contenu >= 2 x 400 + 120px),
   jusqu'à ~1027px avec une barre de défilement classique : 1030px couvre les deux cas. */
@media (min-width: 1030px) { .acces__aside { position: sticky; top: 104px; } } /* sous l'en-tête fixe */
.acces__note { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 440px; }

.form { display: flex; flex-direction: column; gap: 48px; font-size: 17px; }
.form__group { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.form__submit { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-top: 16px; }
.form__hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__error { font-size: 14px; line-height: 1.5; }
/* Champ piège anti-robots : hors écran, hors tabulation, ignoré des lecteurs d'écran */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field__input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 500ms;
}
.field__input:focus { border-color: var(--fg); }
.field__input::placeholder { color: var(--line); }
textarea.field__input { resize: none; }

.radio { display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 44px; }
.radio input {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid rgba(242, 239, 235, .5);
  border-radius: 0;
  flex: none;
  cursor: pointer;
}
.radio input:checked { background: var(--fg); border-color: var(--fg); box-shadow: inset 0 0 0 3px var(--bg); }
/* Écrans de 320px : « Rez-de-chaussée : camping-cars » tient sur une ligne au lieu de rejeter son dernier mot */
@media (max-width: 340px) { .radio { font-size: 16px; } }

.sent {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  gap: 28px;
  max-width: 720px;
}

/* Mentions légales
   ========================================================================== */

.mentions {
  flex: 1;
  padding: clamp(100px, 14vw, 180px) var(--gutter) var(--section);
  gap: 48px 120px;
  align-items: start;
}
.mentions__body {
  display: flex;
  flex-direction: column;
  gap: 48px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 560px;
}
.mentions__block { display: flex; flex-direction: column; gap: 12px; }
.mentions__block h2 { font-size: 15px; color: var(--muted); }
.mentions .chip { font-size: 14px; }
.mentions__block a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* Sur les plus petits écrans, un libellé et son adresse e-mail tiennent ainsi sur une même ligne */
@media (max-width: 340px) { .mentions__body { font-size: 15px; } }
