/* =====================================================================
   he-blog-neural.css — Peau « NEURAL v3 » du blog Agence IA Toulouse
   ---------------------------------------------------------------------
   Prolongement visuel du site www.agence-ia-toulouse.fr (design system
   « NEURAL · bleu pro »). Remplace la peau he-blog.css (nuit/bleu/ORANGE
   /low-poly) : l'orange est BANNI, remplacé par le bleu ciel --accent.
   Tokens & composants repris à l'identique de he-agence-ia-toulouse-v3.css.
   Chargée UNIQUEMENT sur les pages blog (cf. header.php).
   Le markup BEM he-* du module est conservé ; on ne change QUE la peau.
   Commentaires FR, identifiants EN.
   ===================================================================== */

/* =====================================================================
   0. TOKENS NEURAL v3 (repris à l'identique du :root du site)
   ===================================================================== */
:root {
  /* encre bleu-nuit (en-têtes, héros, CTA, cartes teaser) */
  --ink-900:#060912;  --ink-800:#08101F;  --ink-700:#0B1525;
  --ink-600:#0F1B30;  --surface:#0E1A2E;   --surface-2:#122036;
  --line:rgba(120,150,200,.13);  --line-strong:rgba(120,150,200,.24);

  /* bleu pro, sobre */
  --blue:#2563EB;  --blue-600:#1D4ED8;  --blue-700:#1E40AF;
  --blue-300:#60A5FA;  --blue-200:#93C5FD;
  --accent:#38BDF8;        /* bleu ciel — accents, liens, filets, hovers */
  --accent-warm:#F59E0B;   /* NON UTILISÉ sur le blog (banni) */

  --text:#EAF0FA;  --text-dim:#A6B2CC;  --text-mute:#6E7C9A;

  /* surfaces claires (le CORPS d'article vit ici) */
  --light-bg:#F4F7FC;  --light-bg-2:#EAF0FA;  --light-surface:#FFFFFF;
  --light-line:rgba(15,27,45,.10);  --light-line-strong:rgba(15,27,45,.16);
  --light-text:#0B1525;  --light-dim:#475569;  --light-mute:#7A8AA3;

  --black-bg:#04060C;

  --grad:linear-gradient(120deg,#2563EB 0%,#1D4ED8 55%,#1E3A8A 100%);
  --grad-bright:linear-gradient(120deg,#3B82F6 0%,#2563EB 60%,#1D4ED8 100%);
  --grad-soft:linear-gradient(120deg,rgba(37,99,235,.14),rgba(29,78,216,.10));

  --radius:18px;  --radius-sm:12px;  --maxw:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);  --ease-out:cubic-bezier(.16,1,.3,1);

  --font-display:'Space Grotesk',sans-serif;
  --font-body:'Inter',sans-serif;
  --font-mono:'JetBrains Mono',monospace;

  /* --- Rétro-compat : on redéfinit les tokens he-* de he-blog.css sur la
     palette NEURAL, pour que TOUTE règle he-blog.css restée active (l'orange,
     le bleu du CMS…) bascule automatiquement, sans orange résiduel. --- */
  --he-nuit:        #08101F;   /* ex #0a1228 -> ink-800 */
  --he-nuit2:       #0B1525;   /* ex #141a34 -> ink-700 */
  --he-bleu:        #2563EB;   /* ex #3d5297 -> blue */
  --he-bleu2:       #1D4ED8;   /* ex #4b62ad -> blue-600 */
  --he-bleu3:       #60A5FA;   /* ex #86a6ec -> blue-300 */
  --he-orange:      #38BDF8;   /* ORANGE BANNI -> accent bleu ciel */
  --he-or:          #93C5FD;   /* doré banni -> blue-200 */
  --he-gris-bg:     #F4F7FC;   /* ex #F7F7F7 -> light-bg */
  --he-texte:       #0B1525;   /* ex #15213f -> light-text */
  --he-texte-doux:  #475569;   /* ex #4a5568 -> light-dim */
  --he-radius-panel:18px;      /* ex 26px -> radius (v3 plus serré) */
}

/* =====================================================================
   1. ATMOSPHÈRE & TYPO GLOBALES
   Le blog est de la LECTURE LONGUE : le corps reste CLAIR (--light-bg).
   Les zones sombres (en-têtes, CTA, cartes teaser) portent les halos.
   he-blog-neural.css n'est chargé QUE sur le blog : cibler body est sûr.
   ===================================================================== */
body {
  background: var(--light-bg);
  color: var(--light-text);
  font-family: var(--font-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Décale le contenu sous la nav fixe (nav v3 : hauteur 74px). */
main#main { padding-top: 74px; }

/* Titres : Space Grotesk 600 (voix v3), plus le mono généralisé sur la
   ligne éditoriale (méta/labels/badges) — voir chaque composant. */
.he-listing-header__h1,
.he-article-header__h1,
.he-featured__titre a,
.he-card-article__titre a,
.he-card-connexe__titre a,
.he-cta-article__titre,
.he-article-corps h2,
.he-article-corps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
}

/* Texte clippé en dégradé (option .grad-text sur un mot-clé de titre). */
.grad-text {
  background: var(--grad-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* En section claire, dégradé plus foncé pour rester lisible sur blanc. */
.he-article-corps .grad-text,
.he-cat-intro .grad-text {
  background: linear-gradient(120deg,#2563EB,#1D4ED8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pilule mono translucide « techno » (badges de catégorie, style .sys-tool v3).
   Utilisée pour tous les badges du blog, lisible sur photo sombre. */
.he-badge,
.he-card-article__badge,
.he-card-connexe__badge {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(8,16,31,.82);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.8);
}

/* =====================================================================
   2. EN-TÊTES SOMBRES (listing + article + auteur) — patterns v3
   Fond encre + halos radiaux bleus (body::before v3) + grille technique
   (body::after v3) + filet lumineux --accent en bas (.section-black::after).
   ===================================================================== */
.he-listing-header,
.he-article-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border-bottom: 1px solid rgba(56,189,248,.10);
}
.he-listing-header { padding: calc(74px + 3.5rem) 2rem 3rem; }
.he-article-header { padding: calc(74px + 3rem) 2rem 4rem; }

/* Halos radiaux bleus (repris de body::before v3). */
.he-listing-header::before,
.he-article-header::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 80% -10%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(760px 680px at 6% 8%, rgba(29,78,216,.12), transparent 56%),
    radial-gradient(1000px 820px at 50% 122%, rgba(56,189,248,.06), transparent 60%);
}
/* Filet lumineux bleu ciel en bas de l'en-tête (repris de .section-black::after). */
.he-listing-header::after,
.he-article-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.6), transparent);
  z-index: 1;
}
/* Grille technique discrète (repris de body::after v3), posée en overlay. */
.he-listing-header__inner,
.he-article-header__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
}
.he-article-header__inner { max-width: 860px; }

