/* ==========================================================================
   AMEN, ENFOIRÉ ! — Page « L'Univers » (univers.html)
   S'appuie sur main.css (tokens, navigation, boutons, sections, footer).
   ========================================================================== */

/* La page s'ouvre sur du papier : la navigation est opaque d'emblée */
.page-univers .site-nav {
    background: rgba(30, 31, 29, .97);
    box-shadow: 0 1px 0 rgba(185, 43, 39, .55);
}
.page-univers .site-nav .site-nav__fuse { opacity: 1; }

/* ---------- En-tête : l'affiche sur papier ---------- */
.u-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(209, 189, 159, .55), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(209, 189, 159, .5), transparent 70%);
    color: var(--ink);
    overflow: hidden;
}
.u-hero__kicker { margin-bottom: .8rem; }
.u-hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(3.6rem, 15vw, 13rem);
    line-height: .85;
    letter-spacing: -.01em;
    text-transform: uppercase;
    animation: u-title .9s .1s var(--ease-out) both;
}
.u-hero__the { color: var(--blood); }
.u-hero__lede {
    max-width: 34ch;
    margin-top: 1rem;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-style: italic;
    line-height: 1.4;
    animation: rise .7s .45s var(--ease-out) both;
}
@keyframes u-title {
    from { opacity: 0; transform: translateY(30px); letter-spacing: .04em; }
    to   { opacity: 1; transform: none; letter-spacing: -.01em; }
}

/* Le panorama complet, coulures d'encre comprises, se fond dans le papier */
.u-hero__plate {
    position: relative;
    margin: clamp(.5rem, 2vw, 1.5rem) 0 0;
    pointer-events: none;
}
.u-hero__plate img {
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
    object-position: 58% 50%;
    mix-blend-mode: multiply;
    /* bords fondus : pas de couture visible entre le papier de l'image et celui de la page */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
    animation: fade 1.4s .25s var(--ease-out) both;
}

.u-hero__toc {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: clamp(-40px, -3vw, -10px);
}
.u-hero__toc a {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: .9rem;
    padding: 1rem 1.2rem;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--f-cond);
    font-size: 1.35rem;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 6px 6px 0 var(--blood);
    transition: translate .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.u-hero__toc a span { grid-row: span 2; font-family: var(--f-display); font-size: 1.8rem; color: var(--gold); }
