/* ═══════════════════════════════════════════════════════════════════════════
   Nova Ikasso — pages publiques
   Feuille de style unique, partagée par l'accueil et les six documents.

   Sommaire
     1.  Jetons de couleur, de typographie et d'espacement
     2.  Base et réinitialisation
     3.  En-tête collant
     4.  Héros (accueil et pages de document)
     5.  Boutons
     6.  Mise en page « document » : sommaire collant + prose
     7.  Typographie du corps de texte
     8.  Tableaux
     9.  Encarts
     10. Cartes et grilles de l'accueil
     11. Motifs hérités des pages d'origine (badges, étiquettes, étapes…)
     12. Bandeau d'appel
     13. Pied de page
     14. Retour en haut
     15. Adaptation aux écrans
     16. Accessibilité — animations réduites
     17. Impression
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── 1. Jetons ───────────────────────────────────────────────────────────── */

:root {
    --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont,
                    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    /* Marque — le navy est celui de l'application, l'or en est l'accent. */
    --navy-900: #071331;
    --navy-800: #0A1838;
    --navy-700: #0D1F4E;
    --navy-600: #14306F;
    --navy-500: #1D4293;
    --gold-700: #8C5F0B;
    --gold-600: #A97511;
    --gold-500: #C8951F;
    --gold-300: #EFC97D;
    --gold-200: #F6E4B8;
    --gold-100: #FBF2DC;

    --grad-navy: linear-gradient(155deg, #0D1F4E 0%, #102756 42%, #071331 100%);
    --grad-gold: linear-gradient(90deg, transparent 0%, var(--gold-500) 22%, var(--gold-300) 50%, var(--gold-500) 78%, transparent 100%);

    /* Neutres, légèrement biaisés vers le bleu de la marque. */
    --bg:        #F4F7FC;
    --surface:   #FFFFFF;
    --surface-2: #EEF3FA;
    --surface-3: #E3EBF6;
    --border:    #DFE7F2;
    --border-2:  #C7D5E8;

    --ink:   #0A1526;
    --ink-2: #32415C;
    --ink-3: #61708C;
    --ink-4: #90A0B8;

    --link: var(--navy-600);
    --brand-soft: #E9EFFB;

    --ok:      #076B4B;
    --ok-soft: #E6F5EE;
    --ok-line: #A8DCC5;
    --warn:      #8C5308;
    --warn-soft: #FDF3E3;
    --warn-line: #EFC996;
    --bad:      #A32320;
    --bad-soft: #FBECEB;
    --bad-line: #EFB9B6;

    --shadow-sm: 0 1px 2px rgba(10, 21, 38, .05);
    --shadow-md: 0 12px 30px -16px rgba(10, 21, 38, .26), 0 2px 6px rgba(10, 21, 38, .04);
    --shadow-lg: 0 34px 66px -34px rgba(7, 19, 49, .42), 0 4px 14px rgba(10, 21, 38, .06);
    --shadow-gold: 0 14px 28px -14px rgba(169, 117, 17, .6);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --wrap: 1180px;
    --prose: 74ch;
    --header-h: 66px;
    --header-total: calc(var(--header-h) + env(safe-area-inset-top));
    --gutter: clamp(18px, 4vw, 40px);

    --header-bg: rgba(255, 255, 255, .78);
    --hero-tint: linear-gradient(180deg, #E8EFFA 0%, var(--bg) 100%);
    --code-bg: var(--surface-2);
    --scroll-shade: rgba(10, 21, 38, .13);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:        #050912;
        --surface:   #0C1424;
        --surface-2: #121C30;
        --surface-3: #18243C;
        --border:    #1E2B44;
        --border-2:  #2B3A57;

        --ink:   #EEF3FB;
        --ink-2: #BCC9DE;
        --ink-3: #8B9BB6;
        --ink-4: #64748F;

        --link: #8FB4F5;
        --brand-soft: #10203F;

        --ok:      #57C79B;
        --ok-soft: #0A2418;
        --ok-line: #1C4A36;
        --warn:      #E8B267;
        --warn-soft: #2A1D0A;
        --warn-line: #57401A;
        --bad:      #F0918C;
        --bad-soft: #2A1211;
        --bad-line: #572524;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-md: 0 12px 30px -16px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .4);
        --shadow-lg: 0 34px 66px -34px rgba(0, 0, 0, .9), 0 4px 14px rgba(0, 0, 0, .5);

        --header-bg: rgba(12, 20, 36, .8);
        --hero-tint: linear-gradient(180deg, #0B1526 0%, var(--bg) 100%);
        --scroll-shade: rgba(0, 0, 0, .5);

        color-scheme: dark;
    }
}


/* ── 2. Base ─────────────────────────────────────────────────────────────── */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-total) + 20px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.16;
    letter-spacing: -.018em;
    text-wrap: balance;
    margin: 0;
}

