/* Bercail · feuille de style
   Marque sœur de Retrouvailles, dans la maison Contrée : même palette sapin, mêmes polices, même
   traitement photo. La variation : l'accent n'est plus la guirlande d'été mais le givre, la lumière
   froide d'un matin d'octobre à avril, la saison des séminaires. */

@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/caprasimo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* accent propre à la marque : seule couleur d'action */
  --givre: #9ad6cb;          /* boutons, prix, fond de la démo. Sapin dessus : 7,5:1 */
  --givre-vif: #b2e2d9;      /* survol du bouton */
  --givre-pale: #ddf1ec;     /* colonne du train dans le bilan. Sapin dessus : 10,5:1 */
  --givre-ombre: #5fa89c;    /* ombre portée du bouton (décor, sans texte) */
  --canard: #1d5e5a;         /* texte d'accent sur fond clair : 7,1:1 sur nappe, 6,2:1 sur pré */

  /* palette partagée avec Retrouvailles */
  --sapin: #1e3a2f;
  --sapin-nuit: #13261e;
  --sapin-clair: #2c5243;
  --pre: #e9eddc;
  --pre-filet: #d3d9c2;
  --nappe: #fbfaf3;
  --encre: #18221c;
  --encre-douce: #46523f;    /* 7,9:1 sur nappe, 6,9:1 sur pré */
  --mousse: #b9c89f;         /* texte secondaire sur sapin, 6,9:1 */
  --erreur: #9b2c1f;
  --voile: 19 38 30;         /* sapin-nuit en canaux, pour les voiles des photos */

  /* typographie */
  --police-titre: "Caprasimo", "Cooper Black", Georgia, serif;
  --police-texte: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --t-petit: 0.875rem;
  --t-moyen: 1rem;
  --t-base: 1.125rem;
  --t-chapo: 1.3125rem;
  --t-h3: 1.5rem;
  --t-moment: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-verdict: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --t-chiffre: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-h1: clamp(2.6rem, 1.5rem + 4.4vw, 5.25rem);
  --t-geant: clamp(4.5rem, 2.6rem + 8vw, 9.5rem);
  --interligne: 1.55;
  --interligne-titre: 1.04;

  /* espaces */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4.5rem;
  --e-9: 7rem;
  --gouttiere: clamp(1rem, 0.4rem + 3vw, 4rem);
  --largeur: 78rem;
  --mesure: 36rem;

  /* formes */
  --rayon-petit: 10px;
  --rayon: 20px;
  --rayon-photo: 6px;
  --filet: 1px;
  --trait: 3px;
  --decalage: 6px;           /* ombre pleine des cartes de la démo et du bilan */

  /* mouvement */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duree-appui: 140ms;
  --duree-ui: 220ms;
  --duree-barre: 520ms;
  --duree-panneau: 420ms;
  --duree-revele: 1100ms;

  --hauteur-entete: 4.25rem;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hauteur-entete);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nappe);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  line-height: var(--interligne);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--trait) solid var(--givre);
  outline-offset: var(--trait);
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  left: var(--e-4);
  top: -4rem;
  z-index: 50;
  padding: var(--e-2) var(--e-4);
  background: var(--givre);
  color: var(--sapin);
  font-weight: 700;
  border-radius: var(--rayon-petit);
}
.evitement:focus {
  top: var(--e-4);
}

.titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  max-width: 20ch;
}
.chapo {
  margin-top: var(--e-4);
  font-size: var(--t-chapo);
  max-width: var(--mesure);
}

