/* ==========================================================================
   Wingvol — design system
   ========================================================================== */
:root {
    --blue: #0E3B4F;
    --blue-dark: #0A2E3E;
    --navy: #0A2E3E;
    --ink: #14242C;
    --muted: #56656C;
    --cyan: #F2B79C;
    --cyan-soft: #EAE2D3;
    --cyan-wash: #F3EDE2;
    --coral: #F26B3A;
    --coral-dark: #D9572A;
    --line: #DCD3C3;
    --white: #fff;
    --ok: #1B7F4D;
    --ok-bg: #E7F6EE;
    --warn: #8A5A00;
    --warn-bg: #FFF4D6;
    --danger: #A12A1B;
    --danger-bg: #FDE8E4;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(14, 59, 79, .06), 0 2px 8px rgba(14, 59, 79, .06);
    --shadow-md: 0 8px 28px rgba(14, 59, 79, .12);
    --shadow-lg: 0 20px 50px rgba(14, 59, 79, .18);

    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

    --font-head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 72px;

    /* DA Wingvol (project-spec → art_direction, étape 02b) */
    --primary: #0E3B4F;
    --primary-hover: #0A2E3E;
    --on-primary: #FFFFFF;
    --secondary: #F26B3A;
    --secondary-hover: #D9572A;
    --bg: #F3EDE2;
    --surface: #FFFFFF;
    --text: #14242C;
    --text-secondary: #33454E;
    --text-strong: #0A1C24;
    --text-muted: #56656C;
    --text-faint: #B9BDB8;
    --fill: #EAE2D3;
    --border: #DCD3C3;
    --callout-bg: #FCE7DC;
    --callout-text: #7A2E12;
    --callout-border: #F2B79C;
    --font-heading: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
    --font-serif: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
    --font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 var(--s4); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
.icon { flex: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s5); }
.container-narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 200; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 237, 226, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); text-decoration: none; font-weight: 500; }
.brand strong { color: var(--blue); font-weight: 800; }
.brand-light { color: #fff; }
.brand-light strong { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; border-radius: var(--r-sm); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.main-nav { display: flex; align-items: center; gap: var(--s5); }
.main-nav ul { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .975rem; transition: background .2s, color .2s; }
.main-nav li a:hover { background: var(--cyan-wash); color: var(--blue-dark); }
.main-nav li a.is-active { background: var(--cyan-soft); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(14, 59, 79, .35); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(242, 107, 58, .35); }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cyan-soft); color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }

/* ---------- Layout helpers ---------- */
.section { padding-block: var(--s9); }
.section-tight { padding-block: var(--s8); }
.section-alt { background: var(--cyan-wash); }
.section-navy { background: var(--navy); color: #E6DFD2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--blue-dark); background: var(--cyan-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: var(--s4); }
.section-navy .eyebrow { background: rgba(242, 183, 156, .18); color: var(--cyan); }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: var(--s7); align-items: center; }

/* ---------- Reveal ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--cyan-wash) 0%, #fff 60%); padding-block: var(--s8) var(--s9); }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; background: radial-gradient(circle, var(--cyan) 0%, rgba(242, 183, 156, 0) 68%); opacity: .55; pointer-events: none; }
.hero .container { position: relative; display: grid; gap: var(--s7); align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 62%, var(--cyan) 62%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.hero-badge { position: absolute; left: -12px; bottom: 28px; background: #fff; border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.hero-badge .big { font-size: 1.9rem; font-weight: 800; color: var(--blue); line-height: 1; }
.page-hero { background: linear-gradient(160deg, var(--cyan-wash), #fff 70%); padding-block: var(--s7) var(--s7); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 860px; }
.page-hero .lead { max-width: 760px; margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; margin-bottom: var(--s4); color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--blue-dark); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: calc(var(--s7) * -1); position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow-md); text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat span { font-size: .95rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--s2); }
.card .icon-wrap { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cyan-soft); color: var(--blue-dark); margin-bottom: var(--s4); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-dark); margin-top: var(--s2); font-family: var(--font-head); }

/* Palier cards */
.palier-card { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; height: 100%; }
.palier-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.palier-card .body { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.palier-card .num { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.palier-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan-wash); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--navy); font-weight: 500; }

