/* theme/actualites.css — la page /des-actualites (copie de l’aperçu _apercus/flux/04-le-hub/style.css, intégrée le 30 octobre 2026 ;
   l’aperçu reste le banc d’essai). */
/* ==========================================================================
   le fil — direction 4, « le hub ».

   Le monde de l'admin (admin/hub.css) : Signifier pour les titres et la
   lecture, Söhne pour l'interface, blanc et noir, filets fins, pastilles,
   rouge #C00F0F en accent (la une, le neuf). Aucune police mono : les
   chiffres s'alignent par tabular-nums. Trois volets sur ordinateur, une
   colonne et une feuille de lecture au téléphone.
   ========================================================================== */

/* --- Les polices de l'admin ---------------------------------------------- */
@font-face { font-family: "Signifier"; src: url("/admin/fonts/Signifier-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Signifier"; src: url("/admin/fonts/Signifier-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Signifier"; src: url("/admin/fonts/Signifier-RegularItalic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Signifier"; src: url("/admin/fonts/Signifier-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("/admin/fonts/Sohne-Buch.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("/admin/fonts/Sohne-BuchKursiv.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("/admin/fonts/Sohne-Kraftig.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("/admin/fonts/Sohne-Halbfett.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }

/* --- Les couleurs : le jour ---------------------------------------------- */
:root {
    --serif: "Signifier", "Times New Roman", Times, serif;
    --sans: "Sohne", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --papier: #ffffff;
    --papier-cote: #f6f6f4;            /* le volet des rubriques, la barre de commande */
    --encre: #000000;
    --texte: #161616;
    --attenue: #686868;                /* 5,5:1 sur blanc, 5,1:1 sur le volet */
    --efface: rgba(0, 0, 0, .2);
    --filet: rgba(0, 0, 0, .1);
    --filet-fort: #000000;
    --survol: rgba(0, 0, 0, .04);
    --rouge: #c00f0f;                  /* la couverture de la veille, l'accent du hub */
    --focus: #1500ff;                  /* le bleu des liens du site */
    --choisi: #000000;                 /* l'article choisi : la pastille active du hub */
    --choisi-texte: #ffffff;
    --choisi-attenue: rgba(255, 255, 255, .7);
    --barre: #000000;
    --barre-ancienne: #c9c9c6;         /* les heures d'avant ta visite */
    --marque: rgba(255, 214, 10, .45); /* le surlignage de la recherche */
    --passe-partout: #f1f1ee;
    --voile: rgba(0, 0, 0, .28);
    --ombre-feuille: -24px 0 48px rgba(0, 0, 0, .12);
    --image: none;

    --haut-commande: 34px;
    --haut-barre-app: 0px;
    color-scheme: light;
}

/* --- La nuit : le #000000 du hub, adouci pour lire --------------------------
   Noir franc (les écrans OLED s'éteignent), un blanc chaud pour le texte, la
   sélection en gris profond plutôt qu'en blanc, les images un peu baissées. */
@media (prefers-color-scheme: dark) {
    :root:not([data-fond="clair"]) {
        --papier: #000000;
        --papier-cote: #0c0c0c;
        --encre: #f4f2ed;
        --texte: #e6e3dd;
        --attenue: #9d9a94;
        --efface: rgba(255, 255, 255, .26);
        --filet: rgba(255, 255, 255, .12);
        --filet-fort: #f4f2ed;
        --survol: rgba(255, 255, 255, .05);
        --rouge: #ff453a;
        --focus: #8f8aff;
        --choisi: #262624;
        --choisi-texte: #ffffff;
        --choisi-attenue: rgba(255, 255, 255, .66);
        --barre: #e6e3dd;
        --barre-ancienne: #3d3c3a;
        --marque: rgba(255, 214, 10, .32);
        --passe-partout: #121211;
        --voile: rgba(0, 0, 0, .6);
        --ombre-feuille: -24px 0 48px rgba(0, 0, 0, .7);
        --image: brightness(.86);
        color-scheme: dark;
    }
}
:root[data-fond="noir"] {
    --papier: #000000;
    --papier-cote: #0c0c0c;
    --encre: #f4f2ed;
    --texte: #e6e3dd;
    --attenue: #9d9a94;
    --efface: rgba(255, 255, 255, .26);
    --filet: rgba(255, 255, 255, .12);
    --filet-fort: #f4f2ed;
    --survol: rgba(255, 255, 255, .05);
    --rouge: #ff453a;
    --focus: #8f8aff;
    --choisi: #262624;
    --choisi-texte: #ffffff;
    --choisi-attenue: rgba(255, 255, 255, .66);
    --barre: #e6e3dd;
    --barre-ancienne: #3d3c3a;
    --marque: rgba(255, 214, 10, .32);
    --passe-partout: #121211;
    --voile: rgba(0, 0, 0, .6);
    --ombre-feuille: -24px 0 48px rgba(0, 0, 0, .7);
    --image: brightness(.86);
    color-scheme: dark;
}

/* --- Le fond --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--papier); }
body {
    margin: 0;
    background: var(--papier);
    color: var(--texte);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.003em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
abbr { text-decoration: none; }
mark { background: var(--marque); color: inherit; border-radius: 2px; padding: 0 .04em; }
.lc-titre mark { background: linear-gradient(to top, var(--marque) 0 34%, transparent 34%); padding: 0; border-radius: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visuellement-cache {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sep { color: var(--efface); padding: 0 .1em; }

kbd {
    display: inline-block; min-width: 1.45em; padding: .14em .36em .1em;
    font: 500 11px/1.2 var(--sans); text-align: center; letter-spacing: 0;
    color: var(--encre); background: var(--papier);
    border: 1px solid var(--efface); border-bottom-width: 1.5px; border-radius: 4px;
}

.exemple {
    display: inline-block; margin-left: .3em; padding: .05em .45em .08em;
    font: italic 400 11px/1.3 var(--sans); letter-spacing: 0; vertical-align: .08em;
    color: var(--attenue); border: 1px dashed var(--efface); border-radius: 999px;
    white-space: nowrap;
}

.lien-discret {
    padding: 0; background: none; border: 0; cursor: pointer;
    color: var(--attenue); text-decoration: underline; text-decoration-color: var(--efface);
    text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.lien-discret:hover { color: var(--encre); text-decoration-color: currentColor; }

.icone {
    display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
    background: none; border: 0; border-radius: 999px; cursor: pointer; color: var(--encre);
}
.icone:hover { background: var(--survol); }
.icone:disabled { color: var(--efface); cursor: default; background: none; }

/* Les pastilles du hub. */
.bouton {
    display: inline-flex; align-items: center; gap: .45em;
    font: 500 14px/1 var(--sans); letter-spacing: 0;
    padding: .72em 1.25em .7em;
    color: var(--papier); background: var(--encre);
    border: 1px solid var(--encre); border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: opacity .12s ease;
}
.bouton:hover { opacity: .78; }
.bouton .fleche { width: 12px; height: 12px; stroke-width: 1.6; }
.bouton-discret { background: none; color: var(--encre); border-color: var(--efface); }

/* ==========================================================================
   Les trois volets
   ========================================================================== */

.app {
    display: grid;
    grid-template-columns: 252px minmax(360px, 452px) minmax(0, 1fr);
    height: calc(100vh - var(--haut-commande));
    height: calc(100dvh - var(--haut-commande));
}
.volet { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.volet-nav { background: var(--papier-cote); border-right: 1px solid var(--filet); display: flex; flex-direction: column; }
.volet-liste { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--filet); }
.liste { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.volet-lecture { position: relative; background: var(--papier); container-type: inline-size; container-name: lecture; }
.volet-lecture:focus, .volet-lecture:focus-visible { outline: none; }

@media (min-width: 1600px) {
    .app { grid-template-columns: 272px 500px minmax(0, 1fr); }
}
@media (max-width: 1279px) and (min-width: 960px) {
    .app { grid-template-columns: 216px minmax(320px, 376px) minmax(0, 1fr); }
    .nav-nouveaux .exemple { display: none; }   /* le sommaire et le repère le disent déjà */
}

/* --- Le volet de gauche -------------------------------------------------- */
.nav-tete { padding: 22px 20px 16px; }
.nav-fermer { display: none; }
.nav-tete .marque { margin: 0; font: 300 40px/.9 var(--serif); letter-spacing: -0.035em; }
.nav-tete .marque button { padding: 0; background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; color: var(--encre); }
.sous-titre { margin: 6px 0 0; font-size: 13.5px; color: var(--texte); }
.releve { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--filet); font-size: 12.5px; line-height: 1.45; color: var(--attenue); font-variant-numeric: tabular-nums; }

.nav-vues { padding: 0 10px; }
.nav-item {
    display: flex; align-items: baseline; gap: 10px; width: 100%;
    padding: 6px 10px 6px; margin: 0;
    font-size: 14px; line-height: 1.3; text-align: left;
    background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--texte);
}
.nav-item:hover { background: var(--survol); }
.nav-item.est-actif { background: var(--choisi); color: var(--choisi-texte); }
.nav-item.est-actif .nav-n, .nav-item.est-actif .nav-touche { color: var(--choisi-attenue); }
.nav-touche { width: 1ch; flex: none; font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.nav-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-n { flex: none; font-size: 12.5px; color: var(--attenue); font-variant-numeric: tabular-nums; }

/* La une : une vue à part, en tête. */
.nav-une { padding: 9px 10px 5px; align-items: baseline; }
.nav-une .nav-nom { font: 400 21px/1.05 var(--serif); letter-spacing: -0.02em; }
.nav-une::before {
    content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin-right: -2px;
    background: var(--rouge); border-radius: 1px;
}
.nav-note { margin: 0 0 6px; padding: 0 10px 0 25px; font: italic 400 12.5px/1.3 var(--sans); color: var(--attenue); }
.nav-nouveaux { margin-bottom: 4px; }
.nav-nouveaux .exemple { font-size: 10px; }
.point { flex: none; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); }
.nav-item.est-actif .point { background: var(--choisi-texte); }

.nav-titre {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    margin: 0; padding: 18px 10px 6px;
    font-size: 12px; font-weight: 400; color: var(--attenue);
}
.nav-bloc { padding: 0 10px; }
.nav-bloc .segments { margin: 0 10px 2px; }
.nav-groupe { margin: 12px 10px 2px; font-size: 12px; font-weight: 500; color: var(--texte); }
.nav-tout-afficher { font-size: 12px; }

.segments { display: inline-flex; padding: 2px; border: 1px solid var(--efface); border-radius: 999px; }
.segments button {
    padding: 4px 11px 4px; font-size: 12.5px; line-height: 1.2;
    background: none; border: 0; border-radius: 999px; cursor: pointer; color: var(--attenue);
}
.segments button:hover { color: var(--encre); }
.segments button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }

/* Les sources : une case pour les montrer ou les masquer, le nom pour ne lire qu'elles. */
.sources { list-style: none; margin: 0; padding: 0; }
.source { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 6px; }
.source:hover { background: var(--survol); }
.source.est-active { background: var(--choisi); color: var(--choisi-texte); }
.source.est-active .source-n, .source.est-active abbr { color: var(--choisi-attenue); }
.source-voir {
    appearance: none; -webkit-appearance: none; flex: none; margin: 0;
    width: 13px; height: 13px; border: 1px solid var(--efface); border-radius: 50%;
    background: none; cursor: pointer; display: grid; place-items: center;
}
.source-voir::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.source-voir:not(:checked)::after { opacity: 0; }
.source-voir:hover { border-color: currentColor; }
.source-nom {
    flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px;
    padding: 4px 0; font-size: 13.5px; line-height: 1.3; text-align: left;
    background: none; border: 0; cursor: pointer; color: inherit;
}
.source-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-nom abbr, .so-sources abbr { flex: none; font-size: 10.5px; color: var(--attenue); }
.source-n { flex: none; font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.source.est-masquee .source-nom span { color: var(--attenue); text-decoration: line-through; text-decoration-color: var(--efface); }
.source.est-masquee .source-n { color: var(--efface); }

.nav-pied { margin-top: auto; padding: 24px 20px 20px; font-size: 12px; line-height: 1.45; color: var(--attenue); }
.nav-pied p { margin: 0 0 8px; }

/* --- Le volet du milieu : la tête, le pouls --------------------------------- */
.barre-app { display: none; }
.liste-tete { flex: none; padding: 18px 20px 0; border-bottom: 1px solid var(--filet); background: var(--papier); }
.liste-titre-rang { display: flex; flex-direction: column; gap: 3px; }
.liste-titre { margin: 0; font: 400 26px/1.05 var(--serif); letter-spacing: -0.022em; color: var(--encre); }
.liste-n { margin: 0; min-height: 1.4em; font-size: 12.5px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.liste-n a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--efface); }
.liste-n .exemple { font-size: 10px; }
.filtre-heure {
    display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 8px; margin-left: 1px;
    font-size: 12px; color: var(--papier); background: var(--rouge); border: 0; border-radius: 999px; cursor: pointer;
}
.filtre-heure svg { width: 14px; height: 14px; stroke-width: 1.8; }

.recherche {
    position: relative; display: flex; align-items: center; margin: 12px 0 0;
    border: 1px solid var(--efface); border-radius: 999px; background: var(--papier);
    transition: border-color .12s ease;
}
.recherche:focus-within { border-color: var(--encre); }
.recherche > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--attenue); pointer-events: none; }
.recherche input {
    flex: 1; min-width: 0; height: 34px; padding: 0 34px 0 33px;
    font: 400 14px/1 var(--sans); color: var(--encre);
    background: none; border: 0; border-radius: 999px; outline: none;
    -webkit-appearance: none; appearance: none;
}
.recherche input::placeholder { color: var(--attenue); }
.recherche input::-webkit-search-cancel-button { -webkit-appearance: none; }
.recherche:focus-within { outline: none; }
.recherche-touche { position: absolute; right: 9px; color: var(--attenue); pointer-events: none; }
.recherche input:focus ~ .recherche-touche, .recherche input:not(:placeholder-shown) ~ .recherche-touche { visibility: hidden; }

/* Le pouls : 24 barres, l'axe, la visite. */
.pouls { padding: 12px 0 8px; }
.pouls.est-cache { display: none; }
.pouls-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.pouls-nom { color: var(--texte); }
.pouls-lecture { text-align: right; min-height: 1.4em; }
.pouls-lecture .lien-discret { margin-left: 4px; }
.pouls-barres { position: relative; display: flex; align-items: stretch; height: 38px; margin: 0 -1px; }
.pouls-heure {
    flex: 1; display: flex; align-items: flex-end; height: 100%; padding: 0 1px; margin: 0;
    background: none; border: 0; cursor: pointer; border-radius: 2px;
}
.pouls-heure span {
    display: block; width: 100%;
    height: max(1px, calc(var(--h) * 100%));
    background: var(--barre); border-radius: 1px 1px 0 0;
    transition: background-color .12s ease, opacity .12s ease;
}
.pouls-heure.est-ancienne span { background: var(--barre-ancienne); }
.pouls-heure:hover span { background: var(--rouge); }
.pouls-heure.est-choisie span { background: var(--rouge); }
.pouls-barres:has(.est-choisie) .pouls-heure:not(.est-choisie):not(:hover) span { opacity: .35; }
.pouls-heure.est-lue { box-shadow: inset 0 -2px 0 var(--rouge); }
.pouls-heure:focus-visible { outline-offset: 0; }
.pouls-visite {
    position: absolute; top: -3px; bottom: -4px; width: 0;
    border-left: 1px dashed var(--rouge); pointer-events: none;
}
.pouls-axe { position: relative; height: 16px; margin-top: 4px; font-size: 11px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.pouls-axe span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }

/* --- La liste -------------------------------------------------------------- */
.groupe {
    position: sticky; top: var(--haut-barre-app); z-index: 2;
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 20px 6px; font-size: 12px; color: var(--texte);
    background: var(--papier); border-bottom: 1px solid var(--filet);
    font-variant-numeric: tabular-nums;
}
.groupe span + span { color: var(--attenue); }

.entree { position: relative; border-bottom: 1px solid var(--filet); scroll-margin-top: calc(var(--haut-barre-app) + 34px); scroll-margin-bottom: 8px; }
.ligne {
    position: relative; display: block; padding: 11px 20px 13px 26px;
    color: inherit; text-decoration: none; cursor: default;
}
.ligne:focus-visible { outline-offset: -2px; border-radius: 0; }
.entree:hover { background: var(--survol); }
.l-point { position: absolute; left: 11px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); }
.l-point { transition: opacity .4s ease, transform .4s ease; }
.l-point.est-lu { opacity: 0; transform: scale(.4); }
@media (prefers-reduced-motion: reduce) { .l-point { transition: none; } }
.l-tete { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; line-height: 1.3; }
.l-source { flex: 0 1 auto; min-width: 0; font-weight: 500; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-rubrique { flex: 0 10 auto; min-width: 0; color: var(--attenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-marque { flex: none; font-size: 11.5px; white-space: nowrap; }
.l-marque-une { color: var(--rouge); }
.l-marque-pont { color: var(--attenue); font-style: italic; }
.l-heure { flex: none; margin-left: auto; padding-left: 8px; color: var(--attenue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-titre {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    margin-top: 4px; font: 400 17px/1.24 var(--serif); letter-spacing: -0.008em; color: var(--encre);
    text-wrap: pretty;
}
.l-chapo {
    display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--attenue);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ligne:visited .l-titre { color: var(--attenue); }
.ligne:visited .l-source { color: var(--attenue); }

/* La vignette d'un pont : la seule image de la liste, sans recadrer l'œuvre. */
.l-vignette { float: right; width: 58px; height: 46px; margin: 6px 0 2px 12px; display: grid; place-items: center; }
.l-vignette img { max-width: 100%; max-height: 100%; display: block; filter: var(--image); }

/* Le mot de Matthieu, dans la vue « la une ». */
.l-mot {
    display: block; margin-top: 9px; padding: 1px 0 1px 11px; border-left: 2px solid var(--rouge);
    font: italic 400 15px/1.35 var(--serif); color: var(--texte);
}

/* L'article choisi : la pastille active du hub, en grand. */
.entree.est-choisi { background: var(--choisi); }
.entree.est-choisi .l-titre, .entree.est-choisi .l-source, .entree.est-choisi .l-mot { color: var(--choisi-texte); }
.entree.est-choisi .l-chapo, .entree.est-choisi .l-heure, .entree.est-choisi .l-rubrique,
.entree.est-choisi .l-marque-pont, .entree.est-choisi .ligne:visited .l-titre { color: var(--choisi-attenue); }
.entree.est-choisi .l-point { background: var(--choisi-texte); }
.entree.est-choisi .l-marque-une { color: var(--choisi-texte); }
.entree.est-choisi .exemple { color: var(--choisi-attenue); border-color: var(--choisi-attenue); }
.entree.est-choisi .l-autres { color: var(--choisi-texte); border-color: rgba(255, 255, 255, .35); }
.entree.est-choisi .l-sujet { border-color: rgba(255, 255, 255, .25); }
.entree.est-choisi .l-sujet a, .entree.est-choisi .s-titre { color: var(--choisi-texte); }
.entree.est-choisi .s-tete { color: var(--choisi-attenue); }
.entree.est-choisi mark { background: #f2d35b; color: #000; }
.entree.est-choisi .s-source { color: var(--choisi-texte); }

/* Un sujet : « et 9 autres rédactions », dépliable. */
.l-autres {
    display: inline-flex; align-items: center; gap: 3px;
    margin: -5px 0 12px 26px; padding: 3px 7px 3px 10px;
    font-size: 12px; line-height: 1.25; color: var(--encre);
    background: none; border: 1px solid var(--efface); border-radius: 999px; cursor: pointer;
}
.l-autres:hover { border-color: currentColor; }
.l-autres svg { width: 14px; height: 14px; transition: transform .15s ease; }
.l-autres[aria-expanded="true"] svg { transform: rotate(180deg); }
.l-sujet { list-style: none; margin: -4px 20px 14px 26px; padding: 0 0 0 12px; border-left: 1px solid var(--efface); }
.l-sujet li + li { margin-top: 2px; }
.l-sujet a, .lc-sujet a, .so-lien { display: block; padding: 5px 0; text-decoration: none; color: inherit; }
.l-sujet a:hover .s-titre, .lc-sujet a:hover .s-titre { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--efface); }
.l-sujet a:visited .s-titre, .lc-sujet a:visited .s-titre { color: var(--attenue); }
.s-tete { display: flex; gap: 8px; font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.s-source { font-weight: 500; color: var(--texte); }
.s-titre { display: block; margin-top: 1px; font: 400 15px/1.28 var(--serif); color: var(--encre); }

/* Le repère de la visite. */
.repere {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 9px 20px 8px 26px; font-size: 12px; color: var(--rouge);
    border-bottom: 1px solid var(--rouge); background: var(--papier);
    font-variant-numeric: tabular-nums;
}
.repere-texte { position: relative; }
.repere-texte::before { content: "↑"; position: absolute; left: -15px; }
.repere .exemple { color: var(--rouge); border-color: currentColor; opacity: .8; }
.repere-heure { flex: none; }

.liste-fin { padding: 22px 20px 40px; font-size: 12.5px; color: var(--attenue); text-align: center; }
.liste-fin p { margin: 0 auto 8px; max-width: 30em; }
.liste-fin-note { font-size: 12px; }
.liste-suite { height: 120px; }
.liste-vide { padding: 48px 28px; color: var(--attenue); text-align: center; }
.liste-vide p { margin: 0 0 14px; }

/* --- Le volet de droite : la lecture ------------------------------------------- */
.lecture-barre {
    position: sticky; top: 0; z-index: 3;
    display: flex; align-items: center; gap: 6px;
    height: 50px; padding: 0 14px 0 24px;
    background: var(--papier); border-bottom: 1px solid var(--filet);
}
.lecture-retour {
    display: none; align-items: center; gap: 2px; padding: 6px 10px 6px 2px;
    font-size: 15px; background: none; border: 0; cursor: pointer; color: var(--encre);
}
.lecture-retour svg { width: 22px; height: 22px; }
.lecture-position { flex: 1; font-size: 12.5px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.lecture-fleches { display: inline-flex; gap: 2px; }
.lecture-corps { max-width: 700px; margin: 0 auto; padding: 46px clamp(24px, 7cqi, 52px) 96px; }
.lecture-pied { display: none; }

.lc-surtitre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; color: var(--attenue); }
.lc-surtitre .lien-discret { color: var(--texte); font-weight: 500; text-decoration: none; }
.lc-surtitre .lien-discret:hover { text-decoration: underline; }
.lc-nouveau { margin-left: 6px; padding: 1px 8px 2px; font-size: 11.5px; color: var(--rouge); border: 1px solid currentColor; border-radius: 999px; }
.lc-titre {
    margin: 14px 0 0; font: 300 clamp(29px, 6.4cqi, 42px)/1.07 var(--serif); letter-spacing: -0.03em; color: var(--encre);
    text-wrap: balance;
}
.lc-titre a { text-decoration: none; }
.lc-titre a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--efface); }
.lc-titre a:visited { color: var(--attenue); }
.lc-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0 0; font-size: 13.5px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.lc-meta span:first-child { color: var(--texte); }
.lc-chapo {
    margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--filet);
    font: 400 21px/1.48 var(--serif); letter-spacing: -0.006em; color: var(--texte);
    text-wrap: pretty; hanging-punctuation: first;
}
.lc-chapo-vide { font-style: italic; color: var(--attenue); font-size: 18px; }
.lc-mot + .lc-chapo { border-top: 0; padding-top: 0; }
.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 30px 0 0; }
.lc-domaine { font-size: 13px; color: var(--attenue); }
.lc-source .s-titre { font-size: 16px; }

/* Le mot de Matthieu : la seule voix de la page. */
.lc-mot { margin: 28px 0 0; padding: 18px 0 20px 18px; border-top: 1px solid var(--filet); border-left: 0; position: relative; }
.lc-mot::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 22px; width: 2px; background: var(--rouge); }
.lc-mot-tete { margin: 0; font-size: 12.5px; color: var(--rouge); }
.lc-mot-tete .exemple { color: var(--attenue); }
.lc-mot-texte { margin: 6px 0 0; font: italic 400 22px/1.4 var(--serif); letter-spacing: -0.01em; color: var(--encre); }
.lc-mot-date { margin: 8px 0 0; font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums; }

.lc-section { margin: 44px 0 0; padding-top: 12px; border-top: 1.5px solid var(--filet-fort); }
.lc-section h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--encre); }
.lc-section h2 span { font-weight: 400; color: var(--attenue); text-align: right; }
.lc-section ol, .lc-section ul { list-style: none; margin: 0; padding: 0; }
.lc-sujet li { border-top: 1px solid var(--filet); }
.lc-sujet li:first-child { border-top: 0; }
.lc-sujet a { padding: 9px 0; }
.lc-sujet .s-titre { font-size: 16.5px; }

/* Le pont : la page d'éclectique qui répond, comme un cartel. */
.pont { display: block; text-decoration: none; color: inherit; }
.pont-cadre { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--passe-partout); }
/* Le mur : l'œuvre entière, jamais recadrée, au milieu du passe-partout. */
.pont-mur { position: absolute; inset: 24px; display: flex; align-items: center; justify-content: center; }
.pont-mur img {
    display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 8px 22px rgba(0, 0, 0, .12);
    filter: var(--image); transition: filter .2s ease;
}
/* Un film : l'image sur le noir de la salle, sans cadre. */
.pont-film .pont-cadre { aspect-ratio: 16 / 9; background: #000; }
.pont-film .pont-mur { inset: 0; }
.pont-film .pont-mur img { box-shadow: none; }
.pont:hover .pont-cadre img { filter: none; }
.pont-cartel {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
    padding: 10px 0 0; margin-top: 10px; border-top: 1px solid var(--filet);
}
.pont-titre { font: italic 400 19px/1.25 var(--serif); color: var(--encre); }
.pont-auteur { font-size: 13px; color: var(--texte); text-align: right; align-self: baseline; }
.pont-phrase { grid-column: 1 / -1; font-size: 13.5px; color: var(--attenue); }
.pont-lien { grid-column: 1 / -1; margin-top: 6px; font-size: 13.5px; color: var(--encre); text-decoration: underline; text-decoration-color: var(--efface); text-underline-offset: 3px; }
.pont:hover .pont-lien { text-decoration-color: currentColor; }

.lc-pied { margin: 48px 0 0; padding-top: 12px; border-top: 1px solid var(--filet); font-size: 12.5px; line-height: 1.5; color: var(--attenue); }
.lc-pied a { text-decoration-color: var(--efface); text-underline-offset: 3px; }

/* --- Le sommaire du relevé (rien n'est choisi) -------------------------------- */
.est-sommaire .lecture-fermer { visibility: hidden; }
.so-surtitre { margin: 0; font-size: 13px; color: var(--attenue); font-variant-numeric: tabular-nums; }
.so-jour { margin: 10px 0 0; font: 300 clamp(34px, 7.4cqi, 48px)/1 var(--serif); letter-spacing: -0.035em; color: var(--encre); }
.so-chapo { margin: 16px 0 0; max-width: 32em; font: 400 19px/1.45 var(--serif); color: var(--texte); }

.tuiles {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px;
    margin: 34px 0 0; padding: 14px 0 0; border-top: 1.5px solid var(--filet-fort);
}
.tuile { display: flex; flex-direction: column; gap: 6px; padding: 0; text-align: left; background: none; border: 0; color: inherit; }
button.tuile { cursor: pointer; }
.tuile-valeur { font: 300 clamp(32px, 6.6cqi, 44px)/1 var(--serif); letter-spacing: -0.035em; color: var(--encre); font-variant-numeric: tabular-nums lining-nums; }
.tuile-cle { font-size: 12.5px; color: var(--attenue); }
button.tuile:hover .tuile-cle { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--efface); }
.tuile .exemple { margin: 3px 0 0; font-size: 10px; display: table; }

