/* Nos récompenses (templates/page-awards.php, template-parts/awards/, assets/js/awards.js).
   Every layout is set here before the first paint; awards.js only adds .gp-aw-motion (never with reduced motion) and
   the state classes and variables that move what is already in place. Without it everything shows, still. */

.gp-aw { overflow-x: clip; }

/* ---------- Shared ---------- */
.gp-aw-head { margin-bottom: clamp(26px, 3.4vw, 48px); }
.gp-aw-num { margin-bottom: .6rem; font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.gp-aw-h2 { margin: 0; font-size: clamp(1.9rem, 1.15rem + 2.7vw, 3.6rem); }
.gp-aw-meta { margin: .7rem 0 0; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gp-aw-w { transition: opacity .35s ease; }
.gp-aw-motion .gp-aw-w { opacity: .2; }
.gp-aw-motion .gp-aw-w.is-lit { opacity: 1; }

/* ---------- Hero: the trophy ---------- */
.gp-aw-hero { position: relative; overflow: clip; padding-block: calc(var(--header-total) + max(var(--space-edge, 20px), clamp(18px, 3vw, 40px))) clamp(36px, 5vw, 72px); /* under the fixed header, never less than the theme's edge room (--space-edge, the floor tools/qa/edge-gaps.mjs checks) */ background: radial-gradient(ellipse 60% 70% at 78% 55%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg); color: var(--ink); }
.gp-aw-hero__grid { display: grid; gap: clamp(8px, 2vw, 28px); align-items: center; }
.gp-aw-hero__title { max-width: 7.2em; margin: .3rem 0 0; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.4rem); }
.gp-aw-hero__lead { max-width: 40ch; margin: 1rem 0 0; }
.gp-aw-counts { display: flex; flex-wrap: wrap; gap: 14px 0; margin: clamp(20px, 2.6vw, 32px) 0 0; padding: 0; list-style: none; }
.gp-aw-counts li { display: grid; gap: 2px; min-width: 0; padding: 0 clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.gp-aw-counts li:first-child { padding-left: 0; border-left: 0; }
.gp-aw-counts__n { color: var(--accent-ink); font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gp-aw-counts span { max-width: 14ch; color: var(--ink-2); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.gp-aw-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.6vw, 30px); }
.gp-aw-index a { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .4em .95em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; transition: background-color .25s ease, border-color .25s ease; }
.gp-aw-index a span { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.gp-aw-index a:hover { background: var(--hover, rgba(255, 255, 255, .08)); border-color: color-mix(in srgb, var(--ink) 45%, transparent); }

.gp-aw-stage { position: relative; width: 100%; aspect-ratio: 1 / 1.04; touch-action: pan-y; user-select: none; -webkit-user-select: none; translate: 0 calc(var(--aw-hp, 0) * -48px); }
.gp-aw-stage__beam { position: absolute; inset: -14% 6% 6%; background: radial-gradient(ellipse 34% 26% at 50% 86%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .02) 70%, transparent); clip-path: polygon(40% 0, 60% 0, 98% 100%, 2% 100%); filter: blur(4px); opacity: calc(1 - var(--aw-hp, 0) * .8); }
.gp-aw-stage__beam::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 26% at 50% 86%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 70%); opacity: 0; }
.gp-aw-stage__plinth { position: absolute; z-index: 1; left: 20%; right: 20%; bottom: 3%; height: 12%; border-radius: 0 0 50% 50% / 0 0 36% 36%; background: linear-gradient(90deg, #121418, #2b2f35 45%, #15171b 80%, #0f1114); box-shadow: 0 26px 40px rgba(0, 0, 0, .5); }
.gp-aw-stage__plinth::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64%; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #41464e, #1d2025 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 48px color-mix(in srgb, var(--accent) 22%, transparent); translate: 0 -50%; }
.gp-aw-stage__bag { position: absolute; z-index: 2; left: 15%; right: 15%; top: 0; bottom: 9%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
.gp-aw-stage__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; pointer-events: none; -webkit-user-drag: none; }
.gp-aw-stage__frame.is-on { opacity: 1; }
.gp-aw-stage__orbit { position: absolute; left: 1%; right: 1%; top: 57%; aspect-ratio: 1; translate: 0 -50%; perspective: 2000px; pointer-events: none; }
.gp-aw-stage__orbit--back { z-index: 1; clip-path: inset(0 0 50% 0); }
.gp-aw-stage__orbit--front { z-index: 3; clip-path: inset(50% 0 0 0); }
.gp-aw-stage__ring { width: 100%; height: 100%; transform: rotateX(76deg); }
.gp-aw-stage__ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gp-aw-stage__track { fill: none; stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 1.5; }
.gp-aw-stage__ring text { fill: color-mix(in srgb, var(--ink) 72%, transparent); font: 700 15px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.gp-aw-stage__orbit--back text { fill: color-mix(in srgb, var(--ink) 34%, transparent); }
.gp-aw-stage__spark { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; }
.gp-aw-stage__hint { position: absolute; z-index: 4; left: 50%; bottom: -4px; display: none; align-items: center; gap: .45em; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; translate: -50% 0; }
.gp-aw-stage__hint svg { width: 14px; height: 14px; }
.gp-aw-motion .gp-aw-stage { cursor: grab; }
.gp-aw-motion .gp-aw-stage.is-drag { cursor: grabbing; }
.gp-aw-motion .gp-aw-stage__hint { display: inline-flex; }
.gp-aw-motion .gp-aw-stage__frame { transition: opacity .22s linear; }
.gp-aw-motion .gp-aw-stage__beam::after { animation: gp-aw-breathe 6s ease-in-out infinite; }
.gp-aw-motion .gp-aw-stage__ring { animation: gp-aw-orbit 48s linear infinite; }
.gp-aw-motion .gp-aw-stage__spark { animation: gp-aw-twinkle 4.6s ease-in-out var(--d) infinite; }
/* Paused with the button, or off screen: the ring and the light hold where they are, the sparks go out. */
.gp-aw-stage:is(.is-paused, .is-off) .gp-aw-stage__ring, .gp-aw-stage:is(.is-paused, .is-off) .gp-aw-stage__spark, .gp-aw-stage:is(.is-paused, .is-off) .gp-aw-stage__beam::after { animation-play-state: paused; }
.gp-aw-stage.is-paused .gp-aw-stage__spark { visibility: hidden; }
@keyframes gp-aw-orbit { from { transform: rotateX(76deg) rotate(0deg); } to { transform: rotateX(76deg) rotate(-360deg); } }
@keyframes gp-aw-breathe { 50% { opacity: 1; } }
@keyframes gp-aw-twinkle { 0%, 70%, 100% { opacity: 0; scale: .4; } 80% { opacity: 1; scale: 1.2; } }
/* The pause button (shown by awards.js only when something turns): bottom right of the stage, over its dark ground. */
.gp-aw-stagebox { position: relative; width: min(84vw, 440px); margin: 0 auto; }
.gp-aw-pause { position: absolute; z-index: 5; right: 0; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--field-line); border-radius: 50%; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--ink); cursor: pointer; transition: background-color .2s ease; }
.gp-aw-pause:hover { background: var(--bg-3); }
.gp-aw-pause__icon { display: grid; place-items: center; }
.gp-aw-pause__icon .gp-i { width: 18px; height: 18px; }
.gp-aw-pause[aria-pressed="true"] .gp-aw-pause__icon--pause, .gp-aw-pause[aria-pressed="false"] .gp-aw-pause__icon--play { display: none; }

@media (min-width: 900px) {
	.gp-aw-hero { display: flex; align-items: center; min-height: min(100svh, 900px); }
	.gp-aw-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
	/* The stage comes first in the markup (its pause button is the hero's first Tab stop, as it shows first on phones);
	   here the grid puts it on the right, so the Tab order never runs against what is on screen. */
	.gp-aw-hero__text { grid-column: 1; grid-row: 1; }
	.gp-aw-stagebox { grid-column: 2; grid-row: 1; width: min(100%, 540px); }
}
@media (max-width: 899px) {
	.gp-aw-stagebox { margin-bottom: 8px; } /* above the text, in markup order */
}

/* ---------- 01 Palmarès ---------- */
.gp-aw-pal { padding-block: clamp(56px, 7vw, 110px) var(--space-section, clamp(70px, 9vw, 130px)); } /* the section room above the patents band, whose background starts there (main.css) */
.gp-aw-tl { display: grid; gap: clamp(24px, 4vw, 64px); --aw-p: 1; }
.gp-aw-motion .gp-aw-tl { --aw-p: 0; }
.gp-aw-tl__year { display: none; }
.gp-aw-tl__track { position: relative; max-width: 62rem; padding-left: 40px; }
.gp-aw-tl__rail { position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.gp-aw-tl__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent-ink); transform: scaleY(var(--aw-p)); transform-origin: 50% 0; }
.gp-aw-tl__list { display: grid; gap: clamp(14px, 2vw, 22px); margin: 0; padding: 0; list-style: none; }
.gp-aw-tl__item { position: relative; }
.gp-aw-tl__dot { position: absolute; left: -35px; top: 26px; width: 14px; height: 14px; border: 2px solid var(--accent-ink); border-radius: 50%; background: var(--bg); transition: background-color .3s ease, box-shadow .3s ease; }
.gp-aw-tl__item.is-on .gp-aw-tl__dot { background: var(--accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-ink) 22%, transparent); }
.gp-aw-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; overflow: hidden; padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); transition: border-color .4s ease, box-shadow .4s ease; }
.gp-aw-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 65%); translate: -110% 0; pointer-events: none; }
.gp-aw-card__year { grid-column: 1; margin: 0; color: var(--accent-ink); font-size: .85rem; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.gp-aw-card__icon { grid-column: 2; grid-row: 1 / span 2; align-self: start; color: var(--accent-ink); }
.gp-aw-icon { display: block; width: clamp(40px, 4vw, 52px); height: auto; }
.gp-aw-card__t { grid-column: 1; margin: .1rem 0 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 800; line-height: 1.18; text-wrap: balance; }
.gp-aw-card__more { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; margin-top: .3rem; color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 60%, transparent); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.gp-aw-card__more svg { width: 18px; height: 18px; transition: translate .3s var(--ease-out); }
.gp-aw-card__more:hover svg { translate: 4px 0; }
.gp-aw-tl__item.is-on .gp-aw-card { border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.gp-aw-motion .gp-aw-tl__item.is-on .gp-aw-card::after { animation: gp-aw-sheen 1.2s ease-out both; }
.gp-aw-motion .gp-aw-icon > * { stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.6s var(--ease-out) .25s; }
.gp-aw-motion .is-in .gp-aw-icon > * { stroke-dashoffset: 0; }
@keyframes gp-aw-sheen { to { translate: 110% 0; } }

/* The rolling year needs awards.js to follow the reading (it does with reduced motion too, without the roll): without
   JavaScript the column is left out rather than showing the first year all the way down. */
@media (min-width: 900px) {
	html.gp-js .gp-aw-tl { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); align-items: start; }
	html.gp-js .gp-aw-tl__year { position: sticky; top: calc(var(--header-total) + 14vh); display: block; padding-top: 6px; }
	.gp-aw-tl__track { padding-left: 52px; }
	.gp-aw-tl__dot { left: -47px; }
}
.gp-aw-odo { display: block; height: 1em; overflow: hidden; color: transparent; font-family: var(--font-display); font-size: clamp(4rem, 7.4vw, 7.2rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; -webkit-text-stroke: 1.5px var(--accent-ink); }
.gp-aw-odo__reel { display: block; translate: 0 calc(var(--d) * -1em); }
.gp-aw-odo__reel span { display: block; height: 1em; }
.gp-aw-motion .gp-aw-odo__reel { transition: translate .9s cubic-bezier(.7, 0, .2, 1); }

/* The distinctions with no dated article: medals that swing in */
.gp-aw-more { margin-top: clamp(48px, 6vw, 88px); }
.gp-aw-more__t { margin: 0 0 clamp(18px, 2.4vw, 30px); font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 800; }
.gp-aw-medals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px) clamp(14px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.gp-aw-medal { display: grid; justify-items: center; gap: 14px; text-align: center; }
.gp-aw-medal__hang { display: grid; justify-items: center; transform-origin: 50% 0; }
.gp-aw-medal__ribbon { width: 40px; height: 54px; background: linear-gradient(90deg, var(--accent) 0 30%, #17191d 30% 70%, var(--accent) 70%); box-shadow: inset 0 0 0 1.5px var(--accent-rim); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); } /* G1: the Pro cream stripes take the olive rim on a light page */
.gp-aw-medal__disc { position: relative; display: grid; place-items: center; width: clamp(88px, 9vw, 112px); aspect-ratio: 1; margin-top: -12px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fbf8ea, #d3cca9 34%, #9a9270 68%, #625c48); color: #2c2a22; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .28), inset 0 -8px 16px rgba(0, 0, 0, .3), 0 14px 30px rgba(0, 0, 0, .32); transition: transform .5s var(--ease-out); }
.gp-aw-medal__disc .gp-aw-icon { width: 46%; }
.gp-aw-medal__disc::after { content: ""; position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .75) 50%, transparent 58%); translate: -70% 0; }
.gp-aw-medal:hover .gp-aw-medal__disc { transform: rotate(-6deg) scale(1.05); }
.gp-aw-medal__t { max-width: 22ch; margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.gp-aw-motion .gp-aw-medal__hang { opacity: 0; rotate: -16deg; }
.gp-aw-motion .gp-aw-medal.is-in .gp-aw-medal__hang { animation: gp-aw-swing 2.6s cubic-bezier(.3, .6, .3, 1) calc(var(--i) * 140ms) both; }
.gp-aw-motion .gp-aw-medal.is-in .gp-aw-medal__disc::after { animation: gp-aw-glint 1.4s ease-in-out calc(1.6s + var(--i) * .3s) both; } /* once, as it settles */
@keyframes gp-aw-swing { 0% { opacity: 0; rotate: -16deg; } 12% { opacity: 1; } 34% { rotate: 11deg; } 54% { rotate: -6deg; } 72% { rotate: 3deg; } 87% { rotate: -1deg; } 100% { opacity: 1; rotate: 0deg; } }
@keyframes gp-aw-glint { from { translate: -70% 0; } to { translate: 70% 0; } }
@media (min-width: 900px) { .gp-aw-medals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gp-aw-press { margin-top: clamp(44px, 6vw, 84px); padding-top: clamp(26px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.gp-aw-statement { max-width: 34ch; margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, .95rem + 1.7vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: pretty; }
.gp-aw-statement a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }

/* ---------- 02 Dans le monde: the departure board ---------- */
.gp-aw-world { padding-block: clamp(56px, 7vw, 110px); background: var(--bg); color: var(--ink); }
.gp-aw-world__grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.gp-aw-world__p { max-width: 46ch; margin: 1.1rem 0 0; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; }
/* A row is --aw-row of its own em wide: the number (2.1em at .62em) and the flaps (1.26em each, .14em apart), plus a
   hair. The flaps grow with the board up to 1.45rem; past that the board stops growing too (its width is a row at that
   size, plus its padding and border), so its frame keeps the same room on both sides and never holds an empty third. */
.gp-aw-board { --aw-row: calc(var(--cells) * 1.4 + 1.2); --aw-board-pad: clamp(12px, 2vw, 22px); container-type: inline-size; width: min(100%, calc(1.45rem * var(--aw-row) + 2 * var(--aw-board-pad) + 2px)); padding: var(--aw-board-pad); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: #0b0c0e; box-shadow: inset 0 0 0 6px #111317, 0 30px 60px rgba(0, 0, 0, .35); }
.gp-aw-board__rows { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.gp-aw-board__row { display: flex; align-items: center; font-size: min(1.45rem, calc(100cqi / var(--aw-row))); }
.gp-aw-board__no { flex: none; width: 2.1em; color: var(--accent-on-dark, #d4ff3a); font: 700 .62em/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
.gp-aw-board__name { display: flex; gap: .14em; }
.gp-aw-flap { position: relative; display: grid; place-items: center; width: 1.26em; height: 1.66em; border-radius: .16em; background: linear-gradient(180deg, #24272c 0 49.5%, #1b1d21 50.5%); color: #f2f1ea; font: 700 1em/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .6); }
.gp-aw-flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); }
@media (min-width: 900px) {
	.gp-aw-world__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
	.gp-aw-board { justify-self: center; } /* in the middle of its column, as the trophy in the hero */
}

/* ---------- Closing band ---------- */
.gp-aw-rest { padding-block: clamp(36px, 5vw, 64px); }
.gp-aw-end { --aw-o: 1; overflow: clip; padding-block: clamp(56px, 7vw, 110px) calc(var(--space-section, clamp(70px, 9vw, 130px)) + 4px); /* the section room before the footer or the Pro band, plus the raised edge under the buttons (main.css) */ border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.gp-aw-motion .gp-aw-end { --aw-o: 0; }
.gp-aw-end__grid { display: grid; gap: clamp(26px, 4vw, 64px); align-items: center; }
.gp-aw-end__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 24px; clip-path: inset(calc(10% * (1 - var(--aw-o))) calc(8% * (1 - var(--aw-o))) round 24px); }
.gp-aw-end__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; scale: calc(1.16 - .16 * var(--aw-o)); } /* the hiker's head stays in the frame at every width (4:3 on phones and tablets) */
.gp-aw-end .gp-aw-h2 { max-width: 7.2em; margin: .25rem 0 1.4rem; }
@media (min-width: 900px) {
	.gp-aw-end__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.gp-aw-end__media { aspect-ratio: 4 / 4.4; max-height: 78vh; }
}