p { margin: 0; }

code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    padding: .12em .42em;
    color: var(--ink);
    word-break: break-word;
}

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

.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;
}

.skip {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 100;
    background: var(--navy-700);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top .18s ease;
}
.skip:focus { top: 12px; text-decoration: none; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gold-600);
}


/* ── 3. En-tête ──────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(170%) blur(14px);
    -webkit-backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid transparent;
    padding-top: env(safe-area-inset-top);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 var(--border), 0 10px 24px -22px var(--scroll-shade);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.02em;
    color: var(--ink);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 34px; height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--grad-navy);
    color: var(--gold-300);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, .09);
}

.brand-text small {
    display: block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: -2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 550;
    color: var(--ink-2);
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] {
    color: var(--navy-600);
    background: var(--brand-soft);
}

.site-nav .header-cta {
    display: none;
    margin-left: 10px;
    padding: 9px 16px;
    font-size: 13.5px;
}

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    position: relative;
    display: block;
    width: 17px; height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s ease, background-color .22s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 17px; height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s ease;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }


/* ── 4. Héros ────────────────────────────────────────────────────────────── */

/* Héros de document — bandeau navy, sobre, avec un filet doré. */
.page-hero {
    position: relative;
    background: var(--grad-navy);
    color: #DCE5F5;
    padding: clamp(38px, 6vw, 68px) 0 clamp(34px, 5vw, 56px);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(200, 149, 31, .17) 0%, transparent 62%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--grad-gold);
    opacity: .85;
}
.page-hero > .wrap { position: relative; }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8FA4C8;
    margin-bottom: 18px;
}
.crumbs a { color: #B9C9E6; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: #52658C; }

.page-hero h1 {
    color: #fff;
    font-size: clamp(30px, 5.2vw, 50px);
    font-weight: 700;
    letter-spacing: -.028em;
    max-width: 20ch;
}

.lede {
    margin-top: 14px;
    max-width: 62ch;
    font-size: clamp(15.5px, 1.6vw, 18px);
    line-height: 1.6;
    color: #B4C4E0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .17);
    color: #D6E1F4;
    white-space: nowrap;
}
.pill-accent {
    background: rgba(200, 149, 31, .17);
    border-color: rgba(200, 149, 31, .42);
    color: #F0D69A;
}

/* Héros d'accueil */
.hero {
    position: relative;
    background: var(--grad-navy);
    color: #C9D6EC;
    padding: clamp(56px, 9vw, 116px) 0 clamp(52px, 8vw, 104px);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -30% -20% auto -10%;
    height: 780px;
    background:
        radial-gradient(46% 60% at 78% 18%, rgba(200, 149, 31, .20) 0%, transparent 60%),
        radial-gradient(40% 55% at 12% 0%, rgba(29, 66, 147, .55) 0%, transparent 62%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--grad-gold);
}
.hero-inner { position: relative; max-width: 780px; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 {
    margin-top: 16px;
    color: #fff;
    font-size: clamp(34px, 6.4vw, 66px);
    font-weight: 700;
    letter-spacing: -.032em;
    line-height: 1.06;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(96deg, var(--gold-300) 0%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lede { color: #AEC0DE; font-size: clamp(16px, 1.9vw, 19.5px); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 48px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.hero-stat {
    background: rgba(7, 19, 49, .55);
    padding: 20px 22px;
}
.hero-stat b {
    display: block;
    font-family: var(--font-display);
    line-height: 1.18;
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}
.hero-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #92A6C9;
}


/* ── 5. Boutons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: .005em;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease,
                background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(140deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: #22160A;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 18px 34px -14px rgba(169, 117, 17, .74); }

.btn-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .26);
    color: #EAF1FC;
}
.btn-light:hover { background: rgba(255, 255, 255, .15); }

.btn-ghost {
    background: var(--surface);
    border-color: var(--border-2);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--navy-500); color: var(--navy-600); }


/* ── 6. Mise en page « document » ────────────────────────────────────────── */

.doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: clamp(32px, 4.5vw, 56px);
    padding-bottom: clamp(48px, 7vw, 88px);
}

.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.toc-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: 12px;
}
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.toc-list a {
    display: block;
    position: relative;
    padding: 7px 10px 7px 14px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    line-height: 1.42;
    color: var(--ink-3);
    transition: background-color .15s ease, color .15s ease;
}
.toc-list a::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 2px; height: 0;
    border-radius: 2px;
    background: var(--gold-500);
    transform: translateY(-50%);
    transition: height .18s ease;
}
.toc-list a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.toc-list a[aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
    background: var(--surface-2);
}
.toc-list a[aria-current="true"]::before { height: 60%; }


/* ── 7. Typographie du corps de texte ────────────────────────────────────── */

.prose { max-width: var(--prose); }
.prose > * + * { margin-top: 16px; }

.prose h2 {
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: clamp(21px, 2.6vw, 27px);
    font-weight: 700;
    letter-spacing: -.022em;
    scroll-margin-top: calc(var(--header-total) + 20px);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
    margin-top: 32px;
    font-size: clamp(16.5px, 1.9vw, 18.5px);
    font-weight: 650;
    letter-spacing: -.012em;
    color: var(--ink);
}

.prose h4 {
    margin-top: 22px;
    font-size: 15px;
    font-weight: 650;
}

.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 640; }

.prose ul,
.prose ol {
    margin-top: 14px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: var(--ink-2);
}
.prose li { position: relative; padding-left: 26px; }
.prose ul > li::before {
    content: '';
    position: absolute;
    left: 8px; top: .66em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold-500);
}
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
    content: counter(li) '.';
    position: absolute;
    left: 0; top: 0;
    width: 20px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    color: var(--gold-600);
}
.prose li ul,
.prose li ol { margin-top: 8px; }

.prose hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.prose blockquote {
    margin: 22px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--gold-500);
    color: var(--ink-2);
    font-style: italic;
}

.updated {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--ink-4);
}


/* ── 8. Tableaux ─────────────────────────────────────────────────────────── */

.table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    text-align: left;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-2);
    vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tbody td:first-child { color: var(--ink); font-weight: 550; }

.cell-note { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-4); }


/* ── 9. Encarts ──────────────────────────────────────────────────────────── */

.callout {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy-500);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.callout-body > * + * { margin-top: 8px; }
.callout-title {
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -.01em;
}
.callout p { font-size: 14.5px; color: var(--ink-2); }

.callout-warn {
    border-left-color: var(--warn);
    background: var(--warn-soft);
    border-color: var(--warn-line);
}
.callout-warn .callout-title { color: var(--warn); }

.callout-ok {
    border-left-color: var(--ok);
    background: var(--ok-soft);
    border-color: var(--ok-line);
}
.callout-ok .callout-title { color: var(--ok); }

.callout-bad {
    border-left-color: var(--bad);
    background: var(--bad-soft);
    border-color: var(--bad-line);
}
.callout-bad .callout-title { color: var(--bad); }

/* Encart d'identité (éditeur, application) */
.callout-id { border-left-color: var(--gold-500); background: var(--surface); }
.callout-id dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 22px;
    margin: 0;
    font-size: 14.5px;
}
.callout-id dt { color: var(--ink-4); font-weight: 640; }
.callout-id dd { margin: 0; color: var(--ink-2); }


