@font-face {
    font-family: 'Schibsted Grotesk';
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url("../fonts/schibsted-grotesk-latin-wght-normal-Y3zTFut.woff2") format('woff2-variations');
}

/* ---------- Tokens ---------- */

:root {
    color-scheme: light;
    --paper: #F4F6F3;
    --paper-2: #E8ECE7;
    --surface: #FFFFFF;
    --ink: #16233B;
    --slate: #56657A;
    --rule: #C9D1D6;
    --rule-strong: #9AA6B2;
    --accent: #0F7C74;
    --accent-ink: #0A5F59;
    --on-accent: #FFFFFF;
    --amber: #D99A1E;
    --danger: #B42318;

    /* Bandes sombres (hero, appels à l'action) : identiques dans les deux thèmes */
    --night: #16233B;
    --night-2: #1F3050;
    --night-text: #F4F6F3;
    --night-muted: #B7C2CF;
    --night-rule: #33476A;
    --signal: #5FD0C4;

    --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.3125rem;
    --step-2: 1.625rem;
    --step-3: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
    --step-4: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);

    --gutter: 1rem;
    --measure: 68ch;
    --radius: 6px;
}

@media (min-width: 48rem) {
    :root { --gutter: 2rem; }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --paper: #0E1726;
        --paper-2: #131F31;
        --surface: #172437;
        --ink: #E4E9EE;
        --slate: #9AA8B8;
        --rule: #26354B;
        --rule-strong: #43556E;
        --accent: #4FC1B6;
        --accent-ink: #86DAD1;
        --on-accent: #0E1726;
        --amber: #E8B04A;
        --danger: #F4877B;
        --night: #0A111D;
        --night-2: #142034;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0E1726;
    --paper-2: #131F31;
    --surface: #172437;
    --ink: #E4E9EE;
    --slate: #9AA8B8;
    --rule: #26354B;
    --rule-strong: #43556E;
    --accent: #4FC1B6;
    --accent-ink: #86DAD1;
    --on-accent: #0E1726;
    --amber: #E8B04A;
    --danger: #F4877B;
    --night: #0A111D;
    --night-2: #142034;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    font-feature-settings: 'kern', 'liga';
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 { font-size: var(--step-4); letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 1rem;
    z-index: 10;
}
.skip-link:focus { top: 0.5rem; color: var(--paper); }

.wrap {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.lead {
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--slate);
    max-width: 36em;
}

/* Étiquette de section : annonce où l'on est avant que le titre ne le dise. */
.eyebrow {
    margin: 0 0 1rem;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.on-night .eyebrow { color: var(--signal); }

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--on-accent);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }

.btn--lg { padding: 1.05rem 1.75rem; font-size: 1.125rem; }
.btn--block { width: 100%; margin-bottom: 0.75rem; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* Sur fond sombre */
.on-night .btn { background: var(--signal); border-color: var(--signal); color: #0B1A2E; }
.on-night .btn:hover { background: #8BE0D7; border-color: #8BE0D7; color: #0B1A2E; }
.on-night .btn--ghost { background: transparent; color: var(--night-text); border-color: var(--night-rule); }
.on-night .btn--ghost:hover { background: transparent; color: var(--night-text); border-color: var(--night-text); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.action-note { font-size: var(--step--1); color: var(--slate); }
.on-night .action-note { color: var(--night-muted); }

/* ---------- En-tête (collant) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(12px);
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
}

/* Sans backdrop-filter (Firefox ancien), le fond reste opaque plutôt que transparent */
@supports not (backdrop-filter: blur(1px)) {
    .site-header { background: var(--paper); }
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-block: 0.75rem;
}
@media (min-width: 64rem) { .site-header .wrap { flex-wrap: nowrap; padding-block: 1rem; } }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}
.brand:hover { color: inherit; }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }
.site-header .brand svg rect:last-child { fill: var(--accent); }

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 64rem) and (max-width: 71.99rem) { .site-nav ul { gap: 0.25rem 1.25rem; } }

.site-nav a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav .btn { padding: 0.6rem 1.05rem; white-space: nowrap; }

/* Bouton du menu et appel à l'action de la barre : seulement quand le menu est repliable (JavaScript actif) */
.header-cta { display: none; }
.nav-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--rule-strong); }
.nav-toggle svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle-close, .is-open .nav-toggle-open { display: none; }
.is-open .nav-toggle-close { display: inline; }

