/* Contrée · feuille de style
   La maison mère de Retrouvailles et de Bercail, dans la DA de Retrouvailles : fonds tirés des photos
   (vert sapin des ombres, lumière dorée), Caprasimo et Figtree. Contrée reste neutre (sapin et nappe) ;
   chaque marque garde sa teinte d'accent. Le moment fort est le calendrier de l'année, sur sapin-nuit. */

@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-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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 {
  /* palette, celle de Retrouvailles */
  --sapin: #1e3a2f;
  --sapin-nuit: #13261e;
  --sapin-clair: #2c5243;
  --guirlande: #f4b740;
  --miel: #7a4f00;
  --pre: #e9eddc;
  --nappe: #fbfaf3;
  --encre: #18221c;
  --encre-douce: #46523f;
  --mousse: #b9c89f;
  --filet: #d9ddc9;
  --rouge: #9b2c1f;

  /* une teinte par marque, en fond ou en trait, jamais en texte sur fond clair */
  --a-retrouvailles: var(--guirlande);
  /* givre, repris de sites/mi-chemin/style.css ; à relire dans sites/bercail/style.css quand il existera */
  --a-bercail: #9ad6cb;

  /* typographie */
  --police-titre: "Caprasimo", "Cooper Black", Georgia, serif;
  --police-texte: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --t-petit: 0.875rem;
  --t-base: 1.125rem;
  --t-chapo: 1.3125rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
  --t-geant: clamp(4.5rem, 2.6rem + 8vw, 9.5rem);
  --interligne: 1.55;
  --interligne-titre: 1.02;

  /* 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;

  /* formes */
  --rayon-petit: 10px;
  --rayon: 20px;
  --rayon-photo: 6px;
  --ombre-bouton: 0 3px 0 0 #b5841f;
  --ombre-bouton-appui: 0 1px 0 0 #b5841f;
  --guirlande-survol: #f7c45e;

  /* voiles des photos */
  --voile: rgb(19 38 30 / 0.6);
  --voile-fort: rgb(19 38 30 / 0.88);
  --voile-nul: rgb(19 38 30 / 0);
  --case-vide: rgb(44 82 67 / 0.55);

  /* 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-panneau: 420ms;
  --pas-mois: 45ms;
  --estompe: 0.14;

  --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;
}
figure {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--guirlande);
  outline-offset: 3px;
}
.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(--guirlande);
  color: var(--sapin);
  font-weight: 700;
  border-radius: var(--rayon-petit);
}
.evitement:focus {
  top: var(--e-4);
}

.enveloppe {
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  color: var(--sapin);
  max-width: 22ch;
}
.chapo {
  margin-top: var(--e-5);
  max-width: 40rem;
  font-size: var(--t-chapo);
  line-height: 1.45;
  color: var(--encre-douce);
}
.section {
  padding-block: var(--e-9);
}
.section-sombre {
  background: var(--sapin-nuit);
  color: var(--nappe);
}
.section-sombre .titre {
  color: var(--nappe);
}
.section-sombre .chapo {
  color: var(--mousse);
}
.section-pre {
  background: var(--pre);
}

/* ---------- Bouton ---------- */

.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(--guirlande);
  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: var(--ombre-bouton);
  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: var(--ombre-bouton-appui);
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover {
    background: var(--guirlande-survol);
  }
}
.bouton-petit {
  min-height: 2.75rem;
  padding: var(--e-2) var(--e-5);
  font-size: 1rem;
}
.bouton-plein {
  width: 100%;
}
.lien-fort {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  color: var(--sapin);
  text-decoration: underline;
  text-decoration-color: var(--guirlande);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}
.section-sombre .lien-fort,
.final .lien-fort {
  color: var(--nappe);
}
@media (hover: hover) and (pointer: fine) {
  .lien-fort:hover {
    text-decoration-color: currentColor;
  }
}

/* ---------- 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 1px 0 var(--sapin-clair);
}
.entete-logo img {
  width: clamp(6.5rem, 5rem + 4vw, 8.5rem);
}
.entete-liens {
  display: flex;
  align-items: center;
  gap: var(--e-5);
}
.entete-liens a:not(.bouton) {
  color: var(--nappe);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .entete-liens a:not(.bouton):hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}
@media (max-width: 759px) {
  .entete-liens a:not(.bouton) {
    display: none;
  }
}

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

.hero,
.final {
  position: relative;
  display: grid;
  align-items: end;
  background: var(--sapin-nuit);
  color: var(--nappe);
  overflow: hidden;
}
.hero {
  min-height: max(36rem, 92svh);
}
.hero-photo,
.hero-photo img,
.final-photo,
.final-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img,
.final-photo img {
  object-fit: cover;
}
.hero-photo img {
  object-position: 50% 55%;
}
.hero::after,
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--voile-fort) 0%, var(--voile) 42%, var(--voile-nul) 74%),
    linear-gradient(180deg, rgb(19 38 30 / 0.55) 0%, var(--voile-nul) 20%);
}
.hero-texte,
.final-texte {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: calc(var(--hauteur-entete) + var(--e-7)) var(--gouttiere) var(--e-8);
}
.hero-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h1);
  line-height: var(--interligne-titre);
  max-width: 16ch;
}
.hero-sous-titre {
  margin-top: var(--e-5);
  max-width: 37rem;
  font-size: var(--t-chapo);
  line-height: 1.45;
}
.hero-action {
  margin-top: var(--e-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-6);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: hero-photo 1800ms var(--ease-out) both;
  }
}
@keyframes hero-photo {
  from {
    transform: scale(1.06);
  }
}

/* ---------- 2. Les marques ---------- */

.marques-liste {
  list-style: none;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: var(--e-7) auto 0;
  padding: 0 var(--gouttiere);
  display: grid;
  gap: var(--e-8) var(--e-7);
}
.marque {
  display: grid;
  align-content: start;
  gap: var(--e-4);
}
.marque-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--rayon-photo);
}
/* le trait d'accent de la marque, sous la photo : la seule place de sa couleur */
.marque-photo {
  padding-bottom: var(--e-2);
  border-bottom: 6px solid var(--accent);
}
.marque-nom {
  font-family: var(--police-titre);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.05;
  color: var(--sapin);
}
.marque-faits {
  margin: 0;
  display: grid;
  gap: var(--e-2);
}
.marque-faits div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--e-3);
  padding-top: var(--e-2);
  border-top: 1px solid var(--filet);
}
.marque-faits dt {
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--miel);
  padding-top: 0.15em;
}
.marque-faits dd {
  margin: 0;
  font-weight: 600;
  color: var(--sapin);
}
.marque-phrase {
  max-width: 32rem;
  color: var(--encre-douce);
}
@media (min-width: 900px) {
  .marques-liste {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 3. Le moteur ---------- */

.schemas {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-6);
}
.schema {
  display: grid;
  align-content: start;
  gap: var(--e-3);
}
.schema svg {
  width: 100%;
  height: auto;
  padding: var(--e-5);
  border-radius: var(--rayon);
  background: var(--nappe);
  overflow: visible;
}
.schema-carte svg {
  max-height: 34rem;
}
.schema figcaption {
  max-width: 34rem;
  font-size: 1rem;
  color: var(--encre-douce);
}
.schema figcaption strong {
  color: var(--sapin);
}
.trajet {
  stroke: var(--sapin);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 7;
}
.ville circle {
  fill: var(--sapin);
}
.schema text {
  font-family: var(--police-texte);
  font-size: 15px;
  font-weight: 600;
  fill: var(--encre);
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--nappe);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.schema .km {
  font-weight: 700;
  fill: var(--miel);
}
.coin circle {
  fill: var(--guirlande);
  stroke: var(--sapin);
  stroke-width: 3;
}
.coin text {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 17px;
  fill: var(--sapin);
}
.rayon {
  fill: var(--pre);
  stroke: var(--miel);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}
.schema .legende-svg {
  font-size: 14px;
  fill: var(--miel);
}
.schema .sur-guirlande {
  fill: var(--sapin);
  stroke: none;
  font-size: 13px;
}
.table-commune {
  fill: var(--guirlande);
}
.maisons path,
.gare {
  fill: var(--sapin);
}
.navette {
  fill: none;
  stroke: var(--sapin);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}
@media (min-width: 760px) {
  .schemas {
    grid-template-columns: 1fr 1fr;
  }
}

/* les trois étapes forment une suite : le numéro dit l'ordre */
.etapes {
  list-style: none;
  margin: var(--e-8) 0 0;
  padding: 0;
  counter-reset: etape;
  display: grid;
  gap: var(--e-6) var(--e-7);
}
.etapes li {
  counter-increment: etape;
  padding-top: var(--e-4);
  border-top: 3px solid var(--sapin);
}
.etapes h3 {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.15;
  color: var(--sapin);
}
.etapes h3::before {
  content: counter(etape);
  color: var(--miel);
}
.etapes p {
  margin-top: var(--e-2);
  max-width: 26rem;
  color: var(--encre-douce);
}
@media (min-width: 760px) {
  .etapes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photos-moteur {
  margin-top: var(--e-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-4);
}
.photos-moteur img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon-photo);
}
.photos-moteur figure:first-child {
  grid-column: 1 / -1;
}
.photos-moteur figure:first-child img {
  aspect-ratio: 16 / 9;
}
@media (min-width: 760px) {
  .photos-moteur {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .photos-moteur figure:first-child {
    grid-column: auto;
  }
  .photos-moteur img,
  .photos-moteur figure:first-child img {
    aspect-ratio: auto;
    height: 20rem;
  }
}

/* ---------- 4. Le calendrier ---------- */

.cal {
  margin-top: var(--e-7);
}
.cal-commandes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}
.filtre {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: 2.75rem;
  padding: var(--e-2) var(--e-4);
  border: 1.5px solid var(--sapin-clair);
  border-radius: var(--rayon-petit);
  background: transparent;
  color: var(--nappe);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--duree-ui) ease, color var(--duree-ui) ease, transform var(--duree-appui) var(--ease-out);
}
.filtre:active {
  transform: scale(0.97);
}
.filtre[aria-pressed="true"] {
  background: var(--nappe);
  border-color: var(--nappe);
  color: var(--sapin);
}
@media (hover: hover) and (pointer: fine) {
  .filtre:hover {
    border-color: var(--mousse);
  }
}
.cal-lecture {
  margin-top: var(--e-6);
  display: grid;
  gap: var(--e-2) var(--e-6);
  align-items: baseline;
}
.cal-compte {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
  color: var(--mousse);
}
.cal-compte b {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-geant);
  line-height: 0.9;
  color: var(--guirlande);
  font-variant-numeric: tabular-nums;
}
.cal-phrase {
  max-width: 34rem;
}
@media (min-width: 960px) {
  .cal-lecture {
    grid-template-columns: auto 1fr;
  }
}

.cal-grille {
  margin-top: var(--e-6);
  display: grid;
  grid-template-columns: auto repeat(12, minmax(0, 1fr));
  grid-template-rows: auto repeat(7, auto);
  gap: clamp(3px, 0.6vw, 8px);
}
.cal-mois,
.cal-jour {
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--mousse);
}
.cal-mois {
  grid-column: calc(var(--mois) + 1);
  grid-row: 1;
  text-align: center;
  padding-bottom: var(--e-1);
}
.cal-jour {
  grid-column: 1;
  grid-row: calc(var(--jour) + 1);
  align-self: center;
  padding-right: var(--e-2);
}
.court {
  display: none;
}
.cal-case {
  position: relative;
  grid-column: calc(var(--mois) + 1);
  grid-row: calc(var(--jour) + 1);
  aspect-ratio: 1.6;
  border-radius: 5px;
  transition:
    opacity var(--duree-ui) ease,
    transform 520ms var(--ease-out) calc(var(--mois) * var(--pas-mois));
}
.cal-case[data-marque="retrouvailles"],
.c-retrouvailles {
  background: var(--a-retrouvailles);
}
.cal-case[data-marque="bercail"],
.c-bercail {
  background: var(--a-bercail);
}
.cal-case[data-marque="vide"],
.c-vide {
  background: repeating-linear-gradient(135deg, var(--case-vide) 0 1.5px, transparent 1.5px 6px);
  box-shadow: inset 0 0 0 1px var(--sapin-clair);
}
.cal-lisiere,
.c-lisiere {
  border-radius: 50%;
  background: var(--sapin);
}
.cal-lisiere {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  transform: translate(-50%, -50%);
}
.cal-grille[data-filtre="retrouvailles"] .cal-case:not([data-marque="retrouvailles"]),
.cal-grille[data-filtre="bercail"] .cal-case:not([data-marque="bercail"]) {
  opacity: var(--estompe);
}
.cal-grille[data-vu="non"] .cal-case:not([data-marque="vide"]) {
  opacity: 0;
  transform: scale(0.6);
}
@media (max-width: 759px) {
  .long {
    display: none;
  }
  .court {
    display: inline;
  }
  .cal-case {
    aspect-ratio: 0.8;
    border-radius: 3px;
  }
  .cal-lisiere {
    width: 0.3rem;
    height: 0.3rem;
  }
}
.pastille {
  display: inline-block;
  flex: none;
  width: 1.1rem;
  height: 0.8rem;
  border-radius: 3px;
}
.pastille.c-lisiere {
  width: 0.5rem;
  height: 0.5rem;
  margin-inline: 0.3rem;
  box-shadow: 0 0 0 3px var(--guirlande);
}
.cal-legende {
  list-style: none;
  margin: var(--e-5) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2) var(--e-5);
  font-size: var(--t-petit);
  color: var(--mousse);
}
.cal-legende li {
  display: flex;
  align-items: center;
  gap: var(--e-2);
}
.cal-notes {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-5) var(--e-7);
}
.cal-notes p {
  max-width: 32rem;
  color: var(--mousse);
}
.cal-notes strong {
  display: block;
  margin-bottom: var(--e-1);
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.15;
  color: var(--nappe);
}
@media (min-width: 960px) {
  .cal-notes {
    grid-template-columns: 1fr 1fr;
  }
}
.tableau-repli {
  margin-top: var(--e-7);
}
.tableau-repli summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--guirlande);
}
.tableau-defile {
  overflow-x: auto;
}
.tableau {
  width: 100%;
  min-width: 34rem;
  margin-top: var(--e-3);
  border-collapse: collapse;
  font-size: 1rem;
}
.tableau caption {
  text-align: left;
  padding-bottom: var(--e-2);
  color: var(--mousse);
}
.tableau th,
.tableau td {
  padding: var(--e-3) var(--e-3) var(--e-3) 0;
  border-top: 1px solid var(--sapin-clair);
  text-align: left;
  vertical-align: top;
}
.tableau thead th {
  border-top: 0;
  font-size: var(--t-petit);
  color: var(--mousse);
}
.note {
  margin-top: var(--e-5);
  max-width: 40rem;
  font-size: var(--t-petit);
  color: var(--mousse);
}

/* ---------- 5. Pourquoi ça tient ---------- */

.tient-grille {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-7);
  align-items: start;
}
.tient-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-5);
}
.tient-points li {
  padding-top: var(--e-3);
  border-top: 1px solid var(--filet);
}
.tient-points h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.15;
  color: var(--sapin);
}
.tient-points p {
  margin-top: var(--e-2);
  max-width: 32rem;
  color: var(--encre-douce);
}
.occupation {
  padding: var(--e-6);
  border-radius: var(--rayon);
  background: var(--nappe);
}
.occupation-titre {
  font-weight: 700;
  color: var(--sapin);
}
.occupation-barres {
  list-style: none;
  margin: var(--e-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-4);
}
.occupation-barres li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3.5rem;
  align-items: center;
  gap: var(--e-3);
  font-weight: 600;
}
.occupation-barre {
  height: 1rem;
  border-radius: 99px;
  background: var(--pre);
  overflow: hidden;
}
.occupation-barre span {
  display: block;
  height: 100%;
  background: var(--sapin);
  transform-origin: left center;
  transform: scaleX(var(--part));
}
.occupation-valeur {
  font-family: var(--police-titre);
  font-size: 1.35rem;
  color: var(--sapin);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.occupation-note,
.en-cours {
  margin-top: var(--e-4);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.en-cours {
  padding: var(--e-3) var(--e-4);
  border-left: 3px solid var(--guirlande);
  background: var(--nappe);
  font-size: 1rem;
}
@media (min-width: 960px) {
  .tient-grille {
    grid-template-columns: 7fr 5fr;
  }
}

/* ---------- 6. Qui nous sommes ---------- */

.qui-grille {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-7);
}
.preuves {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-6) var(--e-5);
}
.preuve {
  padding-top: var(--e-3);
  border-top: 1px solid var(--filet);
}
.preuve-large {
  grid-column: 1 / -1;
  border-top: 3px solid var(--sapin);
}
.preuve dt {
  font-family: var(--police-titre);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  line-height: 1;
  color: var(--sapin);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.preuve-large dt {
  font-size: var(--t-geant);
  line-height: 0.95;
}
.preuve dd {
  margin: var(--e-2) 0 0;
  max-width: 30rem;
  color: var(--encre-douce);
}
.jauge {
  display: block;
  height: 0.75rem;
  margin-top: var(--e-4);
  border-radius: 99px;
  background: var(--pre);
  overflow: hidden;
}
.jauge span {
  display: block;
  height: 100%;
  background: var(--sapin);
  transform-origin: left center;
  transform: scaleX(var(--part));
}
.capture,
.figure-lisiere {
  display: grid;
  align-content: start;
  gap: var(--e-3);
}
.capture img {
  width: 100%;
  border-radius: var(--rayon-petit);
  box-shadow: 0 0 0 1px var(--filet);
}
.figure-lisiere img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon-photo);
}
.capture figcaption,
.figure-lisiere figcaption {
  font-size: 1rem;
  color: var(--encre-douce);
}
.capture figcaption a {
  color: var(--sapin);
  font-weight: 600;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
@media (min-width: 960px) {
  .qui-grille {
    grid-template-columns: 6fr 4fr 3fr;
    align-items: start;
  }
}

/* ---------- 7. Partenaires ---------- */

.partenaires-grille {
  display: grid;
  gap: var(--e-7);
  align-items: center;
}
.partenaires-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--rayon-photo);
}
.partenaires-texte p:not(.chapo) {
  margin-top: var(--e-4);
  max-width: 34rem;
  color: var(--mousse);
}
.partenaires-actions {
  margin-top: var(--e-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-6);
}
@media (min-width: 960px) {
  .partenaires-grille {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 8. Appel final ---------- */

.final {
  min-height: max(30rem, 70svh);
}
.final-photo img {
  object-position: 50% 65%;
}
.final-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  max-width: 16ch;
}
.final-liens {
  list-style: none;
  margin: var(--e-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-4) var(--e-6);
}

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

.pied {
  background: var(--sapin-nuit);
  color: var(--mousse);
  padding: var(--e-7) var(--gouttiere);
  font-size: var(--t-petit);
}
.pied-grille {
  max-width: var(--largeur);
  margin-inline: auto;
  display: grid;
  gap: var(--e-6);
}
.pied-logo {
  width: 8rem;
  margin-bottom: var(--e-3);
}
.pied-marques {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-3);
}
.pied-marques a {
  color: var(--nappe);
  font-family: var(--police-titre);
  font-size: 1.25rem;
  text-decoration: none;
}
.pied-marques span {
  display: block;
  color: var(--mousse);
}
.pied a.pied-lien {
  color: inherit;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .pied-marques a:hover,
  .pied a.pied-lien:hover {
    color: var(--nappe);
    text-decoration: underline;
  }
}
@media (min-width: 760px) {
  .pied-grille {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------- Fausse porte : travaillons ensemble ---------- */

.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;
  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: var(--voile);
  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(40rem, 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(--pre);
  border-radius: var(--rayon-petit);
  font-size: 1rem;
  color: var(--encre-douce);
}
.question {
  margin: var(--e-5) 0 0;
  padding: 0;
  border: 0;
}
.question legend {
  padding: 0;
  font-weight: 700;
  color: var(--sapin);
}
.question[data-manque="oui"] legend {
  color: var(--rouge);
}
.choix {
  margin-top: var(--e-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}
.choix label {
  position: relative;
}
.choix input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.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: 1rem;
  cursor: pointer;
  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: 3px solid var(--guirlande);
  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(--rouge);
}
.proposition:focus {
  outline: none;
}
.proposition-blocs {
  margin: var(--e-5) 0 0;
  display: grid;
  gap: var(--e-4);
}
.proposition-blocs div {
  padding-top: var(--e-3);
  border-top: 1px solid var(--pre);
}
.proposition-blocs dt {
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--miel);
}
.proposition-blocs dd {
  margin: var(--e-1) 0 0;
}
.proposition-blocs ul {
  margin: 0;
  padding-left: 1.2rem;
}
.proposition-note {
  margin-top: var(--e-5);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.proposition .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]) {
    transform: none;
  }
  .cal-grille[data-vu="non"] .cal-case:not([data-marque="vide"]) {
    opacity: 1;
    transform: none;
  }
}
