/* ============================================================
   StreamOnSport — Design System Principal
   Tailwind CSS custom layer + variables CSS
   ============================================================ */

/* Police Inter : chargée en non bloquant depuis le <head> (layouts/head.php) — plus d'@import bloquant ici. */

/* ---- Variables — palette drapeau français (bleu / blanc / rouge) ---- */
:root {
  /* Bleu drapeau (couleur principale) */
  --color-primary:       #0055A4;
  --color-primary-dark:  #003D7A;
  --color-primary-light: #2E7BC9;

  /* Rouge drapeau (accent — LIVE, alertes, urgent) */
  --color-accent:        #EF4135;
  --color-accent-dark:   #C8102E;
  --color-accent-light:  #FF6B5E;

  /* Blanc drapeau */
  --color-white:         #FFFFFF;

  --color-secondary:     #1A1A2E;

  /* Light mode */
  --bg-base:        #FFFFFF;
  --bg-surface:     #F4F6FB;
  --bg-card:        #FFFFFF;
  --text-primary:   #0F1B33;
  --text-secondary: #5B6B85;
  --text-muted:     #9AA6BD;
  --border-color:   #DDE3EE;
  --shadow-sm:      0 1px 3px rgba(0,30,80,.08);
  --shadow-md:      0 4px 16px rgba(0,30,80,.10);
  --shadow-lg:      0 8px 32px rgba(0,30,80,.14);
}

[data-theme="dark"] {
  /* Bleu plus clair pour rester lisible sur fond sombre */
  --color-primary:       #4D8FD9;
  --color-primary-dark:  #2E7BC9;
  --color-primary-light: #7AAFE5;

  /* Rouge plus chaud pour le dark */
  --color-accent:        #FF6B5E;
  --color-accent-dark:   #EF4135;
  --color-accent-light:  #FF8A80;

  --bg-base:        #0B1226;
  --bg-surface:     #131D3A;
  --bg-card:        #182549;
  --text-primary:   #EAF0FB;
  --text-secondary: #9AABCC;
  --text-muted:     #6F84A8;
  --border-color:   #243463;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.3);
  --shadow-md:      0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.5);
}