/* Sans JavaScript, sur petit écran : la navigation s'affiche en entier sous le logo */
@media (max-width: 63.99rem) {
    .site-header:not(.has-nav-toggle) { position: static; }
    .site-nav { width: 100%; }
    .site-nav ul { gap: 0.5rem 1.25rem; }
    .site-nav li.nav-cta { width: 100%; }
    .site-nav li.nav-cta .btn { width: 100%; }

    .has-nav-toggle .wrap { gap: 0.75rem; }
    .has-nav-toggle .brand { margin-right: auto; }
    .has-nav-toggle .header-cta { display: inline-flex; padding: 0.6rem 0.9rem; font-size: var(--step--1); white-space: nowrap; }
    .has-nav-toggle .site-nav { display: none; }
    .has-nav-toggle.is-open .site-nav {
        display: block;
        max-height: calc(100dvh - 4.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 0.5rem;
    }
    .has-nav-toggle .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .has-nav-toggle .site-nav li { border-top: 1px solid var(--rule); }
    .has-nav-toggle .site-nav a:not(.btn) {
        display: flex;
        align-items: center;
        min-height: 3.25rem;
        padding-block: 0.5rem;
        border-bottom: 0;
        font-size: var(--step-1);
    }
    .has-nav-toggle .site-nav a[aria-current="page"] { color: var(--accent); }
    /* L'appel à l'action est déjà dans la barre */
    .has-nav-toggle .site-nav li.nav-cta { display: none; }
}

@media (max-width: 63.99rem) and (prefers-reduced-motion: no-preference) {
    .has-nav-toggle.is-open .site-nav { animation: nav-in 0.18s ease-out; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-0.5rem); } }

/* Très petits écrans : l'appel à l'action passe dans le menu */
@media (max-width: 22.49rem) {
    .has-nav-toggle .header-cta { display: none; }
    .has-nav-toggle .site-nav li.nav-cta { display: block; border-top: 0; padding-top: 1rem; }
}

@media (min-width: 64rem) {
    .nav-toggle { display: none; }
}

/* Les ancres ne passent pas sous l'en-tête collant */
html { scroll-padding-top: 5.5rem; }

/* ---------- Barre d'administration (administrateur connecté uniquement) ---------- */

.admin-bar {
    background: var(--amber);
    color: #1B1406;
    font-size: var(--step--1);
}
.admin-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
    padding-block: 0.45rem;
}
.admin-bar p { margin: 0; }
.admin-bar ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.admin-bar a { color: inherit; font-weight: 600; }
.admin-bar a:hover { color: inherit; }
.admin-bar :focus-visible { outline-color: #1B1406; outline-offset: 1px; }
@media (max-width: 47.99rem) {
    .admin-bar-user { display: none; }
    .admin-bar ul { margin-left: 0; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--paper);
    padding-block: 3.5rem 4.5rem;
    overflow: hidden;
    text-align: center;
}

/* Halo vert très pâle derrière la promesse : de la lumière, pas une bande de couleur. */
.hero::before, .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(75% 65% at 50% -5%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%),
        radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
    pointer-events: none;
}

.hero > *, .page-hero > * { position: relative; }

/* Une seule colonne, centrée : le visiteur n'a qu'un point de lecture. */
.hero .wrap { max-width: 60rem; }

@media (min-width: 62rem) {
    .hero { padding-block: 6rem 5rem; }
}

/* Titre volontairement plus petit qu'avant : il tient en deux lignes, comme une phrase. */
.hero h1 {
    font-size: clamp(2.4rem, 1.5rem + 3.1vw, 3.6rem);
    margin-bottom: 1.5rem;
    max-width: 30ch;
    margin-inline: auto;
}
.hero .lead { margin-bottom: 2.25rem; max-width: 54ch; margin-inline: auto; }
.hero .actions { justify-content: center; }
@media (max-width: 29.99rem) {
    .hero .actions { flex-direction: column; align-items: stretch; }
}
.hero .action-note { display: block; margin-top: 1.25rem; }

.tick { width: 1.15rem; height: 1.15rem; flex: none; color: var(--signal); }
.tick path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Carte « Géré par Onjo » */
.plan {
    background: var(--surface);
    color: var(--ink);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
    text-align: left;
}

