/* Retrouvailles · feuille de style
   Direction : la tablée du soir à la campagne. Fonds tirés des photos (vert sapin des ombres, lumière dorée
   des guirlandes), une seule couleur d'action (la guirlande), une display ronde et généreuse (Caprasimo). */

@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 */
  --sapin: #1e3a2f;          /* ombre verte des photos : fonds sombres */
  --sapin-nuit: #13261e;     /* pied de page, panneau du simulateur */
  --sapin-clair: #2c5243;    /* filets et tables sur fond sapin */
  --guirlande: #f4b740;      /* lumière des ampoules : action, chiffres sur fond sombre */
  --guirlande-pale: #fbe7b5; /* colonne Retrouvailles du comparatif */
  --miel: #7a4f00;           /* texte doré sur fond clair, 6,8:1 sur la nappe */
  --pre: #e9eddc;            /* sections claires */
  --nappe: #fbfaf3;          /* cartes, panneau, sections de lecture */
  --encre: #18221c;          /* texte */
  --encre-douce: #46523f;    /* texte secondaire, 7,9:1 sur la nappe */
  --mousse: #b9c89f;         /* texte secondaire sur sapin, 6,9:1 */
  --bois: #8a6a45;           /* plateau des tables du simulateur */

  /* 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;
  --mesure: 36rem;

  /* formes */
  --rayon-petit: 10px;
  --rayon: 20px;
  --rayon-photo: 6px;
  --ombre-bouton: 0 3px 0 0 #b5841f;

  /* 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;
  --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: 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);
}

.titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  max-width: 20ch;
}

/* ---------- Bouton d'action, le seul de la page ---------- */

.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;
  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: 0 1px 0 0 #b5841f;
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover {
    background: #f7c45e;
  }
}
.bouton-petit {
  min-height: 2.75rem;
  padding: var(--e-2) var(--e-5);
  font-size: 1rem;
}
.bouton-plein {
  width: 100%;
}

/* ---------- 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(8.5rem, 6rem + 6vw, 11rem);
}
/* Sur téléphone, la barre du bas porte l'action : l'en-tête garde le seul logo */
@media (max-width: 759px) {
  .entete .bouton {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: max(36rem, 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: 60% 50%;
}
/* voile de lecture : sombre sous le texte, transparent sur la tablée */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(19 38 30 / 0.78) 0%, rgb(19 38 30 / 0.5) 42%, rgb(19 38 30 / 0) 62%),
    linear-gradient(0deg, rgb(19 38 30 / 0.45) 0%, rgb(19 38 30 / 0) 22%);
}
.hero-texte {
  position: relative;
  z-index: 1;
  padding: calc(var(--hauteur-entete) + var(--e-6)) var(--gouttiere) var(--e-8);
  max-width: 48rem;
}
.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: 34rem;
  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-4) var(--e-5);
}
.hero-repere {
  font-size: var(--t-petit);
  line-height: 1.5;
  color: var(--nappe);
  opacity: 0.88;
}

@media (min-width: 960px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgb(19 38 30 / 0.82) 0%, rgb(19 38 30 / 0.55) 34%, rgb(19 38 30 / 0) 56%),
      linear-gradient(0deg, rgb(19 38 30 / 0.4) 0%, rgb(19 38 30 / 0) 20%);
  }
  .hero-texte {
    padding-top: calc(var(--hauteur-entete) + 9vh);
    max-width: 54rem;
  }
  .hero-photo img {
    object-position: 50% 60%;
  }
}

/* Lever de rideau : un seul moment orchestré, au chargement */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: hero-photo 1800ms var(--ease-out) both;
  }
  .hero-titre .ligne,
  .hero-sous-titre,
  .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: 460ms; }
  .hero-action { animation-delay: 580ms; }
}
@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 ---------- */

.douleur,
.promesse,
.michemin,
.deroule,
.village,
.inclus,
.offre,
.risque,
.faq {
  padding: var(--e-9) var(--gouttiere);
}
.douleur > *,
.promesse > *,
.michemin > *,
.deroule > *,
.village > *,
.inclus > *,
.offre > *,
.risque > *,
.faq > * {
  max-width: var(--largeur);
  margin-inline: auto;
}

/* ---------- 2. Douleur ---------- */