.so-lien { width: 100%; padding: 11px 0; text-align: left; background: none; border: 0; border-top: 1px solid var(--filet); cursor: pointer; }
.lc-section li:first-child .so-lien { border-top: 0; }
.so-lien:hover .so-une-titre, .so-lien:hover .so-sujet-titre { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--efface); }
.so-une-titre { display: block; margin-top: 3px; font: 400 20px/1.22 var(--serif); letter-spacing: -0.015em; color: var(--encre); }
.so-une-mot { display: block; margin-top: 6px; padding-left: 11px; border-left: 2px solid var(--rouge); font: italic 400 15px/1.38 var(--serif); color: var(--texte); }
.so-sujets .so-lien { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; }
.so-sujet-n { grid-row: span 2; font: 300 26px/1 var(--serif); color: var(--encre); font-variant-numeric: tabular-nums lining-nums; }
.so-sujet-titre { font: 400 17px/1.25 var(--serif); color: var(--encre); }
.so-sujets .s-tete { grid-column: 2; justify-content: space-between; }

.so-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
@container lecture (max-width: 560px) {
    .so-colonnes { grid-template-columns: 1fr 1fr; }
    .tuiles { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
}
.so-colonnes h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: var(--encre); }
.so-colonnes li { font-size: 13px; line-height: 1.6; }
.so-colonnes a { text-decoration: none; color: var(--texte); }
.so-colonnes a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--efface); }

