/* Retrouvailles · composants de la landing, du carnet, de l'invitation et des crédits.
   Toutes les valeurs viennent des jetons de /ds.css ; les composants sont décrits dans DESIGN.md.
   Rythme de film : des sections plein cadre (photo, titre en bas à gauche) alternent avec des sections claires. */

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

/* ---------- 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;
}
/* le <picture> d'une photo (photo.js) ne fait pas de boîte : les feuilles stylent l'<img> */
.photo-sources {
  display: contents;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
p {
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: var(--trait-fort) solid var(--guirlande);
  outline-offset: var(--e-1);
}
.evitement {
  position: absolute;
  left: var(--e-3);
  top: calc(-1 * var(--e-7));
  z-index: 50;
  padding: var(--e-2) var(--e-3);
  background: var(--guirlande);
  color: var(--sapin);
  font-weight: 700;
  border-radius: var(--rayon-petit);
}
.evitement:focus {
  top: var(--e-3);
}

/* ---------- Titres et textes ---------- */

.titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: var(--interligne-titre);
  max-width: var(--mesure-titre);
}
.titre-moyen {
  font-size: var(--t-h3);
}
.affiche {
  font-family: var(--police-titre);
  font-size: var(--t-affiche);
  line-height: var(--interligne-titre);
}
.affiche .ligne {
  display: block;
}
.affiche-or {
  color: var(--guirlande);
}
.phrase {
  margin-top: var(--e-3);
  max-width: var(--mesure);
  font-size: var(--t-chapo);
  line-height: var(--interligne-serre);
  color: var(--encre-douce);
}
.note {
  margin-top: var(--e-4);
  max-width: var(--mesure);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.tete {
  margin-bottom: var(--e-6);
}

/* ---------- Bouton (principal, secondaire, petit) ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cible);
  padding: var(--e-2) var(--e-5);
  border: 0;
  border-radius: var(--rayon-petit);
  background: var(--guirlande);
  color: var(--sapin);
  font-weight: 700;
  font-size: var(--t-base);
  line-height: var(--interligne-serre);
  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), background-color var(--duree-ui) ease;
}
.bouton:active {
  transform: translateY(var(--trait-fort));
  box-shadow: var(--ombre-bouton-appui);
}
.bouton-second {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 var(--trait-fort) currentColor;
}
.bouton-second:active {
  box-shadow: inset 0 0 0 var(--trait-fort) currentColor;
}
.bouton-petit {
  min-height: var(--cible-petite);
  padding: var(--e-2) var(--e-4);
  font-size: var(--t-petit);
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover {
    background: var(--guirlande-survol);
  }
  .bouton-second:hover {
    background: var(--voile-leger);
  }
}

/* ---------- Liens ---------- */

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible-petite);
  color: var(--miel);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.lien-fleche::after {
  content: "→";
  transition: transform var(--duree-ui) var(--ease-out);
}
.lien-fleche-clair {
  color: var(--guirlande);
}
.lien-bas {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible-petite);
  color: var(--nappe);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.lien-bas::after {
  content: "↓";
}
@media (hover: hover) and (pointer: fine) {
  .lien-fleche:hover::after {
    transform: translateX(var(--e-1));
  }
}

/* Un mot composé qui ne se coupe pas à son trait d'union (« week-/end » en fin de ligne d'un titre) */
.insecable {
  white-space: nowrap;
}

/* ---------- Pastille ---------- */

/* Texte courant, pas de flex : la ligne se coupe entre les mots, jamais juste avant le point médian. */
.pastille {
  display: inline-block;
  margin-top: var(--e-4);
  padding: var(--e-2) var(--e-3);
  border-radius: var(--rayon-petit);
  background: var(--voile-texte);
  box-shadow: inset 0 0 0 var(--trait) var(--guirlande);
  font-size: var(--t-petit);
}
.pastille strong {
  color: var(--guirlande);
}