.u-hero__toc a em {
    font-family: var(--f-type);
    font-size: .78rem;
    font-style: normal;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--ivory-70);
}
.u-hero__toc a:hover { translate: 2px 2px; box-shadow: 3px 3px 0 var(--blood); }
@media (min-width: 760px) {
    .u-hero__toc { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- Onglets (motif commun aux chapitres I et II) ---------- */
.tabs { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.tabs__list { display: none; }
.js .tabs__list {
    display: flex;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.js .tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
    flex: none;
    display: grid;
    gap: .2rem;
    min-height: 48px;
    padding: .8rem 1rem;
    border: 0;
    border-left: 4px solid transparent;
    background: rgba(242, 241, 240, .06);
    color: var(--ivory-70);
    text-align: left;
    scroll-snap-align: start;
    transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, translate .25s var(--ease-out);
}
.tabs__tab:hover { color: var(--ivory); background: rgba(242, 241, 240, .12); }
.tabs__tab[aria-selected="true"] {
    background: var(--ivory);
    color: var(--ink);
    border-left-color: var(--blood);
    box-shadow: 5px 5px 0 var(--gold);
}
.tabs__name { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; }
.tabs__hint { font-family: var(--f-type); font-size: .76rem; color: inherit; opacity: .8; }
.tabs__num { font-family: var(--f-type); font-size: .75rem; color: var(--gold); }
.tabs__tab[aria-selected="true"] .tabs__num { color: var(--blood); }

/* Sans JS : tous les panneaux sont visibles les uns sous les autres */
.tabs__panels { display: grid; gap: 2rem; min-width: 0; }
.js .tabs__panel[hidden] { display: none; }
.js .tabs__panel.is-entering { animation: panel-in .5s var(--ease-out) both; }
@keyframes panel-in {
    from { opacity: 0; transform: translateX(-18px) rotate(-.6deg); }
    to   { opacity: 1; transform: none; }
}
.tabs__panel:focus-visible { outline-offset: 6px; }

@media (min-width: 1024px) {
    .tabs { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr); }
    .js .tabs__list {
        flex-direction: column;
        margin: 0;
        padding: 0;
        overflow: visible;
        position: sticky;
        top: calc(var(--nav-h) + 24px);
    }
    .tabs__tab { padding: 1.1rem 1.3rem; }
    .tabs__tab:hover { translate: 6px 0; }
    .tabs__tab[aria-selected="true"] { translate: 10px 0; }
    .tabs--monde .tabs__name { font-size: 1.7rem; }
}

/* ---------- Chapitre I : Le Monde ---------- */
.monde {
    background-image: radial-gradient(ellipse 60% 50% at 90% 10%, rgba(185, 43, 39, .14), transparent 70%);
}
.world {
    position: relative;
    display: grid;
    gap: 1.8rem;
    padding: clamp(22px, 3.5vw, 44px);
    border: 3px solid var(--ink);
    box-shadow: 14px 14px 0 rgba(0, 0, 0, .55);
}
.world__kicker {
    font-family: var(--f-type);
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blood);
}
.world__title {
    margin: .4rem 0 1rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: .95;
    text-transform: uppercase;
}
.world__body > p:not(.world__kicker):not(.world__stamp):not(.world__sub) {
    max-width: 52ch;
    font-family: var(--f-type);
    font-size: 1.05rem;
    line-height: 1.65;
}

.world--dust { background: var(--ivory); color: var(--ink); rotate: .5deg; }
.world__img img { width: 100%; border: 2px solid var(--ink); mix-blend-mode: multiply; }
@media (max-width: 719px) {
    .world__img img { max-height: 320px; object-fit: cover; object-position: 50% 30%; }
    .u-hero__plate img { min-height: 250px; }
}
.world__stamp {
    display: inline-block;
    margin-top: 1.6rem;
    padding: .8rem 1.2rem;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    box-shadow: 6px 6px 0 var(--gold);
    rotate: -1.5deg;
}

.world--law {
    background: linear-gradient(160deg, #536A80, var(--steel-deep));
    color: var(--ivory);
    border-color: var(--ivory-20);
    rotate: -.5deg;
    overflow: hidden;
}
.world--law .world__kicker { color: var(--gold); }
.world--law .world__title { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--gold); padding-right: 90px; }
.world__star {
    position: absolute;
    right: -30px; bottom: -40px;
    width: clamp(150px, 22vw, 260px);
    opacity: .3;
    rotate: 14deg;
    pointer-events: none;
}
.world__cols { display: grid; gap: 1rem; position: relative; }
.world__col { padding: 1.1rem 1.2rem; background: rgba(22, 22, 21, .3); border: 1px solid var(--ivory-20); }
.world__col h4 {
    margin-bottom: .4rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ivory);
}
.world__col p { font-family: var(--f-type); font-size: 1rem; line-height: 1.6; color: var(--ivory-85); }

.world--faith {
    background: var(--parchment);
    color: var(--ink);
    text-align: center;
    rotate: 1deg;
    outline: 3px double var(--ink);
    outline-offset: -16px;
}
.world--faith .world__body { padding: clamp(10px, 3vw, 30px); justify-items: center; display: grid; }
.world--faith .world__body > p:last-child { text-align: justify; text-align-last: center; }
.world__sub {
    margin-bottom: 1.4rem;
    font-family: var(--f-display);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    color: var(--blood);
}

