/* Guide des réglages (page-guide-des-reglages.php, template-parts/guide/, assets/js/guide.js).
   The page sits on paper (light tokens); the hero, the media band and the help card carry gp-scheme-dark.
   Motion runs only once vision.js has added .gp-vs-motion to the root (motion allowed, JS on) and guide.js has added
   .gp-gd-live to the steps chapter; without them every step, word and picture shows plainly. Only transform, opacity
   and clip-path animate; colours change at once. */

.gp-gd { --gd-r: 28px; --gd-card: #fff; }
.gp-gd-chap { padding-block: clamp(52px, 6.5vw, 104px); }
.gp-gd-head { margin-bottom: clamp(20px, 2.6vw, 34px); }
.gp-gd-num { margin-bottom: .7rem; font-variant-numeric: tabular-nums; letter-spacing: .16em; }
.gp-gd-h2 { max-width: 14.4em; margin: 0; font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3.5rem); }
.gp-gd-rest { margin-top: 1.4rem; padding-block: 0; }
.gp-gd-intro .gp-gd-rest { max-width: 860px; margin-top: clamp(30px, 4vw, 56px); }

/* ---------- Hero ---------- */
.gp-gd-hero { position: relative; display: flex; align-items: flex-end; min-height: 92vh; min-height: 92svh; padding: calc(var(--header-total) + clamp(40px, 6vw, 90px)) 0 clamp(30px, 4.5vw, 60px); overflow: hidden; isolation: isolate; background: var(--bg); color: var(--ink); }
.gp-gd-hero__media { position: absolute; inset: 0; z-index: -2; }
.gp-gd-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transform-origin: 70% 40%; }
.gp-gd-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 11, 13, .86), rgba(10, 11, 13, .45) 50%, rgba(10, 11, 13, .1)), linear-gradient(0deg, rgba(10, 11, 13, .92), transparent 55%); }
.gp-gd-hero__inner { position: relative; }
.gp-gd-hero__title { max-width: 7.2em; margin-bottom: 1.1rem; }
.gp-gd-hero__lead { max-width: 46ch; }
.gp-gd-index { max-width: 980px; margin-top: clamp(24px, 3.2vw, 40px); }
.gp-gd-index ol { margin: 0; padding: 0; list-style: none; column-gap: clamp(22px, 3vw, 44px); }
.gp-gd-index li { break-inside: avoid; }
.gp-gd-index a { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 9px 2px; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.25; text-decoration: none; }
.gp-gd-index__n { flex: none; min-width: 2.2ch; color: var(--accent-ink); font-size: .78rem; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.gp-gd-index__t { flex: 1; text-wrap: pretty; }
.gp-gd-index .gp-i { width: 18px; height: 18px; opacity: .55; transition: transform .35s var(--ease-out), opacity .2s ease; }
.gp-gd-index a:hover .gp-i, .gp-gd-index a:focus-visible .gp-i { opacity: 1; transform: translateX(4px); }
.gp-gd-cue { display: none; }
@media (min-width: 900px) {
	.gp-gd-index ol { columns: 2; }
	.gp-gd-cue { position: absolute; z-index: 2; right: calc(var(--gutter) - 4px); bottom: 26px; display: grid; place-items: center; width: 44px; height: 56px; }
	.gp-gd-cue::before { content: ""; width: 26px; height: 42px; border: 2px solid rgba(244, 244, 240, .6); border-radius: 14px; }
	.gp-gd-cue span { position: absolute; top: 16px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f4f4f0; }
}
@media (max-width: 700px) {
	.gp-gd-hero { min-height: 0; padding-top: calc(var(--header-total) + 168px); } /* a band of photo: the bag worn, above the title */
	.gp-gd-hero__img { object-position: 30% 28%; }
	.gp-gd-hero__shade { background: linear-gradient(0deg, rgba(10, 11, 13, .96) 30%, rgba(10, 11, 13, .62) 62%, rgba(10, 11, 13, .2)); }
	.gp-gd-index a { min-height: 46px; padding-block: 7px; font-size: .92rem; }
}
/* The text rises and fades, the photo sinks slowly as you leave the hero (--vs-h from vision.js). */
.gp-vs-motion .gp-gd-hero__inner { opacity: calc(1 - var(--vs-h, 0) * 1.3); translate: 0 calc(var(--vs-h, 0) * -70px); }
.gp-vs-motion .gp-gd-hero__img { translate: 0 calc(var(--vs-h, 0) * 14%); }

/* ---------- 01 Taille et poids: statement, rule, live check ---------- */
.gp-gd-size__grid { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
.gp-gd-statement { max-width: 30ch; margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, .95rem + 1.6vw, 2.3rem); font-weight: 800; line-height: 1.14; letter-spacing: -.01em; text-wrap: pretty; }
.gp-gd-size__rule p { max-width: 56ch; margin: 1.2rem 0 0; color: var(--ink-2); font-size: 1.06rem; line-height: 1.6; }
.gp-vs-w { transition: opacity .35s ease; }
.gp-vs-motion .gp-gd-statement .gp-vs-w { opacity: .62; } /* .62 of the ink on paper is still 5:1 */
.gp-vs-motion .gp-gd-statement .gp-vs-w.is-lit { opacity: 1; }
.gp-gd-fit { --thumb: 30px; position: relative; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--gd-r); background: var(--gd-card); box-shadow: 0 34px 70px -46px rgba(18, 19, 22, .45); }
.gp-gd-fit__field + .gp-gd-fit__field { margin-top: 14px; }
.gp-gd-fit__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gp-gd-fit__top label { font-weight: 700; }
.gp-gd-fit__top output { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gp-gd-range { --gd-lo: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--lo, 0)); --gd-hi: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--hi, 1)); display: block; width: 100%; height: 44px; margin: 2px 0 0; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.gp-gd-range::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--bg-3) var(--gd-lo), var(--accent-ink) var(--gd-lo) var(--gd-hi), var(--bg-3) var(--gd-hi)); }
.gp-gd-range::-moz-range-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--bg-3) var(--gd-lo), var(--accent-ink) var(--gd-lo) var(--gd-hi), var(--bg-3) var(--gd-hi)); }
.gp-gd-range::-webkit-slider-thumb { width: var(--thumb); height: var(--thumb); margin-top: calc((10px - var(--thumb)) / 2); border: 4px solid #fff; border-radius: 50%; background: var(--paper-ink); box-shadow: 0 2px 10px rgba(18, 19, 22, .35); -webkit-appearance: none; appearance: none; }
.gp-gd-range::-moz-range-thumb { box-sizing: border-box; width: var(--thumb); height: var(--thumb); border: 4px solid #fff; border-radius: 50%; background: var(--paper-ink); box-shadow: 0 2px 10px rgba(18, 19, 22, .35); }
.gp-gd-range:focus-visible { outline-offset: 2px; border-radius: 12px; }
.gp-gd-fit__scale { position: relative; height: 1.3em; margin: 0 calc(var(--thumb) / 2); color: var(--muted); font-size: .8rem; font-weight: 600; }
.gp-gd-fit__scale span { position: absolute; left: calc(var(--at) * 100%); translate: -50% 0; white-space: nowrap; }
.gp-gd-fit__result { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; margin-top: 20px; padding: 14px 18px; overflow: hidden; isolation: isolate; border-radius: 18px; background: var(--paper-ink); color: #fff; }
.gp-gd-fit__result::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-rim); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease-out); } /* the rim outlines the Pro cream on the white card (G1); transparent for Particuliers */
.gp-gd-fit.is-custom .gp-gd-fit__result { color: var(--on-accent); }
.gp-gd-fit.is-custom .gp-gd-fit__result::before { clip-path: inset(0); }
.gp-gd-fit__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.gp-gd-fit.is-custom .gp-gd-fit__icon { background: var(--on-accent); color: var(--accent); }
.gp-gd-fit__icon .gp-i { width: 20px; height: 20px; }
.gp-gd-fit__icon .gp-i + .gp-i, .gp-gd-fit.is-custom .gp-gd-fit__icon .gp-i:first-child { display: none; }
.gp-gd-fit.is-custom .gp-gd-fit__icon .gp-i + .gp-i { display: block; }
.gp-gd-fit__text { font-family: var(--font-display); font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.gp-gd-fit__result.is-swap .gp-gd-fit__icon, .gp-gd-fit__result.is-swap .gp-gd-fit__text { animation: gp-gd-swap .5s var(--ease-out) both; }
.gp-gd-fit__result.is-swap .gp-gd-fit__text { animation-delay: .06s; }
@keyframes gp-gd-swap { from { opacity: 0; translate: 0 70%; } to { opacity: 1; translate: none; } }
@media (min-width: 1000px) {
	.gp-gd-size__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

/* ---------- 02 Bretelles: steps on a timeline beside the diagram held on screen ---------- */
.gp-gd-steps__grid { position: relative; }
.gp-gd-steps__media { position: sticky; z-index: 3; top: calc(var(--header-total) + 10px); margin: 0 0 8px; }
@media (max-width: 899.98px) { /* phones: the steps pass under the picture; a band of page colour above it keeps them from showing between it and the header */
	.gp-gd-steps__media { top: var(--header-total); padding-top: 10px; background: var(--bg); }
	body.gp-paper-view .gp-gd-steps__media { background: var(--paper); }
}
/* The diagram follows the header when main.js slides it away (phones keep the world row; short screens lose it all). */
@media (max-width: 767.98px) and (min-height: 481px) { body:has(#gp-header.is-hidden) .gp-gd-steps__media { transform: translateY(calc(-1 * var(--header-h))); } }
@media (max-height: 480px) { body:has(#gp-header.is-hidden) .gp-gd-steps__media { transform: translateY(calc(-1 * var(--header-total))); } }
@media (prefers-reduced-motion: no-preference) { .gp-gd-steps__media { transition: transform var(--dur-header) var(--ease-out); } }
.gp-gd-dia { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: #f4f4f4; box-shadow: 0 0 0 1px var(--line), 0 26px 50px -30px rgba(18, 19, 22, .55); }
.gp-gd-dia__crop, .gp-gd-dia__stage { position: relative; }
.gp-gd-dia__img { display: block; width: 100%; height: auto; max-height: calc(56vh - var(--header-total)); max-height: calc(56svh - var(--header-total)); object-fit: contain; } /* any picture shows whole; on phones its sticky frame ends above the line where guide.js lights a step (68 % of the screen) */
/* The strap diagram the label map knows (gp-gd-dia--map, helpers.php): a 3:2 window on its straps on phones, the whole 2:3 sheet on desktop */
.gp-gd-dia--map { aspect-ratio: 3 / 2; }
.gp-gd-dia--map .gp-gd-dia__crop { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 2 / 3; transform: translateY(-19.5%); } /* phones: the straps and their labels (19.5 % to 64 % of the height; the title's last line ends at 18.8 %) */
.gp-gd-dia--map .gp-gd-dia__stage { position: absolute; inset: 0; }
.gp-gd-dia--map .gp-gd-dia__img { height: 100%; max-height: none; object-fit: cover; }
.gp-gd-dia__chip { position: absolute; z-index: 2; top: 10px; right: 10px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--paper-ink); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; opacity: 0; translate: 0 -6px; transition: opacity .3s ease, translate .45s var(--ease-out); pointer-events: none; }
.gp-gd-live .gp-gd-dia__chip.is-on { opacity: 1; translate: none; }
/* Rings on the straps the step names (guide.js). The diagram itself never moves: its printed labels run almost edge to
   edge (« c. abdominale » ends at 99 % of the width), so any zoom cut one (C2). */
.gp-gd-spot { position: absolute; top: var(--y); left: var(--x); display: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; box-shadow: 0 0 0 3px var(--paper-ink), 0 0 0 6px rgba(255, 255, 255, .92), 0 8px 22px rgba(0, 0, 0, .3); opacity: 0; scale: .3; transition: opacity .35s ease, scale .6s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.gp-gd-spot::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--paper-ink); }
.gp-gd-spot::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--paper-ink); border-radius: 50%; opacity: 0; }
.gp-gd-live .gp-gd-spot { display: block; }
.gp-gd-live .gp-gd-spot.is-on { opacity: 1; scale: 1; }
.gp-gd-live .gp-gd-spot.is-on::after { animation: gp-gd-ring 1.6s ease-out .45s 2; }
@keyframes gp-gd-ring { from { opacity: .75; scale: 1; } to { opacity: 0; scale: 2.1; } }
/* The printed label of the lit strap: a highlighter sweeps over it (multiply keeps the black type black). */
.gp-gd-mark { position: absolute; top: var(--t); left: var(--l); display: none; width: var(--w); height: var(--h); border-radius: 8px; background: var(--accent); mix-blend-mode: multiply; opacity: 0; scale: 0 1; transform-origin: 0 50%; transition: opacity .3s ease .15s, scale .75s var(--ease-out) .15s; pointer-events: none; }
.gp-gd-live .gp-gd-mark { display: block; }
.gp-gd-live .gp-gd-mark.is-on { opacity: .9; scale: 1; }
.gp-gd-dia__img.is-zoomable { cursor: zoom-in; }
/* « Agrandir »: opens the diagram whole in the viewer (guide.js; hidden without JavaScript). */
.gp-gd-zoom { position: absolute; z-index: 3; right: 10px; bottom: 10px; display: inline-flex; align-items: center; min-width: 44px; height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--paper-ink); color: #fff; font: inherit; font-size: .88rem; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); transition: translate .35s var(--ease-out), box-shadow .35s ease; }
.gp-gd-zoom[hidden] { display: none; }
.gp-gd-zoom .gp-i { flex: none; width: 18px; height: 18px; transition: rotate .45s var(--ease-out); }
.gp-gd-zoom > span:not(.screen-reader-text) { display: block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease-out), opacity .3s ease, margin .45s var(--ease-out); } /* the word opens on hover and focus; it names the button at all times */
.gp-gd-zoom:hover > span:not(.screen-reader-text), .gp-gd-zoom:focus-visible > span:not(.screen-reader-text) { max-width: 8em; margin-left: 8px; opacity: 1; }
.gp-gd-zoom:hover { translate: 0 -2px; box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .6); }
.gp-gd-zoom:hover .gp-i { rotate: 90deg; }
.gp-gd-zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:root[data-gp-world="b2b"] .gp-gd-zoom:focus-visible { outline-color: var(--accent-ink); } /* G1: the cream ring is 1.02:1 on the white card; olive there (8.05:1), cream on dark */
.gp-gd-dia--map .gp-gd-zoom { top: calc(62% - 22px); bottom: auto; } /* phones: the empty strip right of the hand, between the labels a. and c. */
@media (min-width: 900px) { .gp-gd-dia--map .gp-gd-zoom { top: 14px; right: auto; bottom: auto; left: 14px; } } /* the empty corner of the strap diagram, clear of the title and the logo */

/* Timeline: a number for each step on a line that fills as you read (--gd-p from guide.js). */
.gp-gd-track { --node: 46px; position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.gp-gd-track::before, .gp-gd-track::after { content: ""; position: absolute; top: calc(var(--node) / 2 + 12px); bottom: calc(var(--node) / 2 + 12px); left: calc(var(--node) / 2 - 1px); width: 2px; border-radius: 2px; background: var(--line); }
.gp-gd-track::after { background: var(--accent-ink); opacity: 0; transform: scaleY(var(--gd-p, 0)); transform-origin: 50% 0; }
.gp-gd-live .gp-gd-track::after { opacity: 1; }
.gp-gd-step { position: relative; display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: clamp(14px, 1.6vw, 22px); align-items: start; padding-block: 12px; }
.gp-gd-step__n { position: relative; z-index: 1; display: grid; place-items: center; width: var(--node); height: var(--node); padding-top: .1em; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1; isolation: isolate; }
.gp-gd-step__n::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-rim); scale: 0; transition: scale .5s cubic-bezier(.3, 1.4, .5, 1); } /* the disc covers the ring below it: it carries the Pro olive edge itself (G1) */
.gp-gd-step__text { max-width: 44ch; margin: 0; padding-top: 10px; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.45; }
.gp-vs-motion .gp-gd-step__text { opacity: .7; transition: opacity .45s ease, translate .6s var(--ease-out); } /* .7 of the ink on paper: 7:1 */
.gp-vs-motion .gp-gd-step.is-on .gp-gd-step__text { opacity: 1; translate: 6px 0; }
.gp-vs-motion .gp-gd-step.is-on .gp-gd-step__n { box-shadow: inset 0 0 0 2px var(--accent-edge); color: var(--on-accent); }
.gp-vs-motion .gp-gd-step.is-on .gp-gd-step__n::before { scale: 1; }
.gp-gd-step.is-done .gp-gd-step__n { background: var(--paper-ink); color: #fff; }
.gp-gd-tips__title { margin: clamp(30px, 4vw, 52px) 0 14px; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.gp-gd-tips { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gp-gd-tip { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: 20px; background: var(--gd-card); isolation: isolate; }
.gp-gd-tip::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent-ink), 0 24px 50px -32px rgba(18, 19, 22, .45); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.gp-vs-motion .gp-gd-tip.is-on::before { opacity: 1; }
.gp-gd-tip__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--paper-ink); color: var(--accent-on-dark); }
.gp-gd-tip__icon .gp-i { width: 22px; height: 22px; }
.gp-gd-tip__text { margin: 0; padding-top: 3px; color: var(--ink-2); line-height: 1.55; }
@media (min-width: 900px) {
	.gp-gd-steps__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "media head" "media body"; column-gap: clamp(40px, 5vw, 96px); align-items: start; }
	.gp-gd-steps--solo .gp-gd-steps__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body"; }
	.gp-gd-steps__head { grid-area: head; }
	.gp-gd-steps__media { grid-area: media; top: calc(var(--header-total) + 24px); margin: 0; }
	.gp-gd-steps__body { grid-area: body; }
	.gp-gd-dia { border-radius: var(--gd-r); }
	.gp-gd-dia__img { max-height: calc(100vh - var(--header-total) - 48px); object-fit: contain; } /* any other picture: whole, within the screen */
	.gp-gd-dia--map { width: min(100%, calc((100vh - var(--header-total) - 48px) * 2 / 3)); aspect-ratio: 2 / 3; margin-inline: auto; }
	.gp-gd-dia--map .gp-gd-dia__crop { transform: none; }
	.gp-gd-dia__chip { top: auto; right: auto; bottom: 14px; left: 14px; }
	.gp-vs-motion .gp-gd-step { min-height: 17vh; }
	.gp-vs-motion .gp-gd-tip { margin-block: 2vh; }
}