/* ---- Bande tricolore (drapeau) ---- */
.tricolor-stripe {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-primary) 33.33%,
    #FFFFFF 33.33%,
    #FFFFFF 66.66%,
    var(--color-accent) 66.66%,
    var(--color-accent) 100%
  );
}
.tricolor-border-top    { border-top: 3px solid;    border-image: linear-gradient(to right, var(--color-primary) 33%, #FFFFFF 33% 66%, var(--color-accent) 66%) 1; }
.tricolor-border-bottom { border-bottom: 3px solid; border-image: linear-gradient(to right, var(--color-primary) 33%, #FFFFFF 33% 66%, var(--color-accent) 66%) 1; }

/* ============================================================
   OVERRIDE Tailwind primary/accent → variables CSS
   Sans ça, `text-primary` et `hover:text-primary` utilisent la
   valeur hardcodée du config Tailwind (#0055A4 = bleu foncé)
   et restent illisibles en dark mode. Avec les vars, ils suivent
   le thème : dark = #4D8FD9 (bleu clair, contraste OK).
   ============================================================ */
.text-primary             { color: var(--color-primary) !important; }
.text-primary-dark        { color: var(--color-primary-dark) !important; }
.text-primary-light       { color: var(--color-primary-light) !important; }
.text-accent              { color: var(--color-accent) !important; }
.text-accent-dark         { color: var(--color-accent-dark) !important; }
.text-accent-light        { color: var(--color-accent-light) !important; }

.hover\:text-primary:hover       { color: var(--color-primary) !important; }
.hover\:text-primary-dark:hover  { color: var(--color-primary-dark) !important; }
.hover\:text-accent:hover        { color: var(--color-accent) !important; }
.hover\:text-accent-dark:hover   { color: var(--color-accent-dark) !important; }

/* hover:text-white sur un élément qui a aussi text-primary/text-accent
   doit gagner (le `!important` ci-dessus l'écrasait sinon → texte invisible
   sur fond plein primary/accent en hover). Idem pour les autres couleurs
   Tailwind utilisées dans le projet. */
.hover\:text-white:hover     { color: #FFFFFF !important; }
.hover\:text-red-600:hover   { color: #DC2626 !important; }
.hover\:text-red-700:hover   { color: #B91C1C !important; }
.hover\:text-blue-900:hover  { color: #1E3A8A !important; }
.hover\:text-amber-600:hover { color: #D97706 !important; }

/* text-white doit aussi gagner contre `.prose a` (Tailwind Typography)
   qui colore tous les liens dans le corps article — sinon le texte d'un
   bouton .bg-primary apparaît en bleu primary (même couleur que le fond
   = invisible). Idem text-black au cas où. */
.text-white { color: #FFFFFF !important; }
.text-black { color: #000000 !important; }

.group:hover .group-hover\:text-primary { color: var(--color-primary) !important; }
.group:hover .group-hover\:text-accent  { color: var(--color-accent) !important; }

/* Backgrounds pleins primary/accent : on garde la valeur FONCEE en toutes circonstances
   pour conserver le contraste 4.5:1 avec le `text-white` standard sur les boutons.
   Sans ça, en dark mode, bg-primary deviendrait bleu clair (#4D8FD9) → blanc illisible.
   Light mode = Dark mode = #0055A4 (bleu drapeau ferme). */
.bg-primary            { background-color: #0055A4 !important; }
.bg-primary-dark       { background-color: #003D7A !important; }
.bg-primary-light      { background-color: #2E7BC9 !important; }
.bg-accent             { background-color: #EF4135 !important; }
.bg-accent-dark        { background-color: #C8102E !important; }
.bg-accent-light       { background-color: #FF6B5E !important; }
.hover\:bg-primary:hover       { background-color: #0055A4 !important; }
.hover\:bg-primary-dark:hover  { background-color: #003D7A !important; }
.hover\:bg-accent:hover        { background-color: #EF4135 !important; }
.hover\:bg-accent-dark:hover   { background-color: #C8102E !important; }

/* Borders : utilisent la variable (pour matcher text-primary qui suit le thème) */
.border-primary             { border-color: var(--color-primary) !important; }
.border-accent              { border-color: var(--color-accent) !important; }
.hover\:border-primary:hover { border-color: var(--color-primary) !important; }
.hover\:border-accent:hover  { border-color: var(--color-accent) !important; }

/* Variantes avec opacité (Tailwind /10, /15, /20 etc.) — fallback : on cible les plus usitées */
.bg-primary\/10  { background-color: color-mix(in srgb, var(--color-primary) 10%, transparent) !important; }
.bg-primary\/15  { background-color: color-mix(in srgb, var(--color-primary) 15%, transparent) !important; }
.bg-primary\/20  { background-color: color-mix(in srgb, var(--color-primary) 20%, transparent) !important; }
.bg-primary\/30  { background-color: color-mix(in srgb, var(--color-primary) 30%, transparent) !important; }
.bg-accent\/10   { background-color: color-mix(in srgb, var(--color-accent) 10%, transparent) !important; }
.bg-accent\/15   { background-color: color-mix(in srgb, var(--color-accent) 15%, transparent) !important; }
.bg-accent\/20   { background-color: color-mix(in srgb, var(--color-accent) 20%, transparent) !important; }

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}

/* :where() = spécificité 0 → toute classe Tailwind `text-*` gagne (corrige le
   bug : texte qui devient invisible au hover sur les boutons bg-primary). */
:where(a) { color: var(--color-primary); text-decoration: none; transition: color .2s; }
:where(a:hover) { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TICKER — Barre scores en direct
   ============================================================ */
.ticker-bar {
  background: var(--color-primary);
  color: #fff;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  position: relative;
  z-index: 100;
}
.ticker-label {
  background: rgba(0,0,0,.25);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
  flex-shrink: 0;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ticker-scroll {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding-left: 16px;
}
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-item .score {
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: .85rem;
}
.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  color: #4ADE80;
  font-weight: 700;
}
.ticker-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse 1.2s infinite;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
  transition: background .3s;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo span { color: var(--text-primary); }

/* Nav principale */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color .2s, background .2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.nav-link .nav-icon { width: 16px; height: 16px; }

/* Mega-dropdown */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  transform: translateX(-50%) translateY(-8px);
  z-index: 200;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.mega-menu-link:hover {
  background: var(--bg-surface);
  color: var(--color-primary);
}

/* Barre de recherche */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 8px;
  flex: 1;
  max-width: 320px;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.search-bar input {
  background: none;
  border: none;
  outline: none;
  font-size: .875rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* Actions header */
.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.btn-icon:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Hamburger mobile */
.mobile-menu-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 32px 0;
}

/* ============================================================
   HERO / ARTICLE EN VEDETTE
   ============================================================ */
.hero-article {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/8;
  background: #1A1A2E;
}
.hero-article img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero-article:hover img { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: .8rem;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .card-title { color: var(--color-primary); }
.card-excerpt {
  font-size: .825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.card-views { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, var(--bg-card));
}
.widget-title {
  font-size: .875rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-body { padding: 16px 20px; }

/* Widget scores live */
.score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: .82rem;
}
.score-item:last-child { border-bottom: none; }
.score-teams { flex: 1; }
.score-team { font-weight: 500; color: var(--text-primary); }
.score-result {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  min-width: 50px;
  text-align: center;
}
.score-status {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}
.score-status.live { background: #FEF2F2; color: var(--color-primary); }
.score-status.finished { background: #F1F5F9; color: var(--text-muted); }
.score-status.upcoming { background: #EFF6FF; color: #3B82F6; }

/* Popular articles widget */
.pop-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}
.pop-item:last-child { border-bottom: none; }
.pop-rank {
  width: 24px; height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pop-rank.gold   { background: #F59E0B; }
.pop-rank.silver { background: #94A3B8; }
.pop-rank.bronze { background: #CD7C3A; }
.pop-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.pop-item:hover .pop-title { color: var(--color-primary); }

/* ============================================================
   ZONE PUBLICITAIRE
   ============================================================ */
.pub-placeholder {
  background: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 90px;
  width: 100%;
}
.pub-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.pub-wrapper { width: 100%; overflow: hidden; border-radius: 8px; }

/* Bannière pub : centrée, ne stretch JAMAIS — taille = dimensions natives de l'image,
   downscale propre si le conteneur est plus étroit. */
.pub-banner {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: max-content;          /* ne dépasse pas l'image */
  text-align: center;
  line-height: 0;              /* supprime l'espace fantôme sous l'image */
  border-radius: 12px;
  overflow: hidden;
}
.pub-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ============================================================
   Bouton "Copier le lien" — feedback visuel
   ============================================================ */
.js-copy-link {
  transition: background .2s, color .2s, transform .15s;
}
.js-copy-link.is-copied {
  background: #16a34a !important;
  color: #fff !important;
}
.js-copy-link.is-error {
  background: #dc2626 !important;
  color: #fff !important;
}
.js-copy-link.is-copied,
.js-copy-link.is-error { transform: scale(1.02); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 28px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-header { margin-bottom: 24px; }
.article-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-secondary);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}
.author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
}
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-body p { margin-bottom: 1.25em; }
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2em 0 .75em;
  color: var(--text-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 14px;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5em 0 .5em;
  color: var(--text-primary);
}
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--bg-surface));
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body ul, .article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
.article-body li { margin-bottom: .4em; }
.article-body img { border-radius: 10px; margin: 1.5em auto; }
/* Liens inline dans le contenu — exclut les boutons-CTA (qui ont leur propre bg-/text- explicite). */
.article-body a:not([class*="bg-"]):not([class*="rounded-"]) { color: var(--color-primary); font-weight: 600; }
.article-body a:not([class*="bg-"]):not([class*="rounded-"]):hover { text-decoration: underline; }

/* Tags */
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all .2s;
}
.tag-pill:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   FORMULAIRES AUTH
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-base);
}
.auth-left {
  background: linear-gradient(135deg, #1A1A2E 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.auth-illustration { width: 100%; max-width: 380px; position: relative; z-index: 1; }
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 36px;
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-subtitle { color: var(--text-secondary); font-size: .9rem; margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.input-icon {
  position: relative;
}
.input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px; height: 18px;
  pointer-events: none;
}
.form-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: .9rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.form-input.error { border-color: #EF4444; }
.form-input::placeholder { color: var(--text-muted); }
.form-error {
  font-size: .775rem;
  color: #EF4444;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
}
.toggle-pass:hover { color: var(--color-primary); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .2s;
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }

/* Social buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all .2s;
  flex: 1;
}
.social-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Checkbox */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-secondary);
}
input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   SECTION HEADER (catégorie, page titre)
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-title::after {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 4px;
  order: -1;
}
.section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb-nav a {
  color: var(--text-muted);
  font-size: .8rem;
  transition: color .2s;
}
.breadcrumb-nav a:hover { color: var(--color-primary); }
.breadcrumb-nav li:last-child span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: .8rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all .2s;
}
.pag-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pag-btn.pag-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pag-dots { color: var(--text-muted); padding: 0 4px; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-alert { border-radius: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0F0F1A;
  color: #94A3B8;
  margin-top: 64px;
}
.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid #2D2D4E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all .2s;
}
.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #F1F5F9;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .85rem; color: #64748B; transition: color .2s; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid #2D2D4E;
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
}

/* ============================================================
   NEWSLETTER WIDGET
   ============================================================ */
.newsletter-form { display: flex; gap: 8px; flex-direction: column; }
.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 9px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: .85rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--color-primary); }

/* ============================================================
   COMPTE BLOQUÉ
   ============================================================ */
.blocked-card {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.blocked-icon {
  width: 80px; height: 80px;
  background: #FEF2F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
}

/* ============================================================
   TRANSFERTS
   ============================================================ */
.transfer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow .2s;
}
.transfer-card:hover { box-shadow: var(--shadow-md); }
.transfer-clubs { display: flex; align-items: center; gap: 12px; flex: 1; }
.transfer-arrow { color: var(--color-primary); font-weight: 900; font-size: 1.2rem; }
.transfer-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.transfer-badge.officiel { background: #D1FAE5; color: #065F46; }
.transfer-badge.rumeur   { background: #FEF3C7; color: #92400E; }
.transfer-badge.proche   { background: #DBEAFE; color: #1E40AF; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: #0F0F1A;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-main { flex: 1; background: var(--bg-surface); }
.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-content { padding: 32px; }

/* ============================================================
   RESPONSIVE MOBILE / TABLETTE
   ============================================================ */
@media (max-width: 1200px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 24px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-bar { display: none; }
  .mobile-menu-btn { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.25rem; }
  .hero-content { padding: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sidebar { grid-template-columns: 1fr; }
  .content-grid { padding: 20px 0; }
  .page-wrapper { padding: 0 16px; }
  .article-title { font-size: 1.4rem; }
  .admin-sidebar { display: none; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .ticker-bar { font-size: .72rem; }
  .auth-right { padding: 24px 16px; }
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.mobile-menu-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-card);
  overflow-y: auto;
  padding: 24px;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all .2s;
}
.mobile-nav-link:hover { background: var(--bg-surface); color: var(--color-primary); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-color { color: var(--color-primary); }
.text-muted { color: var(--text-muted); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Adresse intelligente — protection copie / sélection
   ============================================================ */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.no-select * { pointer-events: none; }
.no-select { pointer-events: auto; }

/* Recherche live — masque le bouton "x" natif des inputs search */
#liveSearchInput::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Carte adresse — variations selon statut (data-status) */
#addressCard[data-status="online"]   { border-color: #16a34a; }
#addressCard[data-status="redirect"] { border-color: #2563eb; }
#addressCard[data-status="changed"]  { border-color: #d97706; }
#addressCard[data-status="offline"]  { border-color: #dc2626; opacity: .92; }

/* Match cards — léger lift */
.match-card { transition: transform .15s ease, box-shadow .15s ease; }
.match-card:hover { transform: translateY(-2px); }

/* ============================================================
   Sport tabs — état actif fiable (CSS pur, indépendant Tailwind JIT)
   ============================================================ */
.sport-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  height: 2.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.sport-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.sport-tab.active,
.sport-tab[aria-selected="true"] {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px -8px rgba(0, 85, 164, .45);
}
.sport-tab.active:hover,
.sport-tab[aria-selected="true"]:hover {
  color: #fff;
  background: var(--color-primary-dark);
}
.sport-tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   Sidebars publicitaires fixes — visible >= xl (1280px)
   Le header sticky fait ~134px de haut (top-bar + main + nav)
   ============================================================ */
.sidebar-ad {
  position: fixed;
  top: 160px;          /* sous le header complet (top-bar + main + nav cat) */
  width: 350px;
  z-index: 20;         /* sous le header (z-40) pour ne pas chevaucher au scroll */
  flex-direction: column;
  align-items: center;
}
.sidebar-ad-left  { left:  16px; }
.sidebar-ad-right { right: 16px; }

/* Si la fenêtre est trop étroite pour les pubs latérales + contenu */
@media (max-width: 1599px) {
  .sidebar-ad { width: 300px; top: 150px; }
}

/* Sidebars publicitaires : comportement par page
   - Hors home : visibles partout (comportement inchangé)
   - Sur home (body.is-home) : cachées par défaut, visibles UNIQUEMENT pendant
     les zones "above-the-fold" (H1+search+addressCard) ET "FAQ→footer".
*/
.sidebar-ad { transition: opacity .25s ease, transform .25s ease; }

body.is-home .sidebar-ad {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
}
body.is-home.show-sidebar-ads .sidebar-ad {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ============================================================
   EDITOR.JS — Rendu front (blocks générés via includes/editorjs.php)
   Compatible avec la classe Tailwind `prose` utilisée sur article.php
   ============================================================ */

.editorjs-delimiter {
  border: 0;
  width: 80px;
  margin: 2.5rem auto;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%, var(--color-primary) 33.33%,
    #fff 33.33%, #fff 66.66%,
    var(--color-accent) 66.66%, var(--color-accent) 100%
  );
}

.editorjs-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: .75rem;
  font-style: italic;
}
.editorjs-quote cite {
  display: block;
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--text-secondary);
  font-style: normal;
}

.editorjs-image { margin: 1.75rem 0; }
.editorjs-image figcaption {
  text-align: center;
  font-size: .875rem;
  color: var(--text-secondary);
  margin-top: .5rem;
}
.editorjs-image--border .editorjs-image__frame { border: 1px solid var(--border-color); }
.editorjs-image--stretched { margin-left: -2rem; margin-right: -2rem; }
.editorjs-image--stretched .editorjs-image__frame { border-radius: 0; }
.editorjs-image--bg {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: 1rem;
}

/* ---- Frame : image + toolbar overlay ---- */
.editorjs-image__frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 8px 28px -10px rgba(0,30,80,.20);
}
.editorjs-image__frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform .35s ease;
}
.editorjs-image__frame:hover img { transform: scale(1.015); }

/* ---- Toolbar overlay (bottom) — visible toujours, accentué au hover ---- */
.editorjs-image__toolbar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  color: #fff;
  opacity: .72;
  transform: translateY(0);
  transition: opacity .25s ease;
  pointer-events: auto;
}
.editorjs-image__frame:hover .editorjs-image__toolbar,
.editorjs-image__frame:focus-within .editorjs-image__toolbar {
  opacity: 1;
}

.editorjs-image__credit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editorjs-image__credit i { font-size: .9rem; opacity: .8; }

.editorjs-image__actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* ---- Boutons toolbar — drapeau aligné ---- */
.editorjs-image__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem .85rem;
  border-radius: .5rem;
  border: 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .015em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
}
.editorjs-image__btn i { font-size: 1rem; line-height: 1; }
.editorjs-image__btn:hover { transform: translateY(-1px); }

/* Bouton NordVPN — rouge drapeau */
.editorjs-image__btn--vpn {
  background: var(--color-accent);
  color: #fff !important;
  box-shadow: 0 4px 12px -3px rgba(239,65,53,.55);
}
.editorjs-image__btn--vpn:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 8px 18px -4px rgba(239,65,53,.7);
}

/* Bouton zoom — blanc semi-transparent */
.editorjs-image__btn--zoom {
  background: rgba(255,255,255,.18);
  color: #fff !important;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
}
.editorjs-image__btn--zoom:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 640px) {
  .editorjs-image__btn--vpn span { display: none; }   /* sur mobile, juste l'icône */
  .editorjs-image__btn--vpn { width: 2rem; height: 2rem; padding: 0; }
  .editorjs-image__credit { font-size: .7rem; }
  .editorjs-image__toolbar { opacity: 1; padding: .5rem .65rem; }
}

/* ============================================================
   LIGHTBOX — zoom plein écran (injecté par JS)
   ============================================================ */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 18, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lightboxFade .25s ease;
  cursor: zoom-out;
}
@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.image-lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  cursor: zoom-out;
  animation: lightboxImg .35s ease;
}
@keyframes lightboxImg {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.image-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.image-lightbox__close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.05);
}
.image-lightbox__close i { font-size: 1.2rem; }

.image-lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.5);
  padding: .5rem 1rem;
  border-radius: 9999px;
  font-size: .85rem;
  max-width: 80vw;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.image-lightbox__vpn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: .6rem;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px -4px rgba(239,65,53,.6);
  transition: transform .2s, box-shadow .2s;
}
.image-lightbox__vpn:hover { transform: translateY(-2px); }
.image-lightbox__vpn i { font-size: 1.1rem; }

/* lock scroll quand lightbox ouverte */
body.lightbox-open { overflow: hidden; }

.editorjs-checklist { list-style: none; padding: 0; }
.editorjs-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: .35rem 0;
}
.ejs-cb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--border-color);
  border-radius: .25rem;
  margin-top: .15rem;
  flex-shrink: 0;
  color: #fff;
  font-size: .8rem;
  background: var(--bg-card);
}
.ejs-cb--checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.editorjs-checklist__item--checked > span:last-child {
  text-decoration: line-through;
  color: var(--text-muted);
}

.editorjs-link {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  text-decoration: none !important;
  color: var(--text-primary);
  transition: border-color .2s, transform .2s;
}
.editorjs-link:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.editorjs-link__img {
  flex-shrink: 0;
  width: 100px;
  border-radius: .5rem;
  overflow: hidden;
}
.editorjs-link__img img { width: 100%; height: 100%; object-fit: cover; }
.editorjs-link__body { flex: 1; min-width: 0; }
.editorjs-link__title { font-weight: 700; }
.editorjs-link__desc {
  color: var(--text-secondary);
  font-size: .875rem;
  margin-top: .25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.editorjs-link__host { color: var(--text-muted); font-size: .75rem; margin-top: .25rem; }

.editorjs-embed {
  margin: 1.5rem 0;
}
.editorjs-embed__wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}
.editorjs-embed__wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.editorjs-embed figcaption {
  text-align: center;
  color: var(--text-secondary);
  font-size: .875rem;
  margin-top: .5rem;
}

.editorjs-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.editorjs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.editorjs-table th, .editorjs-table td {
  padding: .65rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}
.editorjs-table th {
  background: var(--bg-surface);
  font-weight: 700;
}

.editorjs-warning {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: .75rem;
  color: #78350F;
}
[data-theme="dark"] .editorjs-warning {
  background: rgba(245, 158, 11, .12);
  color: #FCD34D;
}
.editorjs-warning i { font-size: 1.5rem; flex-shrink: 0; }
.editorjs-warning__title { display: block; margin-bottom: .25rem; }
.editorjs-warning__msg { margin: 0; }

.editorjs-code {
  background: #0F1B33;
  color: #EAF0FB;
  padding: 1.25rem;
  border-radius: .75rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.editorjs-code code { background: transparent; padding: 0; color: inherit; }

.editorjs-attach {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: .75rem;
  text-decoration: none !important;
  color: var(--text-primary);
  margin: 1rem 0;
  transition: border-color .2s, background .2s;
}
.editorjs-attach:hover {
  border-color: var(--color-primary);
  background: var(--bg-surface);
}
.editorjs-attach__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.editorjs-attach__body { display: flex; flex-direction: column; }
.editorjs-attach__size { font-size: .75rem; color: var(--text-secondary); margin-top: .15rem; }

/* Marker — surlignage */
mark {
  background: linear-gradient(transparent 60%, rgba(245, 158, 11, .45) 60%);
  padding: 0 .15em;
  color: inherit;
}

/* ============================================================
   VIDÉO MISE EN AVANT — article hero
   ============================================================ */
.featured-video {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0,30,80,.25);
  background: #000;
}
.featured-video__wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.featured-video__wrap iframe,
.featured-video--native video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.featured-video--native {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.featured-video--native video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ============================================================
   TOC — sommaire collapsible (<details>) drapeau
   ============================================================ */
.editorjs-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-primary);
  border-radius: 1rem;
  padding: 0;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
}
.editorjs-toc summary { list-style: none; cursor: pointer; user-select: none; }
.editorjs-toc summary::-webkit-details-marker { display: none; }
.editorjs-toc__head {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 1.25rem 1.5rem;
  transition: background .2s;
}
.editorjs-toc__head:hover { background: rgba(0,85,164,.05); }
.editorjs-toc__head > i:first-child { color: var(--color-primary); font-size: 1.25rem; }
.editorjs-toc__count {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: .15rem .55rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  text-transform: none;
  letter-spacing: 0;
}
.editorjs-toc__chevron { color: var(--color-primary); transition: transform .3s ease; font-size: 1rem; }
.editorjs-toc[open] .editorjs-toc__chevron { transform: rotate(180deg); }
.editorjs-toc > .editorjs-toc__list { padding: 0 1.5rem 1.25rem; }
.editorjs-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-item;
}
.editorjs-toc__item {
  position: relative;
  padding: .35rem 0 .35rem 2rem;
  counter-increment: toc-item;
  border-bottom: 1px dashed var(--border-color);
}
.editorjs-toc__item:last-child { border-bottom: 0; }
.editorjs-toc__item::before {
  content: counter(toc-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .4rem;
  font-weight: 800;
  font-size: .8rem;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.editorjs-toc__item--lvl3 {
  padding-left: 3rem;
  font-size: .9rem;
}
.editorjs-toc__item--lvl3::before {
  left: 1.25rem;
  color: var(--text-secondary);
  font-size: .7rem;
}
.editorjs-toc__item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.editorjs-toc__item a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Offset pour ancre (sticky header) */
.prose h2[id], .prose h3[id] {
  scroll-margin-top: 6rem;
}

/* ============================================================
   LISTES EMBELLIES — éditorialisées
   ============================================================ */
.editorjs-list {
  margin: 1.25rem 0;
  padding-left: 0;
  list-style: none;
}
.editorjs-list > li {
  position: relative;
  padding: .35rem 0 .35rem 1.85rem;
  line-height: 1.6;
}

/* Liste à puces : pastille tricolore */
.editorjs-list--unordered > li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .9rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,85,164,.15);
}

/* Liste numérotée : badge rond bleu */
.editorjs-list--ordered { counter-reset: ejs-ord; }
.editorjs-list--ordered > li {
  counter-increment: ejs-ord;
  padding-left: 2.5rem;
  min-height: 1.75rem;
}
.editorjs-list--ordered > li::before {
  content: counter(ejs-ord);
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px -2px rgba(0,85,164,.35);
}

/* Listes imbriquées : couleur secondaire */
.editorjs-list--nested {
  margin: .35rem 0 .35rem 1rem !important;
}
.editorjs-list--nested.editorjs-list--unordered > li::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(239,65,53,.15);
  width: .5rem;
  height: .5rem;
  top: 1rem;
}

/* ============================================================
   CTA BUTTON inline HTML dans articles importés (.prose a.bg-primary)
   ----------
   Problème : les articles legacy contiennent du HTML brut style :
     <a class="bg-primary text-white font-bold ...">Voir l'offre</a>
   Or `.prose` applique `prose-a:text-primary` qui force `color: #0055A4`
   → texte bleu sur fond bleu (`bg-primary` = #0055A4) → invisible.
   Le hover sauvait la mise (changement de teinte). On force le texte
   blanc partout et on style la "→" en flèche Phosphor.
   ============================================================ */
.prose a[class*="bg-primary"],
.prose a[class*="bg-accent"],
.prose a[class*="bg-flag-red"],
.prose a[class*="bg-flag-blue"] {
  color: #fff !important;
  text-decoration: none !important;
}
.prose a[class*="bg-primary"]:hover,
.prose a[class*="bg-accent"]:hover,
.prose a[class*="bg-flag-red"]:hover,
.prose a[class*="bg-flag-blue"]:hover {
  color: #fff !important;
  text-decoration: none !important;
}
/* Si l'auteur a écrit "→" en texte, on le présente comme une flèche
   plus jolie (cercle blanc semi-transparent + flèche Phosphor masquée). */
.prose a[class*="bg-primary"] > span:last-child,
.prose a[class*="bg-accent"]  > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform .2s ease;
}
.prose a[class*="bg-primary"]:hover > span:last-child,
.prose a[class*="bg-accent"]:hover  > span:last-child {
  transform: translateX(3px);
}

/* ============================================================
   CTA BUTTON — palette drapeau France (bleu / blanc / rouge)
   Rectangles légèrement arrondis (.6rem), contrastes garantis
   en light ET dark mode.
   ============================================================ */
.editorjs-cta-wrap { margin: 1.5rem 0; display: flex; }
.editorjs-cta-wrap--left   { justify-content: flex-start; }
.editorjs-cta-wrap--center { justify-content: center; }
.editorjs-cta-wrap--right  { justify-content: flex-end; }

.editorjs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .9rem 1.6rem;
  border-radius: .6rem;            /* rectangle avec coins légèrement arrondis */
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .015em;
  line-height: 1.25;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  /* fix lisibilité : pas de mix-blend-mode hérité */
  isolation: isolate;
}
.editorjs-cta i { font-size: 1.1em; flex-shrink: 0; line-height: 1; }
.editorjs-cta span { display: inline-block; }
.editorjs-cta:hover { transform: translateY(-2px); }
.editorjs-cta:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ---- Bleu drapeau (action principale) ---- */
.editorjs-cta--primary {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(0,85,164,.50);
}
.editorjs-cta--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 10px 24px -8px rgba(0,85,164,.65);
}
[data-theme="dark"] .editorjs-cta--primary {
  background: var(--color-primary);            /* var bleue plus claire en dark */
  color: #0B1226 !important;                   /* texte foncé sur bleu clair */
  box-shadow: 0 6px 18px -6px rgba(77,143,217,.5);
}
[data-theme="dark"] .editorjs-cta--primary:hover {
  background: var(--color-primary-light);
  color: #0B1226 !important;
}

/* ---- Rouge drapeau (urgent, LIVE, alertes) ---- */
.editorjs-cta--accent {
  background: var(--color-accent);
  color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(239,65,53,.50);
}
.editorjs-cta--accent:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 10px 24px -8px rgba(239,65,53,.65);
  color: #fff !important;
}
[data-theme="dark"] .editorjs-cta--accent {
  color: #0B1226 !important;                   /* var accent plus claire en dark */
}
[data-theme="dark"] .editorjs-cta--accent:hover { color: #0B1226 !important; }

/* ---- Blanc drapeau — fond clair, texte bleu, bordure bleue ---- */
.editorjs-cta--white {
  background: #fff;
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px -4px rgba(0,30,80,.18);
}
.editorjs-cta--white:hover {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}
[data-theme="dark"] .editorjs-cta--white {
  background: var(--bg-card);
  color: var(--color-primary) !important;       /* primary = déjà variante claire en dark */
  border-color: var(--color-primary);
}
[data-theme="dark"] .editorjs-cta--white:hover {
  background: var(--color-primary);
  color: #0B1226 !important;
}

/* ---- Tricolore — bandeau drapeau en haut + fond bleu lisible ---- */
.editorjs-cta--tricolor {
  background: var(--color-primary);
  color: #fff !important;
  position: relative;
  padding-top: calc(.9rem + 5px);                /* compense le bandeau drapeau */
  border-radius: 0 0 .6rem .6rem;                /* coins bas arrondis seulement */
  box-shadow: 0 6px 18px -6px rgba(0,85,164,.50);
  overflow: hidden;
}
.editorjs-cta--tricolor::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(to right,
    var(--color-primary) 0%,  var(--color-primary) 33.33%,
    #fff 33.33%, #fff 66.66%,
    var(--color-accent) 66.66%, var(--color-accent) 100%);
}
.editorjs-cta--tricolor:hover { background: var(--color-primary-dark); color: #fff !important; }
[data-theme="dark"] .editorjs-cta--tricolor {
  color: #0B1226 !important;
}
[data-theme="dark"] .editorjs-cta--tricolor:hover { color: #0B1226 !important; }

/* ---- Outline bleu (alternative discrète) ---- */
.editorjs-cta--outline {
  background: transparent;
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
}
.editorjs-cta--outline:hover {
  background: var(--color-primary);
  color: #fff !important;
}
[data-theme="dark"] .editorjs-cta--outline:hover { color: #0B1226 !important; }

/* ---- Ghost — bleu très clair ---- */
.editorjs-cta--ghost {
  background: rgba(0,85,164,.10);
  color: var(--color-primary) !important;
}
.editorjs-cta--ghost:hover { background: rgba(0,85,164,.18); }
[data-theme="dark"] .editorjs-cta--ghost {
  background: rgba(77,143,217,.18);
  color: var(--color-primary) !important;
}
[data-theme="dark"] .editorjs-cta--ghost:hover { background: rgba(77,143,217,.28); }

/* ============================================================
   CTA CARD — palette drapeau France uniquement
   ============================================================ */
.editorjs-cta-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 1.25rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(0,85,164,.08) 0%, rgba(46,123,201,.08) 100%);
  border: 1px solid rgba(0,85,164,.18);
  position: relative;
  overflow: hidden;
}
.editorjs-cta-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--color-primary);
}

