/* Ta Trace — feuille de style du site (spec v3 : projection d'abord, mobile en plancher). */

:root {
  --calcaire:   #F2EEE6;
  --calcaire-2: #E7E0D3;
  --encre:      #14100C;
  --encre-2:    #4F463D;
  --mer:        #1B4D63;
  --mer-pale:   #D5DEDC;
  --ocre:       #B5702F;   /* aplats, tracés, jauges */
  --ocre-texte: #8A5019;   /* texte ocre : contraste AA sur calcaire */
  --nuit:       #0B0D0C;
  --brume:      #A9B1AD;   /* texte secondaire sur nuit : AA */
  --filet:      rgba(20, 16, 12, .16);
  --filet-nuit: rgba(242, 238, 230, .18);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "Space Mono", ui-monospace, Menlo, monospace;

  --t-corps: 1.15rem;
  --gutter: clamp(1rem, 4.5vw, 5rem);
  --wrap: 84rem;
  --bandeau-h: 4rem;
}

/* La racine grandit avec l'écran : ≈ 17,6 px à 1280, 20 px dès 1600 — lisible au fond d'une salle. */
html {
  font-size: clamp(16px, 8px + .75vw, 20px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bandeau-h) + 1.5rem);
}

@media (max-width: 700px) {
  :root { --t-corps: 1rem; --bandeau-h: 3.6rem; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  font-size: var(--t-corps);
  line-height: 1.55;
  background: var(--calcaire);
  color: var(--encre);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.promesse {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.promesse em, .titre em { font-style: italic; }

.sous-titre { font-family: var(--serif); font-style: italic; line-height: 1.2; }

.titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.chapo-grand {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.22;
  max-width: 34ch;
  text-wrap: pretty;
}

.texte { max-width: 62ch; text-wrap: pretty; }
.texte + .texte { margin-top: .9em; }

.num { color: var(--ocre-texte); }

.prefig {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.prefig::before { content: "◇ "; }

/* ---- Grain photo ----------------------------------------------------------- */

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1em 1.8em;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.btn--plein { background: var(--encre); color: var(--calcaire); border-color: var(--encre); }
.btn--plein:hover, .btn--plein:focus-visible { background: var(--ocre-texte); border-color: var(--ocre-texte); }
.btn__fleche { transition: transform .3s ease; }
.btn:hover .btn__fleche { transform: translateX(.3em); }

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

.bandeau {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #FBF6EC;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.apres-hero .bandeau, .no-js .bandeau {
  background: rgba(242, 238, 230, .94);
  color: var(--encre);
  border-bottom-color: var(--filet);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.bandeau__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: var(--bandeau-h); }

.bandeau__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.bandeau__nav { display: flex; gap: clamp(.9rem, 1.8vw, 2rem); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.bandeau__nav a {
  text-decoration: none;
  opacity: .72;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: opacity .25s ease, border-color .25s ease;
}

.bandeau__nav a:hover { opacity: 1; }
.bandeau__nav a.est-active { opacity: 1; border-bottom-color: currentColor; }
.bandeau__nav [hidden] { display: none; }

.bandeau__cta { padding: .75em 1.25em; font-size: .72rem; }
body:not(.apres-hero) .bandeau__cta { background: transparent; color: inherit; border-color: rgba(251, 246, 236, .8); }
.no-js body .bandeau__cta { background: var(--encre); color: var(--calcaire); }

@media (max-width: 1100px) {
  .bandeau__ligne { flex-wrap: wrap; column-gap: .8rem; }
  .bandeau__logo { flex: 1; }
  .bandeau__nav {
    order: 3;
    flex-basis: 100%;
    gap: .45rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .7rem;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
            mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .bandeau__nav::-webkit-scrollbar { display: none; }
  .bandeau__nav a { padding: .5rem .85rem; border: 1px solid var(--filet); border-radius: 99px; }
  .bandeau__nav a.est-active { background: var(--encre); color: var(--calcaire); border-color: var(--encre); }
  .js body:not(.apres-hero) .bandeau__nav { display: none; }
}

/* ---- Mode présentation (touches ← → 1-9) ------------------------------------ */

.compteur {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  padding: .45rem .8rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  background: rgba(20, 16, 12, .86);
  color: var(--calcaire);
  opacity: 0;
  transform: translateY(.5rem);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.presentation .compteur { opacity: 1; transform: none; }

/* ---- 1 · Premier écran -------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 80svh;
  display: flex;
  align-items: flex-end;
  color: #FBF6EC;
  overflow: hidden;
  background: #3A3128;
}

.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(24, 14, 6, .55) 0%, rgba(24, 14, 6, 0) 24%),
    linear-gradient(to top, rgba(11, 13, 12, .86) 0%, rgba(11, 13, 12, .38) 44%, rgba(11, 13, 12, 0) 72%);
}

.hero .grain { z-index: 0; }
.hero__texte { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(6.5rem, 14vh, 9rem); display: grid; gap: 1.1rem; }
.hero__titre { font-size: clamp(2.6rem, 6.8vw, 7.4rem); max-width: 13ch; text-shadow: 0 .06em .6em rgba(11, 13, 12, .35); }
.hero__sous { font-size: clamp(1.2rem, 2.3vw, 1.9rem); }

.carte-faits {
  position: relative;
  z-index: 2;
  margin-top: -4.2rem;
  background: var(--calcaire);
  border: 1px solid var(--filet);
  box-shadow: 0 1.4rem 3rem -1.6rem rgba(11, 13, 12, .45);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem clamp(1.1rem, 3vw, 2.4rem);
}

.faits { list-style: none; display: grid; grid-template-columns: repeat(5, auto); justify-content: start; }
.faits li { display: grid; gap: .3rem; padding: 0 clamp(.9rem, 1.8vw, 1.8rem); border-left: 1px solid var(--filet); }
.faits li:first-child { padding-left: 0; border-left: 0; }
.faits span { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.faits b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.05; white-space: nowrap; }
.carte-faits__action { display: grid; gap: .7rem; justify-items: end; }

.intro { padding-top: clamp(3.5rem, 8vw, 6rem); }

@media (max-width: 1250px) {
  .carte-faits { grid-template-columns: minmax(0, 1fr); }
  .carte-faits__action { grid-auto-flow: column; justify-content: start; align-items: center; gap: 1.4rem; }
}

@media (max-width: 700px) {
  .hero { min-height: 62svh; }
  .hero__texte { padding-bottom: 3.8rem; gap: .8rem; }
  .carte-faits { margin-top: -2.4rem; padding: 1.1rem 1.1rem 1.25rem; gap: 1.1rem; }
  .faits { grid-template-columns: 1fr 1fr; row-gap: .85rem; }
  .faits li { padding: 0 .6rem 0 0; border-left: 0; }
  .faits li:first-child { grid-column: 1 / -1; }
  .carte-faits__action { grid-auto-flow: row; justify-items: stretch; gap: .7rem; }
}

/* ---- Rubriques (squelette commun) ------------------------------------------------ */

.rubrique { padding-block: clamp(4rem, 9vw, 7.5rem); }
.rubrique__tete { display: grid; gap: .9rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
/* Deux rubriques qui se suivent : un filet au lieu d'une double marge. */
.rubrique + .rubrique { padding-top: 0; }
.rubrique + .rubrique > .wrap { border-top: 1px solid var(--filet); padding-top: clamp(3.5rem, 8vw, 6rem); }
.rubrique__tete .texte { color: var(--encre-2); }

/* ---- 2 · Aperçu -------------------------------------------------------------------- */

.tableau {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--encre);
  border-bottom: 1px solid var(--encre);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tableau > div { padding: 1.1rem 1rem 1.2rem; border-left: 1px solid var(--filet); display: grid; gap: .45rem; }
.tableau > div:first-child { border-left: 0; padding-left: 0; }
.tableau dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.tableau dd { font-family: var(--mono); font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.tableau small { font-size: .42em; margin-left: .35em; letter-spacing: .04em; color: var(--encre-2); }

.apercu__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }

.fiche { border-top: 1px solid var(--encre); }
.fiche__ligne { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); padding-top: .25rem; }
.fiche dd { line-height: 1.45; }
.fiche dd strong { font-weight: 500; }
.fiche dd small { display: block; font-size: .86em; color: var(--encre-2); margin-top: .15rem; }

.jauges { display: grid; gap: 1.7rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.jauge__tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .6rem; }
.jauge__nom { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.jauge__note { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.jauge__note small { font-size: .5em; color: var(--encre-2); }
.jauge__barre { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.jauge__barre i { height: .5rem; background: var(--calcaire-2); border: 1px solid var(--filet); }
.jauge__barre i.plein { background: var(--encre); border-color: var(--encre); }
.jauge--autonomie .jauge__barre i.plein { background: var(--ocre); border-color: var(--ocre); }
.jauge__texte { margin-top: .6rem; font-size: .92em; color: var(--encre-2); }

.rassure { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--encre); }
.rassure li { padding: 1.1rem 1rem 1.2rem 0; border-bottom: 1px solid var(--filet); display: grid; gap: .35rem; align-content: start; }
.rassure li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--filet); }
.rassure b { font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1; }
.rassure span { font-size: .9em; line-height: 1.45; color: var(--encre-2); }

@media (max-width: 900px) {
  .tableau { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tableau > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .tableau > div:nth-child(n + 4) { border-top: 1px solid var(--filet); }
  .apercu__grille { grid-template-columns: minmax(0, 1fr); }
  .apercu__grille > div:last-child { order: -1; }
}

@media (max-width: 700px) {
  .tableau > div { padding: .8rem .55rem .9rem; }
  .fiche__ligne { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
}

/* ---- Ouverture de rubrique (photo pleine largeur) ------------------------------------ */

.ouverture {
  position: relative;
  isolation: isolate;
  min-height: clamp(22rem, 64vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: #FBF6EC;
  overflow: hidden;
  background: #2E3A3A;
}

.ouverture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ouverture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 13, 12, .8) 0%, rgba(11, 13, 12, .2) 55%, rgba(11, 13, 12, 0) 100%);
}

.ouverture__texte { padding-block: clamp(2.2rem, 6vw, 4.5rem); width: 100%; display: grid; gap: .9rem; }
.ouverture__phrase { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: 1; max-width: 18ch; text-wrap: balance; }

/* ---- 3 · Itinéraire : carte + jours --------------------------------------------------- */

.itineraire__grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.carte { position: sticky; top: calc(var(--bandeau-h) + 1.5rem); }
.carte__svg { width: 100%; height: auto; max-height: calc(100vh - var(--bandeau-h) - 5rem); margin-inline: auto; }
.carte__mer { fill: var(--mer-pale); }
.carte__terre { fill: var(--calcaire-2); stroke: rgba(20, 16, 12, .28); stroke-width: 1; }

.seg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seg--route, .seg--boucle { stroke: var(--ocre); stroke-width: 4.5; }
.seg--boucle { stroke-width: 3; }
.seg--navette { stroke: var(--encre-2); stroke-width: 2.4; stroke-dasharray: 5 6; }

/* Écran large, avec JS : le tracé se dessine au fil des jours (la carte reste fixe à l'écran).
   Sans JS ou sur petit écran : tout le tracé est visible d'emblée. */
.base circle { fill: var(--ocre); stroke: var(--encre); stroke-width: 2.5; transition: fill .4s ease; }
@media (min-width: 901px) {
  .js .seg--route, .js .seg--boucle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.4, 0, .2, 1); }
  .js .seg--navette { opacity: 0; transition: opacity .8s ease; }
  .js .seg.est-trace { stroke-dashoffset: 0; opacity: 1; }
  .js .seg.est-courant { stroke: var(--encre); }
  .js .base circle { fill: var(--calcaire); }
  .js .base.est-atteinte circle { fill: var(--ocre); }
}
.lieu circle { fill: var(--encre); }
.carte__svg text { font-family: var(--sans); font-size: 19px; fill: var(--encre); paint-order: stroke; stroke: var(--calcaire-2); stroke-width: 5px; stroke-linejoin: round; }
.carte__svg .base text { font-weight: 600; }
.carte__svg .etiquette-mer { fill: var(--mer); stroke: var(--mer-pale); font-style: italic; font-family: var(--serif); font-size: 24px; }
.carte__echelle line { stroke: var(--encre); stroke-width: 2; }
.carte__echelle text { font-family: var(--mono); font-size: 15px; }

.carte__compteur { margin-top: .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
.carte__compteur b { font-size: 1.9rem; letter-spacing: -.03em; color: var(--encre); text-transform: none; }
.carte__legende { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .6rem; font-size: .82em; color: var(--encre-2); }
.carte__legende span::before { content: ""; display: inline-block; width: 1.6rem; height: 0; margin-right: .45rem; vertical-align: middle; border-top: 3px solid var(--ocre); }
.carte__legende .l-navette::before { border-top: 2px dashed var(--encre-2); }

.jours { list-style: none; }
.phase { padding: 2.2rem 0 1rem; }
.phase:first-child { padding-top: 0; }
.phase h3 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1.05; margin-top: .4rem; }
.phase p { color: var(--encre-2); margin-top: .35rem; max-width: 50ch; }
.phase__img { margin-top: 1rem; }
.phase__img img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.phase__img figcaption { margin-top: .4rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }

.jour { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--filet); transition: opacity .4s ease; }
.jour__num { grid-row: span 3; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.jour__num small { display: block; font-size: .5em; font-weight: 400; letter-spacing: .06em; color: var(--encre-2); text-transform: uppercase; margin-top: .3rem; }
.jour__trajet { font-weight: 500; }
.jour__donnees { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--encre-2); }
.jour__fort { margin-top: .3rem; font-family: var(--serif); font-size: 1.28em; line-height: 1.3; }
.jour.est-actif .jour__num { color: var(--ocre-texte); }

.jours__total { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .itineraire__grille { grid-template-columns: minmax(0, 1fr); }
  .carte { position: static; }
  .carte__svg { max-height: none; max-width: 30rem; }
}

@media (max-width: 700px) {
  .jour { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .jour__num { font-size: 1.2rem; }
}

/* ---- Étiquette de valeur (le projet pédagogique, lisible dans le séjour) ------------------- */

.valeur {
  display: inline-block;
  justify-self: start;
  width: fit-content;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ocre-texte);
  border: 1px solid currentColor;
  padding: .2rem .5rem;
}

.sur-nuit .valeur { color: var(--ocre); }

/* ---- 4 · Au quotidien ---------------------------------------------------------------- */

.moyens { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--encre); }
.moyens li { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--filet); display: grid; gap: .6rem; align-content: start; }
.moyens li:not(:nth-child(3n + 1)) { padding-left: 1.6rem; border-left: 1px solid var(--filet); }
.moyens h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.moyens p { color: var(--encre-2); }

.journee { margin-top: clamp(3rem, 6vw, 4.5rem); }
.journee h3 { font-family: var(--mono); font-weight: 400; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.journee ol { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--encre); }
.journee li { padding: .9rem .8rem 1rem 0; display: grid; gap: .3rem; align-content: start; font-size: .92em; }
.journee li + li { padding-left: .8rem; border-left: 1px solid var(--filet); }
.journee b { font-family: var(--mono); font-size: 1.05rem; }
.journee .note { margin-top: .9rem; color: var(--encre-2); }

@media (max-width: 1100px) {
  .moyens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moyens li, .moyens li:not(:nth-child(3n + 1)) { padding: 1.4rem 1.2rem 1.5rem 0; border-left: 0; }
  .moyens li:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--filet); }
  .journee ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journee li:nth-child(5) { border-left: 0; padding-left: 0; }
  .journee li:nth-child(n + 5) { border-top: 1px solid var(--filet); }
}

