:root {
  --navy-950: #040b24;
  --navy-900: #0a1438;
  --navy-800: #11205a;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --cyan-400: #22d3ee;
  --cyan-300: #5ee7ff;
  --ink: #0b1433;
  --ink-soft: #4a5578;
  --line: #e3e8f4;
  --bg: #ffffff;
  --bg-alt: #f4f7fd;
  --grad: linear-gradient(120deg, #1d4ed8 0%, #2f7bff 45%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(17, 32, 90, .25);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body);
  padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(34, 211, 238, .6); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--cyan-400); }
.btn-sm { padding: .7em 1.2em; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(4, 11, 36, .85); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 800 1.25rem var(--font-head); letter-spacing: -.01em; }
.brand-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .62rem; letter-spacing: .42em; opacity: .75; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: rgba(255,255,255,.8); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--cyan-300); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at top, var(--navy-800), var(--navy-950) 70%);
  padding: 150px 0 110px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.g1 { width: 520px; height: 520px; background: #1d4ed8; top: -120px; right: -80px; }
.g2 { width: 420px; height: 420px; background: #0891b2; bottom: -180px; left: -120px; opacity: .4; }
.g3 { width: 600px; height: 600px; background: #1d4ed8; top: 10%; left: -200px; opacity: .35; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cyan-300); padding: .5em 1em; border: 1px solid rgba(94,231,255,.3); border-radius: 999px; margin-bottom: 1.4em;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.75); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0 2.2em; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { font-size: .82rem; padding: .4em .9em; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

.hero-visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(420px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(94,231,255,.25);
}
.orbit::before { inset: 4%; animation: spin 40s linear infinite; }
.orbit::after { inset: 20%; border-style: solid; border-color: rgba(37,99,235,.35); }
.hero-mark { width: 62%; filter: drop-shadow(0 20px 40px rgba(34,211,238,.35)); animation: float 6s ease-in-out infinite; }
.chip {
  position: absolute; font: 600 .8rem var(--font-head); padding: .45em .9em; border-radius: 999px;
  background: rgba(10,20,56,.85); border: 1px solid rgba(94,231,255,.35); color: var(--cyan-300);
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.5); animation: float 6s ease-in-out infinite;
}
.c1 { top: 6%; left: 18%; animation-delay: -1s; }
.c2 { top: 16%; right: 2%; animation-delay: -2s; }
.c3 { bottom: 20%; right: 0; animation-delay: -3s; }
.c4 { bottom: 4%; left: 30%; animation-delay: -4s; }
.c5 { top: 48%; left: -2%; animation-delay: -5s; }
.c6 { top: 2%; right: 30%; background: var(--grad); color: #fff; border: 0; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-950); color: #fff; overflow: hidden; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.kicker { font: 600 .8rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--blue-500); margin-bottom: .8em; }
.kicker-light { color: var(--cyan-300); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--blue-500); background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(34,211,238,.15));
}
.pillar-icon svg { width: 36px; height: 36px; }
.pillar p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.35em + 4px); width: 6px; height: 4px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.tech:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tech-badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); background: rgba(37,99,235,.08); padding: .35em .8em; border-radius: 6px; margin-bottom: 14px;
}
.tech p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* IA */
.ia-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.ia-copy p { color: rgba(255,255,255,.72); font-size: 1.08rem; margin-bottom: 2em; }
.ia-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ia-item {
  display: flex; gap: 16px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, transform .3s;
}
.ia-item:hover { border-color: rgba(94,231,255,.5); transform: translateY(-4px); }
.ia-num { font: 800 1.6rem var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.ia-item h3 { font-size: 1.08rem; }
.ia-item p { color: rgba(255,255,255,.65); font-size: .93rem; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-500), var(--cyan-400), transparent); opacity: .4;
}
.step { text-align: center; position: relative; }
.step span {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  font: 700 1.3rem var(--font-head); color: #fff; background: var(--grad); box-shadow: 0 0 0 8px #fff, 0 10px 24px -6px rgba(37,99,235,.5);
}
.step p { color: var(--ink-soft); font-size: .95rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--blue-500); }
.value p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.05rem; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-points svg { width: 22px; height: 22px; color: var(--blue-500); flex: none; }
.contact-points a:hover { color: var(--blue-500); }
.contact-form { background: #fff; padding: 36px; border-radius: 22px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--font-body); color: var(--ink); padding: .8em 1em; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-alt); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.contact-form .invalid { border-color: #e11d48; }
.form-note { margin: 0; font-size: .9rem; color: var(--ink-soft); min-height: 1.4em; }

/* Footer */
.footer { background: var(--navy-950); color: rgba(255,255,255,.6); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-tag { margin: 0; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.footer-copy { margin: 0; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .ia-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit { width: min(300px, 80%); }
  .pillars, .tech-grid, .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(4,11,36,.97); backdrop-filter: blur(12px); padding: 8px 16px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .btn { margin-top: 16px; }
  .nav:has(.nav-links.open) { background: rgba(4,11,36,.97); }
  .nav-right { margin-left: auto; }
}
@media (max-width: 760px) {
  .hero { padding: 120px 0 80px; }
  .section { padding: 80px 0; }
  .pillars, .tech-grid, .values, .ia-list, .steps, .contact-form .row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .chip { font-size: .7rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Language switch */
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: 24px; }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.lang-switch button {
  font: 600 .78rem var(--font-body); letter-spacing: .05em; color: rgba(255,255,255,.7);
  background: none; border: 0; padding: .45em .8em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.lang-switch button:hover:not([aria-pressed="true"]) { color: #fff; }

/* Products */
.products { position: relative; margin-top: 110px; }
.products-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); transition: transform .3s, border-color .3s;
}
.product::before {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, var(--p2), transparent 70%); opacity: .35; pointer-events: none;
}
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--p1) 60%, transparent); }
.product-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; position: relative; }
.product-logo {
  flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 10px 26px -8px var(--p2);
}
.product-logo svg { width: 32px; height: 32px; }
.product h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 2px; }
.product h3 span { background: linear-gradient(120deg, var(--p1), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-tag { margin: 0; color: rgba(255,255,255,.65); font-size: .92rem; }
.status {
  margin-left: auto; align-self: flex-start; white-space: nowrap; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .4em .8em; border-radius: 999px; color: #fde68a; background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.35);
}
.status-live { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); }
.product > p { color: rgba(255,255,255,.75); position: relative; }
.ticks-light li { color: rgba(255,255,255,.88); font-weight: 400; }
.ticks-light li::before { background: linear-gradient(120deg, var(--p1), var(--p2)); }
.product .ticks { margin-bottom: 28px; }
.btn-product { margin-top: auto; align-self: flex-start; color: #fff; background: linear-gradient(120deg, var(--p1), var(--p2)); }
.btn-product[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .product { padding: 24px; }
  .product-top { flex-wrap: wrap; }
  .status { margin-left: 0; order: -1; }
}

/* ================= Accessibilité ================= */
.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; }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }
.nav-links a[aria-current="page"] { color: var(--cyan-300); }
@media (max-width: 1100px) { .nav-right { margin-left: auto; } }