/* ---------- Bouton d'action ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: var(--e-3) var(--e-6);
  border: 0;
  border-radius: var(--rayon-petit);
  background: var(--givre);
  color: var(--sapin);
  font-weight: 700;
  font-size: var(--t-base);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 var(--trait) 0 0 var(--givre-ombre);
  transition: transform var(--duree-appui) var(--ease-out), box-shadow var(--duree-appui) var(--ease-out);
}
.bouton:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 0 var(--givre-ombre);
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover {
    background: var(--givre-vif);
  }
}
.bouton-petit {
  min-height: 2.75rem;
  padding: var(--e-2) var(--e-5);
  font-size: var(--t-moyen);
}
.bouton-plein {
  width: 100%;
}
/* Sur fond givre, le bouton passe en sapin pour rester visible */
.bouton-sombre {
  background: var(--sapin);
  color: var(--nappe);
  box-shadow: 0 var(--trait) 0 0 var(--sapin-nuit);
}
@media (hover: hover) and (pointer: fine) {
  .bouton-sombre:hover {
    background: var(--sapin-clair);
  }
}

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

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  height: var(--hauteur-entete);
  padding: 0 var(--gouttiere);
  transition: background-color var(--duree-ui) ease, box-shadow var(--duree-ui) ease;
}
.entete.defile {
  background: var(--sapin);
  box-shadow: 0 var(--filet) 0 var(--sapin-clair);
}
.entete-logo img {
  width: clamp(8.5rem, 6rem + 6vw, 11rem);
}
@media (max-width: 759px) {
  .entete .bouton {
    display: none;
  }
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  min-height: max(38rem, 100svh);
  display: grid;
  align-items: start;
  color: var(--nappe);
  background: var(--sapin);
  overflow: hidden;
}
.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  object-fit: cover;
  object-position: 62% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(var(--voile) / 0.82) 0%, rgb(var(--voile) / 0.6) 48%, rgb(var(--voile) / 0.1) 75%),
    linear-gradient(0deg, rgb(var(--voile) / 0.5) 0%, rgb(var(--voile) / 0) 25%);
}
.hero-texte {
  position: relative;
  z-index: 1;
  padding: calc(var(--hauteur-entete) + var(--e-5)) var(--gouttiere) var(--e-8);
  max-width: 50rem;
}
.hero-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h1);
  line-height: var(--interligne-titre);
  letter-spacing: -0.01em;
}
.hero-titre .ligne {
  display: block;
}
.hero-sous-titre {
  margin-top: var(--e-5);
  max-width: 35rem;
  font-size: var(--t-chapo);
  line-height: 1.45;
}
/* Prix et délai du devis, au-dessus de la ligne de flottaison */
.hero-reperes {
  margin: var(--e-5) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3) var(--e-6);
}
.hero-reperes div {
  padding-left: var(--e-3);
  border-left: var(--trait) solid var(--givre);
}
.hero-reperes dt {
  font-size: var(--t-petit);
  color: var(--mousse);
}
.hero-reperes dd {
  margin: 0;
  font-weight: 700;
}
.hero-action {
  margin-top: var(--e-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-4) var(--e-5);
}
.lien-clair {
  padding: var(--e-2) 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration-line: underline;
  color: var(--nappe);
  font-weight: 600;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--givre);
}
@media (min-width: 960px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgb(var(--voile) / 0.86) 0%, rgb(var(--voile) / 0.66) 42%, rgb(var(--voile) / 0) 70%),
      linear-gradient(0deg, rgb(var(--voile) / 0.4) 0%, rgb(var(--voile) / 0) 20%);
  }
  .hero-texte {
    padding-top: calc(var(--hauteur-entete) + 8vh);
    max-width: 56rem;
  }
  .hero-photo img {
    object-position: 50% 55%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: hero-photo 1800ms var(--ease-out) both;
  }
  .hero-titre .ligne,
  .hero-sous-titre,
  .hero-reperes,
  .hero-action {
    animation: hero-texte 900ms var(--ease-out) both;
  }
  .hero-titre .ligne:nth-child(1) { animation-delay: 150ms; }
  .hero-titre .ligne:nth-child(2) { animation-delay: 290ms; }
  .hero-sous-titre { animation-delay: 440ms; }
  .hero-reperes { animation-delay: 540ms; }
  .hero-action { animation-delay: 620ms; }
}
@keyframes hero-photo {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes hero-texte {
  from { opacity: 0; transform: translateY(0.6em); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections : enveloppe commune ---------- */

/* La colonne de contenu vient du padding : chaque enfant garde sa propre largeur de lecture, aligné à gauche */
.section {
  padding: var(--e-9) max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
}

/* ---------- 2. Constat ---------- */

.constat {
  background: var(--sapin);
  color: var(--nappe);
  display: grid;
  gap: var(--e-7);
}
.constat .chapo {
  color: var(--mousse);
  max-width: 28rem;
}
.corvees {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.corvees li {
  position: relative;
  padding: var(--e-4) 0 var(--e-4) calc(1.5rem + var(--e-4));
  border-top: var(--filet) solid var(--sapin-clair);
  font-size: var(--t-chapo);
  line-height: 1.4;
}
/* case vide : ce que l'organisatrice ou l'organisateur fait d'habitude seul */
.corvees li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--e-4) + 0.2em);
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--mousse);
  border-radius: 4px;
}
.constat-chute {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.3;
  color: var(--givre);
  width: 100%;
}
@media (min-width: 960px) {
  .constat {
    grid-template-columns: 5fr 7fr;
    column-gap: var(--e-8);
  }
  .constat > * {
    margin: 0;
  }
  .constat-tete {
    justify-self: end;
    width: min(100%, 26rem);
  }
  .corvees,
  .constat-chute {
    max-width: 40rem;
  }
  .constat-chute {
    grid-column: 2;
  }
}