/* Sur fond clair, l'ombre portée devient un liseré et une ombre douce. */
.hero .plan {
    max-width: 52rem;
    margin: 3.5rem auto 0;
    border: 1px solid var(--rule);
    box-shadow: 0 24px 48px -32px rgba(22, 35, 59, 0.35);
}

.plan-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}
.plan-head h2 { font-size: var(--step-1); letter-spacing: -0.01em; flex: none; }
.plan-head span { text-align: right; }
@media (max-width: 29.99rem) {
    .plan { padding: 1.25rem; }
    .plan-head { flex-direction: column; gap: 0.2rem; }
    .plan-head span { text-align: left; }
}
.plan-head span { font-size: var(--step--1); color: var(--slate); }

.plan-list { margin: 0; padding: 0; list-style: none; }
.plan-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--rule);
    font-weight: 500;
}
.plan-list li:last-child { border-bottom: 0; }
.plan .tick { color: var(--accent); }

/* Dans le hero, la carte est large : deux colonnes au lieu d'une liste de huit lignes. */
@media (min-width: 48rem) {
    .hero .plan-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
    .hero .plan-list li:nth-last-child(2) { border-bottom: 0; }
}

.plan-proofs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: 1.1rem 0 0;
    list-style: none;
    border-top: 1px solid var(--rule);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--slate);
    text-align: center;
}

.plan-foot {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-weight: 700;
}
.plan-foot small { display: block; font-weight: 400; color: var(--slate); font-size: var(--step--1); }

/* Seul moment animé : les éléments du forfait se cochent un à un */
@media (prefers-reduced-motion: no-preference) {
    .plan li .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.35s ease-out forwards; }
    .plan li:nth-child(1) .tick path { animation-delay: 0.35s; }
    .plan li:nth-child(2) .tick path { animation-delay: 0.5s; }
    .plan li:nth-child(3) .tick path { animation-delay: 0.65s; }
    .plan li:nth-child(4) .tick path { animation-delay: 0.8s; }
    .plan li:nth-child(5) .tick path { animation-delay: 0.95s; }
    .plan li:nth-child(6) .tick path { animation-delay: 1.1s; }
    .plan li:nth-child(7) .tick path { animation-delay: 1.25s; }
    .plan li:nth-child(8) .tick path { animation-delay: 1.4s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */

.section { padding-block: 4.5rem; }
@media (min-width: 62rem) { .section { padding-block: 6.5rem; } }

.section--alt { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--night-text); }
.section--night .lead { color: var(--night-muted); }

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }

/* ---------- Questions qui dérangent ---------- */

.questions {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
}
@media (min-width: 48rem) { .questions { grid-template-columns: 1fr 1fr; } }

.questions li { background: var(--paper); padding: 1.75rem; }
.questions h3 { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.questions p { color: var(--slate); }

.pivot {
    margin-top: 2.5rem;
    font-size: var(--step-2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    max-width: 34em;
}

/* ---------- Section protection : texte + schéma des trois niveaux ---------- */

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; } }
.split h2 { margin-bottom: 1.25rem; }
.split .lead { margin-bottom: 1.5rem; }

.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram text { font-family: var(--font); }
.diagram .ring { stroke: var(--accent); stroke-width: 1.5; }
.diagram .ring--network { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke-opacity: 0.35; }
.diagram .ring--access { fill: color-mix(in srgb, var(--accent) 9%, transparent); stroke-opacity: 0.55; }
.diagram .ring--data { fill: color-mix(in srgb, var(--accent) 16%, var(--paper)); stroke-width: 2; }
.diagram .ring-label { fill: var(--ink); font-size: 15px; font-weight: 600; }
.diagram .data-icon { fill: none; stroke: var(--accent); stroke-width: 2; }
.diagram .data-label { fill: var(--ink); font-size: 16px; font-weight: 800; }
.diagram .person { fill: none; stroke: var(--ink); stroke-width: 1.75; }
.diagram .person-label { fill: var(--slate); font-size: 13px; }
.diagram .access-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }
.diagram .badge { fill: var(--paper); stroke: var(--accent); stroke-width: 1.75; }
.diagram .badge-check { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram figcaption {
    margin-top: 1rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent);
    color: var(--slate);
    font-size: var(--step--1);
    max-width: 40em;
}