.he-listing-header__eyebrow,
.he-cta-article__eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: none;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5em;
}
/* Préfixe « // » de l'eyebrow v3. */
.he-listing-header__eyebrow::before,
.he-cta-article__eyebrow::before { content: '//'; color: var(--blue-300); font-weight: 500; }

.he-listing-header__h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1rem;
}
.he-listing-header__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 620px;
}
.he-article-header__h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* Fil d'Ariane (sur fond sombre) — aligné sur .he-breadcrumb v3. */
.he-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  list-style: none; padding: 0;
}
.he-breadcrumb li + li::before { content: '›'; color: var(--text-mute); }
.he-breadcrumb a { color: var(--blue-300); text-decoration: none; transition: color .2s; }
.he-breadcrumb a:hover { color: var(--accent); }
.he-breadcrumb li[aria-current="page"] { color: var(--text-dim); }

/* Ligne méta de l'en-tête article — mono, teintes bleues. */
.he-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
}
.he-article-meta__item { display: inline-flex; align-items: center; gap: .4rem; }
.he-article-meta__item svg { opacity: .85; color: var(--blue-300); }
.he-article-meta__sep { color: var(--text-mute); font-size: .6rem; }

/* Badge catégorie générique (pilule mono translucide, cf. §1). */
.he-badge {
  display: inline-flex; align-items: center;
  font-size: .65rem; font-weight: 500;
  padding: .35rem .8rem; border-radius: 999px;
}

/* =====================================================================
   3. IMAGE HÉRO ARTICLE — volet net (low-poly SUPPRIMÉ, cf. spec §4.5)
   ===================================================================== */
.he-article-hero { display: flex; justify-content: center; margin-top: 2.5rem; position: relative; }

.he-volet {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface-2), var(--ink-700));
  box-shadow: 0 36px 72px -24px rgba(0,0,0,.7);
  overflow: visible;            /* débordement 3D conservé */
  border: 1px solid var(--line);
}
.he-volet::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 70% 28%, rgba(37,99,235,.5), transparent 58%);
  pointer-events: none; z-index: 1;
}
.he-volet__img {
  position: relative; z-index: 2; display: block;
  width: 100%; max-width: min(620px, 86vw); height: auto;
  object-fit: contain; border-radius: 14px;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.50));
  margin-bottom: -64px;         /* débordement 3D conservé */
  transition: filter .4s ease;
}
svg.he-volet__img { border-radius: 0; max-width: min(480px, 80vw); }
/* Halo hover : bleu ciel --accent (remplace l'orange). */
.he-volet:hover .he-volet__img {
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.50))
          drop-shadow(0 0 36px rgba(56,189,248,.30));
}
@media (max-width: 640px) {
  .he-volet { padding: 1.75rem 1.5rem; }
  .he-volet__img { margin-bottom: -40px; }
}

/* Triangles low-poly du CMS SUPPRIMÉS (signature étrangère au v3). */
.he-poly,
.he-card-article__poly,
.he-featured__poly { display: none !important; }

/* =====================================================================
   4. CORPS ARTICLE (CLAIR, confort lecture — pattern .section-light v3)
      + SOMMAIRE (TOC) STICKY
   ===================================================================== */
.he-article-layout {
  max-width: var(--maxw); margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid; grid-template-columns: 1fr 220px; gap: 3rem; align-items: start;
}
@media (max-width: 900px) {
  .he-article-layout { grid-template-columns: 1fr; }
  .he-article-toc { display: none; }
}

.he-article-toc { position: sticky; top: 6rem; }
.he-article-toc__titre {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .75rem;
}
.he-article-toc ol { list-style: none; display: flex; flex-direction: column; gap: .5rem; padding: 0; }
.he-article-toc a {
  font-family: var(--font-mono);
  font-size: .75rem; color: var(--light-dim); line-height: 1.4;
  display: flex; align-items: flex-start; gap: .5rem;
  text-decoration: none; transition: color .25s;
}
.he-article-toc a::before {
  content: ''; display: inline-block;
  width: 3px; min-width: 3px; height: 14px;
  background: #e2e6ee; border-radius: 2px; margin-top: 2px;
  transition: background .25s;
}
.he-article-toc a:hover { color: var(--blue-600); }
.he-article-toc a:hover::before { background: var(--accent); }
.he-article-toc a.active { color: var(--blue-600); font-weight: 600; }
.he-article-toc a.active::before { background: var(--accent); }

