/* ============ InfOccitanie — design system ============ */
:root {
  --brand: #CD0000;
  --brand-dark: #a30000;
  --accent: #FEBD01;
  --accent-dark: #e0a800;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --band-tint: rgba(205, 0, 0, 0.05);
  --text: #16181d;
  --text-soft: #5b616e;
  --border: #e3e5ea;
  --shadow: 0 1px 3px rgba(20,24,35,.08), 0 1px 2px rgba(20,24,35,.04);
  --shadow-lg: 0 10px 30px rgba(20,24,35,.12);
  --radius: 12px;
  --maxw: 1200px;
  --header-h: 64px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html[data-theme="dark"] {
  --bg: #0e1014;
  --surface: #171a21;
  --surface-2: #1f232c;
  --band-tint: rgba(205, 0, 0, 0.13);
  --text: #e9eaee;
  --text-soft: #9aa1ad;
  --border: #2a2f3a;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* Bloque le défilement horizontal créé par des contenus tiers injectés
     directement sous <html>, hors <body> (vignette Taboola, iframes de pub
     Google/prebid…), que « overflow sur body » ne peut pas atteindre.
     « hidden » = repli universel (iOS < 16) ; « clip » l'emporte sur les
     navigateurs récents et préserve position:sticky (en-tête). */
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; font-weight: 300; -webkit-font-smoothing: antialiased;
  /* Empêche tout défilement horizontal causé par des contenus tiers (widgets
     Taboola, lecteurs publicitaires) plus larges que le viewport sur mobile.
     « clip » (et non « hidden ») n'instaure pas de conteneur de défilement :
     l'en-tête et la colonne latérale en position:sticky continuent de fonctionner. */
  overflow-x: clip;
}
h1, h2, h3, h4 { font-weight: 800; }
strong, b { font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Google Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; vertical-align: middle; white-space: nowrap; direction: ltr;
  font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Site header (3 rows, infoccitanie style) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }

/* Le fond rouge du header remonte derrière l'encoche / la Dynamic Island
   (zone « safe-area » du haut sur iPhone) : la barre d'état apparaît rouge,
   assortie au header. Fallback 0px hors iPhone → aucun changement. */
.site-header { background: var(--brand); padding-top: env(safe-area-inset-top, 0px); }

/* Row 1 — red bar: MENU · logo · actions */
.header-top { background: var(--brand); }
.header-top-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; min-height: 78px; padding: 8px 26px;
  transition: min-height .28s ease, padding .28s ease;
}
.header-logo { justify-self: center; display: flex; align-items: center; }
.header-logo img { height: 50px; width: auto; transition: height .28s ease; }
.pill .material-symbols-outlined { font-size: 20px; }
.icon-btn .material-symbols-outlined { font-size: 22px; }
.logo-fallback { font-weight: 800; font-size: 30px; letter-spacing: .5px; color: #fff; }
.logo-fallback span { color: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* White-outline pill buttons (MENU / MÉTÉO) */
.pill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px; padding: 9px 18px; font-size: 16px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; transition: .15s;
  touch-action: manipulation;
}
.pill:hover { background: #fff; color: var(--brand); border-color: #fff; }
.pill.info-redac { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill.info-redac:hover { background: #fff; color: var(--brand); border-color: #fff; }
#menuBtn {
  justify-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; box-sizing: border-box;
}
#menuBtn .material-symbols-outlined,
#menuBtn .menu-btn-label { display: block; line-height: 1; }
#menuBtn .menu-btn-label { display: none; }
@media (min-width: 761px) {
  #menuBtn {
    width: auto; min-width: 42px; height: 42px; border-radius: 999px; padding: 0 14px; gap: 6px;
  }
  #menuBtn .menu-btn-label {
    display: block; font-size: 14px; font-weight: 800;
    letter-spacing: .03em; text-transform: uppercase;
  }
  .is-min #menuBtn { height: 36px; padding: 0 12px; }
}
.burger { width: 18px; height: 12px; position: relative; display: inline-block; }
.burger, .burger::before, .burger::after { }
.burger { border-top: 2px solid currentColor; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 100%;
  border-top: 2px solid currentColor; }
.burger::before { top: 3px; } .burger::after { top: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 16px;
  display: grid; place-items: center; background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.3); color: #fff; transition: .15s;
  touch-action: manipulation;
}
.icon-btn:hover { background: #fff; color: var(--brand); }

/* Row 2 — red bar: thematic rubrics, centered */
/* Row 2 : single-line, horizontally scrollable with chevron arrows */
.header-themes { background: var(--brand); display: flex; align-items: stretch; }
.header-themes-scroll {
  flex: 1; min-width: 0; display: flex; justify-content: safe center;
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
  padding: 4px 10px 10px; transition: padding .28s ease;
}
.header-themes-scroll::-webkit-scrollbar { display: none; }
.header-themes-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 6px; flex: 0 0 auto; }
.header-themes a {
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 6px; white-space: nowrap; transition: .15s; flex: 0 0 auto;
}
.header-themes a:hover, .header-themes a.active { background: rgba(0,0,0,.18); color: var(--accent); }

/* Scroll chevrons */
.nav-arrow {
  flex: 0 0 auto; width: 44px; border: none; cursor: pointer; background: var(--brand); color: #fff;
  display: grid; place-items: center; padding: 0; position: relative; z-index: 2; transition: color .15s;
}
.nav-arrow:hover { color: var(--accent); }
.nav-arrow[hidden] { display: none; }
.nav-arrow .material-symbols-outlined { font-size: 28px; }
.nav-prev { box-shadow: 16px 0 16px -10px rgba(0,0,0,.4); }
.nav-next { box-shadow: -16px 0 16px -10px rgba(0,0,0,.4); }

/* "Ma région" trigger (stays in the scroller) */
.region-menu { flex: 0 0 auto; }
.region-trigger {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit; white-space: nowrap;
  background: transparent; border: none; color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase; padding: 8px 14px; border-radius: 6px; transition: .15s;
}
.region-trigger .material-symbols-outlined { font-size: 19px; }
.region-trigger .region-caret { font-size: 20px; transition: transform .2s; }
.region-menu.open .region-trigger, .region-trigger:hover { background: rgba(0,0,0,.18); color: var(--accent); }
.region-menu.open .region-caret { transform: rotate(180deg); }