/* Lignes de défense : ordonnées de l'extérieur (réseau) vers l'intérieur (données) */
.layers { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.layers li { padding: 1rem 0 1rem 1.25rem; border-left: 3px solid var(--accent); }
.layers li + li { margin-top: 0.5rem; }
.layers h3 { margin-bottom: 0.3rem; }
.layers p { color: var(--slate); }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; padding-block: 0.45rem; }
.checklist .tick { color: var(--accent); margin-top: 0.3rem; }

/* ---------- Grille des services ---------- */

.service-grid {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
}
@media (min-width: 48rem) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-grid a {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1.75rem;
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s;
}
.section--alt .service-grid a { background: var(--paper-2); }
.service-grid a:hover { background: var(--surface); }
.service-grid .name { font-size: var(--step--1); font-weight: 700; color: var(--accent); }
.service-grid h3 { font-size: var(--step-1); }
.service-grid p { color: var(--slate); flex: 1; }
.service-grid .more { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.service-grid a:hover .more { text-decoration-thickness: 2px; }

/* ---------- Comparatif ---------- */

.compare-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
/* Réponse à l'informaticien interne, qui est souvent celui qui lit ce tableau. */
.compare-note { margin-top: 1.75rem; color: var(--slate); max-width: 62em; }
.compare-note--center { margin-inline: auto; text-align: center; max-width: 46em; }

.compare {
    width: 100%;
    min-width: 44rem;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--step-0);
}

.compare th, .compare td {
    text-align: left;
    vertical-align: top;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--rule);
}
.compare thead th { font-size: var(--step-0); font-weight: 700; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 700; }
.compare td { color: var(--slate); }
.compare .col-label { width: 16%; }
.compare .us { background: var(--surface); color: var(--ink); font-weight: 600; }
.compare thead .us { background: var(--accent); color: var(--on-accent); border-bottom-color: var(--accent); border-radius: 10px 10px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 10px 10px; border-bottom: 0; }

/* Sur mobile, le tableau devient une carte par critère (plus de défilement horizontal) */
@media (max-width: 47.99rem) {
    .compare-scroll { overflow: visible; margin-inline: 0; padding-inline: 0; }
    .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
    .compare { min-width: 0; }
    .compare colgroup, .compare thead { display: none; }
    .compare tbody { display: grid; gap: 1rem; }
    .compare tr { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper); }
    .compare th, .compare td { padding: 0.85rem 1.1rem; }
    .compare tbody th { font-size: var(--step-1); border-bottom: 1px solid var(--rule); }
    .compare td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.15rem;
        font-size: var(--step--1);
        font-weight: 700;
        color: var(--ink);
    }
    .compare tbody tr:last-child .us { border-radius: 0; }
    .compare td.us { border-bottom: 0; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
    .compare td.us::before { color: var(--accent-ink); }
}

/* ---------- Démarrage (vraie séquence : numérotée) ---------- */

.steps {
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-weight: 800;
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--slate); }

/* ---------- Engagements ---------- */

.guarantees {
    display: grid;
    gap: 2rem 3rem;
    margin: 0;
}
@media (min-width: 48rem) { .guarantees { grid-template-columns: 1fr 1fr; } }
.guarantees > div { display: flex; gap: 1rem; }
.guarantees .tick { color: var(--signal); width: 1.5rem; height: 1.5rem; margin-top: 0.2rem; }
.guarantees dt { font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.35rem; }
.guarantees dd { margin: 0; color: var(--night-muted); }

/* ---------- FAQ ---------- */