/* ---------- Timeline (progression) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--cyan), var(--blue)); border-radius: 3px; }
.timeline li { position: relative; padding-left: 80px; padding-bottom: var(--s7); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(14, 59, 79, .35); }
.timeline h3 { margin-bottom: 6px; }
.timeline .tl-card { display: grid; gap: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.timeline .tl-card img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.timeline .tl-body { padding: var(--s5); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: var(--s4); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 460px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td:first-child, .data-table th:first-child { white-space: normal; }
.data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
.data-table tbody tr:nth-child(even) { background: var(--cyan-wash); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.row-hl, .data-table tr.row-hl:nth-child(even) { background: #FCE7DC; font-weight: 600; }
.data-table td.cell-strong { font-weight: 700; color: var(--navy); }
.data-table .cell-warn { color: var(--muted); font-style: italic; }
.note { font-size: .9rem; color: var(--muted); }
.table-caption { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin: var(--s6) 0 var(--s3); font-size: 1.2rem; }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--cyan-wash); border-left: 5px solid var(--blue); margin-block: var(--s5); }
.callout .icon { margin-top: 3px; color: var(--blue); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-bg); border-color: #E0A100; }
.callout-warn .icon { color: var(--warn); }
.callout-danger { background: var(--danger-bg); border-color: var(--danger); }
.callout-danger .icon { color: var(--danger); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: var(--s3) 0 0; font-size: .96rem; font-weight: 500; }
.alert-info { background: var(--cyan-soft); color: var(--navy); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: var(--s5); align-items: start; }
.calc-form, .calc-result { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-md); }
.calc-result { background: linear-gradient(180deg, #fff, var(--cyan-wash)); }
.calc-form h2, .calc-result h2 { font-size: 1.4rem; }
.field { margin-bottom: var(--s5); }
.field label, .field .label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.field input[type=number], .field select { width: 100%; padding: 12px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); transition: border-color .2s; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(14, 59, 79, .15); }
.field input[type=range] { width: 100%; accent-color: var(--blue); margin-top: 8px; }
.field .hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.result-main { text-align: center; padding: var(--s5); background: var(--navy); color: #fff; border-radius: var(--r-md); margin-bottom: var(--s5); }
.result-label { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--cyan); }
.result-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; margin: 6px 0; }
.result-value small { font-size: .45em; color: var(--cyan); font-weight: 600; }
.result-sub { display: block; font-size: .9rem; color: #C9C3B6; }
.result-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.result-list li { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.result-h3 { margin-top: var(--s6); font-size: 1.15rem; }
.result-more { margin: var(--s4) 0 0; }

/* ---------- Palier page ---------- */
.palier-hero { display: grid; gap: var(--s6); align-items: center; }
.palier-hero img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.big-num { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 2rem; margin-bottom: var(--s3); box-shadow: 0 6px 16px rgba(14, 59, 79, .35); }
.content-layout { display: grid; gap: var(--s7); }
.toc { background: var(--cyan-wash); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); font-size: .97rem; }
.toc h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s3); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { text-decoration: none; display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink); }
.toc a:hover { background: #fff; color: var(--blue-dark); }
.article section { margin-bottom: var(--s8); }
.article section:last-child { margin-bottom: 0; }
.article h2 { display: flex; align-items: center; gap: 12px; }
.article h2 .icon { color: var(--blue); }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; position: relative; padding: var(--s4) var(--s5) var(--s4) 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--cyan-soft); color: var(--navy); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; font-size: 1.15rem; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.steps span { color: var(--muted); }
.mistake { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: var(--r-md); padding: var(--s5); }
.mistake h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mistake p { margin-bottom: 8px; font-size: .98rem; }
.mistake .fix { color: var(--ok); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.mistake .fix .icon { margin-top: 3px; }
.wind-meter { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.wind-bar { position: relative; height: 18px; background: linear-gradient(90deg, #EAE2D3 0%, #F2B79C 35%, #0E3B4F 70%, #F26B3A 100%); border-radius: 999px; margin: var(--s5) 0 var(--s6); }
.wind-bar .zone { position: absolute; top: -6px; bottom: -6px; border: 3px solid var(--navy); border-radius: 999px; background: rgba(255, 255, 255, .25); }
.wind-bar .tick { position: absolute; top: 26px; font-size: .78rem; color: var(--muted); transform: translateX(-50%); }
.wind-meter .wind-values { display: flex; flex-wrap: wrap; gap: var(--s5); margin-bottom: var(--s3); }
.wind-meter .wind-values b { font-family: var(--font-head); font-size: 1.8rem; color: var(--blue); display: block; line-height: 1.1; }
.unlock { background: linear-gradient(135deg, var(--navy), var(--blue-dark)); color: #F3EDE2; border-radius: var(--r-lg); padding: var(--s6); margin-bottom: var(--s5); }
.unlock h3 { color: #fff; display: flex; gap: 10px; align-items: center; }
.unlock p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-bg); border-radius: var(--r-sm); padding: 12px 16px; }
.checklist .icon { color: var(--ok); margin-top: 3px; }
.pager { display: grid; gap: var(--s4); margin-top: var(--s8); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.pager small { color: var(--muted); font-weight: 500; }
.pager b { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); }
.pager .next { text-align: right; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s3); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) var(--s5); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; color: var(--blue); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] { border-color: var(--blue); }
.faq .answer { padding: 0 var(--s5) var(--s4); color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #F3EDE2; border-radius: var(--r-lg); padding: var(--s7) var(--s6); display: grid; gap: var(--s5); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 183, 156, .45), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); position: relative; z-index: 1; }

/* ---------- Scope list ---------- */
.scope { display: grid; gap: var(--s5); }
.scope-box { border-radius: var(--r-md); padding: var(--s5); }
.scope-yes { background: var(--ok-bg); }
.scope-no { background: var(--danger-bg); }
.scope-box h3 { font-size: 1.1rem; }
.scope-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.scope-box li { display: flex; gap: 10px; align-items: flex-start; }
.scope-yes .icon { color: var(--ok); margin-top: 4px; }
.scope-no .icon { color: var(--danger); margin-top: 4px; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose li { margin-bottom: 8px; }
.glossary { display: grid; gap: var(--s3); }
.glossary dt { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.glossary dd { margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); color: var(--muted); }
.glossary-letter { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue); margin: var(--s5) 0 var(--s2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9C3B6; padding-top: var(--s8); margin-top: 0; }
.footer-grid { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); font-family: var(--font-head); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #F3EDE2; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer-brand p { max-width: 340px; margin-top: var(--s3); }
.footer-meta { font-size: .85rem; opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(242, 183, 156, .2); padding-block: var(--s5); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsive (mobile-first)
   ========================================================================== */
@media (max-width: 899px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: var(--s5); gap: var(--s5); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; visibility: hidden; }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav li a { font-size: 1.15rem; padding: 14px 16px; }
    .nav-cta { align-self: stretch; }
    body.nav-open { overflow: hidden; }
    .timeline::before { left: 21px; }
    .timeline li { padding-left: 62px; }
    .timeline .dot { width: 44px; height: 44px; font-size: 1.2rem; }
    .section { padding-block: var(--s8); }
}
@media (min-width: 600px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .timeline .tl-card { grid-template-columns: 260px 1fr; }
    .pager { grid-template-columns: 1fr 1fr; }
    .scope { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .hero .container { grid-template-columns: 1.05fr .95fr; }
    .split { grid-template-columns: 1fr 1fr; }
    .split.reverse > :first-child { order: 2; }
    .palier-hero { grid-template-columns: 1.1fr .9fr; }
    .content-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
    .toc { position: sticky; top: calc(var(--header-h) + 24px); }
    .calc { grid-template-columns: 420px minmax(0, 1fr); }
    .calc-form { position: sticky; top: calc(var(--header-h) + 24px); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
    .cta-band { grid-template-columns: 1fr auto; padding: var(--s8) var(--s7); }
    .timeline .tl-card { grid-template-columns: 340px 1fr; }
}
@media (max-width: 480px) {
    .container { padding-inline: var(--s4); }
    .field-row { grid-template-columns: 1fr; }
    .calc-form, .calc-result { padding: var(--s5); }
    .hero-badge { left: 8px; }
    .steps li { padding-left: 64px; }
    .steps li::before { left: 14px; }
}
/* Outils 05-tools : ancre de résultat, légende masquée, cases du quiz */
.wvo-anchor { scroll-margin-top: calc(var(--header-h) + 16px); outline: none; }
html:has(#resultat[autofocus]) { scroll-behavior: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.calc-form fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.calc-form fieldset p { margin: 0 0 6px; }
.calc-form fieldset input[type=checkbox] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.calc-form .btn { margin-top: var(--s3); }

/* ===== BLOC SOUS-MENU OUTILS — sans JavaScript (hover + focus-within) ===== */
.nav-item{position:relative;display:inline-flex;align-items:center}
.has-sub>a::after{content:"";display:inline-block;width:5px;height:5px;margin-left:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.has-sub::after{content:"";position:absolute;top:100%;left:0;right:0;height:18px}
.sub-nav{position:absolute;top:calc(100% + 18px);left:-16px;z-index:30;min-width:296px;flex-direction:column;gap:1px;padding:8px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 34px rgba(31,58,77,.14);display:none}
.has-sub:hover>.sub-nav,.has-sub:focus-within>.sub-nav{display:flex}
.sub-nav a{display:block;padding:9px 12px;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;border-left:2px solid transparent}
.sub-nav a small{display:block;margin-top:2px;font-family:var(--font-body);font-size:11px;font-weight:400;color:var(--text-muted)}
.sub-nav a:hover,.sub-nav a:focus{background:var(--fill);color:var(--primary);border-left-color:var(--primary)}
.sub-nav a:hover small,.sub-nav a:focus small{color:var(--text-secondary)}
.sub-nav-all{margin-top:5px;border-top:1px solid var(--line);padding-top:11px!important;color:var(--primary)}
@media(max-width:850px){
.nav-item{display:block}
.has-sub::after{display:none}
.has-sub>a::after{transform:rotate(45deg) translateY(-2px)}
.sub-nav{position:static;display:flex;min-width:0;margin:9px 0 4px 2px;padding:2px 0 2px 14px;border:0;border-left:2px solid var(--line);box-shadow:none;background:transparent;gap:0}
.sub-nav a{white-space:normal;padding:7px 0;font-size:13px;border-left:0}
.sub-nav a small{display:none}
.sub-nav a:hover,.sub-nav a:focus{background:transparent}
.sub-nav-all{padding-top:8px!important}
}

/* 05b — ajustements builder : la règle .main-nav li a (pilule) ne doit pas habiller le sous-menu ; drawer à 899 px */
.main-nav .sub-nav a { border-radius: 0; padding: 9px 12px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.main-nav .sub-nav a:hover, .main-nav .sub-nav a:focus { background: var(--fill); color: var(--primary); }
.main-nav .nav-item > a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .975rem; }
.sub-nav { border-radius: var(--r-sm); }
.footer-title-2 { margin-top: var(--s5); }
@media (max-width: 899px) {
    .main-nav .nav-item { display: block; }
    .main-nav .has-sub::after { display: none; }
    .main-nav .sub-nav { position: static; display: flex; min-width: 0; margin: 4px 0 4px 16px; padding: 2px 0 2px 14px; border: 0; border-left: 2px solid var(--line); box-shadow: none; background: transparent; }
    .main-nav .sub-nav a { white-space: normal; padding: 8px 0; font-size: 1rem; }
    .main-nav .sub-nav a small { display: none; }
    .main-nav .nav-item > a { font-size: 1.15rem; padding: 14px 16px; }
}

/* ===== BLOC LARGEUR UNIFIÉE — toutes les pages à la largeur de la home ===== */
/*
 * Posé par 05c-outils-opti, une fois les pages d'outils en place.
 *
 * Le builder du front réserve `.container` (largeur de la home) aux pages
 * d'accueil et de service, et applique une colonne étroite aux pages de contenu
 * via `.guide-narrow` / `.article-narrow` / `.content-narrow` selon le builder.
 * Résultat : outils, piliers et pages éditoriales sont plus étroits que la home,
 * ce qui se voit immédiatement en passant de l'une à l'autre — et prive les
 * tableaux et les simulateurs de la largeur dont ils ont besoin.
 *
 * `!important` est ici délibéré, pas une facilité. Ce bloc est appendu à
 * `styles.css`, mais la contrainte de largeur est souvent déclarée dans une
 * feuille chargée APRÈS (`article.css` sur le builder Otomatic). À spécificité
 * égale, la dernière feuille gagne : sans `!important`, le bloc serait posé,
 * validé, et pourtant sans effet — un échec indiscernable d'un succès.
 *
 * Les CONTRÔLES de formulaire, eux, restent plafonnés : un `select` ou un
 * `input` étiré sur toute la largeur de la page n'est pas une préférence de
 * style, c'est une régression d'usage.
 */
.guide-narrow,
.article-narrow,
.content-narrow{max-width:none!important}

.guide-narrow select,.guide-narrow input[type=number],.guide-narrow input[type=text],
.article-narrow select,.article-narrow input[type=number],.article-narrow input[type=text],
.content-narrow select,.content-narrow input[type=number],.content-narrow input[type=text]{max-width:520px}

/*
 * Conteneurs posés par l'orchestrateur lui-même (pages légales, plan du site)
 * et par les blocs d'enrichissement des builders : `.wrap`, `.article-layout`,
 * `.narrow-content`. Sur les fronts qui ne les stylent pas — le cas de tout
 * builder non melodine — ces pages s'affichaient bord à bord, sans gouttière,
 * donc PLUS larges que la home : l'inverse exact du défaut corrigé au-dessus,
 * et invisible tant qu'on ne regarde que les pages d'outils.
 *
 * Les règles ci-dessous ne mordent que si la feuille du front ne définit pas
 * déjà ces classes, puisqu'elles sont posées en fin de feuille sans `!important`
 * et à spécificité minimale.
 */
.wrap,
.narrow-content,
.article-layout{width:min(1140px,calc(100% - 40px));margin-inline:auto}
.article-body{max-width:72ch}

@media(max-width:650px){
.wrap,
.narrow-content,
.article-layout{width:min(100% - 28px,1140px)}
}

/* ===== ENVELOPPE + OUVERTURE NORMÉE (couches 1 et 2 du gabarit) ===== */
.author-card{display:flex;gap:18px;align-items:flex-start;margin:0 0 22px;padding:20px 22px;background:var(--fill);border-left:3px solid var(--primary)}
.author-card .author-avatar{flex:0 0 auto;line-height:0}
.author-card .author-img{object-fit:cover}
.author-footer .author-card .author-img{width:88px;height:88px;object-fit:cover;border-radius:var(--radius-round, 50%)}
.author-footer .author-card .author-monogram{width:88px;height:88px;font-size:30px}
.author-name{margin:0;font-family:var(--font-heading);font-size:16px;font-weight:700;line-height:1.3}
.author-name a{color:var(--text-strong)}
.author-name a:hover{color:var(--primary)}
.author-job{display:block;margin-top:3px;font-size:11px;font-weight:400;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted)}
.author-legit{margin:11px 0 0;font-size:14.5px;line-height:1.5;font-weight:600;color:var(--text-strong)}
.author-bio{margin:7px 0 0;font-size:13.5px;line-height:1.55;color:var(--text-secondary)}
.author-links{margin:10px 0 0;font-size:13px}
.author-links a{color:var(--primary);font-weight:700;border-bottom:1px solid currentColor}
.page-dates{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 22px;font-size:12px;color:var(--text-muted)}
.page-dates time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-secondary)}
.method-note{margin:0 0 26px;padding:17px 19px;background:var(--callout-bg);border:1px solid var(--callout-border);border-left:3px solid var(--primary)}
.method-note-title{margin:0 0 6px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--callout-text)}
.method-note p:last-child{margin:0;font-size:14px;line-height:1.6;color:var(--callout-text)}
.opening{margin:0 0 34px}
.opening .answer{margin:0;padding:22px 24px;background:var(--secondary);color:var(--white);font-family:var(--font-heading);font-size:clamp(17px,1.9vw,20px);line-height:1.45;letter-spacing:-.2px}
.essentials{margin:0;padding:20px 24px;background:var(--surface);border:1px solid var(--border);border-top:0}
.essentials-title{margin:0 0 10px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted)}
.essentials ul{margin:0;padding:0;list-style:none}
.essentials li{position:relative;padding:7px 0 7px 22px;font-size:15px;line-height:1.5;color:var(--text)}
.essentials li::before{content:"";position:absolute;left:0;top:15px;width:8px;height:2px;background:var(--primary)}
.scope{margin:0;padding:14px 24px;background:var(--fill);border:1px solid var(--border);border-top:0;font-size:13.5px;line-height:1.55;color:var(--text-secondary)}
.scope span{font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted);margin-right:6px}
.scope a{color:var(--secondary);font-weight:700;border-bottom:1px solid currentColor}
.scope a:hover{color:var(--primary)}
.update-log{margin:0;padding:20px 22px;border-top:2px solid var(--secondary);background:var(--fill)}
.update-log-title{margin:0 0 9px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted)}
.update-log ul{margin:0;padding:0;list-style:none}
.update-log li{padding:6px 0;font-size:13.5px;line-height:1.5;color:var(--text-secondary);border-bottom:1px solid var(--border)}
.update-log li:last-child{border-bottom:0}
.update-log time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-weight:500;color:var(--text-strong)}
@media(max-width:640px){.author-card{padding:16px}.opening .answer{padding:18px}.essentials,.scope{padding:16px 18px}}

