/* VivaComptoir : charte du plan (docs/PLAN.md §2). Papier froid, encre, une seule moutarde.
   Rayon unique : 6px. Ticket : bords droits, bas dentelé. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --papier: #F2F3EE;
  --ticket: #FFFFFF;
  --encre: #1B2230;
  --gris: #5B6272;
  --trait: #D6D9D0;
  --moutarde: #E9A800;

  --rayon: 6px;
  --marge: clamp(1.1rem, 4vw, 2.5rem);
  --largeur: 76rem;
  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 1.5rem; }
a, button, summary, label { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: rgba(233, 168, 0, 0.35); }
#contenu:focus { outline: none; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 2px; }
.section-nuit :focus-visible, .raison-nuit :focus-visible, .pied :focus-visible { outline-color: var(--moutarde); }

.lien-evitement {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 20;
  background: var(--encre); color: var(--papier); padding: 0.7rem 1rem; border-radius: var(--rayon);
}
.lien-evitement:focus { top: 0.5rem; }

/* Titres : l'enseigne de boutique, Archivo étendu 800, casse de phrase */
h1, h2, h3 { font-family: var(--titre); font-weight: 800; font-stretch: 118%; line-height: 1.06; letter-spacing: -0.012em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.1rem + 4.6vw, 4.1rem); font-stretch: 116%; }
h2 { font-size: clamp(1.6rem, 1.05rem + 2.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); font-stretch: 112%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
.petit { font-size: 0.9rem; color: var(--gris); }
.chapeau { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; max-width: 34em; }

.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.conteneur-etroit > * { max-width: 52rem; }
.section { padding-block: clamp(3.25rem, 7vw, 6.25rem); }
.titre-section { margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); max-width: 22em; }
.suite { margin-top: 2rem; }

/* Boutons : moutarde, texte encre (contraste mesuré en 1652) */
.bouton {
  display: inline-block; background: var(--moutarde); color: var(--encre);
  font: 700 1rem/1.2 var(--texte); font-stretch: 108%;
  padding: 0.85rem 1.3rem; border: 2px solid var(--encre); border-radius: var(--rayon);
  text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease;
  box-shadow: 0 3px 0 var(--encre);
}
.bouton:hover { transform: translateY(-1px); background: #F5B90A; }
.bouton:active { transform: translateY(2px); }
.bouton-grand { font-size: 1.1rem; padding: 1rem 1.6rem; }
.lien-fort { font-weight: 700; font-stretch: 106%; }
a:hover { text-decoration-thickness: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }

/* En-tête */
.entete { border-bottom: 1px solid var(--trait); background: var(--papier); position: relative; z-index: 10; }
.entete-in { display: flex; align-items: center; gap: 1.5rem; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding: 0.85rem var(--marge); min-height: 4.1rem; }
.marque { font: 800 1.25rem/1 var(--titre); font-stretch: 125%; letter-spacing: -0.02em; color: var(--encre); text-decoration: none; margin: 0; }
.nav-bureau { display: none; margin-left: auto; align-items: center; gap: 1.6rem; font-weight: 600; font-size: 0.98rem; }
.nav-bureau a { text-decoration: none; }
.nav-bureau a:hover, .deroulant summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.bouton-entete { display: none; padding: 0.6rem 1rem; font-size: 0.95rem; }

.deroulant { position: relative; }
.deroulant summary { cursor: pointer; list-style: none; }
.deroulant summary::-webkit-details-marker { display: none; }
.deroulant summary::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.18em) rotate(45deg); }
.deroulant ul { position: absolute; top: calc(100% + 0.9rem); left: -1rem; min-width: 15rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--ticket); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 14px 28px -14px rgba(27, 34, 48, 0.35); }
.deroulant li a { display: block; padding: 0.55rem 0.8rem; border-radius: 4px; }
.deroulant li a:hover { background: var(--papier); text-decoration: none; }