/* ==========================================================================
   La barre de commande
   ========================================================================== */
.commande {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: 18px;
    height: var(--haut-commande); padding: 0 12px 0 20px;
    font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums;
    background: var(--papier-cote); border-top: 1px solid var(--filet);
}
.commande p { margin: 0; }
.commande-etat { flex: 1 1 0; min-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte); }
/* Les touches disent ce qu'elles feraient maintenant (page.js, rendreCommande) ; un clic fait pareil.
   Celles du moment (échap, n, o) viennent à gauche : les autres ne bougent pas. Quand la place
   manque, les moins utiles se retirent (data-prio 3, puis 2). */
.commande-touches { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 16px; white-space: nowrap; overflow: hidden; padding: 4px 3px; margin: -4px -3px; }
.touche { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: inherit; font: inherit; }
.touche > span { max-width: 15em; overflow: hidden; text-overflow: ellipsis; }
button.touche { cursor: pointer; border-radius: 4px; }
button.touche:hover { color: var(--encre); }
button.touche:hover kbd { border-color: var(--encre); }
.touche.est-retiree { display: none; }
.touche-moment > span { color: var(--texte); }
.bascule-fond {
    flex: none; font-size: 11.5px; line-height: 1; padding: 5px 9px;
    border: 1px solid var(--efface); border-radius: 999px; background: none; cursor: pointer; color: var(--attenue);
    font-variant-numeric: tabular-nums;
}
.bascule-fond:hover { color: var(--encre); border-color: var(--encre); }