/* Rouge drapeau (alertes, blocages, urgent) */
.editorjs-cta-card--red {
  background: linear-gradient(135deg, rgba(239,65,53,.08), rgba(255,107,94,.08));
  border-color: rgba(239,65,53,.2);
}
.editorjs-cta-card--red::before { background: var(--color-accent); }
.editorjs-cta-card--red .editorjs-cta-card__icon { background: var(--color-accent); }

/* Blanc drapeau (neutre, mise en avant douce) */
.editorjs-cta-card--white {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.editorjs-cta-card--white::before {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}
.editorjs-cta-card--white .editorjs-cta-card__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* Tricolore — drapeau complet en bandeau + dégradé subtil */
.editorjs-cta-card--tricolor {
  background:
    linear-gradient(135deg, rgba(0,85,164,.08) 0%, rgba(255,255,255,.4) 50%, rgba(239,65,53,.08) 100%),
    var(--bg-card);
  border: 1px solid rgba(0,85,164,.18);
  border-top: 0;
  padding-top: calc(1.75rem + 4px);
}
.editorjs-cta-card--tricolor::before {
  content: "";
  inset: 0 0 auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right,
    var(--color-primary) 0%, var(--color-primary) 33.33%,
    #fff 33.33%, #fff 66.66%,
    var(--color-accent) 66.66%, var(--color-accent) 100%);
}
.editorjs-cta-card--tricolor .editorjs-cta-card__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* Bleu (par défaut — déjà géré par les règles racines) */