/* ── 10. Sections et cartes (accueil) ────────────────────────────────────── */

.band { padding: clamp(52px, 8vw, 96px) 0; }
.band-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 {
    margin-top: 12px;
    font-size: clamp(25px, 3.6vw, 38px);
    font-weight: 700;
    letter-spacing: -.026em;
}
.section-head p { margin-top: 12px; color: var(--ink-3); font-size: 16.5px; }

.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card > * + * { margin-top: 10px; }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.014em; }
.card p { font-size: 14.5px; color: var(--ink-3); }

a.card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--navy-600);
    font-size: 19px;
    margin-bottom: 4px;
}
.card-icon.is-gold { background: var(--gold-100); color: var(--gold-700); }

.card-link {
    margin-top: auto;
    padding-top: 14px;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--navy-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
a.card:hover .card-link { color: var(--gold-600); }
a.card:hover .card-link .arrow { transform: translateX(3px); }
.card-link .arrow { transition: transform .18s ease; }


/* ── 11. Motifs hérités des pages d'origine ──────────────────────────────── */

/* Pastilles d'état */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .01em;
    background: var(--ok-soft);
    color: var(--ok);
    border: 1px solid var(--ok-line);
}
.badge-blue { background: var(--brand-soft); color: var(--navy-600); border-color: var(--border-2); }
.badge-red  { background: var(--bad-soft);  color: var(--bad);       border-color: var(--bad-line); }

