/* ==========================================================================
   AI Explorer — design v2 (décembre 2026)
   Sombre par défaut, clair en option. Tout est préfixé .aix- ou limité à body.aix-v2.
   ========================================================================== */

:root,
html[data-theme="dark"] {
  --bg: #0b1019;
  --surface: #121926;
  --surface-2: #182130;
  --border: #253043;
  --border-soft: #1c2636;
  --fg: #e8ecf2;
  --muted: #9ba6b7;
  --primary: #5aa2f0;
  --primary-hover: #84baf5;
  --primary-strong: #2f74c6;
  --on-primary: #ffffff;
  --mark: #2f74c6;
  --ad-bg: #0f1520;
  --ad-line: #33405a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3);
  --code-bg: #0f1520;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f1efeb;
  --border: #e4e2dd;
  --border-soft: #eeece8;
  --fg: #1a1917;
  --muted: #5f5c57;
  --primary: #1f5fae;
  --primary-hover: #174a8a;
  --primary-strong: #1f5fae;
  --on-primary: #ffffff;
  --mark: #1f5fae;
  --ad-bg: #efede9;
  --ad-line: #c9c6bf;
  --shadow: 0 1px 2px rgb(20 20 20 / .05);
  --code-bg: #f1efeb;
  color-scheme: light;
}

body.aix-v2 {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.aix-v2 *, .aix-v2 *::before, .aix-v2 *::after { box-sizing: border-box; }
.aix-v2 img { max-width: 100%; height: auto; }
.aix-v2 a { color: var(--primary); text-decoration: none; }
.aix-v2 a:hover { color: var(--primary-hover); }
.aix-v2 :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.aix-v2 h1, .aix-v2 h2, .aix-v2 h3, .aix-v2 h4 { color: var(--fg); font-family: var(--font); margin: 0; }
.aix-v2.aix-noscroll { overflow: hidden; }
html:has(body.aix-v2) { scroll-padding-top: calc(var(--header-h) + 24px); scroll-behavior: smooth; }

.aix-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aix-skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--primary-strong); color: var(--on-primary) !important; padding: 10px 16px; border-radius: 8px; }
.aix-skip:focus { top: 12px; }
.aix-muted { color: var(--muted); }
.aix-hp { position: absolute; left: -9999px; }

.aix-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.aix-wrap--wide { max-width: 1360px; }
.aix-wrap--text { max-width: 820px; }
@media (max-width: 640px) { .aix-wrap { padding: 0 20px; } }

/* ---------- Boutons ---------- */
.aix-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--fg) !important;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.aix-btn:hover { border-color: var(--muted); }
.aix-btn--primary { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--on-primary) !important; }
.aix-btn--primary:hover { filter: brightness(1.1); border-color: var(--primary-strong); }
.aix-btn--ghost { background: transparent; }
.aix-btn--light { background: #fff; border-color: #fff; color: #11161f !important; }
.aix-icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--fg); cursor: pointer;
}
.aix-icon-btn:hover { border-color: var(--muted); }
html[data-theme="dark"] .aix-ico-moon, html[data-theme="light"] .aix-ico-sun { display: none; }

/* ---------- En-tête ---------- */
.aix-top {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.admin-bar .aix-top { top: 32px; }
.aix-top__bar { height: var(--header-h); display: flex; align-items: center; gap: 36px; }
.aix-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg) !important; flex: none; }
.aix-brand__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--mark); display: grid; place-items: center; }
.aix-brand__mark span { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.aix-brand__text { font: 500 14px/1 var(--mono); letter-spacing: .14em; }
.aix-brand__text span { color: var(--muted); }
.aix-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.aix-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; }
.aix-nav a:hover, .aix-nav a[aria-current] { color: var(--fg); background: var(--surface-2); }
.aix-top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.aix-top__link { color: var(--muted) !important; font-size: 15px; font-weight: 500; padding: 0 8px; }
.aix-top__link:hover { color: var(--fg) !important; }
.aix-top__menu { display: none; }
.aix-progress { height: 2px; background: transparent; }
.aix-progress span { display: block; height: 2px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }
.aix-search { border-top: 1px solid var(--border-soft); padding: 16px 0; }
.aix-search__form { display: flex; gap: 10px; }
.aix-search__form input, .aix-search-inline input, .aix-newsletter-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: 16px var(--font);
}
@media (max-width: 1180px) { .aix-nav { display: none; } .aix-top__menu { display: inline-grid; } }
@media (max-width: 760px) { .aix-top__link, .aix-top__cta { display: none; } .aix-top__bar { gap: 16px; } .aix-top__actions { gap: 6px; } }