.editorjs-cta-card__img {
  flex-shrink: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  overflow: hidden;
}
.editorjs-cta-card__img img { width: 100%; height: 100%; object-fit: cover; }

.editorjs-cta-card__body { flex: 1; min-width: 0; }

/* Brand badge NordVPN auto-injecté en haut de la carte CTA */
.editorjs-cta-card__brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .5rem;
  padding: .35rem .6rem;
  margin-bottom: .75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.editorjs-cta-card__brand img {
  height: 1.5rem;
  width: auto;
  display: block;
}
/* Sur carte sombre (red/tricolor/primary), badge garde fond clair */
.editorjs-cta-card--tricolor .editorjs-cta-card__brand,
.editorjs-cta-card--red .editorjs-cta-card__brand {
  background: #fff;
}
/* Sur carte blanche, badge prend un fond très léger */
.editorjs-cta-card--white .editorjs-cta-card__brand {
  background: #f8fafc;
  border-color: rgba(0,0,0,.08);
}
/* Accent visuel léger pour les cartes NordVPN */
.editorjs-cta-card--nordvpn {
  position: relative;
}
.editorjs-cta-card--nordvpn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(70, 135, 255, .25);
}
@media (prefers-color-scheme: dark) {
  .editorjs-cta-card__brand { background: #f8fafc; border-color: rgba(255,255,255,.1); }
}

.editorjs-cta-card__icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.editorjs-cta-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .35rem 0;
  color: var(--text-primary);
}
.editorjs-cta-card__text {
  color: var(--text-secondary);
  margin: 0 0 1.1rem 0;
  line-height: 1.5;
}
.editorjs-cta-card__action { margin-top: .25rem; }

