/* ==========================================================================
   AMEN, ENFOIRÉ ! — Feuille de style principale (index.html)
   Direction : grindhouse imprimé. Encre, papier jauni, sang séché.
   Aucune dépendance : tokens CSS, composants, sections.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Palette historique, affinée pour le contraste */
    --blood: #B92B27;
    --blood-deep: #8E1F1C;
    --blood-hot: #E04A3F;      /* rouge lisible sur fond sombre (grands titres uniquement) */
    --ink: #161615;
    --charcoal: #252624;
    --charcoal-2: #30312E;
    --ivory: #F2F1F0;
    --paper: #ECE6DA;
    --parchment: #D1BD9F;
    --gold: #D6AD36;
    --steel: #4B5F72;
    --steel-deep: #3C4C5C;

    --ivory-85: rgba(242, 241, 240, .85);
    --ivory-70: rgba(242, 241, 240, .7);
    --ivory-20: rgba(242, 241, 240, .2);
    --ivory-12: rgba(242, 241, 240, .12);
    --ink-70: rgba(22, 22, 21, .72);
    --ink-15: rgba(22, 22, 21, .15);
    --smoke: #A39F97;

    /* Typographie */
    --f-display: "Rye", "Georgia", serif;
    --f-cond: "Anton", "Impact", "Arial Narrow", sans-serif;
    --f-body: "Source Serif 4", "Georgia", "Times New Roman", serif;
    --f-type: "Special Elite", "Courier New", monospace;

    /* Espace & rythme */
    --gutter: clamp(16px, 4vw, 40px);
    --container: 1240px;
    --section-y: clamp(88px, 11vw, 168px);
    --nav-h: 72px;

    /* Mouvement */
    --ease-out: cubic-bezier(.2, .75, .2, 1);
    --ease-in-out: cubic-bezier(.7, 0, .25, 1);

    /* Bord déchiré (papier) */
    --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V14l18-5 13 6 21-9 18 6 18-8 16 9 23-5 14 8 22-11 19 6 18-8 21 9 19-5 22 8 18-9 21 4 19-8 18 11 22-5 17 6 21-10 19 7 19-5 19 9 19-6 18 4 21-10 18 7 21-4 18 8 18-6 12 6v10z'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Grain de pellicule, fixe, sans blending (coût quasi nul au défilement) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    background: url("../../images/web/grain.png") repeat;
    opacity: .55;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 600; }
em { font-style: italic; }

::selection { background: var(--blood); color: var(--ivory); }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.icon--lg { width: 26px; height: 26px; }

.skip-link {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    padding: .8em 1.2em;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--f-cond);
    text-transform: uppercase;
    letter-spacing: .06em;
    transform: translateY(-160%);
    transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* ---------- 3. Typographie ---------- */
.display-xl,
.display-lg {
    font-family: var(--f-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: -.005em;
    text-wrap: balance;
}
.display-xl { font-size: clamp(2.7rem, 8vw, 7rem); }
.display-lg { font-size: clamp(2.35rem, 6vw, 5.4rem); }

.text-blood { color: var(--blood); }
.text-blood-hot { color: var(--blood-hot); }

.lede {
    font-size: clamp(1.25rem, 2.1vw, 1.55rem);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 1.1em;
    text-wrap: pretty;
}

/* Carton de chapitre, façon générique */
.chapter {
    display: flex;
    flex-wrap: wrap;
    row-gap: .3rem;
    align-items: center;
    gap: .85em;
    margin-bottom: 1.4rem;
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-70);
}
.chapter__num { color: var(--blood); white-space: nowrap; }
.chapter__num::after {
    content: "";
    display: inline-block;
    width: clamp(28px, 5vw, 56px);
    height: 2px;
    margin-left: .85em;
    vertical-align: middle;
    background: currentColor;
}
.chapter--light { color: var(--ivory-70); }
.chapter--light .chapter__num { color: var(--gold); }
.chapter--center { justify-content: center; }
.section--blood .chapter--light { color: var(--ivory-85); }
.section--blood .chapter--light .chapter__num { color: var(--ivory); }

.panel-title {
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .55rem;
}
.panel-title__kicker {
    display: block;
    margin-bottom: .5rem;
    font-family: var(--f-type);
    font-size: .74rem;
    letter-spacing: .16em;
    color: var(--gold);
}
.panel-title--ink .panel-title__kicker { color: var(--blood); }
.panel-text { color: var(--ivory-85); margin-bottom: 1.5rem; max-width: 52ch; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 44px;
    font-family: var(--f-cond);
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--blood);
    border-bottom: 2px solid currentColor;
}
.link-arrow .icon { transition: transform .25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }
.link-arrow--light { color: var(--ivory); }

/* ---------- 4. Boutons ---------- */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--ivory);
    --btn-bd: currentColor;
    --btn-shadow: rgba(0, 0, 0, .9);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 48px;
    padding: .9em 1.45em;
    border: 2px solid var(--btn-bd);
    border-radius: 0;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--f-cond);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 5px 5px 0 var(--btn-shadow);
    transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .2s, color .2s, border-color .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--btn-shadow); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--blood { --btn-bg: var(--blood); --btn-fg: var(--ivory); --btn-bd: var(--blood); }
.btn--blood:hover { --btn-bg: #C9332E; }
.btn--ghost { --btn-fg: var(--ivory); --btn-bd: var(--ivory); --btn-shadow: rgba(0, 0, 0, .55); }
.btn--ghost:hover { --btn-bg: var(--ivory); --btn-fg: var(--ink); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold); }
.btn--gold:focus-visible { outline-color: var(--ivory); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-bd: var(--ink); --btn-shadow: var(--blood); }
.btn--ink:hover { --btn-bg: var(--charcoal); }
.btn--outline { --btn-fg: var(--ivory); --btn-bd: var(--ivory-20); --btn-shadow: transparent; }
.btn--outline:hover { --btn-bd: var(--ivory); }
.btn--outline-gold { --btn-fg: var(--gold); --btn-bd: var(--gold); --btn-shadow: transparent; }
.btn--outline-gold:hover { --btn-bg: var(--gold); --btn-fg: var(--ink); }

.btn--sm { min-height: 44px; padding: .7em 1em; font-size: .92rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn--sm:hover { box-shadow: 1px 1px 0 var(--btn-shadow); transform: translate(2px, 2px); }
.btn--lg { font-size: 1.22rem; padding: 1em 1.6em; }
.btn--block { width: 100%; }
.btn b { font-weight: 400; color: var(--gold); }

/* ---------- 5. Navigation ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--nav-h);
    background: linear-gradient(to bottom, rgba(22, 22, 21, .72), rgba(22, 22, 21, 0));
    transition: background-color .35s, box-shadow .35s;
}
.site-nav.is-scrolled {
    background: rgba(30, 31, 29, .97);
    box-shadow: 0 1px 0 rgba(185, 43, 39, .55), 0 10px 30px rgba(0, 0, 0, .35);
}
.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}
.site-nav__brand {
    font-family: var(--f-display);
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ivory);
    white-space: nowrap;
    transition: color .2s;
}
.site-nav__brand:hover { color: var(--blood-hot); }

.site-nav__links { display: none; gap: clamp(1rem, 2.2vw, 2rem); }
.site-nav__links a {
    position: relative;
    padding: .6rem 0;
    font-family: var(--f-cond);
    font-size: 1rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--parchment);
    transition: color .2s;
}
.site-nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .2rem;
    height: 2px;
    background: var(--blood-hot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="true"] { color: var(--ivory); }
.site-nav__links a:hover::after,
.site-nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.site-nav__actions { display: flex; align-items: center; gap: .75rem; }
.site-nav__actions > [data-auth-open],
.site-nav__account { display: none; }
.site-nav__cta { display: none; }

.site-nav__toggle {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-right: -8px;
    border: 0;
    background: transparent;
    color: var(--ivory);
}

/* La mèche : progression de lecture (navigateurs compatibles uniquement) */
.site-nav__fuse {
    position: absolute;
    left: 0; bottom: -1px;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--blood), var(--blood-hot));
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: opacity .3s;
}
.site-nav.is-scrolled .site-nav__fuse { opacity: 1; }
@supports (animation-timeline: scroll()) {
    .site-nav__fuse { animation: fuse linear both; animation-timeline: scroll(root); }
    @keyframes fuse { to { transform: scaleX(1); } }
}

