/* Données France : feuille de style (charte sobre, inspirée des pages produit Apple) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --accent: #0071e3;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fr: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --ctx: #c7c7cc;
  --eu: #52514e;
  --good: #0f7a50;
  --good-bg: #e3f5ec;
  --bad: #c0352e;
  --bad-bg: #fde8e6;
  --red: #e34948;
  --grad: linear-gradient(90deg, #0071e3 0%, #7a5af8 50%, #e34948 100%);
  --shadow: 0 4px 30px rgba(0, 0, 0, .08);
  --r: 18px;
  --r-lg: 28px;
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 48px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-alt: #101012; --tile: #1c1c1e; --ink: #f5f5f7; --ink-2: #a1a1a6;
  --muted: #98989d; --line: #38383d; --link: #2997ff; --accent: #2997ff; --surface: #1c1c1e; --surface-2: #2c2c2e;
  --fr: #3987e5; --s2: #d95926; --s3: #199e70; --ctx: #48484a; --eu: #c3c2b7;
  --good: #4cc790; --good-bg: #12301f; --bad: #f07b72; --bad-bg: #3a1a18; --shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--f); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-weight: 600; line-height: 1.07; margin: 0; letter-spacing: -.028em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Navigation globale */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding: 0 max(22px, calc((100vw - 1024px) / 2)); background: color-mix(in srgb, var(--bg-alt) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 19px; font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; gap: 1.5px; }
