
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { overflow-x: hidden; }

:root {
  --bg: #f5f5f4;
  --paper: #fafaf9;
  --ink: #0a0a0a;
  --ink-2: #171717;
  --muted: #78716c;
  --border: rgba(0,0,0,.07);
  --border-strong: rgba(0,0,0,.13);
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-pale: #eff6ff;
  --blue-mid: #bfdbfe;
  --surface: #ffffff;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.05), 0 10px 15px -3px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.08), 0 20px 50px -12px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

/* ── MASTHEAD ── */
.masthead {
  background: #000918;
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  color: #fff;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #111c30;
  z-index: 200;
}
.masthead-inner {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
}
.mast-logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.4px;
  flex-shrink: 0;
}
.mast-logo em { color: var(--blue); font-style: normal; }
.mast-logo-img { height: 38px; width: auto; display: block; }
.mast-tagline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  padding-left: 16px;
  margin-left: 14px;
  border-left: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mast-nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
.mast-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all .2s;
}
.mast-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mast-nav a.active { color: #fff; font-weight: 600; background: rgba(255,255,255,.1); }
.nav-sep { display: none; }
.mast-right { display: flex; align-items: center; gap: 6px; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); }

/* Search icon button in masthead */
.mast-icon-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.mast-icon-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.mast-icon-btn.active { color: var(--blue); background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); }
.push-btn.active { color: #f59e0b; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.25); }
.push-btn.active:hover { background: rgba(245,158,11,.2); }

/* Full-width search overlay inside masthead */
.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(8,8,8,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1);
  z-index: 10;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.search-overlay-inner {
  max-width: 1030px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-overlay-icon {
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  outline: none;
  padding: 8px 0;
}
.search-overlay-input::placeholder { color: rgba(255,255,255,.3); }
.search-overlay-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.search-overlay-close:hover { color: #fff; background: rgba(255,255,255,.1); }

.mast-hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 7px 9px;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  margin-left: 8px;
}
.mast-hamburger:hover { background: rgba(255,255,255,.07); }
/* Toggle du méga-menu — mis en évidence (pilule avec libellé) */
.mast-hamburger-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: #000918;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  padding: 8px 14px 8px 12px;
  cursor: pointer;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .2s, border-color .2s, transform .2s;
}
.mast-hamburger-left:hover { background: #0a1530; border-color: rgba(255,255,255,.3); }
.mast-hamburger-left .icon-x { display: none; }
.mast-hamburger-label { line-height: 1; }
body.menu-open .mast-hamburger-left { background: var(--red); border-color: var(--red); }
body.menu-open .mast-hamburger-left:hover { background: #c60f28; }
body.menu-open .mast-hamburger-left .icon-burger { display: none; }
body.menu-open .mast-hamburger-left .icon-x { display: inline; }
/* ── Méga-menu (plein écran, déroulé sous le header) ── */
#menu-backdrop {
  position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
  background: rgba(0,5,15,.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 300;
}
#menu-backdrop.open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.mega-menu {
  position: fixed; top: 62px; left: 0; right: 0;
  background: linear-gradient(180deg, #04112a 0%, #00081a 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 55px rgba(0,0,0,.45);
  z-index: 301;
  max-height: calc(100vh - 62px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .28s ease, transform .34s cubic-bezier(.22,.61,.36,1), visibility .28s ease;
}
.mega-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: 1030px; margin: 0 auto; padding: 30px 32px 26px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.mega-main { min-width: 0; display: flex; flex-direction: column; }

.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 40px; }
.menu-group { min-width: 0; }
.menu-label {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em;
  color: rgba(255,255,255,.34); padding: 6px 12px 8px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mega-cols a {
  display: flex; align-items: center;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.74); text-decoration: none;
  padding: 7px 12px; border-radius: 10px;
  transition: color .18s, background .18s, padding .18s;
}
.mega-cols a .menu-arrow { margin-left: auto; opacity: 0; transform: translateX(-5px); transition: opacity .18s, transform .18s; }
.mega-cols a:hover { color: #fff; background: rgba(255,255,255,.06); padding-left: 16px; }
.mega-cols a:hover .menu-arrow { opacity: .5; transform: translateX(0); }
.mega-cols a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(225,18,46,.22), rgba(225,18,46,.02));
  box-shadow: inset 3px 0 0 var(--red);
}
.mega-cols a.active .menu-arrow { opacity: .7; transform: translateX(0); color: var(--red); }

.menu-foot {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.menu-social { display: flex; gap: 10px; }
.menu-social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.6); transition: all .2s;
}
.menu-social a:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-2px); border-color: rgba(255,255,255,.2); }