@media (max-width: 700px) {
  .moyens { grid-template-columns: minmax(0, 1fr); }
  .moyens li:nth-child(even) { padding-left: 0; border-left: 0; }
  .journee ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journee li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .journee li:nth-child(n + 3) { border-top: 1px solid var(--filet); }
}

/* ---- Rubriques sur fond nuit (projet jeune, seuil) ---------------------------------------- */

.sur-nuit { background: var(--nuit); color: var(--calcaire); }
.sur-nuit .kicker { color: var(--brume); }
.sur-nuit .texte { color: #D9DDD9; }

.projet-jeune { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); }
.projet-jeune__fond img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.projet-jeune::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(11, 13, 12, .92) 0%, rgba(11, 13, 12, .7) 45%, rgba(11, 13, 12, .25) 100%); }
.projet-jeune__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 8rem); line-height: .92; letter-spacing: -.02em; margin: 1rem 0 1.6rem; max-width: 12ch; }
.projet-jeune__titre em { color: var(--ocre); font-style: italic; }
.frise { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--filet-nuit); }
.frise li { padding: 1rem 1rem 0 0; display: grid; gap: .3rem; }
.frise b { font-family: var(--mono); font-size: 1.3rem; color: var(--ocre); }
.frise span { color: #D9DDD9; }
.projet-jeune .valeurs-lien { margin-top: 2rem; display: flex; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 700px) { .frise { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } }

.seuil { min-height: 70vh; display: flex; align-items: center; padding-block: 6rem; }
.seuil p { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
.seuil p em { color: var(--brume); font-style: italic; }

/* ---- 6 · Encadrement et sécurité ---------------------------------------------------------- */

.equipe { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--encre); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.equipe li { padding: 1.3rem 1.3rem 1.5rem 0; border-bottom: 1px solid var(--filet); display: grid; gap: .45rem; align-content: start; }
.equipe li + li { padding-left: 1.3rem; border-left: 1px solid var(--filet); }
.equipe b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.equipe span { color: var(--encre-2); font-size: .94em; }

.securite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bloc-titre { font-family: var(--mono); font-weight: 400; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.points { list-style: none; counter-reset: pt; border-top: 1px solid var(--encre); }
.points li { counter-increment: pt; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); }
.points li::before { content: counter(pt, decimal-leading-zero); font-family: var(--mono); color: var(--ocre-texte); padding-top: .1rem; }
.points strong { font-weight: 600; }
.baignade { margin-top: 1.6rem; padding: 1.2rem 1.3rem; background: var(--mer-pale); border-left: 3px solid var(--mer); }
.baignade strong { color: var(--mer); }

.etsi { border-top: 1px solid var(--encre); }
.etsi div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); }
.etsi dt { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.etsi dt::before { content: "Et si… "; color: var(--ocre-texte); font-style: italic; }
.etsi dd { color: var(--encre-2); }
.contact-sejour { margin-top: 1.6rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }

@media (max-width: 1000px) {
  .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipe li:nth-child(3) { border-left: 0; padding-left: 0; }
  .securite { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .equipe { grid-template-columns: minmax(0, 1fr); }
  .equipe li + li { border-left: 0; padding-left: 0; }
  .etsi div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
}

/* ---- 7 · Qui dirige -------------------------------------------------------------------------- */

.direction { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.direction__nom { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; }
.direction__role { margin-top: .6rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); }
.direction__mot { margin-top: 1.8rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; max-width: 32ch; }
.direction__mot::before { content: "« "; } .direction__mot::after { content: " »"; }
.valeurs { list-style: none; border-top: 1px solid var(--encre); }
.valeurs li { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--filet); display: grid; gap: .3rem; }
.valeurs b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.valeurs span { color: var(--encre-2); }
.recrutement { margin-top: 1.6rem; color: var(--encre-2); }

@media (max-width: 900px) { .direction { grid-template-columns: minmax(0, 1fr); } }

/* ---- 8 · Prix -------------------------------------------------------------------------------- */

.prix__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.postes { list-style: none; border-top: 1px solid var(--encre); }
.postes li { display: grid; grid-template-columns: minmax(0, 1fr) 5rem; gap: .3rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--filet); }
.postes li > span:first-child { font-weight: 500; }
.postes small { grid-column: 1; display: block; font-size: .84em; color: var(--encre-2); }
.postes b { grid-column: 2; grid-row: 1; text-align: right; font-family: var(--mono); font-weight: 400; }
.postes .barre { grid-column: 1 / -1; height: .45rem; background: var(--calcaire-2); }
.postes .barre i { display: block; height: 100%; background: var(--ocre); }
.postes .total { border-bottom: 1px solid var(--encre); }
.postes .total span, .postes .total b { font-weight: 600; font-family: var(--mono); }

