/*
 * CryptoExplor — styles du site, port fidèle de la maquette v3 « Signal » (spec/themes/v3/4-signal/style.css).
 * Mobile first : styles de base = mobile, puis @media (min-width: …).
 * Dépend de tokens.css (jetons clairs). Les styles du contenu éditorial (blocs) sont dans content.css.
 * Les ajouts propres au thème WordPress sont regroupés en fin de fichier (section 9).
 */

/* ==========================================================================
   1. Mode sombre (les jetons clairs sont dans tokens.css)
   ========================================================================== */
/* Mode sombre : préférence système, sauf choix explicite « clair » */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1211;
    --surface: #141b19;
    --surface-2: #1a2320;
    --border: #26322e;
    --border-strong: #35443e;
    --text: #e8eeeb;
    --text-2: #c9d3ce;
    --muted: #9aa8a1;
    --accent: #4ade80;
    --accent-deco: #22c55e;
    --accent-soft: #10291b;
    --on-accent: #06140c;
    --focus: #4ade80;
    --sev-critical: #f87171;
    --sev-critical-bg: #2b1515;
    --sev-important: #fbbf24;
    --sev-important-bg: #2a2111;
    --sev-info: #93b4fd;
    --sev-info-bg: #15203a;
    --sev-none: #35443e;
    --status-confirmed: #4ade80;
    --status-pending: #fbbf24;
    --status-corrected: #c4b5fd;
    --band-bg: #060908;
    --band-bg-2: #0e1412;
    --band-border: #1f2925;
    --band-text: #e8eeeb;
    --band-muted: #9aa8a1;
    --band-accent: #22c55e;
    --band-up: #22c55e;
    --band-down: #f87171;
    --band-warn: #fbbf24;
    --ph-base: #0a0f0d;
    --ph-line: rgba(255, 255, 255, .06);
    --ph-glyph: rgba(255, 255, 255, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1211;
  --surface: #141b19;
  --surface-2: #1a2320;
  --border: #26322e;
  --border-strong: #35443e;
  --text: #e8eeeb;
  --text-2: #c9d3ce;
  --muted: #9aa8a1;
  --accent: #4ade80;
  --accent-deco: #22c55e;
  --accent-soft: #10291b;
  --on-accent: #06140c;
  --focus: #4ade80;
  --sev-critical: #f87171;
  --sev-critical-bg: #2b1515;
  --sev-important: #fbbf24;
  --sev-important-bg: #2a2111;
  --sev-info: #93b4fd;
  --sev-info-bg: #15203a;
  --sev-none: #35443e;
  --status-confirmed: #4ade80;
  --status-pending: #fbbf24;
  --status-corrected: #c4b5fd;
  --band-bg: #060908;
  --band-bg-2: #0e1412;
  --band-border: #1f2925;
  --band-text: #e8eeeb;
  --band-muted: #9aa8a1;
  --band-accent: #22c55e;
  --band-up: #22c55e;
  --band-down: #f87171;
  --band-warn: #fbbf24;
  --ph-base: #0a0f0d;
  --ph-line: rgba(255, 255, 255, .06);
  --ph-glyph: rgba(255, 255, 255, .13);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
time { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-band :focus-visible, .site-footer :focus-visible, .newsletter--band :focus-visible { outline-color: var(--band-accent); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 12px 16px;
  background: var(--band-accent); color: #06140c;
  font: 700 14px var(--font-sans); border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #06140c; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.mono, .label {
  font-family: var(--font-mono);
}
.label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ==========================================================================
   3. Bande sombre : mention maquette + ticker + header
   ========================================================================== */
.site-band { background: var(--band-bg); color: var(--band-text); }

.mockup-notice {
  margin: 0;
  padding: 4px var(--gutter);
  background: var(--band-bg);
  border-bottom: 1px solid var(--band-border);
  color: var(--band-muted);
  font: 500 11px/16px var(--font-mono);
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.mockup-notice strong { color: var(--band-warn); font-weight: 600; }

/* ---------- Ticker (template-parts/ticker.php) ---------- */
.ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: 28px 40px;
  grid-template-areas:
    "status updated pause"
    "track track track";
  height: var(--ticker-h);       /* hauteur réservée : aucun CLS */
  overflow: hidden;
  background: var(--band-bg);
  border-bottom: 1px solid var(--band-border);
  color: var(--band-text);
  font: 500 13px/1 var(--font-mono);
}
.ticker__status {
  grid-area: status;
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  padding-inline: var(--gutter) 8px;
  color: var(--band-text);
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__status::before {
  content: '';
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--band-muted);
}
.ticker__updated {
  grid-area: updated;
  display: flex; align-items: center;
  padding-inline: 8px;
  color: var(--band-accent);
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.ticker__updated:empty { display: none; }
.ticker__pause {
  grid-area: pause;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 28px;
  padding: 0;
  background: none; border: 0;
  border-left: 1px solid var(--band-border);
  color: var(--band-muted);
  cursor: pointer;
}
.ticker__pause:hover { color: var(--band-text); }
.ticker__pause svg { width: 12px; height: 12px; }
.ticker__pause .icon-play { display: none; }
.ticker[data-paused] .ticker__pause .icon-play { display: block; }
.ticker[data-paused] .ticker__pause .icon-pause { display: none; }

.ticker__viewport {
  grid-area: track;
  overflow: hidden;
  border-top: 1px solid var(--band-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  height: 100%;
}
.tick {
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%;
  padding: 0 18px;
  border-right: 1px solid var(--band-border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tick__sym { color: var(--band-text); font-weight: 700; letter-spacing: .02em; }
.tick__price { color: var(--band-text); }
.tick__chg { font-size: 12px; font-weight: 600; }
.tick__chg:empty { display: none; }
.tick[data-trend="up"] .tick__chg { color: var(--band-up); }
.tick[data-trend="down"] .tick__chg { color: var(--band-down); }
.tick[data-trend="up"] .tick__chg::before { content: '▲ '; font-size: .75em; }
.tick[data-trend="down"] .tick__chg::before { content: '▼ '; font-size: .75em; }

/* Défilement continu uniquement si données affichables, et seulement avec JS
   (le bouton pause n'existe qu'avec JS ; sans JS, la piste défile au doigt). */
.js .ticker[data-loop][data-state="ok"] .ticker__track,
.js .ticker[data-loop][data-state="demo"] .ticker__track,
.js .ticker[data-loop][data-state="stale"] .ticker__track {
  animation: ticker-scroll 45s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker[data-paused] .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* États */
.ticker[data-state="loading"] .ticker__status { color: var(--band-muted); }
.ticker[data-state="loading"] .ticker__status::before { border-color: var(--band-muted); border-top-color: transparent; animation: ticker-spin .9s linear infinite; }
.ticker[data-state="loading"] .tick__price {
  min-width: 72px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--band-bg-2), var(--band-border), var(--band-bg-2));
  background-size: 200% 100%;
  color: transparent;
  animation: ticker-shimmer 1.4s ease-in-out infinite;
}
@keyframes ticker-spin { to { transform: rotate(360deg); } }
@keyframes ticker-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.ticker[data-state="demo"] .ticker__status::before { border-color: var(--band-accent); }

.ticker[data-state="stale"] .ticker__status,
.ticker[data-state="stale"] .ticker__updated { color: var(--band-warn); }
.ticker[data-state="stale"] .ticker__status::before { border: 0; width: 0; height: 0; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--band-warn); }
.ticker[data-state="stale"] .tick__price,
.ticker[data-state="stale"] .tick__chg { opacity: .62; }

.ticker[data-state="error"] .ticker__status { color: var(--band-down); }
.ticker[data-state="error"] .ticker__status::before { border-color: var(--band-down); background: var(--band-down); border-radius: 2px; }
.ticker[data-state="error"] .tick { color: var(--band-muted); }
.ticker[data-state="error"] .tick__sym { color: var(--band-muted); }
.ticker[data-state="error"] .tick__price { color: var(--band-muted); }
.ticker[data-state="error"] .ticker__pause,
.ticker[data-state="loading"] .ticker__pause { visibility: hidden; }

@media (min-width: 1024px) {
  .ticker {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: 100%;
    grid-template-areas: "status track updated pause";
  }
  .ticker__status { padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)) 16px; border-right: 1px solid var(--band-border); }
  .ticker__viewport { border-top: 0; }
  .ticker__updated { padding-inline: 16px; border-left: 1px solid var(--band-border); }
  .ticker__pause { height: 100%; }
}

/* ---------- Header (header.php) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--band-bg);
  color: var(--band-text);
  border-bottom: 1px solid var(--band-border);
}
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "panel panel";
  align-items: center;
  column-gap: 12px;
  min-height: var(--header-h);
}
.site-branding { grid-area: brand; display: flex; align-items: center; min-width: 0; height: 60px; }
/* Logo « Signal » (spec/logo/) : symbole SVG inline + « Crypto » 500 / « Explor » 700. */
.site-title {
  margin: 0;
  font: 500 20px/1 var(--font-display);
  letter-spacing: -.01em;
}
.site-title a { display: inline-flex; align-items: center; gap: 9px; color: var(--band-text); text-decoration: none; }
.site-title a:hover { color: var(--band-text); }
.site-title .logo-mark { flex: none; width: 1.4em; height: 1.4em; }
.site-title b { color: var(--band-brand); font-weight: 700; }

.header-tools { grid-area: tools; display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--band-border);
  border-radius: var(--radius-sm);
  color: var(--band-text);
  cursor: pointer;
  text-decoration: none;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.icon-btn:hover { border-color: var(--band-muted); color: var(--band-text); }
.icon-btn svg { width: 18px; height: 18px; flex: none; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }

.lang-switcher ul { display: flex; list-style: none; border: 1px solid var(--band-border); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switcher a {
  display: grid; place-items: center;
  min-width: 36px; height: 38px;
  padding: 0 8px;
  color: var(--band-muted);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: .05em;
  text-decoration: none;
}
.lang-switcher a:hover { color: var(--band-text); }
.lang-switcher a[aria-current] { background: var(--band-bg-2); color: var(--band-accent); }

.newsletter-link { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Panneau (mobile : tiroir sous la barre) */
.header-panel {
  grid-area: panel;
  padding: 8px 0 20px;
  border-top: 1px solid var(--band-border);
}
.js .header-panel:not(.is-open) { display: none; }
.js .header-panel.is-open { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }

.main-navigation .menu { list-style: none; }
.main-navigation a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--band-border);
  color: var(--band-text);
  font: 500 15px/1.2 var(--font-sans);
  text-decoration: none;
}
.main-navigation a:hover { color: var(--band-accent); }
.main-navigation .current-menu-item > a { color: var(--band-accent); }
.main-navigation .current-menu-item > a::after { content: '●'; font-size: 8px; }

.search-form { display: flex; gap: 8px; margin-top: 16px; }
.search-form__field {
  flex: 1; min-width: 0;
  height: 44px;
  padding: 0 14px;
  background: var(--band-bg-2);
  border: 1px solid var(--band-border);
  border-radius: var(--radius-sm);
  color: var(--band-text);
  font: 400 15px var(--font-sans);
}
.search-form__field::placeholder { color: var(--band-muted); }
.search-form__field:focus-visible { outline: 2px solid var(--band-accent); outline-offset: 0; }
.search-form__submit {
  height: 44px; padding: 0 14px;
  border: 1px solid var(--band-border);
  border-radius: var(--radius-sm);
  background: var(--band-bg-2);
  color: var(--band-text);
  cursor: pointer;
}
.search-form__submit svg { width: 18px; height: 18px; }
.panel-newsletter {
  display: flex; align-items: center; justify-content: center;
  margin-top: 12px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--band-accent);
  color: #06140c;
  font: 700 14px var(--font-sans);
  text-decoration: none;
}
.panel-newsletter:hover { color: #06140c; filter: brightness(1.08); }

@media (min-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 60px 44px;
    grid-template-areas:
      "brand search tools"
      "nav nav nav";
    column-gap: 24px;
  }
  .js .header-panel:not(.is-open), .header-panel { display: contents; }
  .menu-toggle, .panel-newsletter { display: none; }
  .main-navigation { grid-area: nav; border-top: 1px solid var(--band-border); }
  .main-navigation .menu { display: flex; gap: 2px; margin-inline: -12px; }
  .main-navigation a {
    min-height: 43px;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: var(--band-muted);
    font: 600 12px/1 var(--font-mono);
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .main-navigation a:hover { color: var(--band-text); }
  .main-navigation .current-menu-item > a { color: var(--band-text); border-bottom-color: var(--band-accent); }
  .main-navigation .current-menu-item > a::after { content: none; }
  .search-form { grid-area: search; justify-self: end; width: min(100%, 340px); margin: 0; }
  .search-form__field { height: 40px; font-size: 14px; }
  .search-form__submit { height: 40px; }
  .newsletter-link { display: inline-flex; background: var(--band-accent); border-color: var(--band-accent); color: #06140c; }
  .newsletter-link:hover { color: #06140c; border-color: var(--band-accent); filter: brightness(1.08); }
}
@media (min-width: 1280px) {
  .main-navigation a { padding: 0 16px; }
}

/* ==========================================================================
   4. Composants communs
   ========================================================================== */
.site-main { padding-bottom: var(--section-gap); }
.section { margin-top: var(--section-gap); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font: 700 13px/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.section-title::before { content: '// '; color: var(--accent); }
.more-link {
  flex: none;
  color: var(--accent);
  font: 600 12px/1.3 var(--font-mono);
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.more-link:hover { text-decoration: underline; }

.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  color: var(--muted);
  font: 500 12.5px/1.5 var(--font-mono);
}
.entry-meta time { color: var(--text); font-weight: 700; }
.entry-meta .sep { color: var(--border-strong); }
.cat-link { color: var(--accent); font: 600 11.5px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.cat-link:hover { text-decoration: underline; }

/* Badges : le sens est toujours porté par le texte */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font: 600 11px/1.2 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--critical { border-color: var(--sev-critical); background: var(--sev-critical-bg); color: var(--sev-critical); }
.badge--critical::before { content: '■'; font-size: 9px; }
.badge--important { border-color: var(--sev-important); background: var(--sev-important-bg); color: var(--sev-important); }
.badge--important::before { content: '▲'; font-size: 8px; }
.badge--info { border-color: var(--sev-info); background: var(--sev-info-bg); color: var(--sev-info); }
.badge--info::before { content: 'i'; font-weight: 800; }
.badge--confirmed { border-color: var(--status-confirmed); color: var(--status-confirmed); }
.badge--confirmed::before { content: '✓'; }
.badge--pending { border-style: dashed; border-color: var(--status-pending); color: var(--status-pending); }
.badge--pending::before { content: '…'; }
.badge--updated { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.badge--updated::before { content: '↻'; }

/* Cartes : rayon 12 px, bordure gauche = sévérité */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sev-none);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card[data-severity="critique"] { border-left-color: var(--sev-critical); }
.card[data-severity="importante"] { border-left-color: var(--sev-important); }
.card[data-severity="information"] { border-left-color: var(--sev-info); }

/* Visuels de remplacement (post-thumbnail) */
.ph {
  --h: 150;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background:
    radial-gradient(120% 90% at 85% 15%, hsl(var(--h) 70% 45% / .55), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, hsl(calc(var(--h) + 40) 60% 40% / .35), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 25% 16%), var(--ph-base));
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ph::after {
  content: attr(data-glyph);
  position: absolute; right: 6%; bottom: -4%;
  color: var(--ph-glyph);
  font: 700 clamp(72px, 22vw, 200px)/1 var(--font-display);
}
.ph--sm::after { font-size: 72px; }
.ph__tag {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(6, 9, 8, .72);
  color: #e8eeeb;
  font: 600 10.5px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph--critical { --h: 355; }
.ph--critical .ph__signal {
  position: absolute; left: 0; right: 0; top: 58%; height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e 20%, #22c55e 45%, #f87171 55%, transparent);
  box-shadow: 0 0 18px rgba(34, 197, 94, .5);
}

/* Boutons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 15px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: var(--on-accent); filter: brightness(1.1); }

/* ==========================================================================
   5. Accueil (front-page.php)
   ========================================================================== */

/* Bandeau d'alerte (template-parts/alert-banner.php) */
.alert-banner {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--sev-critical-bg);
  border: 1px solid color-mix(in srgb, var(--sev-critical) 35%, transparent);
  border-left: 4px solid var(--sev-critical);
  border-radius: var(--radius);
}
.alert-banner__level {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--sev-critical);
  font: 700 11.5px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.alert-banner__level .badge--critical { background: var(--sev-critical); color: var(--surface); }
.alert-banner__level time { color: var(--text); font-size: 13px; }
.alert-banner__title { grid-column: 1 / -1; font: 600 17px/1.35 var(--font-display); color: var(--text); }
.alert-banner__link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--sev-critical);
  font: 700 13px/1.3 var(--font-mono);
  text-decoration: underline;
}
.alert-banner__link:hover { color: var(--text); }
@media (min-width: 768px) {
  .alert-banner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 20px; gap: 16px; }
  .alert-banner__level, .alert-banner__title, .alert-banner__link { grid-column: auto; }
  .alert-banner__title { font-size: 17px; }
}

/* À la une + fil */
.front-top { display: grid; gap: var(--section-gap); margin-top: 32px; }
.front-top > .section { margin-top: 0; }

.lead-story { overflow: hidden; }
.lead-story .post-thumbnail { display: block; padding: 8px 8px 0; }
.lead-story .ph { aspect-ratio: 16 / 9; }
.lead-story__body { display: grid; gap: 14px; padding: 18px 18px 22px; }
.lead-story .entry-title { font-size: clamp(26px, 6.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.lead-story .entry-summary { color: var(--text-2); font-size: 17px; line-height: 1.55; max-width: 62ch; }
.lead-story .entry-meta .author { color: var(--text); font-family: var(--font-sans); font-weight: 600; font-size: 14px; }

.priority-list { display: grid; gap: 14px; margin-top: 16px; list-style: none; }
.priority-card { display: grid; gap: 10px; align-content: start; height: 100%; padding: 16px 18px; }
.priority-card .entry-title { font-size: 18px; line-height: 1.3; }
.priority-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.priority-card time { color: var(--text); font: 700 13px/1 var(--font-mono); }

@media (min-width: 768px) {
  .priority-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-story__body { padding: 24px 28px 28px; }
}
@media (min-width: 1024px) {
  .front-top { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
  .lead-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .lead-story .post-thumbnail { padding: 8px 0 8px 8px; }
  .lead-story .ph { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .lead-story .entry-title { font-size: 34px; }
}
@media (min-width: 1280px) {
  .front-top { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .lead-story .entry-title { font-size: 38px; }
}

/* Fil « Dernières informations » (template-parts/latest-feed.php) */
.latest-feed { list-style: none; position: relative; }
.latest-feed__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--border);
}
.latest-feed__item::before {
  content: '';
  position: absolute; left: 52px; top: 19px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}
.latest-feed__item.is-updated::before { background: var(--accent-deco); box-shadow: 0 0 0 3px var(--accent-soft); }
.latest-feed__time {
  grid-row: 1 / span 3;
  padding-top: 2px;
  color: var(--text);
  font: 700 14px/1.3 var(--font-mono);
}
.latest-feed__time small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.latest-feed__item .entry-title { font: 600 16px/1.35 var(--font-sans); letter-spacing: 0; }
.latest-feed__item .badge { justify-self: start; margin-top: 4px; }
.latest-feed + .more-link { display: inline-block; margin-top: 16px; }

/* Blocs thématiques */
.topic-grid { display: grid; gap: 40px; }
.topic-block .section-head { margin-bottom: 16px; }
.topic-lead { display: grid; gap: 12px; }
.topic-lead .entry-title { font-size: 19px; line-height: 1.3; }
.topic-list { list-style: none; margin-top: 8px; }
.topic-list li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--border); }
.topic-list li:first-child { border-top: 0; }
.topic-list .entry-title { font: 600 15.5px/1.4 var(--font-sans); letter-spacing: 0; }
@media (min-width: 640px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1200px) {
  .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
}

.trends { display: grid; gap: 16px; list-style: none; }
.trend-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; border-left-width: 1px; }
.trend-card .ph { aspect-ratio: 1; }
.trend-card .entry-title { font-size: 17px; line-height: 1.3; margin-top: 4px; }
.trend-card__body { display: grid; gap: 6px; padding-right: 6px; }
@media (min-width: 768px) {
  .trends { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .trend-card { grid-template-columns: 168px minmax(0, 1fr); }
  .trend-card .entry-title { font-size: 19px; }
}

/* Encart « Sur X / sources primaires » */
.x-feed { display: grid; gap: 14px; list-style: none; }
.x-post { margin: 0; padding: 18px; display: grid; gap: 12px; align-content: start; border-left-width: 1px; }
.x-post__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--band-bg);
  color: var(--band-accent);
  font: 700 13px/1 var(--font-mono);
}
.avatar--official { border-radius: 9px; }
.x-post__id { display: grid; min-width: 0; line-height: 1.3; }
.x-post__name { font-weight: 700; font-size: 14.5px; }
.x-post__handle { color: var(--muted); font: 500 12px var(--font-mono); }
.x-post__handle em { font-style: normal; color: var(--sev-important); font-weight: 600; }
.x-post blockquote { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.x-post blockquote p::before { content: '« '; }
.x-post blockquote p::after { content: ' »'; }
.x-post__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-top: 10px; border-top: 1px dashed var(--border); font: 500 12px var(--font-mono); color: var(--muted); }
.x-post__foot time { color: var(--text); font-weight: 700; }
.x-post__foot a { color: var(--accent); font-weight: 700; }
.x-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
@media (min-width: 768px) { .x-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .x-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Newsletter (template-parts/newsletter.php) */
.newsletter {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 28px 20px;
  border-radius: var(--radius);
}
.newsletter--band {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(34, 197, 94, .16), transparent 60%),
    var(--band-bg);
  color: var(--band-text);
  border: 1px solid var(--band-border);
}
.newsletter__kicker { color: var(--band-accent); }
.newsletter h2, .newsletter h3 { color: inherit; font-size: clamp(24px, 5vw, 32px); font-weight: 700; margin-top: 8px; }
.newsletter__pitch { margin-top: 10px; color: var(--band-muted); max-width: 52ch; }
.newsletter__pitch strong { color: var(--band-text); font-weight: 600; }
.newsletter-form { display: grid; gap: 14px; }
.newsletter-form label[for] { font: 600 13px var(--font-sans); }
.newsletter-form__row { display: grid; gap: 10px; }
.newsletter-form input[type="email"] {
  width: 100%; height: 48px;
  padding: 0 14px;
  background: var(--band-bg-2);
  border: 1px solid #3a4842;
  border-radius: var(--radius-sm);
  color: var(--band-text);
  font-size: 16px;
}
.newsletter-form input[type="email"]::placeholder { color: var(--band-muted); }
.newsletter-form .button { background: var(--band-accent); color: #06140c; }
.newsletter-form .button:hover { color: #06140c; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--band-accent); }
.check small { display: block; color: var(--band-muted); font-size: 13px; }
.newsletter-form__legal { color: var(--band-muted); font-size: 12.5px; line-height: 1.55; }
.newsletter-form__legal a { color: var(--band-text); }
.newsletter-form__legal a:hover { color: var(--band-accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Formulaire natif Brevo (extension cryptoexplor-newsletter, option « style du thème » de Brevo) */
.ce-newsletter .sib_signup_form p { margin: 0 0 10px; }
.ce-newsletter .sib_signup_form label { display: block; margin-bottom: 6px; font: 600 13px var(--font-sans); }
.ce-newsletter .sib-default-btn {
  min-height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--band-accent); color: #06140c;
  font: 700 15px/1 var(--font-sans);
  cursor: pointer;
}
.ce-newsletter .sib-default-btn:hover { filter: brightness(1.1); }
.ce-newsletter .sib-default-btn:focus-visible,
.ce-newsletter input[type="email"]:focus-visible { outline: 2px solid var(--band-accent); outline-offset: 2px; }
.ce-newsletter .sib-default-btn[disabled] { opacity: .6; cursor: progress; }
.ce-newsletter .sib-alert-message { margin: 0 0 10px; font-size: 14px; }
@media (min-width: 640px) {
  .newsletter-form__row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 1024px) {
  .newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 44px 48px; align-items: center; }
}

/* Guides utiles */
.guides { display: grid; gap: 12px; list-style: none; counter-reset: guide; }
.guide-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px;
  padding: 16px 18px;
  border-left-width: 1px;
  counter-increment: guide;
}
.guide-card::before {
  content: counter(guide, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--accent);
  font: 700 14px/1.6 var(--font-mono);
}
.guide-card .entry-title { font-size: 16.5px; line-height: 1.35; }
.guide-card .entry-meta { font-size: 12px; }
@media (min-width: 768px) { .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ==========================================================================
   6. Article (single.php)
   ========================================================================== */
.breadcrumbs { margin-top: 20px; font: 500 12.5px/1.5 var(--font-mono); color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; list-style: none; }
.breadcrumbs li { display: inline-flex; gap: 8px; min-width: 0; }
.breadcrumbs li + li::before { content: '›'; color: var(--border-strong); }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.single-layout { display: grid; gap: var(--section-gap); margin-top: 20px; }
.single-layout > * { min-width: 0; }
.entry-header { display: grid; gap: 16px; max-width: 41rem; }
.single .entry-title { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; }
.entry-lede { color: var(--text-2); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.byline .avatar { width: 44px; height: 44px; font-size: 14px; }
.byline__who { display: grid; gap: 2px; min-width: 0; }
.byline__name { font-weight: 700; font-size: 15px; }
.byline__name a { text-decoration: none; }
.byline__role { color: var(--muted); font-size: 13px; }
.byline .entry-meta { flex-basis: 100%; }
.translation-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 600 12px/1 var(--font-mono);
  text-decoration: none;
}
.translation-link:hover { border-color: var(--accent); }
@media (min-width: 640px) {
  .byline .entry-meta { flex-basis: auto; margin-left: auto; }
}

.single figure.post-thumbnail { margin: 28px 0 0; max-width: none; }
.single figure.post-thumbnail .ph { border-radius: var(--radius); aspect-ratio: 16 / 9; }
.single figure.post-thumbnail figcaption { display: grid; gap: 2px; margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.single figure.post-thumbnail figcaption .credit { font: 500 11.5px var(--font-mono); letter-spacing: .03em; }

.entry-content { max-width: 68ch; margin-top: 32px; }
/* Typographie du contenu, encadrés, journal des mises à jour et sources : voir content.css. */

.entry-footer { max-width: 41rem; display: grid; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.tags-links, .share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.tags-links a, .share-links a, .share-links button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 12.5px/1 var(--font-mono);
  text-decoration: none;
  cursor: pointer;
}
.tags-links a::before { content: '#'; color: var(--accent); }
.tags-links a:hover, .share-links a:hover, .share-links button:hover { border-color: var(--accent); color: var(--accent); }
.footer-label { margin-bottom: 10px; color: var(--muted); }

.single .newsletter { margin-top: 48px; max-width: 41rem; }
.single .newsletter { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
.single .newsletter h3 { font-size: 24px; }

/* Barre latérale (sidebar.php) */
.widget-area { display: grid; gap: 28px; align-content: start; }
.widget { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.widget-title { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font: 700 12.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.widget-title::before { content: '// '; color: var(--accent); }
.widget_toc { display: none; }
.widget_toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.widget_toc a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 0; color: var(--text-2); font-size: 14.5px; line-height: 1.4; text-decoration: none; counter-increment: toc; }
.widget_toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font: 600 12px/1.6 var(--font-mono); }
.widget_toc a:hover { color: var(--accent); }
.widget .latest-feed__item { grid-template-columns: 52px minmax(0, 1fr); padding: 10px 0; }
.widget .latest-feed__item::before { left: 42px; top: 17px; }
.widget .latest-feed__item:last-child { border-bottom: 0; }
.widget .latest-feed__item .entry-title { font-size: 14.5px; line-height: 1.4; }
.widget .latest-feed__time { font-size: 13px; }

@media (min-width: 1024px) {
  .single-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .widget-area { position: sticky; top: calc(var(--header-h) + 24px); }
  .widget_toc { display: block; }
}
@media (min-width: 1280px) {
  .single-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; }
}

.related-posts { display: grid; gap: 16px; list-style: none; }
.related-card { display: grid; gap: 12px; align-content: start; padding: 8px 8px 18px; height: 100%; }
.related-card__body { display: grid; gap: 8px; padding: 0 10px; }
.related-card .entry-title { font-size: 18px; line-height: 1.3; }
@media (min-width: 768px) { .related-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ==========================================================================
   7. Footer (footer.php)
   ========================================================================== */
.site-footer { margin-top: var(--section-gap); padding: 48px 0 28px; background: var(--band-bg); color: var(--band-muted); font-size: 14px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__about { grid-column: 1 / -1; display: grid; align-content: start; gap: 12px; max-width: 42ch; }
.site-footer .site-title { font-size: 20px; }
.site-footer h2 { margin-bottom: 14px; color: var(--band-text); font: 700 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.site-footer h2::before { content: '// '; color: var(--band-accent); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--band-text); text-decoration: none; }
.site-footer a:hover { color: var(--band-accent); text-decoration: underline; }
.site-footer__legal { display: grid; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-border); font: 500 12px/1.6 var(--font-mono); }
.site-footer__legal .fictive { color: var(--band-warn); font-weight: 600; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: auto; }
}

/* ==========================================================================
   8. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker[data-loop] .ticker__track { animation: none !important; transform: none; }
  .ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  .ticker .tick[aria-hidden="true"] { display: none; }
  .ticker__pause { display: none; }
}

/* ==========================================================================
   9. Ajouts du thème WordPress (hors maquette)
   ========================================================================== */

/* --- Barre d'administration : le header collant passe dessous --- */
@media (min-width: 601px) { .admin-bar .site-header { top: 46px; } }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

/* --- Contrôles qui n'ont de sens qu'avec JS --- */
html:not(.js) .theme-toggle,
html:not(.js) .menu-toggle,
html:not(.js) .ticker__pause { display: none; }

/* --- Logo personnalisé (Personnaliseur) --- */
.site-title .custom-logo-link { display: inline-flex; }
.site-title .custom-logo { width: auto; max-height: 32px; }

/* --- Ticker : mention de la source, données absentes --- */
.ticker__label { overflow: hidden; text-overflow: ellipsis; }
.ticker__source { flex: none; color: var(--band-muted); font-weight: 500; letter-spacing: .04em; }
.ticker__source a { color: inherit; text-decoration: underline; text-decoration-color: var(--band-border); }
.ticker__source a:hover { color: var(--band-text); }
.ticker__updated .ticker__updated-label { margin-right: .35em; }
@media (max-width: 479px) { .ticker__source { display: none; } }
.ticker[data-state="error"] .ticker__viewport { -webkit-mask-image: none; mask-image: none; }

/* --- Libellé à droite des titres de section (maquette : style inline) --- */
.section-head .label { color: var(--muted); }

/* --- Badge « rectifié » (statut de vérification) --- */
.badge--corrected { border-color: var(--status-corrected); color: var(--status-corrected); }
.badge--corrected::before { content: '↺'; }
.badge--updated time { font: inherit; color: inherit; }

/* --- Bandeau d'alerte : niveaux important / information (critique = maquette) --- */
.alert-banner[data-level="importante"] { background: var(--sev-important-bg); border-color: color-mix(in srgb, var(--sev-important) 35%, transparent); border-left-color: var(--sev-important); }
.alert-banner[data-level="importante"] .alert-banner__level,
.alert-banner[data-level="importante"] .alert-banner__link { color: var(--sev-important); }
.alert-banner__level .badge--important { background: var(--sev-important); color: var(--surface); }
.alert-banner[data-level="info"] { background: var(--sev-info-bg); border-color: color-mix(in srgb, var(--sev-info) 35%, transparent); border-left-color: var(--sev-info); }
.alert-banner[data-level="info"] .alert-banner__level,
.alert-banner[data-level="info"] .alert-banner__link { color: var(--sev-info); }
.alert-banner__level .badge--info { background: var(--sev-info); color: var(--surface); }
.alert-banner__link:hover { color: var(--text) !important; }

/* --- Images à la une réelles (la maquette utilise des visuels .ph) --- */
.post-thumbnail { display: block; }
.post-thumbnail img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--surface-2); }
@media (min-width: 1024px) {
  .lead-story .post-thumbnail img { height: 100%; aspect-ratio: auto; min-height: 340px; }
}
.trend-card .post-thumbnail img { aspect-ratio: 1; }
.single figure.post-thumbnail img { border-radius: var(--radius); }
.single figure.post-thumbnail figcaption:empty { display: none; }

/* --- Fil d'Ariane : élément courant tronqué --- */
.breadcrumbs [aria-current] { display: inline-block; }

/* --- Auteur : avatar image (Gravatar, si activé) --- */
.byline img.avatar { padding: 0; object-fit: cover; }

/* --- Lien de copie (affiché par JS) --- */
.share-links button[hidden] { display: none; }

/* --- Historique des mises à jour (template-parts/update-history.php) --- */
.update-history { max-width: 68ch; margin-top: 40px; }
.update-history__title { margin-bottom: 18px; font-size: 26px; line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 24px); }
.update-log li > span:not(.who) { color: var(--text-2); }

/* --- Archives, recherche, 404, pages --- */
.archive-header { display: grid; gap: 12px; max-width: 48rem; margin-top: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.archive-header .label { color: var(--accent); }
.archive-title { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.archive-description { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.archive-description > * + * { margin-top: .8em; }
.archive-description a { color: var(--accent); }
.archive-header__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.archive-header__count { color: var(--muted); font: 500 12.5px/1.5 var(--font-mono); }

.card-grid { display: grid; gap: 16px; margin-top: 28px; list-style: none; }
.card-grid .related-card .entry-summary { color: var(--text-2); font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.latest-feed--archive { margin-top: 16px; max-width: 56rem; }
.latest-feed--archive .latest-feed__time { font-size: 13px; }
.latest-feed--archive .latest-feed__time small { font-size: 11px; }
.latest-feed__item .entry-summary { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.no-results { margin-top: 28px; display: grid; gap: 16px; max-width: 48rem; color: var(--text-2); }

/* Formulaire de recherche sur fond clair (404, recherche, aucun résultat) */
.search-form--light { margin-top: 0; max-width: 34rem; }
.search-form--light .search-form__field,
.search-form--light .search-form__submit { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.search-form--light .search-form__field::placeholder { color: var(--muted); }
.search-form--light .search-form__field:focus-visible { outline-color: var(--focus); }

/* Pagination (the_posts_pagination) */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: 600 13px/1 var(--font-mono); text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination .page-numbers.dots { border-color: transparent; background: none; }
.page-links { margin-top: 24px; font: 600 13px var(--font-mono); }

/* Pages (page.php) : pas de barre latérale, colonne de lecture centrée sur mobile */
.page-article { max-width: 48rem; }
.page-article .entry-header { margin-top: 8px; }

/* Message aux administrateurs (newsletter non configurée…) */
.admin-hint { padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); font: 500 13px/1.5 var(--font-mono); }
.newsletter .admin-hint { color: var(--band-muted); border-color: var(--band-border); }
.newsletter__cta { justify-self: start; background: var(--band-accent); color: #06140c; }
.newsletter__cta:hover { color: #06140c; }

/* --- Zone « Sur X / sources primaires » alimentée par des blocs natifs --- */
.x-feed__item {
  display: grid; gap: 12px; align-content: start; min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.x-feed__item > * { margin: 0; }
.x-feed__title { font: 700 12px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.x-feed__item .wp-block-quote,
.x-feed__item blockquote { margin: 0; padding: 0; border: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.x-feed__item .wp-block-quote p + p { margin-top: .6em; }
.x-feed__item .wp-block-quote cite,
.x-feed__item blockquote cite {
  display: block; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--muted); font: 500 12px/1.5 var(--font-mono); font-style: normal;
}
.x-feed__item cite a { color: var(--accent); font-weight: 700; }
.x-feed__item .wp-block-embed { margin: 0; min-height: 180px; } /* réserve de place : limite le CLS des embeds X */
.x-feed__item .wp-block-embed__wrapper > * { max-width: 100% !important; }
.x-feed__item .twitter-tweet { margin: 0 !important; }

/* --- Commentaires (comments.php) --- */
.comments-area { max-width: 41rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.comments-title, .comment-reply-title { font: 700 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.comments-title::before, .comment-reply-title::before { content: '// '; color: var(--accent); }
.comment-list { list-style: none; display: grid; gap: 16px; margin-top: 20px; }
.comment-list .children { list-style: none; margin: 16px 0 0 20px; display: grid; gap: 16px; }
.comment-body { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; color: var(--muted); font: 500 12.5px/1.5 var(--font-mono); }
.comment-author .fn { color: var(--text); font-style: normal; font-weight: 700; }
.comment-content > * + * { margin-top: .8em; }
.comment-respond { margin-top: 28px; }
.comment-form { display: grid; gap: 14px; margin-top: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font: 600 13px var(--font-sans); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); font: 400 16px/1.5 var(--font-sans);
}
.comment-form .submit { min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font: 700 15px/1 var(--font-sans); cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font: 600 13px var(--font-mono); }

/* Blocs pleine largeur (100vw) : pas de défilement horizontal parasite.
   overflow: clip ne crée pas de conteneur de défilement, la barre latérale reste collante. */
.site-main { overflow-x: clip; }

/* ==========================================================================
   Flux RSS (inc/feeds.php, page-templates/feeds.php, template-parts/feed-item.php)
   ========================================================================== */
.icon-rss { width: 1em; height: 1em; flex: none; }

/* Header : icône seule sur mobile (aria-label), icône + « RSS » sur desktop */
.rss-link { color: var(--band-accent); }
.rss-link:hover { border-color: var(--band-accent); color: var(--band-accent); }
.rss-link__text { display: none; }
.panel-rss {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; height: 44px;
  border: 1px solid var(--band-border);
  border-radius: var(--radius-sm);
  color: var(--band-text);
  font: 600 14px var(--font-sans);
  text-decoration: none;
}
.panel-rss .icon-rss { color: var(--band-accent); width: 16px; height: 16px; }
.panel-rss:hover { border-color: var(--band-accent); color: var(--band-accent); }
@media (min-width: 1024px) {
  .rss-link__text { display: inline; }
  .panel-rss { display: none; }
}

/* Liens « RSS » en ligne (accueil, pied de page, newsletter, barre latérale) */
.more-link--rss { display: inline-flex; align-items: center; gap: 6px; }
.footer-feed { display: inline-flex; align-items: center; gap: 8px; }
.footer-feed .icon-rss { width: 14px; height: 14px; color: var(--band-accent); }
.newsletter__rss { margin-top: 16px; font-size: 14px; }
.newsletter__rss a { display: inline-flex; align-items: center; gap: 8px; color: var(--band-text); text-decoration: underline; text-decoration-color: var(--band-border); text-underline-offset: 3px; }
.newsletter__rss a:hover { color: var(--band-accent); text-decoration-color: currentColor; }
.newsletter__rss .icon-rss { width: 14px; height: 14px; color: var(--band-accent); }

/* Archive de catégorie : bouton « Suivre cette rubrique en RSS » */
.feed-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12.5px/1.2 var(--font-mono);
  letter-spacing: .04em;
  text-decoration: none;
}
.feed-button .icon-rss { width: 15px; height: 15px; }
.feed-button:hover { background: var(--accent); color: var(--on-accent); }

/* Barre latérale de l'article : « Suivre en RSS » */
.widget_feeds ul { list-style: none; display: grid; gap: 2px; margin-bottom: 12px; }
.widget_feeds li a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 14.5px; line-height: 1.4; text-decoration: none; }
.widget_feeds li a:hover { color: var(--accent); }
.widget_feeds .icon-rss { width: 14px; height: 14px; color: var(--accent); }

/* Page « Suivre les flux » */
.feeds-page { max-width: 56rem; }
.feeds-page__kicker { color: var(--accent); margin-bottom: 8px; }
.feeds-section { margin-top: 44px; }
.feeds-section > .section-title { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.feeds-section__intro { margin: -4px 0 16px; color: var(--muted); font-size: 15px; }
.feed-list { display: grid; gap: 16px; list-style: none; }
.feed-item {
  display: grid; gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feed-item__head { display: grid; gap: 6px; }
.feed-item__format { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.feed-item__title { font: 700 19px/1.3 var(--font-display); letter-spacing: -.01em; }
.feed-item__desc { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.feed-item__url code {
  display: block;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 500 13.5px/1.5 var(--font-mono);
  overflow-wrap: anywhere;
  user-select: all;
}
.feed-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.feed-copy {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 12.5px/1 var(--font-mono);
  letter-spacing: .03em;
  cursor: pointer;
}
.feed-copy:hover { filter: brightness(1.1); }
.feed-copy.is-copied::after { content: '✓'; }
.feed-open { color: var(--accent); font: 600 12.5px/1.3 var(--font-mono); letter-spacing: .03em; text-decoration: none; }
.feed-open:hover { text-decoration: underline; }

/* Flux d'alertes mis en évidence */
.feed-item--alerts { border-left: 4px solid var(--sev-critical); background: linear-gradient(var(--sev-critical-bg), var(--surface) 70%); }
.feed-item--alerts .feed-item__format { color: var(--sev-critical); }
.feed-item__notice {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.feed-item__notice strong { color: var(--text); }

/* Flux par rubrique : lignes compactes */
.feed-list--compact { gap: 10px; }
.feed-item--compact { gap: 8px; padding: 14px 16px; box-shadow: none; }
.feed-item--compact .feed-item__title { font: 600 16px/1.3 var(--font-sans); }
.feed-item--compact .feed-item__url code { padding: 6px 10px; font-size: 12.5px; }
.feed-item--compact .feed-copy { min-height: 34px; background: transparent; color: var(--accent); }
.feed-item--compact .feed-copy:hover { background: var(--accent); color: var(--on-accent); filter: none; }
@media (min-width: 768px) {
  .feed-item--compact {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head actions" "url url";
    align-items: center;
  }
  .feed-item--compact .feed-item__head { grid-area: head; }
  .feed-item--compact .feed-item__url { grid-area: url; }
  .feed-item--compact .feed-item__actions { grid-area: actions; }
}

/* Sites et agrégateurs */
.feeds-reuse { display: grid; gap: 12px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.feeds-reuse__list { display: grid; gap: 8px; padding-left: 1.2em; }
.feeds-reuse__list li::marker { color: var(--accent); }
.feeds-reuse a { color: var(--accent); }
