/* Les pages intérieures : une tête qui se manipule, deux ou trois sections courtes, et la page suivante. */

/* D'une page à l'autre, l'en-tête reste en place et le reste se fond. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .nav { view-transition-name: entete; }
  .agent { view-transition-name: assistant; }
  ::view-transition-old(root) { animation: 160ms var(--sortie) both page-part; }
  ::view-transition-new(root) { animation: 420ms var(--sortie) both page-vient; }
}

@keyframes page-part { to { opacity: 0; } }
@keyframes page-vient { from { opacity: 0; translate: 0 1.25rem; } }

/* ---------- La tête ---------- */
.tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(100svh, 62rem);
  padding: calc(var(--nav) + var(--haut) + 2.5rem) var(--bord) clamp(3rem, 6vw, 5rem);
}

.tete-texte {
  display: grid;
  justify-items: start;
  gap: clamp(1.25rem, 3.5vh, 2.25rem);
}

.tete h1 { font-size: min(7.4vw, 8.5rem); }
.tete-texte > p { max-width: 31rem; }
.tete > .poste { justify-self: end; width: min(100%, 31rem); }
.tete.sur-jaune .aide .mascotte { --coque: var(--blanc); }
.tete.sur-encre .aide .mascotte,
.tete.sur-encre .guette { --coque: var(--blanc); }
.tete.sur-encre .dit { background: var(--blanc); color: var(--encre); }
.tete .perche { margin-top: 3.5rem; }

/* ---------- Outils : le texte à gauche, le tableau de bord qui flotte de biais à droite, comme les fiches de l'accueil ---------- */
.gain > .poste { justify-self: end; width: min(100%, 31rem); }

@media (min-width: 60.01rem) {
  .tete-crm {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    overflow: clip; /* le tableau déborde à droite sans créer de défilement */
  }

  .tete-crm h1 { font-size: min(6.2vw, 7.5rem); }
  .crm-flotte { perspective: 2200px; }

  .crm-flotte .tb {
    width: 66em;
    margin: 0;
    font-size: clamp(9px, 0.88vw, 16px);
    transform: rotateX(7deg) rotateY(-19deg) rotate(2deg);
    transform-origin: 0 50%;
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--encre) 8%, transparent),
      0 2.5em 6em -1.5em color-mix(in srgb, var(--encre) 45%, transparent);
  }
}

/* Il se pose une fois à l'arrivée, avec un rien de dépassement, puis ne bouge plus. */
@media (min-width: 60.01rem) and (prefers-reduced-motion: no-preference) {
  .crm-flotte .tb { animation: crm-pose var(--lent) var(--sortie) 0.15s both; }
}

@keyframes crm-pose {
  from {
    opacity: 0;
    transform: translateY(3rem) rotateX(12deg) rotateY(-30deg) rotate(5deg);
  }
}

/* ---------- Sections ---------- */
.plan { padding: var(--espace) var(--bord); }
.plan.sur-encre .entete p { color: var(--gris-clair); }

/* ---------- On s'occupe de tout : quatre lignes, quatre pages ---------- */
.tout {
  padding: var(--espace) 0;
  background: var(--blanc);
}

.tout .entete { padding: 0 var(--bord); }
.tout-liste { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 2px solid var(--encre); }
.tout-liste li { border-bottom: 2px solid var(--encre); }

.tout-liste a {
  --d: clamp(3rem, 5.6vw, 5.5rem); /* le diamètre de la mascotte, qui pousse le mot en arrivant */
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.1rem, 2.2vw, 2rem) var(--bord);
  color: inherit;
  text-decoration: none;
  overflow: clip;
  isolation: isolate;
  touch-action: manipulation;
}

.tout-liste a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--jaune);
  clip-path: inset(100% 0 0);
  transition: clip-path var(--moyen) var(--sortie);
}

.tout-liste b { transition: translate 420ms var(--sortie); }
.tout-liste .ico { width: clamp(2rem, 3vw, 3rem); height: auto; aspect-ratio: 1; transition: translate var(--moyen) var(--sortie); }