.he-article-corps { min-width: 0; }
.he-article-corps h2 {
  font-size: 1.5rem; line-height: 1.2;
  color: var(--light-text);
  margin: 2.5rem 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(37,99,235,.12);
}
.he-article-corps h3 {
  font-size: 1.15rem;
  color: var(--blue-600);
  margin: 1.75rem 0 .6rem;
}
.he-article-corps p {
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.8;
  color: var(--light-dim);
  margin-bottom: 1.1rem;
}
.he-article-corps strong { color: var(--light-text); font-weight: 600; }
.he-article-corps a {
  color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px;
  transition: color .2s;
}
.he-article-corps a:hover { color: var(--accent); }
.he-article-corps ul,
.he-article-corps ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.he-article-corps li {
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.75; color: var(--light-dim); margin-bottom: .3rem;
}
.he-article-corps blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  background: rgba(37,99,235,.05);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--blue-600);
  font-size: .95rem;
}
.he-article-corps img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 10px; }
.he-article-corps figure { margin: 1.5rem auto; text-align: center; }
.he-article-corps figcaption {
  font-family: var(--font-mono);
  font-size: .74rem; color: var(--light-dim); text-align: center; margin-top: .5rem;
}

/* =====================================================================
   4 bis. HERO PAGE AUTEUR (sur en-tête sombre)
   ===================================================================== */
.he-auteur-hero { display: flex; align-items: center; gap: 1.75rem; margin-top: 1.5rem; }
@media (max-width: 640px) {
  .he-auteur-hero { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}
.he-auteur-hero__avatar {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--ink-700));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
  border: 1px solid var(--line-strong);
}
.he-auteur-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.he-auteur-hero__role {
  font-family: var(--font-mono);
  font-size: .8rem; color: var(--blue-300); letter-spacing: .02em; margin-bottom: .75rem;
}
.he-auteur-hero__bio { font-size: .95rem; line-height: 1.7; color: var(--text-dim); max-width: 620px; }

/* =====================================================================
   5. ENCART AUTEUR (carte claire)
   ===================================================================== */
.he-auteur {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: var(--light-surface);
  border-radius: var(--radius);
  border: 1px solid var(--light-line);
  padding: 1.5rem;
  margin-top: 3rem;
  box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
}
.he-auteur__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--ink-700));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; color: #fff; font-weight: 600;
  overflow: hidden;
}
.he-auteur__avatar img { width: 100%; height: 100%; object-fit: cover; }
.he-auteur__texte { flex: 1; }
.he-auteur__nom { font-size: .95rem; font-weight: 700; color: var(--light-text); margin-bottom: .2rem; }
.he-auteur__nom a { color: inherit; text-decoration: none; transition: color .2s; }
.he-auteur__nom a:hover { color: var(--accent); }
/* Byline dans la ligne méta (sur fond sombre) : soulignement --accent au hover. */
.he-article-meta__item a[rel="author"] { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(56,189,248,.3); }
.he-article-meta__item a[rel="author"]:hover { color: var(--accent); border-bottom-color: var(--accent); }
.he-auteur__role { font-family: var(--font-mono); font-size: .72rem; color: var(--blue-600); margin-bottom: .6rem; letter-spacing: .02em; }
.he-auteur__bio { font-size: .85rem; line-height: 1.65; color: var(--light-dim); }

/* =====================================================================
   6. ARTICLES CONNEXES (cartes claires + filet grad-bright scaleX au hover)
   ===================================================================== */
.he-connexes { margin-top: 4rem; }
.he-connexes__titre {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.he-connexes__titre::after { content: ''; flex: 1; height: 1px; background: rgba(37,99,235,.15); }
.he-connexes__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 700px) { .he-connexes__grille { grid-template-columns: 1fr; } }

.he-card-connexe {
  position: relative;
  background: var(--light-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--light-line);
  box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
/* Filet grad-bright scaleX en haut au hover (signature carte claire v3). */
.he-card-connexe::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; z-index: 5;
  background: var(--grad-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.he-card-connexe:hover { transform: translateY(-6px); border-color: var(--light-line-strong); box-shadow: 0 36px 64px -34px rgba(15,27,45,.26); }
.he-card-connexe:hover::before { transform: scaleX(1); }
.he-card-connexe__volet {
  background: linear-gradient(150deg, var(--surface-2), var(--ink-700));
  height: 70px; position: relative;
}
.he-card-connexe__volet::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 28%, rgba(37,99,235,.5), transparent 58%);
  pointer-events: none;
}
.he-card-connexe__badge {
  position: absolute; bottom: -10px; left: .75rem;
  font-size: .58rem; font-weight: 500;
  padding: .25rem .65rem; border-radius: 999px;
}
.he-card-connexe__corps { padding: 1.1rem .9rem .9rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.he-card-connexe__titre a { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--light-text); letter-spacing: -.01em; text-decoration: none; }
.he-card-connexe__titre a:hover { color: var(--blue-600); }
.he-card-connexe__meta { font-family: var(--font-mono); font-size: .67rem; color: var(--blue-600); }
.he-card-connexe__lien {
  font-size: .74rem; font-weight: 600; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: auto; position: relative; width: fit-content; text-decoration: none;
}
.he-card-connexe__lien::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.he-card-connexe__lien:hover::after { width: 100%; }

/* =====================================================================
   7. CTA « PORTE OUVERTE » (bloc sombre + halo radial + bouton .btn-primary)
   ===================================================================== */