@media (max-width: 640px) {
  .editorjs-cta-card { flex-direction: column; text-align: left; padding: 1.25rem; }
  .editorjs-cta-card__img { width: 100%; height: 12rem; }
}

/* ============================================================
   PHOSPHOR ICONS — couleurs sémantiques automatiques
   Appliqué dans le contenu Editor.js (tableaux, listes, paragraphes…)
   pour rendre les icônes "parlantes" sans avoir à les colorer à la main.
   ============================================================ */
.prose i[class*="ph-"],
.editorjs-table i[class*="ph-"],
.editorjs-faq__a i[class*="ph-"] {
  vertical-align: -2px;
  margin-right: .15em;
  font-size: 1.1em;
}

/* --- Status : SUCCÈS / OK / VRAI / DÉBLOQUÉ --- */
.prose .ph-check-circle,
.prose .ph-check,
.prose .ph-checks,
.prose .ph-check-square,
.prose .ph-seal-check,
.prose .ph-shield-check,
.prose .ph-thumbs-up,
.editorjs-table .ph-check-circle,
.editorjs-table .ph-check,
.editorjs-table .ph-shield-check {
  color: #16a34a; /* green-600 */
}

/* --- Status : ERREUR / KO / FAUX / BLOQUÉ --- */
.prose .ph-x-circle,
.prose .ph-x,
.prose .ph-x-square,
.prose .ph-prohibit,
.prose .ph-prohibit-inset,
.prose .ph-shield-warning,
.prose .ph-shield-slash,
.prose .ph-thumbs-down,
.editorjs-table .ph-x-circle,
.editorjs-table .ph-x,
.editorjs-table .ph-prohibit {
  color: #dc2626; /* red-600 */
}