@media (min-width: 720px) {
    .world--dust { grid-template-columns: .85fr 1.15fr; align-items: center; }
    .world__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Chapitre II : Les carrières ---------- */
.carrieres {
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 20%, #4F6478 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(22, 22, 21, .5) 100%);
}
.carrieres__head { display: grid; gap: .5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.carrieres__motto {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    color: var(--gold);
}
.carrieres__intro { max-width: 56ch; font-size: 1.08rem; color: var(--ivory-85); }
@media (min-width: 1024px) {
    .carrieres__head { grid-template-columns: 1fr 1fr; align-items: end; }
    .carrieres__head .chapter, .carrieres__head .display-lg { grid-column: 1; }
    .carrieres__motto { grid-column: 2; grid-row: 1 / span 2; align-self: end; text-align: right; }
    .carrieres__intro { grid-column: 2; justify-self: end; text-align: right; }
}

.tabs--roles .tabs__name { font-family: var(--f-cond); font-size: 1.3rem; letter-spacing: .03em; }
@media (min-width: 1024px) {
    .tabs--roles .tabs__list { gap: 6px; }
    .tabs--roles .tabs__tab { grid-template-columns: 2rem 1fr; padding: .8rem 1.1rem; }
    .tabs--roles .tabs__num { grid-row: span 2; align-self: center; }
}

.dossier-role {
    display: grid;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 14px 14px 0 rgba(22, 22, 21, .5);
}
.dossier-role__img { position: relative; margin: 0; border-bottom: 3px solid var(--ink); background: var(--ivory); }
.dossier-role__img img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: 50% 15%;
    mix-blend-mode: multiply;
}
.dossier-role__img figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: .55rem 1rem;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--f-display);
    font-size: 1.15rem;
    text-align: center;
    text-transform: uppercase;
}
.dossier-role__type {
    display: grid;
    place-items: center;
    min-height: 200px;
    background:
        repeating-linear-gradient(-45deg, rgba(242, 241, 240, .05) 0 2px, transparent 2px 9px),
        var(--blood-deep);
    border-bottom: 3px solid var(--ink);
    overflow: hidden;
}
.dossier-role__type span {
    font-family: var(--f-display);
    max-width: 100%;
    padding: 0 .4em;
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--ivory);
    rotate: -8deg;
    text-shadow: 4px 4px 0 var(--ink);
}
.dossier-role--press .dossier-role__type {
    background:
        repeating-linear-gradient(to bottom, rgba(22, 22, 21, .14) 0 1px, transparent 1px 7px),
        #E3DCCB;
}
.dossier-role--press .dossier-role__type span { color: var(--ink); text-shadow: 4px 4px 0 var(--gold); }

.dossier-role__body { padding: clamp(22px, 3.5vw, 40px); }
.dossier-role__kicker {
    font-family: var(--f-type);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blood);
}
.dossier-role__title {
    margin: .3rem 0 1.1rem;
    padding-bottom: .7rem;
    border-bottom: 3px solid var(--ink);
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    line-height: .95;
    text-transform: uppercase;
}
.dossier-role__lede { font-family: var(--f-type); font-size: 1.04rem; line-height: 1.6; max-width: 54ch; }