/* "Ma région" panel — fixed, positioned by JS, so the scroller never clips it */
.region-panel {
  position: fixed; z-index: 70; min-width: 460px; max-width: 92vw; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease;
}
.region-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.region-panel-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand); margin-bottom: 10px; }
html[data-theme="dark"] .region-panel-title { color: var(--accent); }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 6px; }
.region-grid a { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px;
  font-weight: 600; padding: 8px 10px; border-radius: 8px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.region-grid a .material-symbols-outlined { font-size: 17px; color: var(--brand); }
html[data-theme="dark"] .region-grid a .material-symbols-outlined { color: var(--accent); }
.region-grid a:hover, .region-grid a.active { background: var(--surface-2); color: var(--brand); }
html[data-theme="dark"] .region-grid a:hover, html[data-theme="dark"] .region-grid a.active { color: var(--accent); }
@media (max-width: 600px) {
  /* Pleine largeur sous le header, jamais rognée, défilable si beaucoup d'entrées */
  .region-panel { left: 8px !important; right: 8px; width: auto !important;
    min-width: 0; max-width: none; max-height: calc(100vh - 150px); overflow-y: auto; padding: 14px; }
  .region-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .region-grid a { padding: 12px 10px; font-size: 15px; }
}

/* ── Bandeau d'alerte « breaking news » ──────────────────────────────────── */
/* Couleurs par type : --flash-a = couleur principale, --flash-b = jaune flash */
.alert-banner {
  --flash-a: #d10000; --flash-b: #FEBD01;
  position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none;
  border-bottom: 2px solid rgba(0,0,0,.18);
  background: linear-gradient(90deg, color-mix(in srgb, var(--flash-a) 78%, #000), var(--flash-a) 55%, color-mix(in srgb, var(--flash-a) 78%, #000));
}
.alert-banner--meteo    { --flash-a: #1565d8; }
.alert-banner--exclusif { --flash-a: #a313bd; }

/* Reflet animé qui traverse le bandeau (après l'intro) */
.alert-banner::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: alert-shine 3.4s linear 1.4s infinite;
}

/* Intro : strobe rouge/jaune + libellé qui entre en animation, puis disparaît */
.alert-banner-intro {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 900; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  transform-origin: center;
  animation: alert-flash .26s steps(2, jump-none) 0s 4, alert-intro-out .32s ease 1.05s forwards;
}
.alert-banner-intro .material-symbols-outlined { font-size: 28px;
  animation: alert-label-in .4s cubic-bezier(.2,.8,.2,1.25) both, alert-pop .26s ease-in-out 0s 4; }
.alert-banner-intro b { display: inline-flex; flex-direction: row; align-items: center; gap: .4em;
  white-space: nowrap; line-height: 1;
  animation: alert-label-in .45s cubic-bezier(.2,.8,.2,1.25) .05s both; }

/* État stable : libellé jaune fixe à gauche + titre défilant (ticker) */
.alert-banner-main {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px;
  opacity: 0; animation: alert-main-in .4s ease 1.15s forwards;
}
.alert-banner-label {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  color: var(--flash-b); font-weight: 900; font-size: 12.5px; letter-spacing: .05em;
  text-transform: uppercase; white-space: nowrap;
  padding-right: 12px; border-right: 2px solid rgba(255,255,255,.28);
}
.alert-banner-label .material-symbols-outlined { font-size: 22px; }
.alert-banner-label-text { display: inline-flex; flex-direction: column; line-height: 1.02; }
/* Défilement horizontal sans fin (texte dupliqué → boucle continue) */
.alert-banner-title { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image:
  linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.alert-banner-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: alert-ticker 24s linear infinite;
}
.alert-banner-seg { font-size: 15px; font-weight: 800; line-height: 1.3; padding-right: 3.5rem; }
.alert-banner:hover .alert-banner-track { animation-play-state: paused; }
/* Titre assez court pour tenir : on fige (pas de défilement, pas de masque, pas de doublon) */
.alert-banner-title.is-static { -webkit-mask-image: none; mask-image: none; }
.alert-banner-title.is-static .alert-banner-track { animation: none; transform: none; }
.alert-banner-title.is-static .alert-banner-seg { padding-right: 0; }
.alert-banner-title.is-static .alert-banner-seg + .alert-banner-seg { display: none; }
.alert-banner-arrow { flex: 0 0 auto; font-size: 22px; transition: transform .2s; }
.alert-banner:hover .alert-banner-arrow { transform: translateX(4px); }

@keyframes alert-flash {
  0%   { background: var(--flash-a); color: #fff;     box-shadow: inset 0 0 90px rgba(0,0,0,.28); }
  50%  { background: var(--flash-b); color: #1a1d24;  box-shadow: inset 0 0 120px rgba(255,255,255,.45); }
  100% { background: var(--flash-a); color: #fff;     box-shadow: inset 0 0 90px rgba(0,0,0,.28); }
}
@keyframes alert-pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes alert-intro-out {
  to { opacity: 0; visibility: hidden; transform: scale(1.05); }
}
@keyframes alert-label-in {
  from { opacity: 0; transform: translateY(14px) scale(.82); }
  to   { opacity: 1; transform: none; }
}
@keyframes alert-main-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes alert-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  50%      { opacity: .35; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
@keyframes alert-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes alert-shine {
  0%   { left: -40%; }
  60%, 100% { left: 120%; }
}
@media (max-width: 600px) {
  .alert-banner-main { gap: 10px; padding: 9px 12px; }
  .alert-banner-intro { font-size: 15px; letter-spacing: .08em; }
  /* Sur mobile : pas de défilement, le titre s'affiche sur 2 lignes max */
  .alert-banner-title { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .alert-banner-track { display: block; white-space: normal; animation: none; transform: none; }
  .alert-banner-seg { font-size: 13px; line-height: 1.25; padding-right: 0; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .alert-banner-seg + .alert-banner-seg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .alert-banner-intro { display: none; }
  .alert-banner-main { opacity: 1; animation: none; }
  .alert-banner::after, .alert-banner-dot, .alert-banner-track { animation: none; }
}

/* Sticky header — minified state on scroll down */
.site-header { transition: box-shadow .28s ease; }
.is-min { box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.is-min .header-top-inner { min-height: 50px; }
.is-min .header-logo img { height: 30px; }
.is-min .header-themes-scroll { padding-top: 0; padding-bottom: 6px; }
.is-min .header-themes a, .is-min .region-trigger { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.is-min .pill { padding-top: 6px; padding-bottom: 6px; }
.is-min .icon-btn { width: 36px; height: 36px; }

/* Drawer plein écran (style BFM) */
body.drawer-open {
  overflow: hidden; touch-action: none; position: fixed; width: 100%; left: 0; right: 0;
}
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--surface);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.drawer-overlay:not([hidden]) { opacity: 1; visibility: visible; }
.drawer-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.drawer-head {
  flex: 0 0 auto; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  min-height: 56px; padding: 8px 12px; background: var(--brand); color: #fff;
}
.drawer-close {
  width: 42px; height: 42px; border: none; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; display: grid; place-items: center;
  touch-action: manipulation;
}
.drawer-close .material-symbols-outlined { font-size: 28px; }
.drawer-logo { justify-self: center; display: flex; align-items: center; justify-content: center; }
.drawer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.drawer-logo .logo-fallback { font-size: 22px; color: #fff; }
.drawer-body {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 18px 32px; overscroll-behavior: contain;
}
.drawer-search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 4px 4px 4px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.drawer-search-icon { color: var(--text-soft); font-size: 22px; flex: 0 0 auto; }
.drawer-search input {
  flex: 1; min-width: 0; border: none; background: transparent; color: var(--text);
  padding: 12px 0; font-size: 16px; outline: none; touch-action: manipulation;
}
.drawer-search-submit {
  flex: 0 0 auto; border: none; background: var(--brand); color: #fff; font-weight: 800;
  font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  touch-action: manipulation;
}
.drawer-section { padding: 16px 0; border-top: 1px solid var(--border); }
.drawer-section:first-of-type { border-top: none; padding-top: 0; }
.drawer-section--theme { padding: 12px 0 14px; border-top: none; }
.theme-switch {
  display: flex; align-items: center; padding: 3px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.theme-switch-btn {
  flex: 1; min-height: 34px; padding: 0 12px; border: none; border-radius: 999px;
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--text-soft); background: transparent;
  transition: color .15s ease, background .15s ease;
  touch-action: manipulation; white-space: nowrap;
}
.theme-switch-btn:hover { color: var(--text); }
.theme-switch-btn[aria-pressed="true"] {
  background: var(--surface); color: var(--text); font-weight: 700;
  box-shadow: 0 1px 3px rgba(20, 24, 35, .08);
}
html[data-theme="dark"] .theme-switch-btn[aria-pressed="true"] {
  color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.drawer-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.drawer-section-title {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--text-soft);
  text-transform: none; letter-spacing: 0;
}
.drawer-carousel-nav { display: flex; gap: 6px; }
.drawer-carousel-nav[hidden] { display: none; }
.drawer-carousel-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center; padding: 0; touch-action: manipulation;
}
.drawer-carousel-btn .material-symbols-outlined { font-size: 22px; }
.drawer-scroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.drawer-scroll::-webkit-scrollbar { display: none; }
.drawer-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; transition: .15s;
}
.drawer-pill:hover { border-color: var(--brand); color: var(--brand); }
.drawer-pill--hot { background: var(--surface); }
.drawer-pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: 0 0 auto;
}
.drawer-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-pill--lg { padding: 12px 18px; font-size: 15px; }
.drawer-pill--lg .material-symbols-outlined { font-size: 20px; color: var(--brand); }
.drawer-pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-scroll--depts { gap: 8px; }
.drawer-dept {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-width: 108px; padding: 14px 12px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
  text-align: center; line-height: 1.25; text-transform: uppercase;
}
.drawer-dept .material-symbols-outlined { font-size: 22px; opacity: .9; }
.drawer-dept:hover { background: var(--brand-dark); color: #fff; }
.drawer-accordion { list-style: none; margin: 0; padding: 0; }
.drawer-acc-item { border-bottom: 1px solid var(--border); }
.drawer-acc-trigger, .drawer-acc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 0; font: inherit; font-size: 17px; font-weight: 800;
  color: var(--text); background: none; border: none; cursor: pointer; text-align: left;
  touch-action: manipulation;
}
.drawer-acc-link { text-decoration: none; }
.drawer-acc-trigger:hover, .drawer-acc-link:hover { color: var(--brand); }
.drawer-acc-icon { font-size: 24px; color: var(--text-soft); transition: transform .2s; }
.drawer-acc-item.is-open .drawer-acc-icon { transform: rotate(45deg); }
.drawer-acc-panel {
  padding: 0 0 14px 0; display: flex; flex-direction: column; gap: 2px;
}
.drawer-acc-panel[hidden] { display: none; }
.drawer-acc-panel a {
  display: block; padding: 9px 0 9px 12px; font-size: 15px; font-weight: 600;
  color: var(--text-soft); border-left: 2px solid var(--border);
}
.drawer-acc-panel a:hover { color: var(--brand); border-left-color: var(--brand); }
.drawer-acc-all { font-weight: 800 !important; color: var(--brand) !important; }
@media (min-width: 900px) {
  .drawer-overlay { max-width: 480px; box-shadow: var(--shadow-lg); }
}

/* Responsive: keep the rubric bar visible on mobile, swipe-scrollable (no arrows) */
@media (max-width: 760px) {
  .header-top-inner { min-height: 62px; padding: 8px 14px; }
  .header-logo img { height: 36px; }
  .pill.meteo { display: none; }
  .pill.info-redac { display: none; }
  .pill { padding: 8px 14px; font-size: 16px; }
  .nav-arrow { display: none; }
  .header-themes-scroll { justify-content: safe flex-start; padding: 4px 12px 9px; }
}

/* ---------- Layout ---------- */
main { padding: 0 0 10px; }

/* Full-width section bands; alternate ones get a 5%-primary tint. */
.band { padding: 26px 0; }
.band--tint { background: var(--band-tint); }
.band + .band { padding-top: 30px; }
.section-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 20px;
}
.section-title::before { content: ""; width: 5px; height: 22px; background: var(--brand); border-radius: 3px; }
.section-title .count { color: var(--text-soft); font-weight: 300; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--brand); background: rgba(205,0,0,.08);
  padding: 3px 9px; border-radius: 999px;
}
html[data-theme="dark"] .tag { background: rgba(254,189,1,.14); color: var(--accent); }
.card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0; color: var(--text-soft); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 10px; align-items: center; color: var(--text-soft); font-size: 12.5px; margin-top: auto; }
.meta .dot::before { content: "·"; margin: 0 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 26px;
  box-shadow: var(--shadow); min-height: 340px; display: flex; background: #111;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero .overlay {
  position: relative; margin-top: auto; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 60px 28px 26px; color: #fff;
}
.hero .tag { color: #fff; background: var(--brand); }
.hero h2 { margin: 8px 0 6px; font-size: 30px; line-height: 1.2; max-width: 760px; }
.hero .meta { color: rgba(255,255,255,.8); }
@media (max-width: 600px) { .hero h2 { font-size: 22px; } .hero { min-height: 260px; } }

/* Category page — hero article en une */
.cat-hero { min-height: 460px; margin-bottom: 30px; cursor: pointer; }
.cat-hero:hover img { opacity: .75; transition: opacity .3s; }
.cat-hero h2 { font-size: 34px; }
@media (max-width: 760px) { .cat-hero { min-height: 300px; } .cat-hero h2 { font-size: 24px; } }
.hero-chapo {
  font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.85);
  margin: 8px 0 0; font-weight: 300; max-width: 700px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Card-grid — image + titre, sans excerpt */
.card-grid .body { gap: 6px; }
.card-grid h3 { font-size: 15px; line-height: 1.38; }
.card-grid .meta { font-size: 12px; }

/* ---------- Rangée compacte à défilement horizontal (sections départements) ---------- */
.h-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 16px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
  padding: 2px 2px 14px; margin: 0 -2px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.h-scroll > * { scroll-snap-align: start; }
.h-scroll::-webkit-scrollbar { height: 8px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.h-scroll::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 600px) { .h-scroll { grid-auto-columns: 78%; } }

.hcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hcard-thumb { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; display: block; }
.hcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hcard-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-soft); font-size: 26px; }
.hcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.hcard-title {
  font-weight: 700; font-size: 14.5px; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hcard-title:hover { color: var(--brand); }
.hcard .meta { font-size: 12px; margin-top: auto; }

/* ---------- Rubriques thématiques : en-tête moderne + cartes « poster » ---------- */
.rubric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rubric-title { margin: 0; font-size: 22px; font-weight: 800; position: relative; padding-left: 14px; }
.rubric-title::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px;
  border-radius: 3px; background: var(--brand);
}
html[data-theme="dark"] .rubric-title::before { background: var(--accent); }
.rubric-title a:hover { color: var(--brand); }
.rubric-all { font-size: 13px; font-weight: 700; color: var(--text-soft); white-space: nowrap; flex: none; }
.rubric-all:hover { color: var(--brand); }
.rubric-all .arrow { color: var(--brand); }

.h-scroll--poster { grid-auto-columns: 220px; }
@media (max-width: 600px) { .h-scroll--poster { grid-auto-columns: 64%; } }

.pcard {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--text-soft); }
.pcard-shade { position: absolute; inset: 0; background: linear-gradient(transparent 28%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.85)); }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 15px; display: flex; flex-direction: column; gap: 6px; }
.pcard-title {
  font-weight: 700; font-size: 15px; line-height: 1.3; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard:hover .pcard-title { text-decoration: underline; text-underline-offset: 2px; }
.pcard-meta { font-size: 12px; color: rgba(255,255,255,.82); }

/* ---------- « Ma région » : filtre par département ---------- */
.region-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.region-chip {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.region-chip:hover { border-color: var(--brand); color: var(--brand); }
.region-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .region-chip:hover { border-color: var(--accent); color: var(--accent); }
html[data-theme="dark"] .region-chip.is-active { background: var(--accent); border-color: var(--accent); color: #111; }
.region-more { margin-top: 14px; }
.region-empty { color: var(--text-soft); padding: 22px 2px; margin: 0; }
.h-scroll.is-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }
@media (max-width: 600px) {
  /* puces défilables sur une ligne plutôt que repliées sur mobile */
  .region-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .region-filter::-webkit-scrollbar { display: none; }
  .region-chip { flex: none; }
}

/* ---------- Article page (2 columns) ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 26px; } }
.article-main { min-width: 0; max-width: 760px; }

/* Page catégorie en 2 colonnes (contenu + aside commun) */
.cat-main { min-width: 0; }
.cat-main .grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .cat-main .grid { grid-template-columns: 1fr; } }

.cat-label { display: inline-block; color: var(--brand); font-weight: 800; font-size: 15px;
  letter-spacing: .02em; margin-bottom: 6px; }
html[data-theme="dark"] .cat-label { color: var(--accent); }
.cat-label:hover { text-decoration: underline; }
.article-title { font-size: 38px; line-height: 1.15; margin: 4px 0 14px; font-weight: 800; letter-spacing: -.01em; }
.chapo { font-size: 21px; line-height: 1.5; color: var(--text-soft); margin: 0 0 22px; font-weight: 300; }
@media (max-width: 600px) { .article-title { font-size: 28px; } .chapo { font-size: 18px; } }

.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; flex-wrap: nowrap; }
.byline .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand);
  display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.byline .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.byline-text { display: flex; flex-direction: column; line-height: 1.4; flex: 1; min-width: 0; }
.byline-text strong { font-size: 15px; }
.byline-text span { font-size: 13px; color: var(--text-soft); }
a.byline-author-link { color: inherit; text-decoration: none; transition: color .12s; }
a.byline-author-link:hover { color: var(--brand); }
html[data-theme="dark"] a.byline-author-link:hover { color: var(--accent); }
.author-page-head {
  display: flex; align-items: center; gap: 20px; margin: 12px 0 28px;
}
.author-page-avatar {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  overflow: hidden; background: var(--brand); display: grid; place-items: center;
}
.author-page-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-page-avatar-fallback {
  font-size: 36px; font-weight: 800; color: #fff; line-height: 1;
}
.author-page-meta { min-width: 0; }
.author-page-title { margin: 0 0 6px; }
.author-page-count { margin: 0 0 8px; color: var(--text-soft); font-size: 15px; }
.author-page-bio { margin: 0; max-width: 760px; color: var(--text-soft); line-height: 1.55; }
.byline-actions { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.byline-share { flex: 0 0 auto; position: relative; }
/* Bouton « Ajoutez-nous en favori » (Google Actualités), au style identique au bouton Partager. */
.byline-fav-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 800;
  white-space: nowrap; transition: .15s; touch-action: manipulation;
}
.byline-fav-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
html[data-theme="dark"] .byline-fav-btn:hover { color: var(--accent); border-color: var(--accent); }
.byline-fav-g { flex: 0 0 auto; }
.byline-share-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 800;
  white-space: nowrap; transition: .15s; touch-action: manipulation;
}
.byline-share-btn .material-symbols-outlined { font-size: 20px; color: var(--brand); }
html[data-theme="dark"] .byline-share-btn .material-symbols-outlined { color: var(--accent); }
.byline-share-btn:hover, .byline-share-btn[aria-expanded="true"] {
  border-color: var(--brand); color: var(--brand); background: var(--surface);
}
html[data-theme="dark"] .byline-share-btn:hover,
html[data-theme="dark"] .byline-share-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.byline-share-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px 8px 8px;
}
.byline-share-menu[hidden] { display: none; }
.byline-share-menu-title {
  margin: 0 0 8px; padding: 0 8px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft);
}
.byline-share-list {
  list-style: none; margin: 0; padding: 0;
}
.byline-share-list li { margin: 0; padding: 0; }
.byline-share-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border: none; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; text-align: left;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
a.byline-share-item { text-decoration: none; }
.byline-share-icon-wrap {
  flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: var(--surface-2); color: var(--text);
}
.byline-share-icon { width: 18px; height: 18px; display: block; }
.byline-share-icon--done { display: none; }
.byline-share-item--copy .byline-share-icon--copy { display: block; }
.byline-share-item--copy.is-copied .byline-share-icon--copy { display: none; }
.byline-share-item--copy.is-copied .byline-share-icon--done { display: block; }
.byline-share-name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.2;
}
.byline-share-item:hover {
  background: var(--surface-2); color: var(--brand);
}
.byline-share-item:hover .byline-share-icon-wrap {
  background: var(--surface); color: var(--brand);
}
html[data-theme="dark"] .byline-share-item:hover { color: var(--accent); }
html[data-theme="dark"] .byline-share-item:hover .byline-share-icon-wrap { color: var(--accent); }
.byline-share-item--copy.is-copied { color: #1a7f4b; }
.byline-share-item--copy.is-copied .byline-share-icon-wrap {
  background: rgba(26, 127, 75, .12); color: #1a7f4b;
}
@media (max-width: 600px) {
  /* Le nom et les dates restent figés sur la 1re ligne ; les actions (favori +
     partager) basculent sur une ligne pleine largeur en dessous, sans décaler
     la byline. */
  .byline { flex-wrap: wrap; }
  .byline-actions { margin-left: 0; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .byline-share-menu { min-width: 200px; right: 0; }
}

.feat { position: relative; margin: 0 0 26px; }
.feat img { width: 100%; height: auto; display: block; border-radius: 8px;
  border-bottom: 5px solid var(--accent); background: var(--surface-2); }

/* ── Crédit photo (pastille i + panneau) ─────────────────────── */
.photo-credit {
  position: absolute; right: 12px; bottom: 17px; margin: 0; z-index: 2;
}
.photo-credit-btn {
  width: 26px; height: 26px; padding: 0;
  border: 1.5px solid rgba(255,255,255,.9); border-radius: 50%;
  background: rgba(15,18,28,.55); color: #fff;
  font: italic 600 15px/1 Georgia, 'Times New Roman', serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: background .15s, transform .15s;
}
.photo-credit-btn:hover,
.photo-credit.is-open .photo-credit-btn {
  background: rgba(15,18,28,.82); transform: scale(1.05);
}
.photo-credit-panel {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  min-width: 160px; max-width: min(300px, 70vw);
  padding: 8px 12px; border-radius: 8px;
  background: var(--surface); color: var(--text-soft);
  border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.14);
  font-size: 13px; line-height: 1.4; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s, visibility .15s, transform .15s;
  transform: translateY(4px);
}
.photo-credit:hover .photo-credit-panel,
.photo-credit.is-open .photo-credit-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.article-body { font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1.15em; }
/* Contenus intégrés larges : ne jamais dépasser la colonne (embeds, vidéos…). */
.article-body :where(iframe, video, embed, object) { max-width: 100%; }
/* Les tableaux larges défilent dans leur propre cadre plutôt que de casser la page. */
.article-body table { display: block; max-width: 100%; overflow-x: auto; }

/* ── Titres stylés (H2 / H3) ─────────────────────────────────── */
.article-body h2 {
  font-family: var(--font); font-weight: 800; font-size: 26px; line-height: 1.3;
  color: var(--text); margin: 1.8em 0 .7em; padding-bottom: .35em;
  position: relative;
}
.article-body h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 58px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.article-body h3 {
  font-family: var(--font); font-weight: 800; font-size: 20px; line-height: 1.35;
  color: var(--text); margin: 1.5em 0 .5em; padding-left: 13px;
  border-left: 4px solid var(--accent);
}
html[data-theme="dark"] .article-body h3 { border-left-color: var(--accent); }

.article-body img { border-radius: 10px; margin: 1.2em 0; height: auto; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="dark"] .article-body a { color: var(--accent); }
.article-body figure { position: relative; margin: 1.2em 0; }
.article-body figure img,
figure.feat > img { cursor: zoom-in; }
.article-body figure .figure-caption {
  margin: .55em 0 0; font-size: 15px; line-height: 1.45; color: var(--text-soft);
}
.article-body figure img + .figure-caption { margin-top: .65em; }

/* ── Lightbox image article (plein écran) ─────────────────────── */
body.article-lightbox-open { overflow: hidden; }
.article-lightbox {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 24px;
}
.article-lightbox[hidden] { display: none !important; }
.article-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, .94);
}
.article-lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.article-lightbox-close:hover { background: rgba(255,255,255,.22); }
.article-lightbox-inner {
  position: relative; z-index: 1;
  width: min(1200px, 96vw); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.article-lightbox-img {
  max-width: 100%; max-height: min(78vh, calc(100vh - 120px));
  width: auto; height: auto; object-fit: contain;
  border-radius: 4px; box-shadow: 0 12px 48px rgba(0,0,0,.45);
}
.article-lightbox-meta {
  width: 100%; margin-top: 14px; text-align: center;
  color: rgba(255,255,255,.88);
}
.article-lightbox-caption {
  margin: 0 0 6px; font-size: 13px; line-height: 1.45;
  font-weight: 400; color: rgba(255,255,255,.82);
}
.article-lightbox-caption[hidden],
.article-lightbox-credit[hidden] { display: none; }
.article-lightbox-credit {
  margin: 0; font-size: 12px; line-height: 1.4;
  letter-spacing: .02em; color: rgba(255,255,255,.58);
}

/* ── Citation en exergue (pull-quote) ────────────────────────── */
.article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) {
  position: relative; margin: 1.9em 0; padding: 22px 26px 22px 62px;
  background: var(--surface-2); border-left: 5px solid var(--brand);
  border-radius: 0 14px 14px 0;
  font-family: var(--font); font-size: 21px; font-weight: 600; font-style: italic;
  line-height: 1.5; color: var(--text);
}
.article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed)::before {
  content: "\201C"; position: absolute; left: 14px; top: 2px;
  font-family: Georgia, 'Times New Roman', serif; font-style: normal;
  font-size: 64px; line-height: 1; color: var(--accent);
}
.article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) p { margin: 0; }
.article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) p + p { margin-top: .55em; }
.article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) cite,
.article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) footer {
  display: block; margin-top: 14px; font-size: 14px; font-style: normal;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand);
}
html[data-theme="dark"] .article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) cite,
html[data-theme="dark"] .article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) footer { color: var(--accent); }