/* ---------- 3. Démo : le point à mi-chemin ---------- */

.michemin {
  background: var(--givre);
  color: var(--sapin);
}
.michemin-corps {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-6);
}
.villes {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e-3);
  align-content: start;
}
.villes legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: var(--e-3);
  font-weight: 700;
}
.villes label,
.choix label {
  position: relative;
}
.villes input,
.choix input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.villes input:disabled {
  cursor: not-allowed;
}
.villes span {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  min-height: 3.5rem;
  padding: var(--e-3) var(--e-4);
  border: 2px solid var(--sapin);
  border-radius: var(--rayon-petit);
  font-weight: 700;
  transition: background-color var(--duree-ui) ease, color var(--duree-ui) ease, opacity var(--duree-ui) ease, transform var(--duree-appui) var(--ease-out);
}
/* pastille : la ville est du voyage ou non */
.villes span::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: background-color var(--duree-ui) ease;
}
.villes input:checked + span {
  background: var(--sapin);
  color: var(--nappe);
}
.villes input:checked + span::before {
  background: var(--givre);
  border-color: var(--givre);
}
.villes input:disabled + span {
  opacity: 0.45;
}
.villes input:focus-visible + span {
  outline: var(--trait) solid var(--sapin);
  outline-offset: var(--trait);
}
.villes label:active span {
  transform: scale(0.98);
}
.villes-aide {
  grid-column: 1 / -1;
  font-size: var(--t-moyen);
}
.verdict {
  background: var(--nappe);
  border-radius: var(--rayon);
  padding: var(--e-6) var(--e-5);
  color: var(--encre);
  box-shadow: var(--decalage) var(--decalage) 0 var(--sapin);
}
.etiquette {
  display: inline-block;
  padding: 0.1rem var(--e-2);
  border: 1.5px solid var(--encre-douce);
  border-radius: 4px;
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--encre-douce);
}
.verdict-coin {
  margin-top: var(--e-3);
  font-family: var(--police-titre);
  font-size: var(--t-verdict);
  line-height: 1.1;
  color: var(--sapin);
}
.verdict-departement {
  font-weight: 600;
  color: var(--encre-douce);
}
.verdict-gare {
  margin-top: var(--e-3);
  font-weight: 600;
  color: var(--canard);
}
.verdict-resume {
  margin-top: var(--e-2);
  color: var(--encre-douce);
}
.trajets-titre {
  margin-top: var(--e-5);
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--encre-douce);
}
/* Signature : une barre par ville, sur la même ligne de départ. On voit qui fait le plus de route. */
.trajets {
  list-style: none;
  margin: var(--e-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-3);
}
.trajet {
  display: grid;
  grid-template-columns: 5.5rem 1fr 4.5rem;
  align-items: center;
  gap: var(--e-3);
  font-size: var(--t-moyen);
}
.trajet-nom {
  font-weight: 600;
}
.barre {
  height: 0.75rem;
  border-radius: 99px;
  background: var(--pre);
  overflow: hidden;
}
.barre span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sapin);
  transform-origin: left center;
  transform: scaleX(var(--part, 0));
  transition: transform var(--duree-barre) var(--ease-out);
}
.barre-givre span {
  background: var(--givre-ombre);
}
.trajet-valeur {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.verdict-autres {
  margin-top: var(--e-5);
  padding-top: var(--e-4);
  border-top: var(--filet) solid var(--pre);
  font-size: var(--t-moyen);
  color: var(--encre-douce);
}
.verdict-action {
  margin-top: var(--e-5);
}
.michemin-note {
  margin-top: var(--e-6);
  font-size: var(--t-petit);
  max-width: 50rem;
}
@media (min-width: 760px) {
  .villes {
    grid-template-columns: repeat(3, 1fr);
  }
  .verdict {
    padding: var(--e-6);
  }
}
@media (min-width: 960px) {
  .michemin-corps {
    grid-template-columns: 5fr 7fr;
    gap: var(--e-7);
    align-items: start;
  }
  .villes {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Photos : cadre commun et révélation ---------- */

.cadre {
  margin: 0;
  border-radius: var(--rayon-photo);
  overflow: hidden;
  background: var(--sapin);
}
.cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-revele] {
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--duree-revele) var(--ease-out);
  }
  .js [data-revele] img {
    transform: scale(1.08);
    transition: transform calc(var(--duree-revele) * 1.4) var(--ease-out);
  }
  .js [data-revele].vu {
    clip-path: inset(0 0 0 0);
  }
  .js [data-revele].vu img {
    transform: none;
  }
}