.inclus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.inclus ul { list-style: none; display: grid; gap: .4rem; font-size: .95em; }
.inclus li::before { content: "+ "; font-family: var(--mono); color: var(--ocre-texte); }
.inclus .non li::before { content: "– "; color: var(--encre-2); }

.estim { border: 1px solid var(--encre); padding: 1.4rem 1.4rem 1.5rem; background: #F7F4EE; }
.estim h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.estim > p { color: var(--encre-2); margin-top: .4rem; font-size: .92em; }
.estim__champs { display: grid; gap: 1rem; margin-top: 1.2rem; }
.champ { display: grid; gap: .35rem; }
.champ label, .champ legend { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; color: var(--encre); background: var(--calcaire);
  border: 1px solid rgba(20, 16, 12, .35); padding: .7rem .8rem; width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--ocre); outline-offset: 1px; }
.estim__resultat { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--filet); }
.estim__resultat b { display: block; font-family: var(--mono); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.estim__resultat p { color: var(--encre-2); font-size: .88em; margin-top: .4rem; }
.estim__note { margin-top: 1rem; font-size: .8em; color: var(--encre-2); }

.annulation { margin-top: clamp(2rem, 4vw, 3rem); }
.annulation dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--encre); }
.annulation dl div { padding: .9rem .8rem 1rem 0; display: grid; gap: .25rem; }
.annulation dl div + div { padding-left: .8rem; border-left: 1px solid var(--filet); }
.annulation dt { font-size: .86em; color: var(--encre-2); }
.annulation dd { font-family: var(--mono); font-size: 1.15rem; }