.menu-dark {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.6); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: color .2s;
}
.menu-dark:hover { color: #fff; }

/* Panneau « à la une » du méga-menu */
.mega-feature { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mm-card { display: block; border-radius: 14px; text-decoration: none; }
.mm-kicker { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: rgba(255,255,255,.42); }
.mm-match {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  padding: 15px 18px 16px; transition: border-color .2s, background .2s;
}
a.mm-match:hover { border-color: rgba(225,18,46,.55); background: rgba(255,255,255,.06); }
.mm-match-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 13px 0 11px; }
.mm-team { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 13px; }
.mm-team img { width: 32px; height: 32px; object-fit: contain; }
.mm-vs { color: rgba(255,255,255,.4); font-weight: 800; font-size: 13px; }
.mm-vs.mm-score { color: #fff; font-size: 18px; letter-spacing: .01em; }
.mm-when { text-align: center; font-size: 11.5px; color: rgba(255,255,255,.55); }
.mm-article {
  position: relative; min-height: 172px;
  background-size: cover; background-position: center bottom; background-color: #04112a;
  border: 1px solid rgba(255,255,255,.09);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 16px; gap: 6px; overflow: hidden;
}
.mm-article:hover { border-color: rgba(255,255,255,.22); }
.mm-kicker-light { color: rgba(255,255,255,.9); }
.mm-article-title { color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.32; }

@media (max-width: 860px) {
  .mega-inner { grid-template-columns: 1fr; gap: 24px; }
  .menu-foot { margin-top: 22px; }
  .mega-feature { flex-direction: row; }
  .mega-feature > * { flex: 1; }
}
@media (max-width: 720px) {
  #menu-backdrop, .mega-menu { top: 60px; }
  .mega-menu { max-height: calc(100vh - 60px); }
  .mega-inner { padding: 18px 16px 20px; }
  .mega-cols { grid-template-columns: 1fr; gap: 0; }
  .menu-group + .menu-group { margin-top: 16px; }
  .mega-feature { flex-direction: column; }
}
.mobile-dark-switch {
  width: 42px; height: 24px; border-radius: 12px;
  background: rgba(255,255,255,.15); position: relative;
  transition: background .2s;
}
.mobile-dark-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; position: absolute; top: 3px; left: 3px;
  transition: transform .2s;
}
[data-theme="dark"] .mobile-dark-switch { background: var(--blue); }
[data-theme="dark"] .mobile-dark-dot { transform: translateX(18px); }

/* Sub-nav bar for non-SPA pages — mirrors .toolbar style */
.sub-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 100;
}
.sub-nav-inner {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
}
.sub-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  padding: 4px 14px 3px 0px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: none;
  transition: all .2s;
  margin: 8px 0;
  letter-spacing: -.01em;
}
.sub-nav-back:hover { background: var(--blue-pale); border-color: var(--blue-mid); }
.sub-nav-back svg { flex-shrink: 0; opacity: .7; }
/* Sub-nav article meta (replaces "< Articles" on article pages) */
.sub-nav-meta {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0; font-size: 13px; font-family: var(--sans);
  min-width: 0;
}
.sub-nav-back-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--blue); text-decoration: none; flex-shrink: 0;
  transition: background .15s;
}
.sub-nav-back-arrow:hover { background: var(--blue-pale); }
.sub-nav-source {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.sub-nav-source:hover { color: var(--blue); }
.sub-nav-sep { color: var(--border-strong); font-size: 11px; flex-shrink: 0; }
.sub-nav-info { color: var(--muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--border-strong); font-size: 14px; }
.breadcrumb-current {
  color: var(--ink-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Share buttons */
.share-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.share-label {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.share-btn:hover { color: var(--ink); border-color: var(--border-strong); background: var(--bg); }
.share-btn.copied { color: #16a34a; border-color: #86efac; background: #f0fdf4; }

[data-theme="dark"] .sub-nav-back { color: var(--blue); }
[data-theme="dark"] .sub-nav-source { color: var(--ink); }
[data-theme="dark"] .sub-nav-back-arrow { color: var(--blue); }
[data-theme="dark"] .share-btn { border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.5); }
[data-theme="dark"] .share-btn:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
[data-theme="dark"] .share-label { color: rgba(255,255,255,.35); }
[data-theme="dark"] .sub-nav-back:hover { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.25); }
[data-theme="dark"] .share-btn { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
[data-theme="dark"] .share-btn:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .share-btn.copied { color: #4ade80; border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.1); }

.mast-refresh {
  background: rgba(59,130,246,.1);
  border: none;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.mast-refresh:hover { background: rgba(59,130,246,.2); transform: scale(1.05); }
.mast-refresh svg { transition: transform .7s ease; }
.mast-refresh.spin svg { transform: rotate(360deg); }

/* ── TOOLBAR (filters + search) ── */
.toolbar {
  background: #000918;
  border-bottom: 1px solid #111c30;
  position: sticky;
  top: 62px;
  z-index: 100;
  color: rgba(255,255,255,.7);
}

/* Filters + search + view toggle */
.toolbar-filters-row {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.toolbar-filters-row::-webkit-scrollbar { display: none; }

.filter-section { display: flex; align-items: center; gap: 4px; padding: 8px 0; flex-shrink: 0; }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 10px;
}


.filter-sep { width: 1px; height: 14px; background: rgba(255,255,255,.12); margin: 0 10px; flex-shrink: 0; }
.ftab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  padding: 6px 16px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  background: none;
  transition: all .2s;
  letter-spacing: -.01em;
}
.ftab:hover { color: #fff; background: rgba(255,255,255,.08); }
.ftab.active { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.15); font-weight: 600; box-shadow: none; }
.ftab[data-cat="TOUS"].active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ftab[data-cat="IA"].active   { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.ftab[data-cat="Web"].active  { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.ftab[data-cat="DevOps"].active { background: #dcfce7; color: #15803d; border-color: #86efac; }
.ftab[data-cat="Programmation"].active { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.ftab[data-cat="Cloud"].active { background: #cffafe; color: #0e7490; border-color: #67e8f9; }
.ftab[data-cat="Cybersécurité"].active { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
/* subcats row */
.subcat-bar {
  display: none;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.subcat-bar.visible { display: flex; }
.subcat-bar::-webkit-scrollbar { display: none; }
.sctab {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  letter-spacing: .01em;
}
.sctab:hover { color: var(--ink); }
.sctab.active { color: var(--sc-color, var(--blue)); border-bottom-color: var(--sc-color, var(--blue)); }

.src-select {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 7px 28px 7px 14px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all .2s;
}
.src-select:hover, .src-select:focus { color: #fff; border-color: var(--blue); background: rgba(255,255,255,.1); }
.src-select option { background: #fff; color: #222; }

/* ── HERO DARK BACKDROP (fond sombre qui déborde du header sur les cartes) ── */
#articles-page { position: relative; }

#articles-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 280px;
  background: #000918;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] 
#articles-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 280px;
  background: rgba(255,255,255,.06);
  z-index: 0;
  pointer-events: none;
}
#articles-page .layout { position: relative; z-index: 1; }
.list-view#articles-page::before,
.no-hero#articles-page::before { display: none; }

/* ── LAYOUT ── */
.layout {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 28px 50px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── HERO CARD ── */
/* ── HERO ROW (4 cartes style Futura) ── */
.hero-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.hero-card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  min-height: 420px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(1 17 36) 0%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .5) 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
}
.hero-top { display: flex; align-items: center; gap: 8px; }
.hero-chip {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.18); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-bottom { margin-top: auto; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.badge-new {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 3px 9px;
  border-radius: 2px;
}
.badge-recent { background: var(--ink-2); }
.cat-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
    font-family: var(--sans);
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 0px 8px;
    border-radius: 5px;
    border: 2px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-2);
}

.hero-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-src-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7);
}
.hero-src-row .src-fav { width: 14px; height: 14px; border-radius: 3px; }
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-mid) 100%);
}

/* ── TRENDING TOP 3 (bande sombre style Futura) ── */
.trending-band {
  background: #141418;
  padding: 38px 0 46px;
  margin: 10px 0 40px;
}
.trending-band-inner {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 28px;
}
.trending-band .sec-hd {
  justify-content: center; padding: 0 0 10px; margin: 0;
}
.trending-band .sec-hd h2 {
  color: #fff; font-size: 30px; font-weight: 800;
}
.trending-row-wrap { position: relative; }
.trend-arrow {
  display: none;
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.trend-arrow:hover { background: rgba(255,255,255,.25); }
@media(max-width:640px) {
  .trend-arrow { display: flex; }
}
.trending-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Chaque item : numéro derrière + carte image */
.trend-item {
  position: relative;
}
.trend-num {
  font-family: var(--sans);
  font-size: 150px;
  font-weight: 900;
  line-height: .75;
  color: rgba(255,255,255,.08);
  pointer-events: none;
  position: absolute;
  top: -20px; left: -5px;
  z-index: 2;
}
.trend-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.08);
  min-height: 320px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 1;
  margin-top: 25px;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.trend-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.trend-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 6px;
}
.trend-src {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
@media(max-width:860px) {
  .trend-card { min-height: 190px; }
  .trend-num { font-size: 110px; }
  .trend-title { font-size: 13px; }
}
@media(max-width:640px) {
  .trending-band { padding: 28px 15px 32px; margin: 20px 0 24px; }
  .trending-band-inner { padding: 0; }
  .trending-band .sec-hd { padding-left: 14px; padding-right: 14px; }
  .trending-band .sec-hd h2 { font-size: 21px; }
  /* Carrousel horizontal swipeable */
  .trending-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 14px 8px;
    scrollbar-width: none;
  }
  .trending-row::-webkit-scrollbar { display: none; }
  .trend-item {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }
  .trend-num { font-size: 90px; top: -12px; left: 0; }
  .trend-card { min-height: 320px; margin-top: 28px; }
  .trend-title { font-size: 15px; }
}

/* ── SECTION HEADER ── */
.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 28px 0 6px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.sec-hd h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  text-transform: none;
  white-space: nowrap;
  color: var(--ink);
  line-height: 1.2;
}
.sec-hd-rule { display: none; }
.sec-hd-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
  margin-left: 4px;
  background: rgba(0,0,0,.04);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── GRID ── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: transparent;
  border: none;
  margin-top: 0;
}

.acard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s, transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-sm);
}
.acard:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-3px); }

.acard.wide {
  grid-column: span 2;
  flex-direction: row;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.acard.wide .wide-thumb {
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--blue-pale);
  border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
}
.acard.wide .wide-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.acard.wide:hover .wide-thumb img { transform: scale(1.04); }
.acard.wide .wide-body {
  flex: 1;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acard.wide .acard-title { font-size: 17px; }

.acard-eyebrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acard-badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 2px 7px;
  border-radius: 2px;
}
.acard-badge.rec { background: var(--ink-2); }

.acard-img,
.acard-img-wrap img {
  width: calc(100% + 40px);
  margin: -20px -20px 4px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.acard-img-wrap { overflow: hidden; }
.acard-img-ph {
  width: calc(100% + 40px);
  margin: -20px -20px 4px;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-mid));
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  font-size: 28px; font-weight: 800; color: var(--blue); opacity: .5;
}

.acard-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  transition: color .2s;
  letter-spacing: -.2px;
}
.acard:hover .acard-title { color: var(--blue); }

