/* ══════════════════════════════════════════════════════════════════════
   BASE — reset, print color-adjust, page-break hygiene
   ══════════════════════════════════════════════════════════════════════ */
html {
	-webkit-print-color-adjust: exact;
	overflow-x: hidden;
}
* {
	box-sizing: border-box;
	-webkit-print-color-adjust: exact;
}

html {
	margin: 0;
	padding: 0;
}

/* body's box model, color, line-height and white-space are owned by the
   REDESIGN section's `body` rule below — the original Notion reading-width
   reset (margin: 2em auto / max-width: 900px on screen; line-height: 1.5)
   is superseded there and was removed to avoid two rules fighting over it. */

a {
	color: inherit;
	text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY — headings, paragraphs
   ══════════════════════════════════════════════════════════════════════ */
h1,
h2,
h3 {
	letter-spacing: -0.01em;
	line-height: 1.2;
	font-weight: 600;
	margin-bottom: 0;
}

/* Override strong tags inside headings to maintain consistent weight */
h1 strong,
h2 strong,
h3 strong {
	font-weight: 600;
}

/* .page-title and a standalone h1 rule used to live here; the document has
   exactly one h1 (always class="page-title"), and every property either set
   is fully repainted by the higher-specificity `h1.page-title` rule in the
   REDESIGN section, so both were dead weight. */

h2 {
	font-size: 1.5rem;
	margin-top: 1.5rem;
}

h3 {
	font-size: 1.25rem;
	margin-top: 1.25rem;
}

p {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

blockquote {
	font-size: 1em;
	margin: 1em 0;
	padding-left: 1em;
	border-left: 3px solid rgb(55, 53, 47);
}

/* ══════════════════════════════════════════════════════════════════════
   CALLOUTS, TOGGLES (<details>), ASIDES
   ══════════════════════════════════════════════════════════════════════ */
.callout {
	border-radius: 10px;
	padding: 1rem;
}

.callout p {
	margin: 0;
}

.callout h1,
.callout h2,
.callout h3 {
	margin: 0 0 0.6rem;
}

/*
  * Toggles and callouts hold arbitrary content, so they can easily be taller
  * than a page. They must stay breakable: avoiding breaks inside them makes
  * Chromium push the whole block onto the next page, which leaves the previous
  * page mostly empty before every long toggle.
  */
details,
aside {
	margin: 1.25em 0;
}

/* Keep a toggle's title on the same page as the start of its content. */
summary {
	page-break-after: avoid;
	break-after: avoid;
}

/*
  * Toggle headings render as <h1/h2/h3> inside
  * <summary>. Without this reset, the heading's margin-top pushes it below the
  * ::marker (▼), so the triangle and the title appear on separate lines.
  */
summary h1,
summary h2,
summary h3,
summary h4 {
	margin-top: 0;
}

.indented {
	padding-left: 1.5em;
}

/* ══════════════════════════════════════════════════════════════════════
   FIGURES & IMAGES
   ══════════════════════════════════════════════════════════════════════ */
figure {
	margin: 1.25em 0;
	page-break-inside: avoid;
}

img {
	max-width: 100%;
	height: auto;
}

@media only print {
	img {
		max-height: 100vh;
		object-fit: contain;
	}
}

.image {
	border: none;
	margin: 1.5em 0;
	padding: 0;
	border-radius: 0;
	text-align: center;
}

.fig-caption {
	font-family: var(--font-sans);
	font-size: 12.5px;
	line-height: 1.5;
	font-style: italic;
	color: var(--ink-3);
	text-align: center;
	max-width: 560px;
	margin: 10px auto 0;
}

.fig-caption .fig-source {
	font-style: normal;
	font-weight: 600;
	color: var(--ink-2);
}

.legal-footer {
	font-family: var(--font-sans);
	font-size: 12px;
	color: var(--ink-3);
	text-align: center;
	margin: 48px 0 8px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.legal-footer a {
	color: var(--ink-2);
}

/* ══════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════ */
table,
th,
td {
	border: 1px solid rgba(55, 53, 47, 0.09);
}

table {
	border-collapse: collapse;
	border-left: none;
	border-right: none;
}

th,
td {
	font-weight: normal;
	padding: 0.25em 0.5em;
	line-height: 1.5;
	min-height: 1.5em;
	text-align: left;
}

th {
	color: rgba(55, 53, 47, 0.6);
}

.simple-table {
	margin-top: 1em;
	font-size: 0.875rem;
	empty-cells: show;
}
.simple-table td {
	height: 29px;
	min-width: 120px;
}

.simple-table th {
	height: 29px;
	min-width: 120px;
}

/* 3 columns x 120px min-width forces this table wider than most phone
   screens; let cells shrink and wrap instead of pushing the whole page
   into horizontal scroll. overflow-x is a safety net for any other table
   (e.g. the wider comparison table in the "5 Layers" widget) that still
   doesn't fit even after shrinking. */
@media (max-width: 560px) {
	.simple-table td,
	.simple-table th {
		min-width: 0;
	}
	table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.simple-table-header-color {
	background: rgb(247, 246, 243);
	color: black;
}
.simple-table-header {
	font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════
   LISTS
   ══════════════════════════════════════════════════════════════════════ */
ol,
ul {
	margin: 0;
	margin-block-start: 0.6em;
	margin-block-end: 0.6em;
}

li > ol:first-child,
li > ul:first-child {
	margin-block-start: 0.6em;
}

ul > li {
	list-style: disc;
}

ul {
	padding-inline-start: 1.7em;
}

ul > li {
	padding-left: 0.1em;
}

ol {
	padding-inline-start: 1.6em;
}

ol > li {
	padding-left: 0.2em;
}

/* ══════════════════════════════════════════════════════════════════════
   ICONS / EMOJI (callout icons)
   ══════════════════════════════════════════════════════════════════════ */
.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 1.2em;
	max-height: 1.2em;
	text-decoration: none;
	vertical-align: text-bottom;
	margin-right: 0.5em;
}

/*
  * Render emoji icons using a ::before pseudo-element to keep the glyph
  * out of the DOM textContent traversal. This avoids double-rendering icons
  * in callouts and page titles.
  * NOTE(slim/html-export-pseudo-icons): I can't tagref this because it will
  * flag as a duplicate tag after codegen.
  */
.icon[data-emoji]::before {
	content: attr(data-emoji);
}

img.icon {
	border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════════════
   CODE — only the inline <code> tag is used in this document
   ══════════════════════════════════════════════════════════════════════ */
code {
	background: rgba(135, 131, 120, 0.15);
	border-radius: 3px;
	padding: 0.2em 0.4em;
	font-size: 85%;
	tab-size: 2;
	color: #eb5757;
}

/* ════════════════════════════════════════════════════════════════════
      REDESIGN — Ebook Update de l'IA
      ════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
    --sb-w: 268px;
    --sb-bg: #0A0A0C;
    --sb-text: #8E8E96;
    --sb-hover-bg: rgba(185,143,191,0.14);
    --sb-active-text: #B98FBF;
    --sb-active-bg: rgba(185,143,191,0.14);
    --sb-border: rgba(255,255,255,0.08);
    --sb-part-text: rgba(255,255,255,0.5);

    --page-bg: #F7F7F5;
    --card-bg: #FFFFFF;
    --ink: #1E293B;
    --ink-2: #475569;
    --ink-3: #94A3B8;

    --blue: #6B4770;
    --blue-light: #F3ECF6;
    --blue-mid: #DCC7E0;
    --blue-text: #6B4770;
    --accent-on-dark: #B98FBF;
    --border: #E2E8F0;
    --radius: 10px;
    --content-max: 740px;

    --font-serif: 'Space Grotesk', 'Inter', sans-serif;
    --font-sans:  'Raleway', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Palette "console" — widgets interactifs (accordéons, stage, grid) */
    --console-bg: #E8E4D8;
    --console-border: #B8B3A3;
    --console-black: #17181A;
    --console-ink: #1C2118;
    --console-text: #F2EFE6;
    --console-mauve: #B98FBF;
    --console-lavender: #E6D9EF;
    --console-olive: #A9A48A;
    --console-teal: #2F4A43;
}

/* ── Reset global ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--page-bg);
    margin: 0;
    padding: 0;
    max-width: none;
    white-space: normal;
}

/* ══ SIDEBAR ════════════════════════════════════════════════════════ */
#ebook-sidebar {
    position: fixed;
    margin: 0;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: var(--sb-w);
    background: var(--sb-bg);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
}

.sb-brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--sb-border);
    flex-shrink: 0;
}

.sb-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Navigation scrollable */
.sb-nav-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 0 4px;
}