.he-cta-article {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(37,99,235,.12), rgba(29,78,216,.08) 60%, rgba(30,58,138,.10));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin-top: 4rem;
  text-align: center;
}
.he-cta-article::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 100% 120%, rgba(56,189,248,.14), transparent 60%);
}
.he-cta-article__contenu { position: relative; z-index: 2; }
.he-cta-article__titre {
  font-size: 1.6rem; line-height: 1.15; color: var(--text); margin-bottom: .9rem;
}
.he-cta-article__texte {
  font-size: .95rem; line-height: 1.7; color: var(--text-dim);
  max-width: 480px; margin: 0 auto 1.75rem;
}
/* Bouton = .btn-primary v3. */
.he-cta-article__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 500;
  background: var(--grad-bright); color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 26px; border-radius: 12px;
  box-shadow: 0 10px 34px -10px rgba(37,99,235,.7);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.he-cta-article__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -10px rgba(37,99,235,.8);
  color: #fff;
}
.he-cta-article__note { margin-top: 1rem; font-family: var(--font-mono); font-size: .68rem; color: var(--text-mute); }

/* =====================================================================
   8. LISTING — filtres, featured, grille, pagination
   ===================================================================== */
.he-listing-main { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem 1rem; }

/* --- Filtres (chips mono) --- */
.he-filtres {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding: 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .6rem;
}
.he-filtre {
  display: inline-flex; align-items: center;
  padding: .5rem 1.05rem; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  transition: background .25s, color .25s, box-shadow .25s, border-color .25s;
  border: 1.5px solid var(--light-line-strong);
  background: var(--light-surface); color: var(--light-dim);
  text-decoration: none; cursor: pointer;
}
.he-filtre:hover { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 14px -4px rgba(37,99,235,.4); }
/* Actif : socle encre + filet bleu ciel (remplace l'orange). */
.he-filtre.actif {
  background: var(--ink-700); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px -6px rgba(56,189,248,.4);
}
.he-filtre__compteur {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(37,99,235,.12); font-size: .58rem; margin-left: .4rem; font-weight: 700;
}
.he-filtre:hover .he-filtre__compteur { background: rgba(255,255,255,.2); }
.he-filtre.actif .he-filtre__compteur { background: rgba(56,189,248,.35); color: #fff; }
.he-filtre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Featured (carte claire + filet grad-bright scaleX) --- */
.he-featured {
  position: relative;
  background: var(--light-surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
  border: 1px solid var(--light-line);
  margin: 2.5rem 0 3rem;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.he-featured::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; z-index: 5;
  background: var(--grad-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.he-featured:hover { transform: translateY(-6px); border-color: var(--light-line-strong); box-shadow: 0 36px 64px -34px rgba(15,27,45,.26); }
.he-featured:hover::before { transform: scaleX(1); }
@media (max-width: 720px) { .he-featured { grid-template-columns: 1fr; } }

.he-featured__volet {
  background: linear-gradient(150deg, var(--surface-2), var(--ink-700));
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; position: relative; overflow: hidden;
}
.he-featured__volet::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 28%, rgba(37,99,235,.5), transparent 58%);
  pointer-events: none; z-index: 1;
}
img.he-featured__img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .5s ease, filter .4s ease;
}
.he-featured:hover img.he-featured__img { transform: scale(1.04); }
/* Voile de liaison + halo hover bleu ciel (remplace l'orange). */
.he-featured__volet::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 60%, rgba(8,16,31,.20) 100%);
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(56,189,248,0);
  transition: box-shadow .4s ease;
}
.he-featured:hover .he-featured__volet::after { box-shadow: inset 0 0 60px -10px rgba(56,189,248,.40); }
svg.he-featured__img {
  position: relative; z-index: 3; display: block;
  max-width: 200px; height: auto; object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.50));
  transition: filter .4s ease;
}
.he-featured:hover svg.he-featured__img {
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.50)) drop-shadow(0 0 24px rgba(56,189,248,.25));
}

.he-featured__corps { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: .9rem; }
.he-featured__eyebrow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.he-featured__meta { font-family: var(--font-mono); font-size: .7rem; color: var(--blue-600); }
.he-featured__titre a { font-size: 1.35rem; line-height: 1.2; color: var(--light-text); text-decoration: none; }
.he-featured__titre a:hover { color: var(--blue-600); }
.he-featured__extrait { font-size: .9rem; line-height: 1.7; color: var(--light-dim); }
.he-featured__lien {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--blue-600);
  position: relative; width: fit-content; text-decoration: none;
}
.he-featured__lien::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s ease;
}
.he-featured__lien:hover::after { width: 100%; }
.he-featured__lien svg { transition: transform .3s ease; }
.he-featured__lien:hover svg { transform: translateX(4px); }

/* --- Grille (cartes claires façon .metier-card v3) --- */
.he-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .he-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .he-grille { grid-template-columns: 1fr; } }

