/* Sous-Chef, page d'accueil v2.
   Direction : la cuisine professionnelle, traitée avec retenue. Le vert sauge de la marque
   est réservé à ce qui compte (le résultat de Sous-Chef, l'action principale) ; le reste
   vit en neutres légèrement verdis. Séparations par ombres fines semi-transparentes plutôt
   que bordures pleines ; chiffres en mono comme sur une fiche technique.
   Mouvement : courbes fortes (ease-out pour ce qui entre, ease-in-out pour ce qui se
   déplace), moins de 300 ms pour l'interface, plus long seulement pour l'accroche. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/bricolage-grotesque-variable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-variable.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/jetbrains-mono-variable.woff2") format("woff2"); }

:root {
  --fond: #f3f4f1;
  --surface: #fcfcfb;
  --surface-2: #eceeea;
  --trait: rgba(20, 32, 24, .09);
  --trait-fort: rgba(20, 32, 24, .16);
  --encre: #151a17;
  --texte: #444d47;
  --discret: #737c75;
  --sauge: #3f6f4e;
  --sauge-fonce: #33603f;
  --sur-sauge: #f7faf7;
  --alerte: #a1461f;
  --fond-2: #d8e5da;
  --ombre-panneau: rgba(20, 50, 30, .22);
  --fond-2-trait: rgba(20, 60, 35, .14);
  --ombre-fine: 0 0 0 1px var(--trait), 0 1px 2px rgba(20, 32, 24, .04);
  --ombre-haute: 0 0 0 1px var(--trait), 0 12px 32px -12px rgba(20, 40, 28, .22), 0 2px 6px -2px rgba(20, 40, 28, .08);
  --r: 8px;
  --r-petit: 6px;
  --titre: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
/* Thème : celui du système, sauf ?theme=clair ou ?theme=sombre (aperçu, posé par v2.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #101311;
    --surface: #161a17;
    --surface-2: #1c211d;
    --trait: rgba(225, 240, 230, .08);
    --trait-fort: rgba(225, 240, 230, .15);
    --encre: #eef1ee;
    --texte: #b9c2bb;
    --discret: #858f88;
    --sauge: #8dba9a;
    --sauge-fonce: #a2c9ad;
    --sur-sauge: #0f1712;
    --alerte: #e0a07f;
    --fond-2: #17211b;
    --ombre-panneau: rgba(0, 0, 0, .55);
    --fond-2-trait: rgba(180, 230, 200, .10);
    --ombre-fine: 0 0 0 1px var(--trait);
    --ombre-haute: 0 0 0 1px var(--trait-fort), 0 16px 40px -16px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="sombre"] {
  --fond: #101311;
  --surface: #161a17;
  --surface-2: #1c211d;
  --trait: rgba(225, 240, 230, .08);
  --trait-fort: rgba(225, 240, 230, .15);
  --encre: #eef1ee;
  --texte: #b9c2bb;
  --discret: #858f88;
  --sauge: #8dba9a;
  --sauge-fonce: #a2c9ad;
  --sur-sauge: #0f1712;
  --alerte: #e0a07f;
  --fond-2: #17211b;
    --ombre-panneau: rgba(0, 0, 0, .55);
  --fond-2-trait: rgba(180, 230, 200, .10);
  --ombre-fine: 0 0 0 1px var(--trait);
  --ombre-haute: 0 0 0 1px var(--trait-fort), 0 16px 40px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="clair"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 16px/1.65 var(--corps); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sauge); text-underline-offset: 3px; }
.mono { font-family: var(--mono); }
.discret { color: var(--discret); font-size: 14px; }
.centre { text-align: center; }
.cadre { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -.022em; max-width: 24ch; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.012em; }
.chapo { font-size: 17.5px; line-height: 1.65; max-width: 60ch; margin: 18px 0 0; text-wrap: pretty; color: var(--texte); }
section { padding-block: 112px; }
:focus-visible { outline: 2px solid var(--sauge); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--sauge) 28%, transparent); }

/* ---- boutons : retour au clic, survol seulement à la souris ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--r-petit); font: 550 14.5px var(--corps); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-plein { background: var(--sauge); color: var(--sur-sauge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(20, 40, 28, .2); }
.btn-contour { background: var(--surface); color: var(--encre); box-shadow: var(--ombre-fine); }
.btn-grand { height: 48px; padding: 0 22px; font-size: 15.5px; }
@media (hover: hover) and (pointer: fine) {
  .btn-plein:hover { background: var(--sauge-fonce); }
  .btn-contour:hover { box-shadow: 0 0 0 1px var(--trait-fort), 0 2px 6px -2px rgba(20, 40, 28, .12); }
  .nav-liens a:not(.btn):hover { color: var(--encre); }
}

/* ---- navigation ---- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 transparent; transition: box-shadow 200ms ease; }
.defile .nav { box-shadow: 0 1px 0 var(--trait); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; font: 650 17.5px var(--titre); color: var(--encre); text-decoration: none; letter-spacing: -.015em; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: var(--sauge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.nav-liens { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.nav-liens a:not(.btn) { color: var(--texte); text-decoration: none; transition: color 150ms ease; }

/* ---- accroche ---- */
.hero { padding-block: 64px 96px; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.1vw, 54px); line-height: 1.05; font-weight: 650; letter-spacing: -.032em; }
.hero h1 em { font-style: normal; color: var(--discret); }
.hero .chapo { font-size: 18.5px; max-width: 44ch; }
.appels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-visuel { position: relative; margin: 0; }
.hero-visuel img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--r); box-shadow: var(--ombre-fine); }
.hero-fiche { position: absolute; left: -28px; bottom: -32px; width: min(372px, 88%); background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre-haute); overflow: hidden; }
.fiche-titre { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13px; font-weight: 550; color: var(--encre); box-shadow: 0 1px 0 var(--trait); }
.fiche-titre .mono { font-weight: 400; color: var(--discret); font-size: 12.5px; }
.fiche-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); }
.fiche-chiffres div { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 1px; }
.fiche-chiffres div + div { box-shadow: -1px 0 0 var(--trait); }
.fiche-chiffres b { font: 500 17px var(--mono); color: var(--encre); white-space: nowrap; }
.fiche-chiffres div:nth-child(2) b { color: var(--sauge); }
.fiche-chiffres span { font-size: 11.5px; color: var(--discret); }