.faq-layout { display: grid; gap: 2rem 5rem; }
@media (min-width: 62rem) { .faq-layout { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 1.25rem;
    font-size: var(--step-1);
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: translateY(-25%) rotate(45deg);
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq details p { color: var(--slate); max-width: 44em; padding-bottom: 1.5rem; margin: 0; }

/* ---------- Appel à l'action final ---------- */

.final-cta { background: var(--accent); color: var(--on-accent); padding-block: 4.5rem; }
@media (min-width: 62rem) { .final-cta { padding-block: 6rem; } }
.final-cta .wrap { display: grid; gap: 2.5rem; }
.final-cta .eyebrow { color: var(--on-accent); opacity: 0.75; }
.final-cta h2 { font-size: var(--step-4); letter-spacing: -0.04em; line-height: 1; max-width: 16ch; }
.final-cta a:not(.btn) { color: inherit; }

/* Les deux portes du tunnel : se situer seul, ou en parler. */
.doors { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .doors { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.final-cta--single .doors { max-width: 34rem; }
@media (min-width: 48rem) { .final-cta--single .doors { grid-template-columns: 1fr; } }
.door { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.door + .door { border-top: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent); padding-top: 2rem; }
@media (min-width: 48rem) {
    .door + .door { border-top: 0; border-left: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent); padding-top: 0; padding-left: 2.5rem; }
    .final-cta--single .door + .door { border-left: 0; padding-left: 0; }
}
.door h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
.door p { opacity: 0.92; max-width: 34em; }
.door .btn { margin-top: 0.5rem; }
.door .action-note { color: inherit; opacity: 0.8; margin-top: -0.25rem; }
/* La porte « en parler » est l'action principale : c'est elle qui porte le bouton plein. */
.final-cta .btn { background: var(--night); border-color: var(--night); color: var(--night-text); }
.final-cta .btn:hover { background: var(--night-2); border-color: var(--night-2); color: var(--night-text); }
.final-cta .btn--ghost { background: transparent; border-color: color-mix(in srgb, var(--on-accent) 55%, transparent); color: var(--on-accent); }
.final-cta .btn--ghost:hover { background: color-mix(in srgb, var(--on-accent) 12%, transparent); border-color: var(--on-accent); color: var(--on-accent); }

/* ---------- Pages intérieures ---------- */

.page-hero { position: relative; overflow: hidden; background: var(--paper); padding-block: 3.5rem 4rem; }
@media (min-width: 62rem) { .page-hero { padding-block: 5rem 5.5rem; } }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero .lead { margin-bottom: 2rem; }
.page-hero .lead:last-child { margin-bottom: 0; }
.crumbs { margin-bottom: 1.25rem; font-size: var(--step--1); }
.crumbs a { color: var(--night-muted); }

.includes {
    display: grid;
    gap: 2rem 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 48rem) { .includes { grid-template-columns: 1fr 1fr; } }
.includes li { display: flex; gap: 1rem; }
.includes .tick { color: var(--accent); width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; }
.includes h3 { margin-bottom: 0.35rem; }
.includes p { color: var(--slate); }

.pitch { font-size: var(--step-2); line-height: 1.45; letter-spacing: -0.01em; max-width: 34em; }

.pricing { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 62rem) { .pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 5rem; } }
.pricing .plan { box-shadow: 0 20px 50px -30px rgba(22, 35, 59, 0.45); border: 1px solid var(--rule); }

.legal { max-width: var(--measure); }
.legal h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.todo {
    background: color-mix(in srgb, var(--amber) 22%, transparent);
    padding: 0 0.25em;
    border-radius: 2px;
}

/* ---------- Formulaire ---------- */

.contact-grid { display: grid; gap: 3rem 4rem; }
@media (min-width: 60rem) {
    .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

.form { display: grid; gap: 1.4rem; max-width: 42rem; }
.form-pair { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) { .form-pair { grid-template-columns: 1fr 1fr; } }

.form-row { display: grid; gap: 0.4rem; align-content: start; }
.form-row > label, .form-row legend { font-weight: 600; }
.form-row > label.required::after, .form-row > legend.required::after { content: ' *'; color: var(--danger); }
.form-help { font-size: var(--step--1); color: var(--slate); }

/* Précision facultative repliée : le formulaire paraît court, le champ reste accessible. */
.form-extra > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent);
}
.form-extra > summary::-webkit-details-marker { display: none; }
.form-extra > summary::before { content: '+'; font-size: 1.1em; line-height: 1; }
.form-extra[open] > summary::before { content: '\2212'; }
.form-extra[open] > summary { margin-bottom: 1.4rem; }
.form-extra > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Téléphone : indicatif et numéro côte à côte, l'un sous l'autre si la place manque. */
.phone-field { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form .phone-field select { flex: 0 1 auto; width: auto; }
.form .phone-field input { flex: 1 1 11rem; min-width: 0; }
@media (min-width: 40rem) { .form .phone-field input { max-width: 18rem; } }

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="tel"],
.form select,
.form textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 0.7rem 0.8rem;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}
.form [aria-invalid="true"] { border-color: var(--danger); }

.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.5rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label {
    display: inline-block;
    padding: 0.55rem 1rem;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
}
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.checkbox label { font-weight: 400; }