.sb-nav-wrap::-webkit-scrollbar { width: 3px; }
.sb-nav-wrap::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

/* Étiquettes de section (1/, 2/, …) */
.sb-part-label {
    display: block;
    padding: 14px 20px 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sb-part-text);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.sb-part-label:hover {
    color: #F1F5F9;
}

/* Liens dans la sidebar */
.sb-link {
    display: block;
    padding: 6px 20px 6px 18px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--sb-text);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.sb-link:hover {
    color: #F1F5F9;
    background: var(--sb-hover-bg);
    border-left-color: rgba(185,143,191,0.5);
}

.sb-link.active {
    color: var(--sb-active-text);
    background: var(--sb-active-bg);
    border-left-color: var(--sb-active-text);
    font-weight: 500;
}

/* Liens de niveau 0 (Introduction, 4/ checklist) */
.sb-link--major {
    font-weight: 500;
    color: #CBD5E1;
    font-size: 13px;
}

/* Pied de sidebar */
.sb-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--sb-border);
    flex-shrink: 0;
}

#btn-collapse-all {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--sb-text);
    font-size: 11.5px;
    font-family: var(--font-sans);
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
    letter-spacing: 0.01em;
}

#btn-collapse-all:hover {
    background: rgba(255,255,255,0.11);
    color: #F1F5F9;
}

/* ── Bouton mobile (hamburger ↔ croix) ────────────────────────────── */
#mobile-nav-btn {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 400;
    width: 44px;
    height: 44px;
    background: var(--sb-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    /* Slides in step with the panel's own 0.25s transform transition. */
    transition: left 0.25s ease;
}

/* Panel is full-width on mobile, so "sliding with it" means tracking its
   right edge instead of staying pinned to the left. */
body.sidebar-open #mobile-nav-btn {
    left: calc(100% - 58px);
}

.mnb-bar {
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger → X */
#mobile-nav-btn.open .mnb-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#mobile-nav-btn.open .mnb-bar:nth-child(2) { opacity: 0; }
#mobile-nav-btn.open .mnb-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══ LAYOUT PRINCIPAL ═══════════════════════════════════════════════ */
article.page {
    margin-left: var(--sb-w);
    padding: 44px 60px 80px;
    max-width: calc(var(--sb-w) + var(--content-max) + 120px);
    font-family: var(--font-sans);
}

/* ── En-tête du document ────────────────────────────────────────── */
article > header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--border);
}

h1.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin: 0;
}

/* ── Titres de chapitre (kicker dans .page-body) ── */
.page-body > h2.kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 52px 0 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: block;
}

/* ══ CARDS / DETAILS ════════════════════════════════════════════════ */
details {
    background: transparent;
    border: none;
    margin: 0 0 18px;
    overflow: hidden;
}

details > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    list-style: none;
}