.brand-mark i { width: 5px; height: 16px; border-radius: 1.5px; background: #2a5cb8; }
.brand-mark i:nth-child(2) { background: #d2d2d7; }
.brand-mark i:nth-child(3) { background: var(--red); }
.brand-name em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.mainnav { display: flex; gap: 26px; margin-left: auto; font-size: 13px; letter-spacing: -.01em; }
.mainnav a { color: var(--ink); opacity: .85; }
.mainnav a:hover { opacity: 1; text-decoration: none; }
.tools { display: flex; align-items: center; gap: 10px; }
.mode-switch { display: inline-flex; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 999px; padding: 2px; }
.mode-switch button { border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.mode-switch button[aria-pressed="true"] { background: var(--tile); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 960px) { .mainnav { display: none; } .tools { margin-left: auto; } }

/* ---------- Héros */
.hero { text-align: center; padding: clamp(56px, 9vw, 120px) 22px 40px; max-width: 1024px; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #30d158; margin-right: 6px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(48px, 9vw, 96px); letter-spacing: -.035em; line-height: 1.02; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.33; color: var(--ink-2); max-width: 680px; margin: 22px auto 34px; font-weight: 500; letter-spacing: -.02em; }
.search { position: relative; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--bg-alt); border-radius: 14px; padding: 4px 18px; color: var(--muted); border: 1px solid transparent; transition: border-color .2s, background .2s; text-align: left; }
.search:focus-within { border-color: var(--accent); background: var(--tile); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 19px; color: var(--ink); padding: 14px 0; min-width: 0; letter-spacing: -.02em; }
.search input:focus { outline: none; }
.search kbd { font: 12px var(--f); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; list-style: none; margin: 0; padding: 8px; background: var(--tile); border-radius: 18px; box-shadow: 0 12px 48px rgba(0,0,0,.18); z-index: 30; max-height: 420px; overflow: auto; }
.search-results button { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; color: var(--ink); }
.search-results button:hover, .search-results button:focus-visible { background: var(--bg-alt); }
.search-results small { color: var(--muted); font-size: 13px; }
.search-results .rv { font-weight: 600; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.search-hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.search-hint button { border: 0; background: none; color: var(--link); padding: 0 4px; font-size: 14px; }

.hero-counter { margin: 56px auto 0; max-width: 1024px; background: var(--bg-alt); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; text-align: left; }
.counter-label { margin: 0; color: var(--ink-2); font-size: 17px; font-weight: 600; }
.counter { font-size: clamp(44px, 7vw, 80px); font-weight: 700; line-height: 1; margin: 8px 0 6px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.counter-sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.hero-facts div { background: var(--tile); border-radius: 16px; padding: 14px 16px; }
.hero-facts dt { font-size: 13px; color: var(--ink-2); }
.hero-facts dd { margin: 2px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .hero-counter { grid-template-columns: 1fr; } }

/* ---------- Sections */
.block { max-width: 1024px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) 22px; }
.band { background: var(--bg-alt); }
.band .card, .band .duel-row, .band .duel-score, .band .bilan li button { background: var(--tile); }
.band-dark { background: #000; color: #f5f5f7; --tile: #1c1c1e; --ink: #f5f5f7; --ink-2: #a1a1a6; --line: #38383d; --ctx: #3a3a3c; --fr: #3987e5; }
.block-head { margin-bottom: 40px; max-width: 760px; }
.block-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; }
.block h2 { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -.03em; }
.block-intro { color: var(--ink-2); margin: 14px 0 0; font-size: clamp(19px, 1.8vw, 21px); line-height: 1.38; font-weight: 500; }

/* ---------- À la une */
.une { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.une-card { position: relative; border: 0; text-align: left; border-radius: var(--r-lg); padding: 30px 28px 26px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.une-card:hover { transform: scale(1.015); }
.une-card .ut { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.une-card .uh { display: block; font-size: 24px; font-weight: 600; line-height: 1.15; margin-top: 8px; letter-spacing: -.02em; }
.une-card .uv { display: block; font-size: clamp(48px, 5.5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.une-card .us { display: block; font-size: 14px; opacity: .85; margin-top: 6px; }
.une-card:nth-child(6n+1) { background: linear-gradient(160deg, #0a2a6b, #0071e3); }
.une-card:nth-child(6n+2) { background: linear-gradient(160deg, #1d1d1f, #48484a); }
.une-card:nth-child(6n+3) { background: linear-gradient(160deg, #5b1a1a, #d63a39); }
.une-card:nth-child(6n+4) { background: linear-gradient(160deg, #0b3d2e, #148a60); }
.une-card:nth-child(6n+5) { background: linear-gradient(160deg, #2b1e6b, #6a4ae8); }
.une-card:nth-child(6n+6) { background: linear-gradient(160deg, #6b3a0a, #c8561f); }
@media (max-width: 900px) { .une { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .une { grid-template-columns: 1fr; } .une-card { min-height: 220px; } }

/* ---------- La ruche */
.ruche { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 12px; padding-bottom: 9%; }
.hex { position: relative; aspect-ratio: 1 / .88; transition: transform .3s cubic-bezier(.2,.8,.2,1); color: var(--ink); }
.hex:hover { text-decoration: none; }
.hex:nth-child(even) { transform: translateY(52%); }
.hex-in { position: absolute; inset: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--bg-alt); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 17%; gap: 2px; transition: background .3s, color .3s; }
.hex:hover .hex-in, .hex:focus-visible .hex-in { background: var(--accent); color: #fff; }
.hex:hover .hex-n, .hex:hover .hex-k, .hex:focus-visible .hex-n, .hex:focus-visible .hex-k { color: rgba(255,255,255,.85); }
.hex:hover { z-index: 2; }
.hex:nth-child(odd):hover { transform: scale(1.05); }
.hex:nth-child(even):hover { transform: translateY(52%) scale(1.05); }
.hex-n { font-size: 11px; font-weight: 600; color: var(--muted); }
.hex-t { font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.hex-v { font-size: clamp(14px, 1.5vw, 20px); font-weight: 700; margin-top: 3px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hex-k { font-size: 11px; color: var(--muted); line-height: 1.2; }
@media (max-width: 1000px) { .ruche { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .ruche { grid-template-columns: repeat(2, 1fr); padding-bottom: 32%; } }

/* ---------- Le village */
.village { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.village-choices { display: flex; flex-direction: column; gap: 6px; }
.chip { border: 0; background: #1c1c1e; color: #f5f5f7; border-radius: 12px; padding: 12px 16px; text-align: left; font-size: 15px; transition: background .2s; }
.chip:hover { background: #2c2c2e; }
.chip[aria-pressed="true"] { background: #f5f5f7; color: #1d1d1f; font-weight: 600; }
.village-grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 7px; max-width: 640px; }
.person { aspect-ratio: .6; position: relative; }
.person::before, .person::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: #3a3a3c; transition: background .45s ease var(--d, 0ms), box-shadow .45s ease var(--d, 0ms); }
.person::before { top: 0; width: 70%; aspect-ratio: 1; border-radius: 50%; }
.person::after { bottom: 0; width: 100%; height: 52%; border-radius: 40% 40% 3px 3px; }
.person.on::before, .person.on::after { background: #2997ff; box-shadow: 0 0 12px rgba(41,151,255,.55); }
.village-answer { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; margin: 26px 0 0; min-height: 2.4em; line-height: 1.15; }
.village-answer .big { color: #2997ff; }
.village-answer small { display: block; font-size: 14px; font-weight: 400; color: #a1a1a6; margin-top: 8px; letter-spacing: -.01em; }
@media (max-width: 800px) { .village { grid-template-columns: 1fr; } .village-choices { flex-direction: row; flex-wrap: wrap; } .village-grid { grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 360px; } }

/* ---------- Thèmes et étagères */
.theme.alt { background: var(--bg-alt); }
.theme.alt .card, .theme.alt .feature, .theme.alt .repere { background: var(--tile); }
.theme:not(.alt) .card, .theme:not(.alt) .feature, .theme:not(.alt) .repere { background: var(--bg-alt); }
.theme-inner { max-width: 1024px; margin: 0 auto; padding: clamp(64px, 8vw, 104px) 22px; }
.theme-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.theme-head h2 { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -.03em; }
.theme-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 640px; font-size: 19px; line-height: 1.4; font-weight: 500; }
.theme-count { font-size: 14px; color: var(--muted); }
.verdict { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.shelf { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 40px) / 3)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 14px; margin: -8px -4px 0; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track > * { scroll-snap-align: start; }
.shelf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.paddles { display: flex; gap: 12px; }
.paddle { width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); display: grid; place-items: center; font-size: 18px; transition: background .2s, opacity .2s; }
.paddle:hover { background: color-mix(in srgb, var(--ink) 15%, transparent); }
.paddle:disabled { opacity: .35; cursor: default; }
.see-all { border: 0; background: none; color: var(--link); font-size: 17px; padding: 0; }
.see-all:hover { text-decoration: underline; }
.shelf.grid .shelf-track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-columns: auto; overflow: visible; }
.shelf.grid .paddles { visibility: hidden; }
@media (max-width: 640px) { .shelf-track { grid-auto-columns: 84%; } }

.card { border: 0; border-radius: var(--r); padding: 22px 22px 16px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; min-width: 0; color: var(--ink); }
.card:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; min-height: 40px; }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-2); letter-spacing: -.01em; }
.card-val { font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.card-unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 5px; letter-spacing: -.01em; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trend { font-weight: 600; white-space: nowrap; }
.spark { width: 100%; height: 46px; display: block; margin-top: 6px; }
.strip { width: 100%; height: 34px; display: block; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.rank { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.neutral { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.expert-only { display: none !important; }
body.expert .expert-only { display: revert !important; }
body.expert .simple-only { display: none !important; }
.code { font: 12px ui-monospace, Menlo, monospace; color: var(--muted); letter-spacing: 0; }

/* Blocs éditoriaux */
.feature { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); margin-top: 20px; }
.feature h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; letter-spacing: -.025em; }
.feature .src { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.feature .note { font-size: 15px; color: var(--ink-2); margin: 14px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 20px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.hbar-track { height: 12px; position: relative; }
.hbar-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ctx); border-radius: 0 4px 4px 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.hbar.is-fr .hbar-fill { background: var(--fr); }
.hbar.is-ref .hbar-fill { background: var(--eu); }
.hbar-v { font-weight: 600; font-size: 13px; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.hbar.is-fr { font-weight: 700; }
.compo-row { margin-bottom: 18px; }
.compo-row h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.compo-bar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; gap: 2px; }
.compo-bar i { display: block; height: 100%; min-width: 2px; }
.compo-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 22px; font-size: 14px; }
.compo-legend span { display: flex; align-items: center; gap: 8px; }
.compo-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.compo-legend em { font-style: normal; color: var(--muted); font-size: 12px; min-width: 52px; text-align: right; }
.compo-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.medals { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.medal { display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 12px; padding: 8px 14px; font-size: 14px; }
.medal b { font-size: 22px; font-weight: 700; }
.medal i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.repere { border-radius: var(--r-lg); padding: 26px; }
.repere b { display: block; font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.repere span { color: var(--ink-2); font-size: 17px; display: block; margin-top: 6px; }
.repere small { display: block; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---------- Graphiques */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font: 12px var(--f); fill: var(--muted); letter-spacing: 0; }
.chart .grid line { stroke: var(--line); stroke-width: 1; opacity: .6; }
.chart .lbl { font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 10px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--eu) 0 4px, transparent 4px 7px) !important; }
.tooltip { position: fixed; z-index: 80; pointer-events: none; background: color-mix(in srgb, var(--tile) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--ink); font-size: 13px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18); max-width: 260px; line-height: 1.45; }
.tooltip b { font-variant-numeric: tabular-nums; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 14px; }
.tooltip .tt-sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Fiche détail (feuille modale) */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
.drawer-panel { position: absolute; left: 50%; top: 4vh; bottom: 0; width: min(880px, 100%); transform: translateX(-50%); background: var(--bg); overflow-y: auto; padding: 40px clamp(20px, 5vw, 56px) 56px; border-radius: 22px 22px 0 0; animation: rise .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 60px rgba(0,0,0,.25); }
.drawer-panel:focus { outline: none; }
@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer-close { position: sticky; top: 0; float: right; width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 9%, transparent); font-size: 20px; line-height: 1; z-index: 2; color: var(--ink-2); }
.d-theme { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.d-title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; padding-right: 48px; letter-spacing: -.035em; }
.d-expl { color: var(--ink-2); margin: 0 0 24px; font-size: 19px; line-height: 1.42; }
.d-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.d-kpi { background: var(--bg-alt); border-radius: 16px; padding: 16px 18px; }
.d-kpi dt { font-size: 13px; color: var(--ink-2); }
.d-kpi dd { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.d-sec { background: var(--bg-alt); border-radius: 22px; padding: 22px; margin-bottom: 16px; }
.d-sec h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: -.02em; }
.d-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.d-controls .lbl { font-size: 13px; color: var(--ink-2); margin-right: 4px; }
.pill { border: 0; background: var(--tile); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.pill:hover { box-shadow: 0 0 0 1px var(--ink-2) inset; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.pill .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.dtable th { position: sticky; top: 0; background: var(--bg-alt); font-weight: 600; }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; max-height: 360px; }
details summary { cursor: pointer; color: var(--link); font-size: 15px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Duel */
.duel-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.duel-score { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-radius: var(--r-lg); padding: 26px 30px; margin-bottom: 20px; }
.duel-score .vs { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.04em; }
.duel-score .vs span { color: var(--muted); font-weight: 500; margin: 0 10px; }
.duel-score p { margin: 0; color: var(--ink-2); flex: 1; min-width: 220px; }
.duel-list { display: grid; gap: 8px; }
.duel-row { display: grid; grid-template-columns: 1fr minmax(120px, 2fr) 1fr; gap: 14px; align-items: center; border: 0; border-radius: 14px; padding: 12px 18px; color: var(--ink); text-align: left; }
.duel-row:hover { box-shadow: var(--shadow); }
.duel-row .t { grid-column: 1 / -1; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.duel-row .v { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.duel-row .v.r { text-align: right; }
.duel-row .win { color: var(--good); }
.duel-bar { display: flex; height: 8px; gap: 2px; }
.duel-bar i { display: block; height: 100%; }
.duel-bar i:first-child { background: var(--fr); border-radius: 4px 0 0 4px; }
.duel-bar i:last-child { background: var(--s2); border-radius: 0 4px 4px 0; }
.duel-more { margin-top: 16px; text-align: center; }
@media (max-width: 600px) { .duel-row { grid-template-columns: 1fr 1fr; } .duel-bar { grid-column: 1 / -1; order: 3; } }

/* ---------- Bilan */
.bilan { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bilan-h { font-size: 28px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; letter-spacing: -.03em; }
.bilan-h.good::before { content: "▲"; color: var(--good); font-size: 18px; }
.bilan-h.bad::before { content: "▼"; color: var(--bad); font-size: 18px; }
.bilan ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bilan li button { width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; color: var(--ink); }
.bilan li button:hover { box-shadow: var(--shadow); }
.bilan .pos { font-size: 24px; font-weight: 700; width: 48px; letter-spacing: -.03em; }
.bilan .lab { font-weight: 600; }
.bilan .lab small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.bilan .val { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .bilan { grid-template-columns: 1fr; } }

/* ---------- Méthode */
.sources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--ink-2); font-size: 17px; }
.sources-grid h3 { font-size: 21px; color: var(--ink); margin-bottom: 10px; }
.sources-grid strong { color: var(--ink); }
.caveats { padding-left: 18px; }
.caveats li { margin-bottom: 8px; }
.source-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.source-links .btn { font-size: 14px; padding: 8px 16px; }
@media (max-width: 760px) { .sources-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page : plan du site */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; }
.footer-inner { max-width: 1024px; margin: 0 auto; padding: 22px 22px 28px; }
.footer-note { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0 0 18px; color: var(--muted); }
.directory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 20px; }
.directory h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.33; }
.directory ul { list-style: none; margin: 0 0 6px; padding: 0; }
.directory li { margin-bottom: 7px; }
.directory button { border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink-2); text-align: left; letter-spacing: -.01em; }
.directory button:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); }
@media (max-width: 900px) { .directory { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .directory { grid-template-columns: 1fr 1fr; } }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: scale(1.02); }

/* Petits écrans */
@media (max-width: 520px) {
  .topbar { gap: 10px; padding: 0 16px; }
  .brand { font-size: 17px; }
  .mode-switch button { padding: 4px 9px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .block, .theme-inner { padding-left: 16px; padding-right: 16px; }
  .drawer-panel { top: 2vh; padding: 28px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}
@media (forced-colors: active) { .hex-in { border: 1px solid CanvasText; } }
.compo-legend b, .compo-legend em { white-space: nowrap; }
.search-hint button { margin: 0 2px; }

/* Mode Expert */
.card-x { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.x-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 0; }
.x-grid .d-kpi { background: var(--tile); }
.x-grid dd.x { font-size: 18px; letter-spacing: -.02em; }
.d-note { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0 0 12px; }
.d-note.warn { color: var(--bad); }
.mode-switch button[data-mode="expert"][aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- 2027 : les faits */
.faits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fait { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.fait h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
.fait-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.fait-rows { display: grid; gap: 2px; }
.fait-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: baseline; padding: 10px 12px; margin: 0 -12px; border: 0; background: none; border-radius: 12px; text-align: left; color: var(--ink); }
.fait-row:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.fait-row .fl { font-size: 15px; font-weight: 600; }
.fait-row .fv { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fait-row .fc { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.fait-row .fc b { font-weight: 600; }
.fait-note { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 12px; }
.fait-go { align-self: flex-start; border: 0; background: none; color: var(--link); font-size: 15px; padding: 0; margin-top: auto; }
.fait-go:hover { text-decoration: underline; }
.verifier { margin-top: 28px; background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; }
.verifier h3 { font-size: 22px; margin-bottom: 14px; }
.verifier ol { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; color: var(--ink-2); font-size: 15px; }
.verifier strong { color: var(--ink); }
@media (max-width: 820px) { .faits, .verifier ol { grid-template-columns: 1fr; } }

/* Vote par groupe : barres empilées à 100 % */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.stack100 { display: grid; gap: 10px; }
.s100-row { display: grid; grid-template-columns: minmax(120px, 26%) 1fr; gap: 12px; align-items: center; font-size: 14px; }
.s100-row.total { font-weight: 700; }
.s100-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; gap: 2px; }
.s100-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; min-width: 0; overflow: hidden; white-space: nowrap; }
.s100-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.s100-legend span { display: inline-flex; align-items: center; gap: 6px; }
.s100-legend i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 560px) { .s100-row { grid-template-columns: 1fr; gap: 4px; } }

/* Fonds des tuiles selon la bande */
.band .fait, .band .verifier { background: var(--tile); }
.plain .duel-row, .plain .duel-score, .plain .bilan li button, .bilan li button { background: var(--bg-alt); }
.band .duel-row, .band .duel-score, .band .bilan li button { background: var(--tile); }

/* Passerelle vers Hémicycle */
.cta-hemi { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 20px; padding: 24px 28px; border-radius: var(--r-lg); background: #153e32; color: #f5f5f7; text-decoration: none; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cta-hemi:hover { text-decoration: none; transform: scale(1.01); }
.cta-hemi span:first-child { flex: 1 1 380px; font-size: 17px; line-height: 1.45; color: #d8e3dc; }
.cta-hemi b { color: #fff; }
.cta-go { flex: none; background: #e3f2b8; color: #153e32; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px; }
.nav-ext { color: var(--link) !important; opacity: 1 !important; }
.faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fait { min-width: 0; }
@media (max-width: 820px) { .faits { grid-template-columns: minmax(0, 1fr); } .fait { padding: 22px 18px 18px; } }
@media (max-width: 480px) { .fait-row .fv { white-space: normal; font-size: 19px; } }

/* Bouton Hémicycle dans l'en-tête */
.hemi-btn { display: inline-flex; align-items: center; gap: 7px; background: #153e32; color: #fff !important; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; white-space: nowrap; letter-spacing: -.01em; transition: background .2s, transform .2s; }
.hemi-btn:hover { background: #1d5444; text-decoration: none; transform: scale(1.03); }
.hemi-dot { width: 8px; height: 8px; border-radius: 50%; background: #e3f2b8; }
.cta-hemi.cta-top { margin: 0 0 28px; }
@media (max-width: 1100px) { .hemi-long { display: none; } }
@media (max-width: 520px) { .hemi-btn { padding: 5px 10px; font-size: 12px; } .hemi-dot { display: none; } .mode-switch button { padding: 4px 7px; } }
.mainnav a { white-space: nowrap; }
@media (max-width: 1440px) { .hemi-long { display: none; } .mainnav { gap: 20px; } }
@media (max-width: 1100px) { .mainnav { gap: 14px; } }
@media (max-width: 430px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .brand { font-size: 15px; }
  .hemi-btn { padding: 4px 8px; font-size: 11px; }
  .mode-switch button { padding: 3px 6px; font-size: 11px; }
  .icon-btn { width: 26px; height: 26px; }
}
@media (max-width: 400px) { .brand-mark { display: none; } }

/* ================= Mobile (iPhone) ================= */
html { -webkit-text-size-adjust: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.topbar { padding-left: max(22px, env(safe-area-inset-left), calc((100vw - 1024px) / 2)); padding-right: max(22px, env(safe-area-inset-right), calc((100vw - 1024px) / 2)); }

/* Sous-navigation (mobile et tablette) */
.subnav { display: none; }
@media (max-width: 960px) {
  .subnav { display: flex; gap: 8px; position: sticky; top: var(--nav-h); z-index: 39; overflow-x: auto; scrollbar-width: none; padding: 8px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; font-size: 13px; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 6px 12px; border-radius: 999px; }
  .subnav a:hover { text-decoration: none; }
  html { scroll-padding-top: calc(var(--nav-h) + 56px); }
  .search kbd { display: none; }
}

/* Survol désactivé sur écran tactile (évite les effets « collés ») */
@media (hover: none) {
  .card:hover, .une-card:hover, .cta-hemi:hover, .hemi-btn:hover { transform: none; box-shadow: none; }
  .hex:nth-child(odd):hover { transform: none; }
  .paddles { display: none; }
}

/* Repères : sections moins hautes */
@media (max-width: 560px) {
  .block, .theme-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 40px; }
  .lede { margin: 16px auto 24px; }
  .hero-counter { margin-top: 36px; padding: 22px; border-radius: 22px; }
  .hero-facts dd { font-size: 22px; }
  .block-head { margin-bottom: 26px; }

  /* À la une : carrousel horizontal */
  .une { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; scroll-padding-inline: 16px; gap: 12px; }
  .une::-webkit-scrollbar { display: none; }
  .une-card { scroll-snap-align: start; min-height: 230px; padding: 24px 22px 20px; }
  .une-card .uv { font-size: 48px; }

  /* Thèmes : tuiles arrondies sur 2 colonnes, sans décalage */
  .ruche { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 0; }
  .hex, .hex:nth-child(even) { transform: none; aspect-ratio: auto; min-height: 128px; }
  .hex:nth-child(even):hover { transform: none; }
  .hex-in { position: relative; inset: auto; height: 100%; clip-path: none; border-radius: 18px; padding: 16px 12px; gap: 3px; }
  .hex-t { font-size: 15px; }
  .hex-v { font-size: 19px; }

  /* Étagères : défilement bord à bord */
  .shelf-track { margin: -8px -16px 0; padding: 8px 16px 14px; scroll-padding-inline: 16px; grid-auto-columns: 84%; gap: 12px; }
  .card { padding: 20px 18px 14px; }
  .card-val { font-size: 34px; }

  /* Classements : barre sous le nom */
  .hbar { grid-template-columns: 1fr auto; grid-template-areas: "n v" "t t"; gap: 4px 10px; }
  .hbar > span:nth-child(1) { grid-area: n; }
  .hbar > .hbar-track { grid-area: t; height: 8px; }
  .hbar > .hbar-v { grid-area: v; }

  /* 2027 : chiffres sous le libellé */
  .fait-row { grid-template-columns: 1fr; }
  .fait-row .fv { text-align: left; font-size: 22px; }
  .fait h3 { font-size: 22px; }
  .verifier { padding: 22px; }
  .cta-hemi { padding: 20px; }
  .cta-hemi span:first-child { font-size: 15px; flex-basis: 100%; }

  /* Comparer : pays en ligne défilante */
  .duel-picker { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 20px; padding: 2px 16px; }
  .duel-picker::-webkit-scrollbar { display: none; }
  .duel-picker .pill { flex: none; }
  .duel-score { padding: 20px; gap: 12px; border-radius: 22px; }
  .duel-score .vs { font-size: 30px; }
  .duel-score p { font-size: 15px; }
  .duel-row { padding: 12px 14px; }

  /* Bilan */
  .bilan-h { font-size: 24px; }
  .bilan li button { padding: 12px 14px; gap: 10px; }
  .bilan .pos { width: 38px; font-size: 20px; }

  /* Fiche détail */
  .drawer-panel { top: 0; border-radius: 0; padding: 18px 16px calc(32px + env(safe-area-inset-bottom)); }
  .d-title { font-size: 30px; }
  .d-expl { font-size: 16px; }
  .d-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .d-kpi { padding: 12px 14px; }
  .d-kpi dd { font-size: 22px; }
  .d-sec { padding: 16px; border-radius: 18px; }
  .d-controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 2px 16px; }
  .d-controls::-webkit-scrollbar { display: none; }
  .d-controls .pill, .d-controls .lbl { flex: none; }
  .d-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Vote par groupe */
  .s100-bar { height: 24px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 16px; padding: 2px 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .pill { flex: none; }
  .feature { padding: 20px 16px; border-radius: 22px; }
  .compo-legend { grid-template-columns: 1fr; }

  /* Pied de page : sections repliables */
  .directory { grid-template-columns: 1fr; gap: 0; }
  .dir-group { border-bottom: 1px solid var(--line); }
  .dir-group summary { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
  .dir-group summary::after { content: "+"; font-size: 18px; color: var(--muted); }
  .dir-group[open] summary::after { content: "−"; }
  .dir-group summary h3 { margin: 0; font-size: 14px; }
  .dir-group ul { padding-bottom: 10px; }
  .directory li { margin-bottom: 10px; }
  .directory button { font-size: 14px; }
}
.dir-group summary { list-style: none; cursor: pointer; }
.dir-group summary::-webkit-details-marker { display: none; }
@media (min-width: 561px) { .dir-group summary { pointer-events: none; } }

/* Le village : questions défilantes au-dessus, réponse au-dessus de la grille */
@media (max-width: 800px) {
  .village { gap: 18px; }
  .village-choices { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .village-choices::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .village-stage { display: flex; flex-direction: column; }
  .village-answer { order: -1; margin: 0 0 18px; min-height: 0; font-size: 26px; }
  .village-grid { width: 100%; max-width: 250px; gap: 4px; margin: 0 auto; }
}
@media (max-width: 370px) { .topbar { gap: 4px; padding-left: 8px; padding-right: 8px; } .hemi-btn { padding: 4px 7px; } .brand { font-size: 14px; } }

/* Page mentions légales */
.legal-page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 22px 64px; }
.legal-page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.035em; margin-bottom: 14px; }
.legal-intro { color: var(--ink-2); font-size: 17px; margin: 0 0 32px; }
.legal-page section { background: var(--bg-alt); border-radius: 22px; padding: 22px 24px; margin-bottom: 14px; }
.legal-page h2 { font-size: 21px; margin-bottom: 10px; letter-spacing: -.02em; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.legal-page p { margin: 0 0 10px; }
.legal-page ul { padding-left: 20px; margin: 0 0 10px; }
.legal-page strong { color: var(--ink); }
.legal-date { color: var(--muted) !important; font-size: 14px !important; margin: 18px 0 !important; }
@media (max-width: 520px) { .legal-page { padding-left: 16px; padding-right: 16px; } .legal-page section { padding: 18px; } }
.legal .tools { margin-left: auto; }

/* Pages indicateurs (indexables) */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--link); }
.ind-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 18px; }
.ind-kpis div { background: var(--bg-alt); border-radius: 16px; padding: 14px 16px; }
.ind-kpis span { display: block; font-size: 13px; color: var(--ink-2); }
.ind-kpis b { display: block; font-size: 26px; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ind-page .btn { margin: 4px 0 22px; }
.ind-rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: r; }
.ind-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--tile); counter-increment: r; font-size: 15px; }
.ind-rank li span::before { content: counter(r) ". "; color: var(--muted); }
.ind-rank li.is-fr { background: color-mix(in srgb, var(--fr) 14%, var(--tile)); font-weight: 600; }
.ind-rank b { font-variant-numeric: tabular-nums; }
.ind-related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.ind-related a { font-size: 15px; }
.ind-page .dtable th { background: var(--bg-alt); }

.directory a { font-size: 12px; color: var(--ink-2); letter-spacing: -.01em; }
.directory a:hover { color: var(--ink); }
@media (max-width: 560px) { .directory a { font-size: 14px; } }