/* ---------- 5 bis. La vie du village pendant le séminaire ---------- */

/* fond givre : la section se détache du bilan, sur fond pré juste après */
.vie-village {
  background: var(--givre-pale);
}
.vie-village-liste {
  list-style: none;
  margin: var(--e-7) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-7) var(--e-5);
}
.vie-village-liste .cadre {
  aspect-ratio: 3 / 2;
}
.vie-village-liste h3 {
  margin-top: var(--e-4);
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
}
.vie-village-liste p {
  margin-top: var(--e-2);
  max-width: 26rem;
  color: var(--encre-douce);
}
.vie-village-note a {
  color: var(--canard);
}
.vie-village-note {
  margin-top: var(--e-7);
  padding-top: var(--e-4);
  border-top: var(--filet) solid var(--givre-ombre);
  color: var(--encre-douce);
}
@media (min-width: 760px) {
  .vie-village-liste {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 4. Le village plutôt que le château ---------- */

.village {
  background: var(--sapin);
  color: var(--nappe);
}
.village .chapo {
  color: var(--mousse);
}
.village-photos {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-4);
}
.village-photos .cadre {
  aspect-ratio: 3 / 2;
}
.village-faits {
  margin: var(--e-7) auto 0;
  display: grid;
  gap: var(--e-6) var(--e-7);
}
.village-faits div {
  padding-top: var(--e-4);
  border-top: var(--trait) solid var(--givre);
}
.village-faits dt {
  font-family: var(--police-titre);
  font-size: var(--t-chiffre);
  line-height: 1;
  color: var(--givre);
}
.village-faits dd {
  margin: var(--e-3) 0 0;
  max-width: 24rem;
}
.contrepartie {
  margin-top: var(--e-7);
  padding: var(--e-6) var(--e-5);
  border-radius: var(--rayon);
  background: var(--sapin-nuit);
  display: grid;
  gap: var(--e-3);
}
.contrepartie h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--givre);
}
.contrepartie p {
  max-width: 44rem;
}
@media (min-width: 760px) {
  .village-photos {
    grid-template-columns: 3fr 2fr;
  }
  .village-photos .cadre:last-child {
    aspect-ratio: auto;
  }
  .village-faits {
    grid-template-columns: repeat(3, 1fr);
  }
  .contrepartie {
    padding: var(--e-6) var(--e-7);
  }
}

/* ---------- 5. Déroulé ---------- */

.deroule {
  background: var(--nappe);
}
.deroule .titre {
  max-width: 22ch;
}
.moments {
  list-style: none;
  margin: var(--e-8) auto 0;
  padding: 0;
  display: grid;
  gap: var(--e-8);
}
.moment {
  display: grid;
  gap: var(--e-5);
}
.moment-heure {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--canard);
}
.moment-texte h3 {
  margin-top: var(--e-1);
  font-family: var(--police-titre);
  font-size: var(--t-moment);
  line-height: 1.1;
  color: var(--sapin);
}
.moment-texte p:last-child {
  margin-top: var(--e-3);
  max-width: 30rem;
  color: var(--encre-douce);
}
.moment-large .moment-photo {
  aspect-ratio: 3 / 2;
}
.moment-portrait .moment-photo {
  aspect-ratio: 4 / 5;
  max-width: 28rem;
}
/* le moment sans photo : un repère en marge, comme une ligne de programme */
.moment-texte-seul .moment-texte {
  padding-left: var(--e-5);
  border-left: var(--trait) solid var(--givre-ombre);
}
@media (min-width: 960px) {
  .moment-texte-seul .moment-texte {
    grid-column: 4 / span 6;
  }
}
@media (min-width: 960px) {
  .moment {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--e-6);
    align-items: center;
  }
  .moment-large .moment-photo {
    grid-column: 1 / span 7;
  }
  .moment-large .moment-texte {
    grid-column: 9 / span 4;
  }
  .moment-portrait .moment-photo {
    grid-column: 2 / span 4;
    max-width: none;
  }
  .moment-portrait .moment-texte {
    grid-column: 7 / span 5;
  }
  .moment-inverse .moment-photo {
    order: 2;
  }
  .moment-large.moment-inverse .moment-photo {
    grid-column: 6 / span 7;
  }
  .moment-large.moment-inverse .moment-texte {
    grid-column: 1 / span 4;
    grid-row: 1;
  }
  .moment-portrait.moment-inverse .moment-photo {
    grid-column: 8 / span 4;
  }
  .moment-portrait.moment-inverse .moment-texte {
    grid-column: 2 / span 5;
    grid-row: 1;
  }
}

