/* Technologie et savoir-faire (page-presentation-exosquelette.php): the owner's chapters, read from the page blocks.
   Title on the left and held in view on wide screens, body on the right. A list reads as term and text rows or as
   ruled rows in balanced columns; a chapter of H3 steps reads as a numbered path. Colours and type are the theme's
   tokens (main.css): the page follows the scheme and the world.
   Motion: the hero photo settles in once, in under five seconds. Where the browser drives animations by scroll, each
   chapter's number fills as the chapter arrives and the path's dots and line fill as they reach the reading line.
   Transform and opacity only; without that support, or with reduced motion, everything is shown at rest. */

/* Hero: no label above the title */
@media (prefers-reduced-motion: no-preference) {
	.gp-tk-hero .gp-page-hero__img { animation: gp-tk-settle 4.6s var(--ease-out) both; }
}
@keyframes gp-tk-settle { from { scale: 1.1; } }

/* Sommaire: ruled rows, two then three columns; a last row is never left half empty */
.gp-tk-nav { padding-block: clamp(40px, 6vw, 80px) 0; }
.gp-tk-nav__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gp-tk-nav__list > li { display: flex; } /* the link fills its grid cell, so the rules of a row line up when one entry wraps */
.gp-tk-nav__list a { display: flex; flex: 1; align-items: baseline; gap: 14px; min-height: 48px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; transition: color .2s; }
.gp-tk-nav__list a:hover { color: var(--accent-ink); }
.gp-tk-nav__n { flex: none; width: 2.1em; color: var(--muted); font: 800 .95rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) and (max-width: 1099.98px) {
	.gp-tk-nav__list { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); }
	.gp-tk-nav__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	.gp-tk-nav__list { grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px); }
	.gp-tk-nav__list > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
	.gp-tk-nav__list > li:last-child:nth-child(3n + 2) { grid-column: span 2; }
}

/* Rhythm: one room between two sections of the page, the theme's section room (--space-section, main.css), whatever
   the last element of the section before (text, card, button). A chapter takes it at its top. A chapter followed by
   anything but a chapter (the turning bag, the study, the awards, the closing band, the footer) keeps it at its end
   too (gp-tk--end, set by the template): before, only the last chapter of the page did, so the turning bag and the
   study started flush under the chapter before them (owner review of 12 Nov 2026). A button's raised edge counts as
   part of the section (.gp-tk__cta), and a chapter's title block never sits closer to its text than --space-edge.
   Measured with tools/qa/edge-gaps.mjs at 1440, 768 and 390 in both worlds. */
body { --tk-room: var(--space-section, clamp(70px, 9vw, 130px)); }
/* A contents jump: html's scroll padding already clears the fixed header (main.css), so the chapter's title, not its
   top room, lands --space-edge under it (still below the sticky title's line, header + 28 px). */
.gp-tk { display: grid; gap: max(clamp(22px, 3vw, 40px), var(--space-edge, 26px)); padding-block: var(--tk-room) 0; scroll-margin-top: calc(var(--space-edge, 26px) - var(--tk-room)); }
.gp-tk--end { padding-bottom: var(--tk-room); }
/* The parts keep the same room: the awards end on it and the chapter after them adds none; two parts in a row (a
   renamed anchor prints its part after the last chapter) are spaced by it. A chapter follows the turning bag here,
   not the range of the home page, so its sheet is closed at the bottom too (phones already round all four corners),
   and its progress bar keeps a band's room (--space-sheet) from the sheet's edge. */
.gp-tk ~ .gp-awards { padding-bottom: var(--tk-room); }
.gp-awards + .gp-tk { padding-top: 0; scroll-margin-top: var(--space-edge, 26px); }
:is(.gp-tech, .gp-study, .gp-awards) + :is(.gp-tech, .gp-study, .gp-awards, .gp-tk-band) { margin-top: var(--tk-room); }
.gp-tech__progress { bottom: var(--space-sheet, clamp(30px, 4vw, 56px)); }
@media (min-width: 701px) { .gp-tech { border-radius: 36px; } }
/* The awards (shared part, eleven distinctions today) in two then three columns (main.css): on this page the last card
   takes what is left of its row, so the grid never ends on an empty cell. */