/* ── Intégrations sociales (tweets, Instagram, TikTok, Facebook…) ─ */
.article-body .article-embed:has(.twitter-tweet),
.article-body .article-embed:has(.instagram-media),
.article-body .article-embed:has(.tiktok-embed),
.article-body .article-embed:has(.fb-video),
.article-body .article-embed:has(.fb-post) {
  margin: 1.7em 0; overflow: visible; background: transparent; box-shadow: none;
}
.article-body blockquote.twitter-tweet,
.article-body blockquote.instagram-media,
.article-body blockquote.tiktok-embed {
  margin: 0; padding: 0; background: transparent; border: none; border-radius: 0;
  font-size: inherit; font-weight: normal; font-style: normal; line-height: inherit; color: inherit;
}
.article-body blockquote.twitter-tweet::before,
.article-body blockquote.instagram-media::before,
.article-body blockquote.tiktok-embed::before { content: none; }

/* Facebook / Reels verticaux — ratio natif, centré, sans rognage */
.article-body .article-embed--portrait {
  width: min(100%, var(--embed-w, 400px));
  max-width: 100%;
  margin: 1.7em auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.article-body .article-embed--portrait iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
}

/* Vidéos paysage (YouTube, Vimeo, Dailymotion…) — 16:9 responsive */
.article-body .article-embed:has(> iframe[src*="youtube.com"]),
.article-body .article-embed:has(> iframe[src*="youtube-nocookie.com"]),
.article-body .article-embed:has(> iframe[src*="vimeo.com"]),
.article-body .article-embed:has(> iframe[src*="dailymotion.com"]),
.article-body .article-embed--landscape {
  position: relative; width: 100%; margin: 1.7em 0;
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.article-body .article-embed:has(> iframe[src*="youtube.com"]) iframe,
.article-body .article-embed:has(> iframe[src*="youtube-nocookie.com"]) iframe,
.article-body .article-embed:has(> iframe[src*="vimeo.com"]) iframe,
.article-body .article-embed:has(> iframe[src*="dailymotion.com"]) iframe,
.article-body .article-embed--landscape iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Autres iframes (widgets, Facebook paysage…) — ratio conservé, pas de 16:9 forcé */
.article-body .article-embed:has(> iframe):not(.article-embed--portrait):not(.article-embed--landscape):not(:has(> iframe[src*="youtube.com"])):not(:has(> iframe[src*="youtube-nocookie.com"])):not(:has(> iframe[src*="vimeo.com"])):not(:has(> iframe[src*="dailymotion.com"])) {
  width: 100%;
  max-width: 100%;
  margin: 1.7em 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.article-body .article-embed:has(> iframe):not(.article-embed--portrait):not(.article-embed--landscape):not(:has(> iframe[src*="youtube.com"])):not(:has(> iframe[src*="youtube-nocookie.com"])):not(:has(> iframe[src*="vimeo.com"])):not(:has(> iframe[src*="dailymotion.com"])) iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
}
.article-body iframe { max-width: 100%; border-radius: 10px; }
@media (max-width: 600px) {
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) { font-size: 18px; padding: 18px 18px 18px 50px; }
  .article-body blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed)::before { font-size: 52px; left: 10px; }
}