@media (max-width: 900px) {
  .prix__grille { grid-template-columns: minmax(0, 1fr); }
  .annulation dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annulation dl div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 500px) { .inclus { grid-template-columns: minmax(0, 1fr); } }

/* ---- 9 · Infos pratiques ------------------------------------------------------------------------ */

.infos__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.docs { list-style: none; border-top: 1px solid var(--encre); }
.docs li { padding: .85rem 0; border-bottom: 1px solid var(--filet); }
.docs small { display: block; color: var(--encre-2); font-size: .86em; }
.trousseau { margin-top: 2rem; }
.trousseau p { color: var(--encre-2); }

.faq { border-top: 1px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ocre-texte); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; color: var(--encre-2); max-width: 58ch; }

@media (max-width: 900px) { .infos__grille { grid-template-columns: minmax(0, 1fr); } }

/* ---- 11 · Réserver : tunnel de démonstration ------------------------------------------------------ */

.tunnel { max-width: 46rem; }
.tunnel__etapes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.6rem; }
.tunnel__etapes li { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .6rem; border-top: 3px solid var(--calcaire-2); color: var(--encre-2); }
.tunnel__etapes li.est-faite, .tunnel__etapes li.est-active { border-top-color: var(--ocre); color: var(--encre); }
.tunnel fieldset { border: 0; display: grid; gap: 1.1rem; }
.tunnel legend { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin-bottom: 1rem; }
.tunnel .champ legend { font-family: var(--mono); font-size: .68rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: .35rem; }
.tunnel .ligne2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.radios { display: flex; gap: .5rem; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border: 1px solid rgba(20, 16, 12, .35); cursor: pointer; font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--encre); }
.radios input { width: auto; accent-color: var(--ocre-texte); }
.coche { display: flex; gap: .6rem; align-items: flex-start; font-size: .95em; }
.coche input { margin-top: .3rem; accent-color: var(--ocre-texte); }
.erreur { color: #9B2C1F; font-size: .9em; min-height: 1.3em; }
.encart { padding: 1rem 1.1rem; background: var(--mer-pale); border-left: 3px solid var(--mer); font-size: .95em; }
.tunnel__actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.recap { border-top: 1px solid var(--encre); }
.recap div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--filet); }
.recap dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); padding-top: .2rem; }
.confirmation { padding: 2rem 0; }
.confirmation h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.confirmation p { margin-top: 1rem; max-width: 52ch; color: var(--encre-2); }
.no-js .tunnel { display: none; }
.tunnel [hidden] { display: none !important; }