.aix-drawer { position: fixed; inset: 0; z-index: 200; background: var(--bg); padding: 16px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.aix-drawer[hidden] { display: none; }
.aix-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.aix-drawer__list { list-style: none; margin: 0; padding: 0; }
.aix-drawer__list a { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--border-soft); color: var(--fg); font-size: 18px; font-weight: 600; }
.aix-drawer__list span { color: var(--muted); font-weight: 400; }
.aix-drawer__foot { display: grid; gap: 10px; }

/* ---------- Structure ---------- */
.aix-main { padding: 48px 0 96px; }
.aix-section { margin-top: 80px; }
.aix-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--border-soft); }
.aix-section__head h2 { font-size: 26px; font-weight: 750; letter-spacing: -.01em; }
.aix-section__head p { margin: 0; color: var(--muted); }
.aix-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.aix-grid { display: grid; gap: 32px; }
.aix-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .aix-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .aix-grid--3 { grid-template-columns: 1fr; gap: 28px; } .aix-section { margin-top: 56px; } .aix-main { padding-top: 32px; } }

.aix-eyebrow { margin: 0 0 12px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.aix-lead { margin: 16px 0 0; font-size: 19px; line-height: 1.6; color: var(--muted); }

.aix-panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.aix-panel__title { font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 8px !important; }
.aix-panel__title a { color: inherit; }
.aix-panel--list { display: flex; flex-direction: column; }
.aix-panel--list .aix-panel__title { font-size: 19px !important; letter-spacing: 0; text-transform: none; color: var(--fg) !important; }
.aix-panel--list .aix-more { margin-top: auto; padding-top: 16px; }
.aix-panel--cta p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.aix-panel--cta .aix-panel__title { text-transform: none; letter-spacing: 0; font-size: 18px !important; color: var(--fg) !important; }
.aix-linklist { list-style: none; margin: 0; padding: 0; }
.aix-linklist li { border-top: 1px solid var(--border-soft); }
.aix-linklist li:first-child { border-top: 0; }
.aix-linklist a { display: block; padding: 12px 0; color: var(--fg); font-size: 15.5px; line-height: 1.45; font-weight: 500; }
.aix-linklist a:hover { color: var(--primary); }
.aix-linklist--count li { display: flex; justify-content: space-between; align-items: center; }
.aix-linklist--count span { color: var(--muted); font-size: 14px; }

.aix-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.aix-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg) !important; font-size: 14px; font-weight: 500; }
.aix-chip span { color: var(--muted); font-size: 13px; }
.aix-chip:hover { border-color: var(--primary); }

