/* GABARIT, page de vente : huit moments (22 novembre 2026).
   Se charge après gabarit.css et ne sert qu'à gabarit/index.html. Fil : le pied à coulisse.
   Aucun dégradé, aucune ombre, aucun flou. Tout est lisible sans JavaScript : les états masqués
   (.gx-arm) ne sont posés que par gabarit-experience.js, sur des éléments encore hors écran. */

body.gb { --gx-hair: 1px solid var(--hl-steel); }
.gb main { overflow-x: clip; }
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }
html.gx-lock { overflow: hidden; }

/* ---------- Commandes ---------- */
.gx-btn, .gx-ico { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--hl-line-strong); border-radius: 2px; background: none; color: var(--hl-paper); font: 500 16px/1 var(--hl-body); cursor: pointer; }
.gx-btn { padding: 0 20px; }
.gx-ico { width: 48px; }
.gx-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gx-btn:hover:not(:disabled), .gx-ico:hover:not(:disabled) { border-color: var(--hl-paper); }
.gx-btn:disabled, .gx-ico:disabled { color: var(--hl-steel); border-color: var(--hl-line); cursor: default; }
.gx-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; background: none; color: inherit; cursor: grab; touch-action: pan-y; }
.gx-range:active { cursor: grabbing; }
.gx-range::-webkit-slider-runnable-track { height: 16px; border-bottom: 2px solid currentColor; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16'%3E%3Cpath d='M.5 9v7' stroke='%238a8f98'/%3E%3C/svg%3E") repeat-x; }
.gx-range::-moz-range-track { height: 16px; border-bottom: 2px solid currentColor; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16'%3E%3Cpath d='M.5 9v7' stroke='%238a8f98'/%3E%3C/svg%3E") repeat-x; }
.gx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 36px; margin-top: -14px; border: 0; border-radius: 2px; background: currentColor; }
.gx-range::-moz-range-thumb { width: 28px; height: 36px; border: 0; border-radius: 2px; background: currentColor; }
.gx-range-d { color: var(--hl-paper); }

/* ---------- 1. La cote d'ouverture ---------- */
.gx-measure { position: relative; }
.gx-h1 { position: relative; }
.gx-measure .gb-cote { border: 0; }
.gx-measure .gb-cote::before { transform-origin: left; }
.gx-measure .gb-cote::after { content: ""; position: absolute; inset: 12px 0 auto; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 7' preserveAspectRatio='none'%3E%3Cpath d='M10 0v7M20 0v7M30 0v7M40 0v7M50 0v7M60 0v7M70 0v7M80 0v7M90 0v7M100 0v7M110 0v7' stroke='%238a8f98' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.gx-measure .gb-cote span { z-index: 1; min-width: 106px; text-align: center; }
/* Les becs : un trait sur la hauteur du titre, la pointe posée sur la cote. */
.gx-slide { position: absolute; inset: 0; pointer-events: none; }
.gx-jaw { position: absolute; top: -8px; bottom: 0; right: -8px; width: 1px; background: var(--hl-paper); }
.gx-jaw::before { content: ""; position: absolute; left: 0; bottom: 0; width: 9px; height: 34%; background: var(--hl-paper); clip-path: polygon(0 0, 100% 78%, 100% 100%, 0 100%); }
.gx-jaw-fix { right: auto; left: -8px; }
.gx-jaw-fix::before { left: auto; right: 0; transform: scaleX(-1); }
.gx-measure .gb-cote { margin-inline: -8px; }
/* La lecture : le titre est gris, le bec l'éclaire en passant. */
@media (prefers-reduced-motion: no-preference) {
  .gx-h1 { color: var(--hl-steel); }
  .gx-h1::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; inset: 0; white-space: pre; color: var(--hl-paper); animation: gx-read 1350ms cubic-bezier(0.6, 0, 0.12, 1) 120ms both; }
  .gx-slide { animation: gx-slide 1350ms cubic-bezier(0.6, 0, 0.12, 1) 120ms both; }
  .gx-measure .gb-cote::before { animation: gb-draw 1350ms cubic-bezier(0.6, 0, 0.12, 1) 120ms both; }
}
@keyframes gx-read { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -2% -10% 0); } }
@keyframes gx-slide { from { transform: translateX(calc(-100% - 14px)); } to { transform: none; } }