/* ---------- En-tête et barre mobile ---------- */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3);
  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(--trait) 0 var(--sapin-clair);
}
.entete-logo img {
  width: clamp(8.5rem, 6rem + 6vw, 11rem);
}
.barre-mobile {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  padding: var(--e-2) var(--gouttiere) calc(var(--e-2) + env(safe-area-inset-bottom));
  background: var(--sapin);
  box-shadow: 0 calc(-1 * var(--trait)) 0 var(--sapin-clair);
  transform: translateY(100%);
  transition: transform var(--duree-panneau) var(--ease-drawer);
}
.barre-mobile .bouton {
  width: 100%;
}
.barre-mobile.visible {
  transform: none;
}
@media (max-width: 759px) {
  .entete .bouton {
    display: none;
  }
  /* La barre collante ne recouvre jamais la fin de la page. Sur la landing, elle s'efface devant le bloc
     final : pas de marge, sinon une bande claire reste sous la photo. */
  body:has(.barre-mobile):not(:has(.plein-final)) {
    padding-bottom: calc(var(--cible) + 2 * var(--e-2) + env(safe-area-inset-bottom));
  }
}
@media (min-width: 760px) {
  .barre-mobile {
    display: none;
  }
}

/* ---------- Section claire ---------- */

/* la colonne de 78 rem est portée par le padding : chaque enfant s'aligne sur le même bord gauche, qu'il
   soit pleine colonne (mosaïque) ou plus étroit (paiements, questions) */
.section {
  padding: var(--e-8) max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
}
.section-sapin {
  background: var(--sapin);
  color: var(--nappe);
}
.section-sapin .phrase,
.section-sapin .note {
  color: var(--mousse);
}
.section-pre {
  background: var(--pre);
}
.section-creme {
  background: var(--creme);
}
@media (max-width: 759px) {
  .section {
    padding-block: var(--e-7);
  }
}

/* ---------- Section plein cadre : la photo sur toute la largeur, le titre en bas à gauche ---------- */

.plein {
  position: relative;
  display: grid;
  align-items: end;
  min-height: var(--hauteur-plein);
  overflow: hidden;
  background: var(--sapin-nuit);
  color: var(--nappe);
  isolation: isolate;
}
.plein-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.plein-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plein::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--voile-fort) 0%, var(--voile-moyen) 38%, var(--voile-nul) 72%);
}
.plein-texte {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: var(--e-8) var(--gouttiere) var(--e-7);
}
.plein-texte > * {
  max-width: var(--mesure);
}
.plein-texte > .affiche,
.plein-texte > .titre {
  max-width: var(--mesure-titre);
}
.plein-ligne {
  margin-top: var(--e-4);
  font-size: var(--t-chapo);
  line-height: var(--interligne-serre);
}
.plein-hero {
  min-height: 100svh;
}
.plein-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--e-9);
  z-index: -1;
  background: linear-gradient(180deg, var(--voile-moyen), var(--voile-nul));
}
.plein-hero .affiche {
  max-width: 17ch;
}
.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
  margin-top: var(--e-5);
}
.plein-final .bouton {
  margin-top: var(--e-5);
}
@media (prefers-reduced-motion: no-preference) {
  .plein-photo img {
    animation: ken-burns var(--duree-ken-burns) var(--ease-doux) infinite alternate;
  }
}
@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.07) translate(-1.2%, -0.8%); }
}

/* ---------- Apparition des sections : opacité et 16 px, 400 ms (app.js pose .a-venir sous l'écran) ---------- */

.apparait {
  transition: opacity var(--duree-entree) var(--ease-out), transform var(--duree-entree) var(--ease-out);
}
.a-venir {
  opacity: 0;
  transform: translateY(var(--decalage-entree));
}

/* ---------- Le déroulé : le sélecteur de mois, puis un plan par moment, photo sur 60 %, alternée ---------- */

