/* ============ 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; }
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;
}
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); }

/* 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; }
#menuBtn { justify-self: start; }
.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; }

/* Row 2 — red bar: thematic rubrics, centered */
/* Row 2 : single-line, horizontally scrollable with chevron arrows */
.header-themes { background: var(--brand); border-top: 1px solid rgba(255,255,255,.18); 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) { .region-panel { min-width: 280px; } .region-grid { grid-template-columns: 1fr 1fr; } }

/* 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 { 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; } }

/* ---------- 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; }

.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); }
.byline-share { margin-left: auto; flex: 0 0 auto; position: relative; }
.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) {
  .byline-share-label { display: none; }
  .byline-share-btn { padding: 9px 12px; }
  .byline-share-menu { min-width: 200px; right: 0; }
}

.feat { 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); }
.feat figcaption { font-size: 13px; color: var(--text-soft); margin-top: 8px; line-height: 1.4; }

.article-body { font-size: 18px; line-height: 1.75; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-size: 25px; margin: 1.4em 0 .5em; }
.article-body h3 { font-size: 20px; margin: 1.3em 0 .5em; }
.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 { margin: 1.2em 0; }
.article-body figcaption { font-size: 14px; color: var(--text-soft); text-align: center; margin-top: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--accent); margin: 1.2em 0; padding: 6px 18px; color: var(--text-soft);
  background: var(--surface-2); border-radius: 0 8px 8px 0;
}
.article-body iframe { max-width: 100%; border-radius: 10px; }
@media (max-width: 600px) { .article-body { font-size: 17px; } }

.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); }

.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; }

.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) */
.trending { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 24px;
  padding-bottom: 20px; border-bottom: 2px solid var(--border); }
.trending-label { font-weight: 800; font-size: 12px; text-transform: uppercase; color: var(--text-soft);
  letter-spacing: .04em; margin-right: 2px; }
.trending a { 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); }

/* 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; }
.une-title { font-size: 35px; line-height: 1.12; margin: 7px 0 15px; 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: 15px 0 0; }
.une-subs { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 13px; }
.une-subs li { position: relative; padding-left: 17px; }
.une-subs li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px;
  background: var(--brand); border-radius: 2px; }
.une-subs a { font-weight: 700; font-size: 16px; line-height: 1.35; }
.une-subs a:hover { color: var(--brand); }
@media (max-width: 600px) { .une-title { font-size: 26px; } }

/* 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, 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); }
.most-read .num { font-size: 34px; font-weight: 800; line-height: .9; color: var(--border); min-width: 24px; }
html[data-theme="dark"] .most-read .num { color: var(--surface-2); }
.most-read .mr-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.most-read .mr-thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9;
  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; }

/* ---------- 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; } }