.he-card-article {
  position: relative;
  background: var(--light-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
  border: 1px solid var(--light-line);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
/* Filet grad-bright scaleX en haut au hover (signature carte v3). */
.he-card-article::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; z-index: 5;
  background: var(--grad-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.he-card-article:hover { transform: translateY(-6px); border-color: var(--light-line-strong); box-shadow: 0 36px 64px -34px rgba(15,27,45,.26); }
.he-card-article:hover::before { transform: scaleX(1); }
.he-card-article__volet {
  position: relative;
  background: linear-gradient(150deg, var(--surface-2), var(--ink-700));
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; min-height: 168px; overflow: hidden;
}
.he-card-article__volet::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 28%, rgba(37,99,235,.45), transparent 58%);
  pointer-events: none; z-index: 1;
}
img.he-card-article__img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .45s ease;
}
.he-card-article:hover img.he-card-article__img { transform: scale(1.05); }
/* Halo hover bleu ciel (remplace l'orange). */
.he-card-article__volet::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(8,16,31,.30) 100%);
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(56,189,248,0);
  transition: box-shadow .35s ease;
}
.he-card-article:hover .he-card-article__volet::after { box-shadow: inset 0 0 40px -8px rgba(56,189,248,.38); }
svg.he-card-article__img {
  position: relative; z-index: 3; display: block;
  max-width: 130px; height: auto; object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.40));
  transition: filter .35s ease;
}
.he-card-article:hover svg.he-card-article__img {
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.40)) drop-shadow(0 0 14px rgba(56,189,248,.28));
}
/* Badge posé sur le bandeau photo (pilule mono translucide). */
.he-card-article__badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 4;
  display: inline-flex; align-items: center;
  font-size: .6rem; font-weight: 500;
  padding: .28rem .7rem; border-radius: 999px;
  text-decoration: none;
}
.he-card-article__badge:hover { border-color: rgba(56,189,248,.4); color: var(--accent); }
.he-card-article__corps { padding: 1.5rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .65rem; }
.he-card-article__meta { font-family: var(--font-mono); font-size: .67rem; color: var(--blue-600); display: flex; align-items: center; gap: .45rem; }
.he-card-article__meta::before { content: ''; display: inline-block; width: 14px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.he-card-article__titre { margin: 0; }
.he-card-article__titre a { font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--light-text); text-decoration: none; }
.he-card-article__titre a:hover { color: var(--blue-600); }
.he-card-article__extrait {
  font-size: .82rem; line-height: 1.65; color: var(--light-dim); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.he-card-article__lien {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; color: var(--blue-600);
  position: relative; width: fit-content; text-decoration: none;
}
.he-card-article__lien::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.he-card-article__lien:hover::after { width: 100%; }
.he-card-article__lien svg { transition: transform .3s ease; }
.he-card-article__lien:hover svg { transform: translateX(3px); }

/* --- Pagination sobre --- */
.he-pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 0 4rem; flex-wrap: wrap; list-style: none; margin: 0; }
.he-pagination__btn,
.he-pagination__nav {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; color: var(--light-dim);
  background: var(--light-surface); border: 1px solid var(--light-line);
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.he-pagination__btn { width: 38px; height: 38px; border-radius: 10px; font-size: .8rem; }
.he-pagination__nav { gap: .4rem; padding: 0 .9rem; height: 38px; border-radius: 10px; font-size: .75rem; color: var(--blue-600); }
.he-pagination__btn:hover,
.he-pagination__nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 12px -4px rgba(37,99,235,.4); }
.he-pagination__btn.actif { background: var(--ink-700); color: #fff; border-color: var(--accent); }
.he-listing-compte { text-align: center; font-family: var(--font-mono); color: var(--light-dim); font-size: .75rem; padding-bottom: 2.5rem; }

/* --- Chargement progressif --- */
.he-card-article[hidden] { display: none; }
html[data-he-init] .he-card-article { animation: he-card-in .45s ease both; }
@keyframes he-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.he-listing-vide { text-align: center; color: var(--light-dim); font-size: .9rem; padding: 3rem 0 1rem; }

.he-charger-plus { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: .5rem 0 3.5rem; }
/* « Charger plus » = .btn-ghost v3 (fond translucide, hover bord bleu ciel). */
.he-charger-plus__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  color: var(--light-text);
  background: var(--light-surface);
  border: 1.5px solid var(--light-line-strong);
  border-radius: 12px;
  padding: 14px 26px; cursor: pointer;
  box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.he-charger-plus__btn:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.5);
  background: rgba(56,189,248,.06);
  box-shadow: 0 24px 48px -28px rgba(37,99,235,.4);
}
.he-charger-plus__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.he-charger-plus__btn[disabled] { opacity: .5; cursor: default; transform: none; }
.he-charger-plus__compte { font-family: var(--font-mono); font-size: .72rem; color: var(--light-dim); margin: 0; }

/* =====================================================================
   9. WIDGETS ÉDITORIAUX (he-w-*) — corps clair, orange -> accent/blue
   ===================================================================== */
.he-article-corps .he-w-figure,
.he-article-corps .he-w-parcours,
.he-article-corps .he-w-calc,
.he-article-corps .he-w-simulateur,
.he-article-corps .he-w-sondage,
.he-article-corps .he-w-checklist { margin: 2.25rem 0; }

/* --- 9.1 Figure --- */
.he-w-figure { margin: 2.25rem auto; text-align: center; }
.he-w-figure img {
  display: block; width: 100%; height: auto; margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 14px 40px -18px rgba(15,27,45,.28);
  border: 1px solid var(--light-line);
}
.he-w-figure figcaption { font-family: var(--font-mono); font-size: .74rem; color: var(--light-dim); margin-top: .65rem; line-height: 1.5; }
.he-w-figure figcaption strong { color: var(--blue-600); }
.he-w-figure--large  { max-width: 100%; }
.he-w-figure--pleine { max-width: min(820px, 100%); }
.he-w-figure--wide { margin-inline: -3rem; width: calc(100% + 6rem); max-width: min(1000px, calc(100vw - 2rem)); }
@media (max-width: 640px) {
  .he-w-figure--wide { margin-inline: -1rem; width: calc(100% + 2rem); max-width: calc(100vw - 1rem); }
}