.ai-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  color: #9d7eff;
  background: rgba(157,126,255,.12);
  border: 1px solid rgba(157,126,255,.25);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.acard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acard-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acard-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  gap: 8px;
}
.acard-src {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.src-tick { width: 12px; height: 2px; background: var(--blue); flex-shrink: 0; border-radius: 1px; }
.src-fav { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; vertical-align: -2px; }
.acard-src-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard-cat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.acard-cat-name { font-weight: 700; }
.acard-date { font-family: var(--sans); font-size: 11px; color: var(--muted); flex-shrink: 0; opacity: .7; margin-left: auto; }
.acard-read-time {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  color: #0a0a0a; background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 20px; padding: 3px 9px 3px 7px;
  flex-shrink: 0;
}
.acard-read-time svg { opacity: .6; flex-shrink: 0; }
.sum-btn {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sum-btn:hover { background: var(--blue-mid); }
[data-theme="dark"] .sum-btn { background: rgba(79,126,255,.12); color: #7ca8ff; }
[data-theme="dark"] .sum-btn:hover { background: rgba(79,126,255,.22); }

.acard-lnk {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s;
}
.acard-lnk:hover { color: var(--blue-dark); }

/* ── OLDER LIST ── */
.older-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.oitem {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  transition: background .2s;
}
.oitem:first-child { border-top: none; }
.oitem:hover { background: var(--surface); }
.onum {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 900;
  color: var(--border-strong);
  min-width: 32px;
  text-align: right;
  line-height: 1;
  flex-shrink: 0;
}
.othumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--blue-pale);
}
.othumb-ph {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  opacity: .5;
}
.obody { flex: 1; min-width: 0; }
.otitle {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
  letter-spacing: -.1px;
}
.oitem:hover .otitle { color: var(--blue); }
.ometa {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}
.ometa .src-fav { width: 13px; height: 13px; border-radius: 2px; margin-right: -3px; }
.osrc { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--muted); }
.odate { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.ocats { display: flex; gap: 3px; }
.olnk {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s;
}
.olnk:hover { color: var(--blue-dark); }

/* ── PAGINATION ── */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 0 0;
  border-top: 2px solid var(--ink);
  margin-top: 32px;
}
.pbtn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 10px 14px;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: color .12s;
  text-decoration: none;
}
.pbtn:hover { color: var(--blue); }
.pbtn.cur { color: var(--ink); border-bottom: 2px solid var(--ink); pointer-events: none; }
.pellipsis { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 0 4px; }

