/* ===========================================================================
   Safran Grec — système visuel
   Crème, rouge safran profond, or discret. Serif claire pour le display,
   sans-serif pour la lecture. Aucune dépendance, un seul fichier.
   =========================================================================== */

/* --- Jetons -------------------------------------------------------------- */

:root {
    /* Papier */
    --paper:      #FDFCF8;
    --paper-warm: #F7F1E6;
    --paper-deep: #F0E7D6;
    --line:       #E4D9C6;
    --line-soft:  #EFE7D9;

    /* Encre */
    --ink:        #1F1713;
    --ink-2:      #4A3C34;
    --ink-3:      #857567;

    /* Safran */
    --safran:      #A8341A;
    --safran-deep: #6E1E0D;
    --stigma:      #DD5E1B;
    --gold:        #B8942F;
    --gold-light:  #DCC583;
    --gold-pale:   #F2E8CD;

    /* Typographie */
    --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
    --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
    --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
    --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
    --step-3:  clamp(1.95rem, 1.6rem + 1.75vw, 3.1rem);
    --step-4:  clamp(2.5rem, 1.85rem + 3.2vw, 4.6rem);

    /* Rythme */
    --space-xs: .5rem;
    --space-s:  1rem;
    --space-m:  2rem;
    --space-l:  clamp(3rem, 6vw, 5rem);
    --space-xl: clamp(4.5rem, 10vw, 9rem);

    --wrap: 1180px;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --measure: 68ch;
    --radius: 2px;

    --shadow-s: 0 1px 2px rgba(31, 23, 19, .05);
    --shadow-m: 0 18px 40px -26px rgba(31, 23, 19, .38);
    --shadow-l: 0 40px 80px -48px rgba(31, 23, 19, .45);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.68;
    font-feature-settings: "kern", "liga", "calt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Grain : donne au fond crème une matière de papier plutôt qu'un aplat. */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 2; }

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

/* --- Typographie --------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0 0 .45em;
    color: var(--ink);
    text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 400; letter-spacing: -.025em; }
h2 { font-size: var(--step-3); letter-spacing: -.02em; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.005em; }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--safran-deep); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { color: var(--safran); }

strong { font-weight: 600; }

::selection { background: var(--gold-pale); color: var(--ink); }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: var(--paper);
    padding: .85rem 1.4rem; font-size: var(--step--1);
}
.skip-link:focus { left: 0; }

/* --- Structure ----------------------------------------------------------- */

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

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.section--cream { background: var(--paper-warm); }
.section--deep { background: var(--paper-deep); }

.section--ink {
    background: var(--ink);
    color: var(--paper-warm);
    background-image:
        radial-gradient(60% 80% at 82% 8%, rgba(221, 94, 27, .16), transparent 62%),
        radial-gradient(50% 70% at 10% 95%, rgba(184, 148, 47, .13), transparent 60%);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(247, 241, 230, .8); }
.section--ink a { color: var(--gold-light); }

.rule {
    border: 0; height: 1px; margin: var(--space-l) 0;
    background: linear-gradient(90deg, var(--gold) 0, var(--line) 38%, transparent 100%);
}

/* --- Éléments de marque --------------------------------------------------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .7rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--safran);
    margin-bottom: 1.35rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); flex: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.section--ink .eyebrow { color: var(--gold-light); }

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 60ch;
}
.section--ink .lead { color: rgba(247, 241, 230, .84); }

.threads { display: flex; gap: 5px; align-items: flex-end; height: 24px; }
.threads span {
    width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, var(--stigma), var(--safran-deep));
}
.threads span:nth-child(1) { height: 58%; }
.threads span:nth-child(2) { height: 100%; }
.threads span:nth-child(3) { height: 74%; }
.threads span:nth-child(4) { height: 92%; }
.threads span:nth-child(5) { height: 52%; }

/* --- Apparition au défilement --------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }

/* --- En-tête -------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(253, 252, 248, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header::before {
    content: ""; display: block; height: 2px;
    background: linear-gradient(90deg, var(--safran-deep), var(--stigma) 32%, var(--gold) 68%, var(--safran-deep));
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); background: rgba(253, 252, 248, .95); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: clamp(1rem, 2.4vw, 2.4rem);
    min-height: 78px;
    transition: min-height .3s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner { min-height: 66px; }

.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.logo svg { width: 31px; height: 31px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.02; }
.logo-name {
    font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
    color: var(--ink); letter-spacing: -.01em;
}
.logo-sub {
    font-size: .58rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--ink-3); font-weight: 600; margin-top: .15rem;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.75rem); }
.nav a {
    font-size: .92rem; color: var(--ink-2);
    text-decoration: none; padding-block: .4rem; position: relative;
    white-space: nowrap;
    transition: color .2s var(--ease);
}
.nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 1px; background: var(--gold);
    transition: right .3s var(--ease);
}
.nav a:hover { color: var(--safran-deep); }
.nav a:hover::after { right: 0; }
.nav a[aria-current="page"] { color: var(--safran-deep); }
.nav a[aria-current="page"]::after { right: 0; }
.nav .btn::after { display: none; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--line);
    border-radius: var(--radius); padding: .55rem .72rem; cursor: pointer; color: var(--ink);
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .92rem 1.75rem;
    font-family: var(--sans); font-size: .92rem; font-weight: 600;
    letter-spacing: .015em; line-height: 1.2;
    border-radius: var(--radius); border: 1px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--safran-deep); color: var(--paper);
    box-shadow: 0 10px 24px -14px rgba(110, 30, 13, .8);
}
.btn--primary:hover { background: var(--safran); color: var(--paper); box-shadow: 0 16px 30px -14px rgba(168, 52, 26, .75); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--safran-deep); background: rgba(184, 148, 47, .05); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }

.section--ink .btn--ghost { color: var(--paper-warm); border-color: rgba(220, 197, 131, .32); }
.section--ink .btn--ghost:hover { color: var(--gold-light); border-color: var(--gold-light); background: rgba(220, 197, 131, .08); }

.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: var(--space-m); }

.arrow-link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .89rem; font-weight: 600; text-decoration: none;
    color: var(--safran-deep);
}
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* --- Héros ---------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 7.5rem) var(--space-xl);
    background:
        radial-gradient(68% 88% at 80% 6%, rgba(221, 94, 27, .13), transparent 60%),
        radial-gradient(52% 66% at 4% 92%, rgba(184, 148, 47, .12), transparent 58%),
        var(--paper);
}
.hero-grid {
    display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; max-width: 440px; margin-inline: auto; }

.hero-proof {
    margin-top: var(--space-m);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    background: rgba(255, 255, 255, .58);
    border-radius: var(--radius);
    font-size: .93rem; color: var(--ink-2);
    max-width: 56ch;
}
.hero-proof strong { color: var(--ink); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.trust-strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust-item {
    padding: 1.6rem clamp(1rem, 2vw, 1.8rem);
    border-left: 1px solid var(--line);
    display: flex; flex-direction: column; gap: .3rem;
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item dt {
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-3); font-weight: 600;
}
.trust-item dd {
    margin: 0; font-family: var(--serif); font-size: 1.4rem;
    color: var(--safran-deep); line-height: 1.2;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

/* --- Badges --------------------------------------------------------------- */

.badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.badge {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem .85rem;
    font-size: .69rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    border-radius: 999px; border: 1px solid;
}
.badge--iso     { color: var(--safran-deep); border-color: rgba(168, 52, 26, .28); background: rgba(168, 52, 26, .06); }
.badge--pdo     { color: #6A5310; border-color: rgba(184, 148, 47, .42); background: rgba(184, 148, 47, .11); }
.badge--batch   { color: var(--ink-2); border-color: var(--line); background: var(--paper-warm); }
.badge--example { color: #7A5C00; border-color: #D9B84A; background: #FCF4DA; text-transform: none; letter-spacing: .02em; }

/* --- Grilles et cartes ---------------------------------------------------- */

.grid { display: grid; gap: clamp(1.25rem, 2.2vw, 1.85rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--packs { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

.split {
    display: grid; gap: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.split--wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split--center { align-items: center; }

.card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 2.6vw, 2.15rem);
    box-shadow: var(--shadow-s);
    display: flex; flex-direction: column; gap: .65rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
a.card { text-decoration: none; color: inherit; }
.card:hover { border-color: var(--line); box-shadow: var(--shadow-m); transform: translateY(-3px); }
.card h3 { margin-bottom: .1em; }
.card p { font-size: .95rem; color: var(--ink-2); }
.card--quiet { background: var(--paper-warm); box-shadow: none; border-color: var(--line); }
.card--quiet:hover { transform: none; box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-s); }

.card-number {
    font-family: var(--serif); font-size: 2.4rem; line-height: 1;
    color: var(--gold); margin-bottom: .35rem; font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    letter-spacing: .04em;
}

.pack {
    text-align: center; padding: 2rem 1.25rem 1.7rem;
    border: 1px solid var(--line-soft); background: #fff;
    border-radius: var(--radius); text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pack:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.pack-size {
    font-family: var(--serif); font-size: 2.5rem; color: var(--safran-deep);
    line-height: 1; font-weight: 400;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
.pack-note { font-size: .84rem; color: var(--ink-3); margin-top: .55rem; min-height: 3em; line-height: 1.5; }
.pack-cta {
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); margin-top: .85rem;
}

/* --- Tableau d'analyse ---------------------------------------------------- */

.analysis {
    width: 100%; border-collapse: collapse; margin: var(--space-s) 0 var(--space-m);
    font-size: .94rem; background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-s);
}
.analysis caption {
    caption-side: top; text-align: left; padding-bottom: .85rem;
    font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
    font-weight: 600;
}
.analysis th, .analysis td { padding: .95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.analysis th { font-weight: 500; color: var(--ink-2); width: 48%; font-size: .9rem; }
.analysis th .hint { display: block; font-size: .76rem; color: var(--ink-3); font-weight: 400; }
.analysis td { font-variant-numeric: tabular-nums; font-weight: 500; }
.analysis tr:last-child th, .analysis tr:last-child td { border-bottom: 0; }
.analysis td[data-empty="1"] { color: var(--ink-3); font-weight: 400; }
.analysis thead th { background: var(--paper-warm); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* --- Listes --------------------------------------------------------------- */

.checklist { list-style: none; padding: 0; margin: var(--space-s) 0; display: grid; gap: 1rem; }
.checklist li { position: relative; padding-left: 2.1rem; color: var(--ink-2); max-width: var(--measure); }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .68em;
    width: 12px; height: 2px; background: var(--gold);
}
.checklist strong { color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--space-m) 0; display: grid; gap: 1.85rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: -.1em;
    font-family: var(--serif); font-size: 1.65rem; color: var(--gold); font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .25em; }
.steps p { font-size: .95rem; color: var(--ink-2); }

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

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 1.45rem 3rem 1.45rem 0;
    font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
    position: relative; color: var(--ink); transition: color .2s var(--ease);
}
.faq-item summary:hover { color: var(--safran-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; position: absolute; right: .5rem; top: 50%;
    width: 11px; height: 11px;
    border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item .faq-body { padding-bottom: 1.5rem; color: var(--ink-2); max-width: var(--measure); }

/* --- Formulaires ---------------------------------------------------------- */

.form { display: grid; gap: 1.3rem; }
.form-row { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field .hint { font-size: .79rem; color: var(--ink-3); line-height: 1.45; }

.field input, .field select, .field textarea {
    font-family: var(--sans); font-size: 1rem; color: var(--ink);
    padding: .82rem .95rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 148, 47, .16);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--safran); }
.field .error { font-size: .83rem; color: var(--safran-deep); font-weight: 500; }

.field--check { flex-direction: row; align-items: flex-start; gap: .75rem; }
.field--check input { width: auto; margin-top: .32rem; accent-color: var(--safran-deep); }
.field--check label { font-weight: 400; font-size: .89rem; color: var(--ink-2); line-height: 1.55; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1.05rem 1.3rem; border-radius: var(--radius); border: 1px solid; font-size: .93rem; }
.alert--error { background: #FDF1ED; border-color: rgba(168, 52, 26, .32); color: var(--safran-deep); }
.alert--info  { background: var(--paper-warm); border-color: var(--line); color: var(--ink-2); }

.form-panel {
    background: #fff; border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.8rem);
    box-shadow: var(--shadow-l);
}

/* --- Lots ----------------------------------------------------------------- */

.batch-card {
    border: 1px solid var(--line-soft); background: #fff;
    border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.15rem);
    display: grid; gap: .9rem; box-shadow: var(--shadow-s);
}
.batch-card--empty { background: var(--paper-warm); border-style: dashed; text-align: center; box-shadow: none; }
.batch-card--empty p { margin-inline: auto; }
.batch-meta { font-size: .88rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 1.3rem; }
.batch-meta strong { color: var(--ink-2); font-weight: 600; }

/* --- Bandeau d'appel ------------------------------------------------------ */

.cta-band {
    background: var(--ink); color: var(--paper-warm);
    border-radius: var(--radius);
    padding: clamp(2.2rem, 5vw, 3.6rem);
    background-image:
        radial-gradient(60% 90% at 88% 10%, rgba(221, 94, 27, .2), transparent 62%),
        radial-gradient(45% 70% at 6% 95%, rgba(184, 148, 47, .15), transparent 60%);
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(247, 241, 230, .8); }
.cta-band .btn--ghost { color: var(--paper-warm); border-color: rgba(220, 197, 131, .32); }
.cta-band .btn--ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* --- Contenu rédactionnel -------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-l); }
.prose h3 { margin-top: var(--space-m); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.35rem; margin-block: 1.1em; }
.prose li { margin-bottom: .55rem; }
.prose blockquote {
    margin: var(--space-m) 0; padding: .4rem 0 .4rem 1.8rem;
    border-left: 2px solid var(--gold); color: var(--ink-2); font-style: italic;
    font-family: var(--serif); font-size: 1.28rem; line-height: 1.5;
}
.prose blockquote p { max-width: none; }

.note {
    font-size: .87rem; color: var(--ink-3);
    border-top: 1px solid var(--line-soft); padding-top: 1.1rem; margin-top: var(--space-m);
    max-width: var(--measure);
}

.todo {
    display: inline-block; padding: .12rem .5rem; border-radius: 2px;
    background: #FCF4DA; color: #7A5C00; border: 1px dashed #D9B84A;
    font-size: .82em; font-weight: 600;
}

.kicker-stat { display: grid; gap: .25rem; padding-block: .4rem; }
.kicker-stat dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.kicker-stat dd {
    margin: 0; font-family: var(--serif); font-size: 1.85rem;
    color: var(--safran-deep); line-height: 1.15;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
.section--ink .kicker-stat dd { color: var(--gold-light); }
.section--ink .kicker-stat dt { color: rgba(247, 241, 230, .6); }

.related {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: var(--space-m);
}
.related a {
    display: block; padding: 1.15rem 1.35rem;
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    background: #fff; text-decoration: none; color: var(--ink);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.related a:hover { border-color: var(--gold); transform: translateY(-2px); }
.related span {
    display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: .35rem; font-weight: 600;
}
.related strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; }

.crumbs {
    font-size: .8rem; color: var(--ink-3);
    padding-block: 1.1rem; border-bottom: 1px solid var(--line-soft);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumbs li::after { content: "·"; margin-left: .5rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--safran-deep); text-decoration: underline; }

.region-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.region-grid a {
    display: flex; flex-direction: column; gap: .2rem;
    padding: 1.15rem 1.3rem; text-decoration: none;
    border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.region-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.region-grid strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.region-grid span { font-size: .82rem; color: var(--ink-3); }

/* --- Pied de page --------------------------------------------------------- */

.site-footer {
    background: var(--ink); color: rgba(247, 241, 230, .72);
    padding-block: var(--space-l) 2rem; font-size: .91rem;
}
.site-footer h4 {
    font-family: var(--sans); font-size: .68rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.15rem; font-weight: 600;
}
.site-footer p { color: rgba(247, 241, 230, .68); max-width: 34ch; }
.site-footer a { color: rgba(247, 241, 230, .82); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-bottom {
    margin-top: var(--space-l); padding-top: 1.6rem;
    border-top: 1px solid rgba(220, 197, 131, .16);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    font-size: .82rem; color: rgba(247, 241, 230, .5);
}
.footer-bottom a { color: rgba(247, 241, 230, .55); }

/* --- Espacements utilitaires ---------------------------------------------- */

[data-space="s"]  { margin-top: var(--space-s); }
[data-space="m"]  { margin-top: var(--space-m); }
[data-space="l"]  { margin-top: var(--space-l); }
[data-space="xl"] { margin-top: var(--space-xl); }

/* --- Back-office ---------------------------------------------------------- */

body.admin { background: var(--paper-warm); }
body.admin::before { display: none; }

.admin-bar { background: var(--ink); color: var(--paper-warm); padding-block: .95rem; }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: space-between; }
.admin-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--paper); text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.admin-nav a { color: rgba(247, 241, 230, .78); text-decoration: none; font-size: .9rem; }
.admin-nav a:hover { color: var(--gold-light); }
.admin-bar .btn--ghost { color: var(--paper-warm); border-color: rgba(220, 197, 131, .3); }
.admin-bar .btn--ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }

.admin-login { max-width: 430px; margin-inline: auto; padding-block: var(--space-l); }

body.admin table.analysis th { width: auto; }
body.admin form + form { margin-top: .6rem; }

/* --- Adaptatif ------------------------------------------------------------ */

@media (max-width: 1000px) {
    .hero-grid, .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
    .hero-figure { order: -1; max-width: 320px; margin-inline: auto; }

    .nav-toggle { display: inline-flex; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: .5rem var(--gutter) 1.5rem;
        box-shadow: var(--shadow-m);
    }
    .nav[data-open="true"] { display: flex; }
    .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); }
    .nav a::after { display: none; }
    .nav .btn { margin-top: 1rem; }

    .trust-item { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
    .trust-item:first-child { border-top: 0; }
}

@media (max-width: 560px) {
    .analysis th, .analysis td { padding: .8rem .85rem; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .btn-row, .nav-toggle, .related, body::before { display: none; }
    body { background: #fff; font-size: 11pt; }
    .section, .section--tight { padding-block: 1rem; }
}

/* ===========================================================================
   Héros immersif — premier écran
   Fond encre, typographie monumentale, filaments animés. Le contraste avec
   le reste de la page, resté crème, fait l'essentiel de l'effet.
   =========================================================================== */

.hero--dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #14100D;
    color: var(--paper-warm);
    padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
    min-height: min(92vh, 900px);
    display: flex; align-items: center;
}

/* Voile chaud, très large, qui évite le noir plat */
.hero--dark::before {
    content: "";
    position: absolute; inset: -20% -10% auto -10%; height: 140%;
    background:
        radial-gradient(52% 58% at 74% 46%, rgba(221, 94, 27, .3), transparent 64%),
        radial-gradient(44% 54% at 18% 88%, rgba(184, 148, 47, .22), transparent 62%),
        radial-gradient(70% 60% at 50% 0%, rgba(110, 30, 13, .5), transparent 70%);
    z-index: -2;
}

/* Grain, plus marqué sur fond sombre */
.hero--dark::after {
    content: "";
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

.hero--dark .eyebrow { color: var(--gold-light); }
.hero--dark .eyebrow::before { background: var(--gold-light); opacity: .8; }

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    width: 100%;
}

/* --- Titre monumental ---------------------------------------------------- */

.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    color: var(--paper);
    margin: 0 0 clamp(1.2rem, 2.5vw, 1.8rem);
}

/* Chaque ligne se dévoile derrière son propre masque. */
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
    display: block;
    transform: translateY(105%);
    animation: lineUp 1.05s var(--ease) forwards;
}
.hero-line:nth-child(1) > span { animation-delay: .06s; }
.hero-line:nth-child(2) > span { animation-delay: .17s; }
.hero-line:nth-child(3) > span { animation-delay: .28s; }

.hero-title em {
    font-style: normal;
    color: var(--gold-light);
}

@keyframes lineUp { to { transform: translateY(0); } }

.hero-fade {
    opacity: 0;
    animation: fadeUp .9s var(--ease) .5s forwards;
}
.hero-fade--late { animation-delay: .68s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.hero--dark .lead { color: rgba(247, 241, 230, .8); max-width: 52ch; }

.hero--dark .btn--ghost { color: var(--paper-warm); border-color: rgba(220, 197, 131, .34); }
.hero--dark .btn--ghost:hover { color: var(--gold-light); border-color: var(--gold-light); background: rgba(220, 197, 131, .08); }

.hero-proof--dark {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(220, 197, 131, .2);
    border-left-color: var(--gold);
    color: rgba(247, 241, 230, .76);
    backdrop-filter: blur(2px);
}
.hero-proof--dark strong { color: var(--paper); }
.hero-proof--dark a { color: var(--gold-light); }

/* --- Composition de filaments -------------------------------------------- */

.hero-visual {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    will-change: transform;
}
.hero-art {
    width: 118%;
    max-width: 660px;
    height: auto;
    overflow: visible;
    margin-inline: -9%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
}

.hero-thread {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: sway 11s ease-in-out infinite;
}
.hero-thread--1 { animation-duration: 13.5s; animation-delay: -3s; }
.hero-thread--2 { animation-duration: 9.5s;  animation-delay: -6s; }

@keyframes sway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50%      { transform: rotate(2.2deg) translateY(-6px); }
}

.hero-dust { animation: twinkle 6s ease-in-out infinite; }
.hero-dust--1 { animation-duration: 8s; animation-delay: -2s; }
.hero-dust--2 { animation-duration: 7s; animation-delay: -4s; }
.hero-dust--3 { animation-duration: 9s; animation-delay: -1s; }

@keyframes twinkle {
    0%, 100% { opacity: .18; }
    50%      { opacity: .62; }
}

/* --- Invite au défilement ------------------------------------------------- */

.scroll-cue {
    position: absolute; left: 50%; bottom: clamp(1.2rem, 3vw, 2.2rem);
    transform: translateX(-50%);
    display: inline-flex; flex-direction: column; align-items: center; gap: .6rem;
    font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
    color: rgba(247, 241, 230, .45);
    text-decoration: none;
    opacity: 0;
    animation: fadeUp .8s var(--ease) 1.1s forwards;
}
.scroll-cue:hover { color: var(--gold-light); }
.scroll-cue i {
    display: block; width: 1px; height: 46px;
    background: linear-gradient(180deg, transparent, var(--gold-light));
    animation: cueSlide 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cueSlide {
    0%, 100% { transform: scaleY(.35); opacity: .35; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* --- Bandeau défilant ----------------------------------------------------- */

.marquee {
    background: var(--ink);
    color: rgba(247, 241, 230, .55);
    border-block: 1px solid rgba(220, 197, 131, .14);
    overflow: hidden;
    padding-block: .95rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex; width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee span {
    display: inline-flex; align-items: center; gap: 1.6rem;
    padding-inline: 1.6rem;
    font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
}
.marquee span::after { content: "◆"; color: var(--gold); font-size: .5rem; letter-spacing: 0; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Titres qui se dévoilent ---------------------------------------------- */

[data-reveal] .reveal-mask,
.reveal-mask { display: block; overflow: hidden; }

/* --- Cartes : balayage doré au survol ------------------------------------- */

.card, .pack, .region-grid a, .related a { position: relative; overflow: hidden; }
.card::after, .pack::after, .region-grid a::after, .related a::after {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, var(--stigma), var(--gold));
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
}
.card:hover::after, .pack:hover::after, .region-grid a:hover::after, .related a:hover::after {
    transform: scaleX(1);
}
.card--quiet::after, .card--flat::after { display: none; }

@media (max-width: 1000px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 320px; margin-inline: auto; }
    .hero--dark { min-height: 0; }
    .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-line > span { transform: none; animation: none; }
    .hero-fade, .scroll-cue { opacity: 1; animation: none; }
    .hero-thread, .hero-dust, .marquee-track, .scroll-cue i { animation: none; }
}

/* ===========================================================================
   V3 — héros cinématique, transitions de section, défilement narratif
   =========================================================================== */

/* --- Barre de progression de lecture -------------------------------------- */

.progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70;
    background: transparent; pointer-events: none;
}
.progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--safran-deep), var(--stigma) 45%, var(--gold));
    transform-origin: left;
}

