/* ==========================================================================
   Runny Outdoor — thème « Performance Club × Running Lab »
   Charte : ink #101214 · blanc · canvas #F5F7F7 · lime #C9FF29 (toujours texte noir dessus)
   Space Grotesk 700 (titres) · Inter (interface et texte)
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Repli métrique proche pour limiter le décalage au chargement des polices */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Grotesk Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }

:root {
  --ink: #101214;
  --ink-2: #1b1f22;
  --ink-3: #2a2f33;
  --white: #ffffff;
  --canvas: #f5f7f7;
  --lime: #c9ff29;
  --lime-soft: #f1ffd0;
  --steel: #5b6366;      /* texte secondaire (AA sur blanc) */
  --muted: #7a8286;      /* légendes grandes tailles uniquement */
  --line: #e2e7e7;
  --line-dark: #3a4045;
  --alert: #b3261e;
  --font-ui: "Inter", "Inter Fallback", Arial, Helvetica, sans-serif;
  --font-display: "Space Grotesk", "Grotesk Fallback", Arial, Helvetica, sans-serif;
  --gutter: clamp(16px, 4.5vw, 72px);
  --wrap: 1320px;
  --text: 720px;
  --r-s: 6px;
  --r-m: 10px;
  --header-h: 72px;
  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3vw, 3.75rem);
  --fs-display: clamp(3.4rem, 1.6rem + 7.4vw, 8.5rem);
  --shadow-focus: 0 0 0 3px var(--white), 0 0 0 6px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--fs-m)/1.65 var(--font-ui); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .band-dark :focus-visible { outline-color: var(--lime); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.num, output, .tnum { font-variant-numeric: tabular-nums; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100; top: 8px; left: 8px; padding: 12px 18px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: calc(var(--text) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8em 1.4em; border: 2px solid transparent; border-radius: var(--r-s); font: 700 var(--fs-s)/1.1 var(--font-ui); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b8f000; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn .ico { width: 18px; height: 18px; }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link-arrow:hover { text-decoration-color: currentColor; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; width: 148px; }
.brand img { width: 100%; height: auto; }
.nav-primary { margin-left: auto; }
.nav-primary > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-primary .nav-item { position: static; display: flex; align-items: center; }
.nav-primary .nav-link { display: block; padding: 10px 10px 10px 12px; font: 600 var(--fs-s)/1 var(--font-ui); text-decoration: none; border-radius: var(--r-s); }
.nav-primary .nav-link[aria-current="page"], .nav-primary .is-current > .nav-link { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.nav-primary .nav-item:has(.nav-toggle[aria-expanded="true"]) > .nav-link { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
.nav-toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -6px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--r-s); }
.nav-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Méga-menu : bande pleine largeur sous l'en-tête */
.nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 40px 60px -30px rgba(16,18,20,.35); }
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; }
.nav-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .nav-panel:not([hidden]) { animation: mega-in .18s ease-out; } }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
body.mega-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(16,18,20,.34); pointer-events: none; }
.site-header .mega-inner { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2.3fr) minmax(250px, 1fr); gap: 44px; height: auto; align-items: start; padding-block: 34px 40px; }
.mega-title { margin: 0 0 12px; font: 700 clamp(1.6rem, 1rem + 1.2vw, 2.25rem)/.95 var(--font-display); overflow-wrap: anywhere; letter-spacing: -0.045em; text-transform: uppercase; }
.mega-title::after { content: "."; color: var(--lime); }
.mega-desc { max-width: 30ch; margin: 0 0 18px; color: var(--steel); font-size: var(--fs-s); line-height: 1.55; }
.mega-intro .link-arrow { font-size: var(--fs-s); }
.mega-links { columns: 2; column-gap: 28px; }
.mega-links.is-wide { columns: 3; column-gap: 24px; }
.mega-list, .mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-links.has-groups .mega-list, .mega-group { break-inside: avoid; }
.mega-list { margin-bottom: 18px; }
.mega-list li { break-inside: avoid; }
.mega-link { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 600; line-height: 1.25; text-decoration: none; }
.mega-link:hover, .mega-link:focus-visible { background: var(--canvas); }
.mega-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--canvas); transition: background .15s; }
.mega-ico svg { width: 18px; height: 18px; }
.mega-link:hover .mega-ico { background: var(--lime); }
.mega-dot { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); transition: background .15s, transform .15s; }
.mega-link:hover .mega-dot { background: var(--lime); transform: scale(1.4); box-shadow: 0 0 0 1px var(--ink); }
.mega-tag { margin-left: auto; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--steel); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.mega-group { margin-bottom: 20px; }
.mega-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; padding: 8px 10px 9px; border-bottom: 2px solid var(--ink); font: 700 1.0625rem/1.15 var(--font-display); letter-spacing: -0.01em; text-decoration: none; }
.mega-group-title:hover { border-bottom-color: var(--lime); }
.mega-count { color: var(--steel); font: 600 .75rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.mega-group ul a { display: block; padding: 6px 10px; border-radius: var(--r-s); font-size: var(--fs-s); line-height: 1.3; text-decoration: none; }
.mega-group ul a:hover, .mega-group ul a:focus-visible { background: var(--canvas); }
.mega-group .mega-more a { color: var(--steel); font-weight: 600; }
.mega-feature { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 280px; padding: 22px; overflow: hidden; border-radius: var(--r-m); text-decoration: none; isolation: isolate; }
.mf-label { font-size: var(--fs-xs); font-weight: 600; }
.mf-name { font: 700 1.5rem/1.05 var(--font-display); letter-spacing: -0.03em; }
.mf-sub { font-size: var(--fs-s); line-height: 1.45; }
.mf-cta { align-self: flex-start; margin-top: auto; padding: 10px 14px; border-radius: var(--r-s); background: var(--lime); color: var(--ink); font-size: var(--fs-s); font-weight: 700; transition: transform .15s; }
.mega-feature:hover .mf-cta { transform: translateX(3px); }
.mega-feature.is-tool { background: var(--ink); color: var(--white); background-image: repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.05) 23px 24px); }
.mega-feature.is-tool .mf-label { color: var(--lime); }
.mf-figure { margin: 8px 0 4px; color: var(--lime); font: 700 clamp(3.4rem, 2.4rem + 2.4vw, 4.6rem)/.9 var(--font-display); letter-spacing: -0.05em; }
.mf-figure small { margin-left: 6px; color: var(--white); font-size: 1.1rem; letter-spacing: 0; }
.mega-feature.is-tool .mf-sub { color: #c9d0d1; }
.mega-feature.is-product { padding: 14px 18px 20px; background: var(--canvas); }
.mega-feature.is-product .pshot { margin: -6px -10px 0; background: transparent; isolation: auto; }
.mega-feature.is-product .pshot img { mix-blend-mode: multiply; }
.mega-feature.is-product .mf-label { color: var(--steel); }
.mega-feature.is-product .mf-sub { color: var(--steel); }
.mega-feature.is-photo { justify-content: flex-end; color: var(--white); }
.mega-feature.is-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mega-feature.is-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,13,.88) 0%, rgba(10,12,13,.35) 55%, rgba(10,12,13,.05) 100%); }
.mega-feature.is-photo:hover img { transform: scale(1.04); }
.mega-feature .mf-body { display: flex; flex-direction: column; gap: 6px; }
.mega-feature.is-photo .mf-label { color: var(--lime); }
.mega-feature.is-photo .mf-cta { margin-top: 10px; }
@media (max-width: 1240px) { .site-header .mega-inner { grid-template-columns: minmax(170px, .8fr) minmax(0, 2.4fr); } .mega-feature { display: none; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: var(--r-s); cursor: pointer; }
.icon-btn:hover { background: var(--canvas); }
.icon-btn svg { width: 22px; height: 22px; }
.header-cta { min-height: 40px; padding: .6em 1em; }
.menu-btn { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--canvas); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; padding-block: 16px; }
.search-form input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid #c7cdcd; border-radius: var(--r-s); font: inherit; background: var(--white); }