@media (min-width: 700px) and (max-width: 1039.98px) {
	.gp-tk ~ .gp-awards .gp-awards__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
	.gp-tk ~ .gp-awards .gp-awards__card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
	.gp-tk ~ .gp-awards .gp-awards__card:last-child:nth-child(3n + 2) { grid-column: span 2; }
}

/* Chapter: the number on the line of the title (outlined, filled on arrival), the subtitle under it */
.gp-tk__head .gp-h2 { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.3rem); text-wrap: balance; }
.gp-tk__n { position: relative; display: inline-block; margin-right: .06em; color: transparent; font-variant-numeric: tabular-nums; -webkit-text-stroke: 1.5px var(--accent-ink); view-timeline: --gp-tk-n block; }
.gp-tk__n::after { content: attr(data-n); position: absolute; inset: 0; color: var(--accent-ink); -webkit-text-stroke: 0; }
.gp-tk__sub { margin: 18px 0 0; max-width: 32ch; color: var(--ink-2); font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.gp-tk__body { max-width: 72ch; container: gp-tk-body / inline-size; }
.gp-tk__body > p { margin: 0 0 1.05em; color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .22vw, 1.14rem); line-height: 1.65; }
.gp-tk__body > :last-child { margin-bottom: 0; }
.gp-tk__body h3 { margin: 2em 0 .7em; font: 800 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.gp-tk__body > h3:first-child { margin-top: 0; }
.gp-tk__body li strong { color: var(--ink); font-weight: 700; }
.gp-tk__body > :is(ul, ol):not(.gp-tk-terms, .gp-tk-list, .gp-tk-steps) { margin: 0 0 1.5em; padding-left: 1.3em; color: var(--ink-2); line-height: 1.6; } /* an ordered or nested list, as written */

/* Term and text rows (« Répartition des charges : … »): the term on the left once the body is wide enough. The colon
   stays in the text for screen readers; the column shows the pause. An item without a term takes the whole row. */
.gp-tk-terms { margin: 0 0 1.5em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gp-tk-terms > li { display: grid; gap: 5px clamp(18px, 3vw, 40px); padding: 15px 0 16px; border-bottom: 1px solid var(--line); }
.gp-tk-terms__k, .gp-tk-terms__solo { color: var(--ink); font: 800 clamp(1.02rem, .96rem + .3vw, 1.2rem)/1.2 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.gp-tk-terms__k strong { font-weight: inherit; }
.gp-tk-terms__colon { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gp-tk-terms__v { color: var(--ink-2); line-height: 1.55; }
.gp-tk-terms__v::first-letter { text-transform: uppercase; } /* the text goes on after the colon: a capital on display only */
@container gp-tk-body (min-width: 520px) {
	.gp-tk-terms > li { grid-template-columns: minmax(0, 13em) minmax(0, 1fr); align-items: baseline; }
	.gp-tk-terms > .gp-tk-terms__solo { grid-template-columns: minmax(0, 1fr); }
}

/* Any other list: ruled rows; two columns once the body is wide enough, the last item taking the whole row when the
   count is odd */
.gp-tk-list { margin: 0 0 1.5em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gp-tk-list > li { position: relative; padding: 12px 0 13px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.gp-tk-list > li::before { content: ""; position: absolute; top: calc(12px + .75em - 1px); left: 0; width: 14px; height: 2px; border-radius: 2px; background: var(--accent-ink); }
@container gp-tk-body (min-width: 520px) {
	.gp-tk-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 3vw, 40px); }
	.gp-tk-list--cols > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Numbered path (« Notre savoir-faire »): one step per H3, joined by a line */
.gp-tk-steps { --dot: 48px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.gp-tk-step { position: relative; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: clamp(14px, 2.2vw, 26px); padding-bottom: clamp(26px, 3.2vw, 42px); view-timeline: --gp-tk-step block; }
.gp-tk-step:last-child { padding-bottom: 0; }
.gp-tk-step:not(:last-child)::before, .gp-tk-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--dot) + 6px); bottom: 6px; left: calc(var(--dot) / 2 - 1px); width: 2px; border-radius: 2px; background: var(--line); }
.gp-tk-step:not(:last-child)::after { display: none; background: var(--accent-line); transform-origin: 50% 0; }
.gp-tk-step__n { position: relative; display: grid; place-items: center; width: var(--dot); height: var(--dot); border: 2px solid var(--accent-line); border-radius: 50%; color: var(--accent-ink); font: 800 .9rem/1 var(--font-display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gp-tk-step__n::after { content: attr(data-n); position: absolute; inset: -2px; display: none; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1.5px var(--accent-rim); }
.gp-tk-step__body { min-width: 0; padding-top: 12px; }
.gp-tk-step__body h3 { margin: 0 0 .55em; }
.gp-tk-step__body p { margin: 0; color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .22vw, 1.14rem); line-height: 1.6; }
.gp-tk-step__body > :is(.gp-tk-list, .gp-tk-terms) { margin: .2em 0 0; }

/* A notice of the page (paragraph with the class gp-note): framed, never a promise */
.gp-tk__body > .gp-note { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); font-size: 1rem; line-height: 1.6; }
.gp-tk__body > .gp-note + .gp-note { margin-top: -.3em; }

/* Buttons and links the page adds under a chapter */
.gp-tk__cta { margin: 1.6em 0 0; padding-bottom: 4px; } /* the button's raised edge (0 4px 0, main.css) is part of what a section ends on: its room starts under it */
.gp-tk__cta .gp-link { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 1000px) {
	.gp-tk { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 110px); align-items: start; }
	.gp-tk__head { position: sticky; top: calc(var(--header-total, 96px) + 28px); }
}

/* Closing band (Pro world): the page's own quote call on the world's fill, as the Espace Pro stories end */
.gp-tk-band { position: relative; padding-block: clamp(56px, 8vw, 116px); background: var(--accent); color: var(--on-accent); box-shadow: inset 0 2px 0 var(--accent-rim); } /* on a light page, an olive rule marks the cream band's top edge (G1) */
.gp-tk-band :focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.gp-tk-band__grid { display: grid; align-items: end; gap: 22px 64px; }
.gp-tk-band__title { max-width: 14ch; margin: 0; color: inherit; font-size: clamp(2.3rem, 1.1rem + 4.6vw, 5.6rem); }
.gp-tk-band__side > p:not(.gp-actions) { max-width: 46ch; margin: 0 0 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.5; }
.gp-tk-band .gp-btn { --btn-bg: var(--paper-ink); --btn-fg: #fff; --btn-edge: #000; --btn-rim: transparent; } /* the dark button: #fff 18.58:1, the button 18.12:1 on the band */
.gp-tk-band .gp-btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-accent); --btn-edge: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1.5px var(--on-accent), 0 4px 0 var(--btn-edge); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 900px) { .gp-tk-band__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

/* Scroll-driven fills (progressive: the browser drives them by scroll, nothing runs on a timer) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.gp-tk__n::after { animation: gp-tk-fill linear both; animation-timeline: --gp-tk-n; animation-range: entry 10% cover 45%; }
		.gp-tk-step__n::after { display: grid; animation: gp-tk-pop linear both; animation-timeline: --gp-tk-step; animation-range: cover 20% cover 32%; }
		.gp-tk-step:not(:last-child)::after { display: block; animation: gp-tk-grow linear both; animation-timeline: --gp-tk-step; animation-range: cover 28% cover 62%; }
	}
}
@keyframes gp-tk-fill { from { opacity: 0; } }
@keyframes gp-tk-pop { from { opacity: 0; scale: .5; } }
@keyframes gp-tk-grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .gp-tk-nav__list a { transition: none; } }
