/* AFRONOW — feuille de style publique (refonte 2026).
   Plat, aéré, deux polices : Bricolage Grotesque (titres, interface) et Literata (lecture).
   Une seule pièce forte : la carte d'Afrique en rouge. */

@font-face {
    font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url('/assets/fonts/literata-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Literata'; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url('/assets/fonts/literata-latin-wght-italic.woff2') format('woff2');
}

:root {
    --paper: #fbfaf7;
    --ink: #1b1613;
    --ink-soft: #4a423c;
    --muted: #8a8279;
    --brume: #eceae4;
    --line: #e2dfd7;
    --red: #c8201f;
    --red-deep: #9f1716;
    --sun: #f5b21b;
    --forest: #17493b;
    --ok: #17753f;
    --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --text: 'Literata', Georgia, 'Times New Roman', serif;
    --wrap: 1180px;
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--display); font-size: 17px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; }

.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius); }
.skip-link:focus { top: 0; }
.read-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }

/* ---------- En-tête ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.masthead.is-stuck { border-bottom-color: var(--line); }
.masthead-row { display: flex; align-items: center; gap: 36px; height: 76px; }
.masthead-row .mainnav { margin-left: 4px; }
.masthead-logo { position: relative; z-index: 3; align-self: flex-start; margin: 8px 0 -50px; flex: none; }
.masthead-logo img {
    width: 118px; height: 118px; object-fit: cover; border-radius: 50%; background: var(--paper);
    border: 5px solid var(--paper); box-shadow: 0 0 0 3px var(--sun), 0 10px 24px -6px rgba(27, 22, 19, .45);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1);
}
.masthead-logo:hover img { transform: rotate(-6deg) scale(1.04); }
.mainnav { flex: 1; min-width: 0; }
.mainnav ul { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a { display: block; padding: 8px 0; font-weight: 500; font-size: 15.5px; color: var(--ink-soft); white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); }
.mainnav a.is-active { color: var(--ink); border-bottom-color: var(--red); }
.search input {
    width: 170px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px;
    transition: width .25s ease, border-color .2s ease;
}
.search input:focus { width: 230px; border-color: var(--ink); outline: none; }

/* ---------- Boutons, liens ---------- */
.btn-pop, .btn-solid, .notfound-search button {
    display: inline-block; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
    font-weight: 600; font-size: 15.5px; transition: background .2s ease;
}
.btn-pop:hover, .btn-solid:hover, .notfound-search button:hover { background: var(--red-deep); color: #fff; }
.btn-solid:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost, .btn {
    display: inline-block; padding: 13px 24px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 15.5px;
    transition: background .2s ease, color .2s ease;
}
.btn-ghost:hover, .btn:hover { background: var(--ink); color: var(--paper); }
.stage-cta .btn-ghost { border-color: var(--forest); color: var(--forest); }
.stage-cta .btn-ghost:hover { background: var(--forest); color: #fff; }

/* ---------- Mots-clés d'article ---------- */
.kicker { display: inline-block; font-weight: 600; font-size: 14.5px; color: var(--forest); margin-bottom: 8px; }
.kicker:hover { color: var(--red); }
.byline { margin-top: 10px; font-size: 14px; color: var(--muted); }
.byline-author { color: var(--ink-soft); font-weight: 500; margin-right: 10px; }
.img-placeholder { position: relative; overflow: hidden; background: var(--brume); }
.img-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; letter-spacing: .3em; font-size: 13px; color: rgba(27, 22, 19, .22); }
.dek { font-family: var(--text); color: var(--ink-soft); font-size: 1.12rem; line-height: 1.55; }
.eyebrow { font-weight: 600; font-size: 15px; color: var(--forest); margin-bottom: 14px; }

/* ---------- Barre défilante (bas du hero) ---------- */
.ticker { position: relative; margin-top: 20px; overflow: hidden; background: var(--forest); color: #f3efe6; border-block: 3px solid var(--sun); }
.ticker-track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.ticker-list { display: flex; gap: 44px; padding: 14px 22px; white-space: nowrap; font-weight: 500; font-size: 15px; }
.ticker-list a:hover { color: var(--sun); }
.ticker-dot { display: inline-block; width: 9px; height: 9px; margin-right: 12px; background: var(--sun); transform: rotate(45deg); vertical-align: middle; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Accueil : titre + carte ---------- */
.stage { position: relative; padding: 64px 0 24px; isolation: isolate; }
/* Pagne kita : tissage en fond, estompé vers la gauche, et lisière tissée en bas */
.stage::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: url('/assets/img/kita-tile.svg') 0 0 / 96px 96px; opacity: .17;
    -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 78%); mask-image: linear-gradient(100deg, transparent 18%, #000 78%);
}
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: url('/assets/img/kita-band.svg') 0 0 / 56px 24px repeat-x; }
.stage-grid { padding-bottom: 8px; }
.masthead::after { content: ''; display: block; height: 10px; background: url('/assets/img/kita-band.svg') 0 -7px / 56px 24px repeat-x; }
.stage-map .africa { filter: drop-shadow(0 0 0 transparent); }
.stage-map::after {
    content: ''; position: absolute; right: -2%; top: -3%; width: 64px; height: 64px; z-index: -1; border-radius: 50%;
    background: var(--sun); animation: drift 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.02); } }