.tout-liste .mascotte {
  --m: var(--d);
  --coque: var(--encre);
  position: absolute;
  left: var(--bord);
  top: calc(50% - var(--d) / 2);
  translate: calc(var(--d) * -1 - var(--bord)) 0;
  rotate: -200deg;
  transition: translate 520ms var(--sortie), rotate 520ms var(--sortie);
}

.tout-liste a:active::before { clip-path: inset(0); }

@media (hover: hover) and (pointer: fine) {
  .tout-liste a:hover::before { clip-path: inset(0); }
  .tout-liste a:hover b { translate: calc(var(--d) + 1.25rem) 0; }
  .tout-liste a:hover .mascotte { translate: 0 0; rotate: 0deg; }
  .tout-liste a:hover .ico { translate: 0.5rem 0; }
}

.tout-liste a:focus-visible { outline-offset: -4px; }

/* ---------- On couvre tout ---------- */
.compris {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.main-deux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.compris-carte {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: var(--r-grand);
  background: var(--papier);
}

.compris-carte.sur-jaune { background: var(--jaune); }
.compris-carte.sur-encre { background: var(--encre); color: var(--blanc); }
.compris-carte h3 { font-weight: 800; text-wrap: balance; }
.compris-carte ul { display: grid; gap: 0.8rem; }

.compris-carte li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.35;
}

.main-deux li { font-size: var(--t-3); padding-left: 2.2rem; }

.compris-carte li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.22em;
  width: 0.4rem;
  height: 0.72rem;
  border: solid currentColor;
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
}

.non li::before {
  left: 0;
  top: 0.62em;
  width: 1rem;
  height: 0;
  border-width: 0 0 2.5px;
  rotate: none;
}

/* ---------- La page suivante ---------- */
.suivante a {
  display: grid;
  gap: 0.75rem;
  padding: clamp(3rem, 7vw, 6rem) var(--bord);
  color: inherit;
  text-decoration: none;
}

.suivante b { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.suivante .ico { width: clamp(2.5rem, 5vw, 4.5rem); height: auto; aspect-ratio: 1; transition: translate var(--moyen) var(--sortie); }
.suivante a:focus-visible { outline-offset: -4px; }
.suivante.sur-encre b { color: var(--jaune); }

@media (hover: hover) and (pointer: fine) {
  .suivante a:hover .ico { translate: 1rem 0; }
}

/* ---------- Sites : réserver depuis le téléphone ---------- */
.reserve {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  font-size: clamp(11px, min(0.92vw, 1.75svh), 17px);
  line-height: 1.35;
}

.reserve .tel { height: 36em; z-index: 1; }
.reserve .tel-ecran { align-content: start; gap: 1em; }
.reserve-service { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.8em; padding: 0.6em; border-radius: var(--u-r); background: var(--u-creux); }
.reserve-service img { width: 3.4em; height: 3.4em; border-radius: var(--u-r2); object-fit: cover; }
.reserve-service span { display: grid; line-height: 1.3; }
.reserve-service small { color: var(--gris); }
.reserve-note { color: var(--gris); font-size: 0.86em; text-align: center; text-wrap: balance; }
.reserve button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.reserve-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4em; }

.reserve-choix button {
  display: grid;
  padding: 0.6em 0;
  border: 0;
  border-radius: var(--u-r);
  background: var(--u-creux);
  text-align: center;
  transition: background-color var(--rapide) ease, color var(--rapide) ease, scale var(--rapide) var(--sortie);
}

.reserve-choix button:active { scale: 0.95; }
.reserve-choix button b { font-size: 1.3em; }
.reserve-choix [aria-pressed="true"] { background: var(--jaune); font-weight: 600; }
.reserve-choix :disabled { color: var(--gris-clair); text-decoration: line-through; cursor: not-allowed; }

.reserve-envoi {
  min-height: 3.2em;
  border: 0;
  border-radius: var(--pilule);
  background: var(--encre);
  color: var(--blanc) !important;
  font-weight: 600 !important;
  transition: background-color var(--rapide) ease, scale var(--rapide) var(--sortie);
}