@media (min-width: 440px) {
    .site-nav__cta { display: inline-flex; }
}
@media (min-width: 720px) {
    .site-nav__actions > [data-auth-open],
    .site-nav__account { display: inline-flex; }
}
@media (min-width: 1080px) {
    .site-nav__links { display: flex; }
    .site-nav__toggle { display: none; }
}

/* Menu mobile plein écran */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(185, 43, 39, .35), transparent 60%),
        var(--charcoal);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    border-bottom: 1px solid var(--ivory-12);
}
.mobile-menu__brand { font-family: var(--f-display); text-transform: uppercase; font-size: 1.1rem; }
.mobile-menu__close {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    margin-right: -8px;
    border: 0; background: transparent; color: var(--ivory);
}
.mobile-menu__list { counter-reset: none; padding: 1.2rem 0; }
.mobile-menu__list a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: .55rem 0;
    min-height: 48px;
    font-family: var(--f-cond);
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ivory);
    transition: color .2s, transform .25s var(--ease-out);
}
.mobile-menu__list a span {
    min-width: 2.6em;
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--gold);
}
.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible { color: var(--blood-hot); transform: translateX(6px); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--ivory-12); }
.mobile-menu__ext {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 44px;
    font-family: var(--f-type); font-size: .9rem; color: var(--ivory-70);
}

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--ink);
    overflow: hidden;
}
.hero__media,
.hero__media picture { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 38%;
    filter: saturate(1.08) contrast(1.06);
    animation: hero-img 1.8s var(--ease-out) both;
}
@keyframes hero-img {
    from { opacity: 0; transform: scale(1.09); }
    to   { opacity: 1; transform: scale(1); }
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(to bottom, rgba(22, 22, 21, .7) 0%, rgba(22, 22, 21, 0) 20%),
        linear-gradient(to top, var(--ink) 0%, rgba(22, 22, 21, .9) 20%, rgba(22, 22, 21, .35) 52%, rgba(22, 22, 21, 0) 70%),
        linear-gradient(100deg, rgba(22, 22, 21, .78) 0%, rgba(22, 22, 21, .25) 45%, rgba(22, 22, 21, 0) 65%),
        radial-gradient(ellipse 85% 75% at 62% 38%, transparent 45%, rgba(22, 22, 21, .7) 100%);
}
/* Lueur de projecteur, chaude et sale */
.hero__veil::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 72% 30%, rgba(214, 120, 54, .14), transparent 70%);
}

/* Bandes cinémascope qui s'ouvrent au chargement */
.hero__bars span {
    position: absolute;
    left: 0; right: 0;
    z-index: 3;
    height: 11vh;
    background: var(--ink);
    pointer-events: none;
}
.hero__bars span:first-child { top: 0; animation: bar-up 1s .15s var(--ease-in-out) both; }
.hero__bars span:last-child { bottom: 0; animation: bar-down 1s .15s var(--ease-in-out) both; }
@keyframes bar-up { to { transform: translateY(-101%); } }
@keyframes bar-down { to { transform: translateY(101%); } }

.hero__content {
    align-self: end;
    position: relative;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: clamp(20px, 4vh, 40px);
}

.hero__tag {
    display: inline-block;
    padding: .45em .9em;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--f-cond);
    font-size: clamp(.85rem, 1.6vw, 1.05rem);
    letter-spacing: .1em;
    text-transform: uppercase;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 0 var(--ink);
    animation: rise .6s .55s var(--ease-out) both;
}

.hero__title {
    margin: .28em 0 .3em;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2.6rem, min(12.4vw, 20vh), 9.8rem);
    line-height: .86;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding: .04em 0 .08em; margin-bottom: -.08em; }
.hero__line > span { display: inline-block; animation: line-up .95s var(--ease-out) both; }
.hero__line--1 > span { color: var(--ivory); animation-delay: .4s; }
.hero__line--2 > span {
    color: var(--blood-hot);
    animation-delay: .55s;
    text-shadow: .035em .035em 0 var(--ink);
}
@keyframes line-up {
    from { transform: translateY(108%) skewY(4deg); }
    to   { transform: none; }
}

.hero__lede {
    font-family: var(--f-cond);
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    line-height: 1.15;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ivory);
    max-width: 30ch;
    animation: rise .7s .95s var(--ease-out) both;
}
.hero__sub {
    margin-top: .6rem;
    max-width: 44ch;
    color: var(--ivory-85);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    animation: rise .7s 1.05s var(--ease-out) both;
}
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    margin-top: clamp(1.4rem, 3.5vh, 2.4rem);
    animation: rise .7s 1.2s var(--ease-out) both;
}

.hero__foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    animation: fade 1s 1.5s both;
}
.hero__billing {
    display: none;
    flex-wrap: wrap;
    gap: .2rem 0;
    font-family: var(--f-cond);
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--smoke);
}
.hero__billing span + span::before { content: "✦"; margin: 0 .9em; color: var(--blood-hot); font-size: .7em; vertical-align: .15em; }
.hero__cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    padding: .4rem;
    font-family: var(--f-type);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ivory-70);
}
.hero__cue .icon { width: 20px; height: 20px; animation: nudge 2.4s 2.4s var(--ease-in-out) 3; }
.hero__cue:hover { color: var(--ivory); }

/* Cadrage selon les proportions de l'écran : le cavalier reste vers les ~78 % de la largeur,
   à droite du titre, du format presque carré au très large. */
@media (orientation: landscape) { .hero__media img { object-position: 48% 38%; } }
@media (min-aspect-ratio: 6/5) { .hero__media img { object-position: 42% 38%; } }
@media (min-aspect-ratio: 3/2) { .hero__media img { object-position: 33% 38%; } }
@media (min-aspect-ratio: 16/9) { .hero__media img { object-position: 24% 38%; } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }

@media (min-width: 900px) {
    .hero__title { font-size: clamp(2.6rem, min(9.9vw, 19vh), 9.8rem); }
    .hero__line--2 { padding-left: .3em; }
    .hero__billing { display: flex; }
}
@media (max-width: 640px) and (orientation: portrait) {
    /* Sur téléphone, l'image occupe le haut de l'écran et se fond dans l'encre :
       le cavalier reste visible au-dessus du titre. */
    .hero__media { bottom: 30%; }
    .hero__media img {
        object-position: 50% 0;
        -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    }
    .hero__veil {
        background:
            linear-gradient(to bottom, rgba(22, 22, 21, .65) 0%, rgba(22, 22, 21, 0) 16%),
            linear-gradient(to top, var(--ink) 0%, rgba(22, 22, 21, .9) 34%, rgba(22, 22, 21, 0) 58%);
    }
    .hero__title { font-size: min(15vw, 9vh); }
    .hero__ctas { gap: .8rem; }
    .hero__ctas .btn { flex: 1 1 100%; font-size: 1.08rem; padding-block: .9em; }
}
@media (max-width: 640px) and (max-height: 700px) and (orientation: portrait) {
    .hero__sub { display: none; }
}