/* douze mois : 3 colonnes sur téléphone, 4 sur tablette, 6 au-delà ; jamais de défilement latéral */
.selecteur {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--e-2);
}
.selecteur-mois {
  display: grid;
  align-content: start;
  gap: var(--e-1);
  min-height: var(--cible);
  padding: var(--e-2) var(--e-3);
  border: 0;
  border-radius: var(--rayon-petit);
  background: var(--pre);
  color: var(--sapin);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--duree-ui) ease, color var(--duree-ui) ease;
}
.selecteur-nom {
  font-weight: 700;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}
@media (max-width: 599px) {
  .selecteur-mois {
    padding-inline: var(--e-2);
  }
  .selecteur-nom {
    font-size: var(--t-petit);
  }
}
/* « Festivendanges » ne tient pas dans une case de 390 px : il se coupe en syllabes (lang="fr"). */
.selecteur-quoi {
  min-width: 0;
  font-size: var(--t-petit);
  line-height: var(--interligne-serre);
  color: var(--encre-douce);
  hyphens: auto;
  overflow-wrap: anywhere;
}
.selecteur-mois[aria-pressed="true"] {
  background: var(--sapin);
  color: var(--guirlande);
}
.selecteur-mois[aria-pressed="true"] .selecteur-quoi {
  color: var(--nappe);
}
@media (hover: hover) and (pointer: fine) {
  .selecteur-mois:not([aria-pressed="true"]):hover {
    background: var(--filet-clair);
  }
}
@media (min-width: 600px) {
  .selecteur {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .selecteur {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.deroule-date {
  margin-block: var(--e-5) var(--e-7);
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: var(--interligne-serre);
  color: var(--miel);
}
.deroule-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
  margin-top: var(--e-6);
}

.plans {
  display: grid;
  gap: var(--e-8);
}
.plan {
  display: grid;
  gap: var(--e-4);
  align-items: center;
}
.plan-photo {
  overflow: hidden;
  border-radius: var(--rayon-photo);
  aspect-ratio: var(--ratio-photo);
  background: var(--pre);
}
.plan-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plan-photo-petite {
  margin-top: var(--e-5);
  max-width: 60%;
}
.plan-quand {
  font-weight: 700;
  color: var(--miel);
}
.plan-lieu {
  margin-top: var(--e-1);
  font-family: var(--police-titre);
  font-size: var(--t-recit);
  line-height: var(--interligne-serre);
  color: var(--sapin);
}
.plan-ligne {
  margin-top: var(--e-3);
  max-width: var(--mesure);
  font-size: var(--t-chapo);
  line-height: var(--interligne-serre);
  color: var(--encre);
}
/* le plan du samedi soir sort de la colonne : toute la largeur de la page */
.plan-plein {
  margin-inline: calc(50% - 50vw);
}
.plan-plein .plein-texte {
  max-width: none;
  padding-inline: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2));
}
.plan-plein .plan-quand {
  color: var(--guirlande);
}
.plan-plein-ligne {
  margin-top: var(--e-2);
}
.recit-pluie {
  margin-top: var(--e-7);
  font-size: var(--t-chapo);
}
@media (min-width: 960px) {
  .plan {
    grid-template-columns: 3fr 2fr;
    gap: var(--e-7);
  }
  .plan-inverse {
    grid-template-columns: 2fr 3fr;
  }
  .plan-inverse > .plan-photo {
    order: 2;
  }
}

/* ---------- Carte photo : une photo, une étiquette ---------- */

.carte-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--rayon-photo);
}
.carte-photo img {
  width: 100%;
  aspect-ratio: var(--ratio-photo);
  object-fit: cover;
}
.etiquette {
  position: absolute;
  left: var(--e-2);
  bottom: var(--e-2);
  padding: var(--e-1) var(--e-2);
  border-radius: var(--rayon-petit);
  background: var(--voile-clair);
  color: var(--sapin);
  font-size: var(--t-petit);
  font-weight: 600;
  line-height: var(--interligne-serre);
}
.mosaique {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e-3);
}
.carte-photo-grande {
  grid-column: span 2;
}
.mosaique .carte-photo:last-child {
  grid-column: span 2;
}
@media (min-width: 760px) {
  .mosaique {
    grid-template-columns: repeat(3, 1fr);
  }
  .carte-photo-grande {
    grid-row: span 2;
  }
  .carte-photo-grande img {
    height: 100%;
  }
  .mosaique .carte-photo:last-child {
    grid-column: auto;
  }
}