/* ---------- 6. Le bilan à la sortie ---------- */

.bilan {
  background: var(--pre);
}
.bilan-corps {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-7);
  align-items: start;
}
.bilan-argument p + p {
  margin-top: var(--e-4);
}
.bilan-argument p {
  max-width: 30rem;
}
/* La feuille remise à la sortie : un document, pas une carte de site */
.feuille {
  background: var(--nappe);
  border-radius: var(--rayon-petit);
  padding: var(--e-6) var(--e-5);
  box-shadow: var(--decalage) var(--decalage) 0 var(--sapin);
}
.feuille-tete {
  display: grid;
  gap: var(--e-2);
  padding-bottom: var(--e-4);
  border-bottom: var(--trait) solid var(--sapin);
}
.feuille-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
}
.feuille-contexte {
  font-size: var(--t-moyen);
  color: var(--encre-douce);
}
.feuille-bloc {
  padding-block: var(--e-5);
  border-bottom: var(--filet) solid var(--pre-filet);
}
.feuille-bloc:last-of-type {
  border-bottom: 0;
}
.feuille-bloc h4 {
  margin: 0;
  font-size: var(--t-moyen);
  font-weight: 700;
  color: var(--canard);
}
.feuille-chiffre {
  margin-top: var(--e-2);
  font-family: var(--police-titre);
  font-size: var(--t-chiffre);
  line-height: 1.05;
  color: var(--sapin);
  font-variant-numeric: tabular-nums;
}
.feuille-chiffre small {
  display: block;
  margin-top: var(--e-1);
  line-height: 1.4;
  font-family: var(--police-texte);
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--encre-douce);
}
.feuille .trajets {
  margin-top: var(--e-4);
}
.feuille .trajet {
  grid-template-columns: 8.5rem 1fr 5rem;
}
.postes {
  list-style: none;
  margin: var(--e-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
  font-size: var(--t-moyen);
}
.postes li {
  display: flex;
  justify-content: space-between;
  gap: var(--e-4);
  padding-bottom: var(--e-2);
  border-bottom: var(--filet) dotted var(--pre-filet);
}
.postes li span:last-child {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.feuille-note {
  margin-top: var(--e-3);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
@media (max-width: 479px) {
  .feuille .trajet {
    grid-template-columns: 1fr 4.5rem;
  }
  .feuille .trajet .barre {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (min-width: 760px) {
  .feuille {
    padding: var(--e-7);
  }
}
@media (min-width: 960px) {
  .bilan-corps {
    grid-template-columns: 4fr 7fr;
    gap: var(--e-8);
  }
}

/* ---------- 7. Prix et inclus ---------- */

.offre {
  background: var(--sapin);
  color: var(--nappe);
}
.offre-ancre {
  font-size: var(--t-chapo);
  color: var(--mousse);
  max-width: 34rem;
}
.offre-prix {
  margin-top: var(--e-4);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--e-2) var(--e-5);
}
.offre-montant {
  font-family: var(--police-titre);
  font-size: var(--t-geant);
  line-height: 0.95;
  color: var(--givre);
  white-space: nowrap;
}
.offre-unite {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  max-width: 18ch;
}
.offre-detail {
  margin-top: var(--e-5);
  max-width: 40rem;
}
.inclus-colonnes {
  margin-top: var(--e-8);
  display: grid;
  gap: var(--e-7);
}
.inclus-bloc h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  padding-bottom: var(--e-2);
  border-bottom: var(--trait) solid var(--givre);
}
.coches {
  list-style: none;
  margin: var(--e-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-3);
}
.coches li {
  position: relative;
  padding-left: 1.9rem;
}
/* coche fonctionnelle : c'est compris */
.coches li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3em;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--givre);
  border-width: 0 var(--trait) var(--trait) 0;
  transform: rotate(42deg);
}
.calendrier {
  margin: var(--e-8) auto 0;
  display: grid;
  gap: var(--e-5);
}
.calendrier div {
  padding-left: var(--e-4);
  border-left: var(--trait) solid var(--givre);
}
.calendrier dt {
  font-size: var(--t-petit);
  color: var(--mousse);
}
.calendrier dd {
  margin: 0;
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.25;
}
.offre-action {
  margin-top: var(--e-7);
  display: grid;
  justify-items: start;
  gap: var(--e-4);
}
.offre-action p {
  max-width: 40rem;
  color: var(--mousse);
}
@media (min-width: 760px) {
  .inclus-colonnes {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--e-7);
  }
  .calendrier {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 8. Objections ---------- */

.faq {
  background: var(--nappe);
}
.faq .titre {
  max-width: 50rem;
}
.questions {
  margin-top: var(--e-7);
  max-width: 50rem;
}
.questions details {
  border-top: var(--filet) solid var(--pre-filet);
}
.questions details:last-child {
  border-bottom: var(--filet) solid var(--pre-filet);
}
.questions summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: var(--e-5) 3rem var(--e-5) 0;
  font-weight: 700;
  font-size: var(--t-chapo);
  line-height: 1.35;
  color: var(--sapin);
}
.questions summary::-webkit-details-marker {
  display: none;
}
/* plus / moins : ouvert ou fermé */
.questions summary::before,
.questions summary::after {
  content: "";
  position: absolute;
  right: var(--e-2);
  top: 50%;
  width: 1.1rem;
  height: var(--trait);
  border-radius: 2px;
  background: var(--canard);
  transition: transform var(--duree-ui) var(--ease-out);
}
.questions summary::after {
  transform: rotate(90deg);
}
.questions details[open] summary::after {
  transform: rotate(0deg);
}
.questions details p {
  padding: 0 0 var(--e-5);
  max-width: 42rem;
  color: var(--encre-douce);
}

/* ---------- 9. Appel final ---------- */

.final {
  position: relative;
  min-height: max(32rem, 80svh);
  display: grid;
  align-items: end;
  color: var(--nappe);
  background: var(--sapin);
  overflow: hidden;
}
.final-photo,
.final-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.final-photo img {
  object-fit: cover;
  object-position: 50% 50%;
}
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(var(--voile) / 0.88) 0%, rgb(var(--voile) / 0.5) 45%, rgb(var(--voile) / 0) 75%);
}
.final-texte {
  position: relative;
  z-index: 1;
  padding: var(--e-8) var(--gouttiere);
  max-width: 52rem;
  display: grid;
  justify-items: start;
  gap: var(--e-4);
}
.final-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
}
.final-texte p {
  font-size: var(--t-chapo);
}
.final-texte .bouton {
  margin-top: var(--e-3);
}

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