.reserve-envoi:disabled { background: var(--u-creux); color: var(--gris) !important; cursor: default; }
.reserve-envoi:not(:disabled):active { scale: 0.97; }
.reserve-ok { min-height: 1.4em; font-weight: 600; text-align: center; }

.reserve-agenda {
  height: 31em;
  margin-left: -2.2em;
  padding-left: 2.2em;
  overflow: visible;
  border-radius: 0 var(--r) var(--r) 0;
}

.reserve-grille {
  display: grid;
  grid-template: auto repeat(4, minmax(0, 1fr)) / 3em repeat(4, minmax(0, 1fr));
  padding: 0 0.8em 0.8em 0;
}

.reserve-grille small { padding: 0.6em 0.5em; font-size: 0.86em; color: var(--gris); }

.reserve-grille span {
  display: grid;
  place-items: center;
  margin: 0.2em;
  border-radius: var(--u-r2);
  background: var(--u-creux);
  font-size: 0.86em;
  text-align: center;
  line-height: 1.15;
}

.reserve-grille .pris { background: repeating-linear-gradient(-45deg, var(--u-creux) 0 5px, transparent 5px 10px); color: var(--gris); }
.reserve-grille .vise { box-shadow: inset 0 0 0 2px var(--encre); }
.reserve-grille .nouveau { z-index: 2; background: var(--jaune); font-weight: 600; box-shadow: none; }
.reserve .u-pied .mascotte { --m: 2em; }

/* ---------- Automatisations : les corvées qu'on touche ---------- */
.corvees-deux {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.corvees-liste { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.corvees-liste button {
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: var(--pilule);
  background: none;
  box-shadow: inset 0 0 0 2px var(--encre);
  color: var(--encre);
  font: inherit;
  font-size: var(--t-3);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--rapide) ease, color var(--rapide) ease, scale var(--rapide) var(--sortie);
}

.corvees-liste button:active { scale: 0.96; }
.corvees-liste [aria-pressed="true"] { background: var(--encre); color: var(--blanc); text-decoration: line-through; text-decoration-thickness: 2px; }

.corvees-fait {
  position: sticky;
  top: calc(var(--nav) + var(--haut) + 1.25rem);
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-height: 22rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: var(--r-grand);
}

.corvees-tete { display: flex; align-items: center; gap: 1rem; }
.corvees-tete .mascotte { --m: 3.5rem; --coque: var(--blanc); }
.corvees-fait ul { display: grid; gap: 0.9rem; max-height: 19rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--filet-encre) transparent; }
.corvees-fait li { display: grid; }
.corvees-fait li span { color: var(--gris-clair); }
.corvees:not(.choisi) .corvees-fait > p:last-child { visibility: hidden; }

/* ---------- Outils : relié à ce que vous avez ---------- */
/* Un nuage de logos posés autour du titre, inclinés et à des profondeurs différentes. Rien ne bouge au défilement :
   ils se posent une fois, à leur arrivée à l'écran. */
.relie {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(46rem, 100svh);
  padding: var(--espace) var(--bord);
  background: var(--blanc);
  overflow: clip;
}

.relie-centre {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 46rem;
  text-align: center;
}

.relie-centre .t-1 { max-width: 26rem; }
.nuage { position: absolute; inset: 0; }

.nuage li {
  --cote: 6.5rem;
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--cote);
  height: var(--cote); /* pas aspect-ratio : en ligne flexible, un logo bas écraserait la tuile */
  border-radius: calc(var(--cote) * 0.26);
  background: var(--blanc);
  box-shadow: var(--ombre), 0 0 0 1px color-mix(in srgb, var(--encre) 5%, transparent);
  translate: -50% -50%;
  transform: perspective(40rem) rotateX(calc(var(--r) * 0.6deg)) rotateY(calc(var(--r) * -1.3deg)) rotate(calc(var(--r) * 1deg));
  transition: opacity var(--moyen) var(--sortie) calc(var(--i) * 40ms), translate var(--lent) var(--sortie) calc(var(--i) * 40ms), transform var(--moyen) var(--sortie);
}