/* Badges technologiques de la hero : liens vers les publications */
.hero-tags li { padding: 0; background: none; border: 0; }
.hero-tags a {
  display: inline-block; padding: .4em .9em; border-radius: 8px; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.hero-tags a:hover, .hero-tags a:focus-visible { color: #fff; border-color: rgba(94,231,255,.55); background: rgba(34,211,238,.1); transform: translateY(-2px); }

/* ================= Cartes articles (ArticleCard) ================= */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.article-card[hidden] { display: none; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.article-card:focus-within { box-shadow: 0 0 0 2px var(--cyan-400), var(--shadow); }
.card-cover {
  position: relative; height: 128px; display: flex; align-items: flex-end; padding: 18px 22px;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--cat) 80%, transparent), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
}
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-cover-label { position: relative; font: 800 1.35rem var(--font-head); color: #fff; letter-spacing: -.01em; opacity: .92; }
.card-featured {
  position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .35em .75em; border-radius: 999px; color: #fff; background: var(--grad);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.card-cats { margin: 0 0 10px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.card-cats-light { color: var(--cyan-300); }
.card-title { font-size: 1.18rem; font-weight: 700; margin: 0 0 10px; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toute la carte est cliquable */
.card-title a:focus-visible { outline: none; }
.card-desc { color: var(--ink-soft); font-size: .94rem; margin-bottom: 14px; }
.card-meta { color: var(--ink-soft); font-size: .82rem; margin: 0 0 14px; }
.card-tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags li { font-size: .74rem; font-weight: 500; color: var(--blue-600); background: rgba(37,99,235,.08); padding: .3em .7em; border-radius: 6px; }
.card-more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--blue-500); }
.article-card:hover .card-more { color: var(--blue-600); }
.section-more { text-align: center; margin: 44px 0 0; }
.link-arrow { font-weight: 600; color: var(--blue-500); }
.link-arrow:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 4px; }

/* ================= Page Publications ================= */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at top, var(--navy-800), var(--navy-950) 70%); padding: 150px 0 80px; }
.page-hero-inner { position: relative; max-width: 860px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.page-hero .lead { margin: 0; }
.filters-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.filters-label { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 500 .9rem var(--font-body); color: var(--ink); cursor: pointer;
  padding: .55em 1.05em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, color .2s, background .2s;
}
.filter:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.filter-count { margin: 0 0 24px; font-size: .9rem; color: var(--ink-soft); }
.filter-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ================= Page article ================= */
.article-hero { padding-bottom: 70px; }
.article-hero .glow.g1 { background: var(--cat); opacity: .4; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: rgba(255,255,255,.6); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--cyan-300); }
.breadcrumb [aria-current] span { display: inline-block; max-width: 36ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; font-size: .92rem; color: rgba(255,255,255,.7); }
.article-section { padding-top: 64px; }
.article-container { max-width: 820px; }
html[lang="en"] [data-lang-content="fr"], html:not([lang="en"]) [data-lang-content="en"] { display: none; }
.lang-note { padding: 12px 16px; border-radius: 10px; background: var(--bg-alt); color: var(--ink-soft); font-size: .92rem; }