.menu-mobile { margin-left: auto; }
.menu-mobile summary { cursor: pointer; list-style: none; font-weight: 700; padding: 0.55rem 0.95rem; border: 2px solid var(--encre); border-radius: var(--rayon); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--encre); color: var(--papier); }
.menu-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--trait); padding: 0.5rem var(--marge) 1.4rem; display: flex; flex-direction: column; }
.menu-mobile nav a { padding: 0.75rem 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--trait); }
.menu-mobile nav a.menu-metier { padding-left: 1rem; font-weight: 400; }
.menu-mobile nav .bouton { margin-top: 1.1rem; text-align: center; border-bottom: 2px solid var(--encre); }
.menu-titre { margin: 1rem 0 0; font-weight: 800; }

@media (min-width: 62rem) {
  .nav-bureau, .bouton-entete { display: flex; }
  .bouton-entete { display: inline-block; }
  .menu-mobile { display: none; }
}

/* Héros : texte sur 7 colonnes, ticket sur 5 */
.heros { padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 5rem); }
.heros-grille { display: grid; gap: 2.6rem; align-items: center; }
.heros-texte h1 { max-width: 13.5em; }
@media (min-width: 62rem) {
  .heros-grille { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

/* Le ticket : seul élément qui bouge sans geste */
.heros-ticket { margin: 0; justify-self: center; width: min(100%, 26rem); }
.heros-ticket figcaption { margin-top: 1.1rem; font-size: 0.85rem; color: var(--gris); }
.imprimante { padding: 0 0.6rem 0.9rem; }
.fente { height: 0.85rem; background: var(--encre); border-radius: var(--rayon) var(--rayon) 2px 2px; position: relative; z-index: 2; }
.sortie { overflow: hidden; padding: 0 1.1rem 1.4rem; margin-top: -0.15rem; filter: drop-shadow(0 6px 7px rgba(27, 34, 48, 0.16)); }
.ticket {
  position: relative; background: var(--ticket); color: var(--encre);
  font: 400 clamp(0.86rem, 0.7rem + 0.6vw, 1rem)/1.55 var(--mono);
  padding: 1.3rem 1.2rem 1.1rem; margin: 0;
  }
/* bas dentelé : masque en dents de scie de 7px, sans image */
.ticket { padding-bottom: calc(1.1rem + 7px); mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.ticket p { margin: 0; max-width: none; }
.ticket-nom { font-weight: 700; letter-spacing: 0.04em; text-align: center; font-size: 1.05rem; }
.ticket-sous { text-align: center; color: var(--gris); font-size: 0.82rem; padding-bottom: 0.8rem; border-bottom: 1px dashed var(--gris); margin-bottom: 0.8rem !important; }
.ticket-lignes { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.ticket-lignes li, .ticket-total, .ticket-comm, .barre { display: flex; justify-content: space-between; gap: 0.8rem; white-space: nowrap; }
.ticket-total { font-weight: 700; padding-top: 0.6rem; border-top: 1px dashed var(--gris); margin-bottom: 0.7rem !important; }
.ticket-comm-plateforme { color: var(--gris); }
.barre { position: relative; width: 100%; }
.barre::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: var(--encre); transform-origin: left; }
.ticket-comm-nous { font-weight: 700; margin-top: 0.15rem !important; }
.ticket-comm-nous > span:last-child { position: relative; isolation: isolate; padding: 0 0.35rem; }
.ticket-comm-nous > span:last-child::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--moutarde); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: sortie 2.2s steps(16, end) 0.25s backwards; }
  .barre::after { animation: barre 0.4s ease-out 2.6s backwards; }
  .ticket-comm-nous > span:last-child::before { animation: surligne 0.35s ease-out 3s backwards; }
}
@keyframes sortie { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes surligne { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Trois raisons : hauteurs inégales, trois traitements différents */
.raisons-grille { display: grid; gap: 1.2rem; }
.raison { border-radius: var(--rayon); padding: clamp(1.4rem, 3vw, 2.2rem); }
.raison h3 { margin-bottom: 0.5em; }
.raison p:last-child { margin-bottom: 0; }
.raison-commission { background: var(--ticket); border: 1px solid var(--trait); }
.raison-marque { border-top: 4px solid var(--encre); border-radius: 0; padding-inline: 0; }
.raison-nuit { background: var(--encre); color: var(--papier); }
.raison-nuit .lien-fort { color: var(--moutarde); }
.raison-nuit a { text-decoration-color: currentColor; }
@media (min-width: 62rem) {
  .raisons-grille { grid-template-columns: 7fr 5fr; grid-template-areas: "commission marque" "commission nuit"; align-items: start; }
  .raison-commission { grid-area: commission; }
  .raison-marque { grid-area: marque; }
  .raison-nuit { grid-area: nuit; }
  .raison-commission h3 { font-size: 2rem; }
}

.calcul { width: 100%; border-collapse: collapse; margin: 1.4rem 0 0.9rem; font-variant-numeric: tabular-nums; }
.calcul caption { text-align: left; font-weight: 700; padding-bottom: 0.6rem; }
.calcul th, .calcul td { text-align: left; padding: 0.7rem 0.6rem 0.7rem 0; border-bottom: 1px solid var(--trait); }
.calcul thead th { font-size: 0.85rem; font-weight: 600; color: var(--gris); }
.calcul tbody th { font-weight: 700; }
.calcul td:last-child { font-weight: 800; }

/* Étapes : une vraie suite, donc numérotée */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.etapes li::before { content: counter(etape); grid-row: 1 / span 2; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--moutarde); border: 2px solid var(--encre); border-radius: var(--rayon); font: 800 1.2rem/1 var(--titre); }
.etapes h3 { margin-bottom: 0.25em; }
.etapes p { margin: 0; color: var(--encre); }
@media (min-width: 62rem) {
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .etapes li { display: block; padding-top: 1.1rem; border-top: 2px solid var(--encre); }
  .etapes li::before { margin-bottom: 1rem; margin-top: -2.4rem; background: var(--moutarde); }
  .etapes li { margin-top: 1.3rem; }
}

/* Métiers : de grands liens, pas des cartes */
.metiers-section { background: var(--ticket); border-block: 1px solid var(--trait); }
.metiers-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.4rem; }
.metiers-liste li { border-top: 1px solid var(--trait); }
.metiers-liste a { display: block; padding: 1.1rem 0; text-decoration: none; }
.metier-nom { display: block; font: 800 1.35rem/1.15 var(--titre); font-stretch: 114%; }
.metier-phrase { display: block; margin-top: 0.3rem; color: var(--gris); max-width: 32ch; }
.metiers-liste a:hover .metier-nom { text-decoration: underline; text-decoration-color: var(--moutarde); text-decoration-thickness: 4px; text-underline-offset: 0.18em; }
@media (min-width: 40rem) { .metiers-liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .metiers-liste { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq details { border-top: 1px solid var(--encre); }
.faq details:last-child { border-bottom: 1px solid var(--encre); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: 1.1rem 0; font: 700 1.1rem/1.3 var(--titre); font-stretch: 108%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .reponse { padding: 0 0 1.2rem; }
.faq .reponse p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .reponse { animation: ouvre 0.25s ease-out; }
}
@keyframes ouvre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Formulaire de démo */
.section-form { background: var(--papier); border-top: 4px solid var(--encre); }
.form-grille { display: grid; gap: 2.2rem; }
.form-texte h2 { max-width: 12em; }
.form-demo { display: grid; gap: 1.1rem 1.2rem; }
.champ label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.facultatif { font-weight: 400; color: var(--gris); }
.champ input, .champ select {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem;
  font: 400 1rem/1.3 var(--texte); color: var(--encre);
  background: var(--ticket); border: 2px solid var(--gris); border-radius: var(--rayon);
}
.champ input:hover, .champ select:hover { border-color: var(--encre); }
.champ input:focus-visible, .champ select:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 0; border-color: var(--encre); }
.champ input:user-invalid, .champ select:user-invalid { border-color: #A3271F; }
.aide { font-size: 0.88rem; color: var(--gris); margin: 0.35rem 0 0; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-envoi { margin-top: 0.4rem; }
.form-envoi .petit { margin: 0.9rem 0 0; }
@media (min-width: 40rem) {
  .form-demo { grid-template-columns: 1fr 1fr; }
  .champ-large, .form-envoi { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .form-grille { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; }
}

/* Pages simples (merci, contact) */
.page-simple { padding-block: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem); }
.page-courte .section-form { border-top: 0; padding-top: 0; }

/* Pied de page : nuit, comme la famille */
.pied { background: var(--encre); color: var(--papier); }
.pied a { text-decoration-color: rgba(242, 243, 238, 0.45); }
.pied a:hover { text-decoration-color: var(--moutarde); }
.pied-in { max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) var(--marge); display: grid; gap: 2.2rem; }
.pied .marque { color: var(--papier); margin-bottom: 0.7rem; }
.pied-marque p:last-child { color: #C9CDD6; max-width: 24rem; }
.pied-titre { font-weight: 800; margin: 0 0 0.6rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 0.15rem 0; }
.pied-petit { margin-top: 0.9rem; font-size: 0.9rem; color: #C9CDD6; }
.pied-bas { border-top: 1px solid rgba(242, 243, 238, 0.2); max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding: 1.2rem var(--marge) 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; font-size: 0.92rem; }
.pied-bas p { margin: 0; }
.pied-bas a { margin-left: 1.2rem; }
.pied-bas p:last-child a:first-child { margin-left: 0; }
@media (min-width: 62rem) { .pied-in { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; } }

@media (prefers-reduced-motion: reduce) { .bouton, .faq summary::after { transition: none; } }

/* ---- Pages de contenu (1646) ---- */
.page-tete { padding-block: clamp(2.6rem, 6vw, 4.8rem) clamp(1.4rem, 3vw, 2.4rem); }
.page-tete h1 { font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.3rem); max-width: 16em; }
.page-tete .chapeau { margin-bottom: 0; }
.chemin { font-size: 0.9rem; color: var(--gris); margin-bottom: 1rem; }
.chemin a { color: inherit; }

/* Étiquettes d'état : le mot porte l'information, pas la couleur */
.etat { display: inline-block; font: 700 0.78rem/1 var(--texte); font-stretch: 100%; padding: 0.32rem 0.55rem; border-radius: var(--rayon); vertical-align: 0.15em; margin-left: 0.55rem; white-space: nowrap; }
.etat-ok { background: var(--encre); color: var(--papier); }
.etat-prepa { background: transparent; color: var(--encre); border: 2px dashed var(--gris); padding: 0.22rem 0.5rem; }
.legende { display: grid; gap: 0.5rem; max-width: 46rem; padding: 1.1rem 1.3rem; background: var(--ticket); border: 1px solid var(--trait); border-radius: var(--rayon); }
.legende p { margin: 0; }
.legende .etat { margin: 0 0.5rem 0 0; }

.bloc-fonction { display: grid; gap: 1.4rem; padding-block: clamp(2rem, 4.5vw, 3.4rem); border-top: 1px solid var(--encre); }
.bloc-fonction > div > h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); margin-bottom: 0.4em; }
.bloc-fonction > div > p { color: var(--gris); }
.fonction { margin-bottom: 1.5rem; }
.fonction:last-child { margin-bottom: 0; }
.fonction h3 { margin-bottom: 0.3em; }
.fonction p { margin: 0; }
@media (min-width: 62rem) { .bloc-fonction { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* Étapes détaillées : ce que vous faites, ce que nous faisons */
.etapes-longues { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.etapes-longues > li { counter-increment: etape; display: grid; gap: 1rem; padding-top: 1.4rem; border-top: 2px solid var(--encre); }
.etapes-longues h2 { display: flex; align-items: center; gap: 0.9rem; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); margin: 0; }
.etapes-longues h2::before { content: counter(etape); flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--moutarde); border: 2px solid var(--encre); border-radius: var(--rayon); font: 800 1.2rem/1 var(--titre); }
.deux-cols { display: grid; gap: 1.2rem; }
.deux-cols h3 { font-size: 1.05rem; font-stretch: 106%; margin-bottom: 0.3em; }
.deux-cols p { margin: 0; }
@media (min-width: 62rem) {
  .etapes-longues > li { grid-template-columns: 5fr 7fr; gap: 3rem; }
  .deux-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Tarifs */
.mise-en-service { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); margin-bottom: 1.6rem; }
.mise-en-service strong { font: 800 clamp(1.7rem, 1.2rem + 2vw, 2.6rem)/1 var(--titre); font-stretch: 114%; margin-right: 0.2em; }
.paliers { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 1rem; }
.palier { background: var(--ticket); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.2rem, 3vw, 1.8rem); }
.palier h3 { margin-bottom: 0.3em; }
.palier p { margin: 0; }
.palier-prix { font-size: 1.05rem; }
.palier-prix strong { font: 800 clamp(1.9rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--titre); font-stretch: 114%; font-variant-numeric: tabular-nums; }
.palier-volume { color: var(--gris); margin-top: 0.4rem !important; }
@media (min-width: 46rem) { .paliers { grid-template-columns: repeat(3, 1fr); } }
.paliers + .petit { margin-bottom: 2.2rem; }
.encart { background: var(--encre); color: var(--papier); border-radius: var(--rayon); padding: clamp(1.6rem, 4vw, 2.8rem); }
.encart h2 { max-width: 16em; }
.encart p { max-width: 46ch; }
.encart .bouton { margin-top: 0.4rem; }
.inclus { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem 2.4rem; }
.inclus li { padding-left: 1.6rem; position: relative; }
.inclus li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 0.7rem; background: var(--moutarde); border: 2px solid var(--encre); border-radius: 2px; }
@media (min-width: 40rem) { .inclus { grid-template-columns: 1fr 1fr; } }

/* FAQ complète : groupes de questions */
.faq-groupe { padding-block: clamp(1.6rem, 3.5vw, 2.6rem) 0; }
.faq-groupe h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); margin-bottom: 0.8rem; }

/* Comparatif */
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare caption { text-align: left; font-weight: 700; padding-bottom: 0.8rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--trait); }
.compare thead th { border-bottom: 2px solid var(--encre); font-family: var(--titre); font-stretch: 112%; font-weight: 800; }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td:last-child { font-weight: 600; }
.compare .nous { background: var(--ticket); padding-left: 1rem; }
@media (max-width: 40rem) {
  .compare thead { position: absolute; left: -10000px; }
  .compare caption { display: block; width: 100%; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { padding: 1rem 0; border-bottom: 1px solid var(--trait); }
  .compare th, .compare td { border: 0; padding: 0.25rem 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.85rem; font-weight: 600; color: var(--gris); }
  .compare .nous { padding-left: 0; background: none; }
}
.note-source { font-size: 0.88rem; color: var(--gris); max-width: 62ch; margin-top: 1rem; }
.section-haute { padding-top: 1rem; }
.section-collee { padding-top: 0; }
.sr-seul { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Calculateur (1647) : le ticket revient, réduit */
.calculateur { margin-top: 1.4rem; }
.calc-form { display: grid; gap: 0.9rem 1.2rem; margin-bottom: 1.3rem; }
.calc-form .aide { margin: 0; }
.calc-form[hidden], .calc-resultat[hidden] { display: none; }
.js .calc-form:not([hidden]) { display: grid; }
@media (min-width: 40rem) { .calc-form { grid-template-columns: 1fr 1fr; } .calc-form .aide { grid-column: 1 / -1; } }
.calc-resultat { margin-bottom: 1.3rem; }
.ticket-mini { max-width: 26rem; margin: 0; background: var(--papier); border: 1px solid var(--trait); border-bottom: 0; }
.raison-commission .ticket-mini { background: var(--papier); }
.ticket-mini .ticket-total { border-top: 1px dashed var(--gris); padding-top: 0.6rem; margin: 0.7rem 0 0 !important; font-size: 1.05em; }
.ticket-abo { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed var(--gris); }
.ticket-abo p, .ticket-abo-non { display: flex; justify-content: space-between; gap: 0.8rem; margin: 0 0 0.2rem; max-width: none; }
.ticket-abo-non { margin-top: 0.7rem; }
.ticket-abo[hidden], .ticket-abo-non[hidden] { display: none; }
.ticket-gain { font-weight: 700; margin-top: 0.4rem !important; }
.js .calc-exemples-repli { display: none; }
.ticket-mini, .ticket-mini .barre::after, .ticket-mini .ticket-comm-nous > span:last-child::before { animation: none; }

/* Pages métier (1648) : chaque page compose sa suite avec ces briques, aucune n'est obligatoire */
.metier-tete { padding-block: clamp(2.6rem, 6vw, 4.8rem) clamp(1.6rem, 3vw, 2.6rem); }
.metier-tete h1 { font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.3rem); max-width: 17em; }
.metier-tete .chapeau { margin-bottom: 0; }
.section-nuit { background: var(--encre); color: var(--papier); }
.section-nuit a { text-decoration-color: currentColor; }
.section-nuit .lien-fort, .section-nuit .bouton-clair { color: var(--moutarde); }
.section-nuit .chapeau, .section-nuit .petit, .section-nuit .aide { color: #C9CDD6; }
.section-nuit .encart { background: var(--papier); color: var(--encre); }
.section-nuit .encart a { color: var(--encre); }
.section-nuit .deux-cols > div, .section-nuit .fonction { border-color: rgba(242, 243, 238, 0.25); }
.pas-de-marge-haute { padding-top: 0; }

/* Comparaison avant / après, deux colonnes de traitement différent */
.avant-apres { display: grid; gap: 1.2rem; }
.avant-apres > div { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--rayon); }
.avant-apres h3 { font-size: 1.15rem; font-stretch: 108%; margin-bottom: 0.5em; }
.avant-apres p, .avant-apres ul { margin: 0; }
.avant-apres ul { padding-left: 1.2rem; }
.avant-apres li + li { margin-top: 0.4rem; }
.avant { border: 2px dashed var(--gris); }
.apres { background: var(--ticket); border: 1px solid var(--trait); border-top: 4px solid var(--encre); }
@media (min-width: 48rem) { .avant-apres { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* Une soirée racontée à l'heure près */
.chrono { margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.chrono li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--trait); }
.chrono li:last-child { border-bottom: 1px solid var(--trait); }
.chrono .heure { font: 700 1rem/1.6 var(--mono); }
.chrono p { margin: 0; }

/* Un grand chiffre d'exemple */
.chiffre-bloc { display: grid; gap: 1.2rem; align-items: center; background: var(--ticket); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.4rem, 3vw, 2.4rem); }
.chiffre-bloc p { margin: 0; }
.chiffre-grand { font: 800 clamp(2.6rem, 1.5rem + 5vw, 4.6rem)/1 var(--titre); font-stretch: 118%; letter-spacing: -0.02em; }
.chiffre-grand span { background: var(--moutarde); padding: 0 0.25em; }
@media (min-width: 48rem) { .chiffre-bloc { grid-template-columns: auto 1fr; gap: 2.4rem; } }

/* Les questions que le métier se pose : texte sur une seule colonne, titre de section à gauche */
.section-deux { display: grid; gap: 1.4rem; }
.section-deux > div > p { color: var(--gris); }
.section-nuit .section-deux > div > p { color: #C9CDD6; }
@media (min-width: 62rem) { .section-deux { grid-template-columns: 5fr 7fr; gap: 3rem; } }

/* Pour aller plus loin, en fin de page métier */
.voisins { background: var(--ticket); border-top: 1px solid var(--trait); padding-block: clamp(1.6rem, 4vw, 2.6rem); }
.voisins-titre { font: 800 1.15rem/1.2 var(--titre); font-stretch: 112%; margin: 0 0 0.9rem; }
.voisins ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.voisins a { font-weight: 700; }
.mention-legale-metier { border-left: 4px solid var(--moutarde); padding: 0.2rem 0 0.2rem 1.1rem; max-width: 60ch; }
.mention-legale-metier p { margin: 0; }

/* Zone nuit : les sections de contenu inversent la palette (PLAN §2), le formulaire reste clair */
.section-nuit + .section-nuit { border-top: 1px solid rgba(242, 243, 238, 0.18); }
.section-nuit .etat-ok { background: var(--moutarde); color: var(--encre); }
.section-nuit .etat-prepa { color: var(--papier); border-color: #C9CDD6; }
.section-nuit .faq details, .section-nuit .faq details:last-child { border-color: rgba(242, 243, 238, 0.45); }
.section-nuit .apres { color: var(--encre); }
.section-nuit .apres a { color: var(--encre); }
.section-nuit .avant { border-color: #C9CDD6; }
.section-nuit .inclus li::before { border-color: var(--papier); }
.section-nuit .etapes li::before { border-color: var(--papier); }

/* Pages juridiques (1649) */
.juridique h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); margin: 2.2rem 0 0.6rem; }
.juridique p, .juridique dl { max-width: 68ch; }
.identite { margin: 1rem 0 0; }
.identite div { display: grid; gap: 0.1rem 1.5rem; padding: 0.6rem 0; border-top: 1px solid var(--trait); }
.identite div:last-child { border-bottom: 1px solid var(--trait); }
.identite dt { font-weight: 700; }
.identite dd { margin: 0; }
@media (min-width: 40rem) { .identite div { grid-template-columns: 14rem 1fr; } }

/* Erreurs de formulaire en ligne (1652) : texte + bordure, jamais la couleur seule */
.erreur { margin: 0.4rem 0 0; font-size: 0.92rem; font-weight: 600; color: #8E1F18; }
.erreur::before { content: "Erreur : "; }
.champ [aria-invalid="true"] { border-color: #A3271F; border-width: 3px; }
.bouton[disabled] { opacity: 0.7; cursor: progress; }

/* Étude de cas Épicerise (1651) : fiche du commerce et capture de téléphone. */
.fiche { margin: 0 0 1.4rem; }
.fiche > div { display: grid; gap: 0.15rem; padding-block: 0.7rem; border-top: 1px solid var(--trait); }
.fiche dt { font: 700 0.78rem/1.2 var(--texte); font-stretch: 100%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); }
.fiche dd { margin: 0; }
@media (min-width: 40rem) { .fiche > div { grid-template-columns: 9rem 1fr; gap: 1.2rem; } }
.section-nuit .fiche > div { border-color: rgba(242, 243, 238, 0.25); }
.section-nuit .fiche dt { color: #C9CDD6; }
.capture-tel { margin: 0; max-width: 20rem; }
.capture-tel img { display: block; width: 100%; height: auto; border-radius: var(--rayon); border: 1px solid rgba(242, 243, 238, 0.25); }
.capture-tel figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: #C9CDD6; }