/* ---- bande d'assurance ---- */
.bande { padding-block: 0; }
.bande-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 28px; box-shadow: 0 -1px 0 var(--trait), 0 1px 0 var(--trait); }
.bande p { margin: 0; font-size: 14.5px; color: var(--discret); }
.bande b { color: var(--encre); font-weight: 550; }

/* ---- démonstration ---- */
.demo-corps { margin-top: 48px; background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre-haute); overflow: hidden; }
.demo-barre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 40px; align-items: center; padding: 16px 24px 18px; box-shadow: 0 1px 0 var(--trait); }
.onglets { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: var(--r-petit); background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.onglet-curseur { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 5px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 32, 24, .12), 0 0 0 1px var(--trait); transition: transform 240ms var(--ease-out), width 240ms var(--ease-out); pointer-events: none; }
.onglets button { position: relative; flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 5px; background: transparent; color: var(--discret); font: 500 14px var(--corps); cursor: pointer; transition: color 150ms ease; }
.onglets button[aria-selected="true"] { color: var(--encre); }
@media (hover: hover) and (pointer: fine) { .onglets button:hover { color: var(--encre); } }
.reglage { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.curseur-lib { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--texte); }
.curseur-lib output { font: 550 22px var(--mono); color: var(--encre); letter-spacing: -.02em; }
.curseur-zone { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 10px; align-items: center; margin-top: 6px; }
.pas-prix { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); color: var(--encre); font: 500 18px/1 var(--corps); cursor: pointer; box-shadow: var(--ombre-fine); transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
.pas-prix:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .pas-prix:hover { box-shadow: 0 0 0 1px var(--sauge); } }
/* Curseur : piste visible, poignée large avec ombre, pour qu'il se lise comme « à faire glisser ». */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: grab; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--sauge), var(--sauge)) 0 / var(--rempli, 50%) 100% no-repeat, var(--trait-fort); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--trait-fort); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sauge); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sauge); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sauge); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.consigne { margin: 4px 0 0; font-size: 12.5px; color: var(--sauge); }
.curseur-bornes { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--discret); }
.curseur-bornes b { color: var(--encre); font-weight: 550; }