@media (max-width: 600px) {
  .tunnel .ligne2 { grid-template-columns: minmax(0, 1fr); }
  .recap div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

/* ---- Pied --------------------------------------------------------------------- */

.pied { background: var(--nuit); color: var(--calcaire); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; }
.pied__logo { font-family: var(--serif); font-size: 2.4rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.pied__statut { margin-top: 1rem; max-width: 46ch; color: var(--brume); }
.pied h2 { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--brume); margin-bottom: .8rem; }
.pied ul { list-style: none; display: grid; gap: .45rem; font-size: .86em; }
.pied a { color: var(--calcaire); text-underline-offset: .2em; }
.pied__bas { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--filet-nuit); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brume); }

@media (max-width: 800px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

/* ---- Page Mentions ----------------------------------------------------------------- */

.page-simple { padding-top: calc(var(--bandeau-h) + 3rem); padding-bottom: 5rem; }
.page-simple h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin-bottom: 2rem; }
.page-simple h2 { font-family: var(--mono); font-weight: 400; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre-texte); margin: 2.4rem 0 .7rem; }
.page-simple p, .page-simple li { max-width: 64ch; }
.page-simple ul { padding-left: 1.2rem; display: grid; gap: .4rem; }

/* ---- Mouvement ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .monte { opacity: 0; transform: translateY(1.2rem); animation: monte .9s cubic-bezier(.16, 1, .3, 1) forwards; }
  .monte:nth-child(2) { animation-delay: .08s; }
  .monte:nth-child(3) { animation-delay: .16s; }
  .monte:nth-child(4) { animation-delay: .24s; }
  @keyframes monte { to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seg, .base circle { transition: none !important; }
}