/* ---------- 7. Sections : socle commun ---------- */
.section {
    --bg: var(--charcoal);
    position: relative;
    padding-block: var(--section-y);
    background-color: var(--bg);
    overflow-x: clip;
}
/* Bord supérieur déchiré, de la couleur de la section */
.section::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -23px;
    height: 24px;
    background: var(--bg);
    -webkit-mask: var(--torn) bottom / 600px 24px repeat-x;
    mask: var(--torn) bottom / 600px 24px repeat-x;
    pointer-events: none;
}
.section--paper { --bg: var(--paper); color: var(--ink); }
.section--noon  { --bg: var(--ivory); color: var(--ink); }
.section--dark  { --bg: var(--charcoal); color: var(--ivory); }
.section--ink   { --bg: var(--ink); color: var(--ivory); }
.section--blood { --bg: var(--blood); color: var(--ivory); }
.section--steel { --bg: var(--steel-deep); color: var(--ivory); }

.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head__lede { margin-top: 1.2rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ivory-85); max-width: 56ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}
.section-head--split .section-head__lede { margin-top: 0; max-width: 46ch; padding-bottom: .4rem; }

/* Les grilles à une colonne ne doivent jamais s'élargir sous la pression d'un contenu */
.univers__grid, .table-demo, .creation, .coyote__grid, .duel__intro, .shot,
.reputation__grid, .offers, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }

/* Apparitions au défilement (le contenu reste visible sans JS) */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .8s var(--ease-out) calc(var(--d, 0) * 110ms),
        transform .8s var(--ease-out) calc(var(--d, 0) * 110ms),
        translate .35s var(--ease-out),
        rotate .35s var(--ease-out),
        border-color .3s,
        box-shadow .4s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 8. Chapitre I : L'Univers ---------- */
.univers {
    background-image:
        radial-gradient(ellipse 50% 40% at 12% 8%, rgba(209, 189, 159, .45), transparent 70%),
        radial-gradient(ellipse 45% 50% at 95% 85%, rgba(209, 189, 159, .4), transparent 70%);
}
.univers__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 4vw, 4rem);
}
.univers__title {
    font-family: var(--f-cond);
    font-size: clamp(3rem, 9.2vw, 8.6rem);
    line-height: .9;
    letter-spacing: .005em;
}
.univers__title .amp {
    font-family: var(--f-display);
    font-size: .8em;
    color: var(--blood);
    vertical-align: .04em;
}
.univers__text p + p { margin-top: 1rem; }
.univers__text p:not(.lede) { max-width: 54ch; color: #2C2B28; }
.univers__text .link-arrow { margin-top: 1.6rem; }

.univers__figure { position: relative; }
.univers__figure img {
    width: 100%;
    mix-blend-mode: multiply;
}
.univers__figure figcaption {
    position: absolute;
    right: 6%;
    bottom: -14px;
    padding: .5em .9em;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .04em;
    transform: rotate(-1.5deg);
}

.univers__facts {
    display: grid;
    gap: 1.8rem 2.5rem;
    padding-top: clamp(1rem, 3vw, 2rem);
}
.univers__facts li { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.fact__num { font-family: var(--f-type); font-size: .85rem; color: var(--blood); letter-spacing: .1em; }
.univers__facts h3 {
    margin: .35rem 0 .45rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 1.65rem;
    line-height: 1.05;
    text-transform: uppercase;
}
.univers__facts p { color: #2C2B28; font-size: 1rem; }

@media (min-width: 720px) {
    .univers__facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .univers__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
    .univers__head { grid-column: 1 / 11; grid-row: 1; position: relative; z-index: 2; }
    .univers__text { grid-column: 1 / 6; grid-row: 2; padding-top: .5rem; }
    .univers__figure {
        grid-column: 7 / -1;
        grid-row: 1 / 3;
        margin-top: clamp(3rem, 7vw, 6rem);
        margin-right: calc(var(--gutter) * -1 - max(0px, (100vw - var(--container)) / 2));
    }
    .univers__facts { grid-column: 1 / -1; }
}

/* ---------- 9. Chapitre II : Le système ---------- */
.systeme {
    background-image: radial-gradient(ellipse 70% 50% at 85% 0%, rgba(75, 95, 114, .35), transparent 70%);
}

.table-demo {
    display: grid;
    gap: 1.5rem;
}
.table-demo__panel {
    padding: clamp(22px, 3vw, 40px);
    background: var(--charcoal-2);
    border: 1px solid var(--ivory-12);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, .35);
    transition: border-color .3s;
}

.field-range { margin-bottom: 1.4rem; }
.field-range label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .55rem;
    font-family: var(--f-cond);
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.field-range output { font-size: 1.6rem; line-height: 1; color: var(--gold); }
.field-range--ink output { color: var(--blood); }

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--ivory-20); }
input[type="range"]::-moz-range-track { height: 6px; background: var(--ivory-20); }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    margin-top: -9px;
    background: var(--blood);
    border: 3px solid var(--ivory);
    transform: rotate(45deg);
}
input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    background: var(--blood);
    border: 3px solid var(--ivory);
    border-radius: 0;
    transform: rotate(45deg);
}
input[type="range"]:focus-visible { outline-offset: 2px; }
.field-range--ink input[type="range"]::-webkit-slider-runnable-track { background: var(--ink-15); }
.field-range--ink input[type="range"]::-moz-range-track { background: var(--ink-15); }
.field-range--ink input[type="range"]::-webkit-slider-thumb { border-color: var(--ink); }
.field-range--ink input[type="range"]::-moz-range-thumb { border-color: var(--ink); }