.duel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.colonne { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 20px; }
.colonne + .colonne { box-shadow: -1px 0 0 var(--trait); }
.souschef { background: color-mix(in srgb, var(--sauge) 4%, var(--surface)); }
.col-tete h3 { font-size: 16px; }
.col-tete p { margin: 2px 0 0; font-size: 14px; color: var(--discret); }
.souschef .col-tete h3 { color: var(--sauge); }
.ingredients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ingredients li { display: grid; grid-template-columns: minmax(0, 1fr) 76px; grid-template-rows: auto 3px; column-gap: 14px; row-gap: 7px; align-items: baseline; }
.ing-nom { font-size: 14.5px; color: var(--encre); }
.ing-nom small { margin-left: 8px; font-size: 11.5px; color: var(--discret); }
.ing-qte { text-align: right; font-size: 14px; font-weight: 500; color: var(--encre); }
.ing-barre { grid-column: 1 / -1; position: relative; height: 3px; border-radius: 2px; background: var(--trait); overflow: hidden; }
.ing-barre i { position: absolute; inset: 0; border-radius: 2px; background: var(--discret); transform-origin: left center; transition: transform 280ms var(--ease-out); }
.souschef .ing-barre i { background: var(--sauge); }
.fixe .ing-barre i { opacity: .35; }
.verdict { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-petit); box-shadow: 0 0 0 1px var(--trait); }
.verdict div { padding: 13px 14px; display: flex; flex-direction: column; gap: 1px; }
.verdict div + div { box-shadow: -1px 0 0 var(--trait); }
.verdict span { font-size: 12px; color: var(--discret); }
.verdict b { font: 500 19px var(--mono); color: var(--encre); white-space: nowrap; letter-spacing: -.02em; }
.dessus .verdict [data-v="fc"] { color: var(--alerte); }
.verdict.plein { background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sauge) 45%, transparent), 0 4px 14px -6px color-mix(in srgb, var(--sauge) 45%, transparent); }
.verdict.plein [data-v="fc"] { color: var(--sauge); }
.constat { margin: 0; font-size: 14px; line-height: 1.55; color: var(--discret); min-height: 3.1em; text-wrap: pretty; }
.dessus .constat { color: var(--alerte); }
.demo-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 28px; box-shadow: 0 -1px 0 var(--trait); }
.demo-pied p { margin: 0; font-size: 14.5px; color: var(--discret); }

/* ---- métiers : mosaïque ---- */
.mosaique { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 176px; gap: 20px 16px; }
.tuile { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tuile-img { flex: 1; min-height: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre-fine); }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tuile:hover img { transform: scale(1.02); } }
.tuile figcaption { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.5; color: var(--discret); }
.tuile figcaption b { font: 600 16px var(--titre); color: var(--encre); letter-spacing: -.012em; }
.t-resto { grid-column: 1 / span 5; grid-row: span 3; }
.t-snack { grid-column: 6 / span 3; grid-row: span 3; }
.t-boul { grid-column: 9 / span 4; grid-row: span 3; }
.t-pat { grid-column: 1 / span 4; grid-row: span 2; }
.t-trait { grid-column: 5 / span 4; grid-row: span 2; }
.t-truck { grid-column: 9 / span 4; grid-row: span 2; }

/* ---- aujourd'hui / avec Sous-Chef : quatre cellules, chacune avec son visuel ----
   Même structure partout (titre, constat, réponse, visuel en pied) : les quatre points
   pèsent autant ; le visuel illustre le point qu'il accompagne, jamais un autre. */
