/* =========================================================
   LE REFUGE DES PILOTES — pages intérieures et blocs du site multipage
   Chargée après style.css : mêmes jetons (:root), même vocabulaire.
   Texte laiton sur fond clair = var(--brass-ink) ; sur fond sombre = var(--brass-lt).
   Images : toujours « .bloc img » (jamais « > img ») car eleventy-img les enveloppe dans <picture>.
   ========================================================= */

/* ---------- Accessibilité ---------- */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300; /* au-dessus de la nav (100), du grain (150) et du loader (200) */
  padding: 12px 20px;
  background: var(--green-deep); color: var(--ivory);
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

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

/* Pot de miel anti-spam (Netlify) */
.hp { display: none; }

/* ---------- Navigation des pages intérieures ----------
   Par défaut = apparence de .nav.solid (pas de photo d'en-tête, et rien à attendre du JS).
   Spécificités : .nav-interieure (0,1,0) < body.menu-open .nav (0,2,1) : le menu ouvert gagne toujours. */
.nav-interieure {
  background: rgba(246, 242, 234, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 var(--line);
}
.nav-interieure .nav-cta:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }

/* Pages formule : nav transparente sur la photo, tant que le JS n'a pas posé .solid */
.page-formule .nav-interieure:not(.solid) {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--ivory); padding-top: 22px; padding-bottom: 22px; box-shadow: none;
}
.page-formule .nav-interieure:not(.solid) .nav-cta:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* Menu ouvert : en-tête clair partout, même sur la photo des pages formule (spécificité 0,4,1 > 0,3,0) */
body.menu-open .nav { -webkit-backdrop-filter: none; }
body.menu-open.page-formule .nav-interieure:not(.solid) { background: var(--ivory); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
body.menu-open .nav .nav-cta:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }

/* ---------- En-tête de page ---------- */
.page-hero { padding: calc(90px + clamp(32px, 6vw, 90px)) 0 var(--sp-m); }
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7.6rem); line-height: .94; letter-spacing: -.025em;
  overflow-wrap: break-word;
}
.page-hero h1 em { color: var(--green-2); }
.page-hero-lead {
  max-width: 46ch; margin: clamp(24px, 3vw, 36px) 0 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: italic; line-height: 1.35;
  color: var(--muted);
}
.page-hero-lead a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .3s; }
.page-hero-lead a:hover { text-decoration-color: var(--brass); }

/* Avec photo plein cadre (pages formule) */
.page-hero-photo {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 76vh; min-height: 76svh;
  padding: 130px 0 clamp(40px, 7vh, 80px);
  background: var(--green-deep); color: var(--ivory);
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 40, 31, .55) 0%, rgba(19, 40, 31, 0) 28%),
    linear-gradient(90deg, rgba(19, 40, 31, .55) 0%, rgba(19, 40, 31, 0) 60%),
    linear-gradient(0deg, rgba(19, 40, 31, .82) 0%, rgba(19, 40, 31, .15) 60%);
}
.page-hero-photo .page-hero-content { position: relative; z-index: 2; }
.page-hero-photo h1, .page-hero-photo .page-hero-lead { text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.page-hero-photo h1 em { color: var(--brass-lt); }
.page-hero-photo .page-hero-lead { color: var(--ivory); }
.page-hero-photo .page-hero-lead a { color: var(--ivory); }

/* Centré (404, merci) */
.page-hero-center { display: flex; flex-direction: column; justify-content: center; min-height: 80vh; min-height: 80svh; }
.page-hero-center .page-hero-content { text-align: center; }
.page-hero-center .page-hero-lead { margin-left: auto; margin-right: auto; }
.page-hero-center .btn { margin-top: clamp(32px, 4vw, 48px); }

/* Contenu qui suit directement un en-tête clair : pas de double espacement */
.page-hero:not(.page-hero-photo) + .section { padding-top: 0; }
.page-hero:not(.page-hero-photo) + .rates { padding-top: var(--sp-m); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: .8rem; letter-spacing: .04em; color: var(--muted);
}
.breadcrumb a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.breadcrumb a:hover { color: var(--ink); background-size: 100% 1px; }
.breadcrumb [aria-hidden="true"] { opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
/* Sur fond sombre (photo) */
.breadcrumb-light, .page-hero-photo .breadcrumb { color: var(--ivory); }
/* Textes posés sur une photo : ombre portée pour rester lisibles sur les zones claires (contrôle qualité C4) */
.page-hero-photo .breadcrumb, .page-hero-photo .label, .book-media-text .breadcrumb, .book-media-text .label { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.breadcrumb-light a:hover, .page-hero-photo .breadcrumb a:hover,
.breadcrumb-light [aria-current="page"], .page-hero-photo .breadcrumb [aria-current="page"] { color: var(--ivory); }

/* ---------- Sections génériques ---------- */
.section { padding: var(--sp-l) 0; }

/* Deux colonnes : texte / liste */
.split-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.split-intro h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.split-intro h2 em { color: var(--green-2); }

/* Encadré d'information */
.notice {
  max-width: 60ch; margin: 32px 0 0; padding: 16px 22px;
  border-left: 2px solid var(--brass); background: rgba(205, 178, 138, .14);
  font-size: .95rem; line-height: 1.6;
}

/* Équipements */
.equip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--line);
}
.equip li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); font-size: .98rem; overflow-wrap: break-word; }
.equip li::before { content: ""; position: absolute; left: 0; top: calc(14px + .85em); width: 12px; height: 1px; background: var(--brass); }