.chips { border: 0; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend {
    width: 100%;
    margin-bottom: .6rem;
    font-family: var(--f-cond);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    min-height: 44px;
    padding: .55em .85em;
    border: 1.5px solid var(--ivory-20);
    font-family: var(--f-type);
    font-size: .86rem;
    line-height: 1.2;
    color: var(--ivory-85);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip span b { font-family: var(--f-cond); font-weight: 400; color: var(--blood-hot); }
.chip:hover span { border-color: var(--ivory); }
.chip input:checked + span { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.chip input:checked + span b { color: var(--blood); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.roll-result {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.4rem;
    min-height: 88px;
}
.roll-result__die {
    flex: none;
    display: grid;
    place-items: center;
    width: 84px; height: 84px;
    border: 2px solid var(--ivory-20);
    font-family: var(--f-cond);
    font-size: 2.5rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background-color .25s, color .25s, border-color .25s;
}
.roll-result__text { color: var(--ivory-85); font-size: 1rem; }
.roll-result__text strong {
    display: block;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ivory);
}
.roll-result.is-crit .roll-result__die { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.roll-result.is-success .roll-result__die { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.roll-result.is-fail .roll-result__die { border-color: var(--blood-hot); color: var(--blood-hot); }
.roll-result.is-fumble .roll-result__die { background: var(--blood); border-color: var(--blood); color: var(--ivory); }
.roll-result.is-rolling .roll-result__die { color: var(--smoke); }

/* Jauge de Tripes */
.gauge { margin: .5rem 0 1.8rem; }
.gauge__track {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 6px;
    background: var(--ink);
    border: 1px solid var(--ivory-12);
}
.gauge__track span {
    height: 34px;
    background: rgba(242, 241, 240, .07);
    transform: skewX(-14deg);
    transition: background-color .35s var(--ease-out), box-shadow .35s;
}
.gauge__track span.is-on:nth-child(-n+2) { background: var(--gold); }
.gauge__track span.is-on:nth-child(n+3):nth-child(-n+4) { background: #D98536; }
.gauge__track span.is-on:nth-child(n+5):nth-child(-n+6) { background: var(--blood-hot); }
.gauge__track span.is-on:nth-child(n+7) { background: var(--blood); box-shadow: 0 0 14px rgba(224, 74, 63, .65); }
.gauge__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: .6rem;
    padding: 0 6px;
}
.gauge__steps li {
    padding-top: .4rem;
    border-top: 1px solid var(--ivory-20);
    font-family: var(--f-type);
    font-size: .76rem;
    line-height: 1.3;
    text-align: right;
    color: var(--ivory-70);
    transition: color .3s, border-color .3s;
}
.gauge__steps li b { display: block; font-family: var(--f-cond); font-weight: 400; font-size: 1.1rem; color: var(--ivory); }
.gauge__steps li em { display: block; font-style: normal; color: var(--gold); }
@media (max-width: 480px) {
    .gauge__steps li { font-size: .7rem; letter-spacing: -.01em; }
}
/* Registre : sur petit écran, chaque niveau devient une fiche empilée */
@media (max-width: 420px) {
    .register__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .register__table tr { display: grid; grid-template-columns: 2.4rem 1fr; border-bottom: 1.5px solid rgba(22, 22, 21, .5); }
    .register__table tbody th { grid-row: span 2; border: 0; }
    .register__table td { border: 0; padding: .45rem .3rem; }
    .register__table td::before {
        content: attr(data-label);
        display: block;
        font-family: var(--f-cond);
        font-size: .82rem;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
}
.gauge__steps li.is-active { color: var(--ivory); border-top-color: var(--blood-hot); }
.gauge__state { margin-top: 1.1rem; color: var(--ivory-85); }
.gauge__state b { font-family: var(--f-cond); font-weight: 400; font-size: 1.35rem; color: var(--ivory); margin-right: .4rem; }

.table-demo__panel--gauge.is-panic { border-color: var(--blood-hot); }
.table-demo__panel--gauge.is-panic .gauge__track { animation: jolt .45s var(--ease-out) 1; }
@keyframes jolt {
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

.recover__label {
    margin-bottom: .6rem;
    font-family: var(--f-cond);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.recover__btns { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Création express : une fiche de perso posée sur la table */
.creation {
    display: grid;
    gap: 2rem;
    margin-top: clamp(3rem, 7vw, 5rem);
    align-items: center;
}
.creation__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.pairs {
    position: relative;
    padding: clamp(22px, 3vw, 36px);
    background: var(--parchment);
    background-image: linear-gradient(rgba(242, 241, 240, .35), rgba(242, 241, 240, 0));
    color: var(--ink);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .4);
    transform: rotate(.6deg);
}
.pairs::before {
    content: "Fiche de crapule — caractéristiques";
    display: block;
    margin-bottom: 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--ink);
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pair + .pair { margin-top: 1.3rem; }
.pair__labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-cond);
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pair__labels output { font-size: 1.25rem; color: var(--blood); margin-left: .3em; }
/* La barre sert de piste : le curseur ne couvre que 20→80, il tombe pile sur la bascule */
.pair__bar {
    position: relative;
    height: 12px;
    margin: .7rem 0 .4rem;
    background:
        repeating-linear-gradient(-45deg, rgba(22, 22, 21, .35) 0 2px, transparent 2px 6px) left / 20% 100% no-repeat,
        repeating-linear-gradient(-45deg, rgba(22, 22, 21, .35) 0 2px, transparent 2px 6px) right / 20% 100% no-repeat,
        var(--ink);
}
.pair__bar i { position: absolute; inset: 0 auto 0 0; width: 50%; background: var(--blood); pointer-events: none; }
.pair__bar input[type="range"] {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: calc(20% - 12px);
    width: calc(60% + 24px);
    transform: translateY(-50%);
}
.pair input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.pair input[type="range"]::-moz-range-track { background: transparent; }
.pair input[type="range"]::-webkit-slider-thumb { border-color: var(--ink); background: var(--ivory); }
.pair input[type="range"]::-moz-range-thumb { border-color: var(--ink); background: var(--ivory); }

@media (min-width: 900px) {
    .table-demo { grid-template-columns: 1.05fr 1fr; }
    .creation { grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
}

/* ---------- 10. Chapitre III : Le Dé du Coyote ---------- */
.coyote {
    background-image:
        radial-gradient(rgba(22, 22, 21, .22) 1.2px, transparent 1.6px),
        linear-gradient(160deg, #C4312C 0%, var(--blood) 45%, #9E2320 100%);
    background-size: 9px 9px, auto;
}
.coyote__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.coyote__text > p:not(.chapter):not(.lede) { max-width: 52ch; color: var(--ivory-85); }
.lede--light { color: var(--ivory); }
.coyote__quote {
    margin-top: 1.8rem;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid var(--ivory);
    background: rgba(22, 22, 21, .28);
    font-family: var(--f-type);
    font-size: 1.02rem;
    line-height: 1.55;
}
.coyote__note {
    margin-top: 1.2rem;
    font-family: var(--f-cond);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ivory) !important;
    font-size: .95rem;
}
.coyote__note::before { content: "⚠"; margin-right: .5em; }

.coyote__stage { position: relative; display: grid; justify-items: center; }
.coyote__moon {
    position: absolute;
    top: 50%; left: 50%;
    width: min(92%, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #2B2C29 0%, var(--ink) 70%);
    box-shadow: 0 0 0 10px rgba(22, 22, 21, .25), 0 0 0 22px rgba(22, 22, 21, .12);
    transform: translate(-50%, -62%);
}
.coyote__die {
    position: relative;
    width: min(100%, 520px);
    padding: 0;
    border: 0;
    background: none;
    transform: rotate(-7deg);
    transition: transform .5s var(--ease-out);
}
.coyote__die img { filter: drop-shadow(16px 18px 0 rgba(22, 22, 21, .7)); }
.coyote__die:hover { transform: rotate(0deg) scale(1.03); }
.coyote__die:focus-visible { outline-color: var(--ivory); outline-offset: 8px; }
.coyote__die.is-rolling { animation: tumble .9s var(--ease-out) 1; }
@keyframes tumble {
    0%   { transform: rotate(-7deg) translateY(0) scale(1); }
    30%  { transform: rotate(160deg) translateY(-40px) scale(.9); }
    60%  { transform: rotate(330deg) translateY(6px) scale(1.04); }
    80%  { transform: rotate(352deg) translateY(-4px) scale(1); }
    100% { transform: rotate(353deg) translateY(0) scale(1); }
}

.coyote__panel {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    width: 100%;
    max-width: 440px;
    margin-top: 1.5rem;
    text-align: center;
}
.coyote__faces { display: flex; gap: 8px; }
.face {
    width: 22px; height: 22px;
    transform: rotate(45deg);
    border: 2px solid var(--ivory);
    transition: transform .35s var(--ease-out), box-shadow .35s;
}
.face--good { background: var(--gold); }
.face--neutral { background: rgba(242, 241, 240, .3); }
.face--bad { background: var(--ink); }
.face.is-hit { transform: rotate(45deg) scale(1.45); box-shadow: 0 0 0 3px var(--ink); }
.coyote__result {
    min-height: 3.2em;
    font-family: var(--f-cond);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.coyote__result small {
    display: block;
    margin-top: .35rem;
    font-family: var(--f-body);
    font-size: .95rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ivory-85);
}

@media (min-width: 960px) {
    .coyote__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 11. Chapitre IV : Le Duel (midi pétante) ---------- */
.duel {
    background-image:
        radial-gradient(ellipse 60% 55% at 88% 0%, rgba(214, 173, 54, .28), transparent 70%),
        radial-gradient(ellipse 40% 30% at 0% 100%, rgba(209, 189, 159, .4), transparent 70%);
}
.duel__intro { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.duel__text p:not(.chapter):not(.lede) { max-width: 50ch; color: #2C2B28; }
.duel__text .display-xl { margin-bottom: 1.4rem; font-size: clamp(3.4rem, 12vw, 9.5rem); }
.duel__figure { position: relative; max-width: 460px; justify-self: center; }
.duel__figure img { border: 3px solid var(--ink); box-shadow: 14px 14px 0 rgba(22, 22, 21, .9); }
.duel__figure figcaption {
    position: relative;
    margin: -12% 4% 0;
    padding: .9rem 1.1rem;
    background: var(--ink);
    color: var(--ivory);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.45;
    text-align: center;
    box-shadow: 8px 8px 0 var(--blood);
    translate: -6% 0;
}

.filmstrip {
    display: grid;
    gap: 14px;
    counter-reset: frame;
}
.filmstrip__frame {
    --sprocket: repeating-linear-gradient(to right, transparent 0 10px, rgba(236, 230, 218, .9) 10px 20px, transparent 20px 30px);
    position: relative;
    padding: 2.6rem 1.5rem 2.4rem;
    background: var(--ink);
    color: var(--ivory);
    transition: translate .35s var(--ease-out), opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.filmstrip__frame::before,
.filmstrip__frame::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px;
    height: 8px;
    background: var(--sprocket);
    opacity: .85;
}
.filmstrip__frame::before { top: 10px; }
.filmstrip__frame::after { bottom: 10px; }
.filmstrip__num {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    line-height: 1;
    color: var(--gold);
}
.filmstrip__frame h3 {
    margin: .6rem 0 .35rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.filmstrip__frame p { font-family: var(--f-type); font-size: .95rem; color: var(--ivory-85); }
.filmstrip__frame:hover { translate: 0 -6px; }
.filmstrip__frame:nth-child(3) { box-shadow: inset 0 -5px 0 var(--blood); }
.filmstrip__frame--shot { background: var(--blood); }
.filmstrip__frame--shot .filmstrip__num { color: var(--ivory); }
.filmstrip__frame--shot p { color: var(--ivory); }

.shot {
    display: grid;
    gap: 2rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(22px, 3.5vw, 44px);
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 12px 12px 0 var(--ink);
}
.shot__rule p { color: #2C2B28; max-width: 46ch; }
.shot__controls .field-range:last-child { margin-bottom: 0; }
.shot__threshold {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .8rem;
    font-family: var(--f-cond);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.shot__threshold b { font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--blood); font-variant-numeric: tabular-nums; }
.shot__dice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 1.1rem; }
.shot__dice span {
    display: grid;
    place-items: center;
    height: 58px;
    border: 2px solid var(--ink);
    font-family: var(--f-cond);
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
    background: var(--ivory);
}
.shot__result {
    margin-top: .9rem;
    min-height: 2.6em;
    font-family: var(--f-cond);
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.shot__result.is-hit { color: var(--blood); }
.shot.is-hit .shot__dice span { border-color: var(--blood); }

@media (min-width: 700px) {
    .filmstrip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .duel__intro { grid-template-columns: 1.15fr .85fr; }
    .filmstrip { grid-template-columns: repeat(4, 1fr); }
    .shot { grid-template-columns: 1fr 1fr .9fr; align-items: start; }
}

/* ---------- 12. Chapitre V : La Réputation ---------- */
.reputation {
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 120px),
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(214, 173, 54, .08), transparent 70%);
}
.reputation__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.reputation .display-lg { margin-bottom: 1.4rem; }

.dossiers { display: grid; gap: 1.2rem; margin-top: 2rem; }
.dossier {
    position: relative;
    padding: 1.6rem 1.3rem 1.2rem;
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--f-type);
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
    transition: transform .3s var(--ease-out);
}
.dossier:nth-child(1) { transform: rotate(-.8deg); }
.dossier:nth-child(2) { transform: rotate(.6deg); margin-left: 4%; }
.dossier:nth-child(3) { transform: rotate(-.4deg); margin-left: 1%; }
.dossier:hover { transform: rotate(0) translateX(4px); }
.dossier__tab {
    position: absolute;
    top: -14px; left: 1.1rem;
    padding: .25em .8em;
    font-family: var(--f-cond);
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ivory);
    background: var(--blood);
}
.dossier--legende .dossier__tab { background: var(--gold); color: var(--ink); }
.dossier--rumeurs .dossier__tab { background: var(--steel); }

.register {
    position: relative;
    padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 48px) clamp(28px, 4vw, 44px) clamp(48px, 6vw, 76px);
    background-color: #E6DCC8;
    background-image:
        linear-gradient(to right, transparent calc(clamp(48px, 6vw, 76px) - 16px), rgba(185, 43, 39, .55) calc(clamp(48px, 6vw, 76px) - 16px) calc(clamp(48px, 6vw, 76px) - 14px), transparent 0),
        repeating-linear-gradient(to bottom, transparent 0 31px, rgba(75, 95, 114, .22) 31px 32px);
    color: var(--ink);
    box-shadow: 14px 14px 0 rgba(0, 0, 0, .45);
    rotate: -.6deg;
}
.register__star {
    position: absolute;
    top: clamp(-70px, -6vw, -40px); right: clamp(-44px, -3vw, -12px);
    width: clamp(110px, 14vw, 180px);
    transform: rotate(14deg);
    filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .35));
    pointer-events: none;
}
.register__head {
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel);
}
.register__title {
    margin: .6rem 0 .8rem;
    padding-right: clamp(70px, 9vw, 120px);
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1;
    text-transform: uppercase;
}
.register__intro { font-size: 1rem; max-width: 40ch; color: #2C2B28; }
.register__table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    font-family: var(--f-type);
    font-size: .9rem;
    line-height: 1.45;
}
.register__table th,
.register__table td { padding: .7rem .6rem; text-align: left; vertical-align: top; border-bottom: 1.5px solid rgba(22, 22, 21, .5); }
.register__table thead th {
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom-width: 3px;
    border-bottom-color: var(--ink);
}
.register__table tbody th { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--blood); width: 3.2rem; }
.register__sign {
    margin-top: 1.4rem;
    font-family: var(--f-type);
    font-size: .85rem;
    text-align: right;
    color: var(--ink-70);
}

@media (min-width: 1024px) {
    .reputation__grid { grid-template-columns: .85fr 1.15fr; }
}

/* ---------- 13. Chapitre VI : Les Crapules ---------- */
.crapules {
    background-image:
        radial-gradient(ellipse 80% 70% at 50% 40%, #4F6478 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(22, 22, 21, .55) 100%);
}
.crapules .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.carousel__controls { display: flex; align-items: center; gap: .6rem; }
.carousel__count {
    margin-right: .8rem;
    font-family: var(--f-type);
    font-size: .9rem;
    letter-spacing: .12em;
    color: var(--ivory-70);
}
.carousel__count b { font-family: var(--f-cond); font-weight: 400; font-size: 1.6rem; color: var(--ivory); }
.carousel__btn {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border: 2px solid var(--ivory);
    background: transparent;
    color: var(--ivory);
    transition: background-color .2s, color .2s, opacity .2s, transform .15s;
}
.carousel__btn:hover:not(:disabled) { background: var(--ivory); color: var(--ink); }
.carousel__btn:active:not(:disabled) { transform: scale(.94); }
.carousel__btn:disabled { opacity: .3; cursor: default; }

.carousel__track {
    --card-w: min(82vw, 380px);
    --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    padding: 12px var(--edge) 34px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -6px; }

.card {
    flex: 0 0 var(--card-w);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 10px 10px 0 rgba(22, 22, 21, .5);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 14px 16px 0 rgba(22, 22, 21, .5); }
.card__img {
    position: relative;
    aspect-ratio: 4 / 4.3;
    overflow: hidden;
    border-bottom: 3px solid var(--ink);
}
.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    mix-blend-mode: multiply;
    transition: transform .8s var(--ease-out);
}
.card:hover .card__img img { transform: scale(1.045); }
.card__tag {
    position: absolute;
    left: 0; bottom: 0;
    padding: .35em .75em .3em;
    font-family: var(--f-cond);
    font-size: 1.45rem;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ivory);
    background: var(--blood);
}
.card__tag--steel { background: var(--steel); }
.card__tag--ink { background: var(--ink); color: var(--gold); }
.card__tag--gold { background: var(--gold); color: var(--ink); }
.card__body { display: flex; flex-direction: column; gap: 1.1rem; flex: 1; padding: 1.3rem 1.3rem 1.5rem; }
.card__quote {
    font-family: var(--f-type);
    font-size: 1.08rem;
    line-height: 1.45;
}
.card__meta { display: grid; gap: .5rem; padding-top: .9rem; border-top: 1.5px dashed rgba(22, 22, 21, .35); }
.card__meta div { display: grid; grid-template-columns: 6.6rem 1fr; gap: .6rem; align-items: baseline; }
.card__meta dt {
    font-family: var(--f-cond);
    font-size: .82rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--steel);
}
.card__meta dd { font-size: .95rem; line-height: 1.4; }
.card__stats { display: grid; gap: .5rem; margin-top: auto; }
.stat {
    display: grid;
    grid-template-columns: 6.6rem 1fr;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-cond);
    font-size: .82rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.stat meter {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 9px;
    border: 0;
    background: var(--ink-15);
}
.stat meter::-webkit-meter-bar { height: 9px; border: 0; border-radius: 0; background: var(--ink-15); }
.stat meter::-webkit-meter-optimum-value { background: var(--blood); border-radius: 0; }
.stat meter::-moz-meter-bar { background: var(--blood); }
.card__link { align-self: flex-start; font-size: .95rem; }

@media (min-width: 1024px) {
    .carousel__track { --card-w: calc((min(100vw, var(--container)) - 2 * var(--gutter) - 2 * 28px) / 3); }
}

/* Générique de fin : le casting complet */
.casting {
    margin-top: clamp(3.5rem, 8vw, 6rem);
    padding-top: 2.4rem;
    border-top: 1px solid var(--ivory-20);
    text-align: center;
}
.casting__title {
    margin-bottom: 2.2rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.casting__title span {
    display: block;
    margin-bottom: .5rem;
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .2em;
    color: var(--gold);
}
.casting__list { display: grid; gap: 1.6rem 2rem; }
.casting__list dt {
    font-family: var(--f-cond);
    font-size: 1rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}
.casting__list dd { margin-top: .3rem; font-size: .98rem; color: var(--ivory-85); }
@media (min-width: 600px) { .casting__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .casting__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 14. Chapitre VII : L'Armurerie ---------- */
.boutique {
    background-image:
        radial-gradient(ellipse 55% 45% at 50% 38%, rgba(214, 173, 54, .12), transparent 70%),
        radial-gradient(ellipse 60% 35% at 50% 100%, rgba(185, 43, 39, .2), transparent 70%);
}
.boutique__proverb {
    margin-top: 1.4rem;
    font-family: var(--f-type);
    font-size: 1.05rem;
    color: var(--ivory-85);
}
.boutique__proverb span { display: block; margin-top: .3rem; color: var(--gold); font-size: .9rem; }

.offers {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
    align-items: stretch;
}
.offer {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--charcoal);
    border: 1px solid var(--ivory-12);
    transition: translate .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out), opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.offer:hover { translate: 0 -6px; border-color: var(--ivory-20); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.offer__visual {
    display: grid;
    place-items: center;
    height: 210px;
    overflow: hidden;
    border-bottom: 1px solid var(--ivory-12);
    background: radial-gradient(ellipse at 50% 60%, rgba(242, 241, 240, .06), transparent 70%);
}
.offer__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem clamp(1.2rem, 2.5vw, 2rem) 1.8rem; }
.offer__kicker {
    font-family: var(--f-type);
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
.offer__title {
    margin: .4rem 0 .3rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.offer__price { display: flex; align-items: baseline; gap: .15rem; margin: .4rem 0 .8rem; font-family: var(--f-cond); }
.offer__amount { font-size: 4.4rem; line-height: .9; font-variant-numeric: tabular-nums; }
.offer__cur { font-size: 2rem; color: var(--ivory-70); }
.offer__plus {
    margin-left: .8rem;
    padding: .25em .55em;
    border: 1px solid var(--gold);
    font-family: var(--f-type);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    align-self: center;
}
.offer__desc { color: var(--ivory-85); font-size: 1rem; margin-bottom: 1.2rem; }
.offer__list { display: grid; gap: .55rem; margin-bottom: 1.8rem; padding-top: 1.1rem; border-top: 1px dashed var(--ivory-20); }
.offer__list li { position: relative; padding-left: 1.5rem; font-size: 1rem; }
.offer__list li::before {
    content: "";
    position: absolute;
    left: .2rem; top: .6em;
    width: 8px; height: 8px;
    background: var(--blood-hot);
    transform: rotate(45deg);
}
.offer__cta { margin-top: auto; }
.offer__unavailable {
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: .8em 1em;
    border: 2px dashed var(--ivory-20);
    font-family: var(--f-cond);
    font-size: 1.05rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ivory-70);
    text-align: center;
}
.offer__unavailable small {
    display: block;
    margin-top: .3rem;
    font-family: var(--f-type);
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--smoke);
}

/* L'Intégrale, mise en avant */
.offer--featured {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, #2E2A22 0%, var(--charcoal) 55%);
    box-shadow: 0 0 0 6px rgba(214, 173, 54, .08), 0 30px 60px rgba(0, 0, 0, .5);
}
.offer--featured:hover { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(214, 173, 54, .14), 0 34px 70px rgba(0, 0, 0, .55); }
.offer--featured .offer__visual { height: 270px; background: radial-gradient(ellipse at 50% 55%, rgba(214, 173, 54, .2), transparent 65%); }
.offer--featured .offer__title { font-family: var(--f-display); font-size: 2.5rem; }
.offer--featured .offer__amount { color: var(--gold); font-size: 5.2rem; }
.offer__ribbon {
    position: absolute;
    top: 14px; left: -8px;
    z-index: 2;
    padding: .4em .9em;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--f-cond);
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--ink);
}
.offer__disclaimer {
    padding: .5rem 1rem 0;
    font-family: var(--f-type);
    font-size: .72rem;
    color: var(--smoke);
    text-align: center;
}

/* Le livre : maquette 3D en CSS (illustrative) */
.book {
    --rx: 4deg;
    --ry: 30deg;
    --w: 150px;
    --h: 206px;
    --d: 30px;
    position: relative;
    width: var(--w);
    height: var(--h);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s var(--ease-out);
}
.book__cover,
.book__pages,
.book::before,
.book::after { position: absolute; backface-visibility: hidden; }
.book__cover {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 14px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(135deg, #A72622, #6E1715);
    box-shadow: inset 0 0 0 6px #7B1A17, inset 0 0 0 7px var(--gold);
    transform: translateZ(calc(var(--d) / 2));
}
.book__title {
    font-family: var(--f-display);
    font-size: 1.15rem;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    color: var(--gold);
}
.book__rule { width: 60%; height: 1px; background: var(--gold); opacity: .7; }
.book__skull { width: 26px; height: 26px; color: var(--gold); fill: currentColor; }
/* Dos (côté gauche) */
.book::before {
    content: "AMEN, ENFOIRÉ !";
    top: 0;
    left: calc(50% - var(--d) / 2);
    width: var(--d);
    height: var(--h);
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    font-family: var(--f-cond);
    font-size: .68rem;
    letter-spacing: .16em;
    color: var(--gold);
    background: linear-gradient(to right, #4E100E, #861D1A 60%, #5E1311);
    transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
}
/* Tranche (côté droit) */
.book__pages {
    top: 4px;
    left: calc(50% - var(--d) / 2 + 2px);
    width: calc(var(--d) - 4px);
    height: calc(var(--h) - 8px);
    background: repeating-linear-gradient(to right, #EFE8D6 0 2px, #D9CFB8 2px 3px);
    transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
}
/* Quatrième de couverture + ombre portée */
.book::after {
    content: "";
    inset: 0;
    background: #4E100E;
    transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
}
.offer__visual--book { perspective: none; }
.offer__visual--book::after {
    content: "";
    position: absolute;
    width: 170px; height: 26px;
    margin-top: 230px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%);
}
.offer__visual--book { position: relative; }

/* Le télégramme (numérique) */
.telegram {
    position: relative;
    width: 210px;
    padding: 16px 18px 18px;
    background: var(--parchment);
    color: var(--ink);
    transform: rotate(-4deg);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .45);
    transition: transform .4s var(--ease-out);
}
.offer:hover .telegram { transform: rotate(-1deg) translateY(-4px); }
.telegram__head {
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid var(--ink);
    font-family: var(--f-cond);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.telegram__body { font-family: var(--f-type); font-size: .8rem; line-height: 1.6; }
.telegram__stamp {
    position: absolute;
    right: -10px; bottom: -12px;
    padding: .2em .5em;
    border: 3px solid var(--blood);
    font-family: var(--f-cond);
    font-size: 1.3rem;
    letter-spacing: .08em;
    color: var(--blood);
    background: rgba(242, 241, 240, .7);
    transform: rotate(-12deg);
}

/* Le coffret (pépite) */
.chest { position: relative; width: 190px; height: 140px; }
.chest__glow {
    position: absolute;
    left: 50%; top: 32px;
    width: 160px; height: 60px;
    background: radial-gradient(ellipse, rgba(214, 173, 54, .55), transparent 70%);
    transform: translateX(-50%);
    filter: blur(6px);
    transition: opacity .4s;
    opacity: .6;
}
.chest__lid {
    position: absolute;
    left: 6px; right: 6px; top: 6px;
    height: 46px;
    border-radius: 40px 40px 4px 4px / 30px 30px 4px 4px;
    background:
        linear-gradient(to right, transparent 22%, var(--gold) 22% 28%, transparent 28% 72%, var(--gold) 72% 78%, transparent 78%),
        linear-gradient(#6A4322, #4A2D16);
    border: 2px solid #2A190B;
    transform-origin: bottom;
    transition: transform .5s var(--ease-out);
    z-index: 2;
}
.chest__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 92px;
    background:
        linear-gradient(to right, transparent 20%, var(--gold) 20% 26%, transparent 26% 74%, var(--gold) 74% 80%, transparent 80%),
        repeating-linear-gradient(to bottom, #5A3A1D 0 14px, #4B2F17 14px 15px);
    border: 2px solid #2A190B;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .45);
}
.chest__lock {
    position: absolute;
    left: 50%; top: -2px;
    width: 26px; height: 32px;
    background: linear-gradient(var(--gold), #A9852A);
    border: 2px solid #2A190B;
    transform: translateX(-50%);
}
.offer--nugget { border-color: rgba(214, 173, 54, .35); }
.offer--nugget:hover .chest__lid { transform: rotateX(28deg) translateY(-6px); }
.offer--nugget:hover .chest__glow { opacity: 1; }

.boutique__status {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .7rem;
    max-width: 640px;
    margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ivory-20);
    font-family: var(--f-type);
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ivory-85);
}
.boutique__status .icon { margin-top: .2em; color: var(--gold); }
.boutique__status[hidden] { display: none; }

@media (min-width: 720px) and (max-width: 1023px) {
    .offers { grid-template-columns: 1fr 1fr; }
    .offer--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: 1fr auto; }
    .offer--featured .offer__visual { grid-column: 1; grid-row: 1; height: auto; min-height: 300px; border-bottom: 0; }
    .offer--featured .offer__disclaimer { grid-column: 1; grid-row: 2; padding-bottom: 1rem; }
    .offer--featured .offer__body { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--ivory-12); }
}
@media (max-width: 1023px) {
    .offer--featured { order: -1; }
}
@media (min-width: 1024px) {
    .offers { grid-template-columns: 1fr 1.12fr 1fr; align-items: end; }
    .offer--featured { margin-top: -28px; }
}

/* ---------- 15. Chapitre VIII : Le Cimetière ---------- */
.cimetiere {
    background-image:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 3px, transparent 3px 96px),
        radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(22, 22, 21, .45) 100%);
}
.cimetiere__disclaimer {
    display: inline-block;
    margin-top: 1.4rem;
    padding: .6em 1em;
    border: 2px dashed rgba(242, 241, 240, .6);
    font-family: var(--f-type);
    font-size: .92rem;
    color: var(--ivory);
}