.fuites-grille { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fuite { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-fine); }
.fuite-textes { display: flex; flex-direction: column; gap: 14px; }
.probleme, .reponse { margin: 0; font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.probleme { color: var(--discret); }
.reponse { color: var(--encre); padding-left: 14px; box-shadow: -2px 0 0 var(--sauge); }
.etiquette { font: 500 11px var(--corps); letter-spacing: .06em; text-transform: uppercase; }
.probleme .etiquette { color: var(--discret); }
.reponse .etiquette { color: var(--sauge); }
.fuite-visuel { margin-top: auto; }
.fuite .scene { box-shadow: 0 0 0 1px var(--trait); background: var(--fond); padding: 16px; height: 232px; overflow: hidden; }

/* versions d'une fiche */
.v-titre { margin: 0 0 10px; font-size: 12.5px; color: var(--discret); }
.v-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.v-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 9px 12px; border-radius: var(--r-petit); background: var(--surface); box-shadow: 0 0 0 1px var(--trait); color: var(--encre); }
.v-liste li span { color: var(--discret); }
.v-liste .v-derive b { color: var(--alerte); }
.v-liste em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--alerte); }

/* portions */
.scene-portions { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.p-ligne { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 12px; align-items: center; font-size: 13px; }
.p-lib { color: var(--discret); }
.p-barres { display: flex; flex-direction: column; gap: 5px; }
.p-barres i { display: block; height: 6px; border-radius: 3px; width: calc(var(--g) / 80 * 100%); background: var(--alerte); opacity: .8; transform-origin: left center; }
.p-ligne.ok .p-barres i { background: var(--sauge); opacity: 1; }
.p-val { text-align: right; color: var(--encre); font-size: 12.5px; }
.p-note { margin: 0; font-size: 12px; color: var(--discret); }

/* mercuriale et bon, en format cellule */
.fuite .scene-merc { gap: 6px; }
.fuite .merc-tete { font-size: 12.5px; }
.fuite .merc-graphe svg { height: 128px; }
.fuite .merc-graphe svg .courbe, .fuite .merc-graphe svg line { vector-effect: non-scaling-stroke; }
.point-html { position: absolute; left: 87.5%; top: calc(128px * 76 / 240); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--alerte); box-shadow: 0 0 0 3px var(--fond); }
.fuite .merc-axe { margin-top: 4px; font-size: 10.5px; }
.fuite .merc-seuil { top: 28px; font-size: 10.5px; }
.fuite .merc-alerte { font-size: 11px; padding: 4px 8px; }
.fuite .scene-bon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.fuite .ticket { font-size: 10.5px; padding: 10px 10px 12px; }
.fuite .t-tete { margin-bottom: 6px; }
.fuite .t-lignes { gap: 4px; padding: 6px 0; }
.fuite .t-lignes li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fuite .cat-titre { padding: 7px 10px; font-size: 11.5px; }
.fuite .catalogue li { padding: 6px 10px; font-size: 11.5px; }
.fuite .catalogue li em { font-size: 10.5px; }

/* ---- démarrage ---- */
.demarrage-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.demarrage-photo { margin: 0; }
.demarrage-photo img { width: 100%; aspect-ratio: 5 / 4.6; object-fit: cover; border-radius: var(--r); box-shadow: var(--ombre-fine); }
.demarrage-texte { display: flex; flex-direction: column; gap: 20px; }
.demarrage-texte > p { margin: 0; font-size: 16.5px; max-width: 52ch; }
.etapes { list-style: none; counter-reset: e; margin: 4px 0; padding: 0; display: flex; flex-direction: column; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding-block: 14px; box-shadow: 0 -1px 0 var(--trait); font-size: 15.5px; }
.etapes li::before { content: counter(e); grid-row: span 2; font: 500 14px var(--mono); color: var(--discret); padding-top: 2px; }
.etapes b { color: var(--encre); font-weight: 550; }

/* ---- auteur ---- */
.auteur { padding-block: 96px; }
.auteur blockquote { margin: 0 auto; max-width: 820px; padding-left: 28px; box-shadow: -2px 0 0 var(--sauge); }
.auteur blockquote p { margin: 0; font: 500 clamp(22px, 2.4vw, 29px)/1.4 var(--titre); color: var(--encre); letter-spacing: -.018em; text-wrap: pretty; }
.auteur footer { margin-top: 18px; font-size: 14.5px; color: var(--discret); }