details > summary::-webkit-details-marker { display: none; }
details > summary::marker { display: none; }

details[open] > summary {
    background: transparent;
}

details > summary:hover { background: var(--blue-light); }

/* Chevron ▸ */
details > summary::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s, border-color 0.15s;
}

details[open] > summary::after {
    transform: rotate(45deg);
    border-color: var(--blue);
}

details > summary:hover::after { border-color: var(--blue); }

/* Titres dans les summary */
details > summary h1,
details > summary h2,
details > summary h3 {
    margin: 0;
    display: inline;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ── Contenu des sections ───────────────────────────────────────── */
/* Flush left/right, same as .section-intro — no more extra indent for
   toggle bodies vs. top-level content; only vertical breathing room stays. */
.indented {
    padding: 22px 0 28px;
}

/* ── Typographie interne ────────────────────────────────────────── */
.indented h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 30px 0 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.indented h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 22px 0 8px;
    letter-spacing: 0;
}

.indented p {
    margin: 0 0 14px;
    line-height: 1.82;
    color: var(--ink);
}

/* ── Section intros ─────────────────────────────────────────────── */
/* Flush with the part kicker above it — no side padding, no extra top
   margin — matching the "4/ A practical checklist to start" intro, which
   never had this padding and reads as the more consistent baseline. */
.section-intro {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.section-intro h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 22px 0 8px;
    letter-spacing: 0;
}

/* ── Callouts ────────────────────────────────────────────────────── */
aside.callout {
    display: flex;
    gap: 12px;
    background: var(--sb-bg);
    border: none;
    border-left: 3px solid var(--accent-on-dark);
    border-radius: 6px;
    padding: 16px 18px;
    margin: 20px 0;
    white-space: normal;
    align-items: flex-start;
}

aside.callout > div:first-child { flex-shrink: 0; margin-top: 1px; }

aside.callout p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.75;
    color: #EDEDEF;
}

/* ── Callouts "avis" (opinion de l'auteur, fond beige + photo) ────── */
aside.callout-opinion {
    display: flex;
    gap: 14px;
    background: var(--console-bg);
    border: none;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 20px 0;
    white-space: normal;
    align-items: flex-start;
}

.callout-opinion__avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFFFFF;
    border: 2px solid var(--console-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--console-text);
}

.callout-opinion__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

aside.callout-opinion p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.75;
    color: #0A0A0C;
}

aside.callout-opinion strong { color: inherit; }

/* ── Blockquotes ────────────────────────────────────────────────── */
blockquote {
    border-left: 3px solid var(--accent-on-dark);
    background: var(--blue-light);
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--ink);
}

blockquote em { font-style: normal; }

blockquote > strong,
blockquote > p { margin: 0; font-style: normal; }

/* ── Listes ────────────────────────────────────────────────────── */
ul.bulleted-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 12px;
}

ul.bulleted-list li {
    position: relative;
    padding: 3px 0 3px 18px;
    color: var(--ink);
    list-style: none;
}

ul.bulleted-list li::before {
    content: '❁';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--blue);
    font-size: 0.7em;
}

/* ── Tableaux ───────────────────────────────────────────────────── */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.875rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.simple-table-header th {
    background: #0A0A0C;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F1F5F9;
    padding: 9px 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: normal;
}

/* Plain (non-.simple-table) tables — same black header treatment */
table:not(.simple-table) th {
    background: #0A0A0C;
    color: #F1F5F9;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.simple-table td {
    padding: 9px 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
    white-space: normal;
}