/* --- Status : ATTENTION / CRITIQUE --- */
.prose .ph-warning,
.prose .ph-warning-circle,
.prose .ph-warning-octagon,
.prose .ph-warning-diamond,
.prose .ph-bell-ringing,
.prose .ph-siren,
.editorjs-table .ph-warning,
.editorjs-table .ph-warning-circle {
  color: #dc2626; /* red-600 */
}

/* --- Status : INFO / IMPORTANT --- */
.prose .ph-info,
.prose .ph-question,
.prose .ph-circle-wavy-question,
.editorjs-table .ph-info {
  color: #d97706; /* amber-600 */
}

/* --- Récompenses / Premium --- */
.prose .ph-star,
.prose .ph-medal,
.prose .ph-medal-military,
.prose .ph-crown,
.prose .ph-crown-simple,
.prose .ph-trophy,
.editorjs-table .ph-star,
.editorjs-table .ph-medal,
.editorjs-table .ph-trophy {
  color: #d97706; /* amber-600 — or chaleureux */
}

/* --- Urgence / LIVE / Hot --- */
.prose .ph-fire,
.prose .ph-flame,
.prose .ph-lightning,
.prose .ph-broadcast,
.editorjs-table .ph-fire {
  color: #ea580c; /* orange-600 */
}