.toc-box { margin: 0 0 40px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--blue-500); }
.toc-title { margin: 0 0 10px; font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.toc-box ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc-box a { color: var(--ink); font-size: .95rem; }
.toc-box a:hover { color: var(--blue-500); }
.toc-l3 { padding-left: 18px; font-size: .92em; }

.prose { font-size: 1.06rem; line-height: 1.75; color: #1f2a4d; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol, .prose figure, .prose pre, .prose blockquote { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.2em 0 .6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; scroll-margin-top: 100px; }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue-500); }
.prose a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: rgba(37,99,235,.08); color: var(--navy-800); padding: .12em .4em; border-radius: 5px; }
.prose pre {
  position: relative; overflow-x: auto; padding: 42px 22px 20px; border-radius: 14px;
  background: var(--navy-950); border: 1px solid rgba(94,231,255,.15); line-height: 1.6;
}
.prose pre[data-lang]::before {
  content: attr(data-lang); position: absolute; top: 12px; left: 22px; font: 600 .7rem var(--font-body);
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-300);
}
.prose pre code { background: none; color: #dbe6ff; padding: 0; font-size: .88rem; white-space: pre; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--blue-500); font: 500 1.2rem/1.6 var(--font-head); color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-soft); text-align: center; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.prose th { text-align: left; font-weight: 600; background: var(--bg-alt); color: var(--ink); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.callout { padding: 18px 22px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--blue-500); }
.callout p { margin: 0; }
.callout p + p { margin-top: .5em; }
.callout-title { font: 700 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.callout-warning { border-left-color: #d97706; background: #fffbeb; }
.callout-warning .callout-title { color: #b45309; }
.callout-tip { border-left-color: #0d9488; }
.callout-tip .callout-title { color: #0f766e; }
.callout-key {
  border: 0; color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  box-shadow: inset 4px 0 0 var(--cyan-400);
}
.callout-key .callout-title { color: var(--cyan-300); }
.callout-key strong { color: #fff; }
.article-tags { margin-top: 48px; }

.article-cta-wrap { padding: 20px 0 90px; }
.article-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff; padding: 56px 32px; border-radius: 24px;
  background: radial-gradient(ellipse at top, var(--navy-800), var(--navy-950) 75%);
}
.article-cta > *:not(.hero-bg) { position: relative; }
.article-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 26ch; margin-inline: auto; }
.article-cta p { color: rgba(255,255,255,.75); margin: 0 auto 28px; max-width: 52ch; }
.related-title { text-align: center; margin-bottom: 40px; }

@media (min-width: 1180px) {
  /* Table des matières collante à côté du texte sur grand écran */
  .article-container { max-width: 1120px; }
  .article-lang { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .article-lang:not(:has(.toc-box)) { grid-template-columns: minmax(0, 820px); justify-content: center; }
  .article-lang .toc-box { position: sticky; top: 100px; margin: 0; }
  .article-lang .lang-note { grid-column: 1 / -1; }
  .article-tags { margin-left: 296px; }
}
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .article-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 60px; }
  .prose { font-size: 1rem; }
  .article-cta { padding: 44px 22px; }
  .breadcrumb [aria-current] span { max-width: 22ch; }
}