/* --- Héros plein cadre ---------------------------------------------------- */

.hero3 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #120E0B;
    color: var(--paper-warm);
    min-height: min(100svh, 980px);
    display: flex; align-items: center;
    padding-block: clamp(4rem, 9vh, 7rem) clamp(5rem, 11vh, 8rem);
}

/* La composition occupe tout le cadre, ancrée en bas. */
.hero3-stage {
    position: absolute; inset: 0; z-index: -3;
    pointer-events: none;
}
.hero3-stage .hero-art {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: none; margin: 0;
    filter: none;
}

/* Nappes colorées, sous la composition */
.hero3::before {
    content: "";
    position: absolute; inset: -15% -8%; z-index: -4;
    background:
        radial-gradient(48% 52% at 68% 78%, rgba(221, 94, 27, .3), transparent 64%),
        radial-gradient(40% 46% at 20% 22%, rgba(110, 30, 13, .55), transparent 66%),
        radial-gradient(60% 50% at 50% 0%, rgba(90, 24, 10, .5), transparent 72%);
}

/* Voile de lisibilité à gauche + vignette */
.hero3::after {
    content: "";
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(100deg, rgba(18, 14, 11, .96) 0%, rgba(18, 14, 11, .82) 34%, rgba(18, 14, 11, .3) 62%, transparent 82%),
        radial-gradient(120% 90% at 50% 50%, transparent 52%, rgba(10, 7, 5, .62) 100%);
}

.hero3-grain {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

.hero3-content { position: relative; width: 100%; max-width: var(--wrap); }
.hero3-inner { max-width: min(46rem, 62%); }

.hero3 .eyebrow { color: var(--gold-light); }
.hero3 .eyebrow::before { background: var(--gold-light); opacity: .85; }
.hero3 .lead { color: rgba(247, 241, 230, .82); max-width: 44ch; }
.hero3 .hero-title { font-size: clamp(2.6rem, 6vw, 5.4rem); }

.hero3 .btn--ghost { color: var(--paper-warm); border-color: rgba(220, 197, 131, .34); }
.hero3 .btn--ghost:hover { color: var(--gold-light); border-color: var(--gold-light); background: rgba(220, 197, 131, .08); }

/* Lueur qui suit le curseur, sur pointeur fin uniquement */
.hero3-glow {
    position: absolute; z-index: -1; pointer-events: none;
    width: 34rem; height: 34rem; border-radius: 50%;
    left: 0; top: 0; margin: -17rem 0 0 -17rem;
    background: radial-gradient(circle, rgba(221, 94, 27, .16), transparent 62%);
    opacity: 0; transition: opacity .5s var(--ease);
    will-change: transform;
}
.hero3[data-pointer="true"] .hero3-glow { opacity: 1; }

/* --- Transition douce entre sections sombres et claires -------------------- */

.wedge {
    height: clamp(3rem, 7vw, 6rem);
    background: linear-gradient(180deg, var(--ink) 0%, rgba(31, 23, 19, .55) 38%, transparent 100%);
    margin-bottom: calc(clamp(3rem, 7vw, 6rem) * -1);
    position: relative; z-index: 1;
}
.wedge--up {
    background: linear-gradient(0deg, var(--ink) 0%, rgba(31, 23, 19, .55) 38%, transparent 100%);
    margin-bottom: 0; margin-top: calc(clamp(3rem, 7vw, 6rem) * -1);
}

/* --- Titres dévoilés mot à mot -------------------------------------------- */

.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > i {
    display: inline-block; font-style: inherit;
    transform: translateY(102%);
    transition: transform .72s var(--ease);
}
.is-visible .word > i { transform: none; }

/* --- Défilement narratif : les trois preuves ------------------------------- */

.story { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 5rem); }