.douleur {
  background: var(--sapin);
  color: var(--nappe);
  display: grid;
  gap: var(--e-7);
}
.douleur-chapo {
  margin-top: var(--e-5);
  max-width: 28rem;
  font-size: var(--t-chapo);
  color: var(--mousse);
}
.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: 1px solid var(--sapin-clair);
  font-size: var(--t-chapo);
  line-height: 1.4;
}
/* case à cocher vide : ce qui reste à faire, pour toi */
.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;
}
.douleur-chute {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.3;
  color: var(--guirlande);
  width: 100%;
}
@media (min-width: 960px) {
  .douleur {
    grid-template-columns: 5fr 7fr;
    column-gap: var(--e-8);
    max-width: none;
  }
  .douleur > * {
    margin: 0;
  }
  .douleur-tete {
    justify-self: end;
    width: min(100%, 26rem);
  }
  .corvees,
  .douleur-chute {
    max-width: 40rem;
  }
  .douleur-chute {
    grid-column: 2;
  }
}

/* ---------- 3. Promesse ---------- */

.promesse {
  background: var(--pre);
  display: grid;
  gap: var(--e-7);
}
.promesse-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h1);
  line-height: var(--interligne-titre);
  color: var(--sapin);
}
.promesse-titre span {
  display: block;
}
.cadre {
  margin: 0;
  border-radius: var(--rayon-photo);
  overflow: hidden;
  background: var(--sapin);
}
.cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.engagements {
  margin: 0;
  display: grid;
  gap: var(--e-6) var(--e-7);
}
.engagements div {
  padding-top: var(--e-4);
  border-top: 3px solid var(--sapin);
}
.engagements dt {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
}
.engagements dd {
  margin: var(--e-2) 0 0;
  color: var(--encre-douce);
  max-width: 30rem;
}
@media (min-width: 760px) {
  .engagements {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .promesse {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    max-width: none;
  }
  .promesse > * {
    margin: 0;
  }
  .promesse-titre {
    justify-self: end;
    width: min(100%, 38rem);
    align-self: center;
  }
  .promesse-photo {
    aspect-ratio: 4 / 3;
    max-width: 38rem;
  }
  .engagements {
    grid-column: 1 / -1;
    width: min(100%, var(--largeur));
    margin-inline: auto;
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.michemin {
  background: var(--guirlande);
  color: var(--sapin);
}
.michemin-tete p {
  margin-top: var(--e-4);
  font-size: var(--t-chapo);
  max-width: 32rem;
}
.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 label {
  position: relative;
}
.villes input,
.choix input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.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;
  font-size: var(--t-base);
  transition: background-color var(--duree-ui) ease, color 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(--guirlande);
  border-color: var(--guirlande);
}
.villes input:focus-visible + span {
  outline: 3px solid var(--sapin);
  outline-offset: 3px;
}
.villes label:active span {
  transform: scale(0.98);
}
.verdict {
  background: var(--nappe);
  border-radius: var(--rayon);
  padding: var(--e-6);
  color: var(--encre);
  box-shadow: 6px 6px 0 var(--sapin);
}
.verdict-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: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.1;
  color: var(--sapin);
}
.verdict-resume {
  margin-top: var(--e-2);
  color: var(--encre-douce);
}
.trajets {
  list-style: none;
  margin: var(--e-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-3);
}
.trajet {
  display: grid;
  grid-template-columns: 5.5rem 1fr 4.25rem;
  align-items: center;
  gap: var(--e-3);
  font-size: 1rem;
}
.trajet-ville {
  font-weight: 600;
}
.trajet-barre {
  height: 0.75rem;
  border-radius: 99px;
  background: var(--pre);
  overflow: hidden;
}
.trajet-barre span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sapin);
  transform-origin: left center;
  transform: scaleX(var(--part, 0));
  transition: transform 520ms var(--ease-out);
}
.trajet-duree {
  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: 1px solid var(--pre);
  font-size: 1rem;
  color: var(--encre-douce);
}
.michemin-note {
  margin-top: var(--e-5);
  font-size: var(--t-petit);
}
@media (min-width: 760px) {
  .villes {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 960px) {
  .michemin-corps {
    grid-template-columns: 5fr 7fr;
    gap: var(--e-7);
    align-items: start;
  }
  .villes {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 4. Déroulé ---------- */

.deroule {
  background: var(--nappe);
}
.deroule-tete .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(--miel);
}
.moment-texte h3 {
  margin-top: var(--e-1);
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  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;
}
.moment-texte-seul .moment-texte {
  padding-left: var(--e-5);
  border-left: 3px solid var(--guirlande);
}
@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 {
    grid-column-start: auto;
    grid-column-end: -1;
    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;
  }
  .moment-texte-seul .moment-texte {
    grid-column: 4 / span 6;
  }
}
.relance {
  margin-top: var(--e-8);
  display: flex;
  justify-content: center;
}

/* Les photos du déroulé se découvrent une fois, de bas en haut, comme un rideau qu'on lève */
@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;
  }
}