/* ---------- 03 Répartition: the compartments beside the owner's drawing of the bag, one card the width of the page
   (owner review of 14 Nov 2026, point 21). The drawing sits on its own cream (the colour of the owner's diagram, so
   the crop has no visible edge); the plain cross-section (.gp-gd-xs__svg) only shows if the list changes order. ---------- */
.gp-gd-xs { display: grid; gap: clamp(14px, 2.4vw, 32px); padding: clamp(16px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--gd-r); background: var(--gd-card); }
.gp-gd-xs__fig { margin: 0; }
.gp-gd-xs__svg { display: block; width: 100%; max-width: 290px; height: auto; margin-inline: auto; overflow: visible; }
.gp-gd-xs__strap { fill: none; stroke: var(--bg-3); stroke-width: 12; stroke-linecap: round; }
.gp-gd-xs__back { fill: var(--bg-3); }
.gp-gd-xs__body { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.5; }
.gp-gd-xs__base { fill: var(--bg-2); stroke: var(--line); }
.gp-gd-xs__lit { fill: var(--accent); stroke: var(--accent-edge); stroke-width: 1.5; opacity: 0; transition: opacity .35s ease; }
.gp-gd-xs__zone text { fill: var(--muted); font-family: var(--font-display); font-size: 22px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.gp-gd-xs__zone.is-on .gp-gd-xs__lit { opacity: 1; }
.gp-gd-xs__zone.is-on text { fill: var(--on-accent); }
.gp-gd-xs.is-ready .gp-gd-xs__zone { cursor: pointer; }
.gp-gd-xs__now { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 2.8em; margin: 12px 0 0; color: var(--ink); font-weight: 700; line-height: 1.25; text-align: center; }
.gp-gd-xs:not(.is-ready) .gp-gd-xs__now { display: none; }
.gp-gd-xs__now.is-swap { animation: gp-gd-swap .45s var(--ease-out) both; }
.gp-gd-xs__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding-top: .1em; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-rim); color: var(--on-accent); font-family: var(--font-display); font-size: .95rem; font-weight: 800; line-height: 1; }
.gp-gd-xs__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gp-gd-zone__inner, .gp-gd-zone__btn { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: transparent; color: var(--ink-2); font: inherit; line-height: 1.5; text-align: left; isolation: isolate; }
.gp-gd-zone__btn { min-height: 44px; cursor: pointer; }
.gp-gd-zone__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg-2); opacity: 0; transition: opacity .3s ease; }
.gp-gd-zone__btn:hover::before { opacity: .55; }
.gp-gd-zone.is-on .gp-gd-zone__btn::before { opacity: 1; }
.gp-gd-zone__n { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding-top: .1em; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); font-family: var(--font-display); font-weight: 800; line-height: 1; isolation: isolate; }
.gp-gd-zone__n::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-rim); scale: 0; transition: scale .45s cubic-bezier(.3, 1.4, .5, 1); }
.gp-gd-zone.is-on .gp-gd-zone__n { box-shadow: inset 0 0 0 2px var(--accent-edge); color: var(--on-accent); }
.gp-gd-zone.is-on .gp-gd-zone__n::before { scale: 1; }
.gp-gd-zone__text { padding-top: 5px; }
.gp-gd-zone__text strong { color: var(--ink); }
.gp-gd-art { position: relative; display: block; width: 100%; max-width: 520px; margin-inline: auto; overflow: hidden; border-radius: 20px; background: #f3f3e9; } /* the cream of the owner's diagram */
.gp-gd-art picture, .gp-gd-art__img { display: block; width: 100%; height: auto; }
.gp-gd-hl { position: absolute; top: var(--t); left: var(--l); width: var(--w); height: var(--h); opacity: 0; scale: .94; transition: opacity .35s ease, scale .6s var(--ease-out); }
.gp-gd-hl--part { border-radius: 9px; background: color-mix(in srgb, var(--accent) 72%, transparent); box-shadow: 0 0 0 2px var(--paper-ink); mix-blend-mode: multiply; }
.gp-gd-hl.is-on { opacity: 1; scale: 1; }
.gp-gd-hl--part::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--paper-ink); border-radius: 12px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .gp-gd-hl--part.is-on::after { animation: gp-gd-pulse 1.5s ease-out .3s 2; } }
@keyframes gp-gd-pulse { from { opacity: .7; scale: 1; } to { opacity: 0; scale: 1.25 1.08; } }
.gp-gd-xs.is-ready .gp-gd-hl { cursor: pointer; }
@media (min-width: 700px) {
	.gp-gd-xs { grid-template-columns: minmax(200px, .85fr) minmax(0, 1.15fr); align-items: center; }
	.gp-gd-xs--art { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (min-width: 1100px) { /* the drawing at its own size, the list beside it at a reading width, both centred in the card */
	.gp-gd-xs--art { grid-template-columns: minmax(0, 520px) minmax(0, 640px); justify-content: center; column-gap: clamp(40px, 5vw, 88px); padding: clamp(28px, 3vw, 48px); }
}
@media (max-width: 699.98px) {
	.gp-gd-xs__svg { max-width: 210px; }
	.gp-gd-art { max-width: 340px; }
}

/* ---------- 04 Précautions: a calm band ---------- */
.gp-gd-note { padding-block: clamp(20px, 3vw, 48px) var(--space-section); } /* the section room above the video band (main.css) */
.gp-gd-note__box { display: grid; gap: 18px clamp(28px, 5vw, 80px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: calc(var(--gd-r) + 4px); background: var(--bg-2); }
.gp-gd-note__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--paper-ink); color: var(--accent-on-dark); }
.gp-gd-note__icon .gp-i { width: 26px; height: 26px; }
.gp-gd-note .gp-gd-head { margin-bottom: 0; }
.gp-gd-note__body p { max-width: 62ch; margin: 0; color: var(--ink-2); font-size: clamp(1.04rem, 1rem + .25vw, 1.15rem); line-height: 1.7; }
.gp-gd-note__body p + p { margin-top: 1em; }
@media (min-width: 900px) {
	.gp-gd-note__box { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
	.gp-gd-note__body { padding-top: 70px; }
}

/* ---------- 05 PDF et vidéo: a band that opens to full width (--vs-o from vision.js) ---------- */
.gp-gd-media { position: relative; display: flex; min-height: min(86vh, 860px); margin-block: clamp(8px, 2vw, 28px); padding: 0; overflow: hidden; isolation: isolate; color: var(--ink); --vs-o: 1; }
.gp-vs-motion .gp-gd-media { --vs-o: 0; }
.gp-gd-media__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); clip-path: inset(calc(6% * (1 - var(--vs-o))) calc(var(--gutter) * (1 - var(--vs-o))) round calc(var(--gd-r) * (1 - var(--vs-o)))); }
.gp-gd-media__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; scale: calc(1.12 - .12 * var(--vs-o)); }
.gp-gd-media__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 13, .94) 6%, rgba(10, 11, 13, .6) 52%, rgba(10, 11, 13, .42)); }
.gp-gd-media__inner { display: grid; grid-template-areas: "play" "head" "text" "links"; grid-template-rows: 1fr auto auto auto; gap: 16px; width: 100%; padding-block: clamp(56px, 9vw, 120px) clamp(36px, 5vw, 72px); }
.gp-gd-media__inner--novideo { grid-template-areas: "." "head" "text" "links"; }
.gp-gd-media__head { grid-area: head; margin: 0; }
.gp-gd-media__play { display: grid; grid-area: play; align-self: center; place-items: center; gap: 22px; padding-block: clamp(6px, 3vw, 40px); }
.gp-gd-media__text { grid-area: text; margin: 0; color: var(--ink-2); }
.gp-gd-media__links { display: flex; flex-wrap: wrap; grid-area: links; gap: 12px; }
.gp-gd-play { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--ink); text-align: center; text-decoration: none; border-radius: 18px; }
.gp-gd-play__btn { position: relative; display: grid; place-items: center; width: clamp(84px, 8vw, 116px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); transition: scale .45s var(--ease-out); }
.gp-gd-play__btn .gp-i { width: 38%; height: 38%; translate: 7% 0; fill: currentColor; }
.gp-gd-play__btn::before, .gp-gd-play__btn::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.gp-gd-play:hover .gp-gd-play__btn, .gp-gd-play:focus-visible .gp-gd-play__btn { scale: 1.07; }
.gp-gd-play__text { max-width: 14.4em; font-family: var(--font-display); font-size: clamp(1.15rem, .95rem + .8vw, 1.6rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.gp-gd-newtab { display: block; margin-top: 8px; color: var(--ink-2); font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.gp-gd-doc { display: inline-flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 18px 10px 10px; border: 1px solid rgba(244, 244, 240, .26); border-radius: 18px; background: rgba(10, 11, 13, .55); color: var(--ink); text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gp-gd-doc:hover { background: rgba(10, 11, 13, .75); border-color: rgba(244, 244, 240, .5); }
.gp-gd-doc__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: #f4f4f0; color: #0a0b0d; }
.gp-gd-doc__label { display: block; font-weight: 700; line-height: 1.25; }
.gp-gd-doc__meta { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.gp-gd-doc > .gp-i { flex: none; width: 20px; height: 20px; opacity: .75; transition: transform .35s var(--ease-out); }
.gp-gd-doc:hover > .gp-i { transform: translateX(4px); }
@media (min-width: 900px) {
	.gp-gd-media__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto; grid-template-areas: "play play" "head links" "text links"; column-gap: 40px; align-items: end; }
	.gp-gd-media__inner--novideo { grid-template-areas: ". ." "head links" "text links"; }
}

/* ---------- 06 Aide: the closing band ---------- */
.gp-gd-help { padding-block: clamp(28px, 4vw, 64px) var(--space-section); } /* the section room before the footer or the Pro band, whose background starts there (main.css) */
.gp-gd-help__card { position: relative; display: grid; gap: clamp(24px, 3vw, 48px); padding: clamp(26px, 4.4vw, 68px); overflow: hidden; isolation: isolate; border-radius: calc(var(--gd-r) + 6px); background: radial-gradient(circle at 96% 4%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 44%), var(--bg); color: var(--ink); }
.gp-gd-help .gp-gd-head { margin-bottom: 18px; }
.gp-gd-help__body p { max-width: 56ch; margin: 0; color: var(--ink-2); font-size: clamp(1.04rem, 1rem + .25vw, 1.15rem); line-height: 1.65; }
.gp-gd-help__body p + p { margin-top: 1em; }
.gp-gd-help__tiles { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gp-gd-tile { display: flex; align-items: center; gap: 16px; min-height: 78px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-1); color: var(--ink); text-decoration: none; }
.gp-gd-tile:hover { border-color: var(--accent-line); background: var(--surface-2); }
.gp-gd-tile__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: var(--accent); color: var(--on-accent); transition: transform .4s var(--ease-out); }
.gp-gd-tile:hover .gp-gd-tile__icon { transform: rotate(-8deg) scale(1.06); }
.gp-gd-tile__icon .gp-i { width: 24px; height: 24px; }
.gp-gd-tile__text { min-width: 0; }
.gp-gd-tile__label { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gp-gd-tile__value { display: block; margin-top: 3px; font-family: var(--font-display); font-size: clamp(1.12rem, 1rem + .7vw, 1.55rem); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.gp-gd-help__buttons { margin-top: 14px; }
@media (min-width: 1000px) {
	.gp-gd-help__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; }
}

/* ---------- Plain chapters ---------- */
.gp-gd-plain__body { max-width: 860px; }

/* ---------- The viewer: one modal dialog for the diagrams (guide.js) ---------- */
.gp-gd-lb { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: rgba(8, 9, 11, .95); color: #fff; overscroll-behavior: contain; }
.gp-gd-lb::backdrop { background: transparent; }
.gp-gd-lb__stage { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.gp-gd-lb__img { display: block; width: auto; height: auto; max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); border-radius: 14px; background: #f4f4f0; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); cursor: zoom-in; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; transform-origin: 50% 50%; }
.gp-gd-lb.is-zoomed .gp-gd-lb__img { cursor: grab; touch-action: none; }
.gp-gd-lb.is-panning .gp-gd-lb__img { cursor: grabbing; }
.gp-gd-lb__bar { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; display: flex; gap: 10px; }
.gp-gd-lb__btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(20, 22, 26, .72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .25s ease, color .25s ease; }
.gp-gd-lb__btn:hover { background: rgba(40, 43, 50, .9); }
.gp-gd-lb__btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.gp-gd-lb__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gp-gd-lb__hint { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; margin: 0; padding: 9px 16px; border-radius: 999px; background: rgba(20, 22, 26, .78); color: #f4f4f0; font-size: .86rem; font-weight: 600; white-space: nowrap; translate: -50% 0; transition: opacity .4s ease; pointer-events: none; }
.gp-gd-lb.is-used .gp-gd-lb__hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.gp-gd-lb[open] { animation: gp-gd-lb-in .3s ease both; }
	.gp-gd-lb[open] .gp-gd-lb__img { animation: gp-gd-lb-pop .6s var(--ease-out) both; }
	.gp-gd-lb__img { transition: transform .5s var(--ease-out); }
	.gp-gd-lb.is-panning .gp-gd-lb__img { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .gp-gd-mark, .gp-gd-hl, .gp-gd-zoom, .gp-gd-zoom .gp-i { transition: none; } }
@keyframes gp-gd-lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gp-gd-lb-pop { from { opacity: 0; scale: .92; translate: 0 18px; } to { opacity: 1; scale: 1; translate: none; } }

/* ---------- Motion that needs no scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.gp-vs-motion .gp-gd-hero__img { animation: gp-gd-push 22s cubic-bezier(.2, .6, .2, 1) both; }
	.gp-vs-motion .gp-gd-cue span { animation: gp-gd-cue 1.8s ease-in-out .8s 2; }
	.gp-vs-motion .gp-gd-play.is-in .gp-gd-play__btn::before { animation: gp-gd-wave 2.2s ease-out .6s 2; }
	.gp-vs-motion .gp-gd-play.is-in .gp-gd-play__btn::after { animation: gp-gd-wave 2.2s ease-out 1.7s 1; }
}
@keyframes gp-gd-push { from { scale: 1.14; } to { scale: 1; } }
@keyframes gp-gd-cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 80% { opacity: 0; translate: 0 14px; } 100% { opacity: 0; } }
@keyframes gp-gd-wave { from { opacity: .75; scale: 1; } to { opacity: 0; scale: 1.9; } }