/* ---- tarifs ---- */
.offres { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offre { padding: 28px; border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-fine); display: flex; flex-direction: column; gap: 4px; }
.offre-phare { box-shadow: 0 0 0 1px color-mix(in srgb, var(--sauge) 50%, transparent), var(--ombre-haute); }
.phare { margin: 0 0 6px; font-size: 12.5px; font-weight: 550; color: var(--sauge); }
.prix { margin: 10px 0 0; font-size: 14.5px; color: var(--discret); }
.prix .mono { font-size: 32px; font-weight: 550; color: var(--encre); margin-right: 4px; letter-spacing: -.03em; }
.annuel { margin: 0; font-size: 13.5px; color: var(--discret); }
.offre ul { list-style: none; margin: 20px 0 0; padding: 20px 0 0; box-shadow: 0 -1px 0 var(--trait); display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.tarifs .discret { margin-top: 28px; }

/* ---- FAQ ---- */
.faq-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; }
details { box-shadow: 0 1px 0 var(--trait); }
details:first-child { box-shadow: 0 -1px 0 var(--trait), 0 1px 0 var(--trait); }
summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16.5px; font-weight: 500; color: var(--encre); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--discret); border-bottom: 1.5px solid var(--discret); transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { margin: 0 0 22px; max-width: 60ch; font-size: 15.5px; }

/* ---- appel final, pied ---- */
.final { padding-block: 120px; }
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.final h2 { font-size: clamp(32px, 4vw, 50px); max-width: 17ch; letter-spacing: -.03em; }
.pied { padding-block: 0 44px; font-size: 13.5px; color: var(--discret); }
.pied-in { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding-top: 28px; box-shadow: 0 -1px 0 var(--trait); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.pied a { color: var(--discret); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pied a:hover { color: var(--encre); } }
.credits { flex-basis: 100%; font-size: 12px; }

/* ---- animations métier intégrées (styles de scène : animations.css) ---- */
/* ---- Démarrage : les trois étapes, montrées dans l'interface du logiciel ----
   Densité d'application (11 à 13 px, mono pour les chiffres), un seul état à l'écran.
   Changement d'étape : fondu + 12 px, 280 ms ease-out ; cascades de 50 ms. */
.demarrage-grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
.parcours { position: relative; height: 468px; border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-haute); overflow: hidden; font-size: 13px; }
.pc-barre { position: absolute; top: 0; left: 0; right: 0; padding: 14px 20px 12px; box-shadow: 0 1px 0 var(--trait); background: var(--surface); z-index: 3; }
.pc-onglets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc-onglets li { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--discret); transition: color 200ms ease; }
.pc-onglets li.courant { color: var(--encre); font-weight: 550; }
.pc-onglets i { position: relative; height: 2px; border-radius: 1px; background: var(--trait-fort); overflow: hidden; }
.pc-onglets b { position: absolute; inset: 0; background: var(--sauge); transform: scaleX(0); transform-origin: left center; }
.pc-etape { position: absolute; inset: 58px 20px 18px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); pointer-events: none; }
.pc-etape.actif { opacity: 1; transform: none; }
.pc-fil { margin: 0; font-size: 11.5px; color: var(--discret); }
.pc-fil span { margin-inline: 4px; opacity: .6; }
.pc-fil b { color: var(--encre); font-weight: 550; }
.pc-bouton { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 5px; background: var(--sauge); color: var(--sur-sauge); font-size: 12px; font-weight: 550; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform 140ms var(--ease-out), opacity 200ms ease; }
.pc-bouton.presse { transform: scale(.96); }
.pc-secondaire { background: var(--surface); color: var(--encre); box-shadow: 0 0 0 1px var(--trait-fort); }

