/* Site compagnon de l'atelier SDLC agentique.
   Même charte que la plateforme de l'atelier (Hymaïa DS 26) : Greycliff CF, le dégradé indigo,
   le lime pour ce qui attend le participant. */

@font-face { font-family: "Greycliff CF"; src: url("fonts/GreycliffCF-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/GreycliffCF-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/GreycliffCF-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/GreycliffCF-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/GreycliffCF-Heavy.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --navy: #1b1768; --navy-deep: #0c0b38;
  --indigo: #4a31ff; --indigo-hover: #4221e9;
  --lime: #ddff00; --lime-hover: #c2e000; --lime-tint: #f7ffc2;
  --lavender: #eeeeff; --lavender-2: #f4f3ff; --periwinkle: #d1cdfb; --periwinkle-2: #b4a9fd;
  --ink: var(--navy); --ink-2: #3a3580; --ink-3: #6c67a3; --on-dark-2: #c9c6f0;
  --page: #f7f6ff; --card: #ffffff; --line: var(--periwinkle);
  --warn: #8a4104; --warn-bg: #ffeee3; --warn-line: #fecfb0;
  --code-bg: var(--navy-deep); --code-ink: #eeeeff;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --grad: linear-gradient(145deg, #241381 0%, #2a1894 45%, #361dc1 100%);
  --r-card: 20px; --r-lg: 14px; --r-md: 10px;
  --shadow: 0 1px 2px rgba(27, 23, 104, .06), 0 12px 32px rgba(27, 23, 104, .08);
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 16px/1.6 "Greycliff CF", ui-sans-serif, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--lime); color: var(--navy); }
a { color: var(--indigo); }
a:hover { color: var(--indigo-hover); }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: .88em; background: var(--lavender); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--indigo); border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; padding: 8px 12px; }