@media (max-width: 1080px) {
  .nav-primary, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .brand { width: 128px; }
}
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; overflow-y: auto; background: var(--ink); color: var(--white); padding: 24px var(--gutter) 48px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu .m-top { display: block; padding: 18px 0 10px; font: 700 1.6rem/1.1 var(--font-display); text-decoration: none; }
.mobile-menu .m-sub { padding-bottom: 14px; columns: 2; column-gap: 16px; }
.mobile-menu .m-sub a { display: block; padding: 7px 0; color: #cfd5d5; text-decoration: none; font-size: var(--fs-s); break-inside: avoid; }
.mobile-menu .btn { margin-top: 24px; width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: var(--fs-xs); color: var(--steel); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a8afb1; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .breadcrumb, .band-dark .breadcrumb { color: #aeb5b7; }
.on-dark .breadcrumb [aria-current] { color: var(--white); }

/* ---------- Étiquettes ---------- */
.kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 700 .75rem/1.3 var(--font-ui); letter-spacing: .01em; }
.kicker.is-neutral { background: var(--canvas); border: 1px solid var(--line); }
.kicker.is-dark { background: var(--ink); color: var(--white); }
.label-note { display: inline-block; font-size: var(--fs-xs); color: var(--steel); }

/* ==========================================================================
   Accueil
   ========================================================================== */
.home-hero { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.home-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.home-hero .hero-media img, .home-hero .hero-media svg { width: 100%; height: 100%; object-fit: cover; object-position: 66% 62%; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,13,.88) 0%, rgba(10,12,13,.62) 38%, rgba(10,12,13,.12) 64%, rgba(10,12,13,0) 80%), linear-gradient(0deg, rgba(10,12,13,.78) 0%, rgba(10,12,13,0) 34%), linear-gradient(180deg, rgba(10,12,13,.35) 0%, rgba(10,12,13,0) 22%); }
.home-hero .hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-height: min(calc(100vh - var(--header-h)), 640px); padding-top: clamp(40px, 4.6vw, 72px); padding-bottom: clamp(28px, 3vw, 40px); }
.hero-title { font-size: var(--fs-display); line-height: .86; letter-spacing: -0.055em; text-transform: uppercase; margin: 0 0 .32em; }
.home-hero .hero-title { font-size: clamp(3.1rem, 1.1rem + 5.4vw, 6.4rem); letter-spacing: -0.05em; margin-bottom: .34em; }
.hero-title .line { display: block; }
.hero-title .stop { color: var(--lime); }
.home-hero .hero-copy { max-width: 640px; }
.hero-lede { text-wrap: pretty; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--canvas); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 900px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.24); }
.hero-stats a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.hero-stats strong { font: 700 clamp(1.9rem, 1.2rem + 1.5vw, 2.7rem)/1 var(--font-display); letter-spacing: -0.035em; transition: color .15s; }
.hero-stats span { max-width: 15ch; color: #d6dcdd; font-size: var(--fs-xs); line-height: 1.35; }
.hero-stats a:hover strong { color: var(--lime); }
.tool-lab { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.tool-lab .tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-lab .tool-grid > .tool-card { min-height: 160px; }
.hero-lede { max-width: 30em; font-size: var(--fs-l); line-height: 1.5; color: #e6eaea; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn-ghost { color: var(--white); }

/* Le « cadran » : calculateur intégré façon écran de montre */
.dial { background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: 22px; color: var(--white); box-shadow: 0 28px 50px -24px rgba(16,18,20,.55); }
.dial .rt { background: transparent; border: 0; padding: 0; color: var(--white); }
.dial-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: #b9c0c1; }
.dial-foot a { color: var(--white); font-weight: 600; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.5rem); line-height: .92; letter-spacing: -0.05em; text-transform: uppercase; margin: 0; }
.section-head p { max-width: 36em; margin: 0; color: var(--steel); }
.section-head .head-text { display: grid; gap: 16px; }
.band-dark { background: var(--ink); color: var(--white); }
.band-dark .section-head p { color: #b9c0c1; }
.band-canvas { background: var(--canvas); }

/* Grille d'outils */
.tool-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.tool-grid > .tool-card { flex: 1 1 300px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 24px; background: var(--white); text-decoration: none; transition: background-color .15s; }
.tool-card:hover { background: var(--canvas); }
.tool-card .ico { width: 30px; height: 30px; color: var(--ink); }
.tool-card h3 { font-size: 1.2rem; margin: auto 0 0; }
.tool-card p { margin: 0; font-size: var(--fs-s); line-height: 1.45; color: var(--steel); }
.tool-card::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.tool-card:hover::after, .tool-card:focus-visible::after { transform: scaleX(1); }
@media (max-width: 1000px) { .tool-grid > .tool-card { flex-basis: 280px; } }
@media (max-width: 560px) { .tool-grid > .tool-card { flex-basis: 100%; } .tool-card { min-height: 0; } .tool-card h3 { margin-top: 4px; } }

/* Tuiles de plans (distances réelles) */
.plan-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-tile { display: flex; flex-direction: column; gap: 18px; min-height: 280px; padding: 28px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--white); text-decoration: none; transition: border-color .15s, background-color .15s; }
.plan-tile:hover { border-color: var(--lime); background: #20252a; }
.plan-tile .dist { font: 700 clamp(3.2rem, 2rem + 4vw, 5.6rem)/.85 var(--font-display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.plan-tile .dist small { font-size: .32em; letter-spacing: -0.01em; margin-left: .15em; }
.plan-tile .what { margin-top: auto; color: #c8cfd0; font-size: var(--fs-s); }
.plan-tile .go { font-weight: 700; color: var(--lime); }
.train-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line-dark); }
.train-links a { display: block; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.train-links strong { display: block; font: 700 1.1rem/1.2 var(--font-display); }
.train-links span { font-size: var(--fs-xs); color: #aeb5b7; }
.train-links a:hover strong { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
@media (max-width: 900px) { .plan-tiles { grid-template-columns: 1fr; } .plan-tile { min-height: 0; } .train-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cartes éditoriales */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.card-media { aspect-ratio: 16 / 10; background: var(--canvas); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-type { display: flex; align-items: flex-end; padding: 18px; background: var(--ink); color: var(--white); }
.card-media.is-type span { font: 700 clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem)/.95 var(--font-display); letter-spacing: -0.04em; text-transform: uppercase; }
.card-media.is-type.is-lime { background: var(--lime); color: var(--ink); }
.card-media.is-type.is-canvas { background: var(--canvas); color: var(--ink); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card-body h3 { font-size: 1.22rem; margin: 0; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.card-body p { margin: 0; font-size: var(--fs-s); color: var(--steel); line-height: 1.5; }
.card-meta { margin-top: auto; font-size: var(--fs-xs); color: var(--steel); }
.card:focus-within { box-shadow: var(--shadow-focus); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Bande trail plein cadre */
.trail-band { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.trail-band .band-media { position: absolute; inset: 0; z-index: -2; }
.trail-band .band-media img, .trail-band .band-media svg { width: 100%; height: 100%; object-fit: cover; }
.trail-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,13,.88), rgba(10,12,13,.35) 70%); }
.trail-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-block: clamp(72px, 10vw, 140px); }
.trail-band h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); line-height: .88; letter-spacing: -0.055em; text-transform: uppercase; }
.trail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.trail-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.25); text-decoration: none; font-weight: 600; }
.trail-list a span { color: #c9d0d1; font-weight: 400; font-size: var(--fs-s); }
.trail-list a:hover { color: var(--lime); }
@media (max-width: 860px) { .trail-band .wrap { grid-template-columns: 1fr; } }

.health-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; text-decoration: none; }
.link-list strong { font-weight: 650; }
.link-list span { grid-column: 1; color: var(--steel); font-size: var(--fs-s); }
.link-list a:hover strong { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
@media (max-width: 860px) { .health-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================================
   En-têtes de pages
   ========================================================================== */
.page-head { padding-top: 28px; padding-bottom: clamp(28px, 4vw, 48px); }
.page-head .breadcrumb { margin-bottom: 22px; }
.page-head h1 { max-width: 20ch; margin-bottom: .35em; }
.page-head .lede { max-width: 44em; font-size: var(--fs-l); line-height: 1.55; color: #33393c; }
.page-head .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: var(--fs-xs); color: var(--steel); }
.page-head .meta-row strong { color: var(--ink); font-weight: 600; }
.page-head .kicker { margin-bottom: 16px; }

.hub-head { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); padding-block: 28px clamp(40px, 6vw, 80px); }
.hub-head.has-media { padding-bottom: clamp(56px, 9vw, 120px); }
.hub-media { position: absolute; inset: 0; z-index: -2; }
.hub-media img { width: 100%; height: 100%; object-fit: cover; }
.hub-head.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,13,.9), rgba(10,12,13,.55) 55%, rgba(10,12,13,.25)); }
.hub-head .breadcrumb { margin-bottom: clamp(28px, 5vw, 64px); }
.hub-head h1 { font-size: clamp(3rem, 1.4rem + 6vw, 7.5rem); line-height: .86; letter-spacing: -0.06em; text-transform: uppercase; max-width: none; margin-bottom: .3em; }
.hub-head .lede { color: #cfd5d6; max-width: 40em; font-size: var(--fs-l); }
.hub-head .hub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hub-head .hub-nav a { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; text-decoration: none; font-size: var(--fs-s); }
.hub-head .hub-nav a:hover { border-color: var(--lime); color: var(--lime); }

/* ==========================================================================
   Gabarit outil
   ========================================================================== */
.tool-head { padding-top: 28px; padding-bottom: 24px; }
.tool-head h1 { margin-bottom: .3em; }
.tool-head .lede { max-width: 52em; color: #33393c; }
.tool-stage { padding-bottom: clamp(40px, 6vw, 72px); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.tool-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); }
.side-box h2 { font-size: 1.05rem; margin-bottom: 10px; font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: block; padding: 7px 0; text-decoration: none; font-size: var(--fs-s); border-bottom: 1px solid var(--line); }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.side-box.is-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.side-box.is-dark p { color: #c8cfd0; font-size: var(--fs-s); }
@media (max-width: 1080px) { .tool-layout { grid-template-columns: 1fr; } .tool-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tool-side { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contenu éditorial
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, var(--text)) 1fr; gap: 48px; }
.article-layout .toc { grid-column: 1; }
.article-layout .entry-col { grid-column: 2; min-width: 0; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--text) + 2 * var(--gutter)); gap: 0; } .article-layout .toc, .article-layout .entry-col { grid-column: 1; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: var(--fs-s); }
.toc h2 { font: 700 .8rem/1.2 var(--font-ui); letter-spacing: .02em; color: var(--steel); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--steel); line-height: 1.35; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); border-left-color: var(--lime); }
@media (max-width: 1100px) {
  .toc { position: static; margin-bottom: 32px; padding: 18px 20px; background: var(--canvas); border-radius: var(--r-m); }
  .toc ol { border: 0; counter-reset: t; }
  .toc li a { padding-left: 0; border: 0; }
}

.entry { font-size: 1.0625rem; }
.entry > * { margin-top: 0; }
.entry h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.entry h3 { margin-top: 1.6em; }
.entry h2 + h3 { margin-top: .8em; }
.entry p, .entry li { color: #23282b; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry ul li::marker { color: var(--ink); }
.entry a { text-decoration-color: var(--lime); text-decoration-thickness: 3px; font-weight: 550; }
.entry a:hover { text-decoration-color: var(--ink); }
.entry strong { font-weight: 650; }
.entry figure { margin: 2em 0; }
.entry figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--steel); }
.entry img { border-radius: var(--r-m); }
.entry .wp-block-table, .entry .table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.entry th, .entry td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry thead th { background: var(--canvas); font-weight: 700; white-space: nowrap; }
.entry tbody tr:last-child > * { border-bottom: 0; }
.entry blockquote, .callout { margin: 1.8em 0; padding: 18px 22px; border-left: 4px solid var(--ink); background: var(--canvas); border-radius: 0 var(--r-m) var(--r-m) 0; }
.entry blockquote p:last-child { margin-bottom: 0; }
.callout.is-key { border-left-color: var(--lime); background: var(--lime-soft); }
.callout.is-warn { border-left-color: var(--ink); background: #fff4e0; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry .formula { font-family: var(--font-display); font-weight: 500; font-size: 1.15em; padding: 14px 18px; background: var(--ink); color: var(--white); border-radius: var(--r-s); }
.entry code { font-size: .92em; padding: .1em .35em; background: var(--canvas); border-radius: 4px; }

.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-xs); color: var(--steel); }
.byline a { color: var(--ink); font-weight: 600; }
.review-flag { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-s); background: #fff4e0; font-size: var(--fs-s); }