/* 1. réception */
.pc-scan-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 0; flex: 1; }
.pc-doc { position: relative; padding: 14px 14px 12px; border-radius: 3px; background: #fcfcf9; color: #22241f; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 20px -12px rgba(0, 0, 0, .35); overflow: hidden; }
.doc-tete { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1.5px solid #22241f; }
.doc-fourn { margin: 0; font: 650 11px/1.25 var(--titre); letter-spacing: -.005em; }
.doc-num { margin: 0; font-size: 8.5px; line-height: 1.5; color: #62655e; text-align: right; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 8.5px; }
.doc-table th { font: 500 7.5px var(--corps); text-transform: uppercase; letter-spacing: .05em; color: #7b7e76; text-align: left; padding: 0 0 4px; }
.doc-table th:not(:first-child), .doc-table td:not(:first-child) { text-align: right; }
.doc-table td { padding: 5px 0; border-top: 1px solid #e6e7e2; white-space: nowrap; }
.doc-table td:first-child { white-space: normal; padding-right: 4px; }
.doc-totaux { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 8px; padding-top: 6px; border-top: 1px solid #22241f; font-size: 8.5px; }
.doc-totaux span { color: #62655e; text-align: right; }
.doc-totaux b { font-weight: 600; text-align: right; }
.doc-pied { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding-top: 8px; border-top: 1px dashed #d4d5cf; font: 400 8px var(--mono); color: #7b7e76; }
.doc-lecture { position: absolute; left: 10px; right: 10px; top: 0; height: 22px; border-radius: 3px; border: 1.5px solid #3f6f4e; background: rgba(63, 111, 78, .08); opacity: 0; pointer-events: none; }
.pc-lu { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lu-titre { margin: 0; font-size: 11.5px; font-weight: 550; color: var(--discret); }
.lu-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lu-lignes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px 9px; border-radius: 5px; background: var(--fond); box-shadow: 0 0 0 1px var(--trait); opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.lu-lignes li.vu { opacity: 1; transform: none; }
.lu-lignes span { font-size: 12px; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-lignes b { font-size: 11.5px; font-weight: 500; color: var(--encre); }
.st { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; }
.st-ok { color: var(--sauge); }
.st-neuf { color: var(--alerte); }
.lu-controle { margin: 2px 0 0; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--discret); opacity: 0; transition: opacity 240ms ease; }
.lu-controle b { color: var(--sauge); font-weight: 550; }
.lu-controle.vu { opacity: 1; }
.pc-lu .pc-bouton { margin-top: auto; align-self: stretch; }

/* 2. recette */
.rc-tete { display: flex; align-items: flex-end; gap: 18px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--trait); }
.rc-tete div { display: flex; flex-direction: column; gap: 1px; }
.rc-tete span { font-size: 11px; color: var(--discret); }
.rc-tete b { font-size: 15px; font-weight: 550; color: var(--encre); }
.rc-tete .pc-bouton { margin-left: auto; }
/* « Proposer les grammages » : action secondaire de l'écran, teintée plutôt que pleine,
   pour ne pas rivaliser avec les chiffres ; elle se remplit seulement quand on la presse. */
.pc-proposer { height: 32px; padding: 0 12px; background: color-mix(in srgb, var(--sauge) 12%, var(--surface)); color: var(--sauge); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sauge) 38%, transparent); transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.pc-proposer.presse { background: var(--sauge); color: var(--sur-sauge); }
.rc-table { width: 100%; border-collapse: collapse; }
.rc-table th { font: 500 10.5px var(--corps); letter-spacing: .05em; text-transform: uppercase; color: var(--discret); text-align: left; padding: 0 0 6px; }
.rc-table th:last-child, .rc-table td:last-child { text-align: right; }
.rc-table td { padding: 9px 0; box-shadow: 0 -1px 0 var(--trait); font-size: 13px; color: var(--encre); }
.rc-table td:nth-child(2) { font-size: 11.5px; color: var(--discret); }
.rc-table b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--discret); min-width: 6ch; justify-content: flex-end; }
.rc-table b.propose { color: var(--sauge); }
.rc-table b.propose::after { content: "proposé"; font: 400 10px var(--corps); color: var(--discret); order: -1; }
.rc-table b.fige { color: var(--encre); padding: 1px 6px; border-radius: 4px; box-shadow: 0 0 0 1px var(--trait-fort); }
.rc-table b.fige::after { content: "figé"; font: 400 10px var(--corps); color: var(--discret); order: -1; }
.rc-table b.maj { animation: maj 600ms var(--ease-out); }
@keyframes maj { from { background: color-mix(in srgb, var(--sauge) 22%, transparent); } to { background: transparent; } }
.rc-note { margin: auto 0 0; position: relative; height: 18px; font-size: 12px; color: var(--sauge); }
.rc-note span { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms ease; }
.rc-note.a .rc-note-a, .rc-note.b .rc-note-b { opacity: 1; }

/* 3. résultat */
.rs-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-petit); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sauge) 40%, transparent); margin-top: 6px; }
.rs-chiffres div { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.rs-chiffres div + div { box-shadow: -1px 0 0 var(--trait); }
.rs-chiffres span { font-size: 11.5px; color: var(--discret); }
.rs-chiffres b { font: 500 26px var(--mono); color: var(--encre); letter-spacing: -.03em; white-space: nowrap; }
.rs-chiffres b.acc { color: var(--sauge); }
.rs-chiffres small { font-size: 11px; color: var(--discret); }
.rs-jauge { position: relative; height: 6px; margin-top: 18px; border-radius: 3px; background: var(--trait); }
.rs-jauge i { position: absolute; left: 0; top: 0; bottom: 0; width: 56%; border-radius: 3px; background: var(--sauge); transform-origin: left center; transform: scaleX(0); transition: transform 900ms var(--ease-in-out) 150ms; }
.pc-resultat.fini .rs-jauge i { transform: scaleX(1); }
.rs-jauge s { position: absolute; left: 56%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--encre); }
.rs-jauge-lib { position: relative; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--discret); }
.rs-cible { position: absolute; left: 56%; transform: translateX(-50%); color: var(--encre); }
.rs-fiche { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-petit); background: var(--fond); box-shadow: 0 0 0 1px var(--trait); opacity: 0; transform: translateY(6px); transition: opacity 280ms var(--ease-out) 700ms, transform 280ms var(--ease-out) 700ms; }
.pc-resultat.fini .rs-fiche { opacity: 1; transform: none; }
.rs-fiche div { display: flex; flex-direction: column; gap: 1px; }
.rs-fiche b { font-size: 13px; color: var(--encre); font-weight: 550; }
.rs-fiche span:not(.pc-bouton) { font-size: 11.5px; color: var(--discret); }