.aide {
    position: fixed; right: 12px; bottom: calc(var(--haut-commande) + 10px); z-index: 30;
    width: 340px; padding: 16px 18px 12px;
    background: var(--papier); border: 1px solid var(--efface); border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
    font-size: 13px;
}
.aide h2 { margin: 0 0 10px; font: 400 22px/1 var(--serif); letter-spacing: -0.02em; color: var(--encre); }
.aide dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; align-items: baseline; }
.aide dt { white-space: nowrap; }
.aide dd { margin: 0; color: var(--texte); }
.aide p { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--filet); color: var(--attenue); font-size: 12.5px; }

.voile { position: fixed; inset: 0; z-index: 40; background: var(--voile); }

/* ==========================================================================
   Téléphone et tablette en portrait : une colonne, comme une app.
   La liste défile avec la page ; la lecture glisse par-dessus ; les
   rubriques et les sources sont dans un tiroir.
   ========================================================================== */
@media (max-width: 959px) {
    :root { --haut-commande: 0px; --haut-barre-app: 98px; }
    body { font-size: 16px; }
    .app { display: block; height: auto; }
    .volet { overflow: visible; }
    .commande { display: none; }
    .aide { left: 12px; right: 12px; width: auto; bottom: 12px; }

    /* La barre de l'app, avec les puces des rubriques. */
    .volet-liste { display: block; overflow: visible; border-right: 0; min-height: 100vh; }
    .barre-app {
        display: block; position: sticky; top: 0; z-index: 10;
        padding-top: env(safe-area-inset-top, 0px);
        background: var(--papier); border-bottom: 1px solid var(--filet);
    }
    .barre-app-rang {
        display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
        height: 52px; padding: 0 max(6px, env(safe-area-inset-right, 0px)) 0 max(6px, env(safe-area-inset-left, 0px));
    }
    .barre-app .icone { width: 44px; height: 44px; }
    .barre-app .icone svg { width: 22px; height: 22px; }
    .barre-app-marque {
        display: flex; align-items: baseline; justify-content: center; gap: 8px;
        padding: 6px 0; background: none; border: 0; cursor: pointer; color: var(--encre);
    }
    .barre-app-nom { font: 300 29px/1 var(--serif); letter-spacing: -0.035em; }
    .barre-app-heure { font-size: 12px; color: var(--attenue); font-variant-numeric: tabular-nums; }
    .puces {
        display: flex; gap: 6px; height: 45px; align-items: center;
        padding: 0 16px 1px; overflow-x: auto; scrollbar-width: none;
        scroll-padding: 0 16px; -webkit-overflow-scrolling: touch;
    }
    .puces::-webkit-scrollbar { display: none; }
    .puce {
        flex: none; padding: 6px 12px 6px; font-size: 13.5px; line-height: 1.2;
        border: 1px solid var(--efface); border-radius: 999px; background: none; cursor: pointer; color: var(--texte);
        white-space: nowrap;
    }
    .puce span { color: var(--attenue); font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 1px; }
    .puce.est-actif { background: var(--encre); color: var(--papier); border-color: var(--encre); }
    .puce.est-actif span { color: inherit; opacity: .7; }
    .puce-une { font-family: var(--serif); font-size: 15px; padding-top: 5px; padding-bottom: 6px; }
    .puce-une::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 2px 0; background: var(--rouge); border-radius: 1px; vertical-align: middle; }

    .liste-tete { padding: 16px 16px 0; border-bottom: 1px solid var(--filet); }
    .liste-titre { display: none; }
    /* Une source ou « depuis ta visite » n'ont pas de puce : leur nom revient en tête. */
    [data-vue-active="source"] .liste-titre, [data-vue-active="nouveaux"] .liste-titre { display: block; font-size: 24px; }
    .recherche input { height: 40px; font-size: 16px; }
    .recherche-touche { display: none; }
    .pouls-barres { height: 34px; }
    .liste { overflow: visible; }
    .groupe { padding-left: 16px; padding-right: 16px; }
    .ligne { padding: 13px 16px 14px 24px; }
    .l-point { left: 10px; top: 19px; }
    .l-titre { font-size: 18px; line-height: 1.24; }
    .l-chapo { font-size: 13.5px; }
    .l-autres { margin-left: 24px; padding: 5px 9px 5px 12px; font-size: 12.5px; }
    .l-sujet { margin-left: 24px; margin-right: 16px; }
    .repere { padding-left: 24px; padding-right: 16px; }
    .entree:hover { background: none; }
    .entree:active { background: var(--survol); }
    /* Au téléphone, l'article choisi reste discret : la lecture est par-dessus. */
    .entree.est-choisi { background: var(--survol); }
    .entree.est-choisi .l-titre, .entree.est-choisi .l-source { color: var(--encre); }
    .entree.est-choisi .l-chapo, .entree.est-choisi .l-heure, .entree.est-choisi .l-rubrique, .entree.est-choisi .l-marque-pont { color: var(--attenue); }
    .entree.est-choisi .l-marque-une { color: var(--rouge); }
    .entree.est-choisi .l-point { background: var(--rouge); }
    .entree.est-choisi .l-mot { color: var(--texte); }
    .entree.est-choisi .exemple { color: var(--attenue); border-color: var(--efface); }
    .entree.est-choisi .l-autres { color: var(--encre); border-color: var(--efface); }
    .entree.est-choisi .l-sujet { border-color: var(--efface); }
    .entree.est-choisi .s-titre { color: var(--encre); }
    .entree.est-choisi .s-tete { color: var(--attenue); }
    .entree.est-choisi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--encre); }
    .entree.est-choisi .ligne:visited .l-titre { color: var(--attenue); }

    /* Le tiroir des rubriques et des sources. */
    .volet-nav {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
        width: min(88vw, 360px); overflow-y: auto; overscroll-behavior: contain;
        padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
        border-right: 1px solid var(--filet);
        transform: translate3d(-102%, 0, 0); visibility: hidden;
        transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
    }
    body.nav-ouverte .volet-nav { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
    body.nav-ouverte { overflow: hidden; }
    .nav-tete { position: relative; padding-top: 18px; }
    .nav-fermer { display: inline-grid; position: absolute; top: 12px; right: 10px; width: 40px; height: 40px; }
    .nav-item { padding-top: 9px; padding-bottom: 9px; font-size: 15px; }
    .nav-une { padding-top: 11px; }
    .source-nom { padding: 9px 0; font-size: 15px; }
    .source-voir { width: 18px; height: 18px; }
    .source-voir::after { width: 10px; height: 10px; }
    .segments button { padding: 7px 14px; font-size: 14px; }

    /* La feuille de lecture : elle glisse de la droite, par-dessus la liste. */
    .volet-lecture {
        position: fixed; inset: 0; z-index: 30;
        overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
        box-shadow: var(--ombre-feuille);
        transform: translate3d(104%, 0, 0); visibility: hidden;
        transition: transform .34s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .34s;
    }
    body.lecture-ouverte .volet-lecture { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
    body.lecture-ouverte { overflow: hidden; }
    .volet-lecture.est-tiree { transition: none; }
    .lecture-barre {
        height: auto; min-height: 52px; padding: env(safe-area-inset-top, 0px) 8px 0 4px;
        background: var(--papier); border-bottom: 1px solid var(--filet);
    }
    .lecture-retour { display: inline-flex; }
    .lecture-position { text-align: center; }
    .lecture-fermer { display: none; }
    .lecture-fleches .icone { width: 42px; height: 42px; }
    .lecture-corps { padding: 26px 20px 40px; }
    .est-sommaire .lecture-corps { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
    .lecture-pied {
        display: block; position: sticky; bottom: 0; z-index: 3;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to bottom, transparent, var(--papier) 26%);
    }
    .lecture-pied:empty { display: none; }
    .bouton-large { display: flex; justify-content: center; width: 100%; padding: 15px 18px 14px; font-size: 15.5px; }
    .lc-actions { display: none; }
    .lc-titre { font-size: 32px; line-height: 1.08; }
    .lc-chapo { font-size: 19.5px; line-height: 1.48; }
    .lc-mot-texte { font-size: 20px; }
    .lc-section { margin-top: 36px; }
    .pont-mur { inset: 16px; }

    .so-jour { font-size: 40px; }
    .so-chapo { font-size: 18px; }
    .tuiles { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
    .tuile-valeur { font-size: 40px; }
    .so-colonnes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
    .so-colonnes { grid-template-columns: 1fr; }
    .lc-titre { font-size: 29px; }
}

/* ==========================================================================
   Moins de mouvement : tout se pose sans glisser.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Avant que le relevé soit lu : rien ne bouge, la place est tenue. */
.app[aria-busy="true"] .liste { visibility: hidden; }

/* ==========================================================================
   La barre des sports (commun/scores.css) : en Söhne, sur le papier du volet ;
   les trois volets lui laissent sa hauteur.
   ========================================================================== */
:root { --haut-scores: 4.6rem; }
.sc-place {
    --sc-police: var(--sans);
    --sc-fond: var(--papier-cote);
    --sc-fond-plein: var(--papier-cote);
    --sc-encre: var(--texte);
    --sc-pale: var(--attenue);
    --sc-filet: var(--filet);
    --sc-survol: var(--survol);
    --sc-direct: var(--rouge);
    --sc-carte: var(--papier);
    --sc-titre: var(--serif);       /* le grand score de la feuille de match, en Signifier */
}
.sc-place .sc-nom { font-weight: 600; background: none; }
.app {
    height: calc(100vh - var(--haut-commande) - var(--haut-scores));
    height: calc(100dvh - var(--haut-commande) - var(--haut-scores));
}
@media (max-width: 959px) {
    :root { --haut-scores: 0px; }
}

/* ==========================================================================
   Le hub, suite (30 octobre) : la page tient la hauteur de l'écran, quelle
   que soit la hauteur de la barre des sports et de la bande des actualités
   importantes (une colonne souple : les trois volets prennent le reste).
   ========================================================================== */
@media (min-width: 960px) {
    body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding-bottom: var(--haut-commande); overflow: hidden; }
    body > .sc-place, body > .bande { flex: none; }
    body > .app { flex: 1 1 0; min-height: 0; height: auto; }
}

/* --- Les icônes des rubriques (icones.js) ------------------------------------- */
.ri { flex: none; width: 15px; height: 15px; stroke-width: 1.6; }
.ri-vide { flex: none; width: 15px; }
.vi { flex: none; width: 16px; height: 16px; stroke-width: 1.5; }

.nav-item .ri, .nav-item .ri-vide { align-self: center; width: 16px; height: 16px; margin-right: -2px; }
.nav-groupe { display: flex; align-items: center; gap: 7px; }
.nav-groupe .ri { width: 14px; height: 14px; color: var(--attenue); }
.so-colonnes h3 { display: flex; align-items: center; gap: 6px; }
.so-colonnes h3 .ri { width: 14px; height: 14px; color: var(--attenue); }

/* Dans la liste : l'icône avant la source (le nom de la rubrique est dit aux lecteurs d'écran). */
.l-ri { flex: none; display: inline-flex; gap: 3px; align-self: center; color: var(--attenue); margin-right: -1px; }
.l-ri .ri { width: 14px; height: 14px; }
.entree.est-choisi .l-ri { color: var(--choisi-attenue); }
.l-marque-alerte { color: var(--rouge); font-weight: 500; }
.entree.est-choisi .l-marque-alerte { color: var(--choisi-texte); }

/* Dans la lecture : le surtitre, les autres rédactions. */
.lc-surtitre .ri { align-self: center; width: 16px; height: 16px; color: var(--texte); margin-right: -1px; }
.lc-surtitre .ri + .ri { margin-left: -3px; }
.s-tete .ri { align-self: center; width: 13px; height: 13px; color: var(--attenue); }
.lc-sujet .s-tete, .so-une .s-tete { align-items: baseline; }

/* --- La liste ou la carte : deux onglets en tête de la colonne de gauche ------ */
.affichage {
    display: flex; margin: 0 20px 14px; padding: 2px;
    border: 1px solid var(--efface); border-radius: 999px;
}
.affichage button {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 6px 10px; font-size: 13.5px; line-height: 1.2;
    background: none; border: 0; border-radius: 999px; cursor: pointer; color: var(--attenue);
}
.affichage button:hover { color: var(--encre); }
.affichage button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }

/* --- Les images des articles : un réglage, éteint au départ ------------------- */
.nav-aide { margin: 7px 10px 0; font: italic 400 12px/1.35 var(--sans); color: var(--attenue); }

/* La vignette de la liste : recadrée, chez l'éditeur ; cachée si elle ne vient pas. */
.l-image {
    float: right; width: 84px; height: 63px; margin: 6px 0 4px 14px;
    border-radius: 3px; overflow: hidden; background: var(--passe-partout);
}
.l-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--image); }

/* L'image en grand dans la lecture, avec le nom de son éditeur. La place est tenue : rien ne saute. */
.lc-image { margin: 26px 0 0; }
.lc-image-cadre { display: block; aspect-ratio: 16 / 10; max-height: 42vh; width: 100%; overflow: hidden; border-radius: 2px; background: var(--passe-partout); }
.lc-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--image); }
.lc-image figcaption { margin-top: 7px; font-size: 12px; color: var(--attenue); }

/* --- Le direct ------------------------------------------------------------------ */
.en-direct { display: inline-flex; align-items: center; gap: 5px; color: var(--rouge); }
.en-direct i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: hub-battement 2.4s ease-in-out infinite; }
@keyframes hub-battement { 50% { opacity: .3; } }

/* « 3 nouvelles » : en tête de la liste, sans rien pousser. */
.nouvelles-place { position: relative; z-index: 6; height: 0; display: flex; justify-content: center; }
.nouvelles {
    position: absolute; top: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 9px 7px 11px;
    font: 500 13px/1 var(--sans); white-space: nowrap;
    color: var(--papier); background: var(--encre);
    border: 0; border-radius: 999px; cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.nouvelles:hover { opacity: .86; }
.nouvelles svg { width: 14px; height: 14px; stroke-width: 1.8; }
.nouvelles kbd {
    min-width: 1.5em; color: var(--papier); background: none;
    border-color: color-mix(in srgb, var(--papier) 45%, transparent);
}
.carte-nouvelles .nouvelles { position: static; }

/* --- La bande du haut : les actualités importantes à gauche, la bourse à droite (bourse.css) ---
   Rien tant qu'il n'y a rien. Les deux moitiés ont la même tenue : une ligne de tête en
   Söhne, une ligne de contenu (le titre en Signifier, les cours en Signifier). Sans
   alerte (ou refermée), la bourse prend toute la largeur ; sans bourse, les alertes. */
.bande {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
    background: var(--papier); border-bottom: 1px solid var(--filet);
}
.bande:not(.a-alertes), .bande:not(.a-bourse) { grid-template-columns: minmax(0, 1fr); }

.alertes {
    --rouge-fond: #c00f0f;
    --alerte-encre: var(--encre);
    --alerte-pale: var(--attenue);
    --alerte-filet: var(--filet);
    --alerte-signe: var(--rouge);
    --alerte-survol: rgba(0, 0, 0, .06);
    position: relative; min-width: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: stretch;
    background: var(--papier); color: var(--alerte-encre);
    border-top: 3px solid var(--rouge);
}
/* Une mort, un attentat… repris partout : la moitié gauche se remplit du rouge du hub. */
.alertes.est-grave {
    --alerte-encre: #ffffff;
    --alerte-pale: rgba(255, 255, 255, .8);
    --alerte-filet: rgba(255, 255, 255, .3);
    --alerte-signe: #ffffff;
    --alerte-survol: rgba(0, 0, 0, .14);
    background: var(--rouge-fond); border-top-color: var(--rouge-fond);
}
@media (prefers-color-scheme: dark) { :root:not([data-fond="clair"]) .alertes { --rouge-fond: #ad120d; --alerte-survol: rgba(255, 255, 255, .08); } }
:root[data-fond="noir"] .alertes { --rouge-fond: #ad120d; --alerte-survol: rgba(255, 255, 255, .08); }
.alertes.est-grave { --alerte-survol: rgba(0, 0, 0, .14); }

.alertes-corps {
    min-width: 0; display: grid; align-content: center;
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tete meta" "scene scene";
    column-gap: 18px; row-gap: 3px; padding: 7px 6px 8px 20px;
}
.alertes-tete {
    grid-area: tete; display: flex; align-items: center; gap: 10px; margin: 0;
    font-size: 12px; line-height: 15px; font-weight: 500; white-space: nowrap;
}
.alertes:not(.est-grave) .alertes-tete { color: var(--rouge); }
.alertes-tete > button {
    display: inline-flex; align-items: center; gap: 7px; padding: 0;
    background: none; border: 0; cursor: pointer; color: inherit; font: inherit; white-space: nowrap;
}
.alertes-tete > button:hover #alertes-nom { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.alertes-signe {
    flex: none; width: 8px; height: 8px; border-radius: 1px;
    background: var(--alerte-signe, var(--rouge));
    animation: hub-battement 2.4s ease-in-out infinite;
}
/* « ‹ 2 / 3 › » : où l'on en est, et la main pour passer de l'une à l'autre. */
.alertes-pas { display: inline-flex; align-items: center; font-weight: 400; color: var(--alerte-pale); font-variant-numeric: tabular-nums; }
.alertes-pas button {
    display: grid; place-items: center; width: 22px; height: 19px; padding: 0;
    background: none; border: 0; border-radius: 4px; cursor: pointer; color: var(--alerte-encre);
}
.alertes-pas button:hover { background: var(--alerte-survol); }
.alertes-pas svg { width: 13px; height: 13px; stroke-width: 1.8; }
.alertes-n { min-width: 2.7em; text-align: center; }
.alertes-meta {
    grid-area: meta; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; line-height: 15px; color: var(--alerte-pale); font-variant-numeric: tabular-nums;
}

/* La scène : les alertes posées l'une sur l'autre (la plus haute donne la hauteur : rien ne saute),
   une seule visible ; la suivante monte quand la précédente s'en va. */
.alertes-liste { grid-area: scene; display: grid; list-style: none; margin: 0; padding: 0; min-width: 0; overflow: hidden; }
.alertes-liste > li {
    grid-area: 1 / 1; min-width: 0;
    opacity: 0; visibility: hidden; transform: translateY(70%);
    transition: opacity .35s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .55s;
}
.alertes-liste > li.est-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .4s ease .1s, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.alertes-liste > li.est-sortie { transform: translateY(-70%); }
.alerte {
    display: block; width: 100%; min-width: 0; padding: 0;
    text-align: left; background: none; border: 0; cursor: pointer; color: inherit;
}
.alerte-titre {
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font: 400 18px/22px var(--serif); letter-spacing: -0.01em;
}
/* Un titre trop long glisse une fois, lentement, pour se lire en entier (page.js). */
.alertes-liste > li.est-glisse .alerte-titre {
    text-overflow: clip;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 30px), transparent 100%);
}
.alertes-liste > li.est-glisse .alerte-texte { display: inline-block; }
.alerte-meta { display: none; }
.alerte:hover .alerte-texte { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.alertes-tete button:focus-visible, .alertes-fermer:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 4px; }
.alerte:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 3px; }
.alertes-fermer {
    width: 46px; display: grid; place-items: center; padding: 0;
    background: none; border: 0; border-left: 1px solid var(--alerte-filet);
    color: inherit; cursor: pointer;
}
.alertes-fermer svg { width: 18px; height: 18px; }
.alertes-fermer:hover { background: var(--alerte-survol); }

/* Refermée : une ligne dans la colonne de gauche la rouvre. */
.nav-alertes { margin-bottom: 4px; }
.nav-alertes .alertes-signe { align-self: center; animation: none; }
.nav-alertes .nav-nom { color: var(--rouge); }

/* En tête de sa lecture : les grands chiffres. */
.lc-alerte { margin: 0 0 28px; padding: 12px 0 16px; border-top: 3px solid var(--rouge); border-bottom: 1px solid var(--filet); }
.lc-alerte-tete { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 500; color: var(--rouge); }
.lc-alerte-tete .alertes-signe { --alerte-signe: var(--rouge); animation: none; }
.lc-alerte-chiffres { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 12px 0 0; }
.lc-alerte-chiffres div { display: flex; flex-direction: column-reverse; gap: 5px; }
.lc-alerte-chiffres dt { font-size: 12.5px; color: var(--attenue); }
.lc-alerte-chiffres dd { margin: 0; font: 300 40px/.9 var(--serif); letter-spacing: -0.035em; color: var(--encre); font-variant-numeric: tabular-nums lining-nums; }
.lc-alerte-temps { margin: 12px 0 0; font-size: 13px; color: var(--attenue); font-variant-numeric: tabular-nums; }

/* Dans le sommaire, même refermée. */
.so-alertes .so-lien { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; }
.so-alertes .so-sujet-n { color: var(--rouge); }
.so-alertes .s-tete { grid-column: 2; justify-content: space-between; }
.so-alertes.lc-section { border-top-color: var(--rouge); }