/* Le livre fermé, coté */
.gx-hero-fig { display: grid; place-items: center; min-width: 0; padding: 26px 0 48px; perspective: 1500px; touch-action: pan-y; }
.gx-vol { --w: min(58vw, 290px); --d: 26px; position: relative; width: var(--w); aspect-ratio: 3 / 5; transform-style: preserve-3d; transform: rotateX(5deg) rotateY(-30deg); }
.gx-face { position: absolute; display: block; backface-visibility: hidden; }
:where(.gb) img.gx-face { inset: 0; width: 100%; height: 100%; }
.gx-cover { transform: translateZ(calc(var(--d) / 2)); outline: 1px solid var(--hl-steel); outline-offset: -1px; }
.gx-back { inset: 0; background: var(--hl-raised); transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); }
.gx-spine { inset: 0 auto 0 0; width: var(--d); background: var(--brand-graphite); border-block: 1px solid var(--hl-steel); transform: translateX(-50%) rotateY(-90deg); }
.gx-edge { inset: 1px 0 1px auto; width: var(--d); background: #f5f4f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M.5 0v4' stroke='%238a8f98' stroke-width='.8'/%3E%3C/svg%3E"); transform: translateX(50%) rotateY(90deg); }
.gx-cap { inset: 0 0 auto; height: var(--d); background: #f5f4f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 .5h4' stroke='%238a8f98' stroke-width='.8'/%3E%3C/svg%3E"); transform: translateY(-50%) rotateX(90deg); }
.gx-cap-b { inset: auto 0 0; transform: translateY(50%) rotateX(-90deg); }
.gx-mm { position: absolute; display: grid; place-items: center; border: 0 solid var(--hl-steel); }
.gx-mm::before { content: ""; position: absolute; background: var(--hl-steel); }
.gx-mm b { position: relative; padding: 0 8px; background: var(--hl-obsidian); font: 500 13px/22px var(--hl-body); color: var(--hl-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gx-mm-w { inset: auto 0 -36px; height: 22px; border-inline-width: 1px; }
.gx-mm-w::before { inset: 11px 0 auto; height: 1px; }
.gx-mm-h { inset: 0 -40px 0 auto; width: 22px; border-block-width: 1px; }
.gx-mm-h::before { inset: 0 auto 0 11px; width: 1px; }
.gx-mm-h b { transform: rotate(-90deg); }
@media (prefers-reduced-motion: no-preference) {
  .gx-hero-fig { animation: gx-turn 1500ms var(--hl-ease) both; }
}
@keyframes gx-turn { from { transform: perspective(1500px) translateX(24px) scale(0.965); } to { transform: none; } }

/* ---------- 3. Le simulateur : un cadran de pèse-personne ---------- */
.gx-sim { margin-top: 36px; border-top: 2px solid var(--hl-obsidian); }
.gx-dial { position: relative; width: 100%; margin: 0 auto; aspect-ratio: 2 / 1.5; border: solid var(--hl-obsidian); border-width: 0 1px 1px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gx-dial:active { cursor: grabbing; }
.gx-disc { position: absolute; left: -25%; top: 12%; width: 150%; aspect-ratio: 1; transform: rotate(var(--a, 0deg)); transition: transform 620ms cubic-bezier(0.2, 1.1, 0.3, 1); will-change: transform; }
.gx-dial.is-drag .gx-disc { transition: none; }
.gx-disc .rim { fill: none; stroke: #0b0b0d; stroke-width: 3; }
.gx-disc .zone { fill: none; stroke: #c9c8c4; stroke-width: 96; }
.gx-disc .bnd { stroke: #0b0b0d; stroke-width: 5; }
.gx-disc .tk { fill: none; stroke: #0b0b0d; stroke-width: 2.5; }
.gx-disc .tm { fill: none; stroke: #0b0b0d; stroke-width: 5; }
.gx-disc text { font: 400 58px/1 'Bebas Neue', Oswald, Impact, sans-serif; text-anchor: middle; fill: #0b0b0d; }
.gx-disc .tz { font: 500 24px/1 Inter, Arial, sans-serif; fill: #2a2d34; }
.gx-dial-needle { position: absolute; left: 50%; top: 2%; width: 4px; height: 25%; margin-left: -2px; background: var(--hl-signal); }
.gx-dial-needle::before { content: ""; position: absolute; top: 0; left: -10px; width: 24px; height: 22px; background: var(--hl-signal); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gx-sim-ctl { display: grid; gap: 4px; padding-top: 20px; }
.gx-sim-ctl > label { font-weight: 500; line-height: 1.35; }
.gx-ecart { position: absolute; inset: auto 0 0; padding: 10px 0 12px; background: var(--hl-paper); font: 400 clamp(52px, 15vw, 104px)/0.86 var(--hl-display); text-align: center; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.gx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.gx-seg legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.gx-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gx-seg label { position: relative; }
.gx-seg span { display: grid; place-items: center; min-height: 48px; padding: 6px; border: 1px solid var(--hl-obsidian); border-radius: 2px; font-size: 16px; line-height: 1.2; text-align: center; cursor: pointer; }
.gx-seg input:checked + span { background: var(--hl-obsidian); color: var(--hl-paper); }
.gx-seg input:focus-visible + span { outline: 2px solid var(--hl-obsidian); outline-offset: 3px; }
.gx-sim-out { margin-top: 24px; padding: 20px; background: var(--hl-obsidian); color: var(--hl-paper); min-height: 182px; }
.gx-sim-read { font-size: 16px; color: var(--hl-text-2); }
.gx-sim-verdict { margin-top: 6px; font: 400 clamp(52px, 15vw, 88px)/0.92 var(--hl-display); text-transform: uppercase; }
.gx-sim-note { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--hl-text-2); }
.gx-sim-weeks { max-width: 60ch; margin-top: 36px; color: var(--brand-graphite); }
.gx-sim-weeks + .gb-source { margin-top: 20px; }
.gx-sim ~ .gb-gauges li { position: relative; padding-top: 14px; border-top: 1px solid var(--hl-obsidian); }
.gx-sim ~ .gb-gauges li::before { content: ""; position: absolute; inset: -3px 0 auto; height: 5px; background: var(--hl-obsidian); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--hl-ease); }
.gx-sim ~ .gb-gauges li.on::before { transform: none; }

/* ---------- 2. Le livre ---------- */
.gx-livre { margin: 56px -20px 0; }
.gx-stage { position: relative; height: calc(var(--pw) * 1.667 + 88px); --pw: min(60vw, 260px); perspective: 1600px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gx-stage:active { cursor: grabbing; }
.gx-livre-vol { position: absolute; left: 50%; top: 40px; width: var(--pw); aspect-ratio: 3 / 5; margin-left: calc(var(--pw) / -2); transform-style: preserve-3d; transform-origin: 0 50%; }
.gx-livre-base { position: absolute; inset: 0; background: #f5f4f0; border: 1px solid var(--hl-steel); transform: translateZ(-14px); }
.gx-livre-base::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 13px; background: #f5f4f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='4'%3E%3Cpath d='M.5 0v4' stroke='%238a8f98' stroke-width='.8'/%3E%3C/svg%3E"); transform-origin: 100% 50%; transform: rotateY(90deg) ; }
.gx-leaves { position: absolute; inset: 0; transform-style: preserve-3d; }
.gx-leaf { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; }
.gx-strip { position: absolute; top: 0; bottom: 0; left: 0; width: var(--sw); transform-style: preserve-3d; transform-origin: 0 50%; }
.gx-strip > .gx-strip { left: 100%; }
.gx-strip > i { position: absolute; inset: 0 -1px 0 0; background-size: var(--pw) 100%; background-position: calc(var(--sw) * var(--k) * -1) 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: #f5f4f0; background-repeat: no-repeat; }
.gx-strip > i.b { left: -1px; transform: rotateY(180deg); background-color: #e4e3df; }
.gx-leaf.is-cover .gx-strip > i.b { background-color: var(--hl-raised); }
.gx-riff { position: absolute; inset: 0; transform-origin: 0 50%; visibility: hidden; background: #f5f4f0 no-repeat; border: 1px solid #c9c8c4; }
.gx-livre-ctl { padding: 0 20px; }
.gx-livre-say { font: 400 32px/1 var(--hl-display); text-transform: uppercase; }
.gx-livre-stops { display: none; }
.gx-livre-nav { display: flex; gap: 8px; margin-top: 16px; }
.gx-livre-nav .gx-btn { flex: 1; }
.gx-planche { margin-top: 56px; }
.gx-planche-in { position: relative; overflow: hidden; border: 1px solid var(--hl-line-strong); }
.gx-planche figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--hl-text-2); }
.gx-spot { position: absolute; left: calc(var(--c) / 19 * 100%); top: calc(var(--r) / 5 * 100%); width: calc(100% / 19); height: 20%; outline: 2px solid var(--hl-signal); outline-offset: 0; }
.gx-spot::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: max(44px, 100%); height: max(44px, 100%); transform: translate(-50%, -50%); }
body.gb main a.gx-spot { text-decoration: none; }
.gx-spot:focus-visible, .gx-spot:hover { outline-width: 4px; }
.gx-scan { position: absolute; inset: 0; border-left: 2px solid var(--hl-paper); background: var(--hl-obsidian); transform: translateX(102%); }
.gx-planche.gx-arm:not(.gx-seen) .gx-scan { transform: none; }
.gx-planche.gx-seen .gx-scan { transition: transform 1500ms cubic-bezier(0.6, 0, 0.2, 1) 120ms; }
.gx-zoom { width: 100%; max-width: 620px; height: 100%; max-height: 100%; margin: 0 auto; padding: 0; border: 0; background: var(--hl-obsidian); overflow: auto; overscroll-behavior: contain; }
.gx-zoom:not([open]) { display: none; }
.gx-zoom::backdrop { background: rgba(11, 11, 13, 0.92); }
.gx-zoom img { display: block; width: 100%; height: auto; }
.gx-zoom .gx-ico { position: sticky; z-index: 1; top: 8px; float: right; margin: 8px 8px -64px 0; background: var(--hl-obsidian); border-color: var(--hl-paper); }

/* ---------- 4. Les 12 semaines : la réserve qui fond, bloc après bloc ---------- */
/* Chiffres du livre, p. 21 (blocs, réserve), p. 24 à 35 (séries), p. 20 (débutant), p. 36 (semaine 9).
   Lisible sans JavaScript ; le script n'arme l'entrée que si le graphique est encore sous l'écran. */
.gx-prog { padding-top: var(--gb-sec); }
.gx-prog-head .gb-text { margin-top: 20px; }
.gx-plan { margin-top: 36px; }
.gx-plan-chart { --bh: 140px; --u: calc(var(--bh) / 5); --cg: 3px; --bg: 6px; --cols: repeat(4, minmax(0, 1fr)) var(--bg) repeat(4, minmax(0, 1fr)) var(--bg) repeat(4, minmax(0, 1fr)); }
.gx-plan-heads, .gx-plan-row, .gx-plan-txt { display: grid; grid-template-columns: var(--cols); column-gap: var(--cg); }
.gx-plan-row > li:nth-child(5) { grid-column: 6; }
.gx-plan-row > li:nth-child(9) { grid-column: 11; }
.gx-plan-heads li:nth-child(1) { grid-column: 1 / 5; }
.gx-plan-heads li:nth-child(2) { grid-column: 6 / 10; }
.gx-plan-heads li:nth-child(3) { grid-column: 11 / 15; }
.gx-plan-heads li { padding-top: 8px; border-top: 1px solid var(--hl-line-strong); }
.gx-plan-heads b { display: block; font: 400 28px/1 var(--hl-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--hl-paper); }
.gx-plan-heads span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--hl-steel); font-variant-numeric: tabular-nums; }
.gx-plan-lim { position: relative; display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding-bottom: 6px; font-size: 12.5px; line-height: 1.3; color: var(--hl-text-2); }
.gx-plan-lim::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hl-signal); transform-origin: left; }
.gx-plan-lim-t { flex: none; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hl-paper); }
.gx-plan-bars li { position: relative; height: var(--bh); --r: 3; }
.gx-plan-bars li[data-r="2"] { --r: 2; }
.gx-plan-bars li[data-r="1"] { --r: 1; }
.gx-plan-bars li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--bh) - var(--r) * var(--u)); background: var(--hl-paper); transform-origin: bottom; }
.gx-plan-bars span { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: center; height: calc(var(--r) * var(--u)); border: 1px dashed var(--hl-steel); border-top: 0; border-bottom: 0; font: 500 14px/1 var(--hl-body); color: var(--hl-paper); font-variant-numeric: tabular-nums; }
.gx-plan-wk li { padding-top: 6px; text-align: center; font: 400 18px/1 var(--hl-display); color: var(--hl-steel); font-variant-numeric: tabular-nums; }
.gx-plan-lab { margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--hl-line); font-size: 12.5px; line-height: 1.3; color: var(--hl-text-2); }
.gx-plan-sets li { display: flex; flex-direction: column-reverse; gap: 3px; height: 40px; padding-top: 6px; box-sizing: content-box; }
.gx-plan-sets i { display: block; height: 7px; background: var(--hl-paper); }
.gx-plan-ses li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 8px 2px 0; }
/* Mobile : 4 carrés en 2 × 2 par semaine, marge de 2 px de chaque côté : 2 px entre carrés, 7 px entre semaines. */
.gx-plan-ses i { display: block; aspect-ratio: 1; background: var(--hl-paper); }
.gx-plan-ses .is-deb i:nth-child(n+3) { background: none; outline: 1px solid var(--hl-steel); outline-offset: -1px; }
.gx-plan-txt { grid-template-columns: minmax(0, 1fr); row-gap: 18px; margin-top: 28px; }
.gx-plan-txt li { padding-top: 10px; border-top: 1px solid var(--hl-line-strong); }
.gx-plan-txt h3 { font: 400 24px/1.05 var(--hl-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--hl-paper); }
.gx-plan-txt p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--hl-text-2); text-wrap: pretty; }
.gx-plan-note { max-width: 60ch; margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--hl-text-2); text-wrap: pretty; }
@media (max-width: 359px) { .gx-plan-chart { --cg: 2px; --bg: 4px; } .gx-plan-heads b { font-size: 24px; } .gx-plan-bars span { font-size: 12px; } }
@media (min-width: 600px) {
  .gx-plan-chart { --bh: 190px; --cg: 6px; --bg: 14px; }
  .gx-plan-txt { grid-template-columns: var(--cols); --cg: 6px; --bg: 14px; --cols: repeat(4, minmax(0, 1fr)) var(--bg) repeat(4, minmax(0, 1fr)) var(--bg) repeat(4, minmax(0, 1fr)); }
  .gx-plan-txt li:nth-child(1) { grid-column: 1 / 5; }
  .gx-plan-txt li:nth-child(2) { grid-column: 6 / 10; }
  .gx-plan-txt li:nth-child(3) { grid-column: 11 / 15; }
  .gx-plan-heads span { font-size: 13px; }
  .gx-plan-lim, .gx-plan-lab { font-size: 14px; }
  .gx-plan-bars span { font-size: 16px; }
  .gx-plan-ses li { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 10%; gap: 4px; }
  .gx-plan-ses i { aspect-ratio: auto; height: 8px; }
}
@media (min-width: 900px) {
  .gx-plan { margin-top: 56px; }
  .gx-plan-chart, .gx-plan-txt { --cg: 10px; --bg: 28px; }
  .gx-plan-chart { --bh: 240px; }
  .gx-plan-heads b { font-size: 40px; }
  .gx-plan-bars span { font-size: 20px; }
  .gx-plan-wk li { font-size: 22px; }
  .gx-plan-sets li { height: 52px; gap: 4px; }
  .gx-plan-sets i, .gx-plan-ses i { height: 10px; }
  /* Grand écran : des colonnes plus fines, la surface claire reste mesurée. */
  .gx-plan-bars li::after, .gx-plan-bars span { left: 16%; right: 16%; }
  .gx-plan-sets li, .gx-plan-ses li { padding-inline: 16%; }
  .gx-plan-ses li { gap: 4px; }
  .gx-plan-txt h3 { font-size: 30px; }
  .gx-plan-txt p { font-size: 16px; }
}
/* L'entrée : la limite se trace, puis chaque semaine monte vers elle, bloc après bloc.
   Seuls transform et opacity bougent. Ordre : --i par semaine, un temps d'arrêt entre deux blocs. */
.gx-plan-row > li:nth-child(1) { --i: 0; } .gx-plan-row > li:nth-child(2) { --i: 1; } .gx-plan-row > li:nth-child(3) { --i: 2; } .gx-plan-row > li:nth-child(4) { --i: 3; }
.gx-plan-row > li:nth-child(5) { --i: 4.8; } .gx-plan-row > li:nth-child(6) { --i: 5.8; } .gx-plan-row > li:nth-child(7) { --i: 6.8; } .gx-plan-row > li:nth-child(8) { --i: 7.8; }
.gx-plan-row > li:nth-child(9) { --i: 9.6; } .gx-plan-row > li:nth-child(10) { --i: 10.6; } .gx-plan-row > li:nth-child(11) { --i: 11.6; } .gx-plan-row > li:nth-child(12) { --i: 12.6; }
.gx-plan-heads li:nth-child(2) { --i: 4.8; } .gx-plan-heads li:nth-child(3) { --i: 9.6; }
.gx-plan-sets i:nth-child(2) { --k: 1; } .gx-plan-sets i:nth-child(3) { --k: 2; } .gx-plan-sets i:nth-child(4) { --k: 3; }
.gx-plan-chart { --t0: 420ms; --step: 110ms; }
.gx-plan-chart.gx-arm:not(.gx-seen) .gx-plan-lim::after { transform: scaleX(0); }
.gx-plan-chart.gx-arm:not(.gx-seen) .gx-plan-bars li::after { transform: scaleY(0); }
.gx-plan-chart.gx-arm:not(.gx-seen) :is(.gx-plan-bars span, .gx-plan-sets i, .gx-plan-ses i) { opacity: 0; }
.gx-plan-chart.gx-arm:not(.gx-seen) .gx-plan-sets i { transform: translateY(-10px); }
.gx-plan-chart.gx-arm:not(.gx-seen) :is(.gx-plan-wk li, .gx-plan-heads li) { opacity: 0.25; }
.gx-plan-chart.gx-seen .gx-plan-lim::after { transition: transform 700ms var(--hl-ease); }
.gx-plan-chart.gx-seen .gx-plan-bars li::after { transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--t0) + var(--i) * var(--step)); }
.gx-plan-chart.gx-seen .gx-plan-bars span { transition: opacity 320ms ease calc(var(--t0) + var(--i) * var(--step) + 380ms); }
.gx-plan-chart.gx-seen .gx-plan-sets i { transition: opacity 200ms ease, transform 260ms cubic-bezier(0.3, 1.4, 0.5, 1); transition-delay: calc(var(--t0) + var(--i) * var(--step) + 160ms + var(--k, 0) * 70ms); }
.gx-plan-chart.gx-seen .gx-plan-ses i { transition: opacity 240ms ease calc(var(--t0) + var(--i) * var(--step) + 260ms); }
.gx-plan-chart.gx-seen :is(.gx-plan-wk li, .gx-plan-heads li) { transition: opacity 300ms ease calc(var(--t0) + var(--i, 0) * var(--step)); }

/* ---------- 5. Départ, arrivée ---------- */
.gx-tech-grid { display: grid; gap: 32px; }
.gx-tech-copy { display: contents; }
.gx-pose-ctl { order: 1; }
.gx-pose { min-width: 0; }
.gx-pose-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #f5f4f0; overflow: hidden; }
.gx-pose figcaption { margin-top: 12px; font-size: 14px; color: var(--hl-text-2); }
.gx-pose-ref, .gx-pose-bar { display: none; }
.gx-pose-in { isolation: isolate; }
.gx-pose-in img { mix-blend-mode: multiply; }
.gx-pose.is-live .gx-pose-in { display: block; aspect-ratio: 3 / 4; isolation: isolate; touch-action: pan-y; cursor: grab; }
.gx-pose.is-live img { pointer-events: none; position: absolute; inset: 0; height: 100%; mix-blend-mode: multiply; transition: opacity 120ms linear; }
.gx-pose.is-live .gx-pose-a { opacity: calc(1 - var(--t) * 0.86); }
.gx-pose.is-live .gx-pose-b { opacity: calc(0.06 + var(--t) * 0.94); }
.gx-pose.is-live :is(.gx-pose-ref, .gx-pose-bar) { display: block; position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.gx-pose.is-live .gx-pose-bar { transform: translateY(calc(19% + var(--t) * 23.75%)); border-top: 2px solid #0b0b0d; }
.gx-pose.is-live .gx-pose-ref { transform: translateY(19%); border-top: 1px dashed #8a8f98; }
.gx-pose.is-live .gx-pose-bar::before { content: ""; position: absolute; right: 0; top: -10px; width: 14px; height: 18px; background: #0b0b0d; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.gx-pose-ctl label { font-weight: 500; }
.gx-pose-ends { display: flex; justify-content: space-between; font-size: 15px; color: var(--hl-text-2); }

/* ---------- 6. L'assiette à l'échelle ---------- */
.gx-food-grid { display: grid; gap: 40px; }
.gx-food-fig { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.gx-food-plate { position: absolute; inset: 15%; transform: scale(var(--s, 1)); transition: transform 700ms var(--hl-ease); border-radius: 50%; overflow: hidden; }
.gx-food-plate img { transform: scale(1.22); }
.gx-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-ring-ticks path { fill: none; stroke: #8a8f98; stroke-width: 1; }
.gx-ring-arcs path { fill: none; stroke: #f5f4f0; stroke-width: 13; }
.gx-ring-arcs text { font: 500 12px/1 Inter, Arial, sans-serif; fill: #0b0b0d; }
.gx-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.gx-days button { min-height: 56px; border: 1px solid var(--hl-line-strong); border-radius: 2px; background: none; color: var(--hl-text-2); font: 400 30px/1 var(--hl-display); cursor: pointer; font-variant-numeric: tabular-nums; }
.gx-days button:hover { border-color: var(--hl-paper); color: var(--hl-paper); }
.gx-days button[aria-pressed="true"] { background: var(--hl-paper); border-color: var(--hl-paper); color: var(--hl-obsidian); }
.gx-food-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.gx-food-table :is(th, td) { padding: 12px 0; border-bottom: 1px solid var(--hl-line); text-align: right; font-weight: 400; color: var(--hl-text-2); }
.gx-food-table th[scope="row"], .gx-food-table td:empty { text-align: left; color: var(--hl-steel); }
.gx-food-table thead :is(th, td) { border-bottom-color: var(--hl-line-strong); font-size: 14px; vertical-align: bottom; }
.gx-food-table tfoot :is(th, td) { border-bottom: 0; border-top: 1px solid var(--hl-line-strong); }
.gx-food-table .on { color: var(--hl-paper); font-weight: 700; }
.gx-food-table .nil { color: var(--hl-steel); }
.gx-food-data .gb-text { margin-top: 20px; }

/* Ce qui bloque, ce que le plan fixe : la cote relie l'écart à la correction */
.gb-pairs > div { position: relative; }
.gb-pairs > div::before { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: var(--hl-paper); transform: scaleX(1); opacity: 0; transform-origin: left; }
.gb-pairs > div.gx-arm:not(.gx-seen)::before { transform: scaleX(0); opacity: 1; }
.gb-pairs > div.gx-seen::before { animation: gx-line 1100ms var(--hl-ease) both; }
@keyframes gx-line { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0.35; } }

/* ---------- 7. 65, puis 84 ---------- */
.gx-kg { margin-top: 24px; }
.gx-kg .gb-kg { margin: 0; gap: 14px; font-size: clamp(60px, 18vw, 116px); line-height: 0.9; }
.gx-kg .gb-kg > span:first-child { color: var(--hl-steel); }
.gx-kg .gb-kg i { max-width: none; transform-origin: left; }
.gx-kg-n { font-variant-numeric: tabular-nums; }
.gx-kg-rule { position: relative; height: 26px; margin-top: 12px; border-bottom: 1px solid var(--hl-steel); overflow: hidden; }
.gx-kg-rule::before { content: ""; position: absolute; inset: 8px 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0v18M10 9v9M20 9v9M30 9v9M40 9v9M50 3v15M60 9v9M70 9v9M80 9v9M90 9v9M100 3v15M110 9v9M120 9v9M130 9v9M140 9v9M150 3v15M160 9v9M170 9v9M180 9v9M190 0v18' stroke='%238a8f98' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.gx-kg-rule::after { content: ""; position: absolute; inset: 0; border-right: 3px solid var(--hl-paper); transform: translateX(calc((var(--k, 1) - 1) * 100%)); }
.gx-kg .gb-kg i { transform: scaleX(var(--k, 1)); }

/* ---------- 8. La coche finale ---------- */
.gx-end { position: relative; }
.gx-box { position: absolute; right: 0; padding: 0; border: max(2px, 0.022em) solid var(--hl-paper); border-radius: 0; background: none; color: inherit; width: 0.66em; height: 0.66em; font-size: clamp(76px, 25vw, 208px); top: 0.935em; cursor: pointer; }
.gx-box i { position: absolute; left: 16%; top: 4%; width: 108%; height: 50%; transform: rotate(-45deg); pointer-events: none; }
.gx-box i::before, .gx-box i::after { content: ""; position: absolute; left: 0; bottom: 0; background: var(--hl-signal); }
.gx-box i::before { width: 0.1em; height: 100%; transform-origin: top; }
.gx-box i::after { width: 100%; height: 0.1em; transform-origin: left; }
.gx-box i::before { transition: transform 160ms linear; }
.gx-box i::after { transition: transform 320ms var(--hl-ease) 150ms; }
.gx-box[aria-pressed="false"] i::before { transform: scaleY(0); transition: transform 120ms linear 120ms; }
.gx-box[aria-pressed="false"] i::after { transform: scaleX(0); transition: transform 120ms linear; }
.gx-box:focus-visible { outline: 2px solid var(--hl-signal-text); outline-offset: 4px; }

/* ---------- Titres : lecture de haut en bas ---------- */
.gx-h2in { display: block; }
.gx-arm:not(.gx-seen) > .gx-h2in { clip-path: inset(-8% 0 108% 0); transform: translateY(0.35em); }
.gx-seen > .gx-h2in { clip-path: inset(-8% -2% -8% -2%); transition: clip-path 800ms var(--hl-ease), transform 800ms var(--hl-ease); }
.gb-formats.gx-arm:not(.gx-seen) .gb-draw { clip-path: inset(100% 0 0 0); }
.gb-formats.gx-seen .gb-draw { transition: clip-path 1100ms var(--hl-ease); clip-path: inset(0); }


/* ---------- Barre d'achat : visible même si aucun script ne tourne ---------- */
@media (max-width: 899px) {
  .gb-bar { visibility: visible; transform: none; transition-delay: 0s; animation: gx-bar 260ms var(--hl-ease) 1600ms backwards; }
  .gx-on .gb-bar { animation: none; }
  .gx-on .gb-bar:not(.is-on) { visibility: hidden; transform: translateY(100%); transition-delay: 0s, 240ms; }
  .gb-foot { padding-bottom: 136px; }
}
@keyframes gx-bar { from { visibility: hidden; transform: translateY(100%); } }

@media (min-width: 900px) {
  .gx-hero-fig { padding: 10px 40px 40px 0; }
  .gx-vol { --w: min(27vw, calc((100svh - 260px) * 0.6), 400px); --d: 36px; }
  .gx-sim { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 56px; margin-top: 48px; padding-top: 0; border-top: 0; }
  .gx-dial { grid-row: 1 / span 2; align-self: stretch; aspect-ratio: auto; min-height: 420px; border-top-width: 1px; }
  .gx-disc { left: -32%; width: 164%; }
  .gx-dial-needle { top: 4%; height: 20%; }
  .gx-ecart { padding: 16px 0 22px; }
  .gx-sim-ctl { padding-top: 0; }
  .gx-sim-out { align-self: end; padding: 28px; min-height: 212px; }
  .gx-sim ~ .gb-gauges { margin-top: 56px; }
  .gx-livre { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: center; margin: 96px 0 0; }
  .gx-stage { --pw: min(25vw, calc((100svh - 220px) * 0.6), 350px); margin-left: -40px; }
  .gx-livre-ctl { padding: 0; }
  .gx-livre-say { font-size: 52px; min-height: 2.05em; display: flex; align-items: end; }
  .gx-livre-stops { display: grid; margin-top: 24px; border-top: 1px solid var(--hl-line-strong); }
  .gx-livre-stops button { display: flex; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0; align-items: center; border: 0; border-bottom: 1px solid var(--hl-line); background: none; color: var(--hl-text-2); font: 400 17px/1.3 var(--hl-body); text-align: left; cursor: pointer; }
  .gx-livre-stops button span { color: var(--hl-steel); font-size: 15px; }
  .gx-livre-stops button:hover { color: var(--hl-paper); }
  .gx-livre-stops button[aria-pressed="true"] { color: var(--hl-paper); font-weight: 700; }
  .gx-planche { margin-top: 96px; }
  .gx-tech-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
  .gx-tech-copy { display: block; }
  .gx-pose-ctl { margin-top: 56px; max-width: 460px; }
  .gx-pose { max-width: 520px; width: 100%; justify-self: end; }
  .gx-food-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
  .gx-kg .gb-kg { font-size: clamp(72px, 8.4vw, 116px); }
  .gx-box { font-size: clamp(104px, 12.2vw, 178px); }
}
/* Avant Safari 15.4, pas d'unité svh : sans repli, la largeur du livre serait nulle. */
@supports not (height: 100svh) {
  @media (min-width: 900px) {
    .gx-vol { --w: min(27vw, calc((100vh - 260px) * 0.6), 400px); }
    .gx-stage { --pw: min(25vw, calc((100vh - 220px) * 0.6), 350px); }
  }
}
/* Téléphone : mots entiers dans le tableau, bandeau de cookies plus bas (trois choix à égalité sur une ligne). */
@media (max-width: 559px) {
  .gb-table tbody th { font-size: 14px; }
  .gb-table th:first-child, .gb-table td:first-child { width: 27%; }
  .gb .hl-consent { padding: 12px 14px; }
  .gb .hl-consent p { margin-bottom: 8px; }
  .gb .hl-consent-options { margin-bottom: 10px; }
  .gb .hl-consent-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .gb .hl-consent-actions button { padding: 6px 2px; font-size: 13px; }
  .gb .hl-consent-actions button:last-child { grid-column: auto; }
}
@media (max-width: 359px) {
  .gb-table :is(tbody th, thead th) { font-size: 13px; padding-right: 6px; }
  .gx-food-table thead :is(th, td) { font-size: 12px; letter-spacing: -0.02em; }
}
/* Police système agrandie (Android, navigateurs intégrés) : aucune colonne plus large que l'écran. */
@media (max-width: 899px) {
  .gb-hero-grid, .gb-harry, .gb-cart, .gx-food-grid, .gb-gauges { grid-template-columns: minmax(0, 1fr); }
  .gx-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gb-verdict { white-space: normal; }
}
@media print { .gx-h2in { clip-path: none !important; transform: none !important; } .gx-scan { display: none; } }