.etapes li { transition: color 250ms ease; cursor: pointer; }
.etapes li.courante b { color: var(--sauge); }
.etapes li.courante::before { color: var(--sauge); }
.balance.compacte { padding: 0; gap: 6px; }
.balance.compacte .cadran { transform: scale(.72); transform-origin: 50% 0; margin-bottom: -38px; }
.balance.compacte .afficheur { padding: 4px 12px; }
.balance.compacte .afficheur .mono { font-size: 24px; }
.balance.compacte .balance-lib { font-size: 12.5px; }
.fixe-balance .aiguille { background: var(--discret); transition: transform 280ms var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  .fuite .pret .courbe { stroke-dasharray: none; stroke-dashoffset: 0; }
  .fuite .pret svg { clip-path: inset(0 100% 0 0); }
  .pret .point-html, .pret .v-liste li, .pret .v-derive em { opacity: 0; }
  .pret .p-barres i { transform: scaleX(0); }
}

/* ---- panneaux : une deuxième teinte pour les grands blocs ----
   Chaque panneau monte par-dessus la section précédente (coins arrondis, ombre) : on
   change de chapitre. Sa couleur balaie de gauche à droite quand il entre à l'écran,
   une seule fois, en clip-path (le contenu, lui, ne bouge pas). */
.panneau { position: relative; z-index: 1; isolation: isolate; margin-top: -40px; border-radius: 28px 28px 0 0; background: transparent; box-shadow: 0 -1px 0 var(--fond-2-trait); }
.panneau::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fond-2); box-shadow: 0 -24px 48px -28px var(--ombre-panneau); }
.panneau + section:not(.panneau) { position: relative; z-index: 2; margin-top: -40px; border-radius: 28px 28px 0 0; background: var(--fond); box-shadow: 0 -24px 48px -28px var(--ombre-panneau); }
.panneau .tuile-img, .panneau .offre, .panneau .demarrage-photo img { box-shadow: 0 0 0 1px var(--fond-2-trait); }
.panneau .offre { background: color-mix(in srgb, var(--surface) 70%, var(--fond-2)); }