.pied {
  background: var(--sapin-nuit);
  color: var(--mousse);
  padding: var(--e-7) max(var(--gouttiere), calc((100% - var(--largeur)) / 2)) calc(var(--e-7) + 5rem);
  display: grid;
  justify-items: start;
  gap: var(--e-4);
  font-size: var(--t-petit);
}
.pied p {
  max-width: 44rem;
}
.pied-logo {
  width: 9rem;
}
.pied-liens {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2) var(--e-6);
}
/* liens discrets : mousse sur sapin-nuit, 8,9:1 */
.pied-lien {
  color: inherit;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .pied-lien:hover {
    color: var(--nappe);
  }
}
@media (min-width: 760px) {
  .pied {
    padding-bottom: var(--e-7);
  }
}

/* ---------- Barre d'action mobile ---------- */

.barre-mobile {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  padding: var(--e-3) var(--gouttiere) calc(var(--e-3) + env(safe-area-inset-bottom));
  background: var(--sapin);
  box-shadow: 0 calc(-1 * var(--filet)) 0 var(--sapin-clair);
  transform: translateY(110%);
  transition: transform var(--duree-panneau) var(--ease-drawer);
}
.barre-mobile .bouton {
  width: 100%;
}
.barre-mobile.visible {
  transform: none;
}
@media (min-width: 760px) {
  .barre-mobile {
    display: none;
  }
}