.form-error { color: var(--danger); font-size: var(--step--1); font-weight: 500; }
.form-error ul { margin: 0; padding: 0; list-style: none; }
.form-alert {
    border-left: 3px solid var(--danger);
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.aside h2 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.aside + .aside { margin-top: 2.5rem; }
.aside .email { font-size: var(--step-1); font-weight: 600; word-break: break-all; }

/* ---------- Benchmarks ---------- */

.page-hero--compact h1 { max-width: 24ch; }

.bench-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--slate); }
.bench-meta li:not(:last-child)::after { content: "·"; margin-inline: 0.6rem; }
.on-night .bench-meta { color: var(--night-muted); }

.bench-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }

.bench-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bench-tile:hover { border-color: var(--accent); box-shadow: 0 18px 40px -30px rgba(22, 35, 59, 0.5); }
.bench-tile:focus-within { border-color: var(--accent); }
.bench-tile h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.bench-tile h3 a { color: var(--ink); text-decoration: none; }
.bench-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bench-tile h3 a:focus-visible { outline: none; }
.bench-tile h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.bench-tile > p { color: var(--slate); }
.bench-last { position: relative; z-index: 1; margin: 0; padding: 0.6rem 0.8rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: var(--step--1); }
.bench-last strong { color: var(--accent-ink); }
.bench-start { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--accent); }
.bench-start::after { content: " →"; }

.bench-icon { width: 3rem; height: 3rem; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.notice { max-width: 44rem; margin-bottom: 2rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--accent); background: var(--paper-2); color: var(--slate); font-size: var(--step--1); }

/* Questionnaire */

.quiz { max-width: 46rem; }
.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-step[hidden] { display: none; }
.quiz:not(.is-stepped) .quiz-step + .quiz-step { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.quiz-step:focus { outline: none; }
.quiz-step legend { display: block; padding: 0; margin-bottom: 1.25rem; }
.quiz-count { display: block; font-size: var(--step--1); font-weight: 700; color: var(--accent); margin-bottom: 0.4rem; }
.is-stepped .quiz-count { display: none; }
.quiz-question { display: block; font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }

.options { display: grid; gap: 0.6rem; }
.option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.15s, background-color 0.15s;
}
.option:hover { border-color: var(--ink); }
.option input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz-step .form-error { margin-top: 0.75rem; }

.quiz-progress { display: grid; gap: 0.5rem; margin-bottom: 2rem; font-size: var(--step--1); font-weight: 700; color: var(--accent); }
.quiz-bar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.quiz-bar span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) { .quiz-bar span { transition: width 0.3s ease; } }

.quiz-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.quiz-nav [data-next], .quiz-nav [data-submit] { margin-left: auto; }
.quiz-nav .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.quiz-nav .btn:disabled:hover { background: var(--accent); border-color: var(--accent); }

/* Faux messages du test d'hameçonnage */

.message { margin: 0 0 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.message-head { margin: 0; padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); font-size: var(--step--1); }
.message-head div { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.5rem; }
.message-head div + div { margin-top: 0.25rem; }
.message-head dt { color: var(--slate); }
.message-head dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.message-body { padding: 1.15rem; line-height: 1.6; }
.message--sms { max-width: 26rem; border-radius: 18px; }
.message--sms .message-head div { grid-template-columns: minmax(0, 1fr); }
.message--sms .message-head dt { display: none; }
.message--sms .message-body { margin: 1rem; padding: 0.85rem 1rem; background: var(--paper-2); border-radius: 16px 16px 16px 4px; }

/* Résultat */

.result-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .result-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }
.result-level { margin-bottom: 0.75rem; font-weight: 700; color: var(--signal); }
.result-count { color: var(--night-text); font-weight: 600; }

.score-ring { position: relative; width: 11rem; height: 11rem; }
@media (min-width: 62rem) { .score-ring { width: 13rem; height: 13rem; } }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 9; }
.score-track { stroke: var(--night-rule); }
.score-value { stroke: var(--signal); stroke-linecap: round; }
.score-number { position: absolute; inset: 0; display: grid; place-content: center; font-size: 3.25rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-align: center; }
.score-number small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--night-muted); }

.result-grid { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .result-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5rem; } }
.result-grid h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.result-sub { margin-top: 3rem; }
.result-next { margin-top: 2rem; }
.report-offer h2 { margin-bottom: 0.75rem; }
.report-offer .lead { margin-bottom: 1.75rem; }

