/* =========================================================
   Leviers : design system V2 (portail tech news)
   Inspiration : universdelatech.fr
   Tout est piloté par variables : rebranding = éditer :root
   ========================================================= */

:root {
  /* Couleurs */
  --bg:        #FFFFFF;
  --ink:       #0A0A0C;
  --body-tx:   #2E2E33;
  --muted:     #6B7280;
  --line:      #E8E8EE;
  --soft:      #F7F7F9;   /* fonds gris clair (footer, hover) */
  --cream:     #FDF3E3;   /* bande éditoriale chaude */
  --dark:      #0B0B0F;   /* hero et cards sombres */
  --dark-2:    #17171E;
  --primary:   #7B1FFF;   /* violet boutons */
  --primary-2: #5E12CC;
  --red:       #F0281E;   /* badges, liens "en voir plus" */
  --bluebar-1: #1226AA;   /* topbar */
  --bluebar-2: #0D1467;

  /* Pills par rubrique (bg pastel / texte) */
  --p-seo-bg: #E3F4EC;          --p-seo-tx: #157A4E;
  --p-ia-bg: #EFE8FF;           --p-ia-tx: #6D28D9;
  --p-contenu-bg: #FFF1DE;      --p-contenu-tx: #B45309;
  --p-social-bg: #FDE7F0;       --p-social-tx: #BE185D;
  --p-pub-bg: #FCE9E6;          --p-pub-tx: #B91C1C;
  --p-data-bg: #E4EDFE;         --p-data-tx: #1D4ED8;
  --p-outils-bg: #E0F5FA;       --p-outils-tx: #0E7490;

  /* Typo */
  --heading: "Plus Jakarta Sans", "Archivo", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mesures */
  --wrap: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10,10,12,.05), 0 6px 24px rgba(10,10,12,.06);
  --shadow-hover: 0 4px 12px rgba(10,10,12,.08), 0 16px 44px rgba(10,10,12,.12);
  --gap: clamp(18px, 2.6vw, 30px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body-tx);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0 0 1em; }