.nuage .p { --cote: 5rem; }
.nuage .g { --cote: 8.5rem; }
.nuage .loin { opacity: 0.55; filter: blur(1.5px); scale: 0.85; }
.nuage svg { width: 42%; height: auto; fill: currentColor; }
.nuage .mot svg { width: 66%; } /* un logo en lettres a besoin de largeur pour se lire */

.js .nuage:not(.vu) li {
  opacity: 0;
  translate: -50% -30%;
}

@media (hover: hover) and (pointer: fine) {
  .nuage li:not(.loin):hover { transform: perspective(40rem) rotate(0deg) scale(1.06); }
}

/* Téléphone : les logos se rangent en vrac sous le titre, toujours inclinés. */
@media (max-width: 52rem) {
  .relie { display: flex; flex-direction: column; gap: 2.5rem; min-height: 0; }
  .nuage { position: static; order: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 0.7rem; }
  .nuage li { --cote: 4.1rem !important; position: relative; left: auto; top: auto; translate: none; transform: rotate(calc(var(--r) * 0.6deg)); }
  .js .nuage:not(.vu) li { translate: 0 1rem; }
  .nuage .loin { opacity: 1; filter: none; scale: 1; }
}

/* ---------- Assistant : à valider ---------- */
.approuve-pile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.approuve-pile li {
  display: grid;
  grid-template-rows: auto minmax(7.5em, 1fr) auto;
  gap: 1.1rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: var(--r-grand);
  background: var(--blanc);
  transition: background-color var(--moyen) var(--sortie), color var(--moyen) var(--sortie);
}

.approuve-pile .oui { background: var(--encre); color: var(--blanc); }
.approuve-pile .oui .mascotte { --coque: var(--blanc); }
.approuve-pile .regle:not(.oui) > .t-4 { opacity: 0.5; }
.approuve-tete { display: flex; align-items: center; gap: 0.8rem; }
.approuve-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.approuve-fin { min-height: 3.25rem; display: grid; align-content: center; font-weight: 600; }

/* ---------- Pourquoi nous ---------- */
.duo { position: relative; justify-self: center; width: min(100%, 26rem); aspect-ratio: 1.1; }
.duo p { position: absolute; display: grid; justify-items: center; gap: 1rem; }
.duo .mascotte { --m: clamp(6rem, 11vw, 10rem); --coque: var(--blanc); }
.duo .dit { padding: 0.8rem 1.25rem; border-radius: var(--r) var(--r) var(--r) 0; font-weight: 600; }
.duo-un { left: 0; top: 4%; }
.duo-deux { right: 0; bottom: 0; }
.duo-deux .mascotte { --coque: var(--encre); }
.duo-deux .dit { border-radius: var(--r) var(--r) 0 var(--r); }

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

.raisons-titre { position: sticky; top: calc(var(--nav) + var(--haut) + 2rem); }

/* ---------- Six raisons : six cartes, chacune avec ce qu'elle raconte, joué une fois à son arrivée ---------- */
.raisons-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.raison {
  display: grid !important; /* [data-revele] la passe en grille aussi ; on fixe ses lignes ici */
  grid-template-rows: minmax(11rem, 1fr) auto auto;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: var(--r-grand);
  background: var(--papier);
  overflow: clip; /* le tampon du devis déborde de sa fiche, jamais de la carte */
}

.raison.large { grid-column: span 2; }
.raison.sur-jaune { background: var(--jaune); }
.raison.sur-encre { background: var(--encre); }
.raison h3 { font-weight: 800; text-wrap: balance; }
.raison > p { max-width: 34rem; }
.raison-vue { position: relative; align-self: center; margin-bottom: 0.75rem; }

/* Ce que chaque vue fait en arrivant : un délai par pièce, une seule fois. */
.raison-vue :is(i, s, b, .duo-bulle, .prix-tampon, .mascotte, path) {
  transition: opacity var(--moyen) var(--sortie) var(--d, 0ms), translate var(--moyen) var(--sortie) var(--d, 0ms), scale var(--moyen) var(--sortie) var(--d, 0ms);
}

/* 1. L'ordre des choses */
.ordre { display: grid; gap: 1rem; }
.ordre p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ordre-qui { width: 6.5rem; font-weight: 600; }