/* --- 9.2 Parcours (timeline) --- */
.he-w-parcours { list-style: none; padding: 0; margin: 2.5rem 0; position: relative; }
.he-w-parcours::before {
  content: ''; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(37,99,235,.15) 100%);
  border-radius: 2px;
}
.he-w-parcours__item { position: relative; display: flex; gap: 1.1rem; padding: .35rem 0 1.6rem; }
.he-w-parcours__item:last-child { padding-bottom: 0; }
.he-w-parcours--anime .he-w-parcours__item { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.he-w-parcours--anime .he-w-parcours__item.is-in { opacity: 1; transform: none; }
.he-w-parcours__pastille {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--ink-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(37,99,235,.4);
  border: 2px solid var(--light-surface);
}
/* Pastille de numéro : fond bleu ciel --accent (remplace l'orange). */
.he-w-parcours__num {
  position: absolute; bottom: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--ink-900);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px -1px rgba(56,189,248,.5);
}
.he-w-parcours__corps { padding-top: .15rem; min-width: 0; }
.he-w-parcours__label {
  display: inline-block; font-family: var(--font-mono);
  font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .3rem;
}
.he-w-parcours__texte { font-size: .95rem; line-height: 1.7; color: var(--light-dim); }
.he-w-parcours__texte strong { color: var(--light-text); }