/* Signature de tête — identité et dates sur une seule ligne. Le parcours de
   l'auteur n'est pas ici : il se lit en pied, via .author-footer. */
.author-byline{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:0 0 26px;padding-bottom:14px;border-bottom:1px solid var(--border,#D3CEC1);font-size:13px;color:var(--text-secondary,#4A554D)}
.byline-author a{color:var(--secondary,#3A4A3F);font-weight:700;border-bottom:1px solid currentColor}
.byline-author a:hover{color:var(--primary,#A65E2E)}
.author-byline .page-dates{margin:0;gap:6px 18px}

/* Pied d'article — la carte auteur complète, détachée du corps du texte. */
.author-footer{margin:38px 0 22px;border-top:2px solid var(--secondary,#3A4A3F)}
.author-footer .author-card{margin:0}

/* Signature dans le hero d'article (blog) : le hero est un aplat sombre, la
   signature doit y passer en blanc. Sans cette règle, elle hérite des couleurs
   pensées pour un fond clair et devient illisible (contraste ~1,1:1). */
.guide-hero .author-byline,
.guide-hero .author-byline .page-dates,
.guide-hero .byline-author a,
.guide-hero .page-dates time{color:#FFFFFF}
.guide-hero .author-byline{border-bottom-color:rgba(255,255,255,.28)}

/* ===== SOURCES — liens sortants cités près de l'affirmation ===== */
.source-note a[rel~="nofollow"]{color:var(--secondary);font-weight:600;border-bottom:1px solid var(--text-faint)}
.source-note a[rel~="nofollow"]:hover{color:var(--primary);border-bottom-color:var(--primary)}
.tool-table a[rel~="nofollow"]{font-weight:600;text-decoration:none;border-bottom:1px solid var(--text-faint)}
.tool-table a[rel~="nofollow"]:hover{color:var(--primary);border-bottom-color:var(--primary)}
.source-list{list-style:none;margin:0;padding:0;max-width:820px}
.source-list li{padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.source-list li:last-child{border-bottom:0}
.source-list span{display:block;margin-top:2px;font-size:11px;color:var(--text-muted)}