.ordre i {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--pilule);
  background: color-mix(in srgb, var(--encre) 9%, transparent);
  font-style: normal;
  font-weight: 600;
}

.ordre i:not(:first-of-type)::before { content: "→"; margin: 0 0.35rem 0 -0.15rem; font-weight: 400; }
.ordre p:first-child i { color: color-mix(in srgb, var(--encre) 55%, transparent); }
.ordre .nous i { background: var(--encre); color: var(--blanc); }
.ordre .mascotte { --m: 1.4rem; --coque: var(--blanc); }
.ordre i:nth-of-type(2) { --d: 90ms; }
.ordre i:nth-of-type(3) { --d: 180ms; }
.ordre i:nth-of-type(4) { --d: 270ms; }
.ordre .nous i { --d: calc(420ms + var(--k, 0) * 90ms); }
.ordre .nous i:nth-of-type(2) { --k: 1; }
.ordre .nous i:nth-of-type(3) { --k: 2; }

/* 2. Les deux associés */
.duo-mini { display: grid; justify-items: start; gap: 0.9rem; color: var(--blanc); }
.duo-gens { display: flex; gap: 1.5rem; }
.duo-gens > span { display: grid; justify-items: center; gap: 0.4rem; font-weight: 600; }
.duo-gens .mascotte { --m: 4rem; --coque: var(--blanc); }
.duo-gens > span:last-child .mascotte { --d: 120ms; }
.duo-bulle { padding: 0.6rem 1rem; border-radius: var(--r) var(--r) var(--r) 0; background: var(--jaune); color: var(--encre); font-weight: 600; --d: 420ms; }

/* 3. Le moyeu */
.moyeu { height: 11rem; }
.moyeu-fils { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.moyeu-fils path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--lent) var(--sortie) 200ms; }
.moyeu .mascotte { position: absolute; left: 50%; top: 50%; --m: 3.6rem; translate: -50% -50%; }

.moyeu i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--pilule);
  background: var(--blanc);
  box-shadow: 0 0 0 1px var(--filet);
  font-style: normal;
  font-weight: 600;
  translate: -50% -50%;
  --d: 520ms;
}

/* 4. Le devis et son tampon */
.prix { --u-r: 12px; --u-r2: 9px; width: min(100%, 26rem); padding: 0 1.1rem 1rem; border-radius: var(--r); background: var(--blanc); box-shadow: var(--u-leve); font-size: 0.95rem; }
.prix .u-entete { margin: 0 -1.1rem 0.4rem; }
.prix-ligne { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--u-ligne); color: var(--gris); }
.prix-ligne i { width: 4.5rem; height: 0.55rem; border-radius: var(--pilule); background: var(--u-creux); }
.prix-ligne.total { border: 0; color: var(--encre); font-weight: 600; }
.prix-ligne.total i { width: 6rem; background: var(--encre); }

.prix-tampon {
  position: absolute;
  right: -1.5rem;
  bottom: -1rem;
  padding: 0.55rem 1rem;
  border: 2px solid var(--encre);
  border-radius: 0.6rem;
  background: var(--jaune);
  font-weight: 800;
  rotate: -8deg;
  --d: 380ms;
}

/* 5. Les fichiers qui entrent dans l'outil */
.fichiers { display: grid; justify-items: start; gap: 0.5rem; }

.fichiers i {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.7rem;
  background: var(--blanc);
  font-style: normal;
  font-weight: 600;
  translate: calc(var(--n) * 1.25rem) 0;
  --d: calc(var(--n) * 90ms);
}

.fichiers-outil { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; padding: 0.5rem 0.9rem; border-radius: 0.7rem; background: var(--encre); color: var(--blanc); }

/* 6. Les mots */
.mots { display: grid; gap: 0.55rem; color: var(--blanc); font-size: var(--t-4); font-weight: 600; }
.mots p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.mots s { position: relative; color: var(--gris-clair); text-decoration: none; }
.mots s::after { content: ""; position: absolute; left: -0.1em; right: -0.1em; top: 55%; height: 2px; background: var(--jaune); transform-origin: 0 50%; transition: scale var(--moyen) var(--sortie) calc(var(--n) * 140ms + 200ms); }
.mots b { color: var(--jaune); --d: calc(var(--n) * 140ms + 380ms); }