.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 8px;
  padding-top: 22px; border-top: 1px solid var(--border); justify-content: center; }
.article-tags a { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--brand); border: 1px solid var(--border); background: var(--surface);
  padding: 7px 16px; border-radius: 999px; }
.article-tags a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
html[data-theme="dark"] .article-tags a { color: var(--accent); }

/* Sujets (étiquettes / tags) — sous l'article */
.article-topics { margin: 18px 0 8px; }
.article-topics-label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-soft); margin-bottom: 10px; }
.article-topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px; transition: background .12s, color .12s, border-color .12s; }
.topic-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.topic-chip-count { font-size: 11px; font-weight: 700; color: var(--text-soft);
  background: var(--surface); border-radius: 999px; padding: 1px 7px; }
.topic-chip:hover .topic-chip-count { color: var(--brand); background: #fff; }

/* Nuage de sujets (/tags) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-title-hash { color: var(--accent); margin-right: 1px; }

.share { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; flex-wrap: wrap; }
.share-label { font-weight: 700; font-size: 13px; color: var(--text-soft); }
.share a { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); }
.share a:hover { border-color: var(--brand); color: var(--brand); }

/* FIL INFO 24/7 sidebar widget */
.article-aside { position: sticky; top: 172px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 980px) { .article-aside { position: static; } }
.filinfo {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.filinfo-head {
  background: var(--accent);
  color: #1a1205; font-weight: 800; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; padding: 10px 12px; display: flex; align-items: center; gap: 8px;
}
.filinfo-head b { font-weight: 800; color: var(--brand); }
.filinfo-head::after {
  content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 0 rgba(205, 0, 0, .45);
  animation: filinfo-live 1.8s ease-out infinite;
}
@keyframes filinfo-live {
  0% { box-shadow: 0 0 0 0 rgba(205, 0, 0, .5); }
  70% { box-shadow: 0 0 0 7px rgba(205, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(205, 0, 0, 0); }
}
.filinfo-clock { color: var(--brand); flex: 0 0 auto; width: 18px; height: 18px; }
.filinfo-list {
  list-style: none; margin: 0; padding: 6px 8px 8px;
  max-height: min(520px, 62vh); overflow-y: auto; scrollbar-width: thin;
}
.filinfo-list::-webkit-scrollbar { width: 5px; }
.filinfo-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.filinfo-list li { border-bottom: 1px solid var(--border); }
.filinfo-list li:last-child { border-bottom: none; }
.filinfo-link {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 8px 6px; color: inherit; text-decoration: none; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.filinfo-link:hover { background: var(--surface-2); color: var(--brand); }
html[data-theme="dark"] .filinfo-link:hover { color: var(--accent); }
.filinfo-list time {
  display: inline-flex; align-items: center; justify-content: center; align-self: start;
  min-height: 24px; padding: 3px 5px; border-radius: 6px;
  background: rgba(205, 0, 0, .08); color: var(--brand);
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: .02em; line-height: 1;
}
html[data-theme="dark"] .filinfo-list time {
  background: rgba(254, 189, 1, .14); color: var(--accent);
}
.filinfo-title {
  font-size: 13px; font-weight: 600; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.filinfo-list li.is-latest .filinfo-link {
  background: linear-gradient(90deg, rgba(205, 0, 0, .06), transparent 70%);
}
.filinfo-list li.is-latest .filinfo-title { font-weight: 800; }
.filinfo-list li.is-latest time { background: var(--brand); color: #fff; }
html[data-theme="dark"] .filinfo-list li.is-latest time { background: var(--accent); color: #1a1205; }
/* Séparateur de jour : « Aujourd'hui » / « Hier » / date */
.filinfo-list li.filinfo-day {
  border-bottom: none; padding: 11px 6px 3px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft);
}
.filinfo-list li.filinfo-day:first-child { padding-top: 4px; }

/* ---------- Encart météo (accueil, sous le fil info) ---------- */
.wx { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.wx-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 14px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #2f6df0 0%, #4f93f7 55%, #7cc4fb 100%);
  transition: filter .15s;
}
.wx-card:hover { filter: brightness(1.04); }
.wx-icon, .wx-text, .wx-temp { transition: opacity .18s ease; }
.wx-card.is-fading .wx-icon,
.wx-card.is-fading .wx-text,
.wx-card.is-fading .wx-temp { opacity: .2; }
.wx-icon { display: inline-flex; color: #fff; }
.wx-icon .wx-i { width: 40px; height: 40px; }
.wx-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.wx-dept { font-size: 19px; font-weight: 800; line-height: 1.1; }
.wx-sub { font-size: 12.5px; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-temp { font-size: 26px; font-weight: 300; letter-spacing: -.01em; }
.wx-chevron { font-size: 22px; line-height: 1; color: rgba(255,255,255,.85); }
.wx-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px;
  background: var(--surface); color: var(--text); font-weight: 800; font-size: 13.5px; text-decoration: none;
  transition: background .15s, color .15s;
}
.wx-pin { color: var(--brand); flex: 0 0 auto; }
.wx-cta .arrow { color: var(--brand); }
.wx-cta:hover { background: var(--surface-2); color: var(--brand); }

/* ---------- Bannière promo météo (corps d'article) ---------- */
.meteo-promo {
  display: flex; flex-direction: column; gap: 14px;
  margin: 1.2em 0 1.35em; padding: 18px 18px 16px;
  border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #1d4f9b 0%, #2f6df0 52%, #5ea8f8 100%);
  box-shadow: 0 8px 28px rgba(29, 79, 155, .22);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.meteo-promo:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 12px 32px rgba(29, 79, 155, .28); }
.meteo-promo-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.meteo-promo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.14); font-size: 30px;
}
.meteo-promo-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meteo-promo-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.meteo-promo-title { font-size: clamp(16px, 2.4vw, 19px); font-weight: 800; line-height: 1.25; }
.meteo-promo-sub { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.9); }
.meteo-promo-features { display: flex; flex-wrap: wrap; gap: 8px; }
.meteo-promo-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); font-size: 11.5px; font-weight: 700;
}
.meteo-promo-pill .material-symbols-outlined { font-size: 15px; }
.meteo-promo-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 10px;
  background: #fff; color: #1d4f9b; font-size: 14px; font-weight: 800;
}
.meteo-promo-arrow { font-size: 20px; line-height: 1; }
html[data-theme="dark"] .meteo-promo-cta { background: #fff; color: #1d4f9b; }
.article-body .meteo-promo,
.article-body .meteo-promo:hover { text-decoration: none; color: #fff; }
.article-body .meteo-promo-cta,
.article-body .meteo-promo-cta:hover { text-decoration: none; color: #1d4f9b; }
@media (max-width: 560px) {
  .meteo-promo { padding: 16px 14px 14px; gap: 12px; }
  .meteo-promo-main { gap: 12px; }
  .meteo-promo-icon { width: 46px; height: 46px; font-size: 26px; }
}

/* ---------- Encarts latéraux (Info trafic, etc.) ---------- */
.aside-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin-top: 16px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.aside-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.aside-card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 11px; flex: 0 0 auto;
}
.aside-card--traffic .aside-card-icon { color: #e8730c; background: rgba(232, 115, 12, .12); }
html[data-theme="dark"] .aside-card--traffic .aside-card-icon { background: rgba(232, 115, 12, .2); }
.aside-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aside-card-title { font-size: 16px; font-weight: 800; line-height: 1.15; }
.aside-card-sub { font-size: 12.5px; color: var(--text-soft); line-height: 1.3; }
.aside-card-chevron { font-size: 22px; line-height: 1; color: var(--text-soft); }
.aside-card:hover .aside-card-chevron { color: var(--brand); }

/* ---------- Encart promo application mobile ---------- */
.app-promo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px; border-radius: 14px; box-shadow: var(--shadow);
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #CD0000 0%, #e23a2e 100%);
  transition: filter .15s;
}
.app-promo:hover { filter: brightness(1.04); }
.app-promo-icon img { display: block; width: 48px; height: 48px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.app-promo-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.app-promo-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.app-promo-title { font-size: 15px; font-weight: 800; line-height: 1.2; }
.app-promo-sub { font-size: 12px; color: rgba(255,255,255,.9); line-height: 1.3; }
.app-promo-cta {
  flex: 0 0 auto; align-self: center; padding: 7px 12px; border-radius: 999px;
  background: #fff; color: var(--brand); font-size: 12.5px; font-weight: 800; white-space: nowrap;
}

.app-box { background: var(--accent); border-radius: 12px; padding: 18px 20px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); }
.app-box strong { display: block; color: #1a1205; font-size: 18px; font-weight: 800; }
.app-box span { color: #5a4502; font-size: 13px; }
.app-btn { background: var(--brand); color: #fff !important; font-weight: 800; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.app-box:hover .app-btn { background: var(--brand-dark); }

.breadcrumb { font-size: 13px; color: var(--text-soft); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 700;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------- Le Parisien-inspired homepage ---------- */
/* Kicker (overline rubric above headlines) */
.kicker { color: var(--brand); font-weight: 800; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.2; }
html[data-theme="dark"] .kicker { color: var(--accent); }

/* En ce moment (trending topics) — tout sur une seule ligne (défilement horizontal) */
.trending { display: flex; align-items: center; gap: 9px; flex-wrap: nowrap; margin: 0 0 24px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trending::-webkit-scrollbar { display: none; }
.trending-label { flex: 0 0 auto; font-weight: 800; font-size: 12px; text-transform: uppercase;
  color: var(--text-soft); letter-spacing: .04em; margin-right: 2px; }
.trending a { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 7px 15px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); white-space: nowrap; transition: .15s; }
.trending a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 600px) { .trending-label { display: none; } }

/* Une (lead story) + fil en continu */
.home-top { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 34px; align-items: start; margin-bottom: 8px; }
@media (max-width: 900px) { .home-top { grid-template-columns: 1fr; gap: 26px; } }
.une-col { min-width: 0; }
.une .kicker { font-size: 13px; display: block; margin-top: 13px; }
.une-title { font-size: 35px; line-height: 1.12; margin: 6px 0 0; font-weight: 800; letter-spacing: -.012em; }
.une-title a:hover { color: var(--brand); }
.une-img { display: block; border-radius: 10px; overflow: hidden; border-bottom: 5px solid var(--accent);
  background: var(--surface-2); }
.une-img img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.une-chapo { font-size: 18px; line-height: 1.55; color: var(--text-soft); font-weight: 300; margin: 12px 0 0; }
.une .meta { margin-top: 12px; }

/* Secondary headlines — compact cards that read as part of the lead unit */
.une-subs { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.une-sub { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.une-sub-thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--surface-2); }
.une-sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.une-sub-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px; color: var(--text-soft); }
.une-sub-body { display: flex; flex-direction: column; gap: 5px; }
.une-sub .kicker { font-size: 11px; }
.une-sub-title { font-weight: 700; font-size: 15px; line-height: 1.34; }
.une-sub-title:hover { color: var(--brand); }
@media (max-width: 600px) {
  .une-title { font-size: 26px; }
  .une-subs { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Section headers (title + arrow + accent rule) */
.sec-head { display: flex; align-items: center; gap: 16px; margin: 2px 0 18px; }
.sec-head h2 { margin: 0; font-size: 23px; font-weight: 800; white-space: nowrap; }
.sec-head h2 a:hover { color: var(--brand); }
.sec-head .arrow { color: var(--brand); }
.sec-head .sec-line { flex: 1; height: 3px; background: var(--brand); border-radius: 2px; opacity: .9; }

/* Les plus lus (numbered) */
.most-read { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
@media (max-width: 820px) { .most-read { grid-template-columns: 1fr; } }
.most-read li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); min-width: 0; }
.most-read .num { font-size: 34px; font-weight: 800; line-height: .9; color: var(--border); min-width: 24px; flex: none; }
html[data-theme="dark"] .most-read .num { color: var(--surface-2); }
.most-read .mr-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.most-read .mr-thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9;
  width: 104px; flex: 0 0 104px; background: var(--surface-2); margin-bottom: 3px; }
.most-read .mr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.most-read .mr-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.most-read .mr-title:hover { color: var(--brand); }

/* Article sidebar : Les plus lus */
.side-popular {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.side-popular-head {
  margin: 0; padding: 12px 16px; font-size: 15px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; background: var(--accent); color: #1a1205;
  border-bottom: 2px solid rgba(205, 0, 0, .12);
}
.side-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.side-popular-list { list-style: none; margin: 0; padding: 8px 14px 12px; }
.side-popular-item { border-bottom: 1px solid var(--border); }
.side-popular-item:last-child { border-bottom: none; }
.side-popular-link {
  display: block; position: relative; color: inherit; text-decoration: none;
  padding: 11px 0 11px 32px; transition: color .15s ease;
}
.side-popular-link:hover { color: var(--brand); }
html[data-theme="dark"] .side-popular-link:hover { color: var(--accent); }
.side-popular-num {
  position: absolute; left: 0; top: 11px; font-size: 18px; font-weight: 800; line-height: 1;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .side-popular-num { color: var(--accent); }
.side-popular-title {
  display: block; font-weight: 700; font-size: 14px; line-height: 1.38;
}
/* N°1 : grand chiffre qui chevauche le titre */
.side-popular-item.is-featured { border-bottom-width: 2px; }
.side-popular-item.is-featured .side-popular-thumb {
  display: block; margin: 0 -14px 10px; border-radius: 0; overflow: hidden;
  aspect-ratio: 16/9; background: var(--surface-2);
}
.side-popular-item.is-featured .side-popular-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.side-popular-item.is-featured .side-popular-link {
  padding: 4px 0 14px 0; min-height: 52px;
}
.side-popular-item.is-featured .side-popular-num {
  left: -4px; top: 50%; transform: translateY(-58%);
  font-size: clamp(52px, 14vw, 72px); font-weight: 800; line-height: .82;
  color: var(--brand); opacity: .22; letter-spacing: -.04em; z-index: 0;
  pointer-events: none;
}
html[data-theme="dark"] .side-popular-item.is-featured .side-popular-num {
  color: var(--accent); opacity: .28;
}
.side-popular-item.is-featured .side-popular-title {
  position: relative; z-index: 1; padding-left: 38px;
  font-size: 16px; line-height: 1.32; font-weight: 800;
}
.side-popular-item.is-featured .side-popular-link:hover .side-popular-num {
  opacity: .32;
}

/* "Voir plus" link */
.more-link { display: inline-block; font-weight: 800; color: var(--brand); border: 2px solid var(--brand);
  padding: 11px 24px; border-radius: 999px; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; transition: .15s; }
.more-link:hover { background: var(--brand); color: #fff; }
html[data-theme="dark"] .more-link { color: var(--accent); border-color: var(--accent); }
html[data-theme="dark"] .more-link:hover { background: var(--accent); color: #1a1205; }

/* ---------- Footer ---------- */
footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0; }
footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
footer a { font-size: 14px; color: var(--text-soft); line-height: 2; }
footer a:hover { color: var(--brand); }
footer .legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--text-soft); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 540px; }
.footer-tags a { background: var(--surface-2); padding: 4px 10px; border-radius: 999px; font-size: 12.5px; }

/* ---------- Publicité (emplacements) ---------- */
.ad-slot { margin: 22px 0; text-align: center; max-width: 100%; }
.ad-slot-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 6px; }
.ad-slot-img { display: inline-block; line-height: 0; max-width: 100%; }
.ad-slot-img img { max-width: 100%; height: auto; border-radius: 6px; }
/* Conteneur iframe/AdSense : overflow:hidden empêche le défilement horizontal
   causé par les <ins> AdSense plus larges que le viewport sur mobile.
   width:100% + max-width:100% : force le conteneur à ne jamais dépasser
   son parent (les règles sur :is(iframe,img) ne contraignent pas l'<ins> lui-même). */
.ad-slot-frame { display: flex; justify-content: center; overflow: hidden; width: 100%; max-width: 100%; }
.ad-slot-frame :is(iframe, img, ins) { max-width: 100% !important; border: 0; min-width: 0; }
.ad-slot--sidebar { margin-top: 0; }
/* La bande publicitaire elle-même est clippée pour absorber tout dépassement résiduel
   des scripts Google injectés dynamiquement après le rendu. */
.ad-band { overflow: hidden; }
.ad-band .wrap { max-width: 1220px; }
.ad-slot--mega-banner-google,
.ad-slot--mega-banner-2,
.ad-slot--mega-banner-interne,
.ad-slot--meteo { margin: 0; }
.ad-slot--mega-banner-google .ad-slot-frame,
.ad-slot--mega-banner-2 .ad-slot-frame,
.ad-slot--mega-banner-interne .ad-slot-frame { min-height: 250px; }
.ad-slot--mega-banner-google ins.adsbygoogle,
.ad-slot--mega-banner-2 ins.adsbygoogle,
.ad-slot--mega-banner-interne ins.adsbygoogle { display: block; min-height: 250px; width: 100%; }
.ad-slot--in-content { margin: 28px 0; }
.ad-slot--in-content .ad-slot-frame { justify-content: center; }

/* ---------- Empty / misc ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty .big { font-size: 56px; margin-bottom: 10px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Badge « EN DIRECT » (mode direct) ───────────────────────────────────── */
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: #CD0000; color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.live-pill .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite; }
/* Variante superposée sur une vignette (coin haut-gauche). */
.live-overlay { position: absolute; top: 8px; left: 8px; z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); }
/* Conteneurs de vignettes recevant le badge en superposition. */
.card .thumb, .une-img, .hcard-thumb, .une-sub-thumb { position: relative; }

/* ── Lecteur audio de l'article (version vocale, sous l'image à la une) ──
   Bouton play minimal aux couleurs du site. Affiché seulement quand la
   version audio est prête (audio_status = ready). */
.art-audio {
  display: flex; align-items: center; gap: 12px;
  margin: -14px 0 26px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.06));
}
.art-audio-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
}
.art-audio-btn:hover { background: var(--brand-dark); }
.art-audio-btn:active { transform: scale(.94); }
.art-audio-btn svg { width: 22px; height: 22px; display: block; }
.art-audio-btn .ico-pause { display: none; }
.art-audio.is-playing .art-audio-btn .ico-play  { display: none; }
.art-audio.is-playing .art-audio-btn .ico-pause { display: block; }
.art-audio-main { flex: 1 1 auto; min-width: 0; }
.art-audio-label {
  font-size: 13px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
}
.art-audio-label .material-symbols-outlined { font-size: 17px; color: var(--brand); }
html[data-theme="dark"] .art-audio-label .material-symbols-outlined { color: var(--accent); }
.art-audio-bar {
  height: 6px; border-radius: 4px; background: var(--border);
  cursor: pointer; position: relative; overflow: hidden;
}
.art-audio-prog {
  position: absolute; inset: 0 100% 0 0; background: var(--brand);
  border-radius: 4px; transition: right .1s linear;
}
.art-audio-time {
  flex: 0 0 auto; font-size: 12px; color: var(--text-soft);
  font-variant-numeric: tabular-nums; min-width: 38px; text-align: right;
}
.art-audio-link {
  flex: 0 0 auto; color: var(--text-soft); display: flex; align-items: center;
}
.art-audio-link:hover { color: var(--brand); }
.art-audio-link .material-symbols-outlined { font-size: 20px; }
@media (max-width: 460px) { .art-audio-time { display: none; } }
