/* ==========================================================================
   Sino — thème journal d'actualités
   Couleurs inspirées du drapeau du Niger : orange, blanc, vert.
   ========================================================================== */

:root {
    --orange: var(--ghost-accent-color, #e05206);
    --orange-fonce: #b84204;
    --vert: #0db02b;
    --vert-fonce: #087a1e;
    --encre: #141414;
    --texte: #2b2b2b;
    --gris: #6b6b6b;
    --gris-clair: #9a9a9a;
    --filet: #e4e4e4;
    --fond: #ffffff;
    --fond-doux: #f6f5f2;
    --fond-sombre: #121212;

    --police-titre: var(--gh-font-heading, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --police-texte: var(--gh-font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --police-article: "EB Garamond", Georgia, "Times New Roman", serif;

    --largeur: 1240px;
    --gouttiere: 16px;
    --espace: 32px;
    --rayon: 2px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police-texte);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { margin: 0; font-family: var(--police-titre); color: var(--encre); line-height: 1.2; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
svg { display: inline-block; flex-shrink: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur-etroit { max-width: 760px; margin-left: auto; margin-right: auto; }

@media (min-width: 768px) { :root { --gouttiere: 24px; } }

/* ---------- Boutons ---------- */

.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border: 2px solid transparent; border-radius: var(--rayon);
    font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.bouton-accent { background: var(--orange); color: #fff; }
.bouton-accent:hover { background: var(--orange-fonce); color: #fff; }
.bouton-contour { border-color: var(--encre); color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: #fff; }
.bouton-blanc { background: #fff; color: var(--encre); }
.bouton-blanc:hover { background: var(--encre); color: #fff; }

.bouton-icone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--encre);
}
.bouton-icone:hover { color: var(--orange); }
.bouton-icone svg { width: 22px; height: 22px; }

/* ---------- Bandeau drapeau ---------- */

.drapeau { display: flex; height: 5px; }
.drapeau span { flex: 1; }
.drapeau span:nth-child(1) { background: #e05206; }
.drapeau span:nth-child(2) { background: #fff; position: relative; }
.drapeau span:nth-child(2)::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
    border-radius: 50%; background: #e05206; transform: translate(-50%, -50%);
}
.drapeau span:nth-child(3) { background: #0db02b; }

/* ---------- Topbar ---------- */

.topbar { border-bottom: 1px solid var(--filet); font-size: 13px; color: var(--gris); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar-date::first-letter { text-transform: uppercase; }
.topbar-liens { display: flex; align-items: center; gap: 16px; }
.topbar-liens svg { width: 15px; height: 15px; }
.topbar-liens a { display: inline-flex; font-weight: 600; }
.social-inactif { display: inline-flex; color: inherit; cursor: default; }

/* ---------- En-tête ---------- */

.entete { background: var(--fond); border-bottom: 3px solid var(--encre); }
.entete-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding-top: 18px; padding-bottom: 18px;
}
.menu-ouvrir { justify-self: start; }
.logo { justify-self: center; display: flex; align-items: center; color: var(--encre); }
.logo:hover { color: var(--encre); }
.logo img { max-height: 56px; width: auto; }
.logo-texte {
    font-family: var(--police-titre); font-weight: 900; font-size: clamp(34px, 6vw, 56px);
    letter-spacing: -.04em; line-height: 1; text-transform: uppercase;
}
.logo-texte::after { content: "."; color: var(--orange); }
.entete-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.rubriques { border-top: 1px solid var(--filet); }
.rubriques-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rubriques-inner::-webkit-scrollbar { display: none; }
.rubrique-lien {
    position: relative; padding: 12px 12px; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; color: var(--encre);
}
.rubrique-lien::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
    background: var(--orange); transform: scaleX(0); transition: transform .2s;
}
.rubrique-lien:hover::after, .rubrique-lien.actif::after { transform: scaleX(1); }
.rubrique-lien:hover { color: var(--encre); }
.menu-fermer, .menu-entete, .menu-fond { display: none; }

@media (min-width: 1000px) {
    .menu-ouvrir { visibility: hidden; }
    .rubriques-inner { justify-content: center; }
}

@media (max-width: 999px) {
    .rubriques {
        position: fixed; inset: 0 auto 0 0; width: min(360px, calc(100% - 48px)); z-index: 100; background: var(--fond);
        border: 0; transform: translateX(-100%); transition: transform .25s; overflow-y: auto;
        visibility: hidden; overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .menu-ouvert { overflow: hidden; }
    .menu-ouvert .rubriques { transform: none; visibility: visible; }
    .menu-ouvert .menu-fond {
        display: block; position: fixed; inset: 0; z-index: 99;
        width: 100%; height: 100%; border: 0; padding: 0; background: rgba(0, 0, 0, .45);
    }
    .menu-entete { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 3px solid var(--encre); font-size: 20px; font-weight: 900; }
    .rubriques-inner { flex-direction: column; align-items: stretch; padding-top: 12px; overflow: visible; }
    .rubrique-lien { padding: 14px 8px; border-bottom: 1px solid var(--filet); font-size: 15px; }
    .rubrique-lien::after { display: none; }
    .rubrique-lien.actif { color: var(--orange); }
    .menu-fermer { display: inline-flex; align-self: flex-end; }
    .entete-actions .bouton { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 560px) {
    .entete-inner { padding-top: 12px; padding-bottom: 12px; }
    .topbar-liens a[aria-label], .topbar-liens .social-inactif { display: none; }
}

/* ---------- Flash info ---------- */

.flash { background: var(--encre); color: #fff; }
.flash-inner { display: flex; align-items: center; gap: 16px; height: 42px; overflow: hidden; }
.flash-label {
    flex-shrink: 0; padding: 4px 10px; background: var(--orange); font-size: 12px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.flash-piste { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.flash-defilement { --flash-gap: 48px; display: flex; gap: var(--flash-gap); width: max-content; animation: defilement 60s linear infinite; }
.flash-piste.flash-pause .flash-defilement, .flash-piste:active .flash-defilement, .flash-piste:focus-within .flash-defilement { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
    .flash-piste:hover .flash-defilement { animation-play-state: paused; }
}
.flash-item { font-size: 14px; font-weight: 500; white-space: nowrap; }
.flash-item:hover { color: #fff; text-decoration: underline; }
.flash-item time { margin-right: 6px; color: var(--orange); font-weight: 700; }
@keyframes defilement { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--flash-gap) / 2)); } }
@media (prefers-reduced-motion: reduce) {
    .flash-defilement { animation: none; }
    .flash-piste { overflow-x: auto; }
}

/* ---------- Titres de section ---------- */

.section-titre {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 20px; border-top: 3px solid var(--encre); padding-top: 10px;
}
.section-titre h2 {
    font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
}
.section-titre h2::before {
    content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px;
    background: var(--orange); vertical-align: middle; transform: translateY(-2px);
}
.voir-tout { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--orange); }
.voir-tout svg { width: 14px; height: 14px; }
.section-titre-simple { margin-bottom: 16px; font-size: 20px; font-weight: 800; }

/* ---------- Cartes ---------- */

.carte { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.carte-image { position: relative; display: block; overflow: hidden; background: var(--fond-doux); aspect-ratio: 16 / 10; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte:hover .carte-image img { transform: scale(1.03); }
.carte-play {
    position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff;
}
.carte-contenu { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.carte-surtitre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }
.carte-surtitre a:hover { color: var(--orange-fonce); }
.badge-abonne {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
    background: var(--vert); color: #fff; font-size: 10px; letter-spacing: .05em;
}
.badge-premium { background: var(--orange); }
.badge-membre { background: var(--gris); }
.badge-abonne svg { width: 11px; height: 11px; }
.carte-titre { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.carte-titre a:hover { color: var(--orange); }
.carte-chapo { color: var(--gris); font-size: 15px; line-height: 1.55; }
.carte-meta { font-size: 12px; color: var(--gris-clair); }
.carte-auteur { font-weight: 700; color: var(--texte); }

.carte-une .carte-titre { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; }
.carte-une .carte-chapo { font-size: 17px; color: var(--texte); }
.carte-grande .carte-titre { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.carte-moyenne .carte-titre { font-size: 17px; }

.carte-liste { flex-direction: row; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--filet); }
.carte-liste:last-child { border-bottom: 0; }
.carte-liste .carte-image { flex: 0 0 140px; aspect-ratio: 4 / 3; }
.carte-liste .carte-contenu { flex: 1; }
.carte-liste .carte-titre { font-size: 17px; }
.carte-liste .carte-play { width: 30px; height: 30px; left: 6px; bottom: 6px; }
.carte-liste .carte-play svg { width: 14px; height: 14px; }
@media (min-width: 768px) { .carte-liste .carte-image { flex-basis: 200px; } .carte-liste .carte-titre { font-size: 19px; } }

.carte-petite .carte-titre { font-size: 16px; }

.carte-tribune { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; background: var(--fond-doux); }
.carte-auteur-photo { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--filet); border: 3px solid var(--orange); }
.carte-auteur-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-auteur-photo span { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 900; font-size: 28px; color: var(--gris); }
.carte-tribune .carte-surtitre { justify-content: center; }
.carte-tribune .carte-titre { font-family: var(--police-article); font-size: 22px; font-weight: 600; font-style: italic; }
.carte-tribune .carte-titre::before { content: "« "; color: var(--orange); }
.carte-tribune .carte-titre::after { content: " »"; color: var(--orange); }

/* ---------- Accueil ---------- */

.une { padding: 28px 0 40px; }
.une-grille { display: grid; gap: var(--espace); }
.une-secondaires { display: grid; gap: 24px; }
@media (min-width: 640px) { .une-secondaires { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
    .une-grille { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
    .une-principale { padding-right: var(--espace); border-right: 1px solid var(--filet); }
    .une-secondaires { grid-template-columns: 1fr 1fr; align-content: start; }
}

.avec-colonne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 48px; }
@media (min-width: 1000px) { .avec-colonne { grid-template-columns: minmax(0, 1fr) 320px; } }

.fil-liste { display: flex; flex-direction: column; gap: 16px; }

.colonne { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1000px) { .colonne > :last-child { position: sticky; top: 16px; } }
.colonne-titre { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--orange); font-size: 17px; font-weight: 900; text-transform: uppercase; }
.plus-lus ol { margin: 0; padding: 0; list-style: none; counter-reset: rang; }
.plus-lus li { counter-increment: rang; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--filet); font-weight: 700; font-size: 15px; line-height: 1.3; }
.plus-lus li::before { content: counter(rang); flex-shrink: 0; width: 28px; font-size: 30px; font-weight: 900; line-height: 1; color: var(--orange); }
.encart-newsletter { padding: 20px; background: var(--fond-doux); border-top: 4px solid var(--vert); }
.encart-newsletter .colonne-titre { border: 0; padding: 0; margin-bottom: 8px; }
.encart-newsletter p { margin-bottom: 14px; font-size: 14px; color: var(--gris); }

.bloc-rubrique { margin-bottom: 48px; }
.bloc-rubrique-grille { display: grid; gap: 28px; }
.bloc-rubrique-liste { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .bloc-rubrique-grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

.bloc-videos {
    margin: 0 calc(var(--gouttiere) * -1) 48px; padding: 32px var(--gouttiere);
    background: var(--fond-sombre); color: #fff;
}
.bloc-videos .carte-titre, .bloc-videos .section-titre h2 { color: #fff; }
.bloc-videos .carte-chapo { color: #bdbdbd; }
.bloc-videos .carte-liste { border-color: #2c2c2c; }
.section-titre-inverse { border-color: #fff; }
.videos-grille { display: grid; gap: 28px; }
.videos-liste { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .videos-grille { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (min-width: 1288px) { .bloc-videos { border-radius: var(--rayon); margin-left: 0; margin-right: 0; padding-left: 32px; padding-right: 32px; } }

.bloc-tribunes { margin-bottom: 48px; }
.tribunes-grille { display: grid; gap: 20px; }
@media (min-width: 600px) { .tribunes-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tribunes-grille { grid-template-columns: repeat(4, 1fr); } }

.grille-4 { display: grid; gap: 24px; }
@media (min-width: 600px) { .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille-4 { grid-template-columns: repeat(4, 1fr); } }

.appel-abonnement {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 48px; padding: 32px; background: var(--orange); color: #fff;
}
.appel-abonnement h2 { color: #fff; font-size: 26px; font-weight: 900; margin-bottom: 6px; }

/* ---------- Publicité ---------- */

.pub { position: relative; display: flex; flex-direction: column; align-items: center; margin: 24px auto; }
.pub-label { margin-bottom: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--gris-clair); }
.pub img { margin: 0 auto; }
.pub-vide {
    justify-content: center; background: repeating-linear-gradient(45deg, var(--fond-doux), var(--fond-doux) 10px, #efeee9 10px, #efeee9 20px);
    border: 1px dashed #d6d4cc; color: var(--gris-clair); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.pub-banniere.pub-vide { width: 100%; max-width: 970px; height: 90px; }
.pub-pave.pub-vide { width: 300px; max-width: 100%; height: 250px; }
.pub-article.pub-vide { width: 100%; height: 120px; }
.colonne .pub { margin: 0 auto; }

/* ---------- Newsletter ---------- */

.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input {
    flex: 1 1 180px; min-width: 0; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: var(--rayon);
    font: inherit; font-size: 14px; background: #fff; color: var(--encre);
}
.newsletter-form input:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
.nl-chargement, .nl-message { display: none; }
.newsletter-form.loading .nl-defaut { display: none; }
.newsletter-form.loading .nl-chargement { display: inline; }
.nl-message { flex-basis: 100%; font-size: 13px; }
.newsletter-form.success .nl-succes { display: block; color: var(--vert-fonce); }
.newsletter-form.error .nl-erreur { display: block; color: #c62828; }

/* ---------- Article ---------- */

.article { min-width: 0; padding-top: 24px; }
.article-entete { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.article-titre { font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; }
.article-chapo { font-size: 20px; line-height: 1.5; color: #444; font-weight: 500; }
.article-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--gris); }
.article-auteurs { display: flex; flex-wrap: wrap; gap: 14px; }
.article-auteur { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--encre); }
.article-auteur img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.partage { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.partage-label { margin-right: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.partage a, .partage button {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--filet); border-radius: 50%; background: #fff; color: var(--encre);
}
.partage a:hover, .partage button:hover { border-color: var(--orange); background: var(--orange); color: #fff; }
.partage svg { width: 16px; height: 16px; }
.partage button.copie { background: var(--vert); border-color: var(--vert); color: #fff; }

.article-image { margin: 0 0 28px; }
.article-image img { width: 100%; }
.article-image figcaption, .gh-content figcaption { padding-top: 8px; font-size: 13px; color: var(--gris); text-align: left; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.article-tags a { padding: 6px 12px; background: var(--fond-doux); font-size: 13px; font-weight: 700; }
.article-tags a:hover { background: var(--orange); color: #fff; }

.article-bio { display: flex; gap: 16px; margin: 32px 0; padding: 20px; border-left: 4px solid var(--orange); background: var(--fond-doux); }
.article-bio img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.article-bio-nom { display: block; margin-bottom: 4px; font-weight: 900; }
.article-bio p { font-size: 14px; color: var(--gris); }

.article-commentaires { margin-top: 40px; }
.a-lire-aussi { margin-bottom: 48px; }

/* Corps de l'article (contenu de l'éditeur) */
.gh-content { font-family: var(--police-article); font-size: 21px; line-height: 1.65; color: #1f1f1f; }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 1.6em; font-family: var(--police-titre); letter-spacing: -.015em; }
.gh-content h2 { font-size: 28px; font-weight: 900; }
.gh-content h3 { font-size: 22px; font-weight: 800; }
.gh-content a { color: var(--orange-fonce); text-decoration: underline; text-underline-offset: 3px; }
.gh-content blockquote:not([class]) {
    margin-left: 0; margin-right: 0; padding-left: 20px; border-left: 4px solid var(--orange);
    font-style: italic; font-size: 1.1em;
}
.gh-content blockquote.kg-blockquote-alt {
    margin: 1.6em 0; padding: 0 1em; border: 0; text-align: center; font-size: 1.35em; font-style: italic; color: var(--encre);
}
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .4em; }
.gh-content hr { margin: 2em auto; width: 80px; border: 0; border-top: 3px solid var(--orange); }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content img { margin: 0 auto; }
.gh-content code { padding: 2px 5px; background: var(--fond-doux); font-size: .85em; }
.gh-content pre { overflow-x: auto; padding: 16px; background: var(--fond-sombre); color: #f5f5f5; font-size: 15px; }
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--police-texte); font-size: 15px; }
.gh-content th, .gh-content td { padding: 8px 10px; border-bottom: 1px solid var(--filet); text-align: left; }
.gh-content > p:first-of-type::first-letter {
    float: left; margin: 6px 10px 0 0; font-family: var(--police-titre); font-size: 3.6em; font-weight: 900;
    line-height: .8; color: var(--orange);
}
.page .gh-content > p:first-of-type::first-letter { all: unset; }

/* Cartes Koenig : largeurs */
.kg-width-wide, .kg-width-full { position: relative; }
@media (min-width: 1000px) {
    .kg-width-wide { width: calc(100% + 80px); margin-left: -40px; }
}
.kg-width-full img { width: 100%; }
.kg-image-card img, .kg-gallery-card img { width: 100%; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }
.kg-callout-card { font-family: var(--police-texte); font-size: 17px; }

.pub-article { margin: 32px auto; }

/* Paywall */
.paywall {
    position: relative; margin-top: 8px; padding: 36px 28px; text-align: center; font-family: var(--police-texte);
    background: var(--fond-doux); border-top: 4px solid var(--orange);
}
.paywall::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px;
    background: linear-gradient(transparent, #fff); pointer-events: none;
}
.paywall-icone { display: inline-flex; padding: 10px; margin-bottom: 10px; border-radius: 50%; background: var(--vert); color: #fff; }
.paywall h2 { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.paywall p { margin: 0 0 20px; color: var(--gris); font-size: 16px; }
.paywall-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gh-content .paywall a { text-decoration: none; }
.gh-content .paywall .bouton-accent { color: #fff; }
.paywall-connexion { font-size: 14px; font-weight: 700; color: var(--encre) !important; }

/* ---------- Archives (rubrique, auteur) ---------- */

.archive-entete { padding: 32px 0 20px; border-bottom: 3px solid var(--encre); margin-bottom: 8px; }
.archive-centre { text-align: center; border: 0; }
.archive-type { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.archive-entete h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -.035em; }
.archive-entete p { max-width: 720px; margin-top: 10px; font-size: 18px; color: var(--gris); }
.archive-centre p { margin-left: auto; margin-right: auto; }
.archive-auteur { display: flex; align-items: center; gap: 24px; }
.archive-auteur img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--orange); }
.archive-liens { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--gris); }
.archive-liste { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; min-width: 0; }
.archive-liste > .carte-une { padding-bottom: 24px; border-bottom: 1px solid var(--filet); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--gris); }

/* ---------- Abonnement ---------- */

.formules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 24px 0 48px; }
@media (min-width: 760px) { .formules { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.formule { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--filet); border-top: 4px solid var(--encre); }
.formule-payante { border-top-color: var(--orange); }
.formule h2 { font-size: 22px; font-weight: 900; }
.formule-description { color: var(--gris); }
.formule-prix { font-size: 34px; font-weight: 900; color: var(--encre); }
.formule-prix span { font-size: 15px; font-weight: 600; color: var(--gris); }
.formule-prix-annuel { margin-top: -8px; font-size: 14px; color: var(--vert-fonce); font-weight: 700; }
.formule ul { flex: 1; margin: 0; padding: 0; list-style: none; }
.formule li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.formule li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 900; }

/* Formules : étapes, mise en avant, comparatif, FAQ */
.etapes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--gris); }
.etapes strong { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--encre); color: #fff; font-size: 12px; }
.formule { position: relative; }
.formule-vedette { border-top-color: var(--orange); box-shadow: 0 8px 24px rgba(20, 20, 20, .08); }
@media (min-width: 760px) { .formule-vedette { transform: translateY(-8px); } }
.formule-badge { position: absolute; top: -12px; right: 20px; padding: 3px 10px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.formule-statut { margin: auto 0 0; font-weight: 700; color: var(--vert-fonce); }
.formule .bouton { margin-top: auto; }
.comparatif, .faq { max-width: 820px; margin: 0 auto 48px; }
.comparatif h2, .faq h2 { margin-bottom: 16px; font-size: 24px; font-weight: 900; text-align: center; }
.comparatif-defilement { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparatif table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.comparatif th, .comparatif td { padding: 12px 10px; border-bottom: 1px solid var(--filet); text-align: center; }
.comparatif tbody th { text-align: left; font-weight: 500; }
.comparatif thead th { font-weight: 900; }
.comparatif td { color: var(--vert-fonce); font-weight: 800; }
.comparatif td span[aria-hidden] { color: var(--gris-clair); font-weight: 400; }
.comparatif .comparatif-vedette { background: #fff4ec; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { position: relative; padding: 16px 32px 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--texte); line-height: 1.6; }
.faq details a { color: var(--orange-fonce); text-decoration: underline; }

/* Paiement local (mobile money) */
.abonnement-actif { max-width: 640px; margin: 16px auto 0; padding: 12px 16px; border-left: 4px solid var(--vert); background: var(--fond-doux); font-size: 15px; }
.durees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 520px; margin: 24px auto 0; padding: 0; border: 0; }
.durees[hidden] { display: none; }
.duree { position: relative; cursor: pointer; }
.duree input { position: absolute; opacity: 0; }
.duree span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; padding: 9px 6px; border: 2px solid var(--encre); border-radius: var(--rayon); font-size: 14px; font-weight: 700; text-align: center; }
.duree em { white-space: nowrap; }
.duree em { font-style: normal; font-size: 12px; color: var(--vert-fonce); }
.duree input:checked + span { background: var(--encre); color: #fff; }
.duree input:checked + span em { color: #8ff0a4; }
.duree input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.formule-choisie { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.paiement { max-width: 520px; margin: 0 auto 48px; padding: 28px var(--gouttiere); border: 1px solid var(--filet); border-top: 4px solid var(--orange); scroll-margin-top: 16px; }
.paiement h2 { font-size: 22px; font-weight: 900; }
.paiement-recap { margin: 6px 0 20px; font-weight: 700; color: var(--orange-fonce); }
.paiement-form { display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 14px; font-weight: 700; }
.champ label span { font-weight: 400; color: var(--gris); }
.champ input { width: 100%; padding: 12px; border: 1px solid #cfcfcf; border-radius: var(--rayon); font: inherit; font-size: 16px; background: #fff; color: var(--encre); }
.champ input:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
.champ small { font-size: 13px; color: var(--gris); }
.paiement-erreur { margin: 0; font-size: 14px; color: #c62828; }
.paiement-bouton { width: 100%; padding: 14px 16px; font-size: 16px; }
.paiement-bouton:disabled { opacity: .6; cursor: default; }
.paiement-note { margin: 0; font-size: 13px; color: var(--gris); text-align: center; }
.bandeau-paiement { max-width: var(--largeur); margin: 16px auto 0; padding: 14px var(--gouttiere); background: var(--vert-fonce); color: #fff; font-weight: 600; }

/* ---------- Erreur ---------- */

.erreur { padding: 64px var(--gouttiere) 0; text-align: center; }
.erreur-code { display: block; font-size: 110px; font-weight: 900; line-height: 1; color: var(--orange); letter-spacing: -.05em; }
.erreur h1 { margin: 10px 0; font-size: 32px; font-weight: 900; }
.erreur > p { margin-bottom: 24px; color: var(--gris); }
.erreur .a-lire-aussi { margin-top: 64px; text-align: left; }

/* ---------- Pied de page ---------- */

.pied { margin-top: 32px; padding: 36px 0 20px; background: var(--fond-sombre); color: #bdbdbd; font-size: 14px; border-top: 5px solid var(--orange); }
.pied a:hover { color: #fff; }
.pied-haut { display: grid; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid #2c2c2c; }
@media (min-width: 760px) { .pied-haut { grid-template-columns: 1.2fr 1.4fr .8fr 1.6fr; } }
.logo-pied { justify-self: start; justify-content: flex-start; width: fit-content; color: #fff; margin-bottom: 8px; }
.logo-pied:hover { color: #fff; }
.logo-pied .logo-texte { font-size: 36px; }
.pied h3 { margin-bottom: 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.pied-section { min-width: 0; }
.pied-section-titre { list-style: none; cursor: default; }
.pied-section-titre::-webkit-details-marker { display: none; }
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li + li { margin-top: 6px; }
/* 10 rubriques : deux colonnes plutôt qu’une longue liste */
.pied-rubriques ul { columns: 2; column-gap: 24px; }
.pied-rubriques li { break-inside: avoid; }
.pied-rubriques li + li { margin-top: 0; }
.pied-rubriques li { padding-bottom: 6px; }
.pied-newsletter p { margin-bottom: 14px; }
.pied-newsletter input { border-color: #3a3a3a; background: #1f1f1f; color: #fff; }
.pied-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied-credit strong { color: #fff; font-weight: 800; letter-spacing: .02em; }
.paiement-note a { color: inherit; text-decoration: underline; }
/* Champs juridiques à remplir : repérés par main.js */
.a-completer { background: #fff1c2; color: #7a4b00; padding: 1px 4px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 13px; color: #8a8a8a; }

/* ---------- Lecture et navigation sur téléphone ---------- */

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.comparatif-aide { display: none; }

@media (max-width: 999px) {
    .entete { position: sticky; top: 0; z-index: 50; }
    .bouton-icone { width: 44px; height: 44px; }
    .rubriques-inner { padding-top: max(12px, env(safe-area-inset-top)); }
    .rubrique-lien { min-height: 48px; }
    .pub-vide { display: none; }
    .newsletter-form input { font-size: 16px; }
    .newsletter-form .bouton { min-height: 44px; }
    .partage a, .partage button { width: 44px; height: 44px; }
    .colonne { min-width: 0; }
    .comparatif, .comparatif-defilement { min-width: 0; max-width: 100%; }
}

@media (min-width: 640px) and (max-width: 999px) {
    .une { padding-top: 24px; }
    .une-secondaires .carte-image { aspect-ratio: 16 / 9; }
    .colonne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .pied-haut { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    :root { --espace: 20px; }
    .topbar-inner { min-height: 32px; gap: 8px; }
    .topbar-date { font-size: 11px; }
    .topbar-liens a { align-items: center; min-height: 32px; font-size: 12px; white-space: nowrap; }
    .entete-inner { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
    .entete .logo { justify-self: start; min-width: 0; }
    .entete .logo-texte { font-size: 32px; }
    .entete .logo img { max-height: 36px; max-width: 100%; }
    .entete-actions { gap: 2px; }
    .entete-actions .bouton { min-height: 44px; padding: 9px 10px; font-size: 12px; }

    /* Défilement continu sur deux lignes, avec pause pendant l'interaction. */
    .flash-inner { height: 52px; gap: 10px; }
    .flash-label { padding: 6px 8px; font-size: 10px; letter-spacing: .03em; }
    .flash-piste { min-width: 0; overflow-x: auto; mask-image: none; scrollbar-width: none; overscroll-behavior-x: contain; }
    .flash-piste::-webkit-scrollbar { display: none; }
    .flash-defilement { --flash-gap: 20px; }
    .flash-item { display: flex; align-items: center; gap: 8px; width: min(300px, calc(100vw - 124px)); min-height: 44px; white-space: normal; font-size: 12px; line-height: 1.4; }
    .flash-item time { flex: none; margin: 0; font-size: 11px; }
    .flash-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .une { padding: 16px 0 28px; }
    .une-grille { gap: 20px; }
    .carte-une .carte-image, .carte-grande .carte-image { aspect-ratio: 16 / 9; }
    .carte-une .carte-titre { font-size: clamp(25px, 7vw, 30px); line-height: 1.15; }
    .carte-une .carte-chapo { font-size: 16px; line-height: 1.55; }
    .une-secondaires, .grille-4 { gap: 0; border-top: 1px solid var(--filet); }
    .une-secondaires .carte, .grille-4 .carte-moyenne { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
    .carte-moyenne .carte-image { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
    .carte-moyenne .carte-contenu { grid-column: 1 / -1; grid-row: 1; }
    .carte-moyenne .carte-image + .carte-contenu { grid-column: 1; }
    .carte-moyenne .carte-titre { font-size: 16px; line-height: 1.35; }
    .carte-moyenne .carte-play { width: 30px; height: 30px; left: 6px; bottom: 6px; }
    .carte-moyenne .carte-play svg { width: 14px; height: 14px; }
    .carte-surtitre { gap: 6px; font-size: 11px; letter-spacing: .03em; }
    .carte-meta { font-size: 12px; color: var(--gris); }
    .carte-liste { gap: 12px; }
    .carte-liste .carte-image { flex-basis: 96px; }
    .carte-liste .carte-titre { font-size: 16px; line-height: 1.35; }
    .carte-grande .carte-titre { font-size: 23px; }
    .carte-grande .carte-chapo { font-size: 15px; }
    .avec-colonne { gap: 28px; margin-bottom: 32px; }
    .colonne { gap: 24px; }
    .section-titre { align-items: center; gap: 12px; margin-bottom: 16px; }
    .section-titre h2 { font-size: 19px; }
    .section-titre h2::before { width: 8px; height: 8px; margin-right: 8px; }
    .voir-tout { flex-shrink: 0; min-height: 44px; font-size: 12px; }
    .bloc-rubrique, .bloc-tribunes, .bloc-videos { margin-bottom: 32px; }
    .bloc-rubrique-grille, .videos-grille { gap: 20px; }
    .bloc-videos { padding-top: 24px; padding-bottom: 24px; }
    .appel-abonnement { margin-bottom: 32px; padding: 24px 20px; }
    .appel-abonnement h2 { font-size: 24px; }
    .appel-abonnement .bouton { width: 100%; min-height: 44px; }

    .article { padding-top: 20px; }
    .article-titre { font-size: clamp(28px, 7.8vw, 34px); line-height: 1.12; }
    .article-chapo { font-size: 18px; }
    .article-date { font-size: 12px; line-height: 1.6; }
    .article-corps { overflow-wrap: anywhere; }
    .gh-content { font-size: 20px; }
    .article-image { margin-bottom: 20px; }
    .article-bio { padding: 16px; gap: 12px; }
    .paywall { padding: 28px 20px; }
    .paywall .bouton { width: 100%; min-height: 44px; white-space: normal; }
    .paywall-connexion { display: inline-flex; align-items: center; min-height: 44px; }
    .archive-entete { padding: 24px 0 16px; }
    .archive-entete h1 { font-size: 32px; }
    .archive-entete p { font-size: 16px; }
    .archive-auteur { gap: 16px; }
    .archive-auteur img { width: 72px; height: 72px; }
    .pagination { flex-wrap: wrap; }
    .pagination a { display: inline-flex; align-items: center; min-height: 44px; }

    .etapes { flex-direction: column; gap: 12px; margin-top: 12px; font-size: 13px; }
    .etapes li { display: flex; align-items: flex-start; gap: 8px; }
    .etapes strong { flex: none; margin: 0; }
    .durees { gap: 4px; margin-top: 20px; }
    .duree { min-width: 0; }
    .duree span { padding: 10px 3px; font-size: 12px; }
    .duree em { font-size: 10px; white-space: normal; }
    .formules { gap: 24px; margin-bottom: 32px; }
    .formule { padding: 24px 20px; gap: 10px; }
    .formule-prix { font-size: clamp(28px, 8vw, 34px); }
    .formule .bouton { min-height: 44px; white-space: normal; }
    .comparatif, .faq { margin-bottom: 32px; }
    .comparatif h2, .faq h2 { font-size: 22px; text-align: left; }
    .comparatif-aide { display: block; margin-bottom: 12px; font-size: 13px; color: var(--gris); }
    .comparatif-defilement { overscroll-behavior-x: contain; }
    .comparatif tbody th { position: sticky; left: 0; max-width: 180px; background: var(--fond); }
    .paiement { scroll-margin-top: 84px; }
    .pied { padding: 28px 0 calc(20px + env(safe-area-inset-bottom)); }
    .pied-haut { gap: 0; padding-bottom: 24px; }
    .pied-marque { padding-bottom: 24px; text-align: center; }
    .pied-marque .logo-pied { margin: 0 auto 10px; }
    .pied-marque .logo-texte { font-size: 32px; }
    .pied-marque p { max-width: 30ch; margin: 0 auto; color: #bdbdbd; }
    .pied-section { border-top: 1px solid #303030; }
    .pied-journal { border-bottom: 1px solid #303030; }
    .pied-section-titre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; }
    .pied-section-titre h3 { margin: 0; }
    .pied-section-titre::after { content: "+"; color: var(--orange); font-size: 24px; font-weight: 400; line-height: 1; }
    .pied-section[open] .pied-section-titre::after { content: "−"; }
    .pied-section ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding-bottom: 16px; columns: auto; }
    .pied-section li, .pied-section li + li { margin: 0; padding: 0; }
    .pied-section li a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
    .pied-newsletter { margin-top: 24px; padding: 20px 16px; border: 1px solid #303030; border-radius: 6px; background: #1b1b1b; }
    .pied-newsletter h3 { margin-bottom: 10px; }
    .pied-newsletter p { font-size: 14px; line-height: 1.6; }
    .pied-newsletter .newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; position: relative; }
    .pied-newsletter input { width: 100%; min-height: 48px; padding: 12px; font-size: 16px; }
    .pied-newsletter .bouton { width: 100%; min-height: 48px; }
    .pied-newsletter .nl-message { margin: 0; }
    .pied-bas { flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; text-align: center; }
    .pied-legal { order: -1; justify-content: center; width: 100%; gap: 0 16px; }
    .pied-legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; }
    .pied-legal a:last-child { flex-basis: 100%; }
    .pied-copyright { color: #aaa; }
    .pied-credit { display: block; color: #aaa; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rubriques, .carte-image img { transition: none; }
    .flash-copie { display: none; }
}