/* Les états de départ, seulement si le script a pu poser .vu à l'arrivée. */
.js .raison:not(.vu) :is(.ordre i, .duo-bulle, .moyeu i, .fichiers i, .mots b) { opacity: 0; translate: 0 0.6rem; }
.js .raison:not(.vu) :is(.duo-gens .mascotte, .moyeu .mascotte) { scale: 0.6; opacity: 0; }
.js .raison:not(.vu) .prix-tampon { opacity: 0; scale: 1.6; }
.js .raison:not(.vu) .moyeu-fils path { stroke-dashoffset: 1; }
.js .raison:not(.vu) .mots s::after { scale: 0 1; }
.js .raison:not(.vu) .fichiers i { translate: -1rem 0; }

@media (max-width: 64rem) {
  .raisons-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raison.large { grid-column: span 2; }
}

@media (max-width: 44rem) {
  .raisons-grille { grid-template-columns: minmax(0, 1fr); }
  .raison.large { grid-column: auto; }
  .prix-tampon { right: -0.5rem; }
  .ordre-qui { width: 100%; }
}

.questions { background: var(--papier); }
.questions details { border-top: 2px solid var(--encre); }
.questions details:last-child { border-bottom: 2px solid var(--encre); }

.questions summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}

.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-weight: 400; transition: rotate var(--moyen) var(--sortie); }
.questions [open] summary::after { rotate: 45deg; }
.questions details p { max-width: 36rem; padding-bottom: 1.6rem; }

@supports (interpolate-size: allow-keywords) {
  .questions { interpolate-size: allow-keywords; }
  .questions details::details-content { height: 0; overflow: clip; transition: height var(--moyen) var(--sortie), content-visibility var(--moyen) allow-discrete; }
  .questions [open]::details-content { height: auto; }
}

@media (max-width: 78rem) {
  .compris { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approuve-pile { grid-template-columns: minmax(0, 1fr); }
  .approuve-pile li { grid-template-rows: none; }
}

@media (max-width: 60rem) {
  .tete { grid-template-columns: minmax(0, 1fr); min-height: 0; align-content: start; }
  .tete h1 { font-size: min(13.4vw, 6rem); }
  .tete > .poste { justify-self: stretch; width: 100%; }
  .corvees-deux,
  .questions { grid-template-columns: minmax(0, 1fr); }
  .raisons-titre { position: static; }
  .corvees-fait { position: static; }
  .duo { width: min(100%, 24rem); }
}

@media (max-width: 52rem) {
  .compris,
  .main-deux { grid-template-columns: minmax(0, 1fr); }
  .tout-liste a { grid-template-columns: minmax(0, 1fr) auto; }
  .tout-liste a > span:not(.mascotte) { grid-row: 2; }
  .tout-liste .ico { grid-row: 1 / span 2; grid-column: 2; }
  .reserve { grid-template-columns: minmax(0, 1fr); gap: 1rem; font-size: 14px; }
  .reserve .tel { height: auto; min-height: 32em; width: min(100%, 22em); }
  .reserve-agenda { height: 22em; margin: 0; padding: 0; border-radius: var(--r); }
}

/* ---------- Mentions légales et vie privée : du texte, à lire ---------- */
.texte-legal {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  padding: calc(var(--nav) + var(--haut) + 3rem) var(--bord) var(--espace);
  font-size: var(--t-3);
  line-height: 1.55;
}

.texte-legal h1 { margin-bottom: -0.25rem; }
.texte-legal h2 { margin-top: 1.75rem; font-weight: 600; }
.texte-legal a:not(.lien) { color: inherit; text-underline-offset: 0.15em; }
.a-completer { padding: 0 0.3em; border-radius: 0.3em; background: var(--jaune); font-weight: 600; }

.introuvable .mascotte { justify-self: center; --m: clamp(9rem, 20vw, 16rem); --coque: var(--blanc); }