/* ── LOAD MORE ── */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 0;
  margin-top: 16px;
}
.load-more-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 40px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-sm);
}
.load-more-btn:hover { background: var(--paper); border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.load-more-count {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── SEARCH HIGHLIGHT ── */
.search-hl {
  background: rgba(79,126,255,.18);
  color: var(--blue);
  border-radius: 2px;
  padding: 0 2px;
}
[data-theme="dark"] .search-hl { background: rgba(79,126,255,.3); color: #7ca8ff; }

/* ── READ TIME (older list) ── */
.oread-time { font-family: var(--sans); font-size: 10px; color: var(--muted); opacity: .6; }

/* ── SCROLL ANIMATIONS ── */
.acard, .oitem, .litem {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}
.hero-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.acard.card-visible, .oitem.card-visible, .hero-card.card-visible, .litem.card-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: SSR cards visible before JS runs */
noscript ~ .hero-card, noscript ~ .acard { opacity: 1; transform: none; }
/* Pages non-SPA (tag, source, etc.) : pas d'animation scroll */
:not(#articles-page) > .layout .acard,
:not(#articles-page) > .layout .oitem { opacity: 1; transform: none; }

/* ── SPA TRANSITIONS ── */
.spa-enter {
  animation: spaIn .25s ease both;
}
.spa-exit {
  animation: spaOut .2s ease both;
}
@keyframes spaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spaOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }

/* ── SKELETON ── */
.skel-pulse { animation: pulse 1.4s ease-in-out infinite; }
.skel-block { background: var(--border); border-radius: 2px; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── NOTICES ── */
.notice { text-align: center; padding: 80px 20px; display: none; }
.notice.vis { display: block; }
.notice-icon { font-family: var(--sans); font-size: 52px; font-weight: 900; color: var(--border-strong); }
.notice p { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ── SOURCES PAGE ── */
#sources-page, #suggest-page, #about-page { display: none; }
#sources-page.vis, #suggest-page.vis, #about-page.vis { display: block; }

/* ── SUGGEST PAGE ── */
.suggest-wrap { margin: 48px auto; }
.suggest-wrap h1 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.suggest-wrap .sub { font-size: 15px; color: var(--muted); margin-bottom: 36px; line-height: 1.6; }
.sform { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.sfield { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.sfield label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.sfield input, .sfield textarea, .sfield select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.sfield input:focus, .sfield textarea:focus { border-color: var(--blue); }
.sfield textarea { resize: vertical; min-height: 90px; }
.sform-notice { font-size: 12px; color: var(--muted); margin-top: 16px; }
.sform-success { background: rgba(79,126,255,.1); border: 1px solid rgba(79,126,255,.3); border-radius: 6px; padding: 20px 24px; color: var(--blue); font-weight: 600; display: none; margin-bottom: 20px; }
.sform-success.vis { display: block; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: none; border-radius: 10px; padding: 13px 28px; font-family: var(--body); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.sbtn:hover { background: var(--blue-dark); }
.sbtn:disabled { opacity: .5; cursor: not-allowed; }

/* ── NEWSLETTER BANNER ── */
.nl-banner {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 40px 24px;
  text-align: center;
}
.nl-banner h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.nl-banner p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.nl-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  justify-content: center;
}
.nl-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.nl-input::placeholder { color: rgba(255,255,255,.3); }
.nl-input:focus { border-color: var(--blue); }
.nl-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.nl-btn:hover { background: var(--blue-dark); }
.nl-btn:disabled { opacity: .5; cursor: not-allowed; }
.nl-success { font-size: 14px; color: #4f7eff; font-weight: 600; margin-top: 12px; display: none; }
.nl-success.vis { display: block; }

/* ── ABOUT PAGE ── */
.about-wrap { margin: 48px auto; }
.about-wrap h1 { font-size: 32px; font-weight: 900; letter-spacing: -.8px; margin-bottom: 6px; }
.about-wrap h1 em { color: var(--blue); font-style: normal; }
.about-lead { font-size: 17px; color: var(--muted); margin-bottom: 40px; line-height: 1.7; }
.about-section { margin-bottom: 40px; }
.about-section h2 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.about-section p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-bottom: 12px; }
.about-section a { color: var(--blue); text-decoration: none; }
.about-section a:hover { text-decoration: underline; }
.about-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.about-stat { display: inline-flex; align-items: baseline; gap: 6px; }
.about-stat strong { font-size: 28px; font-weight: 900; color: var(--blue); letter-spacing: -.5px; }
.about-stat span { font-size: 13px; color: var(--muted); }
.about-stats-row { display: flex; gap: 32px; flex-wrap: wrap; margin: 20px 0; }
.src-page-hd {
  padding: 20px 0 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.src-page-hd h1 { font-family: var(--sans); font-size: 36px; font-weight: 800; letter-spacing: -.8px; }
.src-page-hd p { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }
.src-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.src-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.src-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-mid); }
.src-card-hd { display: flex; align-items: center; gap: 12px; }
.src-card-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px;
}
.src-card-logo-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: var(--blue); background: var(--blue-pale);
  border-color: var(--blue-mid);
}
.src-card-info { min-width: 0; }
.src-card-name {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: -.1px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-card:hover .src-card-name { color: var(--blue); }
.src-card-meta {
  font-family: var(--sans); font-size: 11px; color: var(--muted);
  margin-top: 2px;
}
.src-card-cats { display: flex; flex-wrap: wrap; gap: 5px; }
[data-theme="dark"] .src-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .src-card:hover { border-color: var(--blue-mid); }
[data-theme="dark"] .src-card-logo { background: rgba(255,255,255,.05); border-color: var(--border); }
[data-theme="dark"] .src-card-logo-ph { background: var(--blue-pale); border-color: var(--blue-mid); }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-bottom: 24px; opacity: .6; transition: opacity .2s; }
.breadcrumb:hover { opacity: 1; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb > span { padding: 0 6px; font-size: 9px; color: var(--border-strong, #ccc); }
.breadcrumb > span:last-child { padding-left: 6px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

/* ── FOOTER ── */
footer {
  background: #06060a;
  font-family: var(--sans);
  color: rgba(255,255,255,.4);
}

/* CTA Newsletter band */
.footer-cta {
    background: linear-gradient(135deg, #0c306c 0%, #01050c 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 48px 32px;
}
.footer-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.footer-cta-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.footer-cta-text p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
  line-height: 1.5;
}
.footer-cta-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.footer-cta-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .15s;
}
.footer-cta-form input::placeholder { color: rgba(255,255,255,.3); }
.footer-cta-form input:focus { border-color: var(--blue); }
.footer-cta-form button {
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.footer-cta-form button:hover { background: var(--blue-dark, #2563eb); }

/* Main footer grid */
.footer-main {
  max-width: 1030px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {}
.footer-brand-logo {
  display: block;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-logo-img { height: 45px; width: auto; display: block; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  transition: all .15s;
}
.footer-social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 32px;
  max-width: 1030px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,.18);
}
.footer-bottom a { color: rgba(255,255,255,.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ── SUMMARY MODAL ── */
.sum-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.sum-modal-bg.open { opacity: 1; pointer-events: all; }
.sum-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  padding: 32px;
  transform: translateY(12px);
  transition: transform .2s;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.sum-modal-bg.open .sum-modal { transform: translateY(0); }
.sum-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
  font-size: 18px;
  line-height: 1;
}
.sum-modal-close:hover { color: var(--ink); }
.sum-modal-source {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.sum-modal-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.3px;
  color: var(--ink);
  margin-bottom: 20px;
}
.sum-modal-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
}
.sum-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sum-section {
  margin-bottom: 18px;
}
.sum-section-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sum-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sum-tldr {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.sum-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sum-bullets li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.sum-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.sum-impact {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}
.sum-modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.sum-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.sum-read-btn:hover { background: var(--blue-dark); }

@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .art-grid { grid-template-columns: 1fr 1fr; }
  .acard.wide { grid-column: span 2; }
  .hero-row { grid-template-columns: 1fr 1fr; gap: 15px; }
  .hero-card { min-height: 280px; }
  .hero-img-placeholder { min-height: 280px; }
  .masthead-inner { padding: 0 16px; }
  .toolbar-filters-row { padding: 0 16px; }
  .search-overlay-inner { padding: 0 16px; }
  .layout { padding: 0 16px 60px; }
  .footer-cta { padding: 36px 16px; }
  .footer-main { padding: 32px 16px; gap: 24px; grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { padding: 16px; }
}
@media(max-width:640px){
  .art-grid { grid-template-columns: 1fr; }
  .acard.wide { grid-column: span 1; flex-direction: column; padding: 0; }
  .acard.wide .wide-thumb { width: 100%; height: 160px; }
  .acard.wide .wide-body { padding: 18px 18px 14px; }
  /* Header mobile : hamburger-left | logo centré | search + dark */
  .masthead-inner {
    padding: 0 12px; gap: 0; height: 60px;
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .mast-tagline { display: none; }
  .mast-nav { display: none; }
  .nav-sep { display: none; }
  /* New left hamburger */
  .mast-hamburger-left {
    display: flex; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  }
  /* Hide old hamburger in mast-right */
  .mast-right .mast-hamburger { display: none !important; }
  /* Logo centered */
  .mast-logo { position: static; }
  /* Right side */
  .mast-right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; gap: 4px; }
  .mast-refresh { display: none; }
  .dark-toggle { display: flex; }
  .push-btn { display: none !important; }
  /* Sub-nav mobile */
  .sub-nav-inner { padding: 0 14px; height: 38px; }
  .share-label { display: none; }
  .share-btn { width: 30px; height: 30px; }
  /* Toolbar mobile */
  .toolbar { top: 55px; }
  .sub-nav { top: 61px; }
  .toolbar-filters-row { padding: 0 14px; overflow-x: auto; flex-wrap: nowrap; gap: 0; }
  .toolbar-right { padding-left: 6px; gap: 4px; }
  .src-select { font-size: 11px; padding: 5px 24px 5px 8px; max-width: 110px; }
  .filter-sep { margin: 0 6px; }
  .ftab { padding: 5px 10px; font-size: 12px; }
  .search-overlay-inner { padding: 0 14px; }
  .search-overlay-input { font-size: 16px; }
  .filter-section { flex-wrap: nowrap; }
  /* Layout */
  /* Hero mobile : seule la 1ère carte visible, grande et immersive */
  .hero-row { grid-template-columns: 1fr; gap: 0; margin-top: 15px; }
  .hero-card { min-height: 350px; border-radius: 14px; }
  .hero-card:nth-child(n+2) { display: none; }
  .hero-overlay { padding: 18px 20px; }
  .hero-title { font-size: 22px; letter-spacing: -.3px; }
  .layout { padding: 0 14px 30px; }
  /* Footer */
  .footer-cta { padding: 32px 14px; }
  .footer-cta-text h3 { font-size: 20px; }
  .footer-cta-form { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 14px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 14px; }
  /* Vue liste mobile */
  .litem { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .litem-title { -webkit-line-clamp: 2; width: 100%; order: 1; }
  .litem-img, .litem-img-ph { order: 0; width: 48px; height: 36px; }
  .litem-meta { order: 2; width: 100%; gap: 6px; flex-wrap: wrap; }
  .litem-source { font-size: 10px; }
  .litem-date { font-size: 10px; }
  .litem-cats { display: none; }
  .litem-lnk { display: none; }
  .litem-badge { display: none; }
  .litem-source { font-size: 10px; }
  .litem-date { font-size: 10px; }
  /* Articles précédents */
  .oitem { padding: 10px 14px; gap: 10px; }
  .onum { font-size: 14px; min-width: 22px; }
  .othumb, .othumb-ph { width: 44px; height: 32px; }
  .otitle { font-size: 13px; }
  .ocats { display: none; }
  .olnk { display: none; }
  .osrc { font-size: 10px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .odate { font-size: 10px; }
}

/* ── IMAGE PLACEHOLDER ── */
.acard-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  opacity: .5;
  letter-spacing: -.5px;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-mid) 100%);
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  opacity: .35;
  letter-spacing: -1px;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --bg: #04091a;
  --paper: #0a1120;
  --ink: #eef1f8;
  --ink-2: #c7cfe0;
  --muted: #8a93ab;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);
  --blue: #60a5fa;
  --blue-dark: #3b82f6;
  --blue-pale: #0c1a3a;
  --blue-mid: #162050;
  --surface: #0c162b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 8px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.3), 0 20px 50px rgba(0,0,0,.4);
}

/* ── DARK MASTHEAD ── */
[data-theme="dark"] .masthead {
  background: rgba(10,10,15,.85);
  border-bottom-color: rgba(96,165,250,.25);
}
[data-theme="dark"] .toolbar,
[data-theme="dark"] .sub-nav {
  background: #0b0b0f;
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .subcat-bar {
  background: #111113;
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .ftab:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] .ftab.active { background: var(--surface); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .sec-hd-count { background: rgba(255,255,255,.06); }
[data-theme="dark"] .load-more-btn { color: var(--ink); background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .load-more-btn:hover { background: var(--paper); }

/* ── DARK: hero, trending, newsletter, cards ── */
[data-theme="dark"] .hero-card { background-color: var(--surface); }
[data-theme="dark"] .acard { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .acard:hover { border-color: var(--blue-mid); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
[data-theme="dark"] .acard-desc { color: var(--ink-2); }
[data-theme="dark"] .acard-badge { background: rgba(96,165,250,.15); color: #93c5fd; }
[data-theme="dark"] .acard-badge.rec { background: rgba(74,222,128,.12); color: #86efac; }
[data-theme="dark"] .trending-block { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .trending-hd { color: var(--ink); }
[data-theme="dark"] .trending-list li a { border-color: var(--border); }
[data-theme="dark"] .trending-list li a:hover { background: rgba(255,255,255,.03); }
[data-theme="dark"] .tnum { color: var(--blue); }
[data-theme="dark"] .nl-banner { background: #060c18; border-top-color: rgba(255,255,255,.06); }
[data-theme="dark"] .oitem { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .oitem:hover { background: rgba(255,255,255,.03); }
[data-theme="dark"] .chip { background: rgba(255,255,255,.06); color: var(--ink-2); }
[data-theme="dark"] .acard-img-ph { background: var(--blue-pale); color: var(--blue); }
[data-theme="dark"] .bkm-btn { color: var(--muted); }
[data-theme="dark"] .bkm-btn.active { color: var(--blue); }
[data-theme="dark"] .seo-editorial { background: var(--paper); }
[data-theme="dark"] .seo-editorial h1 { color: var(--ink); }
[data-theme="dark"] .seo-editorial p { color: var(--ink-2); }
[data-theme="dark"] .seo-tags a { background: var(--surface); color: var(--ink-2); border-color: var(--border); }
[data-theme="dark"] .seo-tags a:hover { background: var(--blue-pale); color: var(--blue); border-color: var(--blue-mid); }

/* ── VUE LISTE ── */
.list-view .art-grid { display: none; }
.list-view .older-wrap { display: none; }
.list-view #list-area { display: block; padding-top: 20px; }
.list-view .hero-row { display: none; }
.list-view .trending-wrap,
.list-view #trending-area { display: none; }
body:has(.list-view) #trending-area,
body:has(.no-hero) #trending-area { display: none; }
body:has(.list-view) #grid-area-2,
body:has(.no-hero) #grid-area-2 { display: none; }
.list-view .sec-hd { display: none; }
/* En vue liste, remettre la toolbar en mode clair */
.list-view ~ .toolbar,
body:has(.list-view) .toolbar,
body:has(.no-hero) .toolbar {
  background: var(--paper); border-bottom-color: var(--border); color: var(--ink);
}
body:has(.list-view) .ftab,
body:has(.no-hero) .ftab { color: var(--muted); }
body:has(.list-view) .ftab:hover,
body:has(.no-hero) .ftab:hover { color: var(--ink); background: rgba(0,0,0,.04); }
body:has(.list-view) .ftab.active,
body:has(.no-hero) .ftab.active { color: var(--ink); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
body:has(.list-view) .filter-sep,
body:has(.no-hero) .filter-sep { background: var(--border); }
body:has(.list-view) .src-select,
body:has(.no-hero) .src-select { color: var(--muted); background: var(--surface); border-color: var(--border); }
body:has(.list-view) .src-select:hover,
body:has(.no-hero) .src-select:hover { color: var(--ink); border-color: var(--blue); background: var(--paper); }
body:has(.list-view) .view-toggle,
body:has(.no-hero) .view-toggle { background: rgba(0,0,0,.04); }
body:has(.list-view) .vtbtn,
body:has(.no-hero) .vtbtn { color: var(--muted); }
body:has(.list-view) .vtbtn:hover,
body:has(.no-hero) .vtbtn:hover { color: var(--ink); }
.list-view .sec-hd { display: none; }
.list-view #list-area .sec-hd { display: flex; }
#list-area { display: none; }

.list-items { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.litem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  transition: background .12s;
  animation: fadeUp .2s ease both;
}
.litem:first-child { border-top: none; }
.litem:hover { background: var(--surface); }
.litem-img {
  width: 56px;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--blue-pale);
}
.litem-img-ph {
  width: 56px;
  height: 40px;
  border-radius: 3px;
  background: var(--blue-pale);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  opacity: .6;
}
.litem-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -.1px;
  transition: color .12s;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.litem:hover .litem-title { color: var(--blue); }
.litem-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.litem-source {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.litem-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.litem-cats { display: flex; gap: 4px; }
.litem-lnk {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .12s;
}
.litem-lnk:hover { color: var(--blue-dark); }
.litem-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}
.litem-badge-new    { background: var(--blue); color: #fff; }
.litem-badge-recent { background: var(--ink-2); color: #fff; }

/* ── VIEW TOGGLE ── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
}
.vtbtn {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  transition: all .15s;
}
.vtbtn:hover { color: #fff; }
.vtbtn.active { background: var(--blue); color: #fff; }
[data-theme="dark"] .vtbtn.active { background: var(--blue); color: #fff; }

/* ── DARK TOGGLE ── */
.dark-toggle {
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.dark-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: block; }
[data-theme="dark"] .dark-toggle .icon-sun { display: block; }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }


/* ── BOOKMARK BUTTON ── */
.bkm-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all .15s;
  flex-shrink: 0;
  opacity: .45;
}
.bkm-btn:hover { color: var(--blue); opacity: 1; }
.bkm-btn.active { color: var(--blue); opacity: 1; }
.bkm-btn.active svg { fill: var(--blue); }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.hero-actions .bkm-btn { opacity: 1; padding: 8px; background: rgba(255,255,255,.08); border-radius: 50%; }
.hero-actions .bkm-btn:hover { background: rgba(79,126,255,.15); }

/* ── NAV FAVORITES ── */
.nav-fav { position: relative; }
.fav-badge {
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── FAVORITES PAGE ── */
#favorites-page { display: none; }
#favorites-page.vis { display: block; }
.fav-page-hd { margin: 32px 0 24px; }
.fav-page-hd h1 { font-family: var(--sans); font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); margin-bottom: 6px; }
.fav-page-hd .sub { font-size: 14px; color: var(--muted); }
.fav-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.fav-empty p { font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 6px; }
.fav-empty span { font-size: 13px; }

/* ── BLOC SEO ÉDITORIAL (visible Google, caché users) ── */
.seo-editorial {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.seo-editorial-DISABLED {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  margin-top: 16px;
}
.seo-editorial h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.seo-editorial p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 20px;
}
.seo-editorial p strong { color: var(--ink-2); font-weight: 600; }
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-tags a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all .15s;
}
.seo-tags a:hover { color: var(--blue); border-color: var(--blue-mid); }

/* ── TRENDING ── */
.trending-wrap {
  padding: 0 0 30px;
  margin-top: -8px;
}
.trending-block {}
.trending-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.trending-hd svg { color: var(--blue); }
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.trending-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--border);
  transition: all .15s;
}
.trending-list li a:hover { border-color: var(--blue-mid); background: var(--blue-pale); }
.tnum {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.trending-list li img {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.ttitle {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-list li a:hover .ttitle { color: var(--blue); }
.tsrc {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── TRENDING ── */
.trending-wrap {
  padding: 0 0 40px;
  margin-top: -8px;
}
.trending-hd {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.trending-hd svg { color: var(--blue); }
.trending-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.trending-list li a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--border);
  transition: all .12s;
}
.trending-list li a:hover { border-color: var(--blue-mid); background: var(--surface); }
.tnum {
  font-size: 13px; font-weight: 800;
  color: var(--blue); min-width: 20px;
  text-align: center;
}
.trending-list img {
  width: 48px; height: 36px;
  object-fit: cover; border-radius: 3px;
  flex-shrink: 0;
}
.ttitle {
  flex: 1; font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.trending-list li a:hover .ttitle { color: var(--blue); }
.tsrc {
  font-size: 11px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  flex-shrink: 0;
}
@media(max-width:700px){
  .trending-list { grid-template-columns: 1fr; }
  .trending-list li a { gap: 10px; padding: 10px 12px; }
  .tsrc { display: none; }
}

/* ── ENHANCEMENTS ────────────────────────────────────────────────────────── */

/* Search results dropdown */
.search-results {
  display: none; position: fixed; top: 62px;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 56px); max-width: 1030px;
  background: var(--paper); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 14px 14px;
  max-height: 420px; overflow-y: auto;
  box-shadow: var(--shadow-lg); z-index: 250;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--blue-pale); }
[data-theme="dark"] .search-result-item:hover { background: rgba(59,130,246,.1); }
.search-result-img {
  width: 48px; height: 36px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0; background: var(--bg);
}
.search-result-noimg {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.search-result-text { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-title mark {
  background: var(--blue-pale); color: var(--blue); border-radius: 2px;
  padding: 0 2px;
}
[data-theme="dark"] .search-result-title mark { background: rgba(59,130,246,.2); }
.search-result-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.search-no-result {
  padding: 20px; text-align: center; color: var(--muted);
  font-size: 13px; font-style: italic;
}
/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 999; pointer-events: none;
}
.reading-progress-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #8b5cf6);
  border-radius: 0 3px 3px 0; transition: width .1s linear;
}

/* Back to top button */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border);
  color: var(--ink); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: opacity .25s, transform .25s, background .15s, border-color .15s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Newsletter popup */
.nl-popup {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .3s;
  pointer-events: none; padding: 20px;
}
.nl-popup.open { opacity: 1; pointer-events: auto; }
.nl-popup-card {
  background: var(--paper); border-radius: 16px 16px 0 0;
  padding: 32px; max-width: 420px; width: 100%;
  text-align: center; position: relative;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
.nl-popup.open .nl-popup-card { transform: translateY(0); }
.nl-popup-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 24px;
  color: var(--muted); cursor: pointer; line-height: 1;
  transition: color .15s;
}
.nl-popup-close:hover { color: var(--ink); }
.nl-popup-icon { margin-bottom: 12px; color: var(--blue); }
.nl-popup-card h3 {
  font-size: 20px; font-weight: 800; color: var(--ink);
  margin-bottom: 8px;
}
.nl-popup-card p {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  margin-bottom: 20px;
}
.nl-popup-form { display: flex; gap: 8px; }
.nl-popup-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: var(--bg);
  color: var(--ink); outline: none; transition: border-color .15s;
}
.nl-popup-input:focus { border-color: var(--blue); }
.nl-popup-btn {
  padding: 10px 20px; background: var(--blue); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.nl-popup-btn:hover { background: var(--blue-dark); }
.nl-popup-btn:disabled { opacity: .6; cursor: not-allowed; }
.nl-popup-note {
  font-size: 11px; color: var(--muted); margin-top: 12px;
}
.nl-popup-success {
  font-size: 15px; font-weight: 700; color: var(--blue);
  padding: 8px 0;
}
@media(min-width:500px){
  .nl-popup { align-items: center; }
  .nl-popup-card { border-radius: 16px; transform: translateY(40px) scale(.95); }
  .nl-popup.open .nl-popup-card { transform: translateY(0) scale(1); }
}

/* Page transitions */
.page-enter { opacity: 0; transform: translateY(8px); }
.page-enter-active {
  opacity: 1; transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}

/* Card favorite heart button */
.card-fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  border: none; color: rgba(255,255,255,.85); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .2s, background .15s;
}
.acard:hover .card-fav-btn { opacity: 1; transform: scale(1); }
.card-fav-btn:hover { background: rgba(0,0,0,.65); }
.card-fav-btn.active {
  opacity: 1; transform: scale(1);
  color: #ef4444; background: rgba(255,255,255,.9);
}
.card-fav-btn.active svg { fill: #ef4444; }

/* Fav badge in nav */
.fav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--blue); color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; margin-left: 5px;
  vertical-align: middle; line-height: 1;
}

/* Skeleton loading shimmer */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ALLEZPARIS — Thème PSG sur base IAfeed + composants football
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --blue: #e1122e;            /* accent → rouge PSG */
  --blue-dark: #c60f28;
  --blue-pale: #fdecee;
  --blue-mid: #f5b8c1;
  --navy: #06132e;
  --red: #e1122e;
  /* Compatibilité composants AllezParis */
  --panel: var(--surface);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --r: var(--radius);
  --shadow: var(--shadow-sm);
  --shadow-lift: var(--shadow-md);
  --ink-soft: #3c4863;
}
.masthead { background: #000918; border-bottom-color: #111c30; }
.mast-logo { font-weight: 900; letter-spacing: .02em; }

.seo-h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.empty { color: var(--muted); padding: 14px 0; }
.breadcrumb { font-size: .78rem; color: var(--muted); margin: 14px 0 4px; }
/* ── Bandeau matchs (score board : 4 cartes) ── */
.matches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 6px; }
.matches::-webkit-scrollbar { display: none; }
@media (max-width: 680px) {
  /* Carrousel horizontal (swipe) au lieu de la grille 2×2 */
  .matches {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    margin: 16px 0 6px;
    padding-bottom: 4px;
  }
  .matches .mpill {
    flex: 0 0 auto;
    min-width: 156px;
    scroll-snap-align: start;
  }
}
.mpill {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 16px 11px; display: flex; flex-direction: column; gap: 5px; align-items: center;
  min-width: 0; justify-content: center; transition: border-color .15s;
}
a.mpill:hover { border-color: var(--red); color: inherit; }
.mleague { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mrow { display: flex; align-items: center; gap: 14px; justify-content: center; }
.mteam { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mteam img { width: 26px; height: 26px; object-fit: contain; }
.mteam b { font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.mmid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 46px; }
.mscore { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.mdone { font-size: .6rem; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.mwhen { font-weight: 700; font-size: .72rem; color: #fff; background: #0c1a36; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.mpill-live { box-shadow: inset 0 0 0 1.5px var(--red); }
.mlive { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: .72rem; color: var(--red); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.7s infinite; display: inline-block; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(225,18,46,.4); } 60% { box-shadow: 0 0 0 7px rgba(225,18,46,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ── Sections génériques ── */
.sec-count-badge { font-weight: 600; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 26px 0 10px; font-weight: 700; font-size: .9rem; }
.pagination 
.pagination span { color: var(--muted); font-weight: 400; font-size: .84rem; }
.load-more-wrap { text-align: center; padding: 26px 0 6px; }
.btn-more {
  font: inherit; font-weight: 700; font-size: .9rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 11px 46px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-more:hover { border-color: var(--red); color: var(--red); }
.btn-more[disabled] { opacity: .5; }
.skel-card .skel { background: linear-gradient(90deg, var(--border) 25%, transparent 50%, var(--border) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 8px; }
.skel-card-img { aspect-ratio: 16/9; border-radius: var(--radius); margin-bottom: 10px; }
.skel-line { height: 13px; margin-bottom: 9px; }
.skel-line.short { width: 55%; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Page article (habillage AllezParis) ── */
.article-hero-cat { text-transform: uppercase; }
.single-content { font-size: 1.03rem; line-height: 1.75; }
.single-content p { margin: 0 0 1.15em; }
/* ── Embeds (YouTube, X/Twitter, Instagram) ── */
.embed-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 22px 0; }
.embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.single-content iframe[src*="youtube"], .single-content iframe[src*="youtu.be"] { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 22px 0; }
.single-content .twitter-tweet, .single-content .instagram-media { margin: 22px auto !important; }
.single-content h2, .single-content h3 { font-weight: 800; line-height: 1.25; margin: 1.5em 0 .55em; letter-spacing: -.01em; }
.single-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.single-content img { border-radius: var(--radius); margin: 1.1em 0; max-width: 100%; height: auto; }
.single-content blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--bg); border-radius: 0 8px 8px 0; font-style: italic; }
.single-content iframe { max-width: 100%; }
.article-intro { font-size: 1.05rem; line-height: 1.7; font-weight: 600; margin: 0 0 22px; }
.article-intro p { margin: 0; }
.single-media { margin: 0 0 24px; }
.single-media img { border-radius: var(--radius); width: 100%; }
.single-media figcaption { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.article-date-info { font-size: 12px; color: var(--muted); margin-top: 26px; }
.article-date-info p { margin: 0 0 10px; }
.tags-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags-list li a { display: inline-block; background: var(--bg); border: 1px solid var(--border); color: var(--ink); padding: 6px 12px; border-radius: 10px; font-weight: 500; font-size: .8rem; transition: all .2s ease; }
.tags-list li a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.joueur-widget { display: flex; align-items: center; gap: 15px; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 16px; background: var(--surface); transition: border-color .15s; }
.joueur-widget:hover { border-color: var(--red); color: inherit; }
.joueur-widget img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #dce6f39e; }
.joueur-widget .jw-txt { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; }
.joueur-widget .jw-txt b { font-size: .98rem; }
.joueur-widget .jw-txt span { color: var(--muted); }
.joueur-widget .jw-txt em { font-style: normal; color: var(--red); font-weight: 600; font-size: .78rem; }

/* Joueurs liés (page article) */
.article-players { margin-top: 28px; }
.article-players-title { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 800; margin-bottom: 13px; }
.article-players-title svg { color: var(--red); }
.article-players-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.apl-card { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.apl-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.apl-photo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.apl-photo img { width: 46px; height: 46px; object-fit: cover; }
.apl-ph { font-size: .72rem; font-weight: 800; color: var(--muted); }
.apl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apl-info b { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apl-info span { font-size: .76rem; color: var(--muted); }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.art-nav-link { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); transition: border-color .15s; min-width: 0; }
.art-nav-link:hover { border-color: var(--red); color: inherit; }
.art-nav-link.next { text-align: right; }
.art-nav-label { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.art-nav-title { font-size: .86rem; font-weight: 700; line-height: 1.3; display: block; }

/* ── Fiche joueur ── */
.joueur-info { display: flex; align-items: center; gap: 30px; padding: 30px 15px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.image-joueur img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: #dce6f39e; }
.details-joueur { flex: 1; font-size: 16px; min-width: 260px; }
.details-joueur h1 { font-size: 38px; margin: 0 0 5px; font-weight: 800; letter-spacing: -.01em; }
.details-joueur p.description { font-size: 16px; margin: 0 0 10px; line-height: 1.6; }
.btn-biographie a { display: inline-block; padding: 6px 14px; background-color: var(--red); color: #fff; font-weight: bold; font-size: 14px; margin-top: 7px; border-radius: 10px; transition: background-color .3s ease; }
.btn-biographie a:hover { background-color: var(--navy); color: #fff; }
.table-infos { max-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; width: 100%; }
.table-infos th, .table-infos td { padding: 12px 15px; text-align: left; border: 0; font-weight: normal; }
.table-infos th { font-weight: bold; white-space: nowrap; width: 220px; }
.table-infos tr:nth-child(2), .table-infos tr:nth-child(4) { background-color: #e9f0f8; }
.table-infos tr:hover { background-color: #dce6f363; }
.dernierenews { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 15px 10px; font-size: 23px; font-weight: 800; margin: 14px 0 20px; }
.pf-flag { vertical-align: -4px; margin-right: 5px; border-radius: 50%; }

/* ── Effectif ── */
.squad-sec { margin: 26px 0 34px; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.player-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.player-photo { position: relative; width: 100%; aspect-ratio: 1; background: var(--navy); display: block; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-num { position: absolute; right: 8px; top: 8px; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 6px; padding: 2px 8px; }
.player-name { font-weight: 800; font-size: .95rem; margin-top: 11px; }
.player-card:hover .player-name { color: var(--red); }
.player-pos { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.row-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,.25); font-weight: 900; font-size: 1.4rem; background: var(--navy); }

/* ── Calendrier / classement ── */
.cal-sec { font-weight: 800; font-size: 1.2rem; margin: 26px 0 8px; }
.cal-row { display: grid; grid-template-columns: 150px 1fr 220px; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: inherit; }
.cal-row:hover { color: inherit; }
a.cal-row:hover .cal-score { color: var(--red); }
.cal-row:last-child { border-bottom: 0; }
.cal-live { background: rgba(225,18,46,.04); }
.cal-date { color: var(--muted); font-size: .8rem; font-weight: 600; }
.cal-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.cal-team { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.cal-team.away { justify-content: flex-end; text-align: right; }
.cal-score { font-weight: 800; white-space: nowrap; }
.cal-score.done { background: var(--bg); border-radius: 6px; padding: 3px 10px; }
.cal-league { color: var(--muted); font-size: .78rem; text-align: right; }
.rank-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rank-table th { text-align: center; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 6px 10px; font-weight: 700; }
.rank-table td { padding: 9px 6px; border-top: 1px solid var(--border); text-align: center; }
.rank-table .rt-team { text-align: left; }
.rank-table .rt-team img { display: inline-block; vertical-align: -4px; margin-right: 5px; }
.rt-psg td { background: rgba(225,18,46,.07); font-weight: 700; }

/* ── Page de match ── */
.match-bc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 18px 0 8px; font-size: 12.5px; font-weight: 600; }
.match-bc a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; transition: color .18s; }
.match-bc a:hover { color: var(--red); }
.match-bc a svg { opacity: .85; flex-shrink: 0; }
.match-bc .bc-sep { color: var(--muted); opacity: .4; flex-shrink: 0; }
.match-bc .bc-current { color: var(--ink); font-weight: 700; }

/* Scoreboard hero */
.mscore-hero {
  background: linear-gradient(155deg, #0a1c3f 0%, #00081a 78%);
  border: 1px solid #14213f; border-radius: 20px;
  padding: 28px 24px 22px; margin: 10px 0 22px;
  color: #fff; text-align: center;
  box-shadow: 0 18px 40px rgba(0,9,24,.16);
}
.mscore-comp { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.mscore-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; max-width: 560px; margin: 0 auto; }
.mscore-team { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mscore-badge { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.mscore-badge img { width: 58px; height: 58px; object-fit: contain; }
.mscore-name { font-size: 1rem; font-weight: 800; }
.mscore-center { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 96px; }
.mscore-num { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; display: flex; align-items: center; gap: 12px; }
.mscore-sep { color: rgba(255,255,255,.35); font-weight: 400; }
.mscore-vs { font-size: 1.7rem; font-weight: 800; color: rgba(255,255,255,.4); }
.mscore-tab { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.7); }
.mscore-state { font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.78); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 4px 13px; display: inline-flex; align-items: center; gap: 6px; }
.mscore-state.is-live { color: #fff; background: rgba(225,18,46,.25); border-color: rgba(225,18,46,.5); }
.mscore-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.mscore-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.72); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 5px 11px; }
.mscore-chip svg { opacity: .7; flex-shrink: 0; }

/* Blocs */
.match-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.match-block { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px 20px; }
.match-block-wide { margin-top: 18px; }
.match-h2 { font-size: 1.02rem; font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; }
.match-note { margin: 16px 2px 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.match-empty { color: var(--muted); padding: 8px 0; margin: 0; }

/* Timeline */
.mtl { display: flex; flex-direction: column; }
.mtl-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mtl-row:last-child { border-bottom: 0; }
.mtl-row.is-away { flex-direction: row-reverse; text-align: right; }
.mtl-min { font-weight: 800; color: var(--muted); font-size: .8rem; min-width: 30px; flex-shrink: 0; }
.mtl-ico { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg); color: var(--muted); }
.mtl-ico.goal { background: rgba(22,163,74,.14); color: #16a34a; }
.mtl-ico.sub { background: rgba(59,130,246,.12); color: var(--blue); }
.mtl-card { width: 11px; height: 15px; border-radius: 2px; display: block; }
.mtl-card.yellow { background: #f2c400; }
.mtl-card.red { background: #d40000; }
.mtl-body { flex: 1; min-width: 0; line-height: 1.35; }
.mtl-body b { font-weight: 700; }
.mtl-detail { color: var(--muted); font-weight: 600; }
.mtl-assist { display: block; color: var(--muted); font-size: .78rem; }
.mtl-team { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* Stats */
.mstat2 { display: flex; flex-direction: column; gap: 3px; }
.mstat2-row { display: grid; grid-template-columns: 30px 1fr 30px; gap: 12px; align-items: center; padding: 7px 0; }
.mstat2-v { font-weight: 800; text-align: center; font-size: .95rem; color: var(--muted); }
.mstat2-v.lead { color: var(--ink); }
.mstat2-mid { min-width: 0; }
.mstat2-label { display: block; text-align: center; font-size: .76rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.mstat2-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--bg); gap: 2px; }
.mstat2-h { background: var(--blue); height: 100%; border-radius: 6px 2px 2px 6px; min-width: 3px; }
.mstat2-a { background: #e1122e; height: 100%; border-radius: 2px 6px 6px 2px; min-width: 3px; }

/* Compositions / acteurs */
.mcompo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.mcompo-team { display: flex; align-items: center; gap: 9px; font-size: .98rem; font-weight: 800; margin-bottom: 10px; }
.mcompo-team img { width: 24px; height: 24px; object-fit: contain; }
.mcompo-sub-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin: 12px 0 4px; }
.mcompo-list { list-style: none; margin: 0; padding: 0; }
.mcompo-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; font-weight: 600; }
.mcompo-list li:last-child { border-bottom: 0; }
.mcompo-list.subs li { font-weight: 400; color: var(--muted); }
.mcompo-num { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: .74rem; flex-shrink: 0; }
.mcompo-name { flex: 1; min-width: 0; }
.mac-tags { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mac-tag { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.mac-tag.goal, .mac-tag.og { font-size: .82rem; }
.mac-tag.og { opacity: .55; }
.mac-tag.assist { width: 16px; height: 16px; border-radius: 4px; background: rgba(59,130,246,.15); color: var(--blue); font-weight: 800; font-size: .62rem; }
.mac-tag.yellow { width: 9px; height: 13px; border-radius: 2px; background: #f2c400; }
.mac-tag.red { width: 9px; height: 13px; border-radius: 2px; background: #d40000; }
.mac-tag.subm { color: var(--blue); font-weight: 800; font-size: .8rem; }

@media (max-width: 560px) {
  .mscore-num { font-size: 2.4rem; }
  .mscore-badge { width: 76px; height: 76px; }
  .mscore-badge img { width: 46px; height: 46px; }
  .mcompo { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Divers ── */
.archive-header { padding: 30px 0 6px; }
.archive-title { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.archive-sub { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.page-static { max-width: 760px; padding: 10px 0 40px; }
.search-form-page { display: flex; gap: 10px; margin: 16px 0 20px; max-width: 560px; }
.search-form-page input { flex: 1; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 15px; font: inherit; }
.nl-page { max-width: 620px; padding: 10px 0 40px; }
.nl-page-form { display: flex; gap: 10px; margin-top: 18px; }
.nl-page-form input { flex: 1; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 11px 14px; font: inherit; }
.btn-nl { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 11px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-nl:hover { background: var(--blue-dark); }
.nl-msg { font-size: .84rem; margin: 10px 0 0; font-weight: 600; }
.nl-msg.err { color: var(--red); }
.nl-msg.ok { color: #1a9c4b; }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; box-shadow: var(--shadow-md); z-index: 70; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red); }


/* ── Dark mode des composants ── */
[data-theme="dark"] .mwhen { background: #2a3b60; }
[data-theme="dark"] .table-infos tr:nth-child(2), [data-theme="dark"] .table-infos tr:nth-child(4) { background-color: #1a2439; }
[data-theme="dark"] .table-infos tr:hover { background-color: #22304d66; }
[data-theme="dark"] .rt-psg td { background: rgba(225,18,46,.16); }
[data-theme="dark"] .ms-bh { background: #4a6fb5; }
[data-theme="dark"] .joueur-widget img, [data-theme="dark"] .image-joueur img { background: #1a2439; }

@media (max-width: 700px) {
  .lineups { grid-template-columns: 1fr; }
  .sb-num { font-size: 2rem; }
  .cal-row { grid-template-columns: 1fr; gap: 6px; }
  .cal-league { text-align: left; }
  .art-nav { grid-template-columns: 1fr; }
  .details-joueur h1 { font-size: 28px; }
  .squad-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Compatibilité anciens intitulés de pages */
.page-head { padding: 30px 0 6px; }
.page-title { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.page-sub { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.panel.listing, .listing { background: transparent; }
.section-title { font-weight: 800; font-size: 1.2rem; margin: 24px 0 14px; }
.section-title 

/* Sans JavaScript : cartes visibles (l'animation .card-visible est gérée par app.js) */
html:not(.js) .acard, html:not(.js) .hero-card, html:not(.js) .oitem, html:not(.js) .litem { opacity: 1; transform: none; }

/* ── Liens des composants : ne pas hériter du bleu/rouge global ── */
.cal-row, .art-nav-link, .joueur-widget, .player-card, .mpill,
.pagination a, .tl-txt, .art-nav-title, .art-nav-label { color: inherit; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* ── Bandeau matchs intégré à la bande sombre du haut (#articles-page::before) ── */

#articles-page .matches { margin: 16px 0 6px; }
#articles-page .mpill { background: #000918; border-color: rgba(255,255,255,.13); }
/* Texte clair sur la bande sombre — à toutes les tailles (mobile inclus) */
#articles-page a.mpill:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
#articles-page .mpill-live { box-shadow: inset 0 0 0 1.5px var(--red); }
#articles-page .mleague { color: rgba(255,255,255,.55); }
#articles-page .mteam b, #articles-page .mscore { color: #fff; }
#articles-page .mdone { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
#articles-page .mwhen { background: rgba(255,255,255,.16); color: #fff; }


/* Toolbar : rubriques supplémentaires derrière le « + » */
.ftab-extra { display: none; }
.ftab-extra.show { display: inline-flex; }
#more-cats { font-weight: 800; min-width: 30px; }
.mast-icon-btn.on { color: var(--blue); }

/* Sous-menu « + » : panneau flottant sous la toolbar, sans décaler la page */
.extra-drop {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  z-index: 150; min-width: 190px; max-height: 62vh; overflow-y: auto;
  background: #000918; border: 1px solid #1a2842; border-radius: 10px;
  padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.extra-drop.visible { display: block; }
.extra-drop a {
  display: block; padding: 8px 14px; border-radius: 7px;
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.extra-drop a:hover, .extra-drop a.active { background: rgba(255,255,255,.08); color: #fff; }

/* Logo AP dans le masthead et le footer */
.mast-logo { display: inline-flex; align-items: center; gap: 9px; }
.mast-logo-img { height: 45px; width: auto; display: block; }

/* Nom du site en Inter à côté du logo */
.mast-logo-txt { font-family: 'Inter', system-ui, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #fff; }

/* ── Page auteur ─────────────────────────────────────────────────────────── */
.author-hero {
  display: flex; align-items: center; gap: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; margin: 8px 0 26px;
  box-shadow: var(--shadow-sm);
}
.author-avatar, .author-avatar img, .author-avatar-ph {
  width: 96px; height: 96px; border-radius: 50%; flex: 0 0 96px;
}
.author-avatar img { object-fit: cover; display: block; }
.author-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e1122e, #7a0a1a); color: #fff;
  font-size: 40px; font-weight: 800; font-family: var(--sans);
}
.author-meta { min-width: 0; }
.author-role {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 4px;
}
.author-name { font-size: 30px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.5px; color: var(--ink); }
.author-bio { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; max-width: 60ch; }
.author-links { display: flex; flex-wrap: wrap; gap: 10px; }
.author-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 999px; text-decoration: none;
  transition: border-color .15s, color .15s, transform .15s;
}
.author-link:hover { color: var(--blue); border-color: var(--border-strong); transform: translateY(-1px); }

/* ── Encadré auteur (bas d'article) ──────────────────────────────────────── */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin: 30px 0 6px;
  box-shadow: var(--shadow-sm);
}
.author-box-avatar, .author-box-avatar img, .author-box-ph { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; }
.author-box-avatar img { object-fit: cover; display: block; }
.author-box-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e1122e, #7a0a1a); color: #fff;
  font-size: 26px; font-weight: 800; font-family: var(--sans);
}
.author-box-body { min-width: 0; }
.author-box-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.author-box-name { display: inline-block; font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.3px; }
.author-box-name span { font-weight: 600; font-size: 14px; color: var(--muted); }
.author-box-name:hover { color: var(--blue); }
.author-box-bio { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 6px 0 8px; }
.author-box-link { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.author-box-link:hover { text-decoration: underline; }

.article-hero-author { color: inherit; text-decoration: none; }
.article-hero-author:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .author-hero { flex-direction: column; text-align: center; align-items: center; padding: 22px 18px; }
  .author-links { justify-content: center; }
  .author-name { font-size: 25px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}