/* Étiquettes de déclaration (App Store / Play) */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    margin: 4px 4px 0 0;
    border-radius: var(--r-xs);
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .01em;
    border: 1px solid transparent;
}
.tag-linked     { background: var(--bad-soft);  color: var(--bad);  border-color: var(--bad-line); }
.tag-notlinked  { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.tag-notracking { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.tag-tracking   { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }

/* Cellules de tableau : oui / non / conservé / supprimé */
.check, .yes { color: var(--ok);  font-weight: 700; }
.cross       { color: var(--bad); font-weight: 700; }
.no          { color: var(--ink-4); }
.del  { color: var(--bad);  font-weight: 650; white-space: nowrap; }
.keep { color: var(--warn); font-weight: 650; white-space: nowrap; }

/* Liste « type de donnée » (déclaration App Store) */
.data-list {
    margin-top: 20px;
    padding: 2px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.data-list .data-type:last-child { border-bottom: none; }

.data-type {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.data-type:last-child { border-bottom: none; padding-bottom: 0; }
.dt-icon {
    width: 40px; height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.dt-blue   { background: var(--brand-soft); }
.dt-green  { background: var(--ok-soft); }
.dt-orange { background: var(--warn-soft); }
.dt-purple { background: #F1EEFC; }
.dt-info { min-width: 0; }
.dt-info h4 { font-size: 15px; font-weight: 650; color: var(--ink); margin: 0 0 3px; }
.dt-info p  { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* Cartes de contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 22px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.contact-label { font-family: var(--font-display); font-weight: 650; font-size: 15px; color: var(--ink); }
.contact-value { font-size: 14px; color: var(--navy-600); word-break: break-word; }
.contact-value a { color: inherit; }

/* Étapes numérotées */
.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.prose .steps > li { counter-increment: step; position: relative; padding-left: 46px; }
.prose .steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: -1px;
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--grad-navy);
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 15.5px;
    letter-spacing: -.012em;
    color: var(--ink);
    margin-bottom: 6px;
}
.faq-a { font-size: 14.5px; color: var(--ink-2); }


/* ── 12. Bandeau d'appel ─────────────────────────────────────────────────── */

.cta-band {
    position: relative;
    margin: 0;
    padding: clamp(44px, 7vw, 76px) 0;
    background: var(--grad-navy);
    color: #B7C7E2;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: auto -10% -60% auto;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(200, 149, 31, .18) 0%, transparent 62%);
    pointer-events: none;
}
.cta-band > .wrap { position: relative; max-width: 760px; }
.cta-band h2 {
    color: #fff;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 700;
    letter-spacing: -.024em;
}
.cta-band p { margin-top: 12px; color: #A7BAD8; font-size: 16px; }
.cta-band .hero-actions { margin-top: 26px; }


/* ── 13. Pied de page ────────────────────────────────────────────────────── */

.site-footer {
    background: var(--navy-900);
    color: #8DA0C2;
    padding: clamp(44px, 6vw, 66px) 0 0;
    font-size: 14px;
    border-top: 2px solid transparent;
    border-image: var(--grad-gold) 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-bottom: 38px;
}
.footer-about { max-width: 40ch; }
.footer-about .brand { color: #fff; margin-bottom: 14px; }
.footer-about .brand-text small { color: #7488AC; }
.footer-about p { color: #8DA0C2; line-height: 1.6; }
.footer-col h3 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #6D82A8;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #B4C4DE; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    font-size: 13px;
    color: #6D82A8;
}


/* ── 14. Retour en haut ──────────────────────────────────────────────────── */

.to-top {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 40;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--navy-600); border-color: var(--navy-500); }


/* ── 15. Adaptation aux écrans ───────────────────────────────────────────── */

/* < 768 px — téléphone : navigation repliée dans un panneau */
@media (max-width: 767.98px) {
    .nav-toggle { display: inline-flex; }
    .site-nav .header-cta { display: inline-flex; margin: 8px 0 0; justify-content: center; }
    .site-nav {
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px var(--gutter) calc(16px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100dvh - var(--header-total));
        overflow-y: auto;
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 14px; font-size: 15px; }

    .hero-stats { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .callout { flex-direction: column; gap: 10px; }
    .callout-id dl { grid-template-columns: 1fr; gap: 2px 0; }
    .callout-id dd { margin-bottom: 10px; }
    .callout-id dd:last-child { margin-bottom: 0; }
    table { font-size: 13.5px; }
    thead th, tbody td { padding: 11px 13px; }
}

/* ≥ 600 px — grandes tablettes portrait : contacts et cartes sur deux colonnes */
@media (min-width: 600px) {
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ≥ 768 px — tablette : barre de navigation complète */
@media (min-width: 768px) {
    .site-nav { display: flex !important; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
    .footer-grid > * { min-width: 0; }
}

/* ≥ 1024 px — tablette paysage et ordinateur : sommaire collant en colonne */
@media (min-width: 1024px) {
    .doc {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 56px;
    }
    .toc {
        position: sticky;
        top: calc(var(--header-total) + 24px);
        max-height: calc(100dvh - var(--header-total) - 48px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .site-nav .header-cta { display: inline-flex; }
    .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .to-top { right: 28px; bottom: 28px; }
}

/* ≥ 1180 px — grand écran : sommaire plus large, grilles à trois colonnes */
@media (min-width: 1180px) {
    .doc { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ── 16. Accessibilité — animations réduites ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .btn:hover, a.card:hover { transform: none; }
}


/* ── 17. Impression ──────────────────────────────────────────────────────── */

@media print {
    .site-header, .toc, .to-top, .cta-band, .nav-toggle, .crumbs, .skip { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .page-hero {
        background: none !important;
        color: #000;
        padding: 0 0 18px;
        border-bottom: 2px solid #000;
    }
    .page-hero::before, .page-hero::after { display: none; }
    .page-hero h1 { color: #000; }
    .lede, .pill { color: #333; }
    .pill { border-color: #999; background: none; }
    .doc { display: block; padding-top: 20px; }
    .prose { max-width: none; }
    .prose h2 { page-break-after: avoid; break-after: avoid; }
    .table-wrap, .callout, .faq, .card, .contact-card { box-shadow: none; break-inside: avoid; }
    table { min-width: 0; }
    thead th { position: static; background: #eee !important; color: #000; }
    a { color: #000; text-decoration: underline; }
    .site-footer { background: none; color: #333; border: 0; padding-top: 18px; border-top: 1px solid #999; }
    .footer-col a, .footer-about p, .footer-bottom { color: #333; }
}