@keyframes drift { 50% { transform: translate(-14px, 16px); } }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.stage-title { font-size: clamp(2.2rem, min(3.7vw, 7vh), 3.7rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.stage-title .hl { color: var(--red); }
.stage-title .hl-alt { color: var(--forest); }
.stage-lead { margin-top: clamp(14px, 2.4vh, 24px); max-width: 28em; font-family: var(--text); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.6; color: var(--ink-soft); }
.stage-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 3vh, 30px); }
.stats { display: flex; gap: 32px; margin-top: clamp(22px, 4vh, 40px); }
.stats strong { color: var(--forest); display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

.stage-visual { --mapmax: min(48vh, 440px); }
.stage-map { position: relative; z-index: 2; width: calc(var(--mapmax) * var(--ar, 1)); max-width: 100%; justify-self: end; }
.africa { width: 100%; height: auto; overflow: visible; }
.land { fill: #ddd9cd; stroke: var(--paper); stroke-width: 1; transition: opacity .25s ease, fill .2s ease; }
.land.has { fill: #e5342f; cursor: pointer; }
.land.has:hover { fill: #ff4a44; }
.africa.has-active .land:not(.is-active) { opacity: .8; }
.land.is-active { fill: var(--sun); opacity: 1; stroke: var(--forest); }
.pin { cursor: pointer; outline: none; }
.pin-dot { fill: #fff; stroke: var(--red-deep); stroke-width: 1.6; transition: r .2s ease; }
.pin-ring { fill: none; stroke: #fff; stroke-width: 1.6; opacity: .9; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.pin:nth-child(3n) .pin-ring { animation-delay: .7s; }
.pin:nth-child(3n+1) .pin-ring { animation-delay: 1.4s; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot, .pin.is-active .pin-dot { r: 7; fill: var(--sun); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

/* Le cercle : c'est lui qui accueille les articles, la carte reste à l'extérieur */
.stage-visual { display: flex; align-items: center; justify-self: end; max-width: 100%; }
.stage-disc {
    position: relative; flex: none; z-index: 1; isolation: isolate; overflow: hidden;
    width: calc(var(--mapmax) * .82); aspect-ratio: 1; margin-right: calc(var(--mapmax) * -.07);
    border-radius: 50%; display: grid; place-items: center; text-align: center; color: #fff;
    padding: 0 calc(var(--mapmax) * .13);
    background: radial-gradient(circle at 36% 30%, #23705a 0%, var(--forest) 48%, #0f3328 100%);
    box-shadow: 0 0 0 8px rgba(245, 178, 27, .92), 0 0 0 20px rgba(23, 73, 59, .14);
    animation: breathe 7s ease-in-out infinite;
}
.stage-disc::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
    background: url('/assets/img/kita-tile.svg') 0 0 / 72px 72px; filter: brightness(2.2) saturate(.4);
}
.disc-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .34; mix-blend-mode: luminosity; animation: fadein .5s ease; }
@keyframes fadein { from { opacity: 0; } }
.disc-idle { margin: 0; font-weight: 600; font-size: clamp(.95rem, calc(var(--mapmax) * .034), 1.2rem); line-height: 1.35; color: rgba(255, 255, 255, .85); }
.disc-idle-ico { display: block; width: 14px; height: 14px; margin: 0 auto 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(245, 178, 27, .6); animation: live 1.9s infinite; }
.stage-disc.is-open .disc-idle { display: none; }
.disc-card { display: flex; flex-direction: column; align-items: center; min-width: 0; animation: fadein .35s ease; }
.disc-card[hidden] { display: none; }
.pop-country { margin: 0 0 8px; font-weight: 700; font-size: clamp(.85rem, calc(var(--mapmax) * .028), 1rem); color: var(--sun); }
.pop-title { margin: 0 0 8px; font-size: clamp(1rem, calc(var(--mapmax) * .042), 1.45rem); line-height: 1.16; letter-spacing: -.02em; font-weight: 800; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pop-title a:hover { color: var(--sun); }
.pop-meta { margin: 0 0 12px; font-size: clamp(.75rem, calc(var(--mapmax) * .024), .85rem); color: rgba(255, 255, 255, .7); }
.pop-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pop-nav.is-single { display: none; }
.pop-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 17px; line-height: 1; padding: 0; }
.pop-nav button:hover { background: #fff; color: var(--forest); }
.pop-count { font-size: 13px; color: rgba(255, 255, 255, .75); }
.pop-all { padding: 9px 20px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 14px; }
.pop-all:hover { background: #fff; }

.map-play {
    position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500;
}
.map-play:hover { border-color: var(--ink); }
.play-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 0 rgba(23, 73, 59, .5); animation: live 1.9s infinite; }
.map-play.is-paused .play-icon { background: var(--sun); animation: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(23, 73, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 73, 59, 0); } }

.chips { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 30px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.chips li { flex: none; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink-soft); transition: border-color .2s ease, background .2s ease; }
.chip b { font-weight: 600; color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip.is-active b { color: rgba(255, 255, 255, .6); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; }
.section-title .hl, .section-title .hl-alt { color: var(--red); }
.section-more { font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.section-more:hover { color: var(--red); border-color: var(--red); }

/* À la une */
.hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; padding-top: 56px; }
.hero-media { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.hero-media .hero-img { position: absolute; inset: 0; }
.flag { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 13.5px; }
.hero-text { padding-top: 22px; }
.hero-title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin-bottom: 14px; }
.hero-title a:hover { color: var(--red); }
.hero-side .eyebrow { margin-bottom: 8px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 17px; }
.numbered li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.numbered-index { font-weight: 800; font-size: 1.4rem; color: var(--red); line-height: 1.1; }
.numbered h3 { font-size: 1.12rem; line-height: 1.22; letter-spacing: -.015em; }
.numbered h3 a:hover { color: var(--red); }
.numbered .kicker { font-size: 13.5px; margin-bottom: 4px; }
.numbered .byline { margin-top: 6px; font-size: 13px; }

/* Grille et cartes : pas de boîtes, l'image porte la carte */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.card-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; position: relative; }
.card-media .card-img { position: absolute; inset: 0; }
.card-media img { transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding-top: 16px; }
.card-title { font-size: 1.34rem; line-height: 1.16; letter-spacing: -.025em; font-weight: 700; }
.card-title a:hover { color: var(--red); }
.card-excerpt { margin-top: 10px; font-family: var(--text); font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }

/* Bandes par rubrique */
.band-wrap { margin-top: 72px; }
.band-wrap.band-alt { background: var(--brume); padding-bottom: 72px; }
.band-wrap .band { padding-top: 64px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.card-lead .card-media { aspect-ratio: 16 / 10; }
.card-title-lead { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.035em; line-height: 1.08; }
.band-list { display: grid; }
.row-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row-item:first-child { padding-top: 0; }
.band-alt .row-item { border-bottom-color: #d9d6ce; }
.row-thumb { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; }
.row-thumb .row-thumb-inner { position: absolute; inset: 0; }
.row-title { font-size: 1.1rem; line-height: 1.22; letter-spacing: -.015em; }
.row-title a:hover { color: var(--red); }
.row-item .kicker { font-size: 13.5px; margin-bottom: 4px; }
.row-item .byline { margin-top: 6px; font-size: 13px; }

/* Quiz à l'accueil */
.quiz-wrap { margin-top: 72px; background: var(--sun); padding-bottom: 72px; }
.quiz-wrap .section { padding-top: 64px; }
.quiz-wrap .section-title .hl, .quiz-wrap .section-title .hl-alt { color: var(--ink); }
.quiz-wrap .section-more { border-color: var(--ink); }
.quiz-wrap .section-more:hover { color: var(--red-deep); border-color: var(--red-deep); }
.quiz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quiz-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 190px; padding: 22px; border-radius: 12px; background: var(--paper); transition: background .2s ease, color .2s ease; }
.quiz-badge { font-weight: 600; font-size: 14px; color: var(--red); }
.quiz-card-title { font-size: 1.28rem; font-weight: 700; line-height: 1.16; letter-spacing: -.02em; }
.quiz-go { font-weight: 600; font-size: 15px; }
.quiz-card:hover { background: var(--ink); color: #fff; }
.quiz-card:hover .quiz-badge { color: var(--sun); }

/* Les plus lus */
.popular-wrap { margin-top: 72px; }
.popular-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.popular-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.popular-index { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: .95; color: var(--red); }
.popular-list h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; }
.popular-list h3 a:hover { color: var(--red); }
.popular-list .kicker { font-size: 13.5px; margin-bottom: 4px; }

/* ---------- Listes (rubrique, tag, recherche) ---------- */
.listing-head { padding: 72px 0 8px; }
.listing-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 16em; }
.listing-desc { margin-top: 18px; max-width: 36em; font-family: var(--text); font-size: 1.12rem; color: var(--ink-soft); }
.listing-count { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 64px; }
.pager-link { padding: 11px 22px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 15px; }
.pager-link:hover { background: var(--ink); color: var(--paper); }
.pager-state { font-size: 14.5px; color: var(--muted); }

/* ---------- Article ---------- */
.article-head { width: min(820px, 100% - 48px); margin: 72px auto 36px; }
.article-kickers { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.article-title { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin-top: 8px; }
.article-dek { margin-top: 22px; font-size: 1.3rem; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-meta a:hover { color: var(--red); }
.article-figure { width: min(1060px, 100% - 48px); margin: 0 auto 56px; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); }

.prose { width: min(680px, 100% - 48px); margin: 0 auto; font-family: var(--text); font-size: 1.16rem; line-height: 1.75; color: #28211d; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: var(--ink); margin-top: 2.1em; }
.prose h2 { font-size: 1.85rem; letter-spacing: -.035em; }
.prose h3 { font-size: 1.4rem; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-deep); }
.prose img { height: auto; border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-family: var(--display); font-size: 14px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .4em; padding-left: .2em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 26px; border-left: 3px solid var(--red); font-size: 1.28rem; line-height: 1.55; font-style: italic; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose iframe, .prose video { width: 100%; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose .callout { margin: 2em 0; padding: 22px 26px; background: var(--brume); border-radius: var(--radius); font-family: var(--display); font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.prose .btn { font-family: var(--display); text-decoration: none; color: var(--ink); }
.prose .btn:hover { color: var(--paper); }
.prose .quiz { font-family: var(--display); font-size: 16px; line-height: 1.5; }
.prose .quiz-embed { display: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; width: min(680px, 100% - 48px); margin: 52px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }
.tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brume); font-size: 14px; color: var(--ink-soft); }
.tags a:hover { background: var(--ink); color: #fff; }
.article > .prose, .article > .tags { margin-left: max(24px, calc((100% - 820px) / 2)); }
.related { margin-top: 24px; padding-bottom: 8px; }

/* ---------- Pages statiques, 404 ---------- */
.static-page { width: min(820px, 100% - 48px); }
.static-head { margin: 72px 0 36px; }
.static-page .prose { margin-left: 0; width: min(680px, 100%); }
.notfound { padding: 96px 0 40px; }
.notfound-search { display: flex; gap: 10px; max-width: 460px; margin: 30px 0 24px; }
.notfound-search input { flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* ---------- Quiz (dans les articles) ---------- */
.quiz { width: min(680px, 100%); margin: 2.4em auto; padding: 30px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); font-family: var(--display); }
.quiz-title { font-size: 1.6rem; margin: 0 0 10px; }
.quiz-desc { color: var(--ink-soft); margin-bottom: 22px; }
.quiz-progress { font-weight: 600; font-size: 14px; color: var(--red); margin: 0 0 10px; }
.quiz-question { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 700; margin-bottom: 18px; }
.prose .quiz-options { padding: 0; list-style: none; }
.quiz-options li { margin: 0 0 10px; list-style: none; padding: 0; }
.quiz-option {
    display: block; width: 100%; text-align: left; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 10px;
    background: var(--paper); font-size: 16px; transition: border-color .15s ease, background .15s ease;
}
.quiz-option:not(:disabled):hover { border-color: var(--ink); }
.quiz-option.is-selected { border-color: var(--ink); background: var(--brume); }
.quiz-option.is-correct { border-color: var(--ok); background: #e7f3ea; color: #12462a; }
.quiz-option.is-wrong { border-color: var(--red); background: #fbe9e8; color: var(--red-deep); }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin-top: 16px; }
.quiz-verdict { font-weight: 700; margin: 0 0 6px; }
.quiz-verdict.is-ok { color: var(--ok); }
.quiz-verdict.is-ko { color: var(--red); }
.quiz-hint { font-style: italic; color: var(--ink-soft); margin: 0 0 8px; }
.quiz-explanation { margin-top: 10px; padding: 14px 16px; background: var(--brume); border-radius: 8px; font-size: 15px; color: var(--ink-soft); }
.quiz-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.quiz-final { font-size: 1.2rem; font-weight: 600; margin-bottom: 18px; }
.quiz-noscript { color: var(--muted); font-style: italic; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 110px; background: var(--ink); color: #d9d4cc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 52px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.footer-tagline { max-width: 22em; font-family: var(--text); line-height: 1.55; color: #bdb7ad; }
.footer-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.site-footer li + li { margin-top: 9px; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 14px; color: #8f897f; }

/* ---------- Adaptation ---------- */
@media (max-width: 1020px) {
    .stage-grid { grid-template-columns: 1fr; gap: 28px; }
    .stage-visual { --mapmax: min(60vh, 520px); flex-direction: column; justify-self: center; gap: 36px; }
    .stage-map { --mapmax: min(60vh, 520px); order: 1; }
    .stage-disc { order: 2; width: min(86vw, 400px); margin: 0; padding: 0 56px; }
    .stage-disc .pop-title { font-size: 1.25rem; }
    .stage-title { font-size: clamp(2.4rem, 8vw, 3.8rem); }
    .stage-title br { display: none; }
    .stage-title br + .hl { margin-left: .22em; }
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band-grid { grid-template-columns: 1fr; gap: 36px; }
    .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .popular-list { grid-template-columns: 1fr; }
    .masthead-row { gap: 22px; }
}
@media (max-width: 760px) {
    body { font-size: 16.5px; }
    .container { width: calc(100% - 36px); }
    .masthead-row { height: 64px; gap: 14px; }
    .masthead-logo { margin: 6px 0 -34px; }
    .masthead-logo img { width: 78px; height: 78px; border-width: 3px; box-shadow: 0 0 0 2px var(--sun), 0 6px 14px -4px rgba(27, 22, 19, .4); }
    .search input, .search input:focus { width: 120px; }
    .stage { padding-top: 46px; }
    .stats { gap: 24px; margin-top: 32px; }
    .section { padding-top: 52px; }
    .band-wrap, .quiz-wrap, .popular-wrap { margin-top: 52px; }
    .band-wrap.band-alt { padding-bottom: 52px; }
    .grid-3 { grid-template-columns: 1fr; gap: 36px; }
    .quiz-grid { grid-template-columns: 1fr; }
    .quiz-card { min-height: 0; }
    .row-item { grid-template-columns: 92px minmax(0, 1fr); }
    .article-head { margin-top: 44px; width: calc(100% - 36px); }
    .article-figure, .prose, .tags, .static-page { width: calc(100% - 36px); }
    .article > .prose, .article > .tags { margin-left: 18px; }
    .prose { font-size: 1.1rem; }
    .quiz { padding: 22px 18px; }
    .quiz-actions { flex-direction: column-reverse; }
    .quiz-actions button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
    .map-play { bottom: auto; top: 0; }
    .stage::before { opacity: .1; }
    .stage-map { --mapmax: 100vw; width: 100%; }
    .stage-map::after { width: 44px; height: 44px; }
    .stage-disc { width: min(84vw, 340px); padding: 0 44px; }
    .ticker { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Écrans bas ou très larges */
@media (min-height: 1000px) and (min-width: 1021px) { .stage-visual { --mapmax: min(50vh, 500px); } }
@media (max-height: 720px) and (min-width: 1021px) {
    .stage { padding-top: 56px; }
    .stage-visual { --mapmax: 52vh; }
    .stats { display: none; }
}
@media (min-width: 1021px) and (max-width: 1240px) { .stage-visual { --mapmax: min(42vh, 360px); } }