.posters {
    display: grid;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 1080px;
    margin-inline: auto;
}
.poster {
    position: relative;
    width: min(100%, 340px);
    justify-self: center;
    padding: 1.6rem 1.4rem 1.4rem;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(139, 101, 51, .18), transparent 50%),
        radial-gradient(ellipse at 85% 90%, rgba(139, 101, 51, .22), transparent 45%),
        #ECE2C9;
    color: var(--ink);
    text-align: center;
    box-shadow: 12px 14px 0 rgba(22, 22, 21, .45);
    outline: 3px solid var(--ink);
    outline-offset: -12px;
    rotate: -2deg;
    transition: rotate .35s var(--ease-out), translate .35s var(--ease-out), opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.poster--alt { rotate: 2.4deg; }
.posters li:nth-child(3) { rotate: -1deg; }
.poster:hover { rotate: 0deg; translate: 0 -6px; }
.poster__nail {
    position: absolute;
    top: 8px; left: 50%;
    width: 14px; height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #9a9a9a, #3a3a3a 60%);
    box-shadow: 1px 2px 3px rgba(0, 0, 0, .55);
}
.poster__wanted {
    margin-top: .8rem;
    font-family: var(--f-display);
    font-size: clamp(2.3rem, 4.4vw, 3.3rem);
    line-height: .95;
    text-transform: uppercase;
}
.poster__dead {
    margin: .2rem 0 1rem;
    font-family: var(--f-cond);
    font-size: .9rem;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.poster__portrait {
    width: 150px;
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    border: 2px solid var(--ink);
    background:
        repeating-linear-gradient(45deg, rgba(22, 22, 21, .06) 0 2px, transparent 2px 7px),
        #DCCDAA;
    color: rgba(22, 22, 21, .82);
    overflow: hidden;
}
.poster__portrait svg { width: 100%; height: 100%; transform: translateY(8%); }
.poster__crime {
    padding: .7rem .8rem;
    background: rgba(242, 241, 240, .7);
    font-family: var(--f-type);
    font-size: .92rem;
    line-height: 1.45;
    text-align: left;
}
.poster__label {
    margin-top: 1rem;
    padding-top: .7rem;
    border-top: 2px solid var(--ink);
    font-family: var(--f-cond);
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--ink-70);
}
.poster__name { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--blood); }

@media (min-width: 860px) {
    .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); }
    .posters li:nth-child(2) { margin-top: 2.5rem; }
}

/* ---------- 16. Footer ---------- */
.site-footer {
    position: relative;
    padding: clamp(64px, 8vw, 100px) 0 28px;
    background: var(--ink);
    color: var(--ivory-85);
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -23px;
    height: 24px;
    background: var(--ink);
    -webkit-mask: var(--torn) bottom / 600px 24px repeat-x;
    mask: var(--torn) bottom / 600px 24px repeat-x;
}
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__logo {
    margin-bottom: .8rem;
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: .95;
    text-transform: uppercase;
    color: var(--ivory);
}
.site-footer__brand p:last-child { max-width: 30ch; font-style: italic; }
.site-footer h2 {
    margin-bottom: 1rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}
.site-footer__col ul { display: grid; gap: .15rem; }
.site-footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    text-decoration: none;
    background: linear-gradient(var(--blood-hot), var(--blood-hot)) no-repeat 0 85% / 0 2px;
    transition: background-size .3s var(--ease-out), color .2s;
}
.site-footer__col a:hover { color: var(--ivory); background-size: 100% 2px; }
.site-footer__repaire p { font-size: .98rem; max-width: 36ch; }
.site-footer__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.4rem;
    border-top: 1px solid var(--ivory-12);
    font-family: var(--f-type);
    font-size: .82rem;
    color: var(--smoke);
}
.site-footer__top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; text-decoration: none; }
.site-footer__top .icon { transform: rotate(180deg); }
.site-footer__top:hover { color: var(--ivory); }