/* --- La carte au milieu : la colonne s'élargit, la lecture s'ouvre pour lire --- */
@media (min-width: 960px) {
    .app.en-carte { grid-template-columns: 252px minmax(0, 1fr) 0; }
    .app.en-carte.avec-lecture { grid-template-columns: 252px minmax(0, 1fr) clamp(380px, 33vw, 520px); }
    .app.en-carte:not(.avec-lecture) .volet-lecture { display: none; }
    .app.en-carte:not(.avec-lecture) .volet-liste { border-right: 0; }
    .en-carte .liste-tete {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 4px 24px;
        padding: 12px 20px 11px;
    }
    .en-carte .liste-titre-rang { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
    .en-carte .liste-titre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .en-carte .liste-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .en-carte .recherche { margin: 0; }
    .en-carte .est-sommaire .lecture-fermer { visibility: visible; }
}
@media (min-width: 1600px) {
    .app.en-carte { grid-template-columns: 272px minmax(0, 1fr) 0; }
    .app.en-carte.avec-lecture { grid-template-columns: 272px minmax(0, 1fr) 520px; }
}
@media (max-width: 1279px) and (min-width: 960px) {
    .app.en-carte { grid-template-columns: 216px minmax(0, 1fr) 0; }
    .app.en-carte.avec-lecture { grid-template-columns: 216px minmax(0, 1fr) 360px; }
}
.en-carte .pouls { display: none; }


/* Les écrans moyens : la bande se serre. */
@media (max-width: 1279px) and (min-width: 960px) {
    .affichage button { gap: 5px; padding: 6px 6px; font-size: 13px; white-space: nowrap; }
    .alertes-corps { padding-left: 16px; column-gap: 12px; }
    .alerte-titre { font-size: 17px; }
}

/* Le volet du milieu se mesure : quand la lecture serre la carte, son en-tête passe sur deux rangs. */
.volet-liste { container: volet-liste / inline-size; }
@container volet-liste (max-width: 600px) {
    .en-carte .liste-tete { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .en-carte .carte .carte-pied { grid-template-columns: auto minmax(0, 1fr) auto; }
    .en-carte .carte .carte-pied .frise { visibility: hidden; }
}

/* --- Téléphone ------------------------------------------------------------------- */
@media (max-width: 959px) {
    .puce .ri { width: 14px; height: 14px; margin: 0 5px 0 -1px; vertical-align: -2px; }
    .puce.est-actif .ri { color: inherit; }
    .affichage { margin: 2px 20px 16px; }
    .affichage button { padding: 9px 12px; font-size: 14.5px; }
    .nav-item .ri, .nav-item .ri-vide { width: 17px; height: 17px; }
    .l-ri .ri { width: 15px; height: 15px; }
    .l-image { width: 88px; height: 66px; margin-top: 7px; }
    .nouvelles-place { position: sticky; top: calc(var(--haut-barre-app) + 8px); }
    .nouvelles { top: 0; padding: 9px 11px 9px 13px; font-size: 14px; }
    .nouvelles kbd { display: none; }
    .en-carte .liste-tete { padding-bottom: 12px; }

    /* La bande : les actualités, puis la bourse dessous. */
    .bande, .bande.a-alertes.a-bourse { grid-template-columns: minmax(0, 1fr); }
    .alertes-corps { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "scene"; row-gap: 6px; padding: 11px 0 13px 16px; }
    .alertes-tete { font-size: 12.5px; line-height: 18px; gap: 8px; }
    .alertes-pas button { width: 32px; height: 28px; margin: -5px 0; }
    .alertes-pas svg { width: 15px; height: 15px; }
    .alertes-meta { display: none; }
    .alertes-fermer { align-self: start; width: 46px; height: 42px; border-left: 0; }
    .alerte-titre {
        white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        font-size: 18.5px; line-height: 1.2; text-wrap: pretty;
    }
    .alerte-meta { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--alerte-pale); font-variant-numeric: tabular-nums; }
    /* Au téléphone, le titre passe sur deux lignes : il ne glisse jamais (même après un changement de largeur). */
    .alertes-liste > li.est-glisse .alerte-titre { -webkit-mask-image: none; mask-image: none; text-overflow: ellipsis; }
    .alertes-liste > li.est-glisse .alerte-texte { display: inline; transform: none !important; }
    .lc-alerte-chiffres dd { font-size: 36px; }
}

/* La barre des sports se pose au-dessus de la page (z-index 40, commun/scores.css, pour ses menus) :
   au téléphone, la feuille de lecture et le voile du tiroir passent par-dessus elle. */
@media (max-width: 959px) {
    .volet-lecture { z-index: 45; }
    .voile { z-index: 46; }
}
#lecture .so-alertes { scroll-margin-top: 62px; }