.axis-bars { margin: 0; padding: 0; list-style: none; }
.axis-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
.axis-name { font-weight: 600; }
.axis-score { grid-row: 1; grid-column: 2; font-weight: 800; text-align: right; }
.axis-score small { font-weight: 500; color: var(--slate); }
.axis-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.axis-bar span { display: block; height: 100%; min-width: 4px; background: var(--accent); border-radius: inherit; }

.answers { margin: 0 0 1rem; padding: 0; list-style: none; }
.answers li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--rule); }
.answer-mark { font-size: var(--step--1); font-weight: 700; }
.is-ok .answer-mark { color: var(--accent); }
.is-missed .answer-mark { color: var(--slate); }

.priorities { margin: 0; padding: 0; list-style: none; counter-reset: priority; }
.priorities li { counter-increment: priority; position: relative; padding: 1.25rem 1.25rem 1.25rem 3.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.priorities li + li { margin-top: 1rem; }
.priorities li::before { content: counter(priority); position: absolute; left: 1.25rem; top: 1.2rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: var(--step--1); }
.priorities h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.priorities p { color: var(--slate); }

/* Accroche sur l'accueil */

.bench-teaser { display: grid; gap: 2rem; margin-top: 3rem; align-items: center; padding: 2rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
@media (min-width: 56rem) { .bench-teaser { grid-template-columns: minmax(0, 1fr) auto; padding: 2.5rem 3rem; gap: 3rem; } }
.bench-teaser h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.bench-teaser p { color: var(--slate); }
.bench-teaser .bench-icons { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.bench-teaser .bench-icon { width: 2.25rem; height: 2.25rem; }

/* ---------- Outils (générateur, partage chiffré) ---------- */

.tool {
    display: grid;
    gap: 2rem;
    max-width: 52rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
}
.tool--narrow { max-width: 42rem; }
.tool-result { display: grid; gap: 1rem; }
.tool-result h3 { font-size: var(--step-2); }

.tool-value {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--step-1);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}
.tool-value--link { font-size: var(--step-0); }
.tool-value:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.tool textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.tool-options { max-width: none; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.tool-panel { display: grid; gap: 1.4rem; }
.tool-panel[hidden] { display: none; }
.tool-checks { display: grid; gap: 0.6rem 1.5rem; }
@media (min-width: 40rem) { .tool-checks { grid-template-columns: 1fr 1fr; } }
.form input[type="range"] { width: 100%; accent-color: var(--accent); }

.strength { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0; font-size: var(--step--1); color: var(--slate); }
.strength strong { color: var(--ink); }
.strength-bar { position: relative; flex: 0 0 8rem; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.strength-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--fill-color, var(--rule-strong)); border-radius: inherit; transition: width 0.2s; }
.strength[data-level="weak"] { --fill: 25%; --fill-color: var(--danger); }
.strength[data-level="fair"] { --fill: 50%; --fill-color: var(--amber); }
.strength[data-level="good"] { --fill: 75%; --fill-color: var(--accent); }
.strength[data-level="strong"] { --fill: 100%; --fill-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .strength-bar::after { transition: none; } }

/* ---------- Actualités ---------- */

.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; }
.post-card:hover, .post-card:focus-within { border-color: var(--accent); }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; }
.post-card time { font-size: var(--step--1); color: var(--slate); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:focus-visible { outline: none; }
.post-card h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
.post-card p { color: var(--slate); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 3rem; color: var(--slate); }
.empty { max-width: 36rem; }
.empty h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.empty p { color: var(--slate); }

.post-title { max-width: 30ch; font-size: var(--step-3); }
.post-cover { display: block; width: 100%; max-width: 60rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 3rem; border-radius: 10px; }

.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--slate); }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--paper-2); border-radius: var(--radius); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    padding-block: 3rem 2rem;
    font-size: var(--step--1);
}

.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) {
    .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
}

.site-footer h2 { font-size: var(--step--1); font-weight: 700; letter-spacing: 0; margin-bottom: 0.75rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .brand { font-size: 1.25rem; margin-bottom: 0.75rem; }
.site-footer .baseline { color: var(--slate); max-width: 28em; }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    color: var(--slate);
}
.page-hero .lead a { color: inherit; }

/* ---------- Centralisation : tout converge vers Onjo ---------- */

.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.converge { margin: 0 auto; max-width: 34rem; }
.converge svg { display: block; width: 100%; height: auto; }
.converge text { font-family: var(--font); }