.story-sticky {
    position: sticky; top: calc(78px + 3rem);
    align-self: start;
    padding-bottom: 2rem;
}

.story-figure {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(70% 70% at 50% 62%, rgba(221, 94, 27, .1), transparent 66%),
        var(--paper-warm);
    display: grid; place-items: center;
    overflow: hidden;
}
.story-num {
    font-family: var(--serif);
    font-size: clamp(6rem, 13vw, 11rem);
    line-height: 1; color: var(--gold);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    opacity: .22;
    position: absolute;
    transition: opacity .5s var(--ease), transform .6s var(--ease);
    transform: scale(.9);
}
.story-num.is-active { opacity: 1; transform: none; }

.story-steps { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.story-step {
    padding-left: clamp(1.2rem, 2.4vw, 2rem);
    border-left: 1px solid var(--line);
    transition: border-color .4s var(--ease);
}
.story-step.is-active { border-left-color: var(--gold); }
.story-step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; }
.story-step p { color: var(--ink-2); }
.story-kicker {
    font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-3); font-weight: 600; display: block; margin-bottom: .7rem;
}

@media (max-width: 1000px) {
    .hero3 { min-height: 0; }
    .hero3-inner { max-width: none; }
    .hero3::after {
        background:
            linear-gradient(180deg, rgba(18, 14, 11, .9) 0%, rgba(18, 14, 11, .72) 46%, rgba(18, 14, 11, .92) 100%),
            radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(10, 7, 5, .55) 100%);
    }
    .hero3-glow { display: none; }

    .story { grid-template-columns: 1fr; }
    .story-sticky { position: static; }
    .story-figure { aspect-ratio: 16 / 7; }
}

@media (prefers-reduced-motion: reduce) {
    .word > i { transform: none; transition: none; }
    .story-num { opacity: 1; transform: none; }
    .progress span { transition: none; }
}
