/* Prisme — une maquette de journal : papier, encre, filets, et la couleur réservée au spectre politique. */

:root {
  --paper: #F4F2EC;
  --paper-2: #EAE7DF;
  --card: #FBFAF6;
  --ink: #141414;
  --ink-2: #45433F;
  --ink-3: #75726B;
  --rule: #141414;
  --hair: #D3CFC4;
  --hair-2: #E2DED4;
  --focus: #1D6F86;

  --b-l2: #17657A;
  --b-l1: #5E9FB0;
  --b-c: #ADA797;
  --b-r1: #D88B6E;
  --b-r2: #B1412A;
  --b-state: #6A4C9C;
  --b-unk: #D9D5CA;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --w: 1240px;
  --gut: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #121211; --paper-2: #1B1B19; --card: #171716; --ink: #ECEAE4; --ink-2: #BDB9B0; --ink-3: #8C887F; --rule: #ECEAE4; --hair: #2E2D2A; --hair-2: #252422; --focus: #6FB3C4; --b-l2: #3F95AB; --b-l1: #7DB5C4; --b-c: #9C978A; --b-r1: #E09A7E; --b-r2: #D0614A; --b-state: #9479C6; --b-unk: #3A3935; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #121211; --paper-2: #1B1B19; --card: #171716; --ink: #ECEAE4; --ink-2: #BDB9B0; --ink-3: #8C887F; --rule: #ECEAE4; --hair: #2E2D2A; --hair-2: #252422; --focus: #6FB3C4; --b-l2: #3F95AB; --b-l1: #7DB5C4; --b-c: #9C978A; --b-r1: #E09A7E; --b-r2: #D0614A; --b-state: #9479C6; --b-unk: #3A3935; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

.kicker { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kicker b { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-3); }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Bandeau : une bande d'encre, un prisme qui décompose la lumière ---------- */
.band { background: #121212; color: #F2EFE8; }
:root[data-theme="dark"] .band { background: #000; border-bottom: 1px solid #262522; }
.band-row { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo-mark { width: 52px; height: 33px; overflow: visible; }
.logo-mark path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark .beam, .logo-mark .tri { stroke: #F2EFE8; }
.logo-word { font: 700 30px/1 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.03em; }
.logo:hover .rays path { stroke-width: 3; }
.mast-links { display: flex; gap: 2px; margin-left: 8px; }
.mast-links a { font: 500 13px var(--sans); color: #C9C5BC; text-decoration: none; padding: 8px 10px; border-radius: 2px; white-space: nowrap; }
.mast-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mast-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.band-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.band .icon-btn { color: #C9C5BC; }
.band .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.edition-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 10px; border: 1px solid #3A3936; border-radius: 2px; color: #E6E2D9; cursor: pointer; }
.edition-pick:hover { border-color: #77736B; }
.edition-pick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.edition-pick select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: 600 13px var(--sans); padding-right: 14px; cursor: pointer; outline: none; }
.edition-pick::after { content: ""; position: absolute; right: 9px; top: 14px; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.edition-pick select option { color: #141414; background: #fff; }
.lang-btn { font: 600 12px var(--mono) !important; letter-spacing: .06em; border: 1px solid #3A3936; width: 38px !important; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 2px; color: var(--ink-2); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }

/* Titre de section façon journal */
.folio { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: 26px 0 4px; border-bottom: 3px double var(--rule); }
.folio h1 { font: 700 clamp(34px, 5vw, 60px)/.95 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; margin: 0; }
.folio h1 em { font-weight: 400; font-style: italic; color: var(--ink-3); font-size: .55em; letter-spacing: -.01em; margin-left: 8px; }
.folio .dateline { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }

.spectrum { display: flex; height: 4px; }
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: var(--b-l2); }
.spectrum i:nth-child(2) { background: var(--b-l1); }
.spectrum i:nth-child(3) { background: var(--b-c); }
.spectrum i:nth-child(4) { background: var(--b-r1); }
.spectrum i:nth-child(5) { background: var(--b-r2); }

/* ---------- Rubriques (collantes) ---------- */
/* Le bandeau et les rubriques restent en haut pendant qu'on défile (plus minces une fois descendu).
   Sur téléphone, ils se cachent quand on descend et reviennent dès qu'on remonte un peu. */
.topbar { position: sticky; top: 0; z-index: 30; transition: transform .22s ease; }
/* Pas de scroll-padding sur la page : il faisait sauter la page à chaque lettre tapée dans la recherche collée en haut.
   Seules les sections vers lesquelles on défile gardent une marge sous le bandeau. */
#wide, #oBrowse, #outletHits, .sec, .pack, .o-hero { scroll-margin-top: calc(var(--top-h, 120px) + 8px); }
.band-row, .logo-mark, .logo-word { transition: min-height .18s ease, width .18s ease, height .18s ease, font-size .18s ease; }
.topbar.compact .band-row { min-height: 48px; }
.topbar.compact .logo-mark { width: 40px; height: 26px; }
.topbar.compact .logo-word { font-size: 24px; }
.topbar.compact .sections { box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .35); }
.topbar.tucked { transform: translateY(-100%); }
.sections { position: relative; background: var(--paper); border-bottom: 1px solid var(--rule); }
.sections-in { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.cats::-webkit-scrollbar { display: none; }
.cats a { font: 600 13px var(--sans); text-decoration: none; padding: 14px 10px 11px; white-space: nowrap; color: var(--ink-2); border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--ink); }
.cats a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.cats .sep { width: 1px; background: var(--hair); margin: 12px 6px; flex: none; }
.search { position: relative; display: flex; align-items: center; flex: none; width: 240px; }
.search > svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 34px; padding: 0 30px 0 32px;
  font: 14px var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--hair); border-radius: 2px; outline: none;
}
.search input:focus { border-color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 8px; font: 11px var(--mono); color: var(--ink-3); border: 1px solid var(--hair); padding: 0 5px; border-radius: 2px; }
.search:focus-within { width: 300px; }
.search { transition: width .18s ease; }

/* Suggestions pendant qu'on tape */
.suggest {
  position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, calc(100vw - 2 * var(--gut)));
  max-height: min(70vh, 560px); overflow-y: auto; z-index: 35;
  background: var(--card); border: 1px solid var(--ink); border-radius: 2px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
  padding: 6px 0;
}
.sg-h { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px 4px; display: flex; justify-content: space-between; }
.sg-h button { font: inherit; color: var(--ink-3); text-decoration: underline; text-transform: none; letter-spacing: 0; }
.sg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; text-align: left; text-decoration: none; color: var(--ink); font: 14px/1.35 var(--sans); }
.sg:hover, .sg[aria-selected="true"] { background: var(--paper-2); }
.sg .fav, .sg .fav-fallback { flex: none; }
.sg-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sg-main { flex: 1; min-width: 0; }
.sg-main b { font-weight: 600; }
.sg-main small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--serif); font-size: 15px; }
.sg mark { background: none; color: inherit; font-weight: 700; }
.sg-side { flex: none; display: flex; align-items: center; gap: 6px; font: 11px var(--mono); color: var(--ink-3); }
.sg-all { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 11px; font-weight: 600; }
.sg-tips { padding: 4px 14px 8px; font: 12.5px/1.5 var(--sans); color: var(--ink-3); }

/* ---------- Barre des lentilles ---------- */
.lensbar { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 18px 0 14px; border-bottom: 1px solid var(--hair); }
.label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lenses { display: flex; gap: 4px; flex-wrap: wrap; }
.lenses button {
  font: 500 13px var(--sans); padding: 6px 11px; border: 1px solid var(--hair); border-radius: 2px; color: var(--ink-2); background: var(--card);
  display: inline-flex; align-items: center; gap: 7px;
}
.lenses button:hover { border-color: var(--ink-3); color: var(--ink); }
.lenses button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lenses .sw { width: 8px; height: 8px; display: inline-block; }
.lens-desc { flex-basis: 100%; margin: 4px 0 0; font: italic 15.5px/1.45 var(--serif); color: var(--ink-2); }

.topics { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px 0 14px; border-bottom: 1px solid var(--hair); }
.topics .label { margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px var(--sans); padding: 4px 10px; border-radius: 2px;
  border: 1px solid var(--hair); background: transparent; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .sw { width: 8px; height: 8px; display: inline-block; }
.chip.star::before { content: "★"; font-size: 11px; color: var(--b-r1); }

/* ---------- Grille principale ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 40px; padding-top: 24px; }
.main-col { min-width: 0; }
.rail { border-left: 1px solid var(--hair); padding-left: 24px; }
/* La colonne défile avec la page (collée, elle était plus haute que l'écran et sa fin restait invisible). */
.rail-in { display: grid; gap: 30px; padding-bottom: 30px; }
.block-h { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding-top: 8px; border-top: 2px solid var(--rule); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.block-h small { font: 500 11px var(--mono); letter-spacing: .04em; color: var(--ink-3); text-transform: none; }
.rail p { margin: 0; }
.rail .chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Barre de répartition ---------- */
.bar { display: flex; height: 6px; gap: 1px; width: 100%; }
.bar span { height: 100%; min-width: 3px; }
.bar.lg { height: 12px; gap: 2px; }
.bar .unk { background: repeating-linear-gradient(135deg, var(--b-unk) 0 3px, transparent 3px 6px); }
.split { display: flex; gap: 12px; flex-wrap: wrap; font: 500 11px var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.split b { color: var(--ink); font-weight: 500; }
.split i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; vertical-align: 0; }

/* ---------- Orientation écrite en clair ---------- */
.bb { display: inline-flex; align-items: center; font: 600 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 3px 6px 3px; white-space: nowrap; color: #fff; border-radius: 2px; vertical-align: 1px; }
.bb-l2 { background: var(--b-l2); }
.bb-l1 { background: var(--b-l1); color: #0D2B33; }
.bb-c { background: var(--b-c); color: #1E1D1A; }
.bb-r1 { background: var(--b-r1); color: #3A160B; }
.bb-r2 { background: var(--b-r2); }
.bb-state { background: var(--b-state); }
.bb-unk { background: transparent; color: var(--ink-3); border: 1px dashed var(--hair); padding: 2px 5px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.legend-row { flex-basis: 100%; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 2px; }

.split { display: inline-flex; gap: 4px 10px; flex-wrap: wrap; font: 600 11.5px var(--sans); letter-spacing: 0; color: var(--ink-2); }
.sl { display: inline-flex; align-items: center; gap: 5px; }
.sl i { width: 9px; height: 9px; display: inline-block; }
.sl b { font: 600 12px var(--mono); color: var(--ink); }
.sl.l i { background: var(--b-l2); } .sl.l { color: var(--b-l2); }
.sl.c i { background: var(--b-c); } .sl.c { color: var(--ink-2); }
.sl.r i { background: var(--b-r2); } .sl.r { color: var(--b-r2); }
.sl.s i { background: var(--b-state); } .sl.s { color: var(--b-state); }
.sl.zero { opacity: .45; }
.sl.zero b { font-weight: 400; }

.bigbar { display: flex; gap: 2px; height: 30px; width: 100%; margin: 4px 0 2px; }
.bigbar .seg { container-type: inline-size; min-width: 6px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.bigbar .seg .in { padding: 0 8px; white-space: nowrap; font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.bigbar .seg em { font-style: normal; }
.bigbar .seg.l { background: var(--b-l2); }
.bigbar .seg.c { background: var(--b-c); color: #1E1D1A; }
.bigbar .seg.r { background: var(--b-r2); }
.bigbar .seg.s { background: var(--b-state); }
.bigbar .seg.u { background: repeating-linear-gradient(135deg, var(--b-unk) 0 4px, transparent 4px 8px); color: var(--ink-3); border: 1px solid var(--hair); }
@container (max-width: 120px) { .bigbar .seg em { display: none; } }
@container (max-width: 40px) { .bigbar .seg .in { display: none; } }

/* ---------- La une (première histoire) ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.lead.noimg { grid-template-columns: 1fr; }
.lead-media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; left: 0; bottom: 0; font: 500 10px var(--mono); letter-spacing: .04em; background: var(--paper); color: var(--ink-2); padding: 3px 6px; }
.lead h2 { font: 600 clamp(30px, 3.6vw, 46px)/1.04 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.015em; margin: 10px 0 12px; }
.lead h2 a, .story h3 a { text-decoration: none; }
.lead h2 a:hover, .story h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead .dek { font: 400 17px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 6px; }
.dek-src { font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.lead .bar { margin-bottom: 8px; }

.angles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--hair); }
.angles3 > div { padding: 12px 14px 0 0; min-width: 0; }
.angles3 > div + div { padding-left: 14px; border-left: 1px solid var(--hair); }
.side { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.side i { width: 8px; height: 8px; display: inline-block; }
.angles3 a { display: block; font: 500 15px/1.3 var(--serif); margin-top: 6px; text-decoration: none; }
.angles3 a:hover { text-decoration: underline; }
.angles3 .by { font: 500 11.5px var(--sans); color: var(--ink-3); margin-top: 6px; }
.angles3 .none { font: italic 14px/1.35 var(--serif); color: var(--ink-3); margin-top: 6px; }

/* ---------- Histoires (fil) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.story.noimg { grid-template-columns: 1fr; }
.story h3 { font: 600 23px/1.16 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.005em; margin: 7px 0 8px; }
.story .dek { font: 400 15.5px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; align-self: start; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-foot { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.story-foot .bar { width: 150px; }
.favs { display: flex; align-items: center; }
.favs > * { margin-left: -4px; outline: 2px solid var(--paper); }
.favs > *:first-child { margin-left: 0; }
.favs .more { font: 500 11px var(--mono); color: var(--ink-3); margin-left: 8px; outline: 0; }

/* « Couvert par … » : les médias de l'histoire, en clair */
.covered { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 13.5px/1.4 var(--sans); color: var(--ink-3); }
.covered > span:last-child { min-width: 0; }
.covered a { color: var(--ink); font-weight: 600; text-decoration: none; }
.covered a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lead .covered { margin: 4px 0 12px; font-size: 14px; }

/* Carte « Comment lire Prisme » (une seule fois) */
.howto { margin: 18px 0 6px; padding: 14px 18px 6px; background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--ink); }
.howto-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.howto-h .btn { padding: 6px 14px; }
.howto ol { margin: 10px 0 8px; padding-left: 20px; font: 15px/1.5 var(--serif); color: var(--ink-2); }
.howto li { margin-bottom: 6px; }
.howto li b { color: var(--ink); font-family: var(--sans); font-size: 14px; }
.howto [class^="sw-"] { font: 600 12px var(--sans); padding: 1px 6px; color: #fff; border-radius: 2px; }
.howto .sw-l { background: var(--b-l2); }
.howto .sw-c { background: var(--b-c); color: var(--ink); }
.howto .sw-r { background: var(--b-r2); }

/* Recherche : médias trouvés, et page d'un média */
.outlet-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin: 4px 0 18px; }
.outlet-hit { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.outlet-hit:hover { border-color: var(--ink); }
.oh-main { flex: 1; min-width: 0; }
.oh-main b { display: block; font: 600 15px var(--sans); }
.oh-main small, .oh-side small { color: var(--ink-3); font-size: 12px; }
.oh-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.outlet-head h1 { display: flex; align-items: center; gap: 12px; }
.outlet-head h1 .fav, .outlet-head h1 .fav-fallback { width: 32px; height: 32px; }
.outlet-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font: 14px var(--sans) !important; }
.fav { width: 16px; height: 16px; border-radius: 2px; background: var(--card); flex: none; object-fit: contain; }
.fav-fallback { width: 16px; height: 16px; border-radius: 2px; display: inline-grid; place-items: center; font: 600 9px var(--sans); background: var(--ink-2); color: var(--paper); flex: none; }
.flag { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; white-space: nowrap; }
.flag.l { color: var(--b-l2); }
.flag.r { color: var(--b-r2); }
.flag.s { color: var(--b-state); }

.loader { padding: 28px 0 40px; text-align: center; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.end { padding: 30px 0 50px; text-align: center; font: italic 16px var(--serif); color: var(--ink-3); }

.skel { background: var(--hair-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.empty { padding: 40px 0 60px; max-width: 600px; }
.empty h3 { font: 600 28px/1.15 var(--serif); margin: 0 0 10px; }
.empty p { font: 17px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 12px; }

/* ---------- Rail : listes ---------- */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline; }
.rank .nm { font: 500 13.5px/1.3 var(--sans); }
.rank .n { font: 500 11px var(--mono); color: var(--ink-3); }
.rank .track { grid-column: 1 / -1; height: 3px; background: var(--hair-2); }
.rank .track span { display: block; height: 100%; background: var(--ink); }
.rail .note, .note { font: 12.5px/1.5 var(--sans); color: var(--ink-3); }
.rail .note { margin-top: 10px; }
.mini-stories { list-style: none; margin: 0; padding: 0; }
.mini-stories li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.mini-stories li:first-child { padding-top: 0; }
.mini-stories a { font: 600 15.5px/1.25 var(--serif); text-decoration: none; display: block; margin: 4px 0 6px; }
.mini-stories a:hover { text-decoration: underline; }
.add-topic { display: flex; gap: 6px; margin-top: 10px; }
.add-topic input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; font: 13px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 2px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; font: 600 12.5px var(--sans); border-radius: 2px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---------- Page d'une histoire ---------- */
.back { display: inline-block; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; margin: 22px 0 0; }
.back:hover { color: var(--ink); }
.s-head { padding: 14px 0 22px; }
.s-head h1 { font: 600 clamp(32px, 4.6vw, 56px)/1.03 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; margin: 10px 0 14px; }
.s-head .dek { font: 400 19px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 6px; }
.s-hero { margin: 4px 0 6px; position: relative; aspect-ratio: 2 / 1; background: var(--paper-2); overflow: hidden; }
.s-hero img { width: 100%; height: 100%; object-fit: cover; }
.s-cov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.s-cov > div { padding: 10px 14px 0 0; }
.s-cov > div + div { border-left: 1px solid var(--hair); padding-left: 14px; }
.s-cov b { font: 600 34px/1 var(--serif); display: block; }
.s-cov small { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.s-cov small i { width: 8px; height: 8px; display: inline-block; }
.callout { margin: 20px 0 0; padding: 12px 16px; border-left: 4px solid var(--ink); background: var(--card); font: 16px/1.45 var(--serif); }
.callout.l { border-left-color: var(--b-l2); }
.callout.r { border-left-color: var(--b-r2); }
.callout b { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; }
.sec { margin-top: 34px; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols3 > section { padding: 0 16px 0 0; min-width: 0; }
.cols3 > section + section { padding-left: 16px; border-left: 1px solid var(--hair); }
.col-h { display: flex; align-items: center; gap: 8px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.col-h i { width: 10px; height: 10px; display: inline-block; }
.col-h small { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.hl { list-style: none; margin: 0; padding: 0; }
.hl li { padding: 12px 0; border-bottom: 1px solid var(--hair-2); }
.src { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--sans); text-align: left; }
.src:hover span { text-decoration: underline; }
.hl .row { display: flex; align-items: center; gap: 8px; }
.hl time { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.hl a.t { display: block; font: 500 16.5px/1.3 var(--serif); text-decoration: none; margin-top: 6px; }
.hl a.t:hover { text-decoration: underline; }
.hl .own { font: 12px var(--sans); color: var(--ink-3); margin-top: 5px; }
.col-empty { padding: 16px 0; font: italic 15px/1.4 var(--serif); color: var(--ink-3); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair-2); font-size: 13px; line-height: 1.35; }
.timeline time { font: 500 11px var(--mono); color: var(--ink-3); padding-top: 2px; }

/* ---------- En-tête de page ---------- */
.page-h { padding: 26px 0 6px; }
.page-h h1 { font: 600 clamp(30px, 4vw, 48px)/1.05 var(--serif); letter-spacing: -.015em; margin: 6px 0 8px; }
.page-h p { font: 17px/1.5 var(--serif); color: var(--ink-2); margin: 0; max-width: 680px; }
.page-h .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { font: 600 13px var(--sans); padding: 10px 12px 9px; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs sup { font: 500 10px var(--mono); margin-left: 3px; }

/* Articles (recherche élargie) */
.arts { list-style: none; margin: 0; padding: 0; }
.art { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.art time { font: 500 11px var(--mono); color: var(--ink-3); padding-top: 3px; }
.art .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.art a.t { display: block; font: 500 18px/1.3 var(--serif); text-decoration: none; margin-top: 4px; }
.art a.t:hover { text-decoration: underline; }
.art .own { font: 12px var(--sans); color: var(--ink-3); margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.tag i { width: 7px; height: 7px; display: inline-block; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0; }
.more-row { padding: 20px 0; text-align: center; }

/* Vidéos */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 22px; padding: 20px 0; }
.vid { text-align: left; display: block; }
.vid .frame { position: relative; display: block; aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; }
.vid .frame img { width: 100%; height: 100%; object-fit: cover; }
.vid .play { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; background: var(--paper); display: grid; place-items: center; }
.vid .play svg { width: 14px; height: 14px; fill: var(--ink); }
.vid h3 { font: 600 16.5px/1.3 var(--serif); margin: 10px 0 6px; }
.vid:hover h3 { text-decoration: underline; }

/* Mon prisme */
.me-verdict { padding: 6px 0 4px; }
.me-verdict h2 { font: 600 clamp(28px, 3.4vw, 42px)/1.08 var(--serif); letter-spacing: -.015em; margin: 8px 0 0; }
.gauge { position: relative; margin: 46px 0 0; }
.gauge .segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 12px; }
.gauge .mk { position: absolute; transform: translateX(-50%); font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.gauge .mk::after { content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); }
.gauge .mk.me { bottom: 22px; color: var(--ink); }
.gauge .mk.me::after { top: 16px; height: 22px; }
.gauge .mk.ref { top: 22px; color: var(--ink-3); }
.gauge .mk.ref::after { bottom: 16px; height: 22px; background: var(--ink-3); }
.gauge + .scale-labels { margin-top: 30px; }
.flag.read { color: var(--ink-3); }
a.is-read { color: var(--ink-3); }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--hair-2); }
.hist a { grid-column: 1; font: 500 14px/1.3 var(--serif); text-decoration: none; }
.hist a:hover { text-decoration: underline; }
.hist .x { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 24px; height: 24px; color: var(--ink-3); font-size: 16px; }
.hist .x:hover { color: var(--ink); background: var(--paper-2); }

/* Annuaire des propriétaires */
.owners-grid { columns: 3 320px; column-gap: 32px; padding: 10px 0 40px; }
.owner-block { break-inside: avoid; padding: 10px 0 16px; border-top: 2px solid var(--rule); margin-bottom: 18px; }
.owner-block h3 { font: 600 22px/1.15 var(--serif); margin: 0 0 4px; }
.owner-block .sub { font: 12.5px/1.4 var(--sans); color: var(--ink-3); margin-bottom: 8px; }
.outlets { list-style: none; margin: 0; padding: 0; }
.outlets button { width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--hair-2); text-align: left; }
.outlets button:hover .nm { text-decoration: underline; }
.outlets .nm { font: 500 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outlets .nm small { color: var(--ink-3); font-weight: 400; margin-left: 4px; font-family: var(--mono); font-size: 11px; }
.scale-mini { height: 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.scale-mini span { background: var(--hair-2); }
.scale-mini span.on { background: var(--bc); }
.scale-mini.state span { background: var(--b-state); opacity: .35; }

/* ---------- Tiroir (fiche média) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer .scrim, .modal .scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .42); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--paper); border-left: 1px solid var(--rule); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding: 0 28px 40px;
}
.drawer.open { pointer-events: auto; }
.drawer.open .scrim, .modal.open .scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-close, .modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }

.dr-head { padding: 34px 0 18px; border-bottom: 3px solid var(--rule); }
.dr-logo { width: 52px; height: 52px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--hair); margin-bottom: 14px; overflow: hidden; }
.dr-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.dr-logo.fallback { font: 700 24px var(--serif); }
.dr-head h2 { font: 600 32px/1.05 var(--serif); margin: 0 0 6px; letter-spacing: -.01em; }
.dr-head .dom { font: 500 12px var(--mono); color: var(--ink-3); text-decoration: none; }
.dr-head .dom:hover { text-decoration: underline; }
.dr-desc { font: italic 16px/1.45 var(--serif); color: var(--ink-2); margin: 12px 0 0; }
.dr-sec { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.dr-sec h3 { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.scale { height: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.scale span { background: var(--hair-2); }
.scale span.on { background: var(--bc); }
.scale-labels { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--ink-3); margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }
.scale-verdict { font: 600 20px var(--serif); margin-top: 10px; }
.state-badge { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px dashed var(--b-state); }
.state-badge svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--b-state); stroke-width: 1.6; }
.chain { display: grid; }
.node { padding: 10px 0 10px 16px; border-left: 2px solid var(--hair); position: relative; }
.node::before { content: ""; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px; background: var(--paper); border: 2px solid var(--ink-3); }
.node.top { border-left-color: var(--ink); }
.node.top::before { background: var(--ink); border-color: var(--ink); }
.node small { display: block; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.node span { font: 500 16px/1.35 var(--serif); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fact small { display: block; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fact span { font: 500 15px/1.35 var(--serif); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Fenêtre ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal.open { pointer-events: auto; }
.modal-box {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 8px 8px 0 rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s;
}
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-box.narrow { width: min(440px, 100%); }
.modal-pad { padding: 34px 36px 32px; }
.modal-pad h2 { font: 600 34px/1.05 var(--serif); margin: 6px 0 14px; letter-spacing: -.01em; }
.modal-pad h3 { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 22px 0 8px; padding-top: 8px; border-top: 1px solid var(--hair); }
.modal-pad p { font: 16px/1.55 var(--serif); color: var(--ink-2); margin: 0 0 8px; }
.modal-pad dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font: 15px/1.45 var(--serif); }
.modal-pad dt { font: 600 13px var(--sans); padding-top: 2px; }
.modal-pad dd { margin: 0; color: var(--ink-2); }
.player { aspect-ratio: 16/9; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { padding: 16px 20px 20px; }
.player-info h3 { font: 600 20px/1.25 var(--serif); margin: 0 0 6px; }
.access-form { display: flex; gap: 8px; margin-top: 16px; }
.access-form input { flex: 1; height: 38px; padding: 0 12px; font: 15px var(--sans); background: var(--card); color: var(--ink); border: 1px solid var(--hair); border-radius: 2px; }
.access-form .btn { height: 38px; }
.err-text { color: var(--b-r2); font-size: 13px; margin-top: 8px; }

/* ---------- Pied ---------- */
.foot { padding-top: 40px; padding-bottom: 50px; }
.foot .spectrum { margin-bottom: 16px; }
.foot p { font: 13px/1.6 var(--sans); color: var(--ink-3); max-width: 760px; margin: 0; }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 1180px) {
  .lead { grid-template-columns: 1fr; gap: 16px; }
  .lead-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 10px; }
  .rail-in { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; }
  .search { width: 190px; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .mast-top { gap: 8px; }
  .dateline { display: none; }
  .edition { margin-left: 0; flex: 1; }
  .nameplate { padding: 14px 16px 10px; }
  .motto { font-size: 14px; }
  .sections-in { flex-wrap: wrap; gap: 0; }
  .cats { order: 2; flex-basis: 100%; }
  .cats a { padding: 11px 9px 10px; }
  .search { order: 1; width: 100%; padding-top: 8px; }
  .search > svg { top: 17px; }
  .search kbd { display: none; }
  .search:focus-within { width: 100%; }
  .suggest { left: 0; right: 0; width: auto; max-height: 62vh; }
  .lead { grid-template-columns: 1fr; gap: 14px; }
  .lead-media { aspect-ratio: 16 / 10; }
  .angles3, .cols3, .s-cov { grid-template-columns: 1fr; }
  .angles3 > div + div, .cols3 > section + section, .s-cov > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); }
  .angles3 > div { padding: 10px 0; }
  .cols3 > section { padding: 0 0 18px; }
  .s-cov > div { padding: 10px 0; }
  .story { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 18px 0; }
  .story h3 { font-size: 19px; }
  .story .dek { font-size: 14.5px; -webkit-line-clamp: 2; }
  .story .thumb { aspect-ratio: 1; }
  .story-foot .bar { width: 110px; }
  .art { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .drawer-panel { top: auto; height: 88vh; width: 100%; border-left: 0; border-top: 1px solid var(--rule); transform: translateY(100%); padding: 0 18px 30px; }
  .modal { padding: 10px; align-items: end; }
  .modal-pad { padding: 28px 20px 24px; }
  .modal-pad h2 { font-size: 28px; }
  .modal-pad dl { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Nouvelles sections ---------- */
.lang { display: inline-block; font: 600 9.5px/1 var(--mono); letter-spacing: .06em; padding: 3px 5px; border: 1px solid var(--hair); color: var(--ink-3); border-radius: 2px; vertical-align: 1px; }
a.tr { font: 600 11px var(--sans); color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
a.tr:hover { color: var(--ink); }
.lead-note { font: italic 17px/1.5 var(--serif); color: var(--ink-2); margin: 14px 0 8px; max-width: 720px; }
.chip .new { margin-left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--b-r2); color: #fff; font: 600 10.5px/18px var(--mono); text-align: center; }
.was { font: 13px/1.4 var(--sans); color: var(--ink-3); margin-top: 4px; }
.was s { text-decoration-thickness: 1px; }
.hl div.t { font: 500 16.5px/1.3 var(--serif); margin-top: 4px; }

/* Mots chargés */
mark.ml, mark.mr { color: inherit; padding: 0 2px; border-radius: 2px; }
mark.ml { background: color-mix(in srgb, var(--b-l2) 22%, transparent); box-shadow: inset 0 -2px 0 var(--b-l2); }
mark.mr { background: color-mix(in srgb, var(--b-r2) 20%, transparent); box-shadow: inset 0 -2px 0 var(--b-r2); }
.words { padding: 12px 14px; background: var(--card); border: 1px solid var(--hair); margin: 0 0 14px; }
.words-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.words-cols > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 15px var(--serif); }

/* Résumé neutre (IA) */
.ai { padding: 16px 18px; border: 1px solid var(--hair); border-left: 4px solid var(--ink); background: var(--card); }
.ai p { margin: 0 0 10px; font: 16px/1.5 var(--serif); color: var(--ink-2); }
.ai p:last-child { margin-bottom: 0; }
.ai .ai-sum { font-size: 18px; color: var(--ink); }
.ai .ai-wait { font-style: italic; color: var(--ink-3); animation: pulse 1.6s ease-in-out infinite; }

/* Silences */
.silent { display: grid; gap: 10px; }
.silent > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--hair-2); }
.silent .bb { margin-right: 4px; }

/* Vu d'ici, vu d'ailleurs */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; margin-top: 8px; }
.zones > section { min-width: 0; }

/* Vidéos */
.vid .vbadge { position: absolute; left: 8px; top: 8px; }
.vmeta { display: flex; align-items: center; gap: 7px; font: 12px var(--sans); color: var(--ink-3); flex-wrap: wrap; }
.vmeta b { color: var(--ink); font-weight: 600; }

/* Le matin */
.matin-list { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: m; }
.matin-list > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.matin-list .num { font: 700 54px/0.9 var(--serif); color: var(--ink); font-variation-settings: "opsz" 72; }
.matin-list h2 { font: 600 clamp(24px, 3vw, 32px)/1.1 var(--serif); margin: 8px 0 10px; letter-spacing: -.01em; }
.matin-list h2 a { text-decoration: none; }
.matin-list h2 a:hover { text-decoration: underline; }
.matin-list .dek { font: 16.5px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 12px; }
.matin-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px 36px; padding: 30px 0 10px; }
.mini-h { font: 600 19px/1.25 var(--serif); margin: 8px 0 10px; }
.mini-h a { text-decoration: none; }
.mini-h a:hover { text-decoration: underline; }

/* Devine le média */
.quiz-card { max-width: 720px; margin: 16px 0 40px; padding: 26px 28px; background: var(--card); border: 1px solid var(--rule); box-shadow: 6px 6px 0 var(--hair); }
.quiz-card h2 { font: 600 clamp(24px, 3.4vw, 34px)/1.15 var(--serif); margin: 12px 0 22px; letter-spacing: -.01em; }
.quiz-card .dek { font: 17px/1.5 var(--serif); color: var(--ink-2); }
.quiz-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa { height: 56px; font: 700 15px var(--sans); letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; color: #fff; transition: transform .1s, opacity .2s; }
.qa:active { transform: scale(.97); }
.qa.l { background: var(--b-l2); } .qa.c { background: var(--b-c); color: #1E1D1A; } .qa.r { background: var(--b-r2); }
.qa:disabled { opacity: .35; cursor: default; }
.qa.right-answer { opacity: 1; outline: 3px solid var(--ink); outline-offset: 2px; }
.qa.picked:not(.right-answer) { opacity: .7; text-decoration: line-through; }
.reveal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); font: 16px/1.6 var(--sans); }
.reveal .src { margin: 0 4px; }
.reveal.ok b:first-child { color: var(--b-l2); }
.reveal.ko b:first-child { color: var(--b-r2); }
.reveal .own { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.reveal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.reveal-actions .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.quiz-sides { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.quiz-sides .bb { font-size: 12px; padding: 6px 10px; }
.small { font-size: 13px; }

/* La carte des propriétaires (bulles) */
.web-wrap { padding: 4px 0 30px; }
.pack-wrap { display: grid; grid-template-columns: auto minmax(260px, 1fr); gap: 28px; align-items: start; }
.pack { max-width: 100%; }
.pack svg { display: block; max-width: 100%; height: auto; }
.pack .pk-owner { transition: fill .2s; }
.pack .pk-owner:hover { fill: var(--paper-2); }
.pack .pk-media:hover { stroke: var(--ink); stroke-width: 2px; }
.pack-info { position: sticky; top: calc(var(--top-h, 110px) + 10px); border-top: 2px solid var(--rule); padding-top: 10px; }
.pk-name { font: 700 28px/1.1 var(--serif); margin: 4px 0 6px; letter-spacing: -.01em; }
.pk-top { list-style: none; margin: 8px 0 0; padding: 0; }
.pk-top button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair-2); text-align: left; }
.pk-top button span { font: 600 16px var(--serif); }
.pk-top button b { font: 500 11px var(--mono); color: var(--ink-3); }
.pk-top button:hover span { text-decoration: underline; }
.pack-info .outlets button { grid-template-columns: 16px minmax(0, 1fr) auto; }
@media (max-width: 1020px) {
  .pack-wrap { grid-template-columns: 1fr; }
  .pack-info { position: static; }
}

@media (max-width: 760px) {
  /* Le fil d'abord : lentilles et sujets sur une ligne qui défile. */
  .lensbar { padding: 12px 0 10px; gap: 8px; }
  .lensbar > .label, .legend-row { display: none; }
  .lenses, .topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); }
  .lenses::-webkit-scrollbar, .topics::-webkit-scrollbar { display: none; }
  .lenses button, .topics .chip { flex: none; }
  .lens-desc { font-size: 14px; margin-top: 2px; }
  .topics { padding-top: 10px; padding-bottom: 10px; }
  .topics .label { flex: none; }
  .words-cols { grid-template-columns: 1fr; }
  .matin-list > li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .matin-list .num { font-size: 36px; }
  .quiz-card { padding: 20px 18px; box-shadow: none; }
  .qa { height: 52px; font-size: 13px; }
}

/* ---------- Barre d'onglets (téléphone) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .mast-links, #aboutBtn { display: none; }
  .band-row { min-height: 54px; gap: 10px; }
  .logo-mark { width: 42px; height: 27px; }
  .logo-word { font-size: 25px; }
  .edition-pick { height: 32px; padding: 0 6px 0 8px; }
  .edition-pick select { font-size: 12.5px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; font: 600 10.5px var(--sans); color: var(--ink-3); text-decoration: none; position: relative; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--ink); }
  .tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--b-r2); color: #fff; font: 600 10px/16px var(--mono); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 30px; }
  .folio { padding-top: 18px; }
}
@media (display-mode: standalone) {
  .band { padding-top: env(safe-area-inset-top); }
}

/* Feuille « Plus » */
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list a, .sheet-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--hair); text-decoration: none; text-align: left; font: 500 17px var(--serif); }
.sheet-list svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--ink-3); }
.sheet-list small { display: block; font: 13px var(--sans); color: var(--ink-3); margin-top: 2px; }
.install-hint { margin-top: 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--hair); font: 14px/1.5 var(--sans); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Actions : favori (★) et partager ---------- */
.acts { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-width: 30px; justify-content: center; padding: 0 6px; border-radius: 2px; color: var(--ink-3); font: 600 12.5px var(--sans); }
.act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.act:hover { color: var(--ink); background: var(--paper-2); }
.act[aria-pressed="true"] { color: #B8860B; }
.act[aria-pressed="true"] svg { fill: #E3B23C; stroke: #B8860B; }
.act-l { border: 1px solid var(--hair); padding: 0 11px; color: var(--ink); }
.act-l:hover { border-color: var(--ink); }
.s-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hl .row .acts, .a2-top .acts { margin-left: 4px; }
.hl .row .acts .act, .a2-top .acts .act { height: 26px; min-width: 26px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); padding: 11px 18px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.dr-go { margin: 0 0 16px; width: 100%; justify-content: center; height: 38px; font-size: 14px; }

/* ---------- Recherche : astuces, filtres, chronologie ---------- */
.q-also { font: 14px var(--sans) !important; color: var(--ink-3) !important; margin-top: 8px !important; }
.q-also b { color: var(--ink); font-weight: 600; }
.q-help { margin-top: 12px; font: 14px/1.5 var(--sans); color: var(--ink-2); max-width: 680px; }
.q-help summary { cursor: pointer; font-weight: 600; color: var(--ink); width: max-content; }
.q-help ul { margin: 8px 0 0; padding-left: 18px; }
.q-help code { font: 12.5px var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 2px; }
.wf { display: grid; gap: 8px; margin: 4px 0 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--hair); }
.wf-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wf-row .label { width: 74px; flex: none; }
.tl { margin: 4px 0 14px; }
.tl-bars { display: flex; align-items: flex-end; gap: 2px; height: 74px; border-bottom: 1px solid var(--rule); }
.tl-col { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; min-width: 0; }
.tl-col:hover { background: var(--paper-2); }
.tl-col i { display: block; width: 100%; min-height: 2px; }
.tl-axis { display: flex; justify-content: space-between; font: 500 10.5px var(--mono); color: var(--ink-3); margin-top: 5px; text-transform: uppercase; letter-spacing: .04em; }
.arts2 { list-style: none; margin: 0; padding: 0; }
.art2 { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.a2-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a2-top .src { text-decoration: none; color: var(--ink); }
.a2-top time { font: 500 11px var(--mono); color: var(--ink-3); }
.a2-t { display: block; margin-top: 4px; font: 500 17.5px/1.35 var(--serif); text-decoration: none; }
.a2-t:hover { text-decoration: underline; }
.a2-t.is-read { color: var(--ink-3); }
.art2 mark, .oa mark, .hist mark { background: rgba(227, 178, 60, .35); color: inherit; padding: 0 1px; }
@media (max-width: 760px) {
  .wf { padding: 10px var(--gut); margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); border-left: 0; border-right: 0; }
  .wf-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wf-row::-webkit-scrollbar { display: none; }
  .wf-row .chip { flex: none; }
  .wf-row .label { width: auto; margin-right: 4px; }
}

/* ---------- Page d'un média ---------- */
.o-hero { padding: 26px 0 8px; display: grid; gap: 18px; }
.o-id { display: flex; gap: 16px; align-items: flex-start; }
.o-logo { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--card); border: 1px solid var(--hair); }
.o-logo .fav, .o-logo .fav-fallback { width: 32px; height: 32px; font-size: 18px; }
.o-hero h1 { font: 700 clamp(32px, 4.6vw, 54px)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.025em; margin: 6px 0 10px; }
.o-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font: 14px var(--sans); color: var(--ink-2); margin: 0; }
.o-meta b { color: var(--ink); }
.o-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.o-actions .btn, .o-actions .act-l { height: 32px; }
.o-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rule); border-bottom: 1px solid var(--hair); }
.o-stats > div { padding: 12px 14px 12px 0; }
.o-stats > div + div { padding-left: 14px; border-left: 1px solid var(--hair); }
.o-stats b { display: block; font: 600 28px/1.1 var(--serif); }
.o-stats small { font: 12px/1.3 var(--sans); color: var(--ink-3); }
.o-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.o-days button { display: grid; gap: 4px; justify-items: center; padding: 6px 0 4px; border-radius: 2px; }
.o-days button:hover { background: var(--paper-2); }
.o-days button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.od-bar { width: 60%; max-width: 46px; height: 58px; display: flex; align-items: flex-end; background: var(--hair-2); }
.od-bar i { display: block; width: 100%; background: var(--ink-2); min-height: 2px; }
.o-days button[aria-pressed="true"] .od-bar { background: rgba(255, 255, 255, .15); }
.o-days button[aria-pressed="true"] .od-bar i { background: var(--paper); }
.od-n { font: 600 12px var(--mono); }
.od-l { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.o-days button[aria-pressed="true"] .od-l { color: inherit; }
.o-subj { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.o-subj .label { margin-right: 4px; }
.o-stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.o-stories a { display: grid; gap: 8px; height: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--hair); text-decoration: none; }
.o-stories a:hover { border-color: var(--ink); }
.os-t { font: 600 16px/1.3 var(--serif); }
.os-m { display: flex; align-items: center; gap: 10px; }
.os-m .bar { width: 90px; }
.os-m small { font: 12px var(--sans); color: var(--ink-3); }
.o-browse { margin-top: 30px; }
.o-tools { position: sticky; top: calc(var(--top-h, 0px) - 1px); z-index: 12; background: var(--paper); padding: 10px 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--hair); display: grid; gap: 10px; transition: top .22s ease; }
.topbar.tucked ~ main .o-tools { top: 0; }
.o-search { position: relative; display: flex; align-items: center; }
.o-search svg { position: absolute; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.o-search input { width: 100%; height: 44px; padding: 0 40px; font: 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 2px; outline: none; }
.o-search input:focus { border-color: var(--ink); }
.o-search input::-webkit-search-cancel-button { display: none; }
.o-clear { position: absolute; right: 6px; width: 32px; height: 32px; font-size: 20px; color: var(--ink-3); }
.o-clear:hover { color: var(--ink); }
.o-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.o-chips select, .tog { height: 32px; padding: 0 10px; font: 600 12.5px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 2px; }
.o-chips select:hover, .tog:hover { border-color: var(--ink); }
.tog[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 2px; overflow: hidden; }
.seg button { height: 30px; padding: 0 11px; font: 600 12.5px var(--sans); color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--hair); }
.seg button:hover { background: var(--paper-2); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg-ico { margin-left: auto; }
.seg-ico button { padding: 0 8px; display: grid; place-items: center; }
.seg-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.o-count { padding: 12px 0 2px; font: 13px var(--sans); color: var(--ink-3); }
.o-count b { color: var(--ink); }
.o-day { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font: 700 20px var(--serif); }
.o-day small { font: 500 11px var(--mono); color: var(--ink-3); }
.o-list .oa { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.o-list .oa.noimg { grid-template-columns: minmax(0, 1fr); }
.oa-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 11px var(--mono); color: var(--ink-3); }
.oa-cat { text-transform: uppercase; letter-spacing: .06em; }
.oa-t { display: block; font: 600 19px/1.28 var(--serif); text-decoration: none; margin: 5px 0 6px; }
.oa-t:hover { text-decoration: underline; }
.oa-t.is-read { color: var(--ink-3); }
.oa-x { font: 15px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oa-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oa-story { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px var(--sans); text-decoration: none; padding: 4px 8px; border: 1px solid var(--hair); border-radius: 2px; }
.oa-story .bar { width: 50px; }
.oa-story:hover { border-color: var(--ink); }
.oa-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hair-2); }
.oa-img img { width: 100%; height: 100%; object-fit: cover; }
.o-cards .o-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-top: 10px; }
.o-cards .oa { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hair); }
.o-cards .oa-img { aspect-ratio: 16 / 9; }
.o-cards .oa-body { padding: 10px 12px 8px; display: flex; flex-direction: column; flex: 1; }
.o-cards .oa-t { font-size: 17px; }
.o-cards .oa-foot { margin-top: auto; }
@media (max-width: 760px) {
  .o-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .o-stats > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .o-logo { width: 48px; height: 48px; }
  .o-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .o-chips::-webkit-scrollbar { display: none; }
  .o-chips > * { flex: none; }
  .o-list .oa { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .oa-t { font-size: 17px; }
  .oa-x { -webkit-line-clamp: 2; font-size: 14.5px; }
  .o-cards .o-group { grid-template-columns: 1fr; }
}

/* ---------- Favoris ---------- */
.fv-tools { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.fv-tools .tabs { border-bottom: 0; flex: 1; margin-top: 8px; }
.fv-search { width: 300px; max-width: 100%; margin-bottom: 8px; }
.fv-search input { height: 38px; font-size: 15px; }
.fv-list { list-style: none; margin: 0; padding: 0; }
.fv { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.fv-img { width: 110px; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hair-2); }
.fv-img img { width: 100%; height: 100%; object-fit: cover; }
.fv-body { flex: 1; min-width: 0; }
.fv-body .kicker a { color: var(--ink); text-decoration: none; font-weight: 600; }
.fv-t { display: block; font: 600 19px/1.28 var(--serif); text-decoration: none; margin: 4px 0 8px; }
.fv-t:hover { text-decoration: underline; }
.fv-foot .acts { margin-left: 0; gap: 8px; }
.fv-outlets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.hist-search { margin-bottom: 8px; }
.hist-search input { height: 36px; font-size: 14px; padding-left: 36px; }
.hist-search svg { left: 10px; width: 16px; height: 16px; }
@media (max-width: 760px) { .fv-img { width: 84px; } .fv-t { font-size: 17px; } .fv-search { width: 100%; } }

/* ---------- Finitions téléphone ---------- */
.kp { white-space: nowrap; }
.covered .favs { flex: none; }
.search-btn { display: none !important; }
@media (max-width: 760px) {
  .topbar.compact .search-btn { display: grid !important; }
  .topbar.compact:not(.searching) .search { display: none; }
  .topbar.compact .sections-in { min-height: 0; }
}
/* Le bandeau ne dépasse jamais l'écran : le choix d'édition rétrécit au besoin. */
.band-row { min-width: 0; }
.band-actions { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
.edition-pick { min-width: 0; flex: 0 1 auto; }
.edition-pick select { min-width: 0; width: 100%; max-width: 170px; text-overflow: ellipsis; }
html, body { overflow-x: clip; }
@media (max-width: 400px) {
  .band-row { gap: 8px; }
  .logo { gap: 7px; }
  .logo-mark { width: 36px; height: 23px; }
  .logo-word { font-size: 22px; }
  .band-actions { gap: 2px; }
  .band .icon-btn { width: 32px; }
  .lang-btn { width: 34px !important; }
}
/* iPad et écrans moyens : les liens du bandeau défilent au lieu de déborder. */
.mast-links { min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
.mast-links::-webkit-scrollbar { display: none; }
@media (min-width: 1181px) { .mast-links { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .band-row { gap: 14px; }
  .mast-links { margin-left: 0; }
  .mast-links a { padding: 8px 8px; font-size: 12.5px; }
  .logo-word { font-size: 27px; }
  .logo-mark { width: 44px; height: 28px; }
}
/* Les lignes d'articles passent à la ligne au lieu de se chevaucher. */
.hl .row { flex-wrap: wrap; row-gap: 4px; }
.hl .row .src { min-width: 0; }
/* Écrans tactiles (téléphone, iPad) : des cibles assez grandes pour le doigt. */
@media (pointer: coarse) {
  .chip { min-height: 34px; padding: 6px 12px; }
  .lenses button { min-height: 36px; }
  .act { height: 36px; min-width: 36px; }
  .hl .row .acts .act, .a2-top .acts .act { height: 34px; min-width: 34px; }
  .seg button, .o-chips select, .tog { height: 36px; }
  .cats a { padding-top: 13px; padding-bottom: 12px; }
  .covered a { padding: 2px 0; }
  .o-days button { padding: 8px 0 6px; }
}
.fv-foot .acts { flex-wrap: wrap; }
.fv-body { overflow-wrap: anywhere; }
/* Téléphone : dans un bloc d'histoire, seul le titre partage la ligne avec l'image ;
   l'en-tête, les médias et la barre prennent toute la largeur (plus rien n'est coincé). */
@media (max-width: 760px) {
  .story:not(.noimg) { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 14px; row-gap: 0; }
  .story:not(.noimg) > div { display: contents; }
  .story:not(.noimg) > div > .kicker { grid-column: 1 / -1; margin-bottom: 2px; }
  .story:not(.noimg) > div > h3 { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .story:not(.noimg) > .thumb { grid-column: 2; grid-row: 2 / span 2; margin-top: 6px; }
  .story:not(.noimg) > div > .dek { grid-column: 1; grid-row: 3; }
  .story:not(.noimg) > div > .covered, .story:not(.noimg) > div > .story-foot { grid-column: 1 / -1; }
  .story .kicker { line-height: 1.55; }
  .covered { font-size: 13px; }
  .story-foot { row-gap: 6px; }
  .story-foot .acts { margin-left: auto; }
  .lead h2 { font-size: 30px; }
  .lead .kicker { line-height: 1.55; }
}
@media (max-width: 760px) { .story .story-foot .bar { display: none; } .story .story-foot { flex-wrap: nowrap; } .story .story-foot .split { flex-wrap: wrap; min-width: 0; } .story .story-foot .flag { white-space: nowrap; } }
@media (max-width: 760px) { .story .story-foot:has(.flag) { flex-wrap: wrap; } }
/* iPad (tactile, jusqu'à 1100 px) : barre d'onglets en bas comme une app, au lieu des liens coupés du bandeau. */
@media (max-width: 1100px) and (min-width: 761px) and (pointer: coarse) {
  .mast-links, #aboutBtn { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding: 0 max(24px, calc((100vw - 720px) / 2)) env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 60px; font: 600 11.5px var(--sans); color: var(--ink-3); text-decoration: none; position: relative; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 3px; background: var(--ink); }
  .tabbar .dot { position: absolute; top: 9px; left: calc(50% + 9px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--b-r2); color: #fff; font: 600 10px/16px var(--mono); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Résultats de recherche (index) */
.q-fix { margin: 0 0 10px; padding: 8px 12px; background: var(--card); border-left: 3px solid var(--ink); font: 14.5px/1.45 var(--sans); color: var(--ink-2); }
.q-fix a { color: var(--ink); font-weight: 700; }
.art2 { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; }
.art2.noimg { grid-template-columns: minmax(0, 1fr); }
.a2-x { margin: 4px 0 6px; font: 14.5px/1.5 var(--serif); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a2-foot { display: flex; align-items: center; gap: 10px; }
.a2-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hair-2); align-self: start; margin-top: 4px; }
.a2-img img { width: 100%; height: 100%; object-fit: cover; }
.outlets .o-row { width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--hair-2); text-decoration: none; }
.outlets .o-row:hover .nm { text-decoration: underline; }
@media (max-width: 760px) { .art2 { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; } .a2-x { font-size: 14px; } }

/* ---------- Taille du texte (réglages) ---------- */
#view, .foot, .modal-box, .drawer-panel { zoom: var(--scale, 1); }
.prefs-btn { font: 600 14px var(--serif) !important; letter-spacing: -.02em; }
@media (max-width: 760px) { #themeBtn { display: none; } }

/* ---------- Réglages ---------- */
.settings section { padding: 14px 0; border-top: 1px solid var(--hair); }
.settings h3 { font: 600 13px var(--sans); margin: 0 0 10px; }
.settings h3 small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.seg-big { display: flex; flex-wrap: wrap; }
.seg-big button { height: auto; min-height: 40px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.seg-big button span { font-family: var(--serif); font-weight: 700; }
.set-preview { font: 16px/1.5 var(--serif); color: var(--ink-2); margin: 10px 0 0; }
.set-select { width: 100%; height: 42px; padding: 0 12px; font: 15px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 2px; }
.set-foot { display: flex; justify-content: flex-end; }

/* ---------- Accueil la première fois ---------- */
.ob { min-height: 420px; display: flex; flex-direction: column; }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.ob-dots i { width: 22px; height: 4px; background: var(--hair); }
.ob-dots i.on { background: var(--ink); }
.ob-body { flex: 1; }
.ob-body h2 { font: 700 30px/1.1 var(--serif); margin: 0 0 8px; }
.ob-sub { font: 15px var(--sans); color: var(--ink-3); margin: 0 0 16px; }
.ob-hero { text-align: center; padding-top: 6px; }
.ob-logo { width: 110px; height: 70px; overflow: visible; margin-bottom: 10px; }
.ob-logo path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ob-points { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; display: grid; gap: 12px; }
.ob-points li { font: 16.5px/1.45 var(--serif); color: var(--ink-2); padding-left: 16px; border-left: 3px solid var(--hair); }
.ob-points li:nth-child(1) { border-color: var(--b-l2); } .ob-points li:nth-child(2) { border-color: var(--b-c); } .ob-points li:nth-child(3) { border-color: var(--b-r2); }
.ob-points b { color: var(--ink); }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ob-grid button { min-height: 48px; padding: 8px 12px; border: 1px solid var(--hair); background: var(--card); font: 600 14.5px var(--sans); text-align: left; border-radius: 2px; }
.ob-grid button:hover { border-color: var(--ink); }
.ob-grid button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ob-small button { min-height: 40px; font-size: 13px; }
.ob-h3 { font: 600 14px var(--sans); margin: 18px 0 8px; }
.ob-h3 small { font-weight: 400; color: var(--ink-3); }
.ob-sizes button { display: grid; gap: 4px; justify-items: center; text-align: center; }
.ob-sizes button span { font-family: var(--serif); font-weight: 700; line-height: 1; }
.ob-preview { font-family: var(--serif); color: var(--ink-2); margin: 18px 0 0; }
.ob-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.ob-nav .btn { height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- Écouter, recherche à la voix ---------- */
.act[data-listen][aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.act[data-listen][aria-pressed="true"] svg { fill: none; stroke: currentColor; }
.matin-listen { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.matin-listen .note { margin: 0; }
.mic { position: absolute; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-3); border-radius: 50%; }
.mic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mic:hover { color: var(--ink); background: var(--paper-2); }
.mic.on { color: #fff; background: var(--b-r2); animation: pulse 1.2s ease-in-out infinite; }
.search.has-mic kbd { display: none; }
.search.has-mic input { padding-right: 38px; }

/* ---------- Tirer pour rafraîchir ---------- */
.ptr { position: fixed; top: calc(var(--top-h, 100px) + 6px); left: 50%; z-index: 25; width: 38px; height: 38px; margin-top: -40px; border-radius: 50%; background: var(--card); border: 1px solid var(--hair); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translate(-50%, 0); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.ptr svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.ptr.ready svg { stroke: var(--ink); }

/* ---------- Titres traduits ---------- */
.trd { display: inline-block; vertical-align: middle; margin-left: 8px; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--hair); padding: 1px 5px; border-radius: 2px; cursor: help; }
.s-orig { font: 14px var(--sans) !important; color: var(--ink-3) !important; margin: -2px 0 10px !important; }

/* ---------- Page d'une histoire ---------- */
.s-key { margin: 18px 0 8px; padding: 16px 18px 6px; background: var(--card); border: 1px solid var(--hair); border-top: 3px solid var(--ink); }
.s-key .block-h { border-top: 0; padding-top: 0; }
.s-key ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; font: 16.5px/1.5 var(--serif); color: var(--ink-2); }
.s-key li { padding-bottom: 10px; }
.s-key li + li { border-top: 1px solid var(--hair-2); padding-top: 10px; }
.s-key li b { color: var(--ink); font-family: var(--sans); font-size: 14.5px; }
.s-key .bb { margin-right: 4px; }
.col-more { width: 100%; padding: 10px 0; font: 600 13px var(--sans); color: var(--ink); text-align: left; border-bottom: 1px solid var(--hair-2); }
.col-more:hover { text-decoration: underline; }
.s-more { margin-top: 30px; border-top: 2px solid var(--rule); }
.s-more > summary { cursor: pointer; padding: 12px 0; font: 600 14px var(--sans); list-style: none; display: flex; align-items: baseline; gap: 10px; }
.s-more > summary::-webkit-details-marker { display: none; }
.s-more > summary::before { content: "+"; font: 600 18px var(--mono); width: 18px; }
.s-more[open] > summary::before { content: "−"; }
.s-more > summary small { font-weight: 400; color: var(--ink-3); }
.s-more .sec:first-of-type { margin-top: 10px; }

/* ---------- Comparer deux médias ---------- */
.cmp-picks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; margin: 6px 0 18px; }
.cmp-pick { position: relative; display: grid; gap: 6px; }
.cmp-pick input { height: 44px; padding: 0 12px; font: 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 2px; }
.cmp-pick input:focus { border-color: var(--ink); outline: none; }
.cmp-vs { font: italic 600 22px var(--serif); color: var(--ink-3); padding-bottom: 8px; }
.cmp-sug { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: var(--card); border: 1px solid var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); }
.cmp-sug button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; text-align: left; font: 14px var(--sans); }
.cmp-sug button:hover { background: var(--paper-2); }
.cmp-sug button span { flex: 1; }
.cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-card { padding: 16px; background: var(--card); border: 1px solid var(--hair); display: grid; gap: 10px; align-content: start; }
.cmp-name { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--serif); }
.cmp-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 13px var(--sans); color: var(--ink-2); }
.cmp-num b { font: 600 28px var(--serif); margin-right: 6px; }
.cmp-num small { color: var(--ink-3); font: 12px var(--sans); }
.cmp-both { list-style: none; margin: 0; padding: 0; }
.cmp-both > li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.cmp-story { font: 500 11px var(--mono); color: var(--ink-3); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.cmp-two a.t { display: block; font: 500 17px/1.3 var(--serif); text-decoration: none; margin-top: 4px; }
.cmp-two a.t:hover { text-decoration: underline; }
.cmp-only { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp-list li { padding: 9px 0; border-bottom: 1px solid var(--hair-2); display: flex; justify-content: space-between; gap: 10px; }
.cmp-list a { font: 500 15.5px/1.3 var(--serif); text-decoration: none; }
.cmp-list a:hover { text-decoration: underline; }
.cmp-list small { font: 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 760px) {
  .cmp-picks { grid-template-columns: 1fr; gap: 8px; }
  .cmp-vs { padding: 0; text-align: center; }
  .cmp-cards, .cmp-two, .cmp-only { grid-template-columns: 1fr; }
  .cmp-two > div + div { border-top: 1px dashed var(--hair); padding-top: 8px; }
  .s-key { padding: 14px 14px 4px; }
  .s-key ol { font-size: 15.5px; }
}

/* ---------- Résumés écrits par IA ---------- */
.ai-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 6px; font: 600 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #6B4E00; background: #F6E7B8; border-radius: 2px; vertical-align: 1px; white-space: nowrap; cursor: help; }
:root[data-theme="dark"] .ai-tag { color: #F6E7B8; background: #4A3B10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-tag { color: #F6E7B8; background: #4A3B10; } }
.matin-list .ai-tag { margin: 0 0 6px; }
.dek-ai { border-left: 3px solid #E3B23C; padding-left: 10px; }
.s-key.has-ai { border-top-color: #E3B23C; }
.s-key .block-h small#keySrc { color: #8A6A10; }
.ai-note { margin: 2px 0 10px; font: 12.5px/1.45 var(--sans); color: var(--ink-3); }

/* ---------- Lire l'histoire ---------- */
.s-read { display: grid; gap: 10px; margin: 16px 0 4px; }
.btn-read { justify-self: start; height: 46px; padding: 0 20px; font-size: 15px; gap: 8px; }
.btn-read span { font-weight: 400; opacity: .8; }
.s-read > .link { font: 13.5px var(--sans); justify-self: start; }
.s-read-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.s-read-alt .label { margin-right: 4px; }
.read-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 600 13px var(--sans); color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--hair); border-radius: 2px; }
.read-chip:hover { border-color: var(--ink); }
.read-chip i { width: 8px; height: 8px; flex: none; }
.read-chip small { font: 500 10px var(--mono); color: var(--ink-3); }
.read-chip.is-read { color: var(--ink-3); }
.key-src { display: block; margin-top: 4px; font: 12.5px/1.45 var(--sans); color: var(--ink-3); }
@media (max-width: 760px) { .btn-read { justify-self: stretch; justify-content: center; } .s-read-alt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 2px; } .s-read-alt::-webkit-scrollbar { display: none; } .read-chip { flex: none; } }
@media (pointer: coarse) { .read-chip { min-height: 36px; } }
.vgrid + .vgrid { padding-top: 6px; }
.vid-world { margin-top: 30px; }

/* ---------- Villes ---------- */
.kicker .sg-ico, .ville-card .sg-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ville-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--ink); border-left: 4px solid var(--b-l2); text-decoration: none; color: var(--ink); }
.ville-card .sg-ico { width: 22px; height: 22px; flex: none; }
.ville-card span:not(.go) { flex: 1; min-width: 0; }
.ville-card b { display: block; font: 600 17px var(--serif); }
.ville-card small { font: 12.5px var(--sans); color: var(--ink-3); }
.ville-card .go { font: 600 20px var(--sans); }
.ville-card:hover b { text-decoration: underline; }
.villes-search { margin: 6px 0 14px; }
.ville-region { border-top: 1px solid var(--hair); }
.ville-region > summary { cursor: pointer; padding: 12px 0; font: 600 16px var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: baseline; }
.ville-region > summary::-webkit-details-marker { display: none; }
.ville-region > summary small { font: 500 11px var(--mono); color: var(--ink-3); }
.ville-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; padding: 0 0 14px; }
.ville-link { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hair-2); text-decoration: none; }
.ville-link b { font: 500 14.5px var(--sans); }
.ville-link small { font: 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.ville-link:hover b { text-decoration: underline; }
.ville-hits { margin-bottom: 16px; padding: 10px 14px; background: var(--card); border: 1px solid var(--hair); }
.ville-hits .ville-link { flex-direction: column; gap: 2px; }
.chip .fav { width: 14px; height: 14px; }

/* Page d'une ville : chaque média est un filtre, ↗ mène à sa page */
.mchip { display: inline-flex; align-items: stretch; }
.mchip .chip { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mchip .chip[disabled] { opacity: .45; cursor: default; }
.mchip-go { display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--hair); border-left: 0; border-radius: 0 2px 2px 0; font: 600 12px var(--sans); color: var(--ink-3); text-decoration: none; }
.mchip-go:hover { color: var(--ink); border-color: var(--ink); }

/* Barre « Ma ville » */
.city-bar { display: grid; gap: 10px; margin: 14px 0 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--b-l2); }
.cb-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 17px var(--serif); }
.cb-main .sg-ico { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; flex: none; }
.cb-main span { flex: 1; min-width: 200px; }
.cb-pick { display: grid; gap: 4px; }
.cb-pick input { height: 42px; padding: 0 12px; font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 2px; }
.cb-pick input:focus { border-color: var(--ink); outline: none; }
.cb-closed { display: none; }
.cb-change { justify-self: start; font: 600 13px var(--sans); }
.cats .cat-ville { color: var(--b-l2); }

/* ================= Comme une vraie app (iPhone, iPad) ================= */

/* Mode noir OLED : vrai noir, économise la batterie des écrans OLED */
:root[data-theme="oled"] { --paper: #000; --paper-2: #0d0d0c; --card: #0a0a09; --ink: #ECEAE4; --ink-2: #BDB9B0; --ink-3: #8C887F; --rule: #ECEAE4; --hair: #242321; --hair-2: #1a1918; --focus: #6FB3C4; --b-l2: #3F95AB; --b-l1: #7DB5C4; --b-c: #9C978A; --b-r1: #E09A7E; --b-r2: #D0614A; --b-state: #9479C6; --b-unk: #34332f; color-scheme: dark; }
:root[data-theme="oled"] .band { background: #000; border-bottom: 1px solid #1d1c1a; }
:root[data-theme="oled"] .ico-sun { display: block; }
:root[data-theme="oled"] .ico-moon { display: none; }
:root[data-theme="oled"] .ai-tag { color: #F6E7B8; background: #3a2e0c; }

/* Bouton Retour dans le bandeau (app installée) */
.back-nav { color: #F2EFE8 !important; margin-right: -10px; }
.back-nav svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* L'histoire en panneau (téléphone) ou en deux colonnes (iPad) */
#panel .panel-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .38); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#panel .panel-card { position: fixed; z-index: 56; background: var(--paper); display: flex; flex-direction: column; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.panel-bar { display: flex; align-items: center; justify-content: flex-end; padding: 6px 10px 2px; position: relative; flex: none; }
.panel-bar .grab { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--hair); }
.panel-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 var(--gut) calc(30px + env(safe-area-inset-bottom)); flex: 1; }
.panel-body .layout { grid-template-columns: 1fr; padding-top: 0 !important; }
.panel-body .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 10px; }
.panel-body .rail-in { position: static; }
/* Téléphone : monte du bas */
body.panel-sheet #panel .panel-card { left: 0; right: 0; bottom: 0; top: calc(env(safe-area-inset-top) + 18px); border-radius: 14px 14px 0 0; transform: translateY(105%); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .4); }
body.panel-sheet.panel-open #panel .panel-card { transform: translateY(0); }
body.panel-sheet.panel-open #panel .panel-scrim { opacity: 1; pointer-events: auto; }
body.panel-sheet.panel-open { overflow: hidden; }
/* iPad : à droite, la liste reste à gauche */
body.panel-split #panel .panel-card { top: var(--top-h, 110px); right: 0; bottom: 0; width: 56%; border-left: 1px solid var(--rule); transform: translateX(102%); box-shadow: -14px 0 30px -24px rgba(0, 0, 0, .5); }
body.panel-split.panel-open #panel .panel-card { transform: translateX(0); }
body.panel-split .panel-bar .grab { display: none; }
body.panel-split.panel-open #view { max-width: none; margin: 0; width: 44%; padding-right: 18px; }
body.panel-split.panel-open #view .layout { grid-template-columns: 1fr; }
body.panel-split.panel-open #view .rail, body.panel-split.panel-open .foot { display: none; }
body.panel-split.panel-open #view .lead { grid-template-columns: 1fr; }
.kbd-sel { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
body.panel-split .kbd-sel { outline: 0; box-shadow: inset 4px 0 0 var(--b-l2); background: var(--paper-2); }

/* Recherche plein écran (téléphone) */
.search-cancel { display: none; }
@media (max-width: 760px) {
  body.search-full .search { display: flex !important; position: fixed; left: 0; right: 0; top: 0; z-index: 60; width: auto !important; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px; gap: 10px; background: var(--paper); border-bottom: 1px solid var(--hair); }
  body.search-full .search > svg { left: 24px; top: calc(env(safe-area-inset-top) + 21px); }
  body.search-full .search input { flex: 1; height: 40px; font-size: 16px; }
  body.search-full .search-cancel { display: block; font: 600 15px var(--sans); color: var(--b-l2); flex: none; }
  body.search-full .mic { right: 92px; }
  body.search-full .suggest { position: fixed; top: calc(env(safe-area-inset-top) + 61px); left: 0; right: 0; bottom: 0; max-height: none; width: auto; border: 0; box-shadow: none; padding-bottom: 80px; }
  body.search-full .tabbar { display: none; }
}

/* Guide d'installation (iPhone/iPad, Safari) */
.install-card { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 6px; padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .6); }
.ic-icon img { width: 54px; height: 54px; border-radius: 12px; }
.ic-body { flex: 1; font: 14px/1.45 var(--sans); }
.ic-body > b { font: 600 16px var(--serif); display: block; margin-bottom: 4px; }
.ic-body ol { margin: 4px 0 6px; padding-left: 18px; }
.ic-body small { color: var(--ink-3); }
.ic-share { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--paper-2); vertical-align: middle; }
.ic-share svg { width: 15px; height: 15px; fill: none; stroke: #2F7BF6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Les 3 côtés en carrousel (téléphone seulement) */
.sides-swipe { display: none; }
@media (max-width: 760px) {
  .story .sides-swipe { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 4px calc(-1 * var(--gut)) 12px; padding: 0 var(--gut); }
  .sides-swipe::-webkit-scrollbar { display: none; }
  .ss-card { flex: 0 0 78%; scroll-snap-align: start; padding: 10px 12px; background: var(--card); border: 1px solid var(--hair); border-radius: 10px; display: grid; gap: 4px; align-content: start; }
  .ss-side { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .ss-side i { width: 8px; height: 8px; border-radius: 2px; }
  .ss-t { font: 500 15.5px/1.3 var(--serif); text-decoration: none; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ss-by { font: 12px var(--sans); color: var(--ink-3); }
  .ss-none { font: 13.5px/1.4 var(--serif); color: var(--ink-3); font-style: italic; }
}

/* Barre d'onglets translucide, comme iOS */
@media (max-width: 1100px) and (pointer: coarse), (max-width: 760px) {
  .tabbar { background: color-mix(in srgb, var(--paper) 78%, transparent) !important; -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
  .tabbar [aria-current="page"] svg { fill: currentColor; fill-opacity: .14; stroke-width: 2; }
  .tabbar [aria-current="page"]::before { left: 34%; right: 34%; border-radius: 0 0 3px 3px; }
}

/* iPad en paysage : barre latérale à gauche au lieu des onglets du bas */
@media (pointer: coarse) and (min-width: 1024px) and (orientation: landscape) {
  .mast-links, #aboutBtn { display: none; }
  .tabbar { display: flex !important; flex-direction: column; gap: 4px; position: fixed; left: 0; top: var(--top-h, 110px); bottom: 0; width: 86px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)) !important; z-index: 40; border-top: 0 !important; border-right: 1px solid var(--rule); background: var(--paper) !important; }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 66px; font: 600 11px var(--sans); color: var(--ink-3); text-decoration: none; position: relative; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; background: var(--ink); }
  body { padding-bottom: 0 !important; padding-left: 86px; }
  body.panel-split #panel .panel-card { width: calc(56% - 40px); }
}

/* Animations douces (désactivées si « Réduire les animations ») */
@media (prefers-reduced-motion: no-preference) {
  .story, .lead, .art2, .oa, .fv, .o-stories li, .ville-link { animation: rise .42s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .bar > *, .bigbar .seg { animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left center; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  ::view-transition-old(root) { animation: vt-out .18s ease both; }
  ::view-transition-new(root) { animation: vt-in .24s ease both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
  .chip, .btn, .act, .lenses button, .tabbar a, .tabbar button { transition: transform .12s ease, background-color .15s ease, border-color .15s ease; }
  .chip:active, .btn:active, .act:active, .lenses button:active, .tabbar a:active, .tabbar button:active { transform: scale(.96); }
}
/* Pas de surlignage bleu au toucher (iOS) */
a, button { -webkit-tap-highlight-color: transparent; }

/* Téléphone : les lentilles sur deux lignes avec des noms courts (rien de caché à glisser) */
.ln-s { display: none; }
@media (max-width: 760px) {
  .lenses { flex-wrap: wrap !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; gap: 6px; }
  .lenses button { flex: 0 0 auto; padding: 7px 11px; }
  .ln-l { display: none; }
  .ln-s { display: inline; }
  /* Les rangées qui défilent encore : un fondu au bord montre qu'il y a plus à voir */
  .topics, .cats, .wf-row, .o-chips, .s-read-alt { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
@media (max-width: 760px) {
  .lenses { gap: 5px; }
  .lenses button { padding: 6px 9px; font-size: 12.5px; gap: 5px; }
  .lenses .sw { width: 7px; height: 7px; }
}

/* ================= Petites touches ================= */

/* Fraîcheur du fil, et hors ligne */
.feed-top { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.fresh { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font: 500 11.5px var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.fresh[hidden] { display: none; }
.fr-dot { width: 7px; height: 7px; border-radius: 50%; background: #3FA35B; box-shadow: 0 0 0 3px rgba(63, 163, 91, .18); flex: none; }
.fresh.old .fr-dot { background: #D9A21B; box-shadow: 0 0 0 3px rgba(217, 162, 27, .2); }
.fresh.off { color: var(--ink-2); }
.fresh.off .fr-dot { background: var(--b-r2); box-shadow: 0 0 0 3px rgba(177, 65, 42, .2); }
body.is-offline #topbar::after { content: attr(data-off); display: block; text-align: center; font: 600 11px/1.2 var(--sans); padding: 5px 12px; background: var(--b-r2); color: #fff; }

/* « 8 nouvelles depuis ta dernière visite » : reste à portée en descendant */
.new-pill { position: sticky; top: calc(var(--top-h, 100px) + 10px); z-index: 35; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 13.5px var(--sans); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .55); cursor: pointer; white-space: nowrap; }
.new-pill[hidden] { display: none; }
.new-pill .np-dot { width: 7px; height: 7px; border-radius: 50%; background: #6FB3C4; flex: none; }
.new-pill .np-go { opacity: .7; }
.topbar.tucked ~ main .new-pill { top: calc(env(safe-area-inset-top) + 10px); }
body.panel-split.panel-open .new-pill { display: none; }
.new-tag { color: var(--b-l2); font-weight: 600; }
.new-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.since-line { display: flex; align-items: center; gap: 12px; margin: 6px 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--b-r2); }
.since-line::before, .since-line::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }

/* Déjà lu : en gris, sauf si l'histoire a beaucoup bougé depuis */
.story.is-seen h3 a, .lead.is-seen h2 a { color: var(--ink-3); }
.story.is-seen .dek, .lead.is-seen .dek { color: var(--ink-3); }
.story.is-seen img, .lead.is-seen .lead-media img { opacity: .6; filter: saturate(.5); }
.flag.fresh { color: var(--b-l2); }

/* Appui long et glisser (écrans tactiles) */
@media (pointer: coarse) {
  .story, .lead { -webkit-user-select: none; user-select: none; transition: transform .2s ease; }
  .story a, .lead a { -webkit-touch-callout: none; }
  .story.pressing, .lead.pressing { transform: scale(.985); }
}
@media (max-width: 1100px) {
  #feed .story { position: relative; touch-action: pan-y; }
  #feed .story > * { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  #feed .story.swiping { overflow-x: clip; }
  #feed .story.swiping > * { transform: translateX(var(--dx, 0)); transition: none; }
  #feed .story.swiping::before { content: attr(data-lbl); position: absolute; top: 0; bottom: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 18px; box-sizing: border-box; width: max(0px, calc(var(--dx, 0px) * -1)); font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; color: var(--ink-3); background: var(--paper-2); }
  #feed .story.swiping[data-dir="r"]::before { left: 0; right: auto; justify-content: flex-start; width: max(0px, var(--dx, 0px)); }
  #feed .story.swiping.armed[data-dir="l"]::before { background: #D9A21B; color: #1a1408; }
  #feed .story.swiping.armed[data-dir="r"]::before { background: var(--b-l2); color: #fff; }
}
.story.gone, .lead.gone { overflow: hidden; opacity: 0; padding-top: 0 !important; padding-bottom: 0 !important; border-bottom-width: 0; transition: height .3s ease, opacity .2s ease, padding .3s ease; }

/* Menu de l'appui long */
#smenu { position: fixed; inset: 0; z-index: 95; }
.smenu-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); opacity: 0; transition: opacity .2s ease; }
.smenu-box { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .2s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }
#smenu.on .smenu-scrim { opacity: 1; }
#smenu.on .smenu-box { opacity: 1; transform: none; }
.smenu-prev { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--card); border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.smenu-prev img { width: 68px; height: 68px; border-radius: 9px; object-fit: cover; flex: none; }
.smenu-prev > div { display: grid; gap: 7px; min-width: 0; flex: 1; }
.smenu-prev b { font: 600 16px/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.smenu-prev small { font: 12px var(--sans); color: var(--ink-3); }
.smenu-list { margin-top: 8px; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.smenu-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; background: none; border: 0; border-bottom: 1px solid var(--hair); font: 500 16px var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.smenu-list button:last-child { border-bottom: 0; }
.smenu-list button:active { background: var(--paper-2); }
.smenu-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smenu-list [data-sm^="less"] { color: var(--b-r2); }
@media (min-width: 761px) {
  .smenu-box { top: 50%; bottom: auto; transform: translateY(-46%) scale(.98); }
  #smenu.on .smenu-box { transform: translateY(-50%); }
}

/* « Annuler » dans le petit message */
.toast.has-undo { pointer-events: auto; display: flex; align-items: center; gap: 16px; width: max-content; text-align: left; }
.toast-undo { background: none; border: 0; padding: 0; font: 700 14px var(--sans); color: #8FC9D8; cursor: pointer; }

/* La barre de l'histoire qui reste en haut */
.s-sticky { position: sticky; top: var(--top-h, 0px); z-index: 30; height: 0; }
.topbar.tucked ~ main .s-sticky { top: 0; }
.panel-body .s-sticky { top: 0; margin: 0 calc(-1 * var(--gut)); }
.ss-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 8px 0; background: var(--paper); border-bottom: 1px solid var(--hair); box-shadow: 0 8px 16px -14px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.panel-body .ss-bar { padding: 8px var(--gut); }
.s-sticky.on .ss-bar { opacity: 1; visibility: visible; }
.ss-tl { flex: 1; min-width: 0; display: grid; gap: 6px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; transform: translateY(-4px); transition: transform .25s ease; }
.s-sticky.on .ss-tl { transform: none; }
.ss-tl b { font: 600 15px/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-tl .bar { height: 4px; }
.ss-acts { display: flex; gap: 4px; flex: none; }
.ss-acts .act span { display: none; }
@media (max-width: 760px) {
  .ss-acts { position: fixed; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%); gap: 6px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55); }
  .panel-body .ss-acts { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ss-acts .act { width: 46px; height: 42px; display: grid; place-items: center; }
}

/* ================= Cartes d'accueil, à lire, lecture simple, sélection ================= */
.hcard { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0 0; padding: 12px 8px 12px 14px; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 10px 26px -22px rgba(0, 0, 0, .6); transition: transform .2s ease, opacity .2s ease; touch-action: pan-y; }
.hcard[hidden] { display: none; }
.hcard.gone { overflow: hidden; opacity: 0; padding-top: 0; padding-bottom: 0; border-width: 0; transition: height .3s ease, opacity .2s ease, padding .3s ease, margin .3s ease; }
.hc-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.hc-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hc-matin .hc-ico { background: #F6E7B8; color: #6b4e00; }
.hc-ville .hc-ico { background: color-mix(in srgb, var(--b-l2) 16%, transparent); color: var(--b-l2); }
.hc-body { flex: 1; min-width: 0; display: grid; gap: 2px; color: inherit; text-decoration: none; }
.hc-body > a { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.hc-body b { font: 600 16px/1.25 var(--serif); }
.hc-body span { font: 13px/1.35 var(--sans); color: var(--ink-3); }
.hc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hc-list li { display: grid; gap: 1px; padding-top: 8px; border-top: 1px solid var(--hair); }
.hc-t { font: 500 14.5px/1.3 var(--serif); color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-list small { font: 11.5px var(--sans); color: var(--ink-3); }
.hc-x { flex: none; width: 32px; height: 32px; color: var(--ink-3); }
.hc-x svg { width: 16px; height: 16px; }

/* À lire plus tard */
.act-later[aria-pressed="true"] { color: var(--b-l2); }
.sg-del { margin-left: auto; flex: none; width: 30px; height: 30px; border: 0; background: none; color: var(--ink-3); font: 14px var(--sans); cursor: pointer; border-radius: 50%; }
.sg-del:hover { background: var(--paper-2); color: var(--ink); }

/* Pincer pour la taille du texte : pas de zoom de page dans une histoire */
body.in-story #view, #panelBody { touch-action: pan-x pan-y; }

/* Lecture simple : les titres et les résumés, sans le reste */
html.simple .story-foot .bar, html.simple .split, html.simple .story-foot .flag:not(.read):not(.fresh), html.simple .sides-swipe,
html.simple .lead .bigbar, html.simple .angles3, html.simple .legend-row, html.simple .lens-desc, html.simple .covered .favs, html.simple .dek-src { display: none !important; }
html.simple .story-foot { min-height: 0; }

/* Sélectionner plusieurs histoires */
body.selecting .story, body.selecting .lead { position: relative; cursor: pointer; }
body.selecting .story::after, body.selecting .lead::after { content: ""; position: absolute; top: 18px; right: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--paper); box-sizing: border-box; }
body.selecting .picked::after { border-color: var(--b-l2); background: var(--b-l2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
body.selecting .picked { background: color-mix(in srgb, var(--b-l2) 7%, transparent); }
body.selecting #feed a { pointer-events: none; }
.sel-bar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; width: max-content; max-width: calc(100vw - 24px); background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55); }
.sel-n { font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-bar .btn { flex: none; }
@media (max-width: 1100px) { .sel-bar { bottom: calc(72px + env(safe-area-inset-bottom)); } }
body.selecting .story .kicker, body.selecting .lead .kicker { padding-right: 32px; }
body.selecting .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* Suggestions de villes sous la case (dès 2 lettres) */
.city-sg { display: grid; margin-top: 6px; background: var(--card); border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .6); }
.city-sg[hidden] { display: none; }
.city-sg button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; color: var(--ink); cursor: pointer; }
.city-sg button:last-child { border-bottom: 0; }
.city-sg button:active, .city-sg button:hover { background: var(--paper-2); }
.city-sg .sg-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--b-l2); stroke-width: 1.8; }
.city-sg span { display: grid; gap: 1px; min-width: 0; }
.city-sg b { font: 600 15px var(--sans); }
.city-sg small { font: 12px var(--sans); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Page de ville, version légère : en-tête d'une ligne, médias en une rangée, articles tout de suite */
.ville-top { padding: 18px 0 10px; }
.vt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ville-top h1 { font: 700 clamp(30px, 6vw, 46px)/1 var(--serif); letter-spacing: -.02em; margin: 0; }
.vt-meta { margin: 6px 0 0; font: 13px var(--sans); color: var(--ink-3); }
.vt-acts { display: flex; gap: 6px; align-items: center; }
.vt-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); font: 600 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.vt-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vt-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vt-btn[aria-pressed="true"] svg { fill: currentColor; }
.vt-acts .act { height: 34px; width: 34px; border: 1px solid var(--hair); border-radius: 50%; }
.vm-row { position: sticky; top: var(--top-h, 0px); z-index: 25; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut); background: var(--paper); border-bottom: 1px solid var(--hair); }
.vm-row[hidden] { display: none; }
.vm-row::-webkit-scrollbar { display: none; }
.topbar.tucked ~ main .vm-row { top: 0; }
.vm { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); font: 600 13.5px var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer; }
.vm b { font: 600 12px var(--mono); color: var(--ink-3); }
.vm .fav, .vm .fav-fallback { width: 16px; height: 16px; }
.vm[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vm[aria-pressed="true"] b { color: inherit; opacity: .7; }
.v-wide { padding-top: 14px; }
.vm-sel { margin: -4px 0 10px; font: 13.5px var(--sans); color: var(--ink-2); }
.wf-fold { margin: 0 0 6px; }
.wf-fold > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 600 13px var(--sans); color: var(--ink-3); list-style: none; padding: 4px 0; }
.wf-fold > summary::-webkit-details-marker { display: none; }
.wf-fold > summary::before { content: "⚙"; }
.wf-fold[open] > summary { color: var(--ink); }
.v-more > summary { cursor: pointer; font: 600 14px var(--sans); color: var(--ink-2); }
.v-more > summary small { color: var(--ink-3); font-weight: 500; }

/* ================= Fil épuré : cartes simples, rangées, Shorts ================= */
/* Le mince trait gauche / centre / droite */
.c2-bar { display: flex; gap: 2px; height: 4px; width: 100%; max-width: 160px; border-radius: 2px; overflow: hidden; margin: 8px 0 0; }
.c2-bar i { display: block; height: 100%; min-width: 4px; }
.c2-bar .l { background: var(--b-l2); } .c2-bar .c { background: var(--b-c); } .c2-bar .r { background: var(--b-r2); }
.c2-bar.none { background: repeating-linear-gradient(135deg, var(--b-unk) 0 3px, transparent 3px 6px); }
.c2-meta { margin: 6px 0 0; font: 13px/1.4 var(--sans); color: var(--ink-3); }
.c2-meta .new-tag { font-size: 12px; }
.c2-fresh { color: var(--b-l2); font-weight: 600; }
.c2-blind { color: var(--b-r2); font-weight: 600; }

/* Une histoire du fil : le titre, le trait, une ligne ; la photo à droite */
.story.c2 { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.story.c2.noimg { grid-template-columns: 1fr; }
.story.c2 > .c2-body { display: block; }
.story.c2 h3 { margin: 0; font: 600 20px/1.22 var(--serif); letter-spacing: -.005em; }
.story.c2 h3 a { text-decoration: none; color: inherit; }
.c2-img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.c2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .story.c2:not(.noimg) { grid-template-columns: minmax(0, 1fr) 92px; column-gap: 14px; row-gap: 0; padding: 14px 0; }
  .story.c2 h3 { font-size: 17.5px; }
  .c2-img { aspect-ratio: 1; }
}

/* L'histoire du haut : grande photo, trait, titre, résumé court, une ligne */
.lead.c2l { display: block; padding-bottom: 18px; }
.lead.c2l .lead-media { border-radius: 10px; aspect-ratio: 16 / 9; }
.lead.c2l .c2-bar { max-width: none; height: 5px; margin-top: 10px; }
.lead.c2l h2 { margin: 10px 0 6px; }
.lead.c2l h2 a { text-decoration: none; color: inherit; }
.lead.c2l .dek { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .lead.c2l:not(.noimg) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 26px; } .lead.c2l .lead-media { grid-row: 1 / span 5; } }

/* Rangées qu'on glisse : par thème, et celle de ta ville */
.row-sec { margin: 6px calc(-1 * var(--gut)) 0; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.row-sec[hidden] { display: none; }
.row-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gut); margin-bottom: 10px; }
.row-h h2 { margin: 0; font: 700 21px/1.1 var(--serif); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-h h2 small { font: 500 12.5px var(--sans); color: var(--ink-3); }
.row-h h2 .sg-ico { width: 20px; height: 20px; fill: none; stroke: var(--b-l2); stroke-width: 1.9; }
.row-h .link { font: 600 13px var(--sans); white-space: nowrap; }
.row-sc { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 var(--gut) 2px; scroll-padding: 0 var(--gut); }
.row-sc::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 210px; scroll-snap-align: start; min-width: 0; }
.mini-img { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-img.noimg { display: grid; place-items: center; }
.mini-img.noimg .fav, .mini-img.noimg .fav-fallback { width: 32px; height: 32px; font-size: 16px; }
.mini .c2-bar { max-width: none; height: 3px; }
.mini h3 { margin: 7px 0 0; font: 600 15.5px/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini h3 a { text-decoration: none; color: inherit; }
.mini .c2-meta { font-size: 12px; margin-top: 4px; }
.mini.is-seen h3 a { color: var(--ink-3); }
.mini-src { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 12px var(--sans); color: var(--ink-2); }
.mini-src .fav, .mini-src .fav-fallback { width: 14px; height: 14px; }
.mini-art h3 { margin-top: 4px; }

/* En-tête du fil allégé */
.lens-help { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: none; font: 600 14px var(--sans); color: var(--ink-3); cursor: pointer; }
.lens-help[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lens-desc[hidden] { display: none; }
.ld-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-style: normal; }
.feed-top { justify-content: space-between; }
.sh-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 13px var(--sans); cursor: pointer; flex: none; }
.sh-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Page de ville : articles regroupés par média */
.mgroup { margin: 4px 0 18px; }
.mg-h { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 2px solid var(--ink); }
.mg-h b { font: 700 16px var(--sans); }
.mg-h span { font: 12.5px var(--sans); color: var(--ink-3); }
.mg-h .link { margin-left: auto; font: 600 13px var(--sans); }
.mg-h .fav, .mg-h .fav-fallback { width: 18px; height: 18px; }

/* Shorts : plein écran, une histoire par écran */
#shorts { position: fixed; inset: 0; z-index: 96; background: #0b0b0b; color: #f2efe8; opacity: 0; transition: opacity .2s ease; }
#shorts.on { opacity: 1; }
body.shorts-open { overflow: hidden; }
.sh-bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 18px; pointer-events: none; }
.sh-bar > * { pointer-events: auto; }
.sh-pos { font: 600 12px var(--mono); letter-spacing: .06em; opacity: .75; }
.sh-x { color: #fff; background: rgba(0, 0, 0, .35); border-radius: 50%; width: 38px; height: 38px; }
.sh-sc { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.sh-sc::-webkit-scrollbar { display: none; }
.sh { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: flex-end; overflow: hidden; }
.sh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .85) 72%, #000 100%); }
.sh-in { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px calc(env(safe-area-inset-bottom) + 26px); }
.sh-k { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.sh h2 { margin: 8px 0 10px; font: 700 clamp(26px, 7vw, 38px)/1.1 var(--serif); letter-spacing: -.01em; }
.sh-dek { margin: 0 0 4px; font: 16px/1.45 var(--serif); color: #d9d5cc; }
.sh .c2-bar { max-width: none; height: 5px; margin: 12px 0 14px; }
.sh-sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-side { display: grid; gap: 2px; padding: 10px 10px 9px; border-radius: 10px; background: rgba(255, 255, 255, .1); text-decoration: none; color: #fff; border-top: 3px solid; min-width: 0; }
.sh-side b { font: 700 14px var(--sans); }
.sh-side small { font: 11.5px var(--sans); color: #cfcac0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-left { border-top-color: var(--b-l2); } .sh-center { border-top-color: var(--b-c); } .sh-right { border-top-color: var(--b-r2); }
.sh-side.off { opacity: .45; }
.sh-open { display: inline-block; margin-top: 14px; font: 600 15px var(--sans); color: #fff; text-decoration: none; padding: 10px 0; }
.mini-txt { padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--hair); }
.mini-txt .mini-src { margin-top: 0; }
.mini-txt h3 { -webkit-line-clamp: 5; }
.row-sc { align-items: flex-start; }
/* Page de ville : rangées d'articles plus légères */
.v-wide .a2-top .bb { display: none; }
.mgroup .a2-top .src { display: none; }
.mgroup .art2 { padding-top: 12px; padding-bottom: 12px; }
.v-wide .a2-foot .acts { opacity: .7; }
/* « En bref » : bouton bien visible, avec ce qu'il fait */
.sh-btn { height: auto; padding: 7px 16px 7px 12px; gap: 9px; border-radius: 12px; }
.sh-btn svg { width: 22px; height: 22px; }
.sh-lbl { display: grid; text-align: left; line-height: 1.15; }
.sh-lbl b { font: 700 14.5px var(--sans); }
.sh-lbl small { font: 500 11.5px var(--sans); opacity: .75; }
.sh-pos b { letter-spacing: .02em; }
/* « En bref » sur toute la largeur, sous la ligne « À jour » */
.feed-top { flex-direction: column; align-items: stretch; gap: 10px; }
.feed-top .sh-btn { margin-left: 0; width: 100%; justify-content: flex-start; padding: 11px 16px 11px 14px; }
.feed-top .sh-btn::after { content: "›"; margin-left: auto; font: 400 26px/1 var(--sans); opacity: .8; }
.feed-top .sh-lbl { grid-auto-flow: row; }
.feed-top .sh-lbl b { font-size: 15.5px; }
.feed-top .sh-lbl small { font-size: 12.5px; }
/* « En bref » dans la barre du bas, à côté de « À la une » (5 onglets : « Mon prisme » est dans « Plus ») */
@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse) {
  .tabbar { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (max-width: 760px) {
  .tabbar a, .tabbar button { font-size: 10px; letter-spacing: -.01em; white-space: nowrap; }
}
/* Là où la barre du bas existe, le gros bouton du fil n'est plus utile */
@media (max-width: 760px), (pointer: coarse) { .feed-top .sh-btn { display: none; } }
/* « En bref » : À la une ou ma ville */
.sh-bar { flex-wrap: wrap; row-gap: 6px; }
.sh-modes { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.sh-modes button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #f2efe8; font: 600 13.5px var(--sans); cursor: pointer; white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.sh-modes button[aria-pressed="true"] { background: #f2efe8; color: #111; }
.sh-pos { flex-basis: 100%; font: 600 11.5px var(--sans); letter-spacing: .02em; opacity: .7; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.sh-read { display: inline-flex; align-items: center; margin-top: 16px; height: 46px; padding: 0 20px; border-radius: 12px; background: #f2efe8; color: #111; font: 700 15px var(--sans); text-decoration: none; }
.sh-div .sh-in { padding-bottom: calc(env(safe-area-inset-bottom) + 30vh); }
.sh-div h2 { font-size: clamp(30px, 8vw, 44px); }
.sh-hint { margin-top: 18px; font: 600 14px var(--sans); opacity: .7; }
.sh-dead .sh-hint { opacity: 1; }
.sh-dead .sh-hint span { opacity: .7; }
.sh-dead .sh-hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 5; }
.sh-dead .sh-play, .sh-dead .sh-sound { display: none; }
.sh-dead .sh-player img { filter: brightness(.55); }
.sh-div .btn { margin-top: 18px; }
.row-acts { display: inline-flex; align-items: center; gap: 12px; }
.row-bref { height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font: 600 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
.vt-bref { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* Article sans photo : le logo du média en grand, sur un fond doux */
.sh-noimg { background: radial-gradient(circle at 50% 30%, #2b3a40 0%, #141414 70%); }
.sh-logo { position: absolute; top: 26%; left: 0; right: 0; display: grid; justify-items: center; gap: 12px; z-index: 1; font: 700 18px var(--sans); color: #e9e5dc; opacity: .9; }
.sh-logo .fav, .sh-logo .fav-fallback { width: 72px; height: 72px; border-radius: 18px; background: #fff; padding: 10px; box-sizing: border-box; font-size: 34px; display: grid; place-items: center; color: #111; }
/* En bref · ville : on voit toujours où se passe la nouvelle */
.sh-place { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding: 6px 14px 7px; border-radius: 999px; background: #f2efe8; color: #111; font: 700 17px var(--sans); }
.sh-place small { font: 600 12.5px var(--sans); color: #6b665d; }
.sh-place.near { background: #F6E7B8; }
#shorts .sh-pos[data-city] { font: 600 14px var(--sans); opacity: 1; }
#shorts .sh-pos.flash { animation: shflash 1.2s ease; }
@keyframes shflash { 0% { color: #F6E7B8; transform: scale(1.08); } 100% { color: inherit; transform: none; } }

/* ================= Encore plus iPhone ================= */
/* En bref : trois choix en haut (À la une, ta ville, Vidéos), qui tiennent sur un iPhone */
.sh-modes { max-width: calc(100vw - 70px); overflow-x: auto; scrollbar-width: none; }
.sh-modes::-webkit-scrollbar { display: none; }
.sh-modes button { padding: 0 11px; font-size: 13px; flex: none; }

/* En bref · Vidéos : la vidéo au centre, le fond flou de la même image, le titre en bas */
.sh-v { align-items: flex-end; }
.sh-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.45); }
.sh-v::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .85) 85%, #000 100%); }
.sh-player { position: absolute; z-index: 2; left: 0; right: 0; top: 42%; transform: translateY(-50%); aspect-ratio: 16 / 9; background: #000; max-width: 900px; margin: 0 auto; }
.sh-player img, .sh-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sh-player iframe { z-index: 2; }
.sh-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.sh-play svg { width: 28px; height: 28px; fill: #fff; }
.sh-v .sh-in { z-index: 3; }
.sh-v h2 { font-size: clamp(21px, 5.6vw, 30px); }
.sh-v .sh-k .bb { font-size: 10px; }

/* Tirer pour chercher ou rafraîchir : l'étiquette */
.ptr-l { position: fixed; z-index: 25; left: 50%; top: calc(var(--top-h, 100px) + 46px); transform: translate(-50%, 0); padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12.5px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ptr-l.on { opacity: 1; }

/* Glisser du bord gauche : la page suit le doigt, avec une ombre */
body.edge-back #view, body.edge-back .panel-card { box-shadow: -18px 0 28px -18px rgba(0, 0, 0, .45); }
body.edge-back { overflow-x: hidden; }

/* Le grand titre se range dans le bandeau en descendant (téléphone) */
.page-title { display: none; }
@media (max-width: 760px) {
  .topbar.has-title .page-title { display: block; flex: 1; min-width: 0; font: 700 17px/1.1 var(--serif); color: #F2EFE8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pt-in .2s ease; }
  .topbar.has-title .logo-word { display: none; }
  @keyframes pt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Fenêtres en feuilles arrondies, avec une poignée, qu'on ferme en glissant vers le bas (téléphone) */
@media (max-width: 760px) {
  .modal { padding: 0; }
  .modal-box { width: 100%; max-height: calc(100vh - env(safe-area-inset-top) - 24px); border-radius: 16px 16px 0 0; border: 0; box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, .45); padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); }
  .modal-box::before { content: ""; display: block; position: sticky; top: 0; z-index: 3; width: 40px; height: 5px; margin: 8px auto -13px; border-radius: 3px; background: var(--hair); }
}

/* ================= Un seul fil, bien fait : rubriques en couleur, logos, la une ================= */
/* Les couleurs des rubriques (sourdes, pour ne pas se confondre avec le bleu de la gauche et le rouge de la droite) */
.cc-une { --cc: #5C5850; }
.cc-politique { --cc: #4A55B5; }
.cc-international { --cc: #7A5BA6; }
.cc-economie { --cc: #1F7A55; }
.cc-environnement { --cc: #5E8C1E; }
.cc-techno { --cc: #4F6B7F; }
.cc-science { --cc: #8F6F00; }
.cc-sante { --cc: #B83A6B; }
.cc-culture { --cc: #A04A9A; }
.cc-sports { --cc: #C25E00; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cc-une { --cc: #A8A396; } :root:not([data-theme="light"]) .cc-politique { --cc: #8E97F0; } :root:not([data-theme="light"]) .cc-international { --cc: #B79BE0; }
  :root:not([data-theme="light"]) .cc-economie { --cc: #5FC79A; } :root:not([data-theme="light"]) .cc-environnement { --cc: #9CCB5A; } :root:not([data-theme="light"]) .cc-techno { --cc: #93AFC4; }
  :root:not([data-theme="light"]) .cc-science { --cc: #D9B740; } :root:not([data-theme="light"]) .cc-sante { --cc: #F07FAA; } :root:not([data-theme="light"]) .cc-culture { --cc: #DA8BD4; } :root:not([data-theme="light"]) .cc-sports { --cc: #F29B4B; }
}
:root[data-theme="dark"] .cc-une, :root[data-theme="oled"] .cc-une { --cc: #A8A396; }
:root[data-theme="dark"] .cc-politique, :root[data-theme="oled"] .cc-politique { --cc: #8E97F0; }
:root[data-theme="dark"] .cc-international, :root[data-theme="oled"] .cc-international { --cc: #B79BE0; }
:root[data-theme="dark"] .cc-economie, :root[data-theme="oled"] .cc-economie { --cc: #5FC79A; }
:root[data-theme="dark"] .cc-environnement, :root[data-theme="oled"] .cc-environnement { --cc: #9CCB5A; }
:root[data-theme="dark"] .cc-techno, :root[data-theme="oled"] .cc-techno { --cc: #93AFC4; }
:root[data-theme="dark"] .cc-science, :root[data-theme="oled"] .cc-science { --cc: #D9B740; }
:root[data-theme="dark"] .cc-sante, :root[data-theme="oled"] .cc-sante { --cc: #F07FAA; }
:root[data-theme="dark"] .cc-culture, :root[data-theme="oled"] .cc-culture { --cc: #DA8BD4; }
:root[data-theme="dark"] .cc-sports, :root[data-theme="oled"] .cc-sports { --cc: #F29B4B; }

/* La ligne du haut d'une carte : la rubrique (pastille de couleur) et l'angle mort */
.c2-k { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 5px; }
.ck { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--cc); text-decoration: none; padding: 3px 0; }
.ck::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc); flex: none; }
.ck:hover { text-decoration: underline; }
.ck-blind { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px 4px 6px; border-radius: 4px; color: #fff; background: var(--b-r2); }
.ck-blind.l { background: var(--b-l2); }
.ck-blind::before { content: "◐"; font-size: 11px; }

/* Les logos des médias, l'un sur l'autre */
.fav-fallback { background: hsl(var(--fh, 30) 26% 40%); color: #fff; border-radius: 50%; }
.lstack { display: inline-flex; vertical-align: -3px; margin-right: 7px; }
.lstack .fav, .lstack .fav-fallback { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); background-color: #fff; font-size: 9.5px; }
.lstack .fav-fallback { background-color: hsl(var(--fh, 30) 26% 40%); }
.lstack > * + * { margin-left: -6px; }

/* La photo d'une carte, et la carte sans photo : la couleur de la rubrique avec le logo du média */
.story.c2, .story.c2.noimg { grid-template-columns: minmax(0, 1fr) 150px; }
.c2-img, .hero-media, .mini-img { position: relative; }
.ph-logo { display: none; }
.c2-img.ph, .mini-img.ph { display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--cc, #6B675E) 78%, #000) 0%, var(--cc, #6B675E) 55%, color-mix(in srgb, var(--cc, #6B675E) 60%, #fff) 100%); }
.ph .ph-logo { display: grid; place-items: center; width: 44%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.ph .ph-logo .fav, .ph .ph-logo .fav-fallback { width: 62%; height: 62%; border-radius: 18%; font-size: 20px; box-shadow: none; background-color: transparent; }
.ph .ph-logo .fav-fallback { background: hsl(var(--fh, 30) 26% 40%); }
@media (max-width: 760px) {
  .story.c2, .story.c2.noimg { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 14px; row-gap: 0; padding: 15px 0; }
  .c2-img { aspect-ratio: 1; border-radius: 10px; }
  .ph .ph-logo .fav-fallback { font-size: 16px; }
}
.story.c2 .c2-bar { max-width: 120px; }

/* La une : la photo pleine largeur, le titre par-dessus, et pourquoi elle est là */
.lead.hero { display: block; padding: 4px 0 20px; border-bottom: 1px solid var(--rule); }
.hero-media { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; background: #222; isolation: isolate; }
@media (min-width: 761px) { .hero-media { aspect-ratio: 16 / 8; } }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero-media:hover img { transform: scale(1.025); }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, .88) 100%); }
.hero-media.ph { background: linear-gradient(150deg, color-mix(in srgb, var(--cc, #444) 70%, #000), var(--cc, #444)); }
.hero-media.ph .ph-logo { display: none; }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.hero-k { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: #fff; color: #141414; }
.hero-media h2 { margin: 10px 0 0; font: 700 clamp(25px, 6.6vw, 42px)/1.08 var(--serif); letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero-why { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 12px 0 0; font: 13.5px/1.35 var(--sans); color: var(--ink-3); }
.hero-why b { color: var(--ink); font-weight: 700; }
.lead.hero .c2-bar { max-width: none; height: 6px; border-radius: 3px; margin-top: 9px; }
.lead.hero .dek { margin: 12px 0 0; font: 17px/1.45 var(--serif); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead.hero .c2-meta { margin-top: 10px; }
.lead.hero.is-seen .hero-media { filter: saturate(.5); }
@media (max-width: 760px) { .lead.hero { margin: 0 calc(-1 * var(--gut) + 8px); } .lead.hero > :not(.hero-media) { margin-left: 8px; margin-right: 8px; } }

/* La carte « Angle mort » */
.bcard { margin: 14px 0; padding: 16px 16px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); border-left: 5px solid var(--b-r2); }
.bcard.l { border-left-color: var(--b-l2); }
.bc-k { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--b-r2); }
.bcard.l .bc-k { color: var(--b-l2); }
.bcard h3 { margin: 6px 0 4px; font: 600 20px/1.22 var(--serif); }
.bcard h3 a { color: inherit; text-decoration: none; }
.bcard p { margin: 0; font: 14px/1.45 var(--sans); color: var(--ink-2); }
.bcard .c2-bar { max-width: none; height: 6px; margin: 10px 0 8px; }
.bc-all { font: 600 13px var(--sans); }

/* La carte de ta ville : simple, de haut en bas */
.vcard { margin: 14px 0; padding: 14px 16px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.vcard[hidden] { display: none; }
.vc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vc-t { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font: 700 20px/1.1 var(--serif); }
.vc-t .sg-ico { width: 20px; height: 20px; fill: none; stroke: var(--b-l2); stroke-width: 1.9; }
.vc-n { margin: 2px 0 6px; font: 12.5px var(--sans); color: var(--ink-3); }
.vc-list { list-style: none; margin: 0; padding: 0; }
.vc-list li { padding: 9px 0; border-top: 1px solid var(--hair-2); display: grid; gap: 3px; }
.vc-src { display: flex; align-items: center; gap: 6px; font: 600 12px var(--sans); color: var(--ink-3); }
.vc-src .fav, .vc-src .fav-fallback { width: 16px; height: 16px; border-radius: 50%; font-size: 8.5px; }
.vc-a { font: 600 16px/1.28 var(--serif); color: var(--ink); text-decoration: none; }
.vc-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--hair-2); }
.vc-bref { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font: 600 13px var(--sans); cursor: pointer; }
.vc-all { font: 600 13.5px var(--sans); color: var(--ink); }

/* La météo */
.wx { display: none; align-items: center; gap: 5px; font: 13px var(--sans); color: var(--ink-2); white-space: nowrap; }
.wx.on { display: inline-flex; }
.wx b { font-size: 15px; color: var(--ink); }
.wx small { color: var(--ink-3); font-size: 12px; }
.vt-meta .wx.on { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--hair); }
@media (max-width: 420px) { .vc-h .wx small { display: none; } }

/* L'histoire : la photo en haut, Face à face, le fil de l'histoire */
.s-hero.s-hero-top { margin: 0 0 14px; aspect-ratio: 16 / 9; max-height: 440px; border-radius: 12px; }
@media (max-width: 760px) { .s-hero.s-hero-top { border-radius: 0; margin: 0 calc(-1 * var(--gut)) 12px; } }
#panel .s-hero.s-hero-top { border-radius: 0; }
.flip-ghost { position: fixed; z-index: 90; object-fit: cover; pointer-events: none; border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); }
.ff-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ff-c { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-top: 4px solid var(--b-l2); }
.ff-r { border-top-color: var(--b-r2); }
.ff-h { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--b-l2); }
.ff-r .ff-h { color: var(--b-r2); }
.ff-c b { font: 600 16px/1.3 var(--serif); flex: 1; }
.ff-src { display: flex; align-items: center; gap: 6px; font: 600 12px var(--sans); color: var(--ink-3); }
.ff-src .fav, .ff-src .fav-fallback { width: 16px; height: 16px; border-radius: 50%; font-size: 8.5px; }
@media (max-width: 380px) { .ff-c b { font-size: 14.5px; } }
.th { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.th::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--hair); }
.th li { position: relative; padding: 0 0 16px; display: grid; gap: 3px; }
.th li::before { content: ""; position: absolute; left: -18px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; }
.th li:last-child::before { background: var(--ink); }
.th-d { font: 12.5px var(--sans); color: var(--ink-3); }
.th-d b { color: var(--ink); }
.th-t { font: 600 16px/1.3 var(--serif); }
.th-n { display: block; font: 12.5px/1.4 var(--sans); color: var(--ink-3); }
.th-n > span { margin-right: 4px; }
.th-n .fav, .th-n .fav-fallback { display: inline-grid; vertical-align: -2px; margin-right: 5px; }
.th-n .fav, .th-n .fav-fallback { width: 14px; height: 14px; border-radius: 50%; font-size: 8px; }

/* La grande barre de l'histoire : plus haute, et chaque côté arrive l'un après l'autre */
.main-col .bigbar { height: 36px; border-radius: 6px; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .bigbar .seg:nth-child(2) { animation-delay: .12s; } .bigbar .seg:nth-child(3) { animation-delay: .24s; } .bigbar .seg:nth-child(4) { animation-delay: .32s; }
}

/* Trier le fil : un seul bouton sur téléphone */
.sort-btn { display: none; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); color: var(--ink-2); font: 13px var(--sans); cursor: pointer; white-space: nowrap; }
.sort-btn b { color: var(--ink); font-weight: 600; }
.sort-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.sort-list { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 6px; }
.sort-list button { width: 100%; text-align: left; display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); cursor: pointer; }
.sort-list button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sort-list button[aria-pressed="true"] .so-t::after { content: "✓"; margin-left: auto; }
.so-t { display: flex; align-items: center; gap: 8px; font: 600 15.5px var(--sans); }
.so-t .sw { width: 9px; height: 9px; border-radius: 2px; }
.sort-list small { font: 13px/1.4 var(--sans); color: var(--ink-3); }

@media (max-width: 760px) {
  /* Le haut du fil, allégé : le titre, puis « À jour » et « Trier » sur une seule ligne */
  .folio { padding: 14px 0 2px; border-bottom: 0; }
  .folio h1 { font-size: 30px; }
  .lensbar { display: none; }
  .feed-top { flex-direction: row !important; align-items: center !important; justify-content: space-between; margin-top: 8px; }
  .feed-top .fresh { margin: 0; }
  .sort-btn { display: inline-flex; margin-left: auto; }
  .topics { border-bottom: 0; padding: 6px 0 4px; }

  /* Les rubriques : des pastilles, toujours à portée de pouce */
  .cats { gap: 6px; padding: 7px var(--gut) 8px; margin: 0 calc(-1 * var(--gut)); }
  .cats a { padding: 7px 12px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
  .cats a[class*="cc-"]:not(.cc-une)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc); }
  .cats a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cats a[aria-current="page"][class*="cc-"]:not(.cc-une) { background: var(--cc); border-color: var(--cc); color: #fff; }
  .cats a[aria-current="page"]::before { background: #fff !important; }
  .cats .sep { display: none; }
  .cats .cat-ville { color: var(--b-l2); }
  /* En descendant, seul le bandeau se range : les rubriques restent */
  .topbar.tucked { transform: translateY(calc(-1 * var(--tuck, 100%))); }
  .topbar.tucked .sections { box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .35); }
  .topbar.tucked ~ main .new-pill { top: calc(var(--cats-h, 0px) + 10px); }
  .topbar.tucked ~ main .s-sticky, .topbar.tucked ~ main .vm-row, .topbar.tucked ~ main .o-tools { top: var(--cats-h, 0px); }
}

/* Silhouettes de chargement qui scintillent */
.sk-hero { padding: 4px 0 20px; }
.sk-img { aspect-ratio: 4 / 3; border-radius: 14px; }
@media (min-width: 761px) { .sk-img { aspect-ratio: 16 / 8; } }
.sk-card { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--hair); }
.sk-th { aspect-ratio: 1; border-radius: 10px; }
.skel { border-radius: 6px; background: linear-gradient(90deg, var(--hair-2) 0%, var(--hair-2) 35%, var(--paper-2) 50%, var(--hair-2) 65%, var(--hair-2) 100%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* L'accueil : l'exemple de la barre */
.ob-demo { margin: 18px 0 0; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--hair); display: grid; gap: 9px; text-align: left; }
.ob-demo-t { font: 14px/1.4 var(--sans); color: var(--ink-2); }
.ob-bar { max-width: none !important; height: 10px !important; border-radius: 5px; margin: 0 !important; }
.ob-demo-l { display: flex; gap: 14px; font: 600 12.5px var(--sans); color: var(--ink-2); }
.ob-demo-l span { display: inline-flex; align-items: center; gap: 5px; }
.ob-demo-l i { width: 9px; height: 9px; border-radius: 2px; }
.ob-demo-l i.l { background: var(--b-l2); } .ob-demo-l i.c { background: var(--b-c); } .ob-demo-l i.r { background: var(--b-r2); }
.ob-demo .ck-blind { font-size: 10px; vertical-align: 1px; }

/* ================= Encore plus beau : grandes cartes, halo, en direct, aperçu, soir ================= */
/* Les rubriques avec leur icône */
.cats a .ce { font-size: 14px; line-height: 1; margin-right: 5px; }
@media (max-width: 760px) {
  .cats a[class*="cc-"]:not(.cc-une)::before { display: none; }
  .cats a .ce { margin-right: 0; }
}

/* Les chiffres qui comptent gardent leur largeur */
[data-count] { font-variant-numeric: tabular-nums; }

/* En direct : un point rouge qui pulse */
.ck-live, .hero-live { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #E5484D; }
.ck-live::before, .hero-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: live 1.6s ease-out infinite; }
.hero-live { margin-left: 8px; padding: 5px 8px; border-radius: 4px; background: #E5484D; color: #fff; vertical-align: top; }
.hero-live::before { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .ck-live::before, .hero-live::before { animation: none; } }

/* Le halo : la couleur de la photo déborde doucement autour (comme Apple Music) */
.lead.hero { position: relative; isolation: isolate; }
.lead.hero > .glow { position: absolute; z-index: -1; left: -8%; right: -8%; top: -30px; width: 116%; height: calc(100% + 60px); object-fit: cover; filter: blur(60px) saturate(1.6); opacity: .5; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 72%); }
.main-col { position: relative; isolation: isolate; }
.glow-wrap { position: absolute; z-index: -1; left: -12%; right: -12%; top: -60px; height: 560px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 95%); mask-image: linear-gradient(to bottom, #000 25%, transparent 95%); }
.glow-wrap .glow { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.6); opacity: .45; transform: scale(1.15); }
:root[data-theme="light"] .lead.hero > .glow, :root[data-theme="light"] .glow-wrap .glow { opacity: .28; }

/* Les grandes cartes (places 2 à 5) : la photo en large, le titre en blanc par-dessus */
.story.big { display: block; padding: 14px 0 16px; border-bottom: 1px solid var(--hair); }
.big-box { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #222; isolation: isolate; }
@media (min-width: 761px) { .big-box { aspect-ratio: 16 / 7; } }
.big-media { position: absolute; inset: 0; z-index: -1; display: block; }
.big-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.big-box:hover .big-media img { transform: scale(1.03); }
.big-box::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .9) 100%); }
.big-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 14px; pointer-events: none; }
.big-in a { pointer-events: auto; }
.big-in .c2-k { margin-bottom: 6px; }
.big-in .ck { color: #fff; }
.big-in .ck::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.big-in .ck-live { color: #fff; }
.big-in h3 { margin: 0; font: 700 clamp(19px, 5.2vw, 27px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.big-in h3 a { color: #fff; text-decoration: none; }
.story.big > .c2-bar { max-width: none; height: 5px; margin-top: 10px; }
.story.big.is-seen .big-box { filter: saturate(.45) brightness(.85); }

/* L'aperçu sur place */
.c2-meta { position: relative; }
.c2-peek { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 8px; vertical-align: middle; border-radius: 50%; border: 1px solid var(--hair); background: var(--card); color: var(--ink-2); cursor: pointer; padding: 0; }
.c2-peek svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
.c2-peek[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.c2-peek[aria-expanded="true"] svg { transform: rotate(180deg); }
.peek { grid-column: 1 / -1; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--hair); display: grid; gap: 10px; animation: rise .25s ease both; }
.pk-dek { margin: 0; font: 15.5px/1.5 var(--serif); color: var(--ink-2); }
.pk-sides { display: grid; gap: 8px; }
.pk-side { display: grid; gap: 3px; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); border-left: 4px solid var(--b-c); }
.pk-l { border-left-color: var(--b-l2); } .pk-r { border-left-color: var(--b-r2); }
.pk-h { font: 700 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.pk-l .pk-h { color: var(--b-l2); } .pk-r .pk-h { color: var(--b-r2); }
.pk-t { font: 600 15px/1.3 var(--serif); }
.pk-open { font: 600 14px var(--sans); color: var(--ink); }

/* Lecture du soir : un voile chaud, et un peu moins de lumière */
html.soir body::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; background: rgba(255, 138, 30, .09); mix-blend-mode: multiply; }
html.soir[data-theme="dark"] body::after, html.soir[data-theme="oled"] body::after { background: rgba(255, 150, 50, .07); mix-blend-mode: normal; }
html.soir img { filter: brightness(.92); }
.story.big > .big-box { display: block; }
.story.big > .peek { margin-top: 12px; }
.story > .peek { display: grid !important; }

/* ================= La météo : la pastille en haut, et la feuille ================= */
.cat-wx { flex: none; display: inline-flex; align-items: center; gap: 5px; align-self: center; height: 30px; padding: 0 11px 0 9px; margin-left: 2px; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); font: 600 13.5px var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.cat-wx[hidden] { display: none; }
.cat-wx span { font-size: 15px; line-height: 1; }
@media (max-width: 760px) { .cat-wx { height: auto; padding: 6px 11px 6px 9px; } }
.wx[data-wx-city] { cursor: pointer; border-radius: 999px; }
.vc-h .wx.on { padding: 4px 10px 4px 8px; border: 1px solid var(--hair); border-radius: 999px; }

.wx-sheet .kicker { display: flex; align-items: center; gap: 5px; }
.wx-sheet .kicker .sg-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.wx-now { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; }
.wx-big { font-size: 64px; line-height: 1; }
.wx-now > div { display: grid; gap: 2px; }
.wx-t { font: 700 52px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wx-l { font: 600 17px var(--sans); }
.wx-s { font: 13px/1.45 var(--sans); color: var(--ink-3); }
.wx-h { margin: 22px 0 10px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wx-hours { list-style: none; margin: 0; padding: 12px 6px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.wx-hours li { display: grid; justify-items: center; gap: 5px; font: 12px var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wx-hours b { font-size: 20px; line-height: 1; font-weight: 400; }
.wx-ht { font: 700 15px var(--sans); color: var(--ink); }
.wx-hours small { color: var(--b-l1); font-size: 11px; min-height: 13px; }
.wx-days { list-style: none; margin: 0; padding: 4px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.wx-days li { display: grid; grid-template-columns: minmax(0, 1fr) 26px 40px 34px minmax(56px, 1.1fr) 34px; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--hair-2); font: 15px var(--sans); font-variant-numeric: tabular-nums; }
.wx-days li:first-child { border-top: 0; }
.wx-dn { font-weight: 600; text-transform: capitalize; }
.wx-days b { font-size: 20px; font-weight: 400; text-align: center; }
.wx-dp { color: var(--b-l1); font-size: 12px; text-align: right; white-space: nowrap; }
.wx-dmin { color: var(--ink-3); text-align: right; }
.wx-dmax { font-weight: 700; }
.wx-range { position: relative; height: 5px; border-radius: 3px; background: var(--hair); }
.wx-range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #5EA9E6, #F2C14E, #EE7B3A); }
.wx-src { margin-top: 14px; }
@media (max-width: 380px) { .wx-hours { grid-template-columns: repeat(6, 1fr); } .wx-hours li:nth-child(n+7) { display: none; } .wx-days li { grid-template-columns: minmax(0, 1fr) 24px 30px 30px minmax(40px, 1fr) 30px; gap: 6px; } }
.ic-key { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 6px; background: var(--paper-2); font: 700 15px/1 var(--sans); vertical-align: middle; }
.install-steps ol, .install-card ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.install-steps li, .install-card li { line-height: 1.45; }

/* ================= Moins de gestes ================= */
/* « Lire ↗ » et l'aperçu au bout de la ligne de la carte */
.c2-acts { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; }
.c2-acts .c2-peek { margin-left: 0; }
.c2-read { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px 0 11px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12.5px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.c2-read svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.c2-read:active { transform: scale(.95); }
.lead.hero .c2-meta, .story.big .c2-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
.lead.hero .c2-acts, .story.big .c2-acts { margin-left: auto; }

/* La barre collée en bas de l'histoire */
.s-readbar { position: sticky; z-index: 6; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; margin: 26px 0 6px; padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); border: 1px solid var(--hair); }
@media (max-width: 760px) { body:not(.panel-open) .s-readbar { bottom: calc(68px + env(safe-area-inset-bottom)); } }
.rb-read { flex: 1; min-width: 0; display: grid; align-content: center; gap: 1px; min-height: 48px; padding: 6px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; }
.rb-read b { font: 700 15.5px/1.15 var(--sans); }
.rb-read small { font: 12.5px/1.2 var(--sans); opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-next { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 48px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.rb-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* L'accueil : « Utiliser ma position » */
.ob-geo { width: 100%; justify-content: center; min-height: 48px; font-size: 15.5px; margin-top: 4px; }
.ob-geo-msg { margin: 8px 0 0; font: 600 14px var(--sans); color: var(--b-l1); }
.ob-geo-note { margin-top: 12px; font-size: 12px; }

/* La météo : les villes en haut de la feuille, et le nom d'une autre ville dans la pastille */
.cat-wx small { font: 600 11.5px var(--sans); color: var(--ink-3); margin-left: 2px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.wx-cities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 34px 12px 0; }
.wx-city { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); overflow: hidden; }
.wx-city.on { background: var(--ink); border-color: var(--ink); }
.wx-city button { border: 0; background: none; color: var(--ink); font: 600 13.5px var(--sans); padding: 7px 12px; cursor: pointer; }
.wx-city.on button { color: var(--paper); }
.wx-city .wx-del { padding: 7px 10px 7px 2px; font-size: 12px; opacity: .7; }
.wx-add { border: 1px dashed var(--ink-3); background: none; border-radius: 999px; padding: 7px 12px; font: 600 13.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.wx-addbox { margin: 0 0 14px; position: relative; }
.wx-addbox[hidden] { display: none; }

/* Recherche : les plus récents tout en haut */
.top-arts { margin: 14px 0 6px; }
.top-arts[hidden] { display: none; }
.ta-list { list-style: none; margin: 0; padding: 0; }
.ta-list li { padding: 10px 0; border-bottom: 1px solid var(--hair-2); display: grid; gap: 3px; }
.ta-all { display: inline-block; margin-top: 10px; font: 600 13.5px var(--sans); }
@media (max-width: 760px) { .q-help { display: none; } }
@media (max-width: 760px) { #panelBody:has(.s-readbar) .s-sticky .ss-acts, #view:has(.s-readbar) .s-sticky .ss-acts { display: none !important; } }

/* Sous chaque carte : « Comparer les N médias › » et l'aperçu ; le titre et la photo ouvrent l'article */
.c2-row { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 12px; }
.c2-cmp { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--hair); color: var(--ink); text-decoration: none; font: 600 14px var(--sans); }
.c2-cmp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2-cmp svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c2-cmp .chev { margin-left: auto; width: 16px; height: 16px; stroke-width: 2.2; opacity: .6; }
.c2-cmp:active, .c2-row .c2-peek:active { transform: scale(.97); }
.c2-row .c2-peek { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex: none; }
.c2-row .c2-peek svg { width: 18px; height: 18px; }
.story.c2.is-seen .c2-cmp { opacity: .75; }
.story > .c2-row { display: flex !important; }

/* Choisir le média : les sources de la carte sont un bouton, et la feuille « Lire chez… » */
.src-pick { display: inline-flex; align-items: center; gap: 0; max-width: 100%; padding: 3px 6px 3px 0; margin: -3px 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.src-pick > span[data-no-tr] { color: var(--ink-2); font-weight: 600; }
.src-pick svg { width: 15px; height: 15px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: .75; }
.src-pick:active { background: var(--hair-2); }
.pk-h2 { font: 700 20px/1.25 var(--serif); margin: 4px 0 12px; }
.pk-tabs { margin: 0 0 10px; }
.pk-tabs small { opacity: .65; font-weight: 500; }
.pk-list { list-style: none; margin: 0; padding: 0; }
.pk-list li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--hair-2); }
.pk-list li[hidden] { display: none; }
.pk-go { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.pk-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 13px var(--sans); color: var(--ink-3); }
.pk-src b { color: var(--ink); font-weight: 700; font-size: 14px; }
.pk-src .fav, .pk-src .fav-fallback { width: 20px; height: 20px; border-radius: 50%; font-size: 10px; }
.pk-src time { margin-left: auto; }
.pk-tt { font: 600 16px/1.3 var(--serif); }
.pk-star { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 50%; }
.pk-star svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pk-star[aria-pressed="true"] { color: #F2B530; }
.pk-star[aria-pressed="true"] svg { fill: currentColor; }
.pk-note { margin-top: 12px; }
.rb-pick { flex: none; width: 48px; min-height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); cursor: pointer; }
.rb-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ================= Allègement : cartes et page d'histoire ================= */
/* Carte : une seule action sous la nouvelle, plus discrète */
.c2-cmp { min-height: 38px; background: none; border-color: var(--hair); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.c2-cmp svg:first-child { opacity: .8; }

/* L'histoire : « Choisir un autre média » au lieu de la longue rangée de médias */
.s-pick { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; text-align: left; }
.s-pick small { color: var(--ink-3); font-weight: 500; }
.s-pick > svg { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: .7; }
.s-pick .lstack { margin-right: 2px; }
/* Écouter, Enregistrer, Partager : une rangée plus légère */
@media (max-width: 760px) {
  .s-acts { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .s-acts .act { padding: 6px 10px; font-size: 12.5px; }
  .r-desk { display: none; }
}
/* Qui en parle : les trois côtés sur une seule ligne, en petit */
.s-who .s-cov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.s-who .s-cov > div { display: grid; gap: 2px; }
.s-who .s-cov b { font: 700 22px/1 var(--sans); }
.s-who .s-cov small { display: flex; align-items: center; gap: 5px; font: 12px var(--sans); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.s-who .s-cov small i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
/* Les sections qui se déplient */
.s-fold { margin-top: 28px; border-top: 2px solid var(--rule); }
.s-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 2px; font: 700 16px var(--sans); }
.s-fold > summary::-webkit-details-marker { display: none; }
.s-fold > summary::after { content: "▾"; margin-left: 8px; color: var(--ink-3); transition: transform .2s ease; }
.s-fold[open] > summary::after { transform: rotate(180deg); }
.s-fold > summary small { margin-left: auto; font: 500 12.5px var(--sans); color: var(--ink-3); }
.s-fold > .sec { margin-top: 4px; }
.s-fold-thread .thread > .block-h { display: none; }
.s-fold-thread .thread { margin-top: 6px; }
.s-readbar { transition: transform .25s ease, opacity .25s ease; } .s-readbar.rb-hide { opacity: 0; transform: translateY(16px); pointer-events: none; }
.s-fold > summary small { white-space: nowrap; }
.s-more.s-fold > summary { font: 700 16px var(--sans); padding: 14px 2px; border: 0; background: none; }
.s-more.s-fold > summary::before { content: none; }

/* « En bref » dans le bandeau (ordinateur) : un petit bouton aux couleurs du spectre */
.mast-links { align-items: center; }
.mast-bref { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-right: 8px; padding: 0 13px 0 9px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; font: 600 13px var(--sans); color: #fff; background: linear-gradient(90deg, var(--b-l2), #6A5A9E 55%, var(--b-r2)); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .6); transition: transform .12s ease, filter .15s ease; }
.mast-bref svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; }
.mast-bref svg path { fill: #fff; stroke: none; }
.mast-bref:hover { filter: brightness(1.12); }
.mast-bref:active { transform: scale(.96); }

/* ================= Ordinateur plus aéré, nouveautés, rappel, Aa, partager ================= */
/* Le haut du fil, partout : « Trier ▾ » au lieu de deux rangées de boutons ; les tendances sur une ligne */
.lensbar { display: none; }
.sort-btn { display: inline-flex; margin-left: auto; }
.feed-top { flex-direction: row !important; align-items: center !important; justify-content: space-between; }
.topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 0; padding: 8px 0 4px; }
.topics::-webkit-scrollbar { display: none; }
.topics .chip { flex: none; }
/* La colonne de droite : la météo en carte, le reste replié */
.rail-wx { margin-bottom: 18px; }
.rw-btn { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); cursor: pointer; text-align: left; }
.rw-ico { font-size: 40px; line-height: 1; grid-row: 1 / span 2; }
.rw-main { display: grid; gap: 2px; }
.rw-main b { font: 700 30px/1 var(--sans); }
.rw-main > span { display: flex; align-items: center; gap: 4px; font: 600 13px var(--sans); }
.rw-main .sg-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.rw-main small { font: 12.5px var(--sans); color: var(--ink-3); }
.rw-go { grid-column: 2; font: 600 13px var(--sans); color: var(--b-l1); }
.rail-more { margin-top: 22px; border-top: 2px solid var(--rule); }
.rail-more > summary { cursor: pointer; list-style: none; padding: 12px 0; font: 700 14px var(--sans); display: flex; gap: 8px; align-items: baseline; }
.rail-more > summary::-webkit-details-marker { display: none; }
.rail-more > summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); }
.rail-more > summary small { font: 500 12px var(--sans); color: var(--ink-3); }
/* Les nouvelles depuis ta visite */
.ns-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ns-list li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.ns-t { font: 600 17px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.ns-m { font: 12.5px var(--sans); color: var(--ink-3); }
/* Le rappel du matin */
.rem-card { margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hair); background: var(--card); }
.rem-h { display: flex; align-items: center; gap: 8px; font: 700 16px var(--sans); }
.rem-card .note { margin: 6px 0 10px; }
.rem-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 14px var(--sans); }
.rem-row input, .rem-row select { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); font: 600 15px var(--sans); }
/* Aa */
.act .aa { font: 700 15px/1 var(--serif); }

/* Fenêtres : seul l'intérieur défile ; le ✕ et la poignée restent toujours visibles en haut */
.modal-box { display: flex; flex-direction: column; overflow: hidden; }
#modalBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-close { z-index: 5; background: color-mix(in srgb, var(--paper) 85%, transparent); border-radius: 50%; }
@media (max-width: 760px) {
  .modal { align-items: end; }
  .modal-box { max-height: calc(100dvh - env(safe-area-inset-top) - 16px); }
  .modal-box::before { position: static; margin: 8px auto 2px; flex: none; }
  .modal-close { top: 10px; right: 10px; }
}
.modal-close { background: var(--paper) !important; box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .45); }

/* Rangées qui défilent de côté : flèches aux bords (ordinateur et tablette), fondu quand il y a plus à voir */
.hs-wrap { position: relative; min-width: 0; }
.sections-in > .hs-wrap { flex: 1; display: flex; }
.sections-in > .hs-wrap > .cats { flex: 1; }
.hs-arrow { position: absolute; top: 50%; z-index: 4; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5); }
.hs-arrow[hidden] { display: none; }
.hs-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hs-arrow:hover { background: var(--card); }
.hs-l { left: 2px; } .hs-r { right: 2px; }
.hs-wrap.hs-fr > :first-child { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent); }
.hs-wrap.hs-fl > :first-child { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 60px), transparent); }
.hs-wrap.hs-fl.hs-fr > :first-child { -webkit-mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
.hs-drag { cursor: grabbing; user-select: none; }
.hs-drag a { pointer-events: none; }
/* Téléphone : le doigt suffit, pas de flèches */
@media (max-width: 760px) { .hs-arrow { display: none !important; } }
.pk-via { font: 600 10.5px var(--sans); color: var(--ink-3); border: 1px solid var(--hair); border-radius: 4px; padding: 1px 5px; }
.gn-keep { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 14px var(--sans); color: var(--ink-2); } .gn-keep input { width: 18px; height: 18px; }

/* ================= Trier court, Ma ville aller-retour, Pour comprendre, Express, tutoriel ================= */
.sort-more { margin-top: 10px; }
.sort-more > summary { cursor: pointer; list-style: none; padding: 10px 2px; font: 600 14.5px var(--sans); color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.sort-more > summary::-webkit-details-marker { display: none; }
.sort-more > summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); }
.sort-more > summary small { font: 12px var(--sans); color: var(--ink-3); }
.sort-more[open] > summary::after { transform: rotate(180deg); }

.cat-ville .cv-x { margin-left: 6px; font-size: 11px; opacity: .8; }
.cats .cat-ville.on { background: var(--b-l2) !important; border-color: var(--b-l2) !important; color: #fff !important; }

.und-l { margin: 0; padding-left: 20px; display: grid; gap: 8px; font: 15.5px/1.45 var(--serif); color: var(--ink-2); }
.und-l b { color: var(--ink); font-family: var(--sans); font-size: 14px; }
.und-l small { font: 12px var(--sans); color: var(--ink-3); margin-left: 4px; }

.ex-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; }
.ex-btn b { font: 700 16px var(--sans); }
.ex-btn span { grid-column: 1; font: 13px var(--sans); color: var(--ink-3); }
.ex-btn svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: .6; }
.ex-sheet h2 small { font: 500 14px var(--sans); color: var(--ink-3); margin-left: 6px; }
.ex-listen { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ex-listen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--hair-2); }
.ex-n { font: 700 20px/1.2 var(--serif); color: var(--ink-3); }
.ex-t { display: block; font: 600 16px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.ex-list .c2-bar { max-width: 140px; margin-top: 6px; }
.ex-m { display: block; margin-top: 4px; font: 12.5px var(--sans); color: var(--ink-3); }

.coach { position: fixed; inset: 0; z-index: 95; cursor: pointer; }
.coach-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .66); outline: 2px solid #fff; transition: all .25s ease; pointer-events: none; }
.coach-tip { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6); animation: rise .25s ease both; }
.coach-tip p { margin: 0 0 10px; font: 600 16px/1.4 var(--sans); }
.coach-acts { display: flex; align-items: center; justify-content: space-between; font: 13px var(--sans); color: var(--ink-3); }

/* En bref · Vidéos : un seul bouton « Son » de Prisme */
.sh-sound { position: absolute; z-index: 4; right: 10px; bottom: 10px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .62); color: #fff; font: 600 13.5px var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sh-sound[aria-pressed="true"] { background: rgba(255, 255, 255, .9); color: #111; }

/* Téléphone : la barre des rubriques (maintenant dans .hs-wrap) garde sa propre rangée sous la recherche */
@media (max-width: 760px) { .sections-in > .hs-wrap { order: 2; flex: 0 0 100%; min-width: 0; } }

/* ================= Correctifs de la revue ================= */
/* « Aa » et le pincement grossissent aussi l'histoire ouverte dans le panneau */
#panel .panel-body { zoom: var(--scale, 1); }
/* Une fenêtre ouverte depuis « En bref » passe par-dessus (elle s'ouvrait derrière) */
body.shorts-open .modal { z-index: 99; }
/* Le bouton « Arrêter » flottant de la lecture à voix haute */
.speak-stop { position: fixed; z-index: 96; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 15px var(--sans); cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
.speak-stop svg { width: 18px; height: 18px; fill: currentColor; }

/* ================= Utile : payant, opinion, ça vient d'arriver, suivre, alertes, Canadien, dossier ================= */
/* Étiquettes « Opinion » et « 🔒 Abonnés » */
.tg { display: inline-flex; align-items: center; gap: 3px; font: 700 10.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.tg-op { background: #F2C14E; color: #1B1400; }
.tg-pay { background: none; border: 1px solid var(--hair); color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 600; }
.src-pick .lock { margin-left: 4px; font-size: 11px; opacity: .85; }
.big-in .tg-op { box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }

/* Le bandeau « Ça vient d'arriver » */
#breaking { display: flex; align-items: stretch; gap: 0; max-width: var(--w); margin: 10px auto 0; padding: 0 var(--gut); }
.brk-a { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px 0 0 12px; background: #E5484D; color: #fff; text-decoration: none; }
.brk-k { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.brk-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: live 1.6s ease-out infinite; }
.brk-a b { font: 700 16.5px/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brk-a small { font: 12px var(--sans); opacity: .9; }
.brk-x { flex: none; width: 42px; border: 0; border-radius: 0 12px 12px 0; background: #C93B40; color: #fff; cursor: pointer; display: grid; place-items: center; }
.brk-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* La carte « Tes histoires suivies » */
.fcard { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); border-left: 5px solid #F2B530; }
.fcard[hidden] { display: none; }
.fc-h { font: 700 14px var(--sans); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fc-h small { font: 500 12px var(--sans); color: var(--ink-3); }
.fc-l { list-style: none; margin: 6px 0 0; padding: 0; }
.fc-l a { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--hair-2); text-decoration: none; color: var(--ink); font: 600 15.5px/1.3 var(--serif); }
.fc-plus { font: 700 11px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: #C98A00; }
:root[data-theme="dark"] .fc-plus, :root[data-theme="oled"] .fc-plus { color: #F2C14E; }

/* Alertes météo et pannes */
.notices { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; cursor: pointer; }
.notices[hidden] { display: none; }
.nt { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 10px; font: 600 13px/1.25 var(--sans); background: var(--paper-2); color: var(--ink); }
.nt small { font-weight: 600; opacity: .7; }
.nt-warning { background: #E5484D; color: #fff; }
.nt-watch, .nt-advisory { background: #F2C14E; color: #1B1400; }
.nt-statement { background: var(--paper-2); }
.nt-out { background: var(--paper-2); }
.cat-wx.has-alert { border-color: #E5484D; box-shadow: inset 0 0 0 1px #E5484D; }
.cat-wx.has-alert::after { content: "⚠️"; font-size: 12px; margin-left: 2px; }
.wx-alerts { display: grid; gap: 8px; margin: 0 0 14px; }
.wx-alert { border-radius: 12px; padding: 0; overflow: hidden; border: 1px solid var(--hair); background: var(--card); }
.wx-alert > summary { cursor: pointer; list-style: none; padding: 11px 14px; font: 700 14.5px var(--sans); }
.wx-alert > summary::-webkit-details-marker { display: none; }
.wx-alert.nt-warning > summary { background: #E5484D; color: #fff; }
.wx-alert.nt-watch > summary, .wx-alert.nt-advisory > summary { background: #F2C14E; color: #1B1400; }
.wx-alert p { margin: 0; padding: 12px 14px; font: 14px/1.5 var(--sans); color: var(--ink-2); }
.wx-out { margin: 0; padding: 11px 14px; border-radius: 12px; background: var(--paper-2); font: 14px/1.4 var(--sans); color: var(--ink); }

/* Le Canadien */
.habs { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.hb-ico { font-size: 28px; line-height: 1; }
.hb-in { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
@media (max-width: 480px) { .hb-in { grid-template-columns: 1fr; } }
.hb-g { display: grid; gap: 1px; }
.hb-k { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hb-g b { font: 700 16px/1.25 var(--sans); }
.hb-g small { font: 12.5px var(--sans); color: var(--ink-3); }

/* Le dossier de la semaine (page d'un sujet) */
.dos { margin: 0 0 16px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.dos-h { font: 700 14px var(--sans); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.dos-h small { font: 500 12px var(--sans); color: var(--ink-3); }
.dos-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 86px; margin: 12px 0 8px; align-items: end; }
.dos-bars span { display: grid; grid-template-rows: 1fr auto; gap: 4px; height: 100%; align-items: end; justify-items: center; }
.dos-bars i { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--b-l1); align-self: end; }
.dos-bars span:last-child i { background: var(--ink); }
.dos-bars small { font: 11px var(--sans); color: var(--ink-3); text-transform: capitalize; }
.dos-top { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 13px var(--sans); color: var(--ink-3); }
.dos-top a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; font-weight: 600; }
.dos-top a b { color: var(--ink-3); font-weight: 600; }
.dos-top .fav, .dos-top .fav-fallback { width: 16px; height: 16px; border-radius: 50%; font-size: 8.5px; }

/* ================= Consolidation : Explorer, Signaler un problème ================= */
.mast-more { font: 500 13px var(--sans); color: #C9C5BC; background: none; border: 0; padding: 8px 10px; border-radius: 2px; white-space: nowrap; cursor: pointer; }
.mast-more:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mast-more[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.rp-sheet textarea { width: 100%; box-sizing: border-box; margin: 6px 0 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--hair); background: var(--card); color: var(--ink); font: 16px/1.45 var(--sans); resize: vertical; }
.rp-det { margin: 0 0 12px; font: 13px var(--sans); color: var(--ink-3); }
.rp-det summary { cursor: pointer; padding: 6px 0; }
.rp-det pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font: 12px/1.5 var(--mono); white-space: pre-wrap; color: var(--ink-2); }
.rp-send { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; margin-bottom: 10px; }

/* ================= Accessibilité : des zones tactiles assez grandes pour un doigt (écrans tactiles) ================= */
@media (pointer: coarse) {
  /* Boutons ronds du bandeau et des fenêtres */
  .icon-btn { min-width: 40px; min-height: 40px; }
  .modal-close, .drawer-close, .panel-x { min-width: 44px; min-height: 44px; }
  .edition-pick select { min-height: 40px; }
  .mic { min-width: 40px; min-height: 40px; }
  /* Rubriques, météo, tendances, tri */
  .cats a { min-height: 40px; box-sizing: border-box; }
  .cat-wx { min-height: 40px; box-sizing: border-box; }
  .topics .chip, .chips .chip { min-height: 40px; display: inline-flex; align-items: center; box-sizing: border-box; }
  .sort-btn { height: 40px; }
  /* Cartes : la rubrique et le nom du média ont une zone de toucher plus haute que leur texte (sans bouger la mise en page) */
  .ck { padding: 12px 0; margin: -9px 0; }
  .src-pick { padding: 9px 6px 9px 0; margin: -9px 0; }
  .c2-cmp { min-height: 44px; }
  /* Carte de la ville */
  .vc-t { padding: 8px 0; margin: -8px 0; }
  .vc-all { padding: 12px 0 12px 12px; margin: -12px 0; }
  .vc-bref { height: 40px; }
  .wx[data-wx-city] { padding: 8px 10px; margin: -4px 0; }
  .notices .nt { min-height: 36px; box-sizing: border-box; }
  /* Fil : « Plus d'histoires », étoile du média préféré, fermer le bandeau */
  #moreBtn { min-height: 44px; }
  .pk-star { width: 44px; height: 44px; }
  .brk-x { width: 46px; }
  .sh-sound { height: 40px; }
  .hc-x { min-width: 44px; min-height: 44px; }
}
/* Thème clair : le gris des petits textes un peu plus foncé (contraste suffisant pour lire en plein jour) */
:root[data-theme="light"] { --ink-3: #686560; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --ink-3: #686560; } }
@media (pointer: coarse) { .search input { min-height: 40px; } }

/* ================= Prisme Lumière : le faisceau, les nouvelles cartes, et le thème bleu nuit ================= */
/* --- 1. Pour tous les thèmes : le faisceau et les cartes --- */
:root { --fx-w: var(--ink); --fx-v: #9FD8FF; --alerte: #E5243B; --marque: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif; }
svg.fx { display: block; width: 100%; height: auto; overflow: visible; }
.fx-counts { font: 500 12.5px var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-counts b { color: var(--ink); font-weight: 600; }
.band-date { display: none; }

/* Une nouvelle du fil : le titre et sa source à gauche ; à droite, son prisme, qu'on touche pour comparer */
.story.c3, .story.c3.noimg { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 16px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--hair); }
.story.c3 > .c3-body { display: block; min-width: 0; }
.story.c3 > .c3-body > .c2-k { margin: 0 0 6px; }
.story.c3 > .c3-body > h3 { grid-column: auto; grid-row: auto; margin: 0 0 7px; font: 700 21px/1.17 var(--serif); letter-spacing: -.005em; text-wrap: pretty; }
.story.c3 > .c3-body > h3 a { text-decoration: none; color: inherit; }
.story.c3 > .c3-body > .c2-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 0; }
.story.c3 .src-pick { min-width: 0; max-width: calc(100% - 54px); }
/* Le nom du média tient sur une ligne ; « +9 » garde son espace */
.src-pick { gap: 0 4px; }
.src-pick .lstack { margin-right: 3px; }
.src-pick > span[data-no-tr] { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-top .fresh { flex-wrap: nowrap; min-width: 0; }
.c3-cmp { display: grid; gap: 3px; justify-items: end; align-content: center; min-height: 64px; text-decoration: none; color: var(--ink-3); font: 600 11.5px var(--sans); border-radius: 12px; }
.c3-cmp > span { padding: 4px 9px; border-radius: 999px; background: var(--hair-2); color: var(--ink); white-space: nowrap; }
.c3-cmp:hover > span { background: var(--hair); }
.c3-cmp:active { transform: scale(.97); }
.story.c3.is-seen .c3-cmp { opacity: .7; }
@media (max-width: 760px) {
  .story.c3, .story.c3.noimg { grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; padding: 14px 0; }
  .story.c3 > .c3-body > h3 { font-size: 18.5px; margin-top: 0; }
  /* Un seul logo par ligne sur téléphone : le nom du média garde sa place */
  .story.c3 .lstack > :nth-child(n+2) { display: none; }
  .story.c3 .src-pick { max-width: calc(100% - 48px); }
}

/* La une : la photo se fond dans le fond, sans cadre ; le titre, le grand faisceau, le compte de chaque côté */
.lead.hero2 { display: block; position: relative; padding: 0 0 20px; border-bottom: 1px solid var(--hair); }
.hero2-photo { display: block; position: relative; height: clamp(200px, 30vw, 400px); margin: 0 0 -76px; overflow: hidden; border-radius: 18px 18px 0 0; background: var(--paper-2); }
.hero2-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero2-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 42%, color-mix(in srgb, var(--paper) 70%, transparent) 76%, var(--paper) 97%); }
.hero2-txt { position: relative; display: grid; gap: 10px; justify-items: start; }
.hero2-txt > * { min-width: 0; max-width: 100%; }
.hero2-txt > .c2-k { margin: 0; }
.lead.hero2 h2 { margin: 0; font: 700 clamp(26px, 3.4vw, 42px)/1.08 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.lead.hero2 h2 a { text-decoration: none; color: inherit; }
.hero2-fx { display: block; justify-self: stretch; width: 100%; max-width: 540px; margin: 2px 0 -6px; border-radius: 12px; }
.hero2-meta { justify-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 13px/1.4 var(--sans); color: var(--ink-3); }
.hero2-meta .fx-counts { margin-left: auto; }
.lead.hero2 .dek { margin: 0; font: 400 16.5px/1.5 var(--serif); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero2-cmp { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--hair-2); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 600 13.5px var(--sans); text-decoration: none; }
.hero2-cmp:hover { background: var(--hair); }
.hero2-cmp:active { transform: scale(.97); }
.lead.hero2.is-seen .hero2-photo img { opacity: .65; filter: saturate(.5); }
/* La une sans photo : une carte, pour qu'elle reste « la une » */
.lead.hero2.noimg { margin: 14px 0 6px; padding: 20px 18px 16px; border-radius: 22px; border-bottom: 0; background: linear-gradient(160deg, var(--card), var(--paper-2)); box-shadow: inset 0 0 0 1px var(--hair); }
@media (max-width: 760px) {
  .hero2-photo { height: clamp(190px, 54vw, 300px); margin: 0 calc(-1 * var(--gut)) -62px; border-radius: 0; }
  .lead.hero2 h2 { font-size: clamp(25px, 6.9vw, 31px); }
  .lead.hero2 { padding-bottom: 16px; }
}
/* Téléphone : les tendances ne collent plus au bord gauche de l'écran */
@media (max-width: 760px) { .topics { padding-left: var(--gut); padding-right: var(--gut); } }
/* La page d'une histoire : le grand faisceau, puis les trois côtés sur une ligne (sans filets) */
.s-fx { max-width: 580px; margin: 6px 0 4px; }
.s-who .s-cov > div { border: 0 !important; padding: 0 !important; }
/* La lumière se déploie à l'ouverture (la une et la page d'une histoire) */
@media (prefers-reduced-motion: no-preference) {
  .hero2-fx .fx-in, .s-fx .fx-in { transform-box: fill-box; transform-origin: left center; animation: fx-file .5s ease-out both; }
  .hero2-fx .fx-out, .s-fx .fx-out { transform-box: fill-box; transform-origin: left center; animation: fx-file 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 110ms + 380ms); }
  .hero2-fx .fx-verre, .s-fx .fx-verre { animation: fx-luit .9s ease-out both .25s; }
  @keyframes fx-file { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  @keyframes fx-luit { from { opacity: .25; } 60% { opacity: 1; } to { opacity: 1; } }
}

/* --- 2. Le thème « Lumière » (classe lum : thème sombre, ou automatique quand le téléphone est en sombre) --- */
:root.lum.lum {
  --paper: #060A13; --paper-2: #0C1220; --card: #0E1524; --ink: #F5F2EA; --ink-2: #C9CFDB; --ink-3: #A0A8B8;
  --rule: #ffffff2b; --hair: #ffffff1c; --hair-2: #ffffff12; --focus: #7FD6EC;
  --b-l2: #2FC0E0; --b-l1: #86D8E8; --b-c: #F6F0DE; --b-r1: #FFA277; --b-r2: #FF7340; --b-unk: #2A3347;
  --fx-w: #fff; --verre: #121A2Bcc; --spectre: linear-gradient(90deg, #2FC0E0, #F6F0DE, #FF7340);
  color-scheme: dark;
}
:root.lum body { background: radial-gradient(120% 460px at 50% 0, #0E1830 0, transparent 70%) no-repeat, var(--paper); }
/* Le texte foncé sur les couleurs vives du spectre (le blanc n'y était plus lisible) */
:root.lum .bb-l2, :root.lum .bb-r2, :root.lum .bigbar .seg.l, :root.lum .bigbar .seg.r, :root.lum .chip .new, :root.lum .tabbar .dot, :root.lum .ck-blind, :root.lum #feed .story.swiping.armed[data-dir="r"]::before { color: #06101A; }
:root.lum body.is-offline #topbar::after { color: #06101A; }

/* La manchette : PRISME, la date, sur un fond transparent qui devient du verre en défilant */
:root.lum .topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
:root.lum .band { position: relative; overflow: hidden; background: transparent; border-bottom: 0; color: var(--ink); }
:root.lum .band::before, :root.lum .band::after { content: ""; position: absolute; z-index: 0; width: 150px; height: 2px; top: calc(env(safe-area-inset-top, 0px) + 22px); filter: blur(1.2px); pointer-events: none; background: linear-gradient(90deg, transparent, #2FC0E0, #F6F0DE, #FF7340, transparent); opacity: .7; }
:root.lum .band::before { left: -52px; transform: rotate(-38deg); }
:root.lum .band::after { right: -52px; transform: rotate(38deg); }
:root.lum .band-row { position: relative; z-index: 1; }
:root.lum .mast .spectrum { display: none; }
:root.lum .logo-word { font: 800 28px/1 var(--marque); letter-spacing: .05em; text-transform: uppercase; font-variation-settings: normal; }
:root.lum .topbar.compact .logo-word { font-size: 23px; }
:root.lum .logo-mark .beam, :root.lum .logo-mark .tri { stroke: var(--ink); }
:root.lum .band-date { display: block; font: 500 11.5px/1.3 var(--sans); color: var(--ink-3); white-space: nowrap; margin-right: 6px; }
:root.lum .band-date::first-letter { text-transform: uppercase; }
:root.lum .edition-pick, :root.lum .lang-btn { border-color: var(--hair); border-radius: 10px; }
:root.lum .icon-btn { border-radius: 50%; }
:root.lum .sections { background: transparent; border-bottom: 1px solid var(--hair); }
:root.lum .topbar.compact .sections, :root.lum .topbar.tucked .sections { box-shadow: none; }

/* Les rubriques : du texte, et un trait de lumière sous celle où on est */
:root.lum .cats { gap: 4px; }
:root.lum .cats a { position: relative; display: inline-flex; align-items: center; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--ink-3) !important; font: 500 14.5px var(--sans); padding: 9px 9px 13px !important; }
:root.lum .cats a:hover { color: var(--ink) !important; }
:root.lum .cats a::before { display: none !important; }
:root.lum .cats a .ce, :root.lum .cats .sep { display: none; }
:root.lum .cats a[aria-current="page"], :root.lum .cats .cat-ville.on { color: var(--ink) !important; font-weight: 600; }
:root.lum .cats a[aria-current="page"]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--spectre); box-shadow: 0 0 10px 1px #ffb07a88; }
:root.lum .cat-wx { border: 0; background: none; padding: 0 6px 4px; margin-left: 0; color: var(--ink-2); font-weight: 500; }
:root.lum .cat-wx.has-alert { box-shadow: none; color: #FF8A8F; }
@media (max-width: 760px) {
  :root.lum .cats { gap: 6px; padding: 0 var(--gut); }
  :root.lum .cats a:first-child { padding-left: 0 !important; }
  :root.lum .cats a:first-child[aria-current="page"]::after { left: 0; }
  /* Le bandeau du téléphone : PRISME à gauche ; à droite la date, l'édition dessous, et la loupe */
  :root.lum .band-row { min-height: 58px; }
  :root.lum .logo-mark { display: none; }
  :root.lum .logo-word { font-size: 29px; }
  :root.lum .topbar.compact .logo-word { font-size: 24px; }
  :root.lum #prefsBtn, :root.lum #langBtn { display: none; }
  :root.lum .band-actions { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: end; align-items: center; gap: 0 2px; }
  :root.lum .band-date { grid-area: 1 / 1; align-self: start; margin: 4px 0 0; pointer-events: none; font-size: 11px; }
  :root.lum .edition-pick { grid-area: 1 / 1; height: 42px; padding: 0; border: 0; }
  :root.lum .edition-pick svg { display: none; }
  :root.lum .edition-pick { justify-self: start; }
  :root.lum .edition-pick select { field-sizing: content; width: auto; height: 42px; min-height: 42px; max-width: 150px; padding: 18px 13px 0 0; font: 500 11px var(--sans); color: var(--ink-3); }
  :root.lum .edition-pick::after { top: 27px; right: 1px; width: 4px; height: 4px; opacity: .8; }
  :root.lum .search-btn { grid-area: 1 / 2; display: grid !important; color: var(--ink); }
  /* La recherche se déplie quand on touche la loupe */
  :root.lum .topbar:not(.searching) .search { display: none; }
  :root.lum .sections-in { min-height: 0; }
}

/* Le fil : la une d'abord, puis « À jour · Trier » et les tendances, puis les nouvelles */
:root.lum #view > .folio:has(+ .lensbar) { display: none; }
:root.lum .main-col:has(> #feed) { display: flex; flex-direction: column; }
:root.lum .main-col:has(> #feed) > * { flex: none; }
:root.lum #feed { display: contents; }
:root.lum #feed > .hero2, :root.lum #feed > .sk-hero { order: -1; }
:root.lum .main-col > .new-pill { order: -2; }
:root.lum .layout:has(#feed) { padding-top: 0; }
:root.lum .folio { border-bottom: 1px solid var(--hair); }
:root.lum .lead.hero2 { border-bottom: 0; padding-bottom: 8px; }
@media (min-width: 761px) { :root.lum .lead.hero2 { margin-top: 18px; } :root.lum .layout:has(#feed) > .rail { margin-top: 18px; } }
:root.lum .lead.hero2.noimg { background: linear-gradient(160deg, #101B33, #0A1020); }
:root.lum .hero2-photo { background: #0A1020; }
/* « En direct » : une étiquette rouge */
:root.lum .ck-live { padding: 4px 8px; border-radius: 3px; background: var(--alerte); color: #fff; font-weight: 600; }
:root.lum .ck-live::before { width: 6px; height: 6px; background: #fff; animation-name: live-b; }
@keyframes live-b { 0% { box-shadow: 0 0 0 0 #ffffffaa; } 70% { box-shadow: 0 0 0 6px #ffffff00; } 100% { box-shadow: 0 0 0 0 #ffffff00; } }
/* La rubrique d'une carte : discrète (la couleur est réservée à la lumière) */
:root.lum .ck { color: var(--ink-3); font-weight: 600; }
:root.lum .fresh { font-family: var(--sans); letter-spacing: 0; font-size: 12px; }
:root.lum .sort-btn { border-color: var(--hair); background: var(--hair-2); }

/* Les formes : plus rien de carré */
:root.lum .btn { border-radius: 12px; }
:root.lum .chip { border-radius: 999px; border-color: var(--hair); }
:root.lum .search input { border-radius: 12px; background: var(--hair-2); }
:root.lum .suggest { border-radius: 14px; border-color: var(--hair); background: #0B111E; }
:root.lum .toast { border-radius: 14px; }
:root.lum .howto, :root.lum .city-bar, :root.lum .callout, :root.lum .q-fix, :root.lum .install-hint, :root.lum .s-key, :root.lum .words { border-radius: 12px; }
:root.lum .act { border-radius: 10px; }
:root.lum .bigbar { border-radius: 8px; overflow: hidden; }
:root.lum .lang, :root.lum .bb { border-radius: 4px; }
:root.lum .modal-box { background: #0B111E; border-color: var(--hair); box-shadow: 0 30px 80px -30px #000; }
@media (min-width: 761px) { :root.lum .modal-box { border-radius: 20px; } }
:root.lum .drawer-panel { background: #0B111E; }
:root.lum .modal-close { background: #172033 !important; }
/* Les listes des fenêtres (« Plus », « Explorer ») : un seul bloc arrondi */
:root.lum .sheet-list { padding: 0 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair-2); }
:root.lum .sheet-list > li:last-child > a, :root.lum .sheet-list > li:last-child > button { border-bottom: 0; }
:root.lum .sheet-list a, :root.lum .sheet-list button { border-bottom-color: var(--hair-2); }

/* La barre du bas : du verre qui flotte, des icônes fines, le trait de lumière */
:root.lum .tabbar [aria-current="page"]::before { background: var(--spectre); box-shadow: 0 0 10px 1px #ffb07a88; }
@media (max-width: 1100px) and (pointer: coarse), (max-width: 760px) {
  :root.lum .tabbar { background: var(--verre) !important; border-top-color: var(--hair); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
  :root.lum .tabbar a, :root.lum .tabbar button { font-weight: 500; color: var(--ink-3); }
  :root.lum .tabbar svg { stroke-width: 1.6; }
  :root.lum .tabbar [aria-current="page"] { color: var(--ink); font-weight: 600; }
  :root.lum .tabbar [aria-current="page"] svg { fill: none; stroke-width: 1.8; }
}
@media (max-width: 760px) {
  :root.lum .tabbar { left: 12px; right: 12px; bottom: max(10px, calc(env(safe-area-inset-bottom) - 6px)); padding: 0 4px; border-top: 0; border-radius: 26px; box-shadow: inset 0 0 0 1px #ffffff1f, inset 0 1px 0 #ffffff30, 0 18px 40px -18px #000; }
  :root.lum .tabbar a, :root.lum .tabbar button { height: 58px; font-size: 10.5px; }
  :root.lum .tabbar svg { width: 21px; height: 21px; }
  :root.lum .tabbar [aria-current="page"]::before { top: auto; bottom: 5px; left: 30%; right: 30%; height: 2px; border-radius: 2px; }
  :root.lum .tabbar .dot { top: 6px; }
  :root.lum body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  :root.lum .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  :root.lum body:not(.panel-open) .s-readbar { bottom: calc(82px + env(safe-area-inset-bottom)); }
  :root.lum .speak-stop { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
:root.lum .s-readbar { background: var(--verre); border-color: var(--hair); }

/* ================= Icônes dessinées, rubrique Religion, colonne de droite, tuiles du matin ================= */
/* Les icônes : un trait fin de la couleur du texte (plus d'emojis). Météo : teinte chaude (soleil, éclair) et froide (pluie, neige, lune). */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .ic-w { stroke: var(--b-r1); }
.ic .ic-c { stroke: var(--b-l2); }
.nt .ic .ic-w, .nt .ic .ic-c, .wx-alert > summary .ic * { stroke: currentColor; }
.wx-big .ic { stroke-width: 1.15; }
.rw-ico .ic { stroke-width: 1.3; }
.wx-hours b .ic, .wx-days b .ic { width: 22px; height: 22px; vertical-align: middle; }
.cat-wx .ic { width: 18px; height: 18px; vertical-align: -4px; }
.src-pick .lock .ic { width: 12px; height: 12px; stroke-width: 2; vertical-align: -1px; }
.tg-pay .ic { width: 11px; height: 11px; stroke-width: 2.1; vertical-align: -1px; }
.cat-wx.has-alert::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; margin-left: 4px; }
/* La pastille de verre : l'icône y est tracée avec la lumière du prisme. */
.pi { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--hair);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ink) 10%, transparent), color-mix(in srgb, var(--ink) 2%, transparent)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.pi .ic { width: 23px; height: 23px; stroke-width: 1.6; }

/* Le matin : deux tuiles côte à côte, le titre dans le caractère des manchettes, un filet de lumière au survol. */
.ex-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 12px; }
.ex-duo .ex-btn { margin: 0; }
@media (max-width: 620px) { .ex-duo { grid-template-columns: 1fr; gap: 10px; } }
.ex-btn { grid-template-columns: auto 1fr auto; gap: 1px 14px; padding: 14px 16px; border-radius: 18px; position: relative; overflow: hidden; transition: border-color .2s; }
.ex-btn > .pi { grid-column: 1; grid-row: 1 / span 2; }
.ex-btn > b { grid-column: 2; font: 700 19px/1.2 var(--serif); }
.ex-btn > .ex-s { grid-column: 2; }
.ex-btn > .ex-go { grid-column: 3; grid-row: 1 / span 2; }
.ex-btn .pi .ic { width: 23px; height: 23px; stroke-width: 1.6; opacity: 1; }
.ex-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--b-l2), var(--b-c), var(--b-r2)); opacity: 0; transition: opacity .2s; }
.ex-btn:hover { border-color: color-mix(in srgb, var(--ink) 32%, transparent); }
.ex-btn:hover::before, .ex-btn:focus-visible::before { opacity: .9; }
.habs { gap: 14px; padding: 14px 16px; border-radius: 18px; }
.hb-g b { font: 700 19px/1.2 var(--serif); }
.rem-card { padding: 16px; border-radius: 18px; }
.rem-h { gap: 12px; }
.rem-h b { font: 700 19px/1.2 var(--serif); }

/* La rubrique Religion. */
.cc-religion { --cc: #1E7F86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc-religion { --cc: #6FD0D2; } }
:root[data-theme="dark"] .cc-religion, :root[data-theme="oled"] .cc-religion { --cc: #6FD0D2; }

/* La colonne de droite, sur ordinateur : les sujets du moment (numérotés) et les dernières nouvelles. */
.t-now { display: contents; }
.now-list, .late-list { list-style: none; margin: 0; padding: 0; }
.now-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.now-list li:last-child a, .late-list li:last-child a { border-bottom: 0; }
.now-n { font: italic 400 19px/1 var(--serif); color: var(--ink-3); }
.now-list b { font: 600 16.5px/1.25 var(--serif); overflow-wrap: anywhere; }
.late-list a { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.late-list time { font: 600 11.5px/1.75 var(--mono); color: var(--ink-3); white-space: nowrap; }
.late-list span { font: 600 15px/1.28 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.now-list a:hover b, .late-list a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 1020px) { .rail-desk { display: none; } }
/* Les sujets du moment sont dans la colonne : on ne les répète pas au-dessus du fil. */
@media (min-width: 1021px) {
  .layout:has(.rail-now) .topics .t-now { display: none; }
  .layout:has(.rail-now) .hs-wrap:has(> .topics:not(:has(.star))), .layout:has(.rail-now) .main-col > .topics:not(:has(.star)) { display: none; }
}
/* Sur un écran d'ordinateur moyen, la recherche se replie en loupe pour laisser la place à toutes les rubriques ; elle s'ouvre dès qu'on la touche (ou avec « / »). */
@media (min-width: 1021px) and (max-width: 1620px) {
  .search:not(:focus-within) { width: 42px; }
  .search:not(:focus-within) input { padding: 0; color: transparent; cursor: pointer; }
  .search:not(:focus-within) input::placeholder { color: transparent; }
  .search:not(:focus-within) > svg { left: 13px; }
  .search:not(:focus-within) kbd, .search:not(:focus-within) .mic { display: none; }
}

/* ================= Les lignes du fil retrouvent leur photo ================= */
/* Ordinateur : la photo à gauche, le titre, puis le prisme. Téléphone : le titre à gauche ; à droite, la photo et le prisme dessous. */
.story.c3.has-img { grid-template-columns: 172px minmax(0, 1fr) 118px; gap: 18px; }
.c3-img { display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--hair-2); }
.c3-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
@media (hover: hover) { .story.c3:hover .c3-img img { transform: scale(1.035); } }
.story.c3.is-seen .c3-img { opacity: .72; }
@media (max-width: 760px) {
  .story.c3.has-img { grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "body img" "body cmp"; gap: 6px 12px; align-items: start; }
  .story.c3.has-img > .c3-img { grid-area: img; aspect-ratio: 13 / 9; border-radius: 10px; }
  .story.c3.has-img > .c3-body { grid-area: body; align-self: center; }
  /* Sous la photo, le prisme reste compact : pas de pastille, juste « Comparer › » en petit. */
  .story.c3.has-img > .c3-cmp { grid-area: cmp; min-height: 0; gap: 0; }
  .story.c3.has-img > .c3-cmp svg { margin: -7px 0 -6px; }
  .story.c3.has-img > .c3-cmp > span { padding: 2px 0; background: none; color: var(--ink-2); font-size: 12px; }
}

/* La feuille météo sans ville choisie : une phrase qui invite à taper la sienne. */
.wx-mine { margin: 0 0 10px; font: 14.5px/1.45 var(--sans); color: var(--ink-2); }