::selection { background: var(--primary); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 36px); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar { background: linear-gradient(90deg, var(--bluebar-1), var(--bluebar-2)); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 40px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 5px 14px; white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.topbar-badge { background: var(--red); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-family: var(--heading); font-weight: 800; font-size: 25px; letter-spacing: -0.03em; color: var(--ink); }
.brand-dot { color: var(--red); }
.brand-suffix { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: var(--heading); font-size: 15px; font-weight: 700; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.is-active { color: var(--primary); background: #F3ECFF; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { display: block; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-item { font-family: var(--heading); font-size: 12px; font-weight: 800; padding: 6px 11px; color: var(--muted); letter-spacing: .04em; }
.lang-item.is-current { background: var(--ink); color: #fff; }
a.lang-item:hover { color: var(--primary); }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 42px; }
.ticker-badge { flex: 0 0 auto; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; border-radius: 4px; }
.ticker-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-list { display: inline-flex; gap: 44px; white-space: nowrap; animation: ticker 36s linear infinite; padding-right: 44px; }
.ticker-track:hover .ticker-list { animation-play-state: paused; }
.ticker-list a { font-size: 14px; font-weight: 600; color: var(--body-tx); }
.ticker-list a:hover { color: var(--red); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Pills catégories ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--soft); color: var(--body-tx); white-space: nowrap;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.pill-seo { background: var(--p-seo-bg); color: var(--p-seo-tx); }
.pill-ia-et-geo { background: var(--p-ia-bg); color: var(--p-ia-tx); }
.pill-contenu { background: var(--p-contenu-bg); color: var(--p-contenu-tx); }
.pill-social-et-influence { background: var(--p-social-bg); color: var(--p-social-tx); }
.pill-publicite-en-ligne { background: var(--p-pub-bg); color: var(--p-pub-tx); }
.pill-data-et-mesure { background: var(--p-data-bg); color: var(--p-data-tx); }
.pill-outils-et-comparatifs { background: var(--p-outils-bg); color: var(--p-outils-tx); }
.pill:hover { filter: brightness(.96); }

/* ---------- Meta (auteur, horloge) ---------- */
.meta { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.meta a { font-weight: 600; color: var(--body-tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.meta a:hover { color: var(--primary); }
.meta .avatar { width: 26px; height: 26px; border-radius: 50%; }
.meta .clock { display: inline-flex; align-items: center; gap: 5px; }
.meta .clock svg { flex: 0 0 auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--heading); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--primary); }

/* ---------- Section head ---------- */
.section { padding: clamp(30px, 4.5vw, 56px) 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); display: flex; align-items: center; gap: 10px; }
.section-head h2::after { content: "❯"; color: var(--red); font-size: .72em; font-weight: 800; }
.see-all { font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.see-all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.card h3 { font-size: 17.5px; line-height: 1.28; }
.card h3 a:hover { color: var(--primary); }
.card p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: var(--gap); }

/* ---------- Hero sombre ---------- */
.hero { background: var(--dark); padding: clamp(26px, 3.6vw, 48px) 0; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: var(--gap); align-items: stretch; }
.hero-main { position: relative; border-radius: 18px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.hero-main-bg { position: absolute; inset: 0; }
.hero-main-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,15,0) 20%, rgba(11,11,15,.55) 60%, rgba(11,11,15,.92) 100%); }
.hero-main-content { position: relative; z-index: 2; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.hero-main h1 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1; max-width: 24ch; }
.hero-main h1 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hero-main .excerpt { color: rgba(255,255,255,.82); font-size: 15.5px; max-width: 60ch; margin: 0; }
.hero-main .meta, .hero-main .meta a { color: rgba(255,255,255,.85); }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-title { font-family: var(--heading); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 8px; }
.hero-side-title::after { content: "❯"; color: var(--red); }
.trend { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--dark-2); transition: background .15s; }
.trend:hover { background: #20202A; }
.trend-thumb { flex: 0 0 76px; height: 60px; border-radius: 8px; overflow: hidden; }
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trend h3 { color: #fff; font-size: 14.5px; line-height: 1.3; font-weight: 700; }
.trend:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.trend .clock { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 5px; }

/* ---------- Bulles catégories ---------- */
.cat-bubbles { display: flex; justify-content: center; gap: clamp(18px, 3.4vw, 44px); flex-wrap: wrap; padding: clamp(26px, 3.6vw, 44px) 0 8px; }
.cat-bubble { display: block; text-align: center; width: 106px; }
.cat-bubble-img { display: block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 3px solid var(--line); transition: border-color .15s, transform .15s; }
.cat-bubble:hover .cat-bubble-img { border-color: var(--primary); transform: scale(1.05); }
.cat-bubble-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-bubble .name { display: block; font-family: var(--heading); font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.cat-bubble .count { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Bande crème (items horizontaux) ---------- */
.band-cream { background: var(--cream); }
.hlist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--gap); }
.hitem { display: flex; gap: 16px; align-items: flex-start; background: transparent; padding: 12px; border-radius: var(--radius-sm); transition: background .15s; }
.hitem:hover { background: rgba(255,255,255,.7); }
.hitem-thumb { flex: 0 0 118px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; }
.hitem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hitem h3 { font-size: 16px; line-height: 1.3; margin: 7px 0 6px; }
.hitem:hover h3 { color: var(--primary); }
.hitem .clock { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }

/* ---------- Mosaïque sombre ---------- */
.band-dark { background: var(--dark); color: #fff; }
.band-dark .section-head h2 { color: #fff; }
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); }
.mosaic-side { display: grid; gap: var(--gap); }
.dcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); display: flex; align-items: flex-end; min-height: 200px; }
.dcard-bg { position: absolute; inset: 0; }
.dcard-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.dcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,15,.05) 25%, rgba(11,11,15,.9) 100%); }
.dcard-content { position: relative; z-index: 2; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dcard h3 { color: #fff; font-size: 18px; line-height: 1.28; }
.dcard-lead { min-height: 420px; }
.dcard-lead h3 { font-size: clamp(20px, 2.4vw, 28px); max-width: 26ch; }
.dcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dcard .clock { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: rgba(255,255,255,.65); }

/* ---------- CTA agence ---------- */
.cta-band { background: var(--dark); color: #fff; border-radius: 18px; padding: clamp(30px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); max-width: 20ch; }
.cta-band p { margin: 10px 0 0; color: rgba(255,255,255,.75); max-width: 44ch; }

/* ---------- Bandeau de page ---------- */
.page-head { padding: clamp(34px, 5vw, 60px) 0 clamp(18px, 2.6vw, 30px); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 10px 0 10px; }
.page-head p { font-size: 17px; color: var(--muted); max-width: 60ch; margin: 0; }
.page-eyebrow, .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.page-eyebrow::before, .eyebrow::before { content: ""; width: 20px; height: 3px; background: var(--red); border-radius: 2px; }
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Archives (pages rubrique/tag/auteur, pattern UDLT) ---------- */
.arch-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: end; }
.arch-head-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.arch-count { text-align: right; color: var(--muted); font-size: 14px; white-space: nowrap; }
.arch-count strong { display: block; font-family: var(--heading); font-weight: 800; font-size: 34px; color: var(--ink); line-height: 1; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.archive-layout > * { min-width: 0; }
.archive-side { position: sticky; top: 92px; }
.arch-list { display: flex; flex-direction: column; gap: 18px; }
.arch-item {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.arch-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.arch-thumb { display: block; height: 100%; min-height: 170px; overflow: hidden; background: var(--soft); }
.arch-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.arch-item:hover .arch-thumb img { transform: scale(1.05); }
.arch-body { padding: 18px 20px 16px 0; display: flex; flex-direction: column; gap: 9px; }
.arch-body h3 { font-size: 19px; line-height: 1.25; }
.arch-body h3 a:hover { color: var(--primary); }
.arch-body p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arch-body .meta { margin-top: auto; padding-top: 4px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--muted);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Article ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--primary), var(--red)); }
.single { padding-bottom: 40px; }
.article-head { max-width: 860px; padding-top: 6px; }
.article-head .card-pills { margin-bottom: 14px; }
.article-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.article-lede { font-size: 18.5px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.article-metabar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-metabar .meta .avatar { width: 34px; height: 34px; }
.share { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--body-tx); display: inline-flex; align-items: center; gap: 6px; }
.share a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.share a:hover { transform: translateY(-2px); }
.share .s-x { background: #0A0A0C; }
.share .s-li { background: #0A66C2; }
.share .s-fb { background: #1877F2; }
.share .s-wa { background: #25D366; }

.article-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.article-hero-img img { width: 100%; max-height: 520px; object-fit: cover; }
.hero-credit { display: block; text-align: right; font-size: 12px; color: var(--muted); margin: 6px 0 0; font-style: italic; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 26px; }
.article-layout > * { min-width: 0; }
.article-main { min-width: 0; max-width: 100%; }
.article-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-title { font-family: var(--heading); font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sidebar-title::after { content: "❯"; color: var(--red); font-size: .75em; }
.toc nav ul, .toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--muted); line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.toc-active { color: var(--primary); border-left-color: var(--primary); font-weight: 700; }
.toc ul ul a { padding-left: 26px; font-size: 13px; }

.more-lead { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); display: flex; align-items: flex-end; min-height: 200px; margin-bottom: 14px; }
.more-lead .dcard-bg img { opacity: .75; }
.more-lead h3 { font-size: 16.5px; }
.more-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }
.more-item:last-child { border-bottom: 0; }
.more-item h4 { font-size: 14.5px; line-height: 1.35; margin: 6px 0 5px; }
.more-item:hover h4 { color: var(--primary); }
.more-item .clock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }

/* Prose */
.prose { font-size: 17.5px; line-height: 1.75; max-width: 780px; overflow-wrap: break-word; }
.prose pre { overflow-x: auto; }
.prose img { max-width: 100%; height: auto; }
.prose > h2 { font-size: clamp(22px, 2.5vw, 29px); margin: 1.9em 0 .6em; scroll-margin-top: 96px; }
.prose > h3 { font-size: clamp(18px, 1.9vw, 22px); margin: 1.5em 0 .5em; scroll-margin-top: 96px; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--primary-2); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
/* En bref (toujours 1er element de l'article) : encadre punchy, rien du style callout IA */
.prose > blockquote:first-child {
  margin: 0 0 2em; padding: 20px 24px; border-radius: var(--radius-sm);
  background: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-size: 16px; color: var(--ink);
}
.prose > blockquote:first-child > p:first-child strong {
  display: inline-block; background: var(--ink); color: #fff;
  font-family: var(--heading); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 6px;
}
.prose > blockquote:first-child ol { margin-bottom: 0; }
/* Citations dans le corps : style editorial sobre */
.prose blockquote:not(:first-child) {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--primary);
  background: transparent; font-size: 18.5px; font-style: italic; color: var(--ink);
}
.prose blockquote p:last-child { margin: 0; }
/* Conteneur scrollable + ombre a droite tant qu'il reste du tableau a voir */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(10,10,12,.16), rgba(0,0,0,0)) left center / 14px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(10,10,12,.16), rgba(0,0,0,0)) right center / 14px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-wrap table { margin: 0; border: 0; border-radius: 0; width: 100%; min-width: 520px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ink); color: #fff; font-family: var(--heading); font-weight: 700; }
.prose tr:nth-child(even) td { background: var(--soft); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; margin-bottom: 10px; background: #fff; }
.prose summary { cursor: pointer; font-family: var(--heading); font-weight: 700; color: var(--ink); padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 20px; font-weight: 700; }
.prose details[open] summary::after { content: "–"; }
.prose details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* Tags + bloc auteur + similaires */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { font-size: 13px; font-weight: 600; color: var(--body-tx); background: var(--soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.tag:hover { border-color: var(--primary); color: var(--primary); }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 44px 0 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 780px; }
.author-box img, .author-box .avatar-ph { width: 76px; height: 76px; border-radius: 50%; flex: 0 0 auto; font-size: 30px; }
.author-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 800; }
.author-box h3 { font-size: 20px; margin: 5px 0 2px; }
.author-box .a-role { font-size: 13.5px; color: var(--primary); font-weight: 700; }
.author-box .a-bio { margin: 10px 0 8px; font-size: 14.5px; }
.author-box .a-exp { font-size: 13px; color: var(--muted); }

.related { margin-top: 52px; }
.related-title { font-size: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.related-title::after { content: "❯"; color: var(--red); font-size: .72em; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.article-nav a { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.article-nav a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.nav-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 800; margin-bottom: 6px; }
.nav-title { font-family: var(--heading); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.nav-next { text-align: right; }

/* Avatars */
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--heading); border-radius: 50%; }

/* ---------- Auteurs ---------- */
.authors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.author-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: box-shadow .18s, transform .18s; }
.author-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.author-card img, .author-card .avatar-ph { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; font-size: 32px; }
.author-card h3 { font-size: 19px; margin-bottom: 4px; }
.author-card .a-role { font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.author-card .a-bio { font-size: 14px; color: var(--muted); }
.author-card .a-count { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--red); margin-top: 14px; }

.author-hero { display: flex; gap: 24px; align-items: center; padding: clamp(30px, 4.4vw, 54px) 0 clamp(20px,3vw,34px); border-bottom: 1px solid var(--line); }
.author-hero img, .author-hero .avatar-ph { width: 104px; height: 104px; border-radius: 50%; flex: 0 0 auto; font-size: 40px; }
.author-hero h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 4px; }
.author-hero .a-role { color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.author-hero .a-bio { color: var(--muted); max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 70px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
.footer-brand .brand-name { font-size: 27px; }
.footer-brand p { margin-top: 12px; font-size: 14.5px; color: var(--muted); max-width: 36ch; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.socials a:hover { transform: translateY(-2px); }
.footer-col h4 { font-family: var(--heading); font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14.5px; font-weight: 500; padding: 5px 0; color: var(--body-tx); }
.footer-col a:hover { color: var(--primary); }
.newsletter p { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.newsletter label { display: block; font-size: 13px; font-weight: 600; color: var(--body-tx); margin-bottom: 6px; }
.newsletter input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 14.5px; background: #fff; color: var(--ink);
}
.newsletter input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.newsletter .btn { margin-top: 10px; padding: 11px 22px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-bottom a { font-weight: 600; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(50px, 10vw, 120px) 0; }
.notfound h1 { font-size: clamp(28px, 5vw, 52px); margin: 0 0 14px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.scroll-top.visible { display: inline-flex; }
.scroll-top:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-side { position: static; }
  .arch-head { grid-template-columns: 1fr; }
  .arch-head-side { display: none; }
  .hero-main { min-height: 340px; }
  .mosaic { grid-template-columns: 1fr; }
  .dcard-lead { min-height: 320px; }
  /* Mobile : sommaire AVANT l'article, "Plus d'articles" apres (retour Jérôme) */
  .article-layout { display: flex; flex-direction: column; }
  .article-layout > *, .article-main, .prose { min-width: 0; max-width: 100%; }
  .article-sidebar { position: static; display: contents; }
  .article-sidebar .toc { order: -1; }
  .article-sidebar .more-articles { order: 1; }
  .article-main { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* Nav repliee des 900px : 7 rubriques + switch de langue ne tiennent plus */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow); z-index: 120;
  }
  .main-nav.open a { padding: 12px; font-size: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-left span.topbar-note { display: none; }
  .topbar-date { display: none; }
  .card-grid, .authors-grid, .hlist { grid-template-columns: 1fr; }
  .arch-item { grid-template-columns: 1fr; }
  .arch-thumb { min-height: 0; aspect-ratio: 16/9; }
  .arch-body { padding: 0 18px 16px; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .author-hero { flex-direction: column; text-align: center; }
  .cat-bubble { width: 88px; }
  .cat-bubble-img { width: 72px; height: 72px; }
}

/* Petits mobiles : header compact */
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .brand-name { font-size: 21px; }
  .brand-suffix { display: none; }
  .header-right { gap: 6px; }
  .lang-item { padding: 5px 8px; font-size: 11px; }
  .nav-toggle { padding: 6px; }
  .topbar-pill { font-size: 11px; padding: 4px 10px; }
  .article-title { font-size: 27px; }
  .prose { font-size: 16.5px; }
  .prose > h2 { font-size: 21px; }
  .author-box { padding: 20px; }
  .share a { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-list { animation: none !important; }
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Plan du site ---------- */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 40px; }
.plan-col h2, .plan-section h2 { font-size: 22px; margin-bottom: 14px; }
.plan-col ul, .plan-list { list-style: none; padding: 0; margin: 0; }
.plan-col li, .plan-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.plan-col a, .plan-list a { font-weight: 600; color: var(--ink); }
.plan-col a:hover, .plan-list a:hover { color: var(--primary); }
.plan-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.plan-section { margin-bottom: 34px; }
@media (max-width: 640px) { .plan { grid-template-columns: 1fr; } }