/* ---- mouvement ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Accroche : une seule entrée orchestrée, au chargement (vue une fois). */
  .entree { animation: monte 700ms var(--ease-out) both; }
  .hero-texte .entree:nth-child(2) { animation-delay: 60ms; }
  .hero-texte .entree:nth-child(3) { animation-delay: 120ms; }
  @keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .hero-visuel.entree { animation: none; }
  .hero-visuel img { animation: devoile 1000ms var(--ease-in-out) 80ms both; }
  @keyframes devoile { from { clip-path: inset(0 0 100% 0 round 8px); } to { clip-path: inset(0 0 0 0 round 8px); } }
  .hero-fiche { animation: fiche 600ms var(--ease-out) 700ms both; }
  @keyframes fiche { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  /* Défilement : chaque section une fois, les séries en cascade courte. */
  .revele { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .revele.cache { opacity: 0; transform: translateY(12px); }
  .serie { transition-delay: calc(var(--rang, 0) * 50ms); }
}
/* Volet de couleur au défilement : animation pilotée par le défilement là où le navigateur
   la connaît (Chrome, Edge, Safari récents), sinon la classe .vu posée par v2.js. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .panneau::before { animation: volet linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  }
  @supports not (animation-timeline: view()) {
    .panneau::before { clip-path: inset(0 100% 0 0 round 28px 28px 0 0); transition: clip-path 900ms var(--ease-in-out); }
    .panneau.vu::before { clip-path: inset(0 0 0 0 round 28px 28px 0 0); }
  }
  @keyframes volet { from { clip-path: inset(0 100% 0 0 round 28px 28px 0 0); } to { clip-path: inset(0 0 0 0 round 28px 28px 0 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .revele { transition: opacity 300ms ease; }
  .revele.cache { opacity: 0; }
}

/* ---- tablette ---- */
@media (max-width: 1020px) {
  .nav-liens a[href="#metiers"], .nav-liens a[href="#demonstration"] { display: none; }
  .hero-grille, .demarrage-grille, .faq-grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-fiche { left: 16px; }
  .hero-visuel img { aspect-ratio: 16 / 10; }
  .demo-barre { grid-template-columns: minmax(0, 1fr); }
  .offres { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

/* ---- téléphone ---- */
@media (max-width: 720px) {
  section { padding-block: 72px; }
  .panneau, .panneau + section:not(.panneau) { border-radius: 20px 20px 0 0; margin-top: -24px; }
  .cadre { padding-inline: 16px; }
  .nav-liens a:not(.btn) { display: none; }
  .nav-liens .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .hero { padding-block: 32px 64px; }
  .hero .chapo { font-size: 17px; }
  .appels .btn { flex: 1 1 100%; }
  .hero-fiche { position: relative; left: 0; bottom: 0; width: calc(100% - 24px); margin: -28px auto 0; }
  .bande-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .demo-barre { padding-inline: 16px; }
  .duel { grid-template-columns: minmax(0, 1fr); }
  .colonne { padding: 22px 16px 24px; }
  .colonne + .colonne { box-shadow: 0 -1px 0 var(--trait); }
  .verdict b { font-size: 16px; }
  .verdict div { padding: 11px 10px; }
  .demo-pied { padding-inline: 16px; }
  .mosaique { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .mosaique .tuile { grid-column: 1 / -1; grid-row: auto; }
  .tuile-img { flex: none; aspect-ratio: 4 / 3; }
  .fuites-grille { grid-template-columns: minmax(0, 1fr); }
  .fuite { padding: 22px 18px; }
    .demarrage-grille { gap: 32px; }
  .parcours { height: 560px; }
  .pc-scan-grille { grid-template-columns: minmax(0, 1fr); }
  .parcours .lu-lignes li { padding: 5px 8px; }
  .rs-chiffres b { font-size: 19px; }
  .rc-table td:nth-child(2), .rc-table th:nth-child(2) { display: none; }
  .auteur blockquote { padding-left: 20px; }
  .pied nav { margin-left: 0; }
}