/* ---------- Fausse porte ---------- */

.porte {
  width: 100%;
  max-width: 100%;
  max-height: 92svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--rayon) var(--rayon) 0 0;
  background: var(--nappe);
  color: var(--encre);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 1;
  transform: none;
  transition:
    transform var(--duree-panneau) var(--ease-drawer),
    opacity var(--duree-ui) ease,
    overlay var(--duree-panneau) allow-discrete,
    display var(--duree-panneau) allow-discrete;
}
.porte:not([open]) {
  transform: translateY(100%);
}
@starting-style {
  .porte[open] {
    transform: translateY(100%);
  }
}
.porte::backdrop {
  background: rgb(var(--voile) / 0.6);
  transition: opacity var(--duree-panneau) ease, overlay var(--duree-panneau) allow-discrete, display var(--duree-panneau) allow-discrete;
}
.porte:not([open])::backdrop {
  opacity: 0;
}
@starting-style {
  .porte[open]::backdrop {
    opacity: 0;
  }
}
@media (min-width: 760px) {
  .porte {
    width: min(42rem, calc(100% - 2 * var(--gouttiere)));
    max-height: 88svh;
    margin: auto;
    border-radius: var(--rayon);
    transition:
      transform var(--duree-ui) var(--ease-out),
      opacity var(--duree-ui) ease,
      overlay var(--duree-ui) allow-discrete,
      display var(--duree-ui) allow-discrete;
  }
  .porte:not([open]) {
    transform: scale(0.96);
    opacity: 0;
  }
  @starting-style {
    .porte[open] {
      transform: scale(0.96);
      opacity: 0;
    }
  }
}
.porte-corps {
  position: relative;
  padding: var(--e-6) var(--e-5);
}
@media (min-width: 760px) {
  .porte-corps {
    padding: var(--e-7);
  }
}
.porte-fermer {
  position: absolute;
  top: var(--e-3);
  right: var(--e-3);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sapin);
  cursor: pointer;
  transition: transform var(--duree-appui) var(--ease-out), background-color var(--duree-ui) ease;
}
.porte-fermer:active {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .porte-fermer:hover {
    background: var(--pre);
  }
}
.porte-titre {
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  line-height: 1.1;
  color: var(--sapin);
  padding-right: 2.5rem;
}
.porte-avertissement {
  margin-top: var(--e-4);
  padding: var(--e-3) var(--e-4);
  background: var(--givre-pale);
  border-radius: var(--rayon-petit);
  font-size: var(--t-moyen);
  color: var(--sapin);
}
.question {
  margin: var(--e-5) 0 0;
  padding: 0;
  border: 0;
}
.question legend {
  padding: 0;
  font-weight: 700;
  color: var(--sapin);
}
.question-aide {
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.choix {
  margin-top: var(--e-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}
.choix span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--e-2) var(--e-4);
  border: 2px solid var(--sapin);
  border-radius: var(--rayon-petit);
  font-weight: 600;
  font-size: var(--t-moyen);
  transition: background-color var(--duree-ui) ease, color var(--duree-ui) ease, transform var(--duree-appui) var(--ease-out);
}
.choix input:checked + span {
  background: var(--sapin);
  color: var(--nappe);
}
.choix input:focus-visible + span {
  outline: var(--trait) solid var(--givre-ombre);
  outline-offset: 2px;
}
.choix label:active span {
  transform: scale(0.97);
}
.porte-erreur {
  margin: var(--e-4) 0;
  min-height: 1.5em;
  font-weight: 600;
  color: var(--erreur);
}
.porte-merci:focus {
  outline: none;
}
.proposition {
  margin: var(--e-5) 0 0;
  display: grid;
  gap: var(--e-4);
}
.proposition div {
  padding-top: var(--e-3);
  border-top: var(--filet) solid var(--pre);
}
.proposition dt {
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--canard);
}
.proposition dd {
  margin: var(--e-1) 0 0;
}
.proposition .proposition-prix {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
}
.porte-merci .bouton {
  margin-top: var(--e-5);
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
  .porte:not([open]),
  .barre-mobile {
    transform: none;
  }
  .barre-mobile:not(.visible) {
    opacity: 0;
    pointer-events: none;
  }
}