/* ---------- Cartes ---------- */
.aix-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.aix-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.aix-card__img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .3s ease; }
.aix-card:hover .aix-card__img { transform: scale(1.03); }
.aix-card__body { display: flex; flex-direction: column; gap: 8px; }
.aix-card__cat { align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary) !important; }
.aix-card__title { font-size: 20px !important; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.aix-card__title a { color: var(--fg); }
.aix-card__title a::after { content: ''; position: absolute; inset: 0; }
.aix-card__title a:hover { color: var(--primary); }
.aix-card__cat { position: relative; z-index: 1; }
.aix-card__excerpt { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.aix-card__meta { margin: 0; color: var(--muted); font-size: 13.5px; }

.aix-card--feature { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; gap: 0; height: 100%; }
.aix-card--feature .aix-card__media { border-radius: 0; aspect-ratio: 16 / 9; }
.aix-card--feature .aix-card__body { padding: 28px 32px 32px; gap: 12px; }
.aix-card--feature .aix-card__title { font-size: 30px !important; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.aix-card--feature .aix-card__excerpt { font-size: 17px; }

.aix-card--row { flex-direction: row; gap: 28px; padding: 28px 0; border-top: 1px solid var(--border-soft); align-items: flex-start; }
.aix-card--row:first-child { border-top: 0; padding-top: 8px; }
.aix-card--row .aix-card__media { flex: 0 0 260px; aspect-ratio: 3 / 2; }
.aix-card--row .aix-card__body { flex: 1; }
.aix-card--row .aix-card__title { font-size: 22px !important; }
@media (max-width: 640px) {
  .aix-card--row { flex-direction: column; gap: 14px; }
  .aix-card--row .aix-card__media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .aix-card--feature .aix-card__body { padding: 20px; }
  .aix-card--feature .aix-card__title { font-size: 24px !important; }
}

.aix-card--promo { justify-content: flex-end; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); color: var(--fg) !important; min-height: 220px; }
.aix-card--promo .aix-card__title { color: var(--fg); }
.aix-card__more { display: inline-flex; gap: 6px; align-items: center; color: var(--primary); font-weight: 600; font-size: 15px; }
.aix-card--promo:hover { border-color: var(--primary); }

/* ---------- Accueil ---------- */
.aix-intro { max-width: 860px; }
.aix-intro h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.aix-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; margin-top: 48px; align-items: stretch; }
.aix-hero__side { display: flex; flex-direction: column; padding: 24px 28px; }
.aix-ranked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.aix-ranked li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border-soft); }
.aix-ranked li:first-child { border-top: 0; }
.aix-ranked__n { flex: none; width: 28px; font-size: 28px; line-height: 1; font-weight: 800; color: var(--border); }
.aix-ranked__title { color: var(--fg); font-size: 18px; line-height: 1.35; font-weight: 650; }
.aix-ranked .aix-card__meta { margin-top: 6px; }
@media (max-width: 1000px) { .aix-hero { grid-template-columns: 1fr; } }