/* ---------- Carte maison ---------- */

.cartes-maisons {
  display: grid;
  gap: var(--e-3);
  margin-top: var(--e-5);
}
.carte-maison {
  padding: var(--e-4);
  border-radius: var(--rayon);
  background: var(--pre);
}
.carte-maison-nom {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: var(--interligne-serre);
  color: var(--sapin);
}
.carte-maison {
  display: grid;
  align-content: start;
  gap: var(--e-2);
}
.carte-maison-chiffres {
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--sapin);
}
.carte-maison-chiffres:empty {
  display: none;
}
.carte-maison-lien {
  justify-self: start;
}
.etiquettes {
  color: var(--encre-douce);
}
/* le point reste en fin de ligne : une étiquette ne commence jamais par « · » */
.etiquettes span {
  white-space: nowrap;
}
.etiquettes span:not(:last-child)::after {
  content: " · ";
  white-space: normal;
}
@media (min-width: 760px) {
  .cartes-maisons {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Carte prix, ce qui est compris, âges ---------- */

.cartes-prix {
  display: grid;
  gap: var(--e-3);
}
.carte-prix {
  display: grid;
  gap: var(--e-2);
  padding: var(--e-5);
  border-radius: var(--rayon);
  background: var(--nappe);
  box-shadow: var(--ombre-carte);
}
.carte-prix-photo {
  display: block;
  margin: calc(-1 * var(--e-5)) calc(-1 * var(--e-5)) var(--e-2);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--rayon) var(--rayon) 0 0;
}
.carte-prix-photo img,
.compris-photo img,
.paiement-photo img,
.faq-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carte-prix-qui {
  color: var(--encre-douce);
  font-weight: 600;
}
.carte-prix-montant {
  font-family: var(--police-titre);
  font-size: var(--t-chiffre);
  line-height: var(--interligne-titre);
  color: var(--sapin);
  font-variant-numeric: tabular-nums;
}
.tablee-mini {
  display: flex;
  align-items: center;
  gap: var(--e-1);
}
.tablee-mini .assiette {
  border-color: var(--sapin-clair);
  background: var(--guirlande);
}
.prix-details {
  display: grid;
  gap: var(--e-6);
  margin-top: var(--e-7);
}
/* sur téléphone, le calculateur suit les cartes, avant le détail : une photo au moins tous les 1,5 écran */
@media (max-width: 959px) {
  .prix {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .prix > .simulateur {
    order: 1;
  }
  .prix > .prix-details {
    order: 2;
  }
}
.compris-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--sapin);
}
.compris-liste {
  margin-top: var(--e-3);
}
/* Compris : une vignette par ligne, à la place de la coche (.coches.compris-liste passe devant .coches li) */
.coches.compris-liste li {
  display: grid;
  grid-template-columns: var(--vignette-compris) minmax(0, 1fr);
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-2) 0;
}
.coches.compris-liste li::before {
  content: none;
}
.compris-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--rayon-petit);
}
/* padding et non marge : en deux colonnes, la première ligne de chaque colonne part du même haut */
.coches li {
  position: relative;
  padding: var(--e-1) 0 var(--e-1) var(--e-5);
}
.coches li::before {
  content: "✓";
  position: absolute;
  top: var(--e-1);
  left: 0;
  color: var(--miel);
  font-weight: 700;
}
.ages div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--e-3);
  padding-block: var(--e-3);
  border-bottom: var(--trait) solid var(--filet-clair);
}
.ages dd {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--sapin);
}
@media (min-width: 760px) {
  .cartes-prix {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 960px) {
  .prix-details {
    grid-template-columns: 2fr 1fr;
    gap: var(--e-7);
  }
  .compris-liste {
    columns: 2;
    column-gap: var(--e-6);
  }
  .compris-liste li {
    break-inside: avoid;
  }
}

/* ---------- Calculateur : une table par maison, une assiette par convive ---------- */

.simulateur {
  margin-top: var(--e-7);
  padding: var(--e-5) var(--e-4);
  border-radius: var(--rayon);
  background: var(--sapin-nuit);
  color: var(--nappe);
}
.simulateur-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
}
.simulateur-reglages {
  display: grid;
  gap: var(--e-3);
  margin-top: var(--e-4);
}
.compteur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3);
}
.compteur-nom {
  font-weight: 600;
}
.compteur-commandes {
  display: flex;
  align-items: center;
  gap: var(--e-2);
}
.compteur-bouton {
  width: var(--cible);
  height: var(--cible);
  border: var(--trait-fort) solid var(--mousse);
  border-radius: var(--rayon-rond);
  background: transparent;
  color: var(--nappe);
  font-size: var(--t-1);
  line-height: 1;
  cursor: pointer;
  transition: transform var(--duree-appui) var(--ease-out), background-color var(--duree-ui) ease;
}
.compteur-bouton:active {
  transform: scale(0.94);
}
.compteur-bouton:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (hover: hover) and (pointer: fine) {
  .compteur-bouton:not(:disabled):hover {
    background: var(--sapin-clair);
  }
}
.compteur-valeur {
  min-width: var(--cible-petite);
  text-align: center;
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  font-variant-numeric: tabular-nums;
}
.maisons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--e-4);
  margin-top: var(--e-5);
}
.maison {
  display: grid;
  gap: var(--e-2);
}
.maison-nom {
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--mousse);
}
.maison-rang {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-1);
  min-height: var(--e-5);
  padding-inline: var(--e-2);
}
.maison-table {
  height: var(--assiette);
  border-radius: var(--rayon-petit);
  background: var(--bois);
}
.assiette {
  width: var(--assiette);
  height: var(--assiette);
  border-radius: var(--rayon-rond);
  border: var(--trait-fort) solid var(--nappe);
  background: var(--sapin-clair);
  transition: transform var(--duree-ui) var(--ease-out), opacity var(--duree-ui) ease;
}
@starting-style {
  .assiette {
    transform: scale(0.5);
    opacity: 0;
  }
}
.assiette-enfant {
  width: var(--assiette-enfant);
  height: var(--assiette-enfant);
  border-color: var(--mousse);
}
.assiette-offerte {
  background: var(--guirlande);
  border-color: var(--guirlande);
}
.simulateur-bilan {
  margin-top: var(--e-5);
  padding-top: var(--e-4);
  border-top: var(--trait) solid var(--sapin-clair);
}
.simulateur-total {
  font-size: var(--t-chapo);
}
.simulateur-total span {
  font-family: var(--police-titre);
  font-size: var(--t-chiffre);
  color: var(--guirlande);
  font-variant-numeric: tabular-nums;
}
.simulateur-detail,
.simulateur-message {
  margin-top: var(--e-2);
  color: var(--mousse);
}
.simulateur-message:empty {
  display: none;
}
.simulateur-bouton {
  margin-top: var(--e-5);
}
@media (min-width: 760px) {
  .simulateur {
    padding: var(--e-6);
  }
  .simulateur-reglages {
    grid-template-columns: 1fr 1fr;
    gap: var(--e-6);
  }
}

/* ---------- Ligne de paiement ---------- */

/* « qui paie » : sur grand écran la photo à gauche, alignée sur le titre, la liste et la phrase forte à droite ;
   sur téléphone, la photo d'abord, sous le titre */
.paiement-corps {
  display: grid;
  gap: var(--e-6);
  align-items: center;
}
@media (min-width: 960px) {
  .paiement-corps {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--e-7);
  }
}
.paiements {
  padding: var(--e-2) var(--e-4);
  border-radius: var(--rayon);
  background: var(--nappe);
  box-shadow: var(--ombre-carte);
}
.ligne-paiement {
  display: grid;
  grid-template-columns: var(--pastille) 1fr auto;
  grid-template-areas: "pastille nom montant" ". etat etat";
  align-items: center;
  gap: var(--e-1) var(--e-3);
  padding-block: var(--e-3);
  font-size: var(--t-1);
}
.ligne-paiement + .ligne-paiement {
  border-top: var(--trait) solid var(--filet-clair);
}
.pastille-foyer {
  grid-area: pastille;
  width: var(--pastille);
  height: var(--pastille);
  border-radius: var(--rayon-rond);
  background: var(--teinte);
}
.ligne-paiement-nom {
  grid-area: nom;
  font-weight: 600;
}
.ligne-paiement-montant {
  grid-area: montant;
  font-family: var(--police-titre);
  color: var(--sapin);
  font-variant-numeric: tabular-nums;
}
.ligne-paiement-etat {
  grid-area: etat;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.ligne-paiement-etat.est-paye {
  color: var(--sapin);
  font-weight: 700;
}
.ligne-paiement-etat.est-paye::before {
  content: "✓ ";
  color: var(--miel);
}
.paiement-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--rayon);
}
@media (min-width: 960px) {
  .paiement-corps {
    grid-template-areas: "photo liste" "photo fort";
    align-items: start;
  }
  .paiements {
    grid-area: liste;
  }
  .paiement-fort {
    grid-area: fort;
  }
  .paiement-photo {
    grid-area: photo;
    align-self: stretch;
    aspect-ratio: auto;
  }
}
.paiement-fort {
  max-width: 24ch;
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: var(--interligne-serre);
  color: var(--sapin);
}
@media (min-width: 760px) {
  .ligne-paiement {
    grid-template-columns: var(--pastille) 1fr auto 10rem;
    grid-template-areas: "pastille nom montant etat";
  }
  .ligne-paiement-etat {
    text-align: right;
  }
}