/* ---------- boutons ---------- */
.btn { font: inherit; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--indigo); color: var(--indigo); background: transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--indigo); color: #fff; }
.btn > span[aria-hidden] { display: inline-block; transition: transform .2s; }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }
.btn.accent { background: var(--lime); border-color: var(--lime); color: var(--navy); box-shadow: 0 8px 24px rgba(221, 255, 0, .28); }
.btn.accent:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--navy); transform: translateY(-1px); }
.btn.inverse { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn.inverse:hover { background: #fff; color: var(--navy); }
.btn.small { padding: 7px 16px; font-size: 14px; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; }
.top .container { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { color: var(--lime); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--on-dark-2); text-decoration: none; padding: 7px 16px; border-radius: 999px; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { background: var(--indigo); color: #fff; }

/* ---------- accueil : le hero ---------- */
/* Le bas du hero prend la couleur de la page : la capture déborde du dégradé.
   overflow: hidden coupe les cercles ; les 56px du bas laissent la place à l'ombre de la capture. */
.hero { position: relative; overflow: hidden; background: linear-gradient(var(--page), var(--page)) bottom / 100% calc(clamp(56px, 14vw, 200px) + 56px) no-repeat, var(--grad); color: #fff; padding: 72px 0 56px; }
.hero-text { position: relative; max-width: 760px; display: grid; gap: 20px; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { margin: 0; font-size: 19px; color: var(--on-dark-2); max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.hero-text.center { margin: 0 auto; justify-items: center; text-align: center; }
.hero-text.center .actions { justify-content: center; }
.cercles { position: absolute; right: -160px; top: -160px; width: 560px; height: 560px; pointer-events: none; opacity: .55; }
.cercles i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid rgba(221, 255, 0, .35); border-top-color: transparent; animation: spin 40s linear infinite; }
.cercles i:nth-child(2) { inset: 80px; border-color: rgba(180, 169, 253, .45); border-right-color: transparent; animation-duration: 28s; animation-direction: reverse; }
.cercles i:nth-child(3) { inset: 170px; border-color: rgba(255, 255, 255, .35); border-bottom-color: transparent; animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cercles i { animation: none; } html { scroll-behavior: auto; } }

/* La capture de la plateforme, dans un cadre de navigateur, à cheval sur le hero */
.shot-wrap { position: relative; margin-top: 56px; }
.browser { position: relative; z-index: 1; display: block; text-decoration: none; color: inherit; border-radius: 16px; background: #fff; box-shadow: 0 2px 6px rgba(12, 11, 56, .08), 0 24px 48px -16px rgba(12, 11, 56, .35), 0 0 0 1px rgba(255, 255, 255, .25); overflow: hidden; transition: transform .25s; }
.browser:hover { transform: translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--lavender); border-bottom: 1px solid var(--periwinkle); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--periwinkle-2); }
.dots i:first-child { background: #fb6f92; } .dots i:nth-child(2) { background: #ffc94d; } .dots i:nth-child(3) { background: #5fd38d; }
.url { flex: 1; min-width: 0; font: 13px var(--mono); color: var(--ink-2); background: #fff; border-radius: 999px; padding: 5px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; height: auto; }

/* ---------- accueil : les deux cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 0 88px; }
.card-link { position: relative; display: grid; gap: 14px; align-content: start; padding: 32px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card-link:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 1px 2px rgba(27, 23, 104, .06), 0 20px 48px rgba(27, 23, 104, .14); }
.card-link h2 { margin: 0; font-size: 32px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.card-link p { margin: 0; color: var(--ink-2); font-size: 17px; }
.card-link .go { margin-top: 8px; font-weight: 700; color: var(--indigo); display: inline-flex; gap: 8px; }
.card-link:hover .go span { transform: translateX(4px); }
.card-link .go span { transition: transform .2s; }
.card-visual { margin: 4px 0 6px; padding: 18px; border-radius: var(--r-lg); background: var(--lavender-2); }
.card-visual.photo { padding: 0; overflow: hidden; aspect-ratio: 16 / 7; }
.card-visual.photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Un pipeline, en pastilles */
.pipeline, .section ol.pipeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; font: 13px var(--mono); }
.pipeline li { display: inline-flex; align-items: center; gap: 6px; }
.pipeline li span { padding: 5px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--periwinkle); color: var(--navy); white-space: nowrap; }
.pipeline li + li::before { content: "→"; color: var(--ink-3); }
.pipeline li.new span { background: var(--lime); box-shadow: none; font-weight: 700; }
.pipeline li.release span { background: var(--navy); color: #fff; box-shadow: none; }

/* ---------- en-tête des pages intérieures ---------- */
.page-head { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 56px 0 48px; }
.page-head .eyebrow { color: var(--lime); }
.page-head h1 { margin: 10px 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.04; max-width: 820px; }
.page-head p { margin: 0; max-width: 680px; font-size: 18px; color: var(--on-dark-2); }
.page-head .cercles { right: -220px; top: -260px; }

/* ---------- mise en page avec sommaire ---------- */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 48px 0 88px; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: 15px; }
.toc .eyebrow { margin-bottom: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { background: var(--lavender); color: var(--navy); }
.toc a.on { border-left-color: var(--indigo); background: var(--lavender); color: var(--navy); font-weight: 500; }
.content { display: grid; gap: 28px; min-width: 0; }

.section { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 36px; display: grid; gap: 18px; min-width: 0; }
.section > * { margin: 0; }
.section h2 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.section h3 { font-size: 19px; font-weight: 800; margin-top: 10px; }
.section p, .section li { color: var(--ink-2); }
.section ul, .section ol { padding-left: 22px; display: grid; gap: 6px; }
.num { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--navy); font-size: 18px; font-weight: 900; }
.num.bonus { background: var(--navy); color: var(--lime); font-size: 14px; }
.when { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* Les étapes qu'on n'ouvre qu'au signal de l'animateur */
.later { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--periwinkle); background: var(--lavender-2); }
.later > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.later > summary::-webkit-details-marker { display: none; }
.later > summary::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; flex: none; }
.later[open] > summary::before { content: "–"; }
.later > summary small { font-weight: 400; color: var(--ink-3); margin-left: auto; text-align: right; }
.later-body { padding: 4px 20px 24px; display: grid; gap: 18px; }
.later-body > * { margin: 0; }

/* Un bloc à copier */
.copy { border-radius: var(--r-lg); background: var(--code-bg); overflow: hidden; min-width: 0; }
.copy-head { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.copy-head span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--periwinkle-2); }
.copy-btn { margin-left: auto; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; border: 0; background: var(--lime); color: var(--navy); cursor: pointer; transition: background .15s; }
.copy-btn:hover { background: var(--lime-hover); }
.copy-btn.done { background: #fff; }
.copy pre { margin: 0; padding: 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); color: var(--code-ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Un passage à compléter dans un prompt */
.copy pre mark { background: var(--lime); color: var(--navy); border-radius: 4px; padding: 0 3px; }

/* Une carte d'agent ou de ticket, avec son prompt replié */
.item { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--periwinkle); background: #fff; min-width: 0; }
.item > * { margin: 0; }
.item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-head h3 { margin: 0; font-size: 19px; }
.item-head h3 code { font-size: 17px; background: none; padding: 0; color: var(--navy); }
.kind { font: 700 12px/1 "Greycliff CF", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.kind.is-agent { background: var(--indigo); color: #fff; }
.kind.is-ticket { background: var(--navy); color: var(--lime); }
.prompt > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--indigo); padding: 6px 0; }
.prompt > summary::-webkit-details-marker { display: none; }
.prompt > summary::before { content: "▸"; transition: transform .15s; }
.prompt[open] > summary::before { transform: rotate(90deg); }
.prompt[open] > summary { margin-bottom: 10px; }
.prompt-body { display: grid; gap: 10px; }

/* Le tuto : une étape cachée tant qu'on n'a pas cliqué sur « Étape suivante » (seulement avec JavaScript) */
.js .locked { display: none !important; }
.step-next { display: none; }
.js .step-next { display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }
.arrive { animation: arrive .6s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.toc a.arrive { animation: none; background: var(--lime); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .arrive { animation: none; } }

/* Le lien vers la roadmap, comme une pièce jointe */
.roadmap-link { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--grad); color: #fff; text-decoration: none; transition: transform .2s; }
.roadmap-link:hover { color: #fff; transform: translateY(-2px); }
.roadmap-link .eyebrow { color: var(--lime); }
.roadmap-link b { font-size: 21px; font-weight: 800; }
.roadmap-link .go { font-weight: 700; color: var(--lime); }
.rm-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rm-mini i { font-style: normal; font-size: 12px; font-weight: 700; text-align: center; padding: 18px 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, .1); border-top: 4px solid; }
.rm-mini .now { border-color: var(--lime); }
.rm-mini .next { border-color: var(--periwinkle-2); }
.rm-mini .later { border-color: #fff; }
.rm-mini .out { border-color: #fb6f92; }

/* La roadmap */
.rm-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rm-col { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); border-top: 6px solid; }
.rm-col.now { border-color: var(--lime); }
.rm-col.next { border-color: var(--indigo); }
.rm-col.later { border-color: var(--periwinkle-2); }
.rm-col.out { border-color: #fb6f92; background: #fff8fa; }
.rm-col h2 { margin: 0; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.rm-col h2 small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3); margin-top: 2px; }
.rm-card { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-lg); background: var(--lavender-2); }
.rm-card > * { margin: 0; }
.rm-card b { font-size: 16px; color: var(--navy); line-height: 1.25; }
.rm-card span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.rm-card .stat-chip { font-style: normal; justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: var(--lime); }
.rm-col.out .rm-card { background: #fff; box-shadow: inset 0 0 0 1px #f2bdbc; }
.rm-col.out .rm-card b { text-decoration: line-through; text-decoration-color: #fb6f92; text-decoration-thickness: 2px; }
.rm-promise { display: grid; gap: 8px; padding: 26px 30px; border-radius: var(--r-card); background: var(--grad); color: #fff; }
.rm-promise .eyebrow { color: var(--lime); }
.rm-promise p { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }
.rm-promise span { font-size: 15px; color: var(--on-dark-2); max-width: 720px; }
.rm-wrap { display: grid; gap: 24px; padding: 40px 0 88px; }

/* Les idées de l'étape libre */
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea { padding: 16px 18px; border-radius: var(--r-lg); background: var(--lavender-2); display: grid; gap: 6px; align-content: start; }
.idea > * { margin: 0; }
.idea b { font: 700 15px var(--mono); color: var(--navy); }
.idea span { color: var(--ink-2); font-size: 15px; }

/* Un ticket : un titre et une description à copier */
.ticket { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--periwinkle); background: #fff; min-width: 0; }
.ticket-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ticket-head .tag { font: 700 13px var(--mono); padding: 3px 10px; border-radius: 999px; background: var(--navy); color: var(--lime); }
.ticket-head h3 { margin: 0; font-size: 19px; }

/* Une carte de garde-fou */
.guard { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--periwinkle); background: #fff; min-width: 0; }
.guard > * { margin: 0; }
.guard h3 { margin: 0; font: 800 19px var(--mono); color: var(--navy); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; color: var(--ink-2); }

.checklist { list-style: none; padding: 0 !important; gap: 10px !important; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink-2); }
.checklist input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--indigo); flex: none; }

.howto { counter-reset: how; list-style: none; padding: 0 !important; }
.howto li { counter-increment: how; display: flex; gap: 12px; }
.howto li::before { content: counter(how); flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--lavender); color: var(--indigo); font-size: 13px; font-weight: 800; }

.ui { font-weight: 700; color: var(--navy); background: var(--lavender); padding: .05em .45em; border-radius: 6px; white-space: nowrap; }

.note { padding: 16px 20px; border-radius: var(--r-lg); background: var(--lime-tint); color: var(--navy); }
.note.warn { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.note > * { margin: 0; }
.note b { color: inherit; }

.quote { margin: 0; padding: 22px 26px; border-radius: var(--r-lg); background: var(--grad); color: #fff; font-size: 18px; }
.quote p { color: #fff !important; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: var(--r-lg); background: var(--lavender-2); }
.stat b { display: block; font-size: 36px; font-weight: 900; line-height: 1; color: var(--indigo); }
.stat span { font-size: 14px; color: var(--ink-2); }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--periwinkle); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--lavender); vertical-align: top; color: var(--ink-2); }
th { background: var(--lavender-2); color: var(--navy); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shots figure { margin: 0; display: grid; gap: 8px; }
.shots img { border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--periwinkle), var(--shadow); }
.shots figcaption { font-size: 14px; color: var(--ink-3); }

.files { display: grid; gap: 0; }
.files div { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--lavender); }
.files div:last-child { border-bottom: 0; }
.files code { justify-self: start; }
.files span { color: var(--ink-2); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split > div { display: grid; gap: 10px; align-content: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--lavender-2); }
.split > div > * { margin: 0; }

/* ---------- pied de page Hymaïa ---------- */
.site-footer { color: var(--on-dark-2); background: var(--navy); }
.footer-cta { position: relative; overflow: hidden; background: var(--grad); padding: 72px 0; }
.footer-cta .container { position: relative; display: grid; gap: 16px; }
.footer-cta .eyebrow { color: var(--on-dark-2); font-weight: 400; }
.footer-cta h2 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; color: #fff; max-width: 760px; }
.footer-cta p { margin: 0; font-size: 17px; max-width: 560px; }
.footer-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.footer-main .container { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 126px; height: auto; }
.footer-brand p { margin: 0; font-size: 15px; max-width: 300px; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer-col h4 { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col a { color: var(--on-dark-2); text-decoration: none; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-bottom b { color: var(--lime); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 500; transition: opacity .2s, transform .2s; z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- petits écrans ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc .eyebrow { width: 100%; margin: 0; }
  .toc a { border-left: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--periwinkle); padding: 5px 12px; border-radius: 999px; font-size: 14px; }
  .footer-main .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 124px; }
  .cards, .shots, .split, .ideas, .rm-board { grid-template-columns: minmax(0, 1fr); }
  .rm-promise { padding: 22px; }
  .rm-promise p { font-size: 20px; }
  .rm-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item { padding: 16px; }
  .card-link { padding: 24px; }
  .card-link h2 { font-size: 26px; }
  .section { padding: 22px 18px; }
  .section h2 { font-size: 23px; }
  .later-body { padding: 4px 14px 18px; }
  .later > summary { flex-wrap: wrap; }
  .later > summary small { margin-left: 38px; text-align: left; width: 100%; }
  .guard, .ticket { padding: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .files div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nav { margin-left: 0; width: 100%; }
  .top .container { gap: 8px; }
  .hero { padding-top: 48px; }
  .hero p { font-size: 17px; }
  .shot-wrap { margin-top: 36px; }
  .footer-main .container { grid-template-columns: minmax(0, 1fr); }
}
.page-head code { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Le tuto à la cuillère : mascotte, menu, note et animations ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.course { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #d81e4a; }
.step-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px 24px; align-items: center; }
.step-head > div { display: grid; gap: 10px; align-content: start; }
.step-head > div > * { margin: 0; }
.illu { width: 100%; height: auto; overflow: visible; }

/* La mascotte du bandeau */
.page-head .container { position: relative; }
.mascotte { position: absolute; right: 24px; bottom: -48px; width: 190px; height: auto; overflow: visible; }

/* Le ticket qui traverse la pipeline */
.chaine { width: 100%; height: auto; margin: 4px 0 8px; overflow: visible; }
.chaine .ticket-mobile { animation: file 9s ease-in-out infinite; }
.chaine .mystere { animation: mystere 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes file {
  0%, 4% { transform: translateX(0); opacity: 0; }
  8% { transform: translateX(0); opacity: 1; }
  16%, 24% { transform: translateX(140px); }
  32%, 40% { transform: translateX(280px); }
  48%, 56% { transform: translateX(420px); }
  64%, 82% { transform: translateX(560px); opacity: 1; }
  92%, 100% { transform: translateX(560px) translateY(-16px); opacity: 0; }
}
@keyframes mystere { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(90deg); } }

/* Les illustrations des étapes */
.illu .steam path { animation: vapeur 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.illu .steam path:nth-child(2) { animation-delay: -1s; }
.illu .steam path:nth-child(3) { animation-delay: -2s; }
@keyframes vapeur { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px); } }
.illu .glyph { animation: monte 3.6s ease-in infinite; }
.illu .glyph.g2 { animation-delay: -1.8s; }
@keyframes monte { 0% { opacity: 0; transform: translateY(12px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-28px); } }
.illu .stir { animation: touille 2.4s ease-in-out infinite; transform-box: view-box; transform-origin: 105px 92px; }
@keyframes touille { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.illu .loupe { animation: balaie 3.2s ease-in-out infinite; }
@keyframes balaie { 0%, 100% { transform: translate(-16px, 4px); } 50% { transform: translate(14px, -6px); } }
.illu .tic { animation: tic 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.illu .tic.t2 { animation-delay: -1.6s; }
@keyframes tic { 0%, 20%, 100% { transform: scale(0); opacity: 0; } 35%, 70% { transform: scale(1); opacity: 1; } }
.illu .saute, .mascotte .saute { animation: saute 1.8s ease-in-out infinite; }
@keyframes saute { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.illu .hesite { animation: hesite 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes hesite { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.illu .bulle, .mascotte .bulle-head { animation: bulle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bulle { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.05); } }
.illu .panneau { transition: transform .3s; transform-box: fill-box; transform-origin: left center; }
.illu .panneau.p2 { transform-origin: right center; }
.section:hover .illu .panneau.p1 { transform: rotate(-4deg); }
.section:hover .illu .panneau.p3 { transform: rotate(4deg); }
.illu .confetti > * { animation: tombe 3.4s linear infinite; transform-box: fill-box; transform-origin: center; }
.illu .confetti > :nth-child(2n) { animation-duration: 4.1s; }
.illu .confetti > :nth-child(3n) { animation-duration: 2.9s; }
.illu .confetti > :nth-child(1) { animation-delay: -.4s; } .illu .confetti > :nth-child(2) { animation-delay: -1.9s; }
.illu .confetti > :nth-child(3) { animation-delay: -2.7s; } .illu .confetti > :nth-child(4) { animation-delay: -1.1s; }
.illu .confetti > :nth-child(5) { animation-delay: -3.1s; } .illu .confetti > :nth-child(6) { animation-delay: -.8s; }
.illu .confetti > :nth-child(7) { animation-delay: -2.2s; } .illu .confetti > :nth-child(8) { animation-delay: -1.5s; }
.illu .confetti > :nth-child(9) { animation-delay: -3.5s; } .illu .confetti > :nth-child(10) { animation-delay: -.2s; }
@keyframes tombe { 0% { transform: translateY(-20px) rotate(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(140px) rotate(320deg); opacity: 0; } }
.illu .etoile { animation: brille 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.illu .etoile.e2 { animation-delay: -.9s; }
@keyframes brille { 0%, 100% { transform: scale(.7) rotate(0); } 50% { transform: scale(1.1) rotate(20deg); } }

/* Ta note, en cuillères */
.note-tuto { display: grid; gap: 6px; padding: 14px 14px 12px; margin-bottom: 14px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.note-tuto .eyebrow { margin: 0 !important; color: #d81e4a; }
.spoons { display: flex; gap: 8px; align-items: flex-end; }
.spoon-ico { width: 15px; height: 35px; fill: var(--periwinkle); transition: fill .3s; }
.spoon-ico.on { fill: #d81e4a; }
.spoon-ico.pop { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.35) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
.note-texte { font-size: 13px; color: var(--ink-3); }

/* La gerbe de cuillères quand une étape se débloque */
.fete { position: fixed; z-index: 41; width: 0; height: 0; pointer-events: none; }
.fete-cuillere { position: absolute; left: -6px; top: -14px; width: 12px; height: 28px; animation: eclat 1.3s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes eclat {
  0% { transform: translate(0, 0) rotate(0) scale(.3); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 0; }
}

/* Carte blanche : les agents et les features à piocher */
.agents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-lg); background: var(--lavender-2); transition: transform .2s, box-shadow .2s; }
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #fff; }
.agent-card svg { width: 44px; height: 44px; }
.agent-card:hover svg { animation: wiggle .5s ease-in-out; }
.agent-card > div { display: grid; gap: 4px; }
.agent-card b { font: 700 15px var(--mono); color: var(--navy); overflow-wrap: anywhere; }
.agent-card span { font-size: 15px; color: var(--ink-2); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--periwinkle); transition: transform .2s, box-shadow .2s; min-width: 0; }
.feat:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--periwinkle), var(--shadow); }
.feat-head { display: flex; align-items: center; gap: 14px; }
.feat-head h4 { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.feat-illu { width: 64px; height: 64px; flex: none; }
.feat:hover .feat-illu { animation: wiggle .6s ease-in-out; }
.feat .aiguille { transform-box: view-box; transform-origin: 36px 38px; animation: tourne 6s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.feat .copy pre { font-size: 12.5px; padding: 12px 14px; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

@media (max-width: 900px) {
  .mascotte { display: none; }
  .note-tuto { width: 100%; margin-bottom: 4px; }
}
@media (max-width: 720px) {
  .step-head { grid-template-columns: minmax(0, 1fr); }
  .step-head .illu { grid-row: 1; width: 170px; justify-self: center; }
  .agents-grid, .feats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .illu *, .chaine *, .mascotte *, .feat *, .agent-card *, .spoon-ico { animation: none !important; }
  .fete { display: none; }
}

/* La photo de l'équipe dans le pied de page */
.footer-cta .footer-cta-inner { grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: 48px; align-items: center; }
.footer-cta-text { display: grid; gap: 16px; }
.footer-cta-text > * { margin: 0; }
.footer-photo { position: relative; margin: 0 14px 14px 0; transform: rotate(-2deg); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.footer-photo::before { content: ""; position: absolute; inset: 0; border-radius: 24px; background: var(--lime); transform: translate(14px, 14px) rotate(3deg); }
.footer-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 50px rgba(12, 11, 56, .45); }
.footer-photo:hover { transform: rotate(0) scale(1.02); }
@media (max-width: 900px) { .footer-cta .footer-cta-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .footer-photo, .footer-photo:hover { transform: none; transition: none; } }

/* ===== Page façon Notion : exigences produit ===== */
.notion { --n-text: #37352f; --n-muted: #787774; --n-line: #e9e9e7; --n-hover: #f1f1ef; background: #fff; color: var(--n-text); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; padding-bottom: 96px; }
.n-cover { height: 220px; background: var(--grad); position: relative; overflow: hidden; }
.n-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(221,255,0,.35), transparent 40%), radial-gradient(circle at 10% 110%, rgba(251,111,146,.35), transparent 45%); }
.n-page { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.n-icon { font-size: 72px; line-height: 1; margin-top: -40px; position: relative; }
.n-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; font-size: 14px; color: var(--n-muted); }
.n-crumbs a { color: var(--n-muted); text-decoration: none; }
.n-crumbs a:hover { color: var(--n-text); text-decoration: underline; }
.notion h1 { font-size: 40px; line-height: 1.2; font-weight: 700; margin: 8px 0 18px; color: var(--n-text); letter-spacing: 0; text-transform: none; }
.notion h2 { font-size: 24px; font-weight: 600; margin: 40px 0 8px; color: var(--n-text); text-transform: none; letter-spacing: 0; }
.notion p, .notion li { font-size: 16px; line-height: 1.6; }
.notion code { font-family: var(--mono); font-size: 85%; padding: 2px 5px; border-radius: 4px; background: rgba(135,131,120,.15); color: #eb5757; }
.notion a { color: var(--n-text); }
.n-props { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--n-line); display: grid; gap: 2px; }
.n-props > div { display: grid; grid-template-columns: 160px 1fr; align-items: center; min-height: 34px; border-radius: 4px; }
.n-props > div:hover { background: var(--n-hover); }
.n-props dt { display: flex; gap: 8px; align-items: center; color: var(--n-muted); font-size: 14px; padding-left: 4px; }
.n-props dt span { width: 18px; text-align: center; }
.n-props dd { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.n-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.n-tag { font-size: 13px; padding: 1px 8px; border-radius: 4px; }
.n-tag.green { background: #dbeddb; color: #1c3829; }
.n-tag.purple { background: #e8deee; color: #412454; }
.n-callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 6px; background: #f1f1ef; margin: 6px 0 4px; }
.n-callout-icon { font-size: 20px; line-height: 1.5; }
.n-callout p { margin: 0; }
.n-hint { color: var(--n-muted); margin: 0 0 6px; }
.n-toggles { display: grid; gap: 2px; }
.n-toggle > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 4px; font-size: 17px; font-weight: 600; }
.n-toggle > summary::-webkit-details-marker { display: none; }
.n-toggle > summary::before { content: "▸"; color: var(--n-muted); width: 14px; transition: transform .15s; }
.n-toggle[open] > summary::before { transform: rotate(90deg); }
.n-toggle > summary:hover { background: var(--n-hover); }
.n-toggle > summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.n-num { font-size: 13px; font-weight: 600; color: var(--n-muted); }
.n-toggle-body { padding: 2px 4px 12px 28px; }
.n-toggle-body p { margin: 4px 0 8px; }
.n-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.n-checks li { display: flex; gap: 8px; }
.n-list { padding-left: 22px; }
.n-list li { margin: 4px 0; }
.n-divider { border: 0; border-top: 1px solid var(--n-line); margin: 36px 0 14px; }
.n-foot { color: var(--n-muted); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .n-cover { height: 140px; }
  .n-icon { font-size: 56px; margin-top: -30px; }
  .notion h1 { font-size: 32px; }
  .n-props > div { grid-template-columns: 130px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .n-toggle > summary::before { transition: none; } }
.req-link { margin-top: 12px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--periwinkle); }
.req-link:hover { color: var(--ink); }
.req-link .eyebrow, .req-link .go { color: var(--indigo); }
.req-mini { font-size: 14px; color: var(--ink-3); }
.rm-promise span a { color: var(--lime); }

/* ===== Doc TheSpoon façon Notion : pleine largeur, citation, lien de page, vue tableau ===== */
.n-page.full { max-width: 1080px; }
.n-tag + .n-tag { margin-left: 6px; }
.n-tag.gray { background: #e3e2e0; color: #32302c; }
.n-tag.blue { background: #d3e5ef; color: #183347; }
.n-tag.red { background: #ffe2dd; color: #5d1715; }
.notion h3 { font-size: 18px; font-weight: 600; margin: 0; color: var(--n-text); text-transform: none; letter-spacing: 0; }
.n-quote { margin: 8px 0 12px; padding: 2px 0 2px 16px; border-left: 3px solid var(--n-text); font-size: 20px; line-height: 1.5; }
.n-pagelink { display: inline-flex; gap: 8px; align-items: center; padding: 4px 6px; margin: 2px 0 8px -6px; border-radius: 4px; text-decoration: none; font-weight: 500; }
.n-pagelink span:last-child { border-bottom: 1px solid rgba(55,53,47,.25); }
.n-pagelink:hover { background: var(--n-hover); }
.n-viewtitle { display: flex !important; align-items: center; gap: 8px; margin: 28px 0 10px !important; padding-bottom: 8px; border-bottom: 1px solid var(--n-line); }
.n-viewname { font-size: 14px; font-weight: 500; color: var(--n-muted); }
.n-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.n-col { min-width: 0; }
.n-col h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.n-col h3 small { font-size: 12px; color: var(--n-muted); font-weight: 400; }
.n-count { margin-left: auto; font-size: 13px; color: var(--n-muted); font-weight: 400; }
.n-cards { display: grid; gap: 8px; }
.n-card { display: grid; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 4px; box-shadow: rgba(15,15,15,.1) 0 0 0 1px, rgba(15,15,15,.1) 0 2px 4px; }
.n-card b { font-size: 14px; font-weight: 600; }
.n-card span { font-size: 13px; line-height: 1.45; color: var(--n-muted); }
.n-chip { justify-self: start; font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 4px; background: #fdecc8; color: #402c1b; margin-top: 2px; }
.n-table-wrap { overflow-x: auto; }
.n-table { border-collapse: collapse; width: 100%; max-width: 560px; font-size: 15px; }
.n-table th, .n-table td { border: 1px solid var(--n-line); padding: 7px 10px; text-align: left; }
.n-table th { color: var(--n-muted); font-weight: 500; background: #f7f7f5; }
.n-table td:last-child { font-weight: 600; white-space: nowrap; }
.notion section { scroll-margin-top: 80px; }
.n-table td { color: var(--n-text); background: #fff; }
.n-table tr:hover td { background: var(--n-hover); }
.notion .n-table th, .notion .n-table td, .notion .n-table tr:last-child td { border: 1px solid var(--n-line); }

/* ===== Wiki TheSpoon (2022) : base de données, vues, sommaire ===== */
.n-tag { display: inline-block; white-space: nowrap; }
.n-tag.orange { background: #fadec9; color: #49290e; }
.n-tag.yellow { background: #fdecc8; color: #402c1b; }
.n-tag.pink { background: #f5e0e9; color: #4c2337; }
.n-tag.brown { background: #eee0da; color: #442a1e; }
.n-props dd { flex-wrap: wrap; gap: 6px; }
.n-props dd .n-tag + .n-tag { margin-left: 0; }
.n-avatar { width: auto; min-width: 20px; padding: 0 4px; border-radius: 10px; font-size: 10px; }
.n-avatar.alt { background: #e16259; }
.n-callout.blue { background: #e7f3f8; }
.n-callout.yellow { background: #fbf3db; }
.n-toc { display: grid; gap: 2px; margin: 18px 0 4px; padding: 0; }
.n-toc a { color: var(--n-muted); text-decoration: none; font-size: 14px; padding: 3px 4px; border-bottom: 0; border-radius: 4px; justify-self: start; }
.n-toc a:hover { background: var(--n-hover); color: var(--n-text); }
.n-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.n-cols2 h3 { margin-bottom: 4px !important; }
.n-cols2 p { margin: 4px 0; }
.n-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.n-card-tags .n-tag { font-size: 12px; padding: 0 6px; margin: 0; }
.n-table td.n-numcell { text-align: right; font-variant-numeric: tabular-nums; }
.n-db-table { max-width: none; font-size: 14px; }
.n-db-table td, .n-db-table th { white-space: nowrap; }
.n-db > input { position: absolute; opacity: 0; pointer-events: none; }
.n-views { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 1px solid var(--n-line); margin-bottom: 12px; }
.n-views label { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--n-muted); padding: 6px 8px 8px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.n-views label:hover { color: var(--n-text); }
.n-viewmeta { margin-left: auto; font-size: 13px; color: var(--n-muted); }
#v-board:checked ~ .n-views label[for="v-board"], #v-table:checked ~ .n-views label[for="v-table"] { color: var(--n-text); border-bottom-color: var(--n-text); }
#v-board:focus-visible ~ .n-views label[for="v-board"], #v-table:focus-visible ~ .n-views label[for="v-table"] { outline: 2px solid var(--indigo); outline-offset: 2px; }
.n-view-table { display: none; }
#v-table:checked ~ .n-view-board { display: none; }
#v-table:checked ~ .n-view-table { display: block; }
@media (max-width: 640px) { .n-cols2 { grid-template-columns: 1fr; gap: 8px; } .n-viewmeta { margin-left: 0; width: 100%; } }
.n-db-table td:last-child { font-weight: 400; color: var(--n-muted); }

/* Encart dépliable : pour aller plus loin */
.encart { margin: 8px 0 4px; border-radius: var(--r-lg); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line); color: var(--navy); }
.encart > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 800; }
.encart > summary::-webkit-details-marker { display: none; }
.encart > summary::after { content: "▸"; margin-left: auto; color: var(--warn); transition: transform .15s; }
.encart[open] > summary::after { transform: rotate(90deg); }
.encart > summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: var(--r-lg); }
.encart-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
.encart-body { padding: 0 20px 16px; display: grid; gap: 10px; }
.encart-body p, .encart-body ul { margin: 0; }
.encart-body ul { padding-left: 20px; display: grid; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .encart > summary::after { transition: none; } }