/* Sources, FAQ, liés */
.after-entry { display: grid; gap: 48px; margin-top: 56px; }
.faq h2, .sources h2, .related h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.faq-item { border-top: 1px solid var(--line); padding-block: 20px; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font: 650 var(--fs-m)/1.4 var(--font-ui); letter-spacing: 0; margin-bottom: 8px; }
.faq-item p { margin: 0; color: #33393c; }
.sources ol { margin: 0; padding-left: 1.2em; font-size: var(--fs-s); color: var(--steel); }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--ink); word-break: break-word; }
.sources .src-pub { color: var(--steel); }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.related-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; }
.related-list a:hover { border-color: var(--ink); }
.related-list small { color: var(--steel); font-size: var(--fs-xs); }
.related-list strong { font-weight: 650; line-height: 1.3; }
@media (max-width: 600px) { .related-list { grid-template-columns: 1fr; } }

.next-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px; border-radius: var(--r-m); background: var(--ink); color: var(--white); }
.next-step h2 { margin: 0; font-size: 1.5rem; }
.next-step p { margin: 6px 0 0; color: #c8cfd0; }

/* ==========================================================================
   Plans
   ========================================================================== */
.plan-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.plan-facts div { padding: 16px 18px; background: var(--white); }
.plan-facts dt { font-size: var(--fs-xs); color: var(--steel); }
.plan-facts dd { margin: 4px 0 0; font: 700 1.35rem/1.15 var(--font-display); }
@media (max-width: 700px) { .plan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.plan-levels button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 600 var(--fs-s)/1 var(--font-ui); cursor: pointer; }
.plan-levels button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.level-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.level-intro h3 { font-size: 1.05rem; font-family: var(--font-ui); letter-spacing: 0; }
.level-intro ul { margin: 0; padding-left: 1.2em; font-size: var(--fs-s); }
@media (max-width: 800px) { .level-intro { grid-template-columns: 1fr; } }
.weeks { display: grid; gap: 12px; }
.week { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--canvas); }
.week-head h3 { margin: 0; font-size: 1.1rem; }
.week-head .phase { font-size: var(--fs-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.week-head .phase.is-recup { background: var(--lime-soft); border-color: #d6f28a; }
.week-head .phase.is-race { background: var(--lime); border-color: var(--lime); }
.week-head .vol { font-size: var(--fs-xs); color: var(--steel); }
.sessions { list-style: none; margin: 0; padding: 0; }
.session { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--line); }
.session .z { font: 700 .75rem/1.2 var(--font-ui); }
.session .z b { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--ink); color: var(--white); }
.session .z b.z-EF, .session .z b.z-EA, .session .z b.z-REPOS { background: var(--canvas); color: var(--ink); border: 1px solid var(--line); }
.session .z b.z-COURSE { background: var(--lime); color: var(--ink); }
.session .t { font-weight: 650; }
.session .d { grid-column: 2; font-size: var(--fs-s); color: #33393c; }
.session .p { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-size: var(--fs-s); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.session .dur { font-size: var(--fs-xs); color: var(--steel); font-weight: 500; display: block; }
@media (max-width: 640px) { .session { grid-template-columns: minmax(0, 1fr) auto; } .session .z { grid-column: 1 / -1; } .session .d { grid-column: 1 / -1; } .session .p { grid-column: 2; grid-row: 2; } }
.rt-plan { margin-bottom: 28px; }
.zone-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 18px 0 28px; padding: 0; list-style: none; font-size: var(--fs-s); }
.zone-legend li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.zone-legend b { flex: none; font-size: .72rem; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--white); }
.zone-legend output { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   Comparatifs
   ========================================================================== */
.compare-note { padding: 16px 20px; border-radius: var(--r-m); background: var(--canvas); font-size: var(--fs-s); }
.compare-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.compare-filters button { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 600 var(--fs-xs)/1 var(--font-ui); cursor: pointer; }
.compare-filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { position: sticky; top: 0; background: var(--canvas); white-space: nowrap; }
.compare-table thead button { all: unset; cursor: pointer; font-weight: 700; }
.compare-table thead button:focus-visible { outline: 3px solid var(--ink); }
.compare-table tbody th { font-weight: 700; min-width: 180px; }
.compare-table tbody th small { display: block; font-weight: 400; color: var(--steel); }
.compare-table tr[hidden] { display: none; }
.product-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.product-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); }
.product-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.product-card .use { font-size: var(--fs-xs); font-weight: 700; color: var(--steel); }
.product-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0; font-size: var(--fs-s); }
.product-card dt { color: var(--steel); }
.product-card dd { margin: 0; font-weight: 600; }
.product-card p { font-size: var(--fs-s); margin-bottom: 8px; }
.product-card .src { font-size: var(--fs-xs); color: var(--steel); }
@media (max-width: 760px) { .product-cards { grid-template-columns: 1fr; } }
/* Synthèse des tests publiés (comparatifs, articles, fiches modèles) */
.tests-block { margin: 14px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.tests-head { font-weight: 700; font-size: var(--fs-s); margin-bottom: 8px; }
.tests-head span { font-weight: 500; color: var(--steel); }
.pm-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: var(--fs-s); }
.pm-list li { position: relative; padding-left: 22px; line-height: 1.45; }
.pm-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pm-list.is-plus li::before { content: "+"; color: #2f6b00; }
.pm-list.is-minus li::before { content: "–"; color: var(--alert); }
.tests-details { font-size: var(--fs-s); }
.tests-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.tests-details summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }
.test-list { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 12px; }
.test-list li::marker { color: var(--steel); font-size: var(--fs-xs); }
.test-src { margin: 0 0 2px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.test-src a { color: var(--ink); }
.test-kind { font-weight: 500; font-size: var(--fs-xs); color: var(--steel); }
.test-verdict { margin: 0; color: var(--ink-2); }
.test-pm p { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
.pm-label { display: inline-block; font-weight: 700; margin-right: 4px; }
.pm-label.is-plus { color: #2f6b00; }
.pm-label.is-minus { color: var(--alert); }
.test-score { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--steel); }
.fiche-link a { font-weight: 700; color: var(--ink); }
.model-top { display: grid; gap: 28px; padding-bottom: 48px; }
.model-new { margin: 0; }
.model-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sheet-col { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); }
.sheet-col.is-lab { background: var(--canvas); }
.sheet-col.is-grip { grid-column: 1 / -1; }
.sheet-col:only-child { grid-column: 1 / -1; }
.sheet-col:only-child dl { grid-template-columns: minmax(160px, auto) 1fr; max-width: 900px; }
.sheet-col.is-grip dd { font-weight: 500; }
.sheet-title { font-size: var(--fs-l); margin: 0 0 12px; }
.sheet-col dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: var(--fs-s); }
.sheet-col dt { color: var(--steel); }
.sheet-col dd { margin: 0; font-weight: 600; }
.sheet-col .src { font-size: var(--fs-xs); color: var(--steel); margin: 0; }
.verdict { padding: 26px; border-radius: var(--r-m); background: var(--ink); color: var(--white); }
.verdict h2 { color: var(--white); margin: 0 0 16px; }
.verdict h3 { color: var(--white); font-size: var(--fs-m); margin: 0 0 10px; }
.verdict-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.verdict .pm-list { font-size: var(--fs-m); }
.verdict .pm-list.is-plus li::before { color: var(--lime); }
.verdict .pm-list.is-minus li::before { color: #ff8a80; }
.verdict .divergences { margin: 0 0 12px; padding-left: 1.1em; font-size: var(--fs-s); color: #d9dee0; }
.verdict > h3 { margin-top: 18px; }
.for-who { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: var(--fs-s); }
.for-who dt { font-weight: 700; color: var(--lime); }
.for-who dd { margin: 0; color: #e8ecee; }
.tests-all h2 { margin-bottom: 14px; }
.tests-all .test-list { max-width: 880px; gap: 16px; }
@media (max-width: 760px) { .model-sheet, .verdict-cols { grid-template-columns: 1fr; } .verdict { padding: 20px; } }


/* Fiche test (gabarit) */
.test-protocol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin: 24px 0; }
.test-protocol div { padding: 14px 16px; background: var(--white); }
.test-protocol dt { font-size: var(--fs-xs); color: var(--steel); }
.test-protocol dd { margin: 4px 0 0; font-weight: 650; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); }
@media (max-width: 700px) { .test-protocol { grid-template-columns: 1fr 1fr; } .pros-cons { grid-template-columns: 1fr; } }
.template-preview-note { padding: 14px 18px; margin-bottom: 20px; border: 2px dashed var(--ink); border-radius: var(--r-m); font-size: var(--fs-s); font-weight: 600; }

/* ==========================================================================
   Repères
   ========================================================================== */
.key-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 8px 0 28px; padding: 24px 28px; border-radius: var(--r-m); background: var(--ink); color: var(--white); }
.key-figure strong { font: 700 clamp(2.6rem, 1.8rem + 3vw, 4.4rem)/.9 var(--font-display); letter-spacing: -0.05em; color: var(--lime); font-variant-numeric: tabular-nums; }
.key-figure span { color: #cfd5d6; }

/* ==========================================================================
   Listes (hubs, journal, recherche)
   ========================================================================== */
.hub-section + .hub-section { margin-top: clamp(40px, 6vw, 72px); }
.hub-section > h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.hub-intro { max-width: var(--text); }
.hub-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.hub-intro-wrap { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; text-decoration: none; }
.post-list time, .post-list .pl-meta { grid-row: 1 / span 2; font-size: var(--fs-xs); color: var(--steel); padding-top: 3px; }
.post-list strong { font-weight: 650; line-height: 1.35; }
.post-list span.ex { grid-column: 2; font-size: var(--fs-s); color: var(--steel); }
.post-list a:hover strong { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
@media (max-width: 600px) { .post-list a { grid-template-columns: 1fr; } .post-list time { grid-row: auto; } .post-list span.ex { grid-column: 1; } }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Formulaires génériques */
.contact-form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--fs-s); }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #b9c1c1; border-radius: var(--r-s); font: inherit; background: var(--white); color: var(--ink); }
.form-field textarea { min-height: 160px; }
.form-field [aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; }
.form-check label { font-weight: 400; }
.field-error, .form-error { color: var(--alert); font-size: var(--fs-s); font-weight: 600; margin: 6px 0 0; }
.form-check .field-error { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; }
.contact-done { padding: 20px; border-radius: var(--r-m); background: var(--lime-soft); }

/* 404 / 410 */
.error-page { padding-block: clamp(56px, 10vw, 120px); }
.error-page .code { font: 700 clamp(5rem, 3rem + 10vw, 11rem)/.8 var(--font-display); letter-spacing: -0.07em; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--ink); color: #d4d9da; font-size: var(--fs-s); }
.site-footer .wrap { padding-block: clamp(48px, 7vw, 88px) 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 190px; }
.footer-brand p { margin-top: 18px; max-width: 26em; color: #aeb5b7; }
.site-footer h2 { font: 700 .8rem/1.2 var(--font-ui); letter-spacing: .02em; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.site-footer li a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: #9aa2a4; }
.footer-bottom a { color: inherit; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .toc, .tool-side, .nav-panel, .mobile-menu, .plan-levels, .plan-print, .skip-link, .search-panel { display: none !important; }
  .tpl-page-plan .rt-form, .tpl-page-plan .after-entry, .tpl-page-plan .entry, .tpl-page-plan .breadcrumb { display: none !important; }
  body { font-size: 11pt; }
  .plan-level[hidden] { display: none !important; }
  .week { break-inside: avoid; border-color: #999; }
  .rt-result { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  .zone-legend output, .rt-big output { color: #000 !important; }
  a { text-decoration: none; }
}

/* Outils sur mobile : chapeau replié pour garder le calculateur visible sans défilement */
.lede-more { display: none; margin: -4px 0 0; padding: 4px 0; border: 0; background: none; font: 600 var(--fs-s)/1.4 var(--font-ui); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .tool-head { padding-bottom: 16px; }
  .tool-head h1 { font-size: clamp(1.9rem, 1.4rem + 3vw, 2.4rem); }
  .js .tool-head .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
  .js .tool-head .lede.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .tool-head .lede-more { display: inline-block; }
  .tool-stage .rt { padding: 16px; }
  .home-hero .hero-inner { min-height: 0; gap: 36px; padding-top: 36px; }
  .home-hero .hero-title, .hero-title { font-size: clamp(3.1rem, 1rem + 13vw, 5rem); }
  .home-hero::before { background: linear-gradient(0deg, rgba(10,12,13,.92) 0%, rgba(10,12,13,.55) 55%, rgba(10,12,13,.3) 100%); }
  .home-hero .hero-media img { object-position: 64% 50%; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .section-head { align-items: flex-start; }
}
@media (max-width: 1080px) { .tool-lab { grid-template-columns: 1fr; } .tool-lab .dial { max-width: 640px; } }
@media (max-width: 560px) { .tool-lab .tool-grid { grid-template-columns: 1fr; } }

/* Intégration des outils */
.embed-box { margin-top: 16px; padding: 14px 18px; border: 1px dashed #b9c1c1; border-radius: var(--r-m); font-size: var(--fs-s); }
.embed-box summary { cursor: pointer; font-weight: 700; }
.embed-box textarea { width: 100%; margin: 8px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); font: .8rem/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--canvas); }
.link-pending { text-decoration: none; }

/* Hubs : sous-rubriques et cartes sans visuel */
.section-head .hub-sub-title, .hub-sub-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); text-transform: none; letter-spacing: -0.03em; margin: 0; }
.card:not(:has(.card-media)) { border-top: 3px solid var(--ink); }
.card:not(:has(.card-media)):hover { border-top-color: var(--lime); }
.card:not(:has(.card-media)) .card-body { padding-top: 24px; }
.card:not(:has(.card-media)) .card-body h3 { font-size: 1.3rem; }
.plan-tiles.is-light .plan-tile { background: var(--canvas); border-color: var(--line); color: var(--ink); min-height: 220px; }
.plan-tiles.is-light .plan-tile:hover { border-color: var(--ink); background: var(--white); }
.plan-tiles.is-light .what { color: var(--steel); }
.plan-tiles.is-light .go { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Accueil : bande des dernières synthèses de tests */
.tests-strip { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.tests-strip h3 { font-size: var(--fs-l); margin: 0; }
.tests-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tests-strip li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-s); }
.tests-strip li a:hover { border-color: var(--ink); }
.tests-strip li a:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.tests-strip li span { font-weight: 500; font-size: var(--fs-xs); color: var(--steel); white-space: nowrap; }
@media (max-width: 1000px) { .tests-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tests-strip ul { grid-template-columns: 1fr; } }

/* ---------- Visuels produits : la « paillasse » du labo ----------
   Packshot des marques ramené sur fond blanc, fondu dans le gris canvas (multiply),
   posé sur une réglette graduée. */
.pshot { position: relative; isolation: isolate; margin: 0; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; border-radius: var(--r-m); background: var(--canvas); }
.pshot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pshot::after { content: ""; position: absolute; left: 7%; right: 7%; bottom: 6.5%; height: 7px; border-top: 1px solid rgba(16, 18, 20, .2); pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(16, 18, 20, .22) 0 1px, transparent 1px 12px) top left / 100% 4px no-repeat,
              repeating-linear-gradient(90deg, rgba(16, 18, 20, .3) 0 1px, transparent 1px 60px) top left / 100% 7px no-repeat; }
.pshot-tags { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pshot-tags span { padding: 3px 9px; border-radius: 999px; font: 600 .75rem/1.3 var(--font-ui); }
.pshot-rel { background: rgba(255, 255, 255, .78); color: var(--ink-2); }
.pshot-new { background: var(--lime); color: var(--ink); font-weight: 700; }
.pshot.is-thumb { flex: none; width: 84px; border-radius: var(--r-s); }
.pshot.is-thumb::after { display: none; }

/* Tableau comparatif : vignette + nom */
.compare-table { min-width: 860px; }
.compare-table tbody th { min-width: 240px; }
.ct-model { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ct-model:hover span { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.compare-table td small { display: block; margin-top: 2px; font-size: .75rem; line-height: 1.35; color: var(--steel); }

/* Fiches produits du comparatif */
.product-card.has-shot { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card.has-shot .pc-media { aspect-ratio: 16 / 9; border-radius: 0; border-bottom: 1px solid var(--line); }
.product-card.has-shot .pc-body { padding: 20px 22px 22px; }
.product-card:target { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Fiche modèle : en-tête avec visuel et étiquette de repères */
.page-head.has-shot .model-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-head.has-shot h1 { max-width: 16ch; }
.model-head-media { display: grid; gap: 0; }
.pshot.is-hero { aspect-ratio: 4 / 3; border-radius: var(--r-m) var(--r-m) 0 0; }
.spec-tag { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0; border: 1px solid var(--ink); border-radius: 0 0 var(--r-m) var(--r-m); background: var(--white); }
.spec-tag div { padding: 10px 14px; border-left: 1px solid var(--line); }
.spec-tag div:first-child { border-left: 0; }
.spec-tag dt { font-size: .75rem; color: var(--steel); }
.spec-tag dd { margin: 0; font: 700 1.05rem/1.25 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .page-head.has-shot .model-head { grid-template-columns: 1fr; } .page-head.has-shot h1 { max-width: 20ch; } }

/* Cartes éditoriales illustrées par le produit */
.card-media.is-product { background: var(--canvas); }
.card-media.is-product .pshot { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.card-media.is-product .pshot::after { bottom: 8%; }

/* Accueil : dernières synthèses avec visuel */
.tests-strip li.has-shot a { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 0 0 14px; overflow: hidden; }
.tests-strip li.has-shot .pshot { border-radius: 0; margin-bottom: 8px; }
.tests-strip li.has-shot strong, .tests-strip li.has-shot span { padding-inline: 16px; }
.tests-strip li.has-shot strong { font-weight: 700; }

.photo-credits { margin-block: 8px 28px; font-size: .75rem; line-height: 1.5; color: var(--steel); }

/* Modèles écartés d'un comparatif */
.entry .also-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 28px; }
.also-item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--white); }
.also-item .pshot { border-radius: 0; border-bottom: 1px solid var(--line); }
.also-body { padding: 16px 18px 18px; }
.entry .also-body h3 { margin: 0 0 2px; font-size: 1.15rem; }
.entry .also-meta { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--steel); font-variant-numeric: tabular-nums; }
.entry .also-reason { margin: 0 0 8px; font-size: var(--fs-s); line-height: 1.5; }
.also-body .tests-details { font-size: var(--fs-s); }
@media (max-width: 600px) { .entry .also-grid { grid-template-columns: 1fr; } }

/* Dernières sorties : réglette horizontale de modèles récents */
.releases { display: grid; gap: 18px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.hub-body > .releases:first-child { margin-top: 8px; padding-top: 0; border-top: 0; }
.releases-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.releases-head h2 { margin: 0; font-size: var(--fs-h3); }
.releases-head p { margin: 0; max-width: 46ch; font-size: var(--fs-s); color: var(--steel); }
.releases-list { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.releases-list li { scroll-snap-align: start; min-width: 0; }
.releases-list a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; color: var(--ink); text-decoration: none; background: var(--white); }
.releases-list a:hover { border-color: var(--ink); }
.releases-list a:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.releases-list .pshot { border-radius: 0; margin-bottom: 10px; }
.releases-list .rel-name { padding-inline: 14px; font: 700 1rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.releases-list .rel-meta { padding-inline: 14px; font-size: var(--fs-xs); color: var(--steel); }
@media (min-width: 1100px) { .releases-list { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }
.pshot.is-thumb.is-empty { display: block; background: var(--canvas); }
.releases { margin-bottom: 56px; }
.releases-list .pshot-rel { display: none; }
@media (max-width: 600px) {
  .compare-table tbody th { min-width: 230px; }
  .pshot.is-thumb { width: 56px; }
  .ct-model { gap: 10px; }
}
.entry .also-item .pshot, .entry .pshot { margin: 0; }
.entry .also-item .pshot img { margin: 0; border-radius: 0; }
@media (max-width: 600px) {
  .spec-tag { grid-template-columns: 1fr 1fr; }
  .spec-tag div:nth-child(odd) { border-left: 0; }
  .spec-tag div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Fiche modèle : crédit des tests en bas de page */
.synth-credit { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--steel); font-size: var(--fs-s); line-height: 1.6; }
.synth-credit a { color: var(--ink); }