/* ---------- Rubriques ---------- */
.aix-archive-head { padding: 0 0 40px; margin: -48px 0 40px; padding-top: 48px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.aix-archive-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.aix-archive-head__desc { max-width: 760px; margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.aix-archive-head__desc p { margin: 0 0 12px; }
.aix-archive-head__desc a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.aix-archive-head__desc a:hover { color: var(--primary); text-decoration-color: currentColor; }
.aix-with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.aix-count { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.aix-empty { color: var(--muted); font-size: 17px; }
.aix-search-inline { display: flex; gap: 10px; margin: 0 0 24px; }
@media (max-width: 1000px) { .aix-with-rail { grid-template-columns: 1fr; gap: 48px; } }

.aix-v2 .pagination, .aix-v2 .navigation.aix-pagination { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.aix-v2 .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.aix-v2 .nav-links .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-weight: 600; }
.aix-v2 .nav-links .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.aix-v2 .nav-links .dots { border: 0; background: none; }

/* ---------- Colonne latérale ---------- */
.aix-rail { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.aix-rail__sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Article ---------- */
.aix-main--article { padding-top: 28px; }
.aix-breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.aix-breadcrumb a { color: var(--muted); }
.aix-breadcrumb a:hover { color: var(--fg); }
.aix-article-layout { display: grid; grid-template-columns: 220px minmax(0, 740px) 300px; gap: 48px; justify-content: space-between; align-items: start; }
.aix-article-layout.no-toc { grid-template-columns: minmax(0, 760px) 300px; }
.aix-toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; padding-right: 4px; }
.aix-toc__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aix-toc ol { list-style: none; margin: 0; padding: 0; }
.aix-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border-soft); color: var(--muted); font-size: 14px; line-height: 1.4; }
.aix-toc a:hover { color: var(--fg); }
.aix-toc a[aria-current] { color: var(--fg); border-left-color: var(--primary); font-weight: 600; }
.aix-toc-mobile { display: none; margin: 28px 0 0; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.aix-toc-mobile summary { cursor: pointer; padding: 0 18px; min-height: 52px; display: flex; align-items: center; font-weight: 650; }
.aix-toc-mobile ol { margin: 0; padding: 0 18px 16px 38px; }
.aix-toc-mobile li { padding: 6px 0; }
.aix-toc-mobile a { color: var(--fg); }
@media (max-width: 1240px) {
  .aix-article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .aix-toc { display: none; }
  .aix-toc-mobile { display: block; }
}
@media (max-width: 1000px) { .aix-article-layout, .aix-article-layout.no-toc { grid-template-columns: 1fr; } .aix-rail__sticky { position: static; } }

.aix-article__head { display: flex; flex-direction: column; gap: 0; }
.aix-article__title { margin-top: 12px !important; font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.aix-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.aix-byline__avatar { border-radius: 50%; }
.aix-byline__text { display: flex; flex-direction: column; line-height: 1.5; }
.aix-byline__text a { color: var(--fg); font-weight: 600; }
.aix-byline__method { margin-left: auto; min-height: 40px; font-size: 14px; border-radius: 999px; }
.aix-article__cover { margin: 32px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.aix-article__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.aix-authorbox { display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); font-size: 15px; line-height: 1.6; }
.aix-authorbox img { border-radius: 50%; flex: none; }
.aix-authorbox p { margin: 0; color: var(--muted); }
.aix-authorbox .aix-authorbox__name { color: var(--fg); font-weight: 700; margin-bottom: 4px; }
.aix-related { margin-top: 96px; }

/* ---------- Texte des articles ---------- */
.aix-prose { margin-top: 36px; font-size: 18px; line-height: 1.75; color: var(--fg); overflow-wrap: break-word; }
.aix-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.aix-prose > p:first-child em:only-child, .aix-prose > p:first-child > em { display: block; font-style: normal; font-size: 15px; line-height: 1.6; color: var(--muted); padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border-soft); }
.aix-prose h2 { font-size: 28px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; margin: 2.2em 0 .7em; }
.aix-prose h3 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 1.8em 0 .6em; }
.aix-prose h4 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .5em; }
.aix-prose a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.aix-prose a:hover { text-decoration-color: currentColor; }
.aix-prose strong { color: var(--fg); font-weight: 650; }
.aix-prose ul, .aix-prose ol { padding-left: 1.4em; }
.aix-prose li { margin: .4em 0; }
.aix-prose li::marker { color: var(--muted); }
.aix-prose hr, .aix-prose .wp-block-separator { border: 0; border-top: 1px solid var(--border-soft); margin: 2.5em 0; opacity: 1; }
.aix-prose blockquote, .aix-prose .wp-block-quote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--primary); color: var(--fg); font-size: 18px; }
.aix-prose blockquote p:last-child { margin-bottom: 0; }
.aix-prose code { font-family: var(--mono); font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--code-bg); border: 1px solid var(--border-soft); }
.aix-prose pre, .aix-prose .wp-block-code { font-family: var(--mono); font-size: 14px; line-height: 1.6; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--code-bg); border: 1px solid var(--border-soft); overflow-x: auto; color: var(--fg); }
.aix-prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.aix-prose figure { margin-left: 0; margin-right: 0; }
.aix-prose img { border-radius: var(--radius-sm); }
.aix-prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

.aix-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); margin: 1.8em 0; -webkit-overflow-scrolling: touch; }
.aix-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.aix-prose .wp-block-table table { min-width: 560px; }
.aix-prose th, .aix-prose td { padding: 12px 16px; text-align: left; vertical-align: top; border: 0; border-top: 1px solid var(--border-soft); }
.aix-prose thead th, .aix-prose thead td { border-top: 0; background: var(--surface-2); font-weight: 650; font-size: 14px; color: var(--fg); }
.aix-prose tbody tr:first-child td { border-top: 0; }
.aix-prose thead + tbody tr:first-child td { border-top: 1px solid var(--border-soft); }
.aix-prose td:first-child { font-weight: 600; }
.aix-prose .wp-block-table thead { border-bottom: 0; }
.aix-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }

/* FAQ Yoast */
.aix-prose .schema-faq { margin: 1.5em 0; border-top: 1px solid var(--border-soft); }
.aix-prose .schema-faq-section { padding: 20px 0; border-bottom: 1px solid var(--border-soft); margin: 0; }
.aix-prose .schema-faq-question { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.aix-prose .schema-faq-answer { margin: 0; color: var(--fg); }

@media (max-width: 640px) {
  .aix-prose { font-size: 17px; line-height: 1.7; }
  .aix-prose h2 { font-size: 24px; }
  .aix-prose h3 { font-size: 20px; }
  .aix-byline__method { margin-left: 0; }
  .aix-article__cover { margin-left: -20px; margin-right: -20px; border-radius: 0; }
}

/* ---------- Publicités ---------- */
.aix-ad { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aix-ad__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aix-ad ins { display: block; min-height: 90px; }
.aix-ad--wide { margin: 64px auto 0; max-width: 970px; width: 100%; }
.aix-ad--content { margin: 2.2em 0 !important; padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.aix-ad--content ins { min-height: 250px; }
.aix-ad--side ins { min-height: 250px; }
.aix-ad--single_side_sticky ins, .aix-ad--archive_side_sticky ins { min-height: 600px; }
.aix-ad--feed { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); }
.aix-ad--row { padding: 28px 0; border-top: 1px solid var(--border-soft); }
.aix-ad.is-preview .aix-ad__slot { display: grid; place-items: center; padding: 16px; text-align: center; border: 2px dashed var(--ad-line); border-radius: var(--radius-sm); background: var(--ad-bg); color: var(--muted); font: 500 13px/1.5 var(--mono); min-height: 90px; }
.aix-ad--wide.is-preview .aix-ad__slot { min-height: 250px; }
.aix-ad--content.is-preview .aix-ad__slot, .aix-ad--side.is-preview .aix-ad__slot { min-height: 250px; }
.aix-ad--single_side_sticky.is-preview .aix-ad__slot, .aix-ad--archive_side_sticky.is-preview .aix-ad__slot { min-height: 600px; }
.aix-ad--feed.is-preview .aix-ad__slot { min-height: 100%; flex: 1; }
.aix-ad--feed.is-preview { padding: 0; border: 0; background: none; }
@media (max-width: 640px) { .aix-ad--wide { margin-top: 48px; } }

/* ---------- Newsletter et pied de page ---------- */
.aix-newsletter { padding: 0 0 72px; }
.aix-newsletter__inner { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.aix-newsletter__inner { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px; padding: 44px 48px; max-width: 1176px; }
.aix-newsletter__text { flex: 1 1 380px; }
.aix-newsletter__text h2 { font-size: 28px; font-weight: 750; letter-spacing: -.01em; }
.aix-newsletter__text p { margin: 8px 0 0; color: var(--muted); font-size: 16.5px; }
.aix-newsletter-form { flex: 1 1 380px; }
.aix-newsletter__row { display: flex; gap: 10px; flex-wrap: wrap; }
.aix-newsletter__row .aix-newsletter-input { flex: 1 1 220px; height: 52px; background: var(--bg); }
.aix-newsletter__row .aix-btn { height: 52px; }
html[data-theme="light"] .aix-newsletter .aix-btn--light { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff !important; }
.aix-newsletter-feedback { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.aix-newsletter-feedback.is-success { color: #4fc78a; }
.aix-newsletter-feedback.is-error { color: #f08a7a; }
html[data-theme="light"] .aix-newsletter-feedback.is-success { color: #1d7a4a; }
html[data-theme="light"] .aix-newsletter-feedback.is-error { color: #b4382a; }
@media (max-width: 640px) { .aix-newsletter__inner { padding: 28px 20px; margin: 0 20px; width: auto; } .aix-newsletter__text h2 { font-size: 23px; } }

.aix-footer { border-top: 1px solid var(--border-soft); background: var(--surface); font-size: 15px; }
.aix-footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.aix-footer__brand p { margin: 16px 0 0; color: var(--muted); max-width: 340px; line-height: 1.6; }
.aix-footer__title { margin: 0 0 12px; font-weight: 700; color: var(--fg); }
.aix-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aix-footer ul a { color: var(--muted); }
.aix-footer ul a:hover { color: var(--fg); }
.aix-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .aix-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aix-footer__brand { grid-column: 1 / -1; } }

/* ---------- Divers ---------- */
.aix-404 { text-align: left; padding-top: 32px; }
.aix-404 h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.aix-404 .aix-search-inline { margin: 32px 0; }
.aix-page-builder { min-height: 40vh; }
.aix-comments { margin-top: 48px; }
.aix-v2 #aie-popup-overlay { z-index: 300; }

/* ---------- Correctifs après premières captures ---------- */
.aix-article, .aix-toc, .aix-rail, .aix-with-rail__main { min-width: 0; }
.aix-prose table { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.aix-ranked__title { color: var(--fg) !important; }
.aix-ranked__title:hover { color: var(--primary) !important; }
.aix-prose .wp-block-table table, .aix-prose .wp-block-table table.has-fixed-layout { table-layout: auto; width: 100%; }
.aix-prose .wp-block-table th, .aix-prose .wp-block-table td { word-break: normal; overflow-wrap: normal; }
@media (max-width: 640px) { .aix-prose .wp-block-table table { width: max-content; max-width: 900px; min-width: 100%; } .aix-prose .wp-block-table td, .aix-prose .wp-block-table th { max-width: 240px; } }
/* En-tête : Kouiz'in ajouté, on resserre */
.aix-top__bar { gap: 24px; }
.aix-nav a { padding: 9px 10px; white-space: nowrap; }
.aix-top__link { white-space: nowrap; padding: 0 6px; }
.aix-top__actions { gap: 8px; }
@media (max-width: 1279px) { .aix-nav { display: none; } .aix-top__menu { display: inline-grid; } }

/* ---------- Mobile : rien ne doit dépasser de l'écran ---------- */
body.aix-v2 { overflow-x: clip; }
@media (max-width: 480px) {
  .aix-top__bar { gap: 12px; }
  .aix-top__actions { gap: 6px; }
  .aix-brand { gap: 8px; min-width: 0; }
  .aix-brand__text { font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
}
@media (max-width: 359px) {
  .aix-top__bar .aix-brand__text { display: none; }
}

/* Formulaire de commentaires */
.aix-comments textarea, .aix-comments input[type="text"], .aix-comments input[type="email"], .aix-comments input[type="url"] {
  width: 100%; max-width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: 16px/1.5 var(--font);
}
.aix-comments input[type="submit"] { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-sm); background: var(--primary-strong); color: var(--on-primary); font: 600 15px var(--font); cursor: pointer; }
.aix-comments .comment-reply-title, .aix-comments h3 { font-size: 20px; margin-bottom: 12px; }

/* ---------- FAQ : questions mieux séparées ---------- */
.aix-prose .schema-faq { border-top: 0; display: flex; flex-direction: column; gap: 16px; margin: 1.8em 0; }
.aix-prose .schema-faq-section { margin: 0; padding: 22px 24px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.aix-prose .schema-faq-question { font-size: 18.5px; line-height: 1.4; margin-bottom: 12px; }
.aix-prose .schema-faq-answer { line-height: 1.7; }
@media (max-width: 640px) { .aix-prose .schema-faq-section { padding: 18px; } .aix-prose .schema-faq-question { font-size: 17.5px; } }
.aix-byline__text { flex: 1 1 200px; min-width: 0; }
@media (max-width: 640px) { .aix-byline__method { flex-basis: 100%; } }
/* Commentaires */
.aix-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-soft); }
.aix-comments__title { font-size: 22px !important; font-weight: 750; margin-bottom: 20px !important; }
.aix-comment-list { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.aix-comment-list .children { list-style: none; margin: 16px 0 0 24px; padding: 0; }
.aix-comment-list .comment-body { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); font-size: 15.5px; line-height: 1.65; }
.aix-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.aix-comment-list .comment-author img { border-radius: 50%; }
.aix-comment-list .comment-author .says { display: none; }
.aix-comment-list .comment-meta { font-size: 13px; margin: 4px 0 8px; }
.aix-comment-list .comment-meta a { color: var(--muted); }
.aix-comment-list .reply a { font-size: 14px; font-weight: 600; }
.aix-comments .comment-form { display: flex; flex-direction: column; gap: 14px; }
.aix-comments .comment-form p { margin: 0; }
.aix-comments .comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.aix-comments .comment-notes, .aix-comments .logged-in-as { font-size: 14px; color: var(--muted); }
.aix-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.aix-comments .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
/* Encadré « À propos du blog » (accueil) */
.aix-about { max-width: 760px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); }
.aix-about h2 { font-size: 22px; margin: 0 0 12px; }
.aix-about p { color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.aix-about__links { margin: 0 !important; font-weight: 600; }
@media (max-width: 600px) { .aix-about { padding: 22px 20px; } }