/* ---------- Dépliable (questions) ---------- */

/* Questions : la Loire à Cosne à gauche, qui reste en vue pendant qu'on déplie, la liste à droite */
.faq-corps {
  display: grid;
  gap: var(--e-6);
}
.faq-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--rayon);
}
@media (min-width: 960px) {
  .faq-corps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 48rem);
    align-items: start;
    gap: var(--e-7);
  }
  .faq-photo {
    position: sticky;
    top: calc(var(--hauteur-entete) + var(--e-5));
    aspect-ratio: 4 / 5;
  }
}
.questions {
  max-width: 48rem;
  border-top: var(--trait) solid var(--filet);
}
.depliable {
  border-bottom: var(--trait) solid var(--filet);
}
.depliable summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--e-3);
  min-height: var(--cible);
  padding-block: var(--e-3);
  font-size: var(--t-1);
  font-weight: 600;
  line-height: var(--interligne-serre);
  cursor: pointer;
  list-style: none;
}
.depliable summary::-webkit-details-marker {
  display: none;
}
.depliable summary::after {
  content: "+";
  flex: none;
  font-family: var(--police-titre);
  font-size: var(--t-2);
  color: var(--miel);
  transition: transform var(--duree-ui) var(--ease-out);
}
.depliable[open] summary::after {
  transform: rotate(45deg);
}
.depliable p {
  max-width: var(--mesure);
  padding-bottom: var(--e-4);
  color: var(--encre-douce);
}
.depliable .bouton {
  margin-bottom: var(--e-4);
}

/* ---------- Cadre photo (guide de Cosne) ---------- */

.cadre {
  overflow: hidden;
  border-radius: var(--rayon-photo);
}
.cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
  .a-venir {
    opacity: 1;
    transform: none;
  }
}