/* ---------- 4 bis. Village ---------- */

.village {
  background: var(--sapin);
  color: var(--nappe);
}
.village-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  /* aligné à gauche sur la grille, mais coupé court comme les autres titres */
  padding-right: max(0px, calc(100% - 12em));
}
.village-colonnes {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-6);
}
.village-colonnes h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
}
.village-colonnes p {
  margin-top: var(--e-2);
  max-width: 32rem;
}
.village-colonnes > div:first-child {
  color: var(--mousse);
}
.village-colonnes > div:last-child h3 {
  color: var(--guirlande);
}
@media (min-width: 760px) {
  .village-colonnes {
    grid-template-columns: 1fr 1fr;
    gap: var(--e-8);
  }
}

/* ---------- 5. Inclus ---------- */

.inclus {
  background: var(--pre);
}
.inclus-colonnes {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-7);
}
.inclus-bloc h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--sapin);
  padding-bottom: var(--e-2);
  border-bottom: 3px solid var(--sapin);
}
.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(--miel);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}
.inclus-hors {
  margin-top: var(--e-7);
  padding-top: var(--e-5);
  border-top: 1px solid #c9cfb8;
  color: var(--encre-douce);
}
@media (min-width: 760px) {
  .inclus-colonnes {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--e-8);
  }
}

/* ---------- 6. Offre ---------- */

.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(--guirlande);
  white-space: nowrap;
}
.offre-unite {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  max-width: 16ch;
}
.offre-detail {
  margin-top: var(--e-5);
  max-width: 38rem;
}
.comparaison {
  margin-top: var(--e-8);
  background: var(--nappe);
  color: var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-6) var(--e-5);
}
.comparaison-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
  padding-inline: var(--e-2);
}
.comparaison table {
  width: 100%;
  margin-top: var(--e-5);
  border-collapse: collapse;
  font-size: 1rem;
}
.comparaison th,
.comparaison td {
  text-align: left;
  vertical-align: top;
  padding: var(--e-3) var(--e-2);
  border-top: 1px solid var(--pre);
}
.comparaison thead th {
  border-top: 0;
  font-weight: 700;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.comparaison tbody th {
  font-weight: 600;
  width: 22%;
}
.comparaison td:last-child,
.comparaison thead th:last-child {
  background: var(--guirlande-pale);
  color: var(--sapin);
}
.comparaison thead th:last-child {
  border-radius: var(--rayon-petit) var(--rayon-petit) 0 0;
  color: var(--sapin);
}
.comparaison tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--rayon-petit) var(--rayon-petit);
}
.comparaison td:nth-child(2) {
  color: var(--encre-douce);
}
.comparaison-total th,
.comparaison-total td {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.2;
}
.comparaison-total td:nth-child(2) {
  color: var(--encre-douce);
}
.comparaison-note {
  margin-top: var(--e-4);
  padding-inline: var(--e-2);
  font-size: 1rem;
  color: var(--encre-douce);
  max-width: 46rem;
}
@media (max-width: 599px) {
  .comparaison {
    padding: var(--e-5) var(--e-3);
  }
  .comparaison table,
  .comparaison tbody,
  .comparaison tr {
    display: block;
  }
  .comparaison thead {
    display: none;
  }
  .comparaison tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--pre);
    padding-block: var(--e-2);
  }
  .comparaison tbody th {
    grid-column: 1 / -1;
    width: auto;
    border: 0;
    padding-bottom: 0;
  }
  .comparaison td {
    border: 0;
  }
  .comparaison td::before {
    display: block;
    font-family: var(--police-texte);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--encre-douce);
  }
  .comparaison td:nth-child(2)::before {
    content: "Fait à la main";
  }
  .comparaison td:nth-child(3)::before {
    content: "Retrouvailles";
    color: var(--miel);
  }
  .comparaison td:last-child {
    border-radius: var(--rayon-petit);
  }
}