.converge-box { fill: var(--surface); stroke: var(--rule); stroke-width: 1.5; }
.converge-label { fill: var(--slate); font-size: 17px; font-weight: 500; }

.converge-link { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-opacity: 0.45; }

.converge-pin { fill: color-mix(in srgb, var(--accent) 45%, transparent); }
.converge-core {
    fill: color-mix(in srgb, var(--accent) 12%, var(--surface));
    stroke: var(--accent);
    stroke-width: 2;
}
.converge-mark { color: var(--accent); }
.converge-mark-fill { fill: var(--accent); }
.converge-name { fill: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.converge-note { fill: var(--slate); font-size: 14px; }

.converge-out { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.converge-result-box { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.converge-badge { fill: var(--accent); }
.converge-check { fill: none; stroke: var(--on-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.converge-result-title { fill: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.converge-result-note { fill: var(--slate); font-size: 14px; }

/* Apparition au défilement. Sans JavaScript (pas de classe has-reveal) ou si l'utilisateur
   réduit les animations, tout est visible d'emblée. */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal [data-reveal] .converge-item,
    .has-reveal [data-reveal] .converge-chip,
    .has-reveal [data-reveal] .converge-result { opacity: 0; }
    .has-reveal [data-reveal] .converge-link,
    .has-reveal [data-reveal] .converge-out { stroke-dasharray: 260; stroke-dashoffset: 260; }

    .has-reveal [data-reveal].is-visible .converge-item {
        animation: converge-in 0.4s ease-out forwards;
        animation-delay: calc(var(--i) * 0.08s);
    }
    .has-reveal [data-reveal].is-visible .converge-link {
        animation: converge-draw 0.5s ease-out forwards;
        animation-delay: calc(0.5s + var(--i) * 0.08s);
    }
    .has-reveal [data-reveal].is-visible .converge-chip {
        animation: converge-in 0.5s ease-out forwards;
        animation-delay: 1.05s;
    }
    .has-reveal [data-reveal].is-visible .converge-out {
        animation: converge-draw 0.3s ease-out forwards;
        animation-delay: 1.45s;
    }
    .has-reveal [data-reveal].is-visible .converge-result {
        animation: converge-in 0.45s ease-out forwards;
        animation-delay: 1.65s;
    }
}

@keyframes converge-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes converge-draw { to { stroke-dashoffset: 0; } }

.gains {
    display: grid;
    gap: 2rem;
    margin: 3.5rem 0 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 56rem) { .gains { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
/* Quatre éléments : deux lignes de deux plutôt qu'un orphelin sous trois colonnes. */
@media (min-width: 56rem) { .gains--pairs { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } }
.gains h3 { margin-bottom: 0.5rem; }
.gains p { color: var(--slate); }

/* Sur petit écran le schéma rétrécit : on agrandit ses textes dans le repère du SVG. */
@media (max-width: 40rem) {
    .converge-label { font-size: 21px; }
    .converge-note, .converge-result-note { font-size: 17px; }
    .converge-result-title { font-size: 24px; }
}

.pivot--center { max-width: 30em; margin-inline: auto; text-align: center; }

/* ---------- Bandeau de mesure d'audience ---------- */

/* Visible tant qu'aucun choix n'a été fait. Refuser et accepter ont le même poids :
   un bouton « refuser » discret vicierait le consentement. */
.consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    background: var(--night);
    color: var(--night-text);
    border-top: 3px solid var(--accent);
    box-shadow: 0 -12px 40px -20px rgba(0, 0, 0, 0.6);
}
.consent .wrap {
    display: grid;
    gap: 1.25rem 3rem;
    padding-block: 1.5rem;
}
@media (min-width: 56rem) {
    .consent .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.consent h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.consent p { font-size: var(--step--1); color: var(--night-muted); max-width: 70ch; margin: 0; }
.consent a { color: var(--signal); }
.consent a:hover { color: var(--night-text); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent-actions .btn { flex: 1 0 auto; justify-content: center; }
.consent-actions .btn:not(.btn--ghost) { background: var(--signal); border-color: var(--signal); color: #0B1A2E; }
.consent-actions .btn:not(.btn--ghost):hover { background: #8BE0D7; border-color: #8BE0D7; color: #0B1A2E; }
.consent-actions .btn--ghost { background: transparent; color: var(--night-text); border-color: var(--night-rule); }
.consent-actions .btn--ghost:hover { background: transparent; color: var(--night-text); border-color: var(--night-text); }