/* ---------- Formules : variantes ---------- */
.offer-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.offer h3 a, .offer-img { text-decoration: none; }
/* Titre de carte : un filet apparaît (l'ancien passage en italique changeait la largeur du texte au survol) */
.offer h3 a { text-decoration: underline 1px transparent; text-underline-offset: .16em; transition: text-decoration-color .4s var(--ease); }
.offer h3 a:hover { text-decoration-color: currentColor; }

/* ---------- Pièce par pièce : grille de cartes (photo, nom, détails) ---------- */
.pieces-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
.piece-card { min-width: 0; }
.piece-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  padding: 0; border: 0; background: var(--paper); cursor: zoom-in; text-decoration: none;
}
.piece-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .piece-photo:hover img { transform: scale(1.04); } }
.piece-more {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px;
  background: rgba(19, 40, 31, .78); color: var(--ivory);
  font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.piece-soon {
  display: grid; place-items: center; cursor: default;
  border: 1px dashed rgba(26, 29, 27, .3);
  background: repeating-linear-gradient(135deg, var(--paper) 0 14px, #e8e0d1 14px 15px);
}
.piece-soon span { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.piece-name { margin: 16px 0 0; font-size: clamp(1.4rem, 1.8vw, 1.7rem); font-weight: 400; line-height: 1.15; }
.piece-details { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .92rem; color: var(--muted); }
.piece-details li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--brass); }

/* ---------- En-tête d'une formule : l'essentiel en une ligne ---------- */
.hero-facts {
  list-style: none; margin: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 36px); padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; max-width: 60rem;
}
.hero-facts li {
  padding: 7px 14px; border: 1px solid rgba(246, 242, 234, .38);
  font-size: .9rem; line-height: 1.3; background: rgba(19, 40, 31, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-facts b { font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.page-hero-photo .btn-small { background: var(--ivory); color: var(--ink); }
.page-hero-photo .btn-small::before { background: var(--brass-lt); }

/* ---------- Accueil : chiffres clés juste sous le hero ---------- */
.section-chiffres { padding: var(--sp-m) 0 0; }
.section-chiffres .figures { margin-top: 0; }

/* ---------- Bandeau d'appel final ---------- */
.cta-band {
  padding: var(--sp-l) 0;
  background: var(--green-deep); color: var(--ivory);
  border-bottom: 1px solid var(--line-lt); /* sépare du pied de page, de même couleur */
  text-align: center;
}
.cta-inner h2 em { color: var(--brass-lt); }
.cta-inner > p { margin: 26px auto 44px; max-width: 40ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: rgba(246, 242, 234, .72); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 40px; }
.cta-band .btn { background: var(--brass-lt); color: var(--ink); }
.cta-band .btn::before { background: var(--ivory); }
.cta-band .link-arrow { color: var(--ivory); }

/* ---------- Texte long (mentions légales) ---------- */
.prose > * { max-width: 68ch; }
.prose { overflow-wrap: break-word; }
.prose .notice { margin: 0 0 clamp(40px, 5vw, 64px); }
.prose h2 { margin: clamp(40px, 5vw, 64px) 0 16px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; line-height: 1.15; }
.prose .notice + h2 { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- Tarifs ---------- */
.rates-note { max-width: 60ch; margin: 24px 0 0; font-size: .92rem; }
.rates-table thead th a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.rates-table thead th a:hover { color: var(--ink); background-size: 100% 1px; }
/* Prix d'une formule : une ligne (le détail par saison est sur la page Tarifs), puis le calendrier */
main [id] { scroll-margin-top: 100px; } /* une ancre ne passe pas sous l'en-tête fixe */
.prix { max-width: 62ch; }
.prix .label { margin-bottom: 18px; }
.prix-ligne { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
.prix-ligne b { font-weight: 400; color: var(--green); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.prix .rates-note { margin: 14px 0 22px; }
/* Calendrier seul (page Réserver) */
.rates-compact { padding: var(--sp-m) 0; }
.rates-compact .cal { margin-top: 0; }

/* ---------- Calendrier ---------- */
.cal-head .cal-title { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 400; margin-right: auto; }
.tabs button[aria-pressed="true"] { background: var(--green); color: var(--ivory); }
.month h3 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.5rem; line-height: 1.7; letter-spacing: normal; }
.day { position: relative; }
.cal-loading {
  grid-column: 1 / -1; display: grid; place-items: center; min-height: 280px; margin: 0; padding: 32px 0;
  text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--muted);
}
.cal-loading.cal-erreur { color: #b4573a; } /* 1,5 rem : texte « grand », contraste suffisant sur --paper */

/* ---------- Réserver ---------- */
.book-media-text { padding-top: 120px; } /* ne passe jamais sous la nav fixe si le texte déborde */
.book-media-text h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.book-media-text h1 em { color: var(--brass-lt); }
.book > .form { padding-top: 120px; }
.book-media-text > .book-platforms:not(.label) {
  margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line-lt);
  font-family: var(--sans); font-style: normal; font-size: .9rem; color: rgba(246, 242, 234, .75);
}
.book-media-text .book-platforms a {
  margin-left: 14px; color: var(--ivory);
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background-size: 100% 1px; padding-bottom: 3px;
}
.book-media-text .book-platforms a:hover { color: var(--brass-lt); background-size: 40% 1px; }

/* Formulaire : compléments */
.form-dispo { margin: -12px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.4; color: var(--muted); }
.form-dispo[data-etat="libre"] { color: var(--green); }
.form-dispo[data-etat="pris"] { color: #b4573a; }
.form-dispo[data-etat="info"] { color: var(--muted); }
/* Vide : retiré de la grille (pas d'écart) sans display:none, pour que role="status" reste annoncé */
.form-dispo:empty { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.form-legal { margin: 0; max-width: 60ch; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.form-legal a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.form-status a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.form-status[data-etat="erreur"] { color: #b4573a; }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-bottom-color: #b4573a; }

/* ---------- Pied de page : colonnes de liens ---------- */
.footer-cols > * { display: grid; align-content: start; gap: 6px; }
.footer-cols > * > a { justify-self: start; }
.footer-cols .footer-title { margin-bottom: 8px; font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-lt); }
.footer-cols small { color: rgba(246, 242, 234, .58); } /* contraste 5,6:1 (AA) */

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  /* Grille à 2 cartes : la carte vedette ne prend pas toute la ligne (sinon une case vide) */
  .offer-grid-2 .offer-featured { grid-column: auto; display: flex; }
  .offer-grid-2 .offer-featured .offer-img { height: auto; min-height: 0; margin-bottom: 26px; aspect-ratio: 4 / 3; }
  .offer-grid-2 .offer-featured > :not(.offer-img):not(.offer-tag) { margin-left: 16px; }
  .offer-grid-2 .offer-featured .offer-floor { margin-top: 0; }
}

@media (max-width: 860px) {
  .page-formule .nav-interieure:not(.solid) { padding-top: 16px; padding-bottom: 16px; }
  .page-hero-photo { min-height: 70vh; min-height: 70svh; padding-top: 110px; }
  .page-hero-photo::after { background: linear-gradient(0deg, rgba(19, 40, 31, .88) 0%, rgba(19, 40, 31, .55) 100%); }

  .split-intro { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .offer-grid-2 { grid-template-columns: minmax(0, 1fr); }

  .cal-head .cal-title { width: 100%; }
  .cal-loading { min-height: 200px; }

  .book > .form { padding-top: 56px; }
}

@media (max-width: 620px) {
  /* Moins de défilement : espacements resserrés */
  .section { padding: 56px 0; }
  .section-chiffres { padding: 40px 0 0; }
  .offers { padding: 40px 0 64px; }
  .rates, .cta-band { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .split-intro { gap: 28px; }
  .footer { padding-top: 56px; }

  /* Cartes des formules : photo moins haute (y compris la carte vedette) */
  .offer-grid .offer-img { aspect-ratio: 3 / 2; }
  /* Page Maison entière : les 2 logements en cartes horizontales (photo à gauche) */
  .offer-grid-2 .offer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 14px; align-items: start; padding: 10px 10px 16px; }
  .offer-grid-2 .offer-img { grid-column: 1; grid-row: 1 / span 5; aspect-ratio: 4 / 5; margin: 0; }
  .offer-grid-2 .offer > :not(.offer-img):not(.offer-tag) { grid-column: 2; margin-left: 0; margin-right: 0; }
  .offer-grid-2 .offer-floor { margin-top: 4px; }
  .offer-grid-2 .offer h3 { font-size: 1.6rem; margin-bottom: 8px; }
  .offer-grid-2 .offer-specs { font-size: .875rem; margin-bottom: 8px; }
  .offer-grid-2 .offer-specs b { font-size: 1.05rem; }
  .offer-grid-2 .offer-price { margin-bottom: 12px; font-size: 1rem; }
  .offer-grid-2 .offer-price b { font-size: 1.3rem; }
  .offer-grid-2 .offer-actions { gap: 10px 18px; }

  /* Pièce par pièce : 2 colonnes */
  .pieces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .piece-name { margin-top: 10px; font-size: 1.15rem; }
  .piece-details { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.45; }
  .piece-details li:not(:last-child)::after { content: none; }
  .piece-more { right: 6px; bottom: 6px; padding: 3px 8px; font-size: .65rem; letter-spacing: .1em; }

  /* Équipements : 2 colonnes */
  .equip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .equip li { padding: 12px 0 12px 20px; font-size: .9rem; line-height: 1.4; }
  .equip li::before { top: calc(12px + .7em); width: 10px; }
}

@media (max-width: 480px) {
  .book-media-text .book-platforms a { margin-left: 0; margin-right: 14px; }
}

/* =========================================================
   La région et Infos pratiques (refonte du 5 nov.)
   Couleurs douces tirées de la charte, chacune avec un rôle :
   vert = l'essentiel (circuit, horaires, « Venir à… ») · sable = l'inclus, la pierre · sauge = la nature, la FAQ
   · laiton = le terroir et les pastilles de temps. Rayons : pastilles 999px, tuiles 14px, panneaux 22px.
   Pictogrammes : partials/picto.njk (SVG au trait, couleur = currentColor).
   ========================================================= */
:root {
  --sauge: #dbe5d3;
  --sable: #f0e0c2;
  --rayon: 14px;
  --rayon-grand: 22px;
}

.picto { flex: none; width: 24px; height: 24px; }

/* ---------- En-tête photo court : la nav reste claire au-dessus, voile en bas seulement (photo plus lumineuse) ---------- */
.page-hero-court { min-height: min(64vh, 620px); min-height: min(64svh, 620px); }
.page-hero-court::after {
  background: linear-gradient(0deg, rgba(19, 40, 31, .82) 0%, rgba(19, 40, 31, .45) 45%, rgba(19, 40, 31, .08) 80%, rgba(19, 40, 31, 0) 100%);
}
.page-hero-court .breadcrumb { margin-bottom: clamp(16px, 2.4vw, 32px); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }

/* ---------- La région : une carte colorée par lieu ---------- */
.lieux-sec { padding: var(--sp-s) 0; }
.lieux {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px);
}
/* Ordre de lecture : nom, texte, temps ; la grille place le temps et le pictogramme en haut de la carte */
.lieu {
  min-width: 0; min-height: clamp(220px, 18vw, 256px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "temps picto" ". ." "nom nom" "texte texte";
  padding: clamp(14px, 1.6vw, 24px); border-radius: var(--rayon);
  background: var(--sable); color: var(--green-deep);
}
.lieu:nth-child(4n+1) { background: var(--green); color: var(--ivory); }
.lieu:nth-child(4n+3) { background: var(--sauge); }
.lieu:nth-child(4n) { background: var(--brass-lt); }
.lieu-nom { grid-area: nom; margin-top: 18px; font-size: clamp(1.3rem, 1.75vw, 1.65rem); line-height: 1.15; }
.lieu-texte { grid-area: texte; margin: 8px 0 0; font-size: .98rem; line-height: 1.45; }
.lieu-temps {
  grid-area: temps; align-self: start; justify-self: start; margin: 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 9px; border-radius: 999px;
  background: var(--green-deep); color: var(--ivory);
  font-size: .95rem; font-weight: 600; line-height: 1.2; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums;
}
.lieu-temps .picto { width: 17px; height: 17px; stroke-width: 1.8; }
.lieu:nth-child(4n+1) .lieu-temps { background: var(--brass-lt); color: var(--green-deep); }
.lieu-picto { grid-area: picto; width: clamp(40px, 4.2vw, 60px); height: clamp(40px, 4.2vw, 60px); stroke-width: 1.15; color: var(--green); }
.lieu:nth-child(4n+1) .lieu-picto { color: var(--brass-lt); }

/* ---------- La région : bandeau « Venir à… » (pictogramme par accès, carte dans un cadre arrondi) ---------- */
.venir { padding: var(--sp-m) 0; background: var(--green); color: var(--ivory); border-bottom: 1px solid var(--line-lt); }
.venir-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.venir-titre { margin-bottom: clamp(24px, 3vw, 40px); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; }
.venir-liste { margin: 0; display: grid; gap: clamp(18px, 2vw, 26px); }
.venir-liste > div { position: relative; min-height: 46px; padding-left: 64px; }
.venir-liste dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.venir-liste dd { margin: 4px 0 0; color: rgba(246, 242, 234, .82); line-height: 1.5; }
.venir-icone {
  position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(205, 178, 138, .16); color: var(--brass-lt);
}
.venir-carte {
  height: clamp(300px, 34vw, 440px); overflow: hidden; isolation: isolate;
  border-radius: var(--rayon-grand); background: var(--green-2); box-shadow: 0 0 0 1px var(--line-lt);
}
.venir-carte iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Infos pratiques : tuiles « Horaires » (vert) et « Inclus dans chaque séjour » (sable) ---------- */
.essentiel { padding: var(--sp-s) 0 clamp(32px, 4vw, 56px); }
.essentiel-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 3vw, 44px) clamp(10px, 1.4vw, 20px); }
.horaires-bloc, .inclus-bloc { min-width: 0; display: flex; flex-direction: column; }
.tuiles-titre { margin-bottom: 16px; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; }
.tuile { border-radius: var(--rayon); padding: clamp(14px, 1.6vw, 22px); }
.horaires { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.tuile-horaire { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: var(--green); color: var(--ivory); }
.tuile-horaire dt { display: flex; align-items: center; gap: 10px; font-weight: 600; line-height: 1.3; }
.tuile-horaire dt .picto { width: 26px; height: 26px; color: var(--brass-lt); }
.tuile-horaire dd { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; font-variant-numeric: lining-nums; }
.tuile-horaire small { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: .95rem; line-height: 1.3; color: rgba(246, 242, 234, .82); }
.inclus-liste {
  flex: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px);
}
.tuile-inclus { display: flex; flex-direction: column; gap: 14px; background: var(--sable); color: var(--green-deep); font-size: 1rem; line-height: 1.35; }
.tuile-inclus .picto { width: 30px; height: 30px; color: var(--green); }

/* ---------- Infos pratiques : FAQ dans un panneau sauge, en accordéon ---------- */
.questions { padding: 0 0 clamp(56px, 7vw, 100px); }
.faq-panneau {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto 1fr;
  grid-template-areas: "titre liste" "contact liste"; column-gap: clamp(32px, 5vw, 88px);
  padding: clamp(22px, 4vw, 56px); border-radius: var(--rayon-grand);
  background: var(--sauge); color: var(--green-deep);
}
.faq-panneau :focus-visible { outline-color: var(--green); }
.faq-titre { grid-area: titre; }
.faq-liste { grid-area: liste; }
.faq-item { border-bottom: 1px solid rgba(19, 40, 31, .16); }
.faq-item:first-child { border-top: 1px solid rgba(19, 40, 31, .16); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-signe {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: var(--ivory); transition: background .3s;
}
.faq-signe .picto { width: 16px; height: 16px; stroke-width: 2; }
.faq-item summary:hover .faq-signe { background: var(--green-deep); }
/* « + » qui devient « − » à l'ouverture */
.picto-plus-v { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.faq-item[open] .picto-plus-v { transform: scaleY(0); }
.faq-item p { margin: 0 0 18px; max-width: 62ch; padding-right: 46px; color: var(--ink); line-height: 1.6; }
.faq-contact { grid-area: contact; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.faq-contact p { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.lien-pastille {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 9px 18px 9px 12px; border-radius: 999px;
  background: var(--white); color: var(--green-deep); text-decoration: none;
  font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere;
  transition: background .3s, color .3s;
}
.lien-pastille .picto { width: 20px; height: 20px; color: var(--green); transition: color .3s; }
.lien-pastille:hover { background: var(--green); color: var(--ivory); }
.lien-pastille:hover .picto { color: var(--brass-lt); }

/* ---------- Rythme : fonds alternés d'une section à l'autre (DESIGN.md § 4) ----------
   Règle : jamais trois sections ivoire de suite. Ces deux classes se posent sur une
   <section> existante ; elles ne changent ni son contenu, ni ses attributs data-*.
   Placées en fin de fichier pour passer devant .split-intro et .section-head. */
.section-vert { background: var(--green); color: var(--ivory); }
.section-vert .label { color: var(--brass-lt); }
.section-vert h2 em { color: var(--brass-lt); }
.section-vert .equip { border-top-color: var(--line-lt); }
.section-vert .equip li { border-bottom-color: var(--line-lt); }
.section-vert .equip li::before { background: var(--brass-lt); }
.section-vert a:not(.btn) { color: var(--ivory); }

.section-sable { background: var(--sable); color: var(--green-deep); }
.section-sable .label { color: var(--brass-ink); }
.section-sable h2 em { color: var(--green); }
.section-sable .equip { border-top-color: rgba(19, 40, 31, .2); }
.section-sable .equip li { border-bottom-color: rgba(19, 40, 31, .2); }

/* Accueil : le bandeau des formules respire comme une vraie section, et les chiffres
   clés gardent de l'ivoire sous eux avant que le sable commence. */
.offers.section-sable { padding-top: var(--sp-l); }
.section-chiffres { padding-bottom: var(--sp-s); }

@media (max-width: 620px) {
  .offers.section-sable { padding-top: 56px; }
  .section-chiffres { padding-bottom: 40px; }
}

/* ---------- Intertitres « magazine » : le filet du .label court sur toute la largeur (DESIGN.md § 5) ---------- */
.section-head .label:not(.label-center), .galerie-tete .label, .split-intro .label { display: flex; }
.section-head .label:not(.label-center)::after, .galerie-tete .label::after, .split-intro .label::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3;
}

/* Petit nombre en exposant après un titre (« Pièce par pièce¹⁰ ») */
.titre-sup sup {
  margin-left: .18em; vertical-align: super; line-height: 0;
  font-family: var(--sans); font-size: .26em; font-weight: 500; letter-spacing: .08em;
  color: var(--brass-ink); font-variant-numeric: lining-nums tabular-nums;
}
.section-vert .titre-sup sup { color: var(--brass-lt); }

/* ---------- Accueil : « La maison en images » (partials/galerie.njk, modules/galerie.js) ----------
   Par défaut : bande qui défile au doigt. .galerie-epinglee (ajoutée par le JS sur ordinateur) : section épinglée,
   la bande glisse à l'horizontale pendant que la page défile. Hauteur des photos : --galerie-h ; largeur = format. */
.galerie { --galerie-h: min(64vw, 440px); padding: var(--sp-l) 0; overflow-x: clip; }
.galerie-tete { margin-bottom: clamp(28px, 3vw, 44px); }
.galerie-titres { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.galerie-nav { display: flex; align-items: center; gap: 10px; }
.galerie-compteur { margin: 0 12px 0 0; font-size: .78rem; letter-spacing: .2em; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.galerie-compteur span { color: var(--ink); }
.galerie-piste {
  position: relative; list-style: none; margin: 0; padding: 0 var(--pad);
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.galerie-piste::-webkit-scrollbar { display: none; }
.galerie-item { flex: none; scroll-snap-align: start; }
.galerie-item figure { margin: 0; }
.galerie-photo {
  display: block; height: var(--galerie-h); overflow: hidden;
  padding: 0; border: 0; background: var(--paper); cursor: zoom-in;
}
.galerie-paysage .galerie-photo { aspect-ratio: 4 / 3; }
.galerie-portrait .galerie-photo { aspect-ratio: 3 / 4; }
.galerie-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .galerie-photo:hover img { transform: scale(1.04); } }
.galerie figcaption {
  width: 0; min-width: 100%; /* la légende suit la largeur de la photo, sans l'élargir */
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 14px;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.25;
}
.galerie-num { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .14em; color: var(--brass-ink); font-variant-numeric: lining-nums tabular-nums; }
.galerie figcaption small { font-family: var(--sans); font-size: .82rem; color: var(--muted); }

.galerie.galerie-epinglee { --galerie-h: min(56vh, 600px); height: calc(100vh + var(--galerie-course, 0px)); padding: 0; }
.galerie-epinglee .galerie-cadre {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.galerie-epinglee .galerie-piste { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }

@media (max-width: 620px) {
  .galerie { padding: 56px 0; }
  .galerie-titres { align-items: center; }
  .galerie-compteur { display: none; }
  .galerie-nav .round-btn { width: 44px; height: 44px; }
  .galerie figcaption { font-size: 1rem; }
}

@media (max-width: 1080px) {
  .lieux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .page-hero-court { min-height: min(52vh, 440px); min-height: min(52svh, 440px); padding-top: 104px; }
  .venir-grille, .essentiel-grille { grid-template-columns: minmax(0, 1fr); }
  .venir-carte { height: 300px; }
  .faq-panneau { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "titre" "liste" "contact"; }
}

@media (max-width: 620px) {
  .lieu { min-height: 0; padding: 14px; }
  .lieu-nom { margin-top: 20px; font-size: 1.15rem; }
  .lieu-texte { margin-top: 6px; font-size: .875rem; }
  .lieu-temps { gap: 5px; padding: 4px 10px 4px 7px; font-size: .85rem; }
  .lieu-temps .picto { width: 15px; height: 15px; }
  .lieu-picto { width: 34px; height: 34px; }
  .venir-liste > div { padding-left: 58px; }
  .venir-liste dt { font-size: 1.2rem; }
  .venir-icone { width: 42px; height: 42px; }
  .inclus-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile-inclus { gap: 10px; font-size: .94rem; }
  .tuile-inclus .picto { width: 28px; height: 28px; }
  .faq-item summary { padding: 13px 0; font-size: 1.04rem; }
  .faq-item p { padding-right: 0; font-size: .97rem; }
  .faq-contact { margin-top: 22px; }
}