/* --- 9.3 Calculateur / simulateur / sondage : cartes claires --- */
.he-w-calc,
.he-w-simulateur,
.he-w-sondage {
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
}
.he-w-calc[data-titre]::before,
.he-w-simulateur[data-titre]::before,
.he-w-sondage[data-titre]::before {
  content: attr(data-titre); display: block;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; letter-spacing: -.02em; color: var(--light-text);
  margin-bottom: 1rem;
}
.he-w-calc label { display: block; font-size: .85rem; font-weight: 600; color: var(--light-text); margin-bottom: .9rem; }
.he-w-calc label.he-w-calc__check { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--light-dim); cursor: pointer; }
.he-w-calc input[type="number"],
.he-w-calc input[type="range"],
.he-w-calc select {
  display: block; width: 100%; margin-top: .4rem;
  padding: .55rem .7rem; font-family: var(--font-body); font-size: .9rem; color: var(--light-text);
  background: var(--light-bg);
  border: 1.5px solid var(--light-line-strong); border-radius: 9px;
  transition: border-color .2s, box-shadow .2s;
}
/* Range/checkbox : teinte bleue (remplace l'orange). */
.he-w-calc input[type="range"] { padding: 0; accent-color: var(--blue); }
.he-w-calc input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.he-w-calc input:focus,
.he-w-calc select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
/* Résultat : bloc sombre --grad, unité en --accent. */
.he-w-calc__resultat {
  margin-top: 1.1rem; padding: 1.1rem 1.25rem;
  background: linear-gradient(150deg, var(--surface-2), var(--ink-700));
  border: 1px solid var(--line);
  border-radius: 12px; display: flex; flex-direction: column; gap: .25rem;
}
.he-w-calc__resultat-label { font-family: var(--font-mono); font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.he-w-calc__resultat-valeur { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.he-w-calc__unite { font-size: 1rem; font-weight: 600; color: var(--accent); }

/* --- 9.4 Simulateur --- */
.he-w-sim__progress { height: 5px; background: rgba(37,99,235,.12); border-radius: 4px; margin-bottom: 1.4rem; overflow: hidden; }
/* Barre : dégradé blue -> accent (remplace blue -> orange). */
.he-w-sim__progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--accent)); border-radius: 4px; transition: width .35s ease; }
.he-w-sim__intitule { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--light-text); margin: 0 0 1rem; letter-spacing: -.02em; }
.he-w-sim__choix { display: flex; flex-direction: column; gap: .6rem; }
.he-w-sim__btn {
  text-align: left; padding: .85rem 1.1rem; font-size: .9rem; font-weight: 500; color: var(--light-text);
  background: var(--light-bg); border: 1.5px solid var(--light-line-strong); border-radius: 11px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.he-w-sim__btn:hover,
.he-w-sim__btn:focus-visible {
  background: var(--blue); color: #fff; border-color: var(--blue);
  transform: translateX(3px); box-shadow: 0 6px 18px -6px rgba(37,99,235,.4); outline: none;
}
.he-w-sim__sortie { padding-top: .25rem; }
.he-w-sim__sortie-eyebrow { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.he-w-sim__sortie-titre { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--light-text); margin: .35rem 0 .6rem; }
.he-w-sim__sortie-texte { font-size: .92rem; line-height: 1.7; color: var(--light-dim); }
.he-w-sim__rejouer {
  margin-top: 1rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--blue-600);
  background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.he-w-sim__rejouer:hover { color: var(--accent); }

/* --- 9.5 Sondage (poll) --- */
.he-w-sondage__intitule { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--light-text); margin: 0 0 1rem; letter-spacing: -.02em; }
.he-w-sondage__options { display: flex; flex-direction: column; gap: .55rem; }
.he-w-sondage__btn {
  position: relative; overflow: hidden; text-align: left;
  padding: .8rem 1.1rem; font-size: .9rem; font-weight: 500; color: var(--light-text);
  background: var(--light-bg); border: 1.5px solid var(--light-line-strong); border-radius: 11px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.he-w-sondage__btn:hover,
.he-w-sondage__btn:focus-visible { background: var(--blue); color: #fff; border-color: var(--blue); outline: none; }
.he-w-sondage__btn--resultat { display: flex; align-items: center; justify-content: space-between; cursor: default; background: var(--light-surface); color: var(--light-text); }
.he-w-sondage__btn--resultat:hover { background: var(--light-surface); color: var(--light-text); }
.he-w-sondage__btn--resultat::before {
  content: ''; position: absolute; inset: 0; width: var(--pct, 0%);
  background: linear-gradient(90deg, rgba(37,99,235,.16), rgba(37,99,235,.08));
  transition: width .5s ease; z-index: 0;
}
/* « Mon vote » : bord + jauge bleu ciel --accent (remplace l'orange). */
.he-w-sondage__btn--resultat.is-mine { border-color: var(--accent); }
.he-w-sondage__btn--resultat.is-mine::before { background: linear-gradient(90deg, rgba(56,189,248,.22), rgba(56,189,248,.10)); }
.he-w-sondage__btn-label,
.he-w-sondage__btn-pct { position: relative; z-index: 1; }
.he-w-sondage__btn-pct { font-weight: 700; color: var(--blue-600); }
.he-w-sondage__btn--resultat.is-mine .he-w-sondage__btn-pct { color: var(--accent); }
.he-w-sondage__note { font-size: .68rem; color: var(--light-dim); margin: .75rem 0 0; }

/* --- 9.6 Checklist --- */
.he-w-checklist {
  background: var(--light-surface); border: 1px solid var(--light-line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: 0 18px 40px -30px rgba(15,27,45,.4);
}
.he-w-checklist__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.he-w-checklist__titre { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; color: var(--light-text); }
.he-w-checklist__compteur { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--blue-600); margin-left: auto; }
.he-w-checklist__barre { flex-basis: 100%; height: 5px; border-radius: 4px; background: rgba(37,99,235,.12); overflow: hidden; }
/* Jauge : dégradé blue -> accent (remplace blue -> orange). */
.he-w-checklist__jauge { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--accent)); border-radius: 4px; transition: width .35s ease; }
.he-w-checklist ul { list-style: none; padding: 0; margin: 0; }
.he-w-checklist__item { margin: 0; }
.he-w-checklist__toggle {
  display: flex; align-items: flex-start; gap: .7rem; width: 100%; text-align: left;
  padding: .6rem .25rem; background: none; border: none; cursor: pointer;
  font: inherit; color: var(--light-dim); border-bottom: 1px solid var(--light-line);
}
.he-w-checklist__item:last-child .he-w-checklist__toggle { border-bottom: none; }
.he-w-checklist__case {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 2px solid var(--light-line-strong); position: relative;
  transition: background .2s, border-color .2s;
}
.he-w-checklist__case::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .18s ease;
}
.he-w-checklist__label { font-size: .92rem; line-height: 1.55; }
.he-w-checklist__toggle:hover .he-w-checklist__case { border-color: var(--blue); }
.he-w-checklist__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* Case cochée : fond bleu --blue, coche blanche (remplace l'orange). */
.he-w-checklist__item.is-done .he-w-checklist__case { background: var(--blue); border-color: var(--blue); }
.he-w-checklist__item.is-done .he-w-checklist__case::after { transform: rotate(45deg) scale(1); }
.he-w-checklist__item.is-done .he-w-checklist__label { color: var(--light-dim); text-decoration: line-through; }

/* =====================================================================
   10. BLOC RÉDACTIONNEL DE CATÉGORIE (hub SEO)
   ===================================================================== */
.he-cat-intro { max-width: var(--maxw); margin: 3.5rem auto 0; padding: 0 2rem 2rem; }
.he-cat-intro__inner {
  max-width: 820px; margin: 0 auto;
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-top: 4px solid var(--blue);      /* filet bleu (remplace l'orange) */
  border-radius: var(--radius);
  padding: 2.5rem 2.75rem 2.25rem;
  box-shadow: 0 18px 40px -28px rgba(15,27,45,.4);
}
.he-cat-intro__inner.he-article-corps > h2:first-child { margin-top: .25rem; }
@media (max-width: 600px) {
  .he-cat-intro { padding: 0 1rem 1.5rem; margin-top: 2.5rem; }
  .he-cat-intro__inner { padding: 1.75rem 1.4rem 1.5rem; }
}

/* =====================================================================
   11. Préférences mouvement réduit (repris du bloc reduced-motion v3)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .he-card-article, .he-featured, .he-card-connexe, .he-volet__img,
  .he-cta-article__btn, .he-charger-plus__btn,
  .he-card-article::before, .he-featured::before, .he-card-connexe::before,
  .he-card-article__lien svg, .he-featured__lien svg { transition: none; }
  .he-card-article::before, .he-featured::before, .he-card-connexe::before { transform: scaleX(1); }
  html[data-he-init] .he-card-article { animation: none; }
  img.he-card-article__img, img.he-featured__img { transition: none; }
  .he-card-article:hover img.he-card-article__img,
  .he-featured:hover img.he-featured__img { transform: none; }
  .he-w-parcours--anime .he-w-parcours__item { opacity: 1; transform: none; transition: none; }
  .he-w-sim__btn, .he-w-sim__progress-bar, .he-w-checklist__jauge,
  .he-w-checklist__case, .he-w-checklist__case::after,
  .he-w-sondage__btn--resultat::before { transition: none; }
}

/* =====================================================================
   12. FOND NEURONAL VIVANT + JOYAU + TOUCHES CONSTELLATION
   ---------------------------------------------------------------------
   Fusion des directions design A « Neural Vivant » et C « Constellation ».
   Le canvas .he-neural-bg est injecté par he-blog-neural-bg.js comme PREMIER
   enfant des en-têtes SOMBRES (.he-listing-header / .he-article-header). Il se
   peint DERRIERE le contenu (__inner z-index 2) mais AU-DESSUS des halos radiaux
   du ::before (z-index 0). Corps clair de lecture : INCHANGÉ.
   ===================================================================== */

/* --- Canvas de fond, ancré dans l'en-tête sombre --- */
.he-neural-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;              /* devant les halos ::before, derriere __inner (z:2) */
  pointer-events: none;    /* le curseur reste capté par l'en-tête, pas le canvas */
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.he-neural-bg.is-live { opacity: 1; }

/* Vignette douce pour asseoir le texte au-dessus du réseau (comme les maquettes).
   Posée par ::before existant ? non : on ajoute un voile radial via le ::before du
   header — déjà présent (halos). On renforce la lisibilité par un léger gradient
   local au bas de l'en-tête listing, sans masquer le réseau. */
.he-listing-header .he-listing-header__inner,
.he-article-header .he-article-header__inner {
  /* garantit que le texte passe DEVANT le canvas (z-index déjà à 2, on confirme) */
  position: relative;
  z-index: 2;
}

/* =====================================================================
   TOUCHE C — « cockpit / data » sous le titre du listing
   Graduations d'orfèvre + micro-chiffres JetBrains Mono. Injectées par le
   markup listing (facultatives : n'apparaissent que si présentes). Pur CSS.
   ===================================================================== */
.he-listing-header__inner .he-listing-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11,21,37,.42);
  backdrop-filter: blur(6px);
  width: fit-content;
  max-width: 100%;
}
.he-listing-stats__cell {
  display: flex; flex-direction: column; gap: 3px;
  padding: .7rem 1.3rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.he-listing-stats__cell:last-child { border-right: 0; }
.he-listing-stats__cell::after {
  content: ''; position: absolute; top: 0; left: 1.3rem; right: 1.3rem; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.4), transparent);
}
.he-listing-stats__k {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em;
  color: var(--text-mute); text-transform: uppercase;
}
.he-listing-stats__v {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--text); line-height: 1;
}
.he-listing-stats__v .u {
  font-family: var(--font-mono); font-size: .62rem; color: var(--accent);
  font-weight: 400; margin-left: 3px;
}
@media (max-width: 520px) {
  .he-listing-stats { width: 100%; }
  .he-listing-stats__cell { flex: 1 1 44%; border-bottom: 1px solid var(--line); }
}