/* Simulateur : une table par maison, une assiette par convive */
.simulateur {
  margin-top: var(--e-7);
  background: var(--sapin-nuit);
  border-radius: var(--rayon);
  padding: var(--e-6) var(--e-5);
}
.simulateur-titre {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
}
.simulateur-reglages {
  margin-top: var(--e-5);
  display: grid;
  gap: var(--e-4);
}
.compteur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
}
.compteur-nom {
  font-weight: 600;
}
.compteur-commandes {
  display: flex;
  align-items: center;
  gap: var(--e-2);
}
.compteur-bouton {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--mousse);
  background: transparent;
  color: var(--nappe);
  font-size: 1.5rem;
  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: 2.75rem;
  text-align: center;
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  font-variant-numeric: tabular-nums;
}
.maisons {
  margin-top: var(--e-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--e-5);
}
.maison {
  display: grid;
  gap: var(--e-2);
  transition: opacity var(--duree-ui) ease;
}
@starting-style {
  .maison {
    opacity: 0;
  }
}
.maison-nom {
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--mousse);
}
.maison-rang {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 1.4rem;
  padding-inline: var(--e-2);
}
.maison-table {
  height: 1.1rem;
  border-radius: 6px;
  background: var(--bois);
}
.assiette {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px 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: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  border-color: var(--mousse);
}
.assiette-offerte {
  background: var(--guirlande);
  border-color: var(--guirlande);
}
.simulateur-bilan {
  margin-top: var(--e-6);
  padding-top: var(--e-5);
  border-top: 1px solid var(--sapin-clair);
}
.simulateur-total {
  font-size: var(--t-chapo);
}
.simulateur-total span {
  font-family: var(--police-titre);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  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;
}
@media (min-width: 760px) {
  .simulateur {
    padding: var(--e-7);
  }
  .simulateur-reglages {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--e-7);
  }
}

.bonus {
  list-style: none;
  margin: var(--e-7) auto 0;
  padding: 0;
  display: grid;
  gap: var(--e-4);
}
.bonus li {
  padding-left: var(--e-5);
  border-left: 3px solid var(--guirlande);
  max-width: 44rem;
}
.bonus strong {
  color: var(--guirlande);
}
.offre-action {
  margin-top: var(--e-7);
  display: grid;
  justify-items: start;
  gap: var(--e-4);
}
.offre-rarete {
  max-width: 40rem;
  color: var(--mousse);
}

/* ---------- 7. Risque ---------- */

.risque {
  background: var(--pre);
}
.garanties {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-6) var(--e-8);
}
.garanties div {
  padding-top: var(--e-4);
  border-top: 3px solid var(--sapin);
}
.garanties dt {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
}
.garanties dd {
  margin: var(--e-2) 0 0;
  max-width: 30rem;
}
@media (min-width: 760px) {
  .garanties {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 8. FAQ ---------- */

.faq {
  background: var(--nappe);
}
.questions {
  margin-top: var(--e-7);
  max-width: 50rem;
  margin-inline: auto;
}
.faq .titre {
  max-width: 50rem;
}
.questions details {
  border-top: 1px solid #d9ddc9;
}
.questions details:last-child {
  border-bottom: 1px solid #d9ddc9;
}
.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: 3px;
  border-radius: 2px;
  background: var(--miel);
  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: 55% 50%;
}
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(19 38 30 / 0.85) 0%, rgb(19 38 30 / 0.45) 45%, rgb(19 38 30 / 0) 75%);
}
.final-texte {
  position: relative;
  z-index: 1;
  padding: var(--e-8) var(--gouttiere);
  max-width: 50rem;
  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) var(--gouttiere) calc(var(--e-7) + 5rem);
  display: grid;
  gap: var(--e-4);
  font-size: var(--t-petit);
}
.pied > * {
  max-width: var(--largeur);
  width: 100%;
  margin-inline: auto;
}
.pied-logo {
  width: 9rem;
}
.pied p {
  max-width: 44rem;
  margin-inline: auto;
}
/* lien discret vers la page de marque : 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 -1px 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(19 38 30 / 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(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) var(--e-6);
}
@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);
}
.choix {
  margin-top: var(--e-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}
.choix label {
  position: relative;
}
.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;
  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: #9b2c1f;
}
.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: 1px solid var(--pre);
}
.proposition dt {
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--miel);
}
.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;
  }
}