.career + .career { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1.5px dashed rgba(22, 22, 21, .35); }
.career__name { margin-bottom: .45rem; font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; color: var(--blood); }
.career + .career .career__name { color: var(--steel); }
.career > p { font-family: var(--f-type); font-size: .98rem; line-height: 1.6; }
.career__weapon {
    margin-top: .8rem;
    padding: .75rem 1rem;
    border-left: 4px solid var(--blood);
    background: rgba(22, 22, 21, .06);
    font-style: italic;
}
.career + .career .career__weapon { border-left-color: var(--steel); }
.career__weapon b {
    display: block;
    margin-bottom: .25rem;
    font-family: var(--f-cond);
    font-weight: 400;
    font-style: normal;
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.traits { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.4rem; }
.traits li {
    padding: .35em .75em;
    border: 2px solid var(--ink);
    font-family: var(--f-cond);
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.traits li:first-child { background: var(--ink); color: var(--ivory); }

.roster { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.roster > div {
    display: grid;
    gap: .2rem 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(22, 22, 21, .25);
}
.roster dt { font-family: var(--f-cond); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.roster dd { font-size: .98rem; color: #2C2B28; }
.roster dd a { color: var(--blood); font-weight: 600; }
@media (min-width: 560px) {
    .roster > div { grid-template-columns: 11rem 1fr; align-items: baseline; }
}
@media (min-width: 760px) {
    .dossier-role { grid-template-columns: minmax(220px, .8fr) 1.4fr; }
    .dossier-role__img, .dossier-role__type { border-bottom: 0; border-right: 3px solid var(--ink); }
    .dossier-role__img img { max-height: none; position: absolute; inset: 0; }
    .dossier-role__img { min-height: 420px; }
    .dossier-role__type span { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
}

.carrieres__cta {
    display: grid;
    gap: 1.2rem;
    align-items: center;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--ivory-20);
    background: rgba(22, 22, 21, .25);
}
.carrieres__cta p { font-family: var(--f-cond); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.carrieres__btns { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 900px) { .carrieres__cta { grid-template-columns: 1fr auto; } }
@media (max-width: 520px) { .carrieres__btns .btn { flex: 1 1 100%; } }

/* ---------- Chapitre III : la chronologie, sur des rails ---------- */
.chrono {
    background-image:
        radial-gradient(rgba(22, 22, 21, .2) 1.2px, transparent 1.6px),
        linear-gradient(170deg, #C4312C 0%, var(--blood) 50%, #9E2320 100%);
    background-size: 9px 9px, auto;
}
.rail {
    --rail-x: 26px;
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 980px;
    margin-inline: auto;
    padding-left: calc(var(--rail-x) + 44px);
}
/* Deux rails et des traverses de bois */
.rail::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--rail-x) - 17px);
    width: 34px;
    background:
        linear-gradient(to right, var(--ink) 0 4px, transparent 4px 30px, var(--ink) 30px 34px),
        repeating-linear-gradient(to bottom, transparent 0 14px, #4A2D16 14px 23px);
}
.rail__stop { position: relative; display: grid; gap: .6rem; min-width: 0; }
@media (min-width: 900px) { .rail__stop--now .rail__year { font-size: 2.2rem; padding-top: 1rem; } }
.rail__stop::before {
    content: "";
    position: absolute;
    left: calc((var(--rail-x) + 44px) * -1 + var(--rail-x) - 13px);
    top: .4rem;
    width: 26px; height: 26px;
    background: var(--gold);
    border: 4px solid var(--ink);
    rotate: 45deg;
}
.rail__year {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 8vw, 4.2rem);
    line-height: 1;
    color: var(--ivory);
    text-shadow: 4px 4px 0 var(--ink);
}
.rail__card {
    padding: clamp(20px, 3vw, 34px);
    background: var(--parchment);
    color: var(--ink);
    box-shadow: 12px 12px 0 rgba(22, 22, 21, .55);
}
.rail__stop:nth-child(odd) .rail__card { rotate: .6deg; }
.rail__stop:nth-child(even) .rail__card { rotate: -.6deg; background: var(--ivory); }
.rail__card h3 {
    margin-bottom: .8rem;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.05;
}
.rail__card p { font-family: var(--f-type); font-size: 1.05rem; line-height: 1.65; }
.rail__card blockquote {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--ink);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
}
.rail__stop--now::before { background: var(--blood-hot); }
.rail__stop--now .rail__card { background: var(--ink); color: var(--ivory); rotate: 0deg; box-shadow: 0 0 0 3px var(--gold), 12px 12px 0 rgba(22, 22, 21, .55); text-align: center; }
.rail__stop--now .rail__card h3 { font-family: var(--f-cond); font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
.rail__dust { font-family: var(--f-display) !important; font-size: clamp(1.15rem, 2vw, 1.45rem) !important; color: var(--gold); }
.rail__signs { display: flex; justify-content: center; gap: 1rem; margin-top: 1.6rem; }
.rail__signs span {
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    border: 4px solid var(--blood);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--f-cond);
    font-size: 1.8rem;
}
@media (min-width: 900px) {
    .rail__stop { grid-template-columns: 220px 1fr; align-items: start; gap: 2rem; }
    .rail__year { text-align: right; padding-top: .3rem; }
}

/* ---------- Appel final ---------- */
.u-outro { text-align: center; }
.u-outro__inner { display: grid; justify-items: center; gap: 1rem; }
.u-outro__title {
    font-family: var(--f-cond);
    font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 6.5rem);
    line-height: .92;
    text-transform: uppercase;
}
.u-outro__inner > p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-style: italic; }
.u-outro__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
@media (max-width: 520px) { .u-outro__btns .btn { flex: 1 1 100%; } }