/* --- Cadenas / Sécurité --- */
.prose .ph-lock,
.prose .ph-lock-key,
.prose .ph-lock-simple,
.prose .ph-key,
.editorjs-table .ph-lock {
  color: #2563eb; /* blue-600 */
}

/* --- Cœur / Like --- */
.prose .ph-heart {
  color: #e11d48; /* rose-600 */
}

/* --- Drapeaux / Pays --- */
.prose .ph-flag,
.prose .ph-flag-pennant,
.prose .ph-flag-checkered,
.editorjs-table .ph-flag {
  color: var(--color-primary);
}

/* --- Globe / International --- */
.prose .ph-globe,
.prose .ph-globe-hemisphere-west,
.prose .ph-globe-hemisphere-east,
.prose .ph-globe-simple {
  color: var(--color-primary);
}

/* --- Sport (icônes thématiques génériques) --- */
.prose .ph-soccer-ball,
.prose .ph-basketball,
.prose .ph-tennis-ball,
.prose .ph-football,
.prose .ph-baseball,
.prose .ph-volleyball {
  color: var(--color-primary);
}

/* --- TV / Streaming --- */
.prose .ph-television,
.prose .ph-television-simple,
.prose .ph-monitor-play,
.prose .ph-play-circle,
.prose .ph-play,
.editorjs-table .ph-television {
  color: var(--color-primary);
}

/* --- Dark mode : ajustements pour ne pas perdre en lisibilité --- */
[data-theme="dark"] .prose .ph-check-circle,
[data-theme="dark"] .prose .ph-check,
[data-theme="dark"] .prose .ph-checks,
[data-theme="dark"] .prose .ph-shield-check,
[data-theme="dark"] .editorjs-table .ph-check-circle,
[data-theme="dark"] .editorjs-table .ph-check { color: #22c55e; /* green-500 */ }

[data-theme="dark"] .prose .ph-x-circle,
[data-theme="dark"] .prose .ph-x,
[data-theme="dark"] .prose .ph-prohibit,
[data-theme="dark"] .prose .ph-warning,
[data-theme="dark"] .prose .ph-warning-circle,
[data-theme="dark"] .editorjs-table .ph-x-circle,
[data-theme="dark"] .editorjs-table .ph-warning { color: #ef4444; /* red-500 */ }

[data-theme="dark"] .prose .ph-info,
[data-theme="dark"] .prose .ph-question { color: #f59e0b; /* amber-500 */ }

[data-theme="dark"] .prose .ph-star,
[data-theme="dark"] .prose .ph-medal,
[data-theme="dark"] .prose .ph-crown,
[data-theme="dark"] .prose .ph-trophy { color: #fbbf24; /* amber-400 */ }

[data-theme="dark"] .prose .ph-fire,
[data-theme="dark"] .prose .ph-flame,
[data-theme="dark"] .prose .ph-lightning,
[data-theme="dark"] .prose .ph-broadcast { color: #fb923c; /* orange-400 */ }

[data-theme="dark"] .prose .ph-lock,
[data-theme="dark"] .prose .ph-lock-key,
[data-theme="dark"] .prose .ph-key { color: #60a5fa; /* blue-400 */ }

[data-theme="dark"] .prose .ph-heart { color: #fb7185; /* rose-400 */ }

/* ============================================================
   FAQ — accordion drapeau (auto-détection blocs Q/A dans l'article)
   ============================================================ */
.editorjs-faq {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 1rem 0 2rem;
}
.editorjs-faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: .85rem;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.editorjs-faq__item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px -4px rgba(0,85,164,.18);
}
.editorjs-faq__item summary { list-style: none; cursor: pointer; user-select: none; }
.editorjs-faq__item summary::-webkit-details-marker { display: none; }

.editorjs-faq__q {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  transition: background .2s;
}
.editorjs-faq__item:hover .editorjs-faq__q { background: var(--bg-surface); }

.editorjs-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background .2s;
}
.editorjs-faq__item[open] .editorjs-faq__icon {
  background: var(--color-accent);
}

.editorjs-faq__qtext { flex: 1; line-height: 1.35; }

.editorjs-faq__chevron {
  color: var(--text-secondary);
  font-size: .95rem;
  transition: transform .3s ease, color .2s;
  flex-shrink: 0;
}
.editorjs-faq__item[open] .editorjs-faq__chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.editorjs-faq__a {
  padding: 0 1.25rem 1.1rem 4.1rem;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.65;
  border-top: 1px dashed var(--border-color);
  padding-top: .9rem;
  margin-top: 0;
  animation: faqSlide .35s ease;
}
.editorjs-faq__a p { margin: .25rem 0; }
.editorjs-faq__a a { color: var(--color-primary); font-weight: 600; }
.editorjs-faq__a ul, .editorjs-faq__a ol { margin: .35rem 0; padding-left: 0; }

@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .editorjs-faq__a { padding-left: 1.25rem; }
}

/* ============================================================
   CTA BUILDER — interface admin Editor.js (custom blocks)
   ============================================================ */
.cta-builder {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: .75rem;
  margin: .35rem 0;
}
.cta-builder__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.cta-builder__head i { font-size: 1.1rem; }
.cta-builder__field {
  display: block;
  margin-bottom: .65rem;
}
.cta-builder__field > span {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: .25rem;
  letter-spacing: .05em;
}
.cta-builder__field input,
.cta-builder__field textarea,
.cta-builder__field select {
  width: 100%;
  padding: .5rem .65rem;
  border-radius: .35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: .9rem;
}
.cta-builder__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
@media (max-width: 720px) {
  .cta-builder__row { grid-template-columns: 1fr; }
}
.cta-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--border-color);
}
.cta-preview__label {
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
}