/* =====================================================================
   A — LA FEATURED EN JOYAU
   La carte à la une vit dans le corps CLAIR : le « joyau » est un halo bleu
   ORBITAL discret (conic-gradient tournant) + un filet lumineux supérieur
   (glint). Sobre sur blanc, spectaculaire au survol. Orange banni.
   ===================================================================== */
.he-featured { isolation: isolate; }
/* Halo orbital : anneau conique flouté, animé, révélé au survol. */
.he-featured::after {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from 120deg,
    rgba(56,189,248,0), rgba(56,189,248,.55), rgba(37,99,235,.6), rgba(56,189,248,0) 62%);
  filter: blur(15px);
  opacity: 0;
  transition: opacity .55s var(--ease);
  animation: he-orbit 16s linear infinite;
  pointer-events: none;
}
.he-featured:hover::after { opacity: .8; }
@keyframes he-orbit { to { transform: rotate(360deg); } }
/* Filet « glint » lumineux sur l'arête haute du volet média (reflet d'orfèvre). */
.he-featured__volet::before {
  /* superpose un filet lumineux fin en haut (le radial existant reste dessous) */
  box-shadow: inset 0 1px 0 0 rgba(147,197,253,.55);
}
/* Micro-constellation dans le volet média de la featured (touche C, statique). */
.he-featured__volet {
  background-image:
    radial-gradient(1.5px 1.5px at 22% 30%, rgba(147,197,253,.85), transparent),
    radial-gradient(1.5px 1.5px at 64% 22%, rgba(56,189,248,.75), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(147,197,253,.65), transparent),
    radial-gradient(1.5px 1.5px at 40% 72%, rgba(56,189,248,.65), transparent),
    linear-gradient(150deg, var(--surface-2), var(--ink-700));
}

/* =====================================================================
   A — CARTES EN NŒUDS
   Filet lumineux supérieur révélé au survol (comme les cartes des maquettes)
   + révélation en cascade au scroll (piloté par he-blog-listing / neural-nav :
   ici on gère l'état initial et l'état révélé, dégradé propre sans-JS).
   ===================================================================== */
/* Filet lumineux (glint) qui se révèle au survol, en plus du filet grad-bright. */
.he-card-article::after {
  content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; z-index: 6;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.7), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.he-card-article:hover::after { opacity: 1; }

/* Révélation en cascade au scroll : la classe .he-revealed est posée par
   he-blog-neural-bg.js sur les cartes VISIBLES entrant dans le viewport. On
   utilise une ANIMATION (jamais un état masquant persistant) -> une carte non
   armée reste pleinement visible. Aucune régression avec he-blog-listing.js
   (qui pilote .hidden) : on n'anime que l'apparition, sans toucher l'affichage. */
.he-card-article.he-revealed {
  animation: he-card-rise .55s var(--ease) both;
}
@keyframes he-card-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   Reduced motion pour le fond vivant et le joyau
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .he-neural-bg { opacity: 1; transition: none; }
  .he-featured::after { animation: none; }
  .he-card-article.he-revealed { animation: none; }
}

/* =====================================================================
   Skip-link (RGAA / WCAG AA) — lien d'évitement « Aller au contenu
   principal ». Masqué hors écran par défaut, révélé au focus clavier.
   (La règle d'origine n'était plus chargée ; réintégrée ici sur les
   tokens NEURAL — outline bleu accent, jamais d'orange.)
   ===================================================================== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 10000;
  display: inline-block;
  padding: 10px 18px;
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .85rem;
  text-decoration: none;
  border-radius: 8px;
  transition: top .18s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