@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr .9fr .9fr 1.3fr; } }

/* ---------- 17. Modale « Mon compte » ---------- */
.auth {
    width: min(880px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}
.auth::backdrop { background: rgba(22, 22, 21, .86); }
.auth[open] .auth__poster { animation: poster-in .4s var(--ease-out) both; }
@keyframes poster-in {
    from { opacity: 0; transform: translateY(24px) rotate(-1.5deg) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.auth__poster {
    display: grid;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ivory);
    border: 6px solid var(--ink);
    box-shadow: 12px 12px 0 var(--blood);
}
.auth__side {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.2rem;
    background: var(--blood);
    color: var(--ivory);
    text-align: center;
}
.auth__wanted { font-family: var(--f-display); font-size: 2rem; line-height: 1; text-transform: uppercase; }
.auth__dead {
    font-family: var(--f-type);
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ivory);
    padding-bottom: .2rem;
}
.auth__skull, .auth__motto { display: none; }
.auth__main { position: relative; padding: clamp(22px, 4vw, 44px); }
.auth__close {
    position: absolute;
    top: 8px; right: 8px;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    background: var(--ink);
    color: var(--ivory);
    transition: background-color .2s, transform .2s;
}
.auth__close:hover { background: var(--blood); transform: rotate(90deg); }
.auth__title {
    padding-right: 56px;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1;
    text-transform: uppercase;
}
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 1.2rem 0 1.5rem; border: 2px solid var(--ink); }
.auth__tab {
    min-height: 46px;
    border: 0;
    background: transparent;
    font-family: var(--f-cond);
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    transition: background-color .2s, color .2s;
}
.auth__tab[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.auth__tab:not([aria-pressed="true"]):hover { background: rgba(22, 22, 21, .08); }
.auth__tab:focus-visible { outline-color: var(--blood); outline-offset: -5px; }

.auth__form { display: grid; gap: 1rem; }
.auth__register { display: grid; gap: 1rem; }
.auth__register[hidden] { display: none; }
.field label {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--f-cond);
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.field input {
    width: 100%;
    min-height: 50px;
    padding: .7rem .9rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: #FBFAF8;
    font-family: var(--f-type);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #7A766F; }
.field input:focus { outline: none; border-color: var(--blood); box-shadow: 0 0 0 3px rgba(185, 43, 39, .25); }
.field input[aria-invalid="true"] { border-color: var(--blood); background: #FBF0EE; }
.field__pw { position: relative; }
.field__pw input { padding-right: 56px; }
.field__reveal {
    position: absolute;
    top: 3px; right: 3px; bottom: 3px;
    width: 46px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink-70);
}
.field__reveal[aria-pressed="true"] { color: var(--blood); }
.field__reveal:focus-visible { outline-color: var(--blood); outline-offset: -4px; }
.auth__form .btn { margin-top: .5rem; }
.auth__form .btn[aria-busy="true"] { cursor: progress; }
.auth__form .btn[aria-busy="true"]::after {
    content: "";
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth__msg { min-height: 1.4em; font-family: var(--f-type); font-size: .95rem; line-height: 1.45; }
.auth__msg.is-error { color: var(--blood); }
.auth__msg.is-success { color: var(--steel); }
.auth__msg.is-info { color: var(--ink-70); }

@media (min-width: 720px) {
    .auth__poster { grid-template-columns: 1fr 2fr; }
    .auth__side {
        flex-direction: column;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 2.2rem 1.5rem;
        border-right: 6px solid var(--ink);
    }
    .auth__wanted { font-size: clamp(2.6rem, 5vw, 3.4rem); }
    .auth__skull { display: block; width: 96px; height: 96px; opacity: .35; fill: currentColor; }
    .auth__motto { display: block; font-family: var(--f-type); font-size: .82rem; font-style: italic; line-height: 1.5; }
}

/* ---------- 18. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .site-nav__fuse { animation: none !important; }
}

/* ---------- 19. Impression ---------- */
@media print {
    body::after, .site-nav, .hero__bars, .hero__veil, .auth { display: none !important; }
    .section::before { display: none; }
    .js .reveal { opacity: 1; transform: none; }
}