.simple-table tr:last-child td { border-bottom: none; }
.simple-table tr:hover td { background: #FAF7FB; }

/* ── Code ───────────────────────────────────────────────────────── */
code {
    background: #F1F5F9;
    color: #BE185D;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.82em;
    font-family: var(--font-mono);
}

/* ── Images ─────────────────────────────────────────────────────── */
figure.image {
    margin: 22px 0;
    text-align: center;
}

figure.image img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Tall/portrait charts: at full content width they render far taller than
   every other figure on the page and dominate the section. Cap the display
   width so the chart reads at a size consistent with the rest of the page —
   click-through to the full-resolution original still works for zooming in. */
figure.image.fig-compact img {
    max-width: min(480px, 100%);
}

figure.image.fig-540 img {
    max-width: min(540px, 100%);
}

/* Bare content images (not wrapped in figure.image) */
.indented > img,
.section-intro > img {
    display: block;
    margin: 24px auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── Liens ──────────────────────────────────────────────────────── */
a { color: var(--blue); }
a:hover { text-decoration: none; opacity: 0.8; }

/* ── Pied de page Notion ────────────────────────────────────────── */
span.sans { display: none; }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════
   Breakpoints standardized to 3 shared tiers used everywhere below:
   560px (compact), 700px (medium), 900px (wide). Where a widget's
   original threshold fell between two tiers, it was rounded UP to the
   nearest one, so its compact styling now applies at least as widely
   as before (never a narrower range than the original design).
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    #ebook-sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    #ebook-sidebar.open { transform: translateX(0); }
    #mobile-nav-btn { display: flex; }
    article.page {
        margin-left: 0;
        padding: 64px 20px 60px;
        max-width: none;
    }
}

/* Overlay quand sidebar mobile ouverte */
body.sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 190;
}

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

 @font-face {
    font-family: 'JetBrains Mono';
    src: local('JetBrains Mono');
  }

  .wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 460px;
    padding: 24px;
    background: transparent;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border-radius: var(--radius, 10px);
  }
 
  .panel {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 60px;
    transition: flex-basis 0.55s cubic-bezier(.65,0,.35,1), background-color 0.4s ease;
    color: var(--console-text);
  }

  .panel.active {
    flex: 1 1 auto;
  }

  .panel:focus-visible {
    outline: 2px solid var(--console-mauve);
    outline-offset: -3px;
  }

  .panel:not(.active):hover {
    filter: brightness(1.08);
  }

  /* palette per panel */
  .p1 { background: var(--console-black); }
  .p2 { background: var(--console-ink); }
  .p3 { background: var(--console-teal); }
  .p4 { background: var(--console-mauve); color: var(--console-ink); }
  .p5 { background: var(--console-lavender); color: var(--console-ink); }
  .p6 { background: var(--console-olive); color: var(--console-ink); }

  /* Palette dédiée au second accordéon (chapitre Token Maxxing) */
  #accordion-2 .p1 { background: var(--console-ink); }
  #accordion-2 .p2 { background: var(--console-mauve); color: var(--console-ink); }
  #accordion-2 .p3 { background: var(--console-lavender); color: var(--console-ink); }
  #accordion-2 .p2 .footer-bar, #accordion-2 .p3 .footer-bar {
    background: rgba(28,33,24,0.25);
  }

  .top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
  }
 
  .plus {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.4s ease;
    flex-shrink: 0;
  }
 
  .panel.active .plus {
    transform: rotate(45deg);
  }
 
  .label-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.5;
    padding: 22px;
    white-space: pre-line;
    font-weight: 500;
    opacity: 0.95;
  }
 
  .content {
    padding: 0 26px 30px 26px;
    opacity: 0;
    transition: opacity 0.35s ease 0.15s;
    max-width: 640px;
  }
 
  .panel.active .content {
    opacity: 1;
  }
 
  .content .card-title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 0 0 auto 0;
    text-transform: uppercase;
    font-weight: 600;
    color: inherit;
  }
 
  .content .desc {
    font-size: 13px;
    line-height: 1.6;
    max-width: 480px;
    opacity: 0.85;
    margin-top: 40px;
    color: inherit;
  }
 
  .content-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 0;
  }
 
  .footer-bar {
    height: 3px;
    background: rgba(255,255,255,0.25);
    margin-top: 18px;
    width: 60px;
  }
  .p4 .footer-bar, .p5 .footer-bar, .p6 .footer-bar {
    background: rgba(28,33,24,0.25);
  }
 
  @media (max-width: 900px) {
    .wrap { flex-direction: column; padding: 12px; gap: 6px; }
    .panel { flex: 0 0 56px; }
    .panel.active { flex: 1 1 auto; }
    .label-vertical { writing-mode: horizontal-tb; transform: none; }
  }

  .grid {
    display: flex;
    max-width: 1680px;
    margin: 40px auto;
    border: 1px solid var(--console-border);
    background: var(--console-bg);
    color: var(--console-ink);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
  }
 
  .col {
    flex: 1;
    padding: 28px 34px 32px 34px;
    border-right: 1px solid var(--console-border);
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
  }
 
  .col:last-child {
    border-right: none;
  }
 
  .col-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 26px;
  }
 
  .col-title {
    font-size: 21px;
    letter-spacing: 0.01em;
    font-weight: 500;
    text-transform: uppercase;
  }
 
  .col-num {
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.65;
    padding-top: 3px;
  }
 
  .col-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.75;
    max-width: 320px;
    opacity: 0.82;
  }
 
  .col-desc strong {
    font-weight: 600;
    opacity: 1;
  }
 
  @media (max-width: 900px) {
    .grid { flex-direction: column; margin: 16px; }
    .col { border-right: none; border-bottom: 1px solid var(--console-border); min-height: auto; padding: 26px; }
    .col:last-child { border-bottom: none; }
  }

  .loop-page {
    max-width: 620px;
    margin: 60px auto;
    padding: 32px 20px;
    text-align: center;
    background: transparent;
    color: #0A0A0C;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border-radius: var(--radius, 10px);
  }
 
  .loop-wrap {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
  }
 
  .ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
 
  .ring-svg circle {
    fill: none;
    stroke: var(--console-border);
    stroke-width: 1;
  }
 
  .ring-svg .arrow {
    fill: #a19c89;
  }
 
  .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #f4f1e8;
    border: 1px solid var(--console-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: background 0.35s ease;
  }
 
  .center-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    transition: opacity 0.3s ease;
  }
 
  .center-icon svg {
    width: 100%;
    height: 100%;
  }
 
  .center-icon svg * {
    stroke: var(--console-ink);
    fill: none;
    stroke-width: 1.3;
  }
 
  .center-title {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }
 
  .center-desc {
    font-family: var(--font-sans);
    font-size: 11.5px;
    line-height: 1.6;
    opacity: 0.75;
    max-width: 190px;
  }
 
  .node {
    position: absolute;
    width: 0;
    height: 0;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
  }

  /* .node is a 0×0 hit target (its visible circle is an absolutely
     positioned child), so the default focus ring would render around an
     invisible point instead of the circle — draw it on the circle instead. */
  .node:focus-visible .node-circle {
    outline: 2px solid var(--accent-on-dark);
    outline-offset: 2px;
  }

  .node-circle {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f4f1e8;
    border: 1px solid var(--console-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }
 
  .node-circle svg {
    width: 22px;
    height: 22px;
  }
 
  .node-circle svg * {
    stroke: var(--console-ink);
    fill: none;
    stroke-width: 1.3;
    transition: stroke 0.3s ease;
  }
 
  .node-label {
    position: absolute;
    top: 44px;
    left: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.03em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
 
  .node:hover .node-circle {
    transform: translate(-50%, -50%) scale(1.06);
  }
 
  .node.active .node-circle {
    background: var(--console-ink);
    border-color: var(--console-ink);
  }
 
  .node.active .node-circle svg * {
    stroke: var(--console-bg);
  }
 
  .node.active .node-label {
    opacity: 1;
    font-weight: 600;
  }
 
  /* node positions: sit exactly on the ring (cx=240,cy=240,r=200 in a 480 box) */
  .n1 { top: 8.33%;  left: 50%; }
  .n2 { top: 50%; left: 90.4%; }
  .n3 { top: 91.67%; left: 50%; }
  .n4 { top: 50%; left: 9.6%; }
 
  @media (max-width: 560px) {
    .loop-wrap { width: min(320px, 100%); }
    .node-circle { width: 42px; height: 42px; }
    .center { width: 170px; height: 170px; padding: 18px; }
    .center-title { font-size: 14px; }
    .center-desc { display: none; }
  }

  .stage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 50px 60px 50px;
    background: #1e1f1c;
    color: var(--console-text);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border-radius: var(--radius, 10px);
  }
 
  .bar-wrap {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    cursor: none;
  }
 
  .dotted-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1.5px, transparent 1.5px);
    background-size: 10px 2px;
    background-repeat: repeat-x;
  }
 
  .checkpoint {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--console-text);
    transform: translate(-50%, -50%);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none;
  }
 
  .checkpoint.active {
    background: #d3a6d6;
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 0 8px rgba(211,166,214,0.15);
  }
 
  #obstacles-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.18s ease;
    opacity: 1;
    will-change: left;
  }

  #obstacles-marker::before, #obstacles-marker::after {
    content: '';
    position: absolute;
    background: #d3a6d6;
    transition: background 0.25s ease;
  }

  #obstacles-marker::before {
    top: 50%;
    left: 3px;
    right: 3px;
    height: 2px;
    transform: translateY(-50%);
  }

  #obstacles-marker::after {
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    transform: translateX(-50%);
  }

  #obstacles-marker.snapped {
    transform: translate(-50%, -50%) scale(1.3);
  }
 
  .labels-row {
    position: relative;
    margin-top: 26px;
    height: 20px;
  }
 
  .cp-index {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 0.6;
    transition: opacity 0.25s ease, color 0.25s ease;
    white-space: nowrap;
  }

  .cp-icon {
    display: inline-flex;
    flex-shrink: 0;
  }

  .cp-icon svg {
    display: block;
  }
 
  .cp-index.active {
    opacity: 1;
    color: #d3a6d6;
  }
 
  .text-panel {
    margin-top: 50px;
    min-height: 110px;
    max-width: 640px;
  }
 
  .text-panel .item {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
 
  .text-panel .item.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
 
  .text-panel .item-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    color: #d3a6d6;
  }
 
  .text-panel .item-desc {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.85;
  }
 
  .text-panel .placeholder {
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 0.04em;
  }
 
  @media (max-width: 700px) {
    .stage { padding: 60px 24px 90px 24px; }
    /* Each label ("BIAS & FAIRNESS"…) is wider than the ~28%-of-bar gap
       between checkpoints, so on a phone-width bar the text overlaps into
       an unreadable mess. Keep just the icon under each checkpoint — the
       full name already appears in the text panel once it's active. */
    .cp-suffix { display: none; }
  }

  /* ── Reskilling card stack ─────────────────────────────────────── */
  .rk-stage {
    max-width: 640px;
    margin: 24px auto;
    padding: 60px 24px 44px 24px;
    text-align: center;
    background: transparent;
    color: #0A0A0C;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border-radius: var(--radius, 10px);
  }

  .rk-deck {
    position: relative;
    width: 100%;
    height: 380px;
    margin: 0 auto;
    perspective: 1400px;
  }

  .rk-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    transform-style: preserve-3d;
  }

  .rk-card-tilt {
    width: 100%;
    height: 100%;
    background: #f4f1e8;
    color: var(--console-ink);
    border-radius: 4px;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.25s ease-out;
    will-change: transform;
  }

  .rk-card-title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .rk-card-desc {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.82;
    flex-grow: 1;
  }

  .rk-card-hint {
    margin-top: 20px;
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 0.4;
  }

  .rk-card.exit-lift {
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  }

  .rk-card.exit-fly {
    transition: transform 0.6s cubic-bezier(.55,0,.1,1), opacity 0.5s ease 0.15s;
    opacity: 0;
  }

  .rk-controls {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .rk-progress {
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.6;
    min-width: 60px;
  }

  .rk-next-btn {
    background: none;
    border: 1px solid rgba(10,10,12,0.35);
    color: #0A0A0C;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 26px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .rk-next-btn:hover {
    background: rgba(10,10,12,0.06);
    border-color: #0A0A0C;
  }

  .rk-next-btn:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .rk-done-state {
    display: none;
    height: 380px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed #4a4a40;
    border-radius: 4px;
  }

  .rk-done-state.visible {
    display: flex;
  }

  .rk-done-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
  }

  .rk-done-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 24px;
  }

  .rk-restart-btn {
    background: #d3a6d6;
    border: none;
    color: var(--console-ink);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 26px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 600;
  }

  @media (max-width: 560px) {
    /* The 380px deck/card height is tuned for the desktop column width; at
       phone width the same copy wraps onto more lines and its text spills
       past the card's beige background instead of fitting inside it —
       give the stack more room and trim the type scale to match. */
    .rk-deck { height: 460px; }
    .rk-done-state { height: 460px; }
    .rk-stage { padding: 44px 16px 32px 16px; }
    .rk-card-tilt { padding: 28px 22px; }
    .rk-card-title { font-size: 18px; margin-bottom: 14px; }
    .rk-card-desc { font-size: 13px; line-height: 1.6; }
    .rk-card-hint { margin-top: 14px; }
  }

  /* ── AI regulation world map ───────────────────────────────────── */
  .gar-map-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 24px auto 0 auto;
  }

  .gar-map-svg {
    width: 100%;
    display: block;
  }

  .gar-map-country {
    stroke: #fcfcfb;
    stroke-width: 0.5;
  }

  .gar-map-country.clickable {
    cursor: pointer;
  }

  .gar-map-country.clickable:hover {
    opacity: 0.82;
  }

  .gar-map-tooltip {
    position: absolute;
    pointer-events: none;
    background: #ffffff;
    border: 0.5px solid #c3c2b7;
    border-radius: 12px;
    padding: 10px 14px;
    max-width: 260px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: #0b0b0b;
    font-family: var(--font-sans, 'Raleway', sans-serif);
  }

  .gar-map-tooltip.show {
    opacity: 1;
    transform: translateY(0);
  }

  .gar-map-tooltip p {
    margin: 0;
  }

  .gar-map-caption {
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 10px;
  }

  /* ── Top AI tools grid ─────────────────────────────────────────── */
  .tt-wrap {
    --tt-surface-card: #FFFFFF;
    --tt-surface-chip: #F1EFE8;
    --tt-border: #E4E1D8;
    --tt-text-secondary: #5F5E5A;
    --tt-text-muted: #888780;
    --tt-star: #BA7517;
    --tt-radius: 12px;
    margin: 24px 0;
  }

  .tt-subtitle {
    font-size: 14px;
    color: var(--tt-text-secondary);
    margin: 0 0 20px;
  }

  .tt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }

  .tt-card {
    background: var(--tt-surface-card);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tt-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tt-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--tt-surface-chip);
    flex-shrink: 0;
  }

  .tt-logo-stack {
    display: flex;
    flex-shrink: 0;
  }

  .tt-logo-stack img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--tt-surface-chip);
    margin-right: -6px;
    border: 2px solid var(--tt-surface-card);
  }

  .tt-name {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    flex: 1;
    min-width: 0;
  }

  .tt-flag { font-size: 20px; flex-shrink: 0; }

  .tt-desc {
    font-size: 13.5px;
    color: var(--tt-text-secondary);
    margin: 0;
    line-height: 1.5;
  }

  .tt-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
  }

  .tt-tag {
    font-size: 11px;
    color: var(--tt-text-muted);
    background: var(--tt-surface-chip);
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .tt-fav {
    font-size: 11px;
    color: var(--tt-star);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  .tt-fav svg { width: 12px; height: 12px; }

  /* ── 10 practical ideas to start ─────────────────────────────────── */
  .lin-wrap {
    --lin-bg: #EDE9DD;
    --lin-border: #D8D2BF;
    --lin-ink: #24231F;
    --lin-ink-2: #4A4842;
    --lin-num-border: #B98FBF;
    --lin-num-text: #24231F;
    --lin-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: transparent;
    border: none;
    margin: 24px 0;
  }

  .lin-item {
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lin-border);
    border-radius: 0;
  }

  .lin-item:last-child { border-bottom: none; }

  .lin-item > summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: none;
  }

  .lin-item > summary::after { content: none; }

  .lin-title {
    font-family: var(--font-serif, 'Space Grotesk', sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--lin-ink);
    line-height: 1.3;
    flex: 1;
  }

  .lin-plus {
    font-family: var(--lin-mono);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    color: var(--lin-num-text);
    transition: transform 0.3s ease;
  }

  .lin-item[open] > .lin-plus,
  .lin-item[open] > summary .lin-plus {
    transform: rotate(45deg);
  }

  .lin-body {
    padding: 0 32px 28px 74px;
  }

  .lin-desc {
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--lin-ink-2);
    margin: 0 0 16px;
    max-width: 480px;
  }

  .lin-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--lin-num-border);
    color: var(--lin-num-text);
    font-family: var(--lin-mono);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .lin-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .lin-bullets li {
    position: relative;
    list-style: none;
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--lin-ink);
    padding-left: 18px;
    margin-bottom: 8px;
  }

  .lin-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--lin-ink);
  }

  @media (max-width: 700px) {
    .lin-item > summary { padding: 18px 20px; gap: 14px; }
    .lin-body { padding: 0 20px 22px 20px; }
    .lin-title { font-size: 1.05rem; }
  }

  /* ── Widget: Some figures (agv) ──────────────────────────── */
  .agv-wrap {
    --agv-bg: #17181A;
    --agv-mauve: #B98FBF;
    --agv-mauve-dim: #4E3F52;
    --agv-mauve-faint: rgba(185,143,191,0.18);
    --agv-ink: #F2EFE6;
    --agv-ink-dim: rgba(242,239,230,0.55);
    --agv-accent: var(--blue, #6B4770);
    --agv-accent-dim: var(--blue-mid, #DCC7E0);
    --agv-accent-faint: rgba(107,71,112,0.16);
    max-width: 1100px;
    margin: 32px auto;
  }
  .agv-card {
    background: transparent;
    border-radius: var(--radius, 10px);
    overflow: hidden;
  }
  .agv-stage {
    position: relative;
    width: 100%;
    height: 560px;
    background: transparent;
    overflow: hidden;
  }
  .agv-stage canvas { display: block; cursor: grab; }
  .agv-stage.dragging canvas { cursor: grabbing; }

  .agv-hint {
    position: absolute; bottom: 22px; left: 36px; z-index: 5;
    font-family: var(--font-sans); font-size: 11px; letter-spacing: .05em;
    color: var(--ink-3, #94A3B8); display: flex; align-items: center; gap: 8px;
    pointer-events: none;
  }
  .agv-hint i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--agv-accent);
    display: inline-block; animation: agv-pulse 1.8s ease-in-out infinite;
  }
  @keyframes agv-pulse {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
  }

  .agv-navdots {
    position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
    z-index: 6; display: flex; flex-direction: column; gap: 20px;
  }
  .agv-navdots button {
    all: unset; cursor: pointer; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .agv-navdots button:focus-visible {
    outline: 2px solid var(--agv-accent);
    outline-offset: 3px;
    border-radius: 50%;
  }
  .agv-navdots button .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--agv-accent-dim);
    transition: all .25s ease;
  }
  .agv-navdots button.active .dot {
    background: var(--agv-accent); box-shadow: 0 0 0 4px var(--agv-accent-faint);
    transform: scale(1.3);
  }
  .agv-navdots button:hover .dot { background: var(--agv-accent); }

  .agv-tip {
    position: absolute; z-index: 10; width: 252px;
    padding: 16px 18px 14px;
    background: rgba(28,33,24,0.94);
    border: 1px solid rgba(185,143,191,0.32);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    opacity: 0; transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: none;
  }
  .agv-tip::before {
    content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 2px;
    background: var(--agv-mauve);
  }
  .agv-tip.show { opacity: 1; transform: translateY(0); }
  .agv-num {
    font-family: var(--font-serif); font-size: 32px; font-weight: 700;
    color: var(--agv-mauve); line-height: 1; letter-spacing: -0.01em;
  }
  .agv-num sup { font-size: 14px; font-weight: 700; margin-left: 2px; }
  .agv-unit {
    font-family: var(--font-sans); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .1em; color: var(--agv-ink-dim); margin-top: 4px;
  }
  .agv-txt {
    font-family: var(--font-sans); font-size: 12.5px; line-height: 1.55;
    color: var(--agv-ink); margin: 12px 0 10px; opacity: .92;
  }
  .agv-src {
    font-family: var(--font-sans); font-size: 10px; letter-spacing: .04em;
    color: var(--agv-ink-dim); text-transform: uppercase;
    border-top: 1px solid rgba(242,239,230,0.1); padding-top: 8px;
  }
  .agv-src b { color: var(--agv-mauve); font-weight: 600; }

  @media (max-width: 900px) {
    .agv-stage { height: 460px; }
    .agv-tip { width: 210px; }
    /* Dots move from a vertical rail through the middle of the sphere (fine
       on a wide desktop stage, but it sits right on top of the globe on a
       narrow one) to a horizontal row tucked under it, right-aligned. */
    .agv-navdots {
      flex-direction: row;
      top: auto;
      bottom: 16px;
      right: 20px;
      transform: none;
      gap: 10px;
    }
    /* bump the tap target well past the 6px visible dot for touch */
    .agv-navdots button { width: 40px; height: 40px; }
    /* moved out of the way of the dots row now sitting at the bottom */
    .agv-hint { top: 16px; left: 20px; bottom: auto; }
  }

  /* ── Widget: Agentic AI Gap (aag) ────────────────────────── */
  .aag-wrap{
    --aag-ink: #0A0A0C;
    --aag-cream: #F2EFE6;
    --aag-cream-ink: #1C2118;
    --aag-mauve: #B98FBF;
    --aag-lavender: #E6D9EF;
    --aag-red: #C4453D;
    --aag-hairline: rgba(28,33,24,0.14);
    margin: 28px auto;
    max-width: 620px;
  }
  .aag-card{
    background: var(--aag-cream);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px -20px rgba(10,10,12,0.35);
  }
  .aag-stage{
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.05;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
  }
  .aag-panel{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px 26px;
    font-family: var(--font-sans);
  }
  .aag-reality{
    background: var(--aag-cream);
    color: var(--aag-cream-ink);
  }
  .aag-vision{
    background: linear-gradient(135deg, var(--aag-mauve), var(--aag-lavender));
    color: var(--aag-ink);
    clip-path: inset(0 40% 0 0);
  }
  .aag-panel-label{
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 18px;
    margin: 14px 0 20px;
  }
  .aag-icon-wrap{ height: 84px; display:flex; align-items:center; justify-content:center; }
  ul.aag-checklist{
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 240px;
  }
  ul.aag-checklist li{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  ul.aag-checklist li svg{ flex: none; margin-top: 1px; }
  .aag-badge{
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: var(--aag-ink);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(10,10,12,0.28);
    pointer-events: none;
    z-index: 3;
    transition: left 0.05s linear;
  }
  .aag-handle{
    position: absolute;
    top: 0;
    left: 60%;
    height: 100%;
    width: 0;
    z-index: 4;
    pointer-events: none;
  }
  .aag-handle::before{
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -1px;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(28,33,24,0.08);
  }
  .aag-grip{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10,10,12,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  .aag-grip span{
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--aag-ink);
    opacity: 0.55;
  }
  .aag-hint{
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    background: rgba(10,10,12,0.75);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 6px 13px;
    border-radius: 999px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.4s ease;
    white-space: nowrap;
  }
  .aag-hint.aag-hidden{ opacity: 0; }
  @media (max-width: 560px){
    /* The fixed 4/3.05 aspect-ratio leaves the stage too short once the two
       checklists reflow at phone width, cropping the last items — grow the
       box and trim the vertical rhythm so both panels fit inside it. */
    .aag-stage{ aspect-ratio: 4 / 4.3; }
    .aag-icon-wrap{ height: 56px; }
    .aag-panel{ padding: 18px 14px 16px; }
    .aag-panel-label{ font-size: 16px; margin: 6px 0 12px; }
    ul.aag-checklist li{ font-size: 12.5px; margin-bottom: 9px; }
  }
  @media (max-width: 380px){
    .aag-stage{ aspect-ratio: 4 / 4.8; }
    .aag-icon-wrap{ height: 46px; }
    ul.aag-checklist li{ margin-bottom: 7px; }
  }


  /* ── Widget: The 5 Layers stack (lyr) ────────────────────── */
  .lyr-wrap{
    font-family: var(--font-mono);
    color: var(--console-ink);
    background: transparent;
    max-width: 1000px;
    margin: 32px auto;
    padding: 40px;
    display: flex;
    gap: 48px;
    align-items: center;
  }
  .lyr-svg-wrap{ flex: 0 0 300px; }
  .lyr-svg-wrap svg{ width: 100%; height: auto; display: block; overflow: visible; }

  .lyr-group{
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), filter 0.3s ease;
  }
  .lyr-group:hover{
    transform: translateY(-6px);
    filter: drop-shadow(0 12px 16px rgba(10,10,12,0.22));
  }
  .lyr-group:focus-visible{
    outline: 2px solid var(--console-mauve);
    outline-offset: 4px;
  }
  .lyr-group.active{
    transform: translateY(-14px);
    filter: drop-shadow(0 18px 22px rgba(10,10,12,0.3));
  }
  .lyr-group.active .lyr-top-face{ stroke: rgba(255,255,255,0.85); stroke-width: 2; }

  .lyr-panel{ flex: 1; min-width: 0; }
  .lyr-header{ margin-bottom: 18px; }
  .lyr-tag{
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--console-ink);
    opacity: 0.55;
    font-weight: 700;
  }
  .lyr-title{
    font-family: var(--font-serif);
    margin: 2px 0 0;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--console-ink);
  }
  .lyr-desc{
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--console-ink);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .lyr-desc.show{ opacity: 1; transform: translateY(0); }
  .lyr-desc p{ margin: 0 0 1em; }
  .lyr-desc p:last-child{ margin-bottom: 0; }
  .lyr-desc ul{ margin: 0 0 1em; padding-left: 1.2em; }
  .lyr-desc li{ margin-bottom: 0.4em; }
  .lyr-desc li:last-child{ margin-bottom: 0; }

  .lyr-compare{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 18px;
    font-family: var(--font-sans);
    font-size: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--console-border);
  }
  .lyr-compare th, .lyr-compare td{
    border-bottom: 1px solid var(--console-border);
    border-right: 1px solid var(--console-border);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
  }
  .lyr-compare tr:last-child td{ border-bottom: none; }
  .lyr-compare th:last-child, .lyr-compare td:last-child{ border-right: none; }
  .lyr-compare th{ background: rgba(28,33,24,0.07); font-weight: 700; }

  @media (max-width: 700px){
    .lyr-wrap{ flex-direction: column; padding: 26px; gap: 30px; align-items: stretch; }
    .lyr-svg-wrap{ flex: 0 0 auto; max-width: 260px; margin: 0 auto; }
  }

  /* ══ ROLES FOLDER TABS (rft) — five new agentic-era data roles ══════ */
  .rft-wrap{
    font-family: var(--font-mono);
    color: var(--console-ink);
    width: 100%;
    margin: 32px 0;
  }
  .rft-tabs{
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-left: 6px;
    flex-wrap: wrap;
  }
  .rft-tab{
    font: inherit;
    cursor: pointer;
    border: 1px solid var(--console-border);
    border-bottom: none;
    border-radius: 0;
    background: rgba(184,179,163,0.28);
    color: var(--console-ink);
    opacity: 0.65;
    padding: 10px 16px 12px;
    font-size: 11.5px;
    line-height: 1.35;
    text-align: left;
    flex: 1 1 150px;
    max-width: 190px;
    margin-top: 12px;
    transition: opacity 0.25s ease, background-color 0.25s ease, margin-top 0.25s ease;
  }
  .rft-tab:hover{ opacity: 0.9; background: rgba(184,179,163,0.4); }
  .rft-tab.active{
    background: var(--console-bg);
    opacity: 1;
    font-weight: 700;
    margin-top: 0;
    padding: 14px 16px 16px;
    box-shadow: 0 -4px 10px rgba(23,24,26,0.05);
    position: relative;
    z-index: 2;
    border-top: 3px solid var(--rft-accent, var(--console-mauve));
  }
  .rft-card{
    position: relative;
    z-index: 1;
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 0;
    box-shadow: 0 20px 40px -22px rgba(23,24,26,0.28), 0 2px 6px rgba(23,24,26,0.06);
    padding: 36px 40px;
    margin-top: -1px;
  }
  .rft-title{
    font-family: var(--font-serif);
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--console-ink);
  }
  .rft-body{
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--console-ink);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .rft-body.show{ opacity: 1; transform: translateY(0); }
  .rft-body p{ margin: 0 0 1em; }
  .rft-body p:last-child{ margin-bottom: 0; }
  .rft-body ul{ margin: 0 0 1em; padding-left: 1.2em; }
  .rft-body li{ margin-bottom: 0.4em; }
  .rft-body li:last-child{ margin-bottom: 0; }

  @media (max-width: 900px){
    /* A wrapping grid breaks the "folder" look the moment tabs spill onto a
       second row (they'd float disconnected from the card below them), and
       the longest labels here (e.g. "AI for CSRD, Supplier Programmes &
       Traceability") wrap into tall, uneven tabs at 45% width. A single
       horizontally-scrollable row keeps every tab the same height and keeps
       the folder metaphor intact — the standard mobile pattern for tab bars. */
    .rft-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      /* With the scrollbar hidden, roughly 2 tabs fit exactly in a phone
         width with nothing peeking past the edge — nothing signals there
         are more. Fade the right edge so it visibly trails off instead of
         looking like a hard, final boundary. */
      -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
      mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    }
    .rft-tabs::-webkit-scrollbar { display: none; }
    .rft-tab {
      flex: 0 0 auto;
      min-width: 150px;
      max-width: 200px;
      white-space: normal;
    }
    .rft-card{ padding: 26px; }
  }

    