/* ==================================================
   VARIABLES DES HALLS
   ================================================== */

:root {
    --hall-paper: #eee7d9;
    --hall-paper-light: #f7f2e8;
    --hall-ink: #25251f;
    --hall-green: #26392f;
    --hall-dark: #101511;
    --hall-muted: #766e62;
    --hall-gold: #b89154;
    --hall-line: rgba(38, 36, 31, 0.18);
}


/* ==================================================
   ÉLÉMENTS COMMUNS
   ================================================== */

.hall-kicker {
    margin: 0 0 1rem;
    color: var(--hall-gold);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hall-scroll-link,
.editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.hall-scroll-link span,
.editorial-link span {
    transition: transform 0.25s ease;
}

.hall-scroll-link:hover span {
    transform: translateY(4px);
}

.editorial-link:hover span {
    transform: translateX(5px);
}

/* ==================================================
   EN-TÊTE DES HALLS
   ================================================== */

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 68px;
    padding: 0.9rem clamp(1.5rem, 4vw, 4.5rem);
    border-bottom: 1px solid rgba(238, 231, 217, 0.13);
    background: #151b17;
    color: #f2ede4;
}

.site-header__brand {
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.site-header__nav a {
    position: relative;
    color: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.68;
    transition: opacity 0.25s ease;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
    opacity: 1;
}

.site-header__nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.55rem;
    left: 0;
    height: 1px;
    background: currentColor;
}


/* ==================================================
   HERO CINÉMA
   ================================================== */

.cinema-hall-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6rem 1.5rem;
    background:
        url("../img/cinema/cinema-hall.webp")
        center / cover no-repeat;
    color: #f5f0e7;
    text-align: center;
}

.cinema-hall-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(7, 12, 9, 0.42),
            rgba(7, 12, 9, 0.86)
        );
}

.cinema-hall-hero__content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.cinema-hall-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.85;
}

.cinema-hall-hero__text {
    max-width: 610px;
    margin: 2rem auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.7;
}


/* ==================================================
   HERO LITTÉRATURE
   ================================================== */

.literature-hall-hero {
    position: relative;

    min-height: calc(100vh - 68px);

    display: grid;
    place-items: center;

    overflow: hidden;

    padding: clamp(6rem, 10vw, 10rem) 1.5rem;

    background: #11120f;

    color: #f4efe5;
    text-align: center;

    isolation: isolate;
}

/* Image vivante de la bibliothèque */

.literature-hall-hero::before {
    content: "";

    position: absolute;
    inset: -3%;
    z-index: -3;

    background-image:
        url("../img/litterature/litterature-hall.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.03);

    animation:
        literatureLibraryBreath
        28s ease-in-out
        infinite alternate;
}

@keyframes literatureLibraryBreath {

    from {
        transform:
            scale(1.03)
            translate3d(0, 0, 0);
    }

    to {
        transform:
            scale(1.085)
            translate3d(-0.8%, -0.5%, 0);
    }

}

.literature-hall-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            ellipse at center,
            rgba(20, 16, 13, 0.12) 0%,
            rgba(20, 16, 13, 0.32) 48%,
            rgba(12, 11, 10, 0.76) 100%
        ),
        linear-gradient(
            180deg,
            rgba(13, 12, 12, 0.22) 0%,
            rgba(13, 12, 12, 0.3) 48%,
            rgba(13, 12, 12, 0.72) 100%
        );

    pointer-events: none;
}



.literature-hall-hero__content {
    position: relative;
    z-index: 1;

    width: min(900px, 100%);
}

.literature-hall-hero h1 {
    margin: 0;

    color: var(--hall-paper-light);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.88;
}

.literature-hall-hero__text {
    max-width: 650px;

    margin: 2rem auto;

    color: rgba(247, 242, 232, 0.86);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.7;
}


/* ==================================================
   MANIFESTES
   ================================================== */

.hall-manifesto {
    padding: clamp(6rem, 10vw, 11rem) 1.5rem;
    text-align: center;
}

.hall-manifesto--dark {
    background: var(--hall-dark);
    color: var(--hall-paper-light);
}

.hall-manifesto--paper {
    background: var(--hall-paper-light);
    color: var(--hall-green);
}

.hall-manifesto blockquote {
    max-width: 950px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 4.3rem);
    font-style: italic;
    line-height: 1.25;
}


/* ==================================================
   ENTRÉE MISE EN AVANT
   ================================================== */

.featured-entry{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    min-height:700px;
}

.featured-entry__image{
    display:flex;
    justify-content:center;
    align-items:center;
}

.featured-entry__image img{
    width:420px;
    aspect-ratio:2 / 3;
    object-fit:cover;

    transition:transform .5s ease;
}

.featured-entry:hover .featured-entry__image img {
    transform:
        scale(1.22)
        rotate(-1deg);

    box-shadow:
        0 45px 90px rgba(0,0,0,.45);
}

.featured-entry__content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(4rem, 8vw, 9rem);
}

.featured-entry__content h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.featured-entry__content > p:not(.hall-kicker, .featured-entry__meta) {
    max-width: 560px;
    margin: 2rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.featured-entry__meta {
    margin: 1.3rem 0 0;
    color: var(--hall-muted);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.featured-entry--cinema {
    background: #263129;
    color: var(--hall-paper-light);
}

.featured-entry--literature {
    background: #dcd2c1;
    color: var(--hall-ink);
}

.featured-entry__book {
    display: grid;
    place-items: center;
    margin: 0;
    padding: clamp(4rem, 8vw, 8rem);
}

.featured-entry__book-placeholder {
    width: min(370px, 100%);
    aspect-ratio: 0.68;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 3rem 2.5rem;
    background: var(--hall-green);
    box-shadow: 20px 24px 45px rgba(38, 36, 31, 0.22);
    color: var(--hall-paper);
}

.featured-entry__book-placeholder p,
.featured-entry__book-placeholder span {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.featured-entry__book-placeholder strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1;
}


/* ==================================================
   CATALOGUES
   ================================================== */

.hall-catalogue {
    padding: clamp(6rem, 10vw, 10rem);
}

.hall-catalogue--cinema {
    background: #18201b;
    color: var(--hall-paper-light);
} 

.hall-catalogue--literature {
    background: var(--hall-paper-light);
    color: var(--hall-ink);
}

.hall-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    align-items: end;
    gap: 3rem;
    max-width: 1320px;
    margin: 0 auto 4rem;
}

.hall-section-header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    white-space: nowrap;
}

.hall-section-header > p {
    max-width: 340px;
    margin: 0 0 0.35rem;
    color: #aaa293;
    line-height: 1.7;
}

.hall-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1320px;
    margin-inline: auto;
    border-top: 1px solid rgba(247, 242, 232, 0.24);
    border-left: 1px solid rgba(247, 242, 232, 0.24);
}

.hall-entry-card {
    min-height: 330px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem;
    border-right: 1px solid rgba(247, 242, 232, 0.24);
    border-bottom: 1px solid rgba(247, 242, 232, 0.24);
}

.hall-entry-card__number,
.hall-entry-card__category {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.62;
}

.hall-entry-card h3 {
    max-width: 520px;
    margin: auto 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.08;
}

.hall-entry-card > p:not(
    .hall-entry-card__number,
    .hall-entry-card__category
) {
    margin: 0 0 2rem;
    opacity: 0.7;
}

.hall-entry-card a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
}

.hall-entry-card--waiting {
    opacity: 0.4;
}


/* ==================================================
   PASSAGE VERS LES CORRESPONDANCES
   ================================================== */

.hall-correspondences {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 9rem);
    min-height: 560px;
    padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 8vw, 9rem);
}

.hall-correspondences--dark {
    background: #344238;
    color: var(--hall-paper-light);
}

.hall-correspondences h2 {
    max-width: 980px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.03;
}

.hall-correspondences--paper {
    background: var(--hall-paper);
    color: var(--hall-ink);
}


.hall-correspondences__content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.hall-correspondences__content p {
    max-width: 530px;
    margin: 0 0 2rem;
    font-size: 1.08rem;
    line-height: 1.8;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 900px) {

    .literature-hall-hero,
    .featured-entry,
    .hall-correspondences {
        grid-template-columns: 1fr;
    }

    .literature-hall-hero__ornament {
        min-height: 220px;
    }

    .featured-entry__image {
        min-height: 520px;
    }

    .hall-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hall-section-header {
    grid-template-columns: 1fr;
}

.hall-section-header h2 {
    white-space: normal;
}

}

@media (max-width: 650px) {

    .literature-hall-hero,
    .hall-catalogue,
    .hall-correspondences {
        padding-inline: 1.25rem;
    }

    .hall-entry-grid {
        grid-template-columns: 1fr;
    }

    .featured-entry__content,
    .featured-entry__book {
        padding: 4rem 1.25rem;
    }

}

/* ==================================================
   CARTOUCHES DE CHAPITRE
   ================================================== */

.chapter-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;

    width: 100%;
    margin: 0 0 1.5rem;

    color: #b89154;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.chapter-label::before,
.chapter-label::after {
    content: "";
    display: block;
    width: clamp(55px, 8vw, 130px);
    height: 1px;
    flex-shrink: 0;

    background-color: currentColor;
    opacity: 0.65;
}

.chapter-label--light {
    color: #d2b16e;
}

/* ==================================================
   CABINET DE CURIOSITÉS — HERO
   ================================================== */

.cabinet-hero {
    position: relative;
    min-height: calc(100vh - 68px);

    display: grid;
    align-items: center;

    padding: clamp(5rem, 8vw, 8rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(184, 139, 69, 0.14),
            transparent 38%
        ),
        #0b1d16;

    color: #f4efe5;
}

.cabinet-hero__layout {
    width: min(1400px, 100%);
    margin-inline: auto;

    display: grid;
    grid-template-columns: minmax(320px, 0.75fr) minmax(500px, 1.25fr);

    align-items: center;
    gap: clamp(4rem, 8vw, 9rem);
}

.cabinet-hero .chapter-label {
    justify-content: flex-start;
    width: fit-content;
    color: #b88b45;
}

.cabinet-hero h1 {
    margin: 1.5rem 0 2rem;

    color: #f4efe5;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.cabinet-hero__intro {
    max-width: 560px;

    color: rgba(244, 239, 229, 0.72);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.8;
}

.cabinet-hero__link {
    display: inline-flex;
    gap: 1rem;

    margin-top: 2.5rem;
    padding-bottom: 0.6rem;

    border-bottom: 1px solid #b88b45;

    color: #f4efe5;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.cabinet-map {
    margin: 0;

    transform: rotate(1deg);
}

.cabinet-map__frame {
    padding: 0.7rem;

    background: #d4c19b;
    border: 1px solid rgba(255, 240, 205, 0.7);

    box-shadow:
        0 0 0 7px rgba(58, 43, 27, 0.85),
        25px 35px 70px rgba(0, 0, 0, 0.5);
}

.cabinet-map img {
    display: block;
    width: 100%;
    height: auto;
}

.cabinet-map figcaption {
    margin-top: 1.2rem;

    color: rgba(244, 239, 229, 0.5);

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.65rem;
}

.cabinet-inventory {
    padding: clamp(5rem, 9vw, 9rem);
    background: #eee7d9;
    color: #28251f;
    text-align: center;
}

.cabinet-inventory h2 {
    margin: 1rem 0;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
}

@media (max-width: 950px) {

    .cabinet-hero__layout {
        grid-template-columns: 1fr;
    }

    .cabinet-hero__content {
        text-align: center;
    }

    .cabinet-hero .chapter-label {
        justify-content: center;
        width: 100%;
    }

    .cabinet-hero__intro {
        margin-inline: auto;
    }

}


/* ==================================================
   CARTE ANCIENNE
   ================================================== */

.cabinet-map {
    position: relative;

    margin: 0;

    transform: rotate(1.2deg);

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}

.cabinet-map:hover {
    transform:
        rotate(0deg)
        scale(1.018);

    filter: brightness(1.04);
}

.cabinet-map__frame {
    position: relative;
    z-index: 2;

    padding: clamp(0.5rem, 1vw, 0.85rem);

    border: 1px solid rgba(238, 221, 187, 0.65);

    background: #d8c8a8;

    box-shadow:
        0 0 0 1px rgba(21, 17, 11, 0.8),
        0 0 0 8px rgba(64, 48, 30, 0.7),
        0 0 0 9px rgba(222, 194, 142, 0.25),
        35px 45px 80px rgba(0, 0, 0, 0.5);
}

.cabinet-map__frame::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255, 244, 217, 0.15),
            transparent 40%,
            rgba(48, 31, 14, 0.15)
        );

    pointer-events: none;
}

.cabinet-map img {
    display: block;

    width: 100%;
    height: auto;

    filter:
        sepia(0.12)
        contrast(1.04)
        brightness(0.94);
}

.cabinet-map__shadow {
    position: absolute;
    right: 4%;
    bottom: -6%;
    left: 4%;

    height: 15%;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    filter: blur(28px);
}

.cabinet-map figcaption {
    margin-top: 1.4rem;

    color: rgba(244, 239, 229, 0.48);

    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
}

.cabinet-map figcaption span {
    margin-inline: 0.6rem;

    color: #b88b45;
}

@media (max-width: 950px) {

    .cabinet-hero__layout {
        grid-template-columns: 1fr;
    }

    .cabinet-hero__content {
        text-align: center;
    }

    .cabinet-hero .chapter-label {
        justify-content: center;
        width: 100%;
    }

    .cabinet-hero__intro {
        margin-inline: auto;
    }

    .cabinet-map {
        width: min(800px, 100%);
        margin-inline: auto;
    }

}

@media (max-width: 600px) {

    .cabinet-hero {
        padding-inline: 1.2rem;
    }

    .cabinet-map__frame {
        box-shadow:
            0 0 0 1px rgba(21, 17, 11, 0.8),
            0 0 0 5px rgba(64, 48, 30, 0.7),
            18px 25px 50px rgba(0, 0, 0, 0.45);
    }

}

/* ==================================================
   FICHE INDIVIDUELLE — CROCODILE
   ================================================== */

/* ==================================================
   FICHE INDIVIDUELLE — HERO PLEIN ÉCRAN
   ================================================== */

.cabinet-object-hero {
    height: calc(100svh - 68px);
    min-height: 620px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(380px, 0.85fr);

    overflow: hidden;

    background: #0b1d16;
    color: #f4efe5;
}


/* Photographie : elle occupe exactement la hauteur du hero */

.cabinet-object-hero__image {
    min-width: 0;
    min-height: 0;
    height: 100%;

    overflow: hidden;
}

.cabinet-object-hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        sepia(0.1)
        contrast(1.06)
        brightness(0.76);
}


/* Partie droite : toutes les informations tiennent dans l’écran */

.cabinet-object-hero__content {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(2rem, 4.5vh, 3.5rem)
        clamp(2.5rem, 5vw, 6rem);
}


/* Cartouche Cabinet de Curiosités */

.cabinet-object-hero__content .chapter-label {
    justify-content: flex-start;

    width: fit-content;
    margin-bottom: clamp(1.4rem, 2.5vh, 2rem);

    color: #b88b45;
}


/* Numéro de la fiche */

.cabinet-object-hero__reference {
    margin: 0 0 clamp(0.8rem, 1.6vh, 1.2rem);

    color: #b88b45;

    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* Titre */

.cabinet-object-hero h1 {
    max-width: 720px;

    margin: 0 0 clamp(1.3rem, 2.5vh, 2rem);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, min(5.5vw, 8.5vh), 6.4rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.91;

    text-wrap: balance;
}


/* Localisation */

.cabinet-object-hero__location {
    margin: 0;

    color: rgba(244, 239, 229, 0.58);

    font-size: 0.68rem;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.cabinet-object-hero__location span {
    margin-inline: 0.7rem;

    color: #b88b45;
}


/* Lien vers l’inventaire */

.cabinet-object-hero__content > a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    width: fit-content;

    margin-top: clamp(1.8rem, 3.5vh, 2.8rem);

    color: #f4efe5;

    font-size: clamp(0.9rem, 1vw, 1.08rem);
    letter-spacing: 0.20em;
    text-decoration: none;
    text-transform: uppercase;

    transition: letter-spacing .25s ease;
}

.cabinet-object-hero__content > a:hover {
    letter-spacing: .24em;
}

.cabinet-object-hero__content > a span {
    color: #b88b45;
    transition: transform .3s ease;
}

.cabinet-object-hero__content > a:hover span {
    transform: translateY(6px);
}

.cabinet-object-sheet {
    max-width: 900px;

    margin-inline: auto;

    padding:
        clamp(7rem, 12vw, 12rem)
        1.5rem;

    text-align: center;
}

.cabinet-object-sheet h2 {
    margin: 1.5rem 0 2rem;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.cabinet-object-sheet > p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.85;
}

.cabinet-object-sheet > a {
    display: inline-block;

    margin-top: 3rem;

    color: #294034;
    text-decoration: none;
}

@media (max-width: 900px) {

    .cabinet-object-hero {
        grid-template-columns: 1fr;
    }

    .cabinet-object-hero__image {
        min-height: 60vh;
    }

    .cabinet-object-hero__content {
        text-align: center;
    }

    .cabinet-object-hero__content .chapter-label,
    .cabinet-object-hero__content > a {
        margin-inline: auto;
    }

}

/* ==================================================
   CABINET — GALERIE DES PIÈCES
   ================================================== */

.cabinet-gallery {
    position: relative;

    padding:
        clamp(7rem, 11vw, 12rem)
        clamp(1.5rem, 7vw, 8rem);

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eee7d9 0%,
            #f8f3ea 52%,
            #dfd4c1 100%
        );

    color: #28251f;
}


/* En-tête de la collection */

.cabinet-gallery__header {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);
    margin: 0 auto clamp(6rem, 10vw, 10rem);

    text-align: center;
}

.cabinet-gallery__header h2 {
    margin: 1.5rem 0 2rem;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.cabinet-gallery__header > p:last-child {
    max-width: 680px;
    margin: 0 auto;

    color: rgba(40, 37, 31, 0.68);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.85;
}


/* ==================================================
   PREMIÈRE PIÈCE
   ================================================== */

.cabinet-piece {
    position: relative;

    width: min(1380px, 100%);
    margin-inline: auto;

    display: grid;
    grid-template-columns:
        minmax(320px, 0.82fr)
        minmax(480px, 1.18fr);

    align-items: center;

    gap: clamp(4rem, 9vw, 10rem);
}


/* Espacer les pièces et alterner leur disposition sur grand écran. */

.cabinet-piece + .cabinet-piece {
    margin-top: clamp(6rem, 10vw, 12rem);
}

@media (min-width: 1001px) {
    .cabinet-piece--reverse {
        grid-template-columns:
            minmax(480px, 1.18fr)
            minmax(320px, 0.82fr);
    }

    .cabinet-piece--reverse .cabinet-piece__visual {
        grid-column: 1;
        grid-row: 1;
    }

    .cabinet-piece--reverse .cabinet-piece__content {
        grid-column: 2;
        grid-row: 1;
    }

    .cabinet-piece--reverse .cabinet-piece__watermark {
        left: auto;
        right: -0.12em;
    }
}


/* Numéro monumental */

.cabinet-piece__watermark {
    position: absolute;
    top: 50%;
    left: -0.12em;
    z-index: 0;

    color: rgba(41, 64, 52, 0.055);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(13rem, 28vw, 31rem);
    line-height: 0.75;

    transform: translateY(-50%);

    pointer-events: none;
    user-select: none;
}


/* Texte */

.cabinet-piece__content {
    position: relative;
    z-index: 2;
}

.cabinet-piece__reference {
    margin: 0;

    color: #a1783e;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.cabinet-piece__category {
    margin: 0.8rem 0 2rem;

    color: rgba(40, 37, 31, 0.48);

    font-size: 0.68rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.cabinet-piece h3 {
    max-width: 720px;

    margin: 0;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 6vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.97;
}

.cabinet-piece__description {
    max-width: 600px;

    margin: 2.5rem 0 0;

    color: rgba(40, 37, 31, 0.76);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.85;
}


/* Cartel d’inventaire */

.cabinet-piece__metadata {
    max-width: 600px;

    margin: 3rem 0 0;
}

.cabinet-piece__metadata div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1.5rem;

    padding: 0.9rem 0;

    border-top: 1px solid rgba(40, 37, 31, 0.17);
}

.cabinet-piece__metadata div:last-child {
    border-bottom: 1px solid rgba(40, 37, 31, 0.17);
}

.cabinet-piece__metadata dt {
    color: #a1783e;

    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cabinet-piece__metadata dd {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
}


/* Lien vers la fiche */

.cabinet-piece__link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    margin-top: 3rem;
    padding-bottom: 0.65rem;

    border-bottom: 1px solid #a1783e;

    color: #294034;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-decoration: none;
    text-transform: uppercase;
}

.cabinet-piece__link span {
    color: #a1783e;

    transition: transform 0.3s ease;
}

.cabinet-piece__link:hover span {
    transform: translateX(7px);
}


/* ==================================================
   PHOTOGRAPHIE ENCADRÉE
   ================================================== */

.cabinet-piece__visual {
    position: relative;
    z-index: 2;

    display: block;

    color: inherit;
    text-decoration: none;
}

.cabinet-piece__visual figure {
    margin: 0;
}

.cabinet-piece__frame {
    position: relative;

    padding: clamp(0.55rem, 1vw, 0.85rem);

    background: #d8c8a8;
    border: 1px solid rgba(91, 70, 44, 0.55);

    box-shadow:
        0 0 0 1px rgba(43, 33, 22, 0.75),
        0 0 0 8px rgba(69, 51, 32, 0.72),
        0 0 0 9px rgba(198, 167, 111, 0.38),
        32px 42px 80px rgba(44, 37, 27, 0.3);

    transform: rotate(1deg);

    transition:
        transform 0.75s ease,
        box-shadow 0.75s ease;
}

.cabinet-piece__frame::after {
    content: "";

    position: absolute;
    inset: clamp(0.55rem, 1vw, 0.85rem);

    background:
        linear-gradient(
            135deg,
            rgba(255, 246, 224, 0.16),
            transparent 42%,
            rgba(57, 38, 19, 0.13)
        );

    pointer-events: none;
}

.cabinet-piece__visual:hover .cabinet-piece__frame {
    transform:
        rotate(0deg)
        scale(1.015);

    box-shadow:
        0 0 0 1px rgba(43, 33, 22, 0.75),
        0 0 0 8px rgba(69, 51, 32, 0.72),
        0 0 0 9px rgba(198, 167, 111, 0.38),
        42px 52px 100px rgba(44, 37, 27, 0.4);
}

.cabinet-piece__visual img {
    display: block;

    width: 100%;
    height: clamp(480px, 54vw, 760px);

    object-fit: cover;
    object-position: center;

    filter:
        sepia(0.09)
        contrast(1.05)
        brightness(0.91);

    transition: filter 0.75s ease;
}

.cabinet-piece__visual:hover img {
    filter:
        sepia(0.02)
        contrast(1.05)
        brightness(0.98);
}

.cabinet-piece__visual figcaption {
    margin-top: 1.7rem;

    color: rgba(40, 37, 31, 0.48);

    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.8;
}

.cabinet-piece__visual figcaption span {
    margin-inline: 0.65rem;

    color: #a1783e;
}

.cabinet-piece__visual figcaption .cabinet-piece__caption-place {
    display: block;
    margin: .25rem 0 0;
    color: inherit;
}


/* ==================================================
   RÉSERVE DU CABINET
   ================================================== */

.cabinet-reserve {
    padding:
        clamp(7rem, 11vw, 11rem)
        clamp(1.5rem, 7vw, 8rem);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(184, 139, 69, 0.1),
            transparent 35%
        ),
        #0b1d16;

    color: #f4efe5;
}

.cabinet-reserve__header {
    width: min(1380px, 100%);
    margin: 0 auto 5rem;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.65fr);

    align-items: end;

    gap: clamp(3rem, 8vw, 8rem);
}

.cabinet-reserve__header .chapter-label {
    justify-content: flex-start;
    width: fit-content;

    color: #b88b45;
}

.cabinet-reserve__header h2 {
    margin: 1.5rem 0 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1;
}

.cabinet-reserve__header > p {
    max-width: 500px;
    margin: 0;

    color: rgba(244, 239, 229, 0.62);

    line-height: 1.8;
}


/* Grille de la réserve */

.cabinet-reserve__grid {
    width: min(1380px, 100%);
    margin-inline: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    border-top: 1px solid rgba(244, 239, 229, 0.16);
    border-left: 1px solid rgba(244, 239, 229, 0.16);
}

.cabinet-reserve__item {
    min-height: 360px;

    display: flex;
    align-items: flex-start;
    flex-direction: column;

    padding: clamp(2rem, 4vw, 3.5rem);

    border-right: 1px solid rgba(244, 239, 229, 0.16);
    border-bottom: 1px solid rgba(244, 239, 229, 0.16);
}

.cabinet-reserve__reference {
    margin: 0;

    color: #b88b45;

    font-size: 0.67rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cabinet-reserve__category {
    margin: 0.8rem 0 0;

    color: rgba(244, 239, 229, 0.4);

    font-size: 0.64rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cabinet-reserve__item h3 {
    max-width: 420px;

    margin: auto 0 1.8rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.3vw, 3.4rem);
    font-weight: 400;
    line-height: 1.08;
}

.cabinet-reserve__status {
    width: 100%;
    margin: 0;
    padding-top: 1.2rem;

    border-top: 1px solid rgba(244, 239, 229, 0.16);

    color: rgba(244, 239, 229, 0.48);

    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cabinet-reserve__item--empty {
    opacity: 0.44;
}


/* ==================================================
   CABINET — RESPONSIVE
   ================================================== */

@media (max-width: 1000px) {

    .cabinet-piece {
        grid-template-columns: 1fr;
    }

    .cabinet-piece__content {
        max-width: 760px;

        margin-inline: auto;

        text-align: center;
    }

    .cabinet-piece__description,
    .cabinet-piece__metadata {
        margin-inline: auto;
    }

    .cabinet-piece__watermark {
        top: 20%;
        left: 50%;

        transform: translate(-50%, -50%);
    }

    .cabinet-piece__visual {
        width: min(820px, 100%);
        margin-inline: auto;
    }

    .cabinet-reserve__header {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 850px) {

    .cabinet-reserve__grid {
        grid-template-columns: 1fr;
    }

    .cabinet-reserve__item {
        min-height: 300px;
    }

}

@media (max-width: 600px) {

    .cabinet-gallery,
    .cabinet-reserve {
        padding-inline: 1.2rem;
    }

    .cabinet-piece__metadata div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .cabinet-piece__visual img {
        height: min(125vw, 570px);
    }

    .cabinet-piece__frame {
        box-shadow:
            0 0 0 1px rgba(43, 33, 22, 0.75),
            0 0 0 5px rgba(69, 51, 32, 0.72),
            18px 24px 50px rgba(44, 37, 27, 0.3);
    }

}

/* ==================================================
   CABINET — PASSAGE VERS LES CORRESPONDANCES
   ================================================== */

.cabinet-correspondences {
    position: relative;

    min-height: 680px;

    display: grid;
    place-items: center;

    padding:
        clamp(7rem, 12vw, 12rem)
        clamp(1.5rem, 7vw, 8rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(184, 139, 69, 0.12),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #07130e 0%,
            #10231a 55%,
            #07110d 100%
        );

    color: #f4efe5;

    text-align: center;
}

.cabinet-correspondences::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.018),
            transparent
        );

    pointer-events: none;
}

.cabinet-correspondences__content {
    position: relative;
    z-index: 2;

    width: min(980px, 100%);
}

.cabinet-correspondences .chapter-label {
    color: #b88b45;
}

.cabinet-correspondences h2 {
    max-width: 980px;

    margin: 1.8rem auto 2.3rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 7vw, 7.4rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.cabinet-correspondences__content > p:not(.chapter-label) {
    max-width: 670px;

    margin: 0 auto;

    color: rgba(244, 239, 229, 0.68);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.85;
}

.cabinet-correspondences__link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    margin-top: 3.5rem;
    padding-bottom: 0.7rem;

    border-bottom: 1px solid #b88b45;

    color: #f4efe5;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.cabinet-correspondences__link span {
    color: #b88b45;

    transition: transform 0.3s ease;
}

.cabinet-correspondences__link:hover span {
    transform: translateX(7px);
}


/* Fils décoratifs */

.cabinet-correspondences__threads {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}

.cabinet-correspondences__threads span {
    position: absolute;

    width: 70%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(184, 139, 69, 0.5),
            transparent
        );

    transform-origin: center;
}

.cabinet-correspondences__threads span:nth-child(1) {
    top: 24%;
    left: -18%;

    transform: rotate(12deg);
}

.cabinet-correspondences__threads span:nth-child(2) {
    top: 58%;
    right: -20%;

    transform: rotate(-11deg);
}

.cabinet-correspondences__threads span:nth-child(3) {
    bottom: 17%;
    left: 15%;

    width: 80%;

    opacity: 0.5;

    transform: rotate(4deg);
}

@media (max-width: 600px) {

    .cabinet-correspondences {
        min-height: 600px;

        padding-inline: 1.2rem;
    }

}

/* ==================================================
   FICHE D’INVENTAIRE — COMPLÉMENTS
   ================================================== */

.cabinet-object-hero__location {
    color: rgba(244, 239, 229, 0.58);

    font-size: 0.72rem;
    letter-spacing: 0.13em;
    line-height: 1.7;
    text-transform: uppercase;
}

.cabinet-object-hero__location span {
    margin-inline: 0.65rem;

    color: #b88b45;
}


/* ==================================================
   CARTEL D’INVENTAIRE
   ================================================== */

.cabinet-record {
    position: relative;

    padding:
        clamp(7rem, 11vw, 11rem)
        clamp(1.5rem, 7vw, 8rem);

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eee7d9 0%,
            #f8f3ea 52%,
            #ded2bd 100%
        );

    color: #28251f;
}

.cabinet-record::after {
    content: "CC-0001";

    position: absolute;
    right: -0.03em;
    bottom: -0.18em;

    color: rgba(41, 64, 52, 0.045);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(9rem, 22vw, 25rem);
    line-height: 1;

    pointer-events: none;
}

.cabinet-record__header {
    position: relative;
    z-index: 1;

    max-width: 900px;

    margin: 0 auto 5rem;

    text-align: center;
}

.cabinet-record__number {
    margin: 2rem 0 1rem;

    color: #a1783e;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.cabinet-record__header h2 {
    margin: 0;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.cabinet-record__grid {
    position: relative;
    z-index: 1;

    width: min(1200px, 100%);
    margin-inline: auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid rgba(40, 37, 31, 0.17);
    border-left: 1px solid rgba(40, 37, 31, 0.17);
}

.cabinet-record__grid div {
    min-height: 150px;

    padding: 2rem;

    border-right: 1px solid rgba(40, 37, 31, 0.17);
    border-bottom: 1px solid rgba(40, 37, 31, 0.17);
}

.cabinet-record__grid dt {
    margin-bottom: 1rem;

    color: #a1783e;

    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cabinet-record__grid dd {
    margin: 0;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.35;
}


/* ==================================================
   SECTIONS ÉDITORIALES
   ================================================== */

.cabinet-record-article {
    background: #f7f2e8;
}

.cabinet-record-section {
    position: relative;

    min-height: 660px;

    display: grid;
    grid-template-columns:
        minmax(150px, 0.28fr)
        minmax(0, 1fr);

    gap: clamp(3rem, 8vw, 9rem);

    padding:
        clamp(7rem, 11vw, 11rem)
        clamp(1.5rem, 8vw, 9rem);

    overflow: hidden;

    border-bottom: 1px solid rgba(40, 37, 31, 0.13);

    color: #28251f;
}

.cabinet-record-section__index {
    color: rgba(41, 64, 52, 0.09);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 15vw, 15rem);
    line-height: 0.75;

    user-select: none;
}

.cabinet-record-section__content {
    max-width: 920px;
}

.cabinet-record-section h2 {
    max-width: 900px;

    margin: 1rem 0 3rem;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 6.2rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1;
}

.cabinet-record-section__text {
    max-width: 760px;
}

.cabinet-record-section__text p {
    margin: 0 0 1.7rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.9;
}

.cabinet-record-section__text p:last-child {
    margin-bottom: 0;
}


/* Section sombre */

.cabinet-record-section--dark {
    background: #0b1d16;
    color: #f4efe5;

    border-color: rgba(244, 239, 229, 0.12);
}

.cabinet-record-section--dark h2 {
    color: #f4efe5;
}

.cabinet-record-section--dark
.cabinet-record-section__index {
    color: rgba(184, 139, 69, 0.12);
}

.cabinet-record-section--dark
.cabinet-record-section__text {
    color: rgba(244, 239, 229, 0.74);
}


/* Section finale dorée */

.cabinet-record-section--accent {
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(184, 139, 69, 0.14),
            transparent 34%
        ),
        #e6dcc9;
}


/* ==================================================
   NAVIGATION ENTRE LES PIÈCES
   ================================================== */

.cabinet-object-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    background: #eee7d9;
    color: #294034;

    border-top: 1px solid rgba(40, 37, 31, 0.15);
}

.cabinet-object-navigation__back,
.cabinet-object-navigation__next {
    min-height: 270px;

    display: flex;
    justify-content: center;
    flex-direction: column;

    padding:
        clamp(3rem, 6vw, 6rem)
        clamp(1.5rem, 6vw, 6rem);
}

.cabinet-object-navigation__back {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;

    border-right: 1px solid rgba(40, 37, 31, 0.15);

    color: inherit;
    text-decoration: none;
}

.cabinet-object-navigation__back > span:first-child {
    color: #a1783e;

    font-size: 2rem;

    transition: transform 0.3s ease;
}

.cabinet-object-navigation__back:hover
> span:first-child {
    transform: translateX(-7px);
}

.cabinet-object-navigation small {
    display: block;

    margin-bottom: 0.7rem;

    color: #a1783e;

    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.cabinet-object-navigation__back
> span:last-child {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.cabinet-object-navigation__next span {
    color: #a1783e;

    font-size: 0.67rem;
    letter-spacing: 0.16em;
}

.cabinet-object-navigation__next strong {
    max-width: 550px;

    margin-top: 1rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
}

.cabinet-object-navigation__next em {
    margin-top: 1rem;

    color: rgba(40, 37, 31, 0.48);

    font-size: 0.68rem;
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ==================================================
   FICHE — RESPONSIVE
   ================================================== */

@media (max-width: 850px) {

    .cabinet-record__grid,
    .cabinet-object-navigation {
        grid-template-columns: 1fr;
    }

    .cabinet-record-section {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .cabinet-record-section__index {
        font-size: 7rem;
    }

    .cabinet-object-navigation__back {
        border-right: 0;
        border-bottom: 1px solid rgba(40, 37, 31, 0.15);
    }

}

@media (max-width: 600px) {

    .cabinet-record,
    .cabinet-record-section {
        padding-inline: 1.2rem;
    }

    .cabinet-record__grid {
        grid-template-columns: 1fr;
    }

    .cabinet-record__grid div {
        min-height: auto;
    }

}

/* ==================================================
   CARNETS — HERO
   ================================================== */

.carnets-hero {
    position: relative;

    min-height: calc(100vh - 68px);

    display: grid;
    place-items: center;

    padding:
        clamp(6rem, 10vw, 10rem)
        1.5rem;

    overflow: hidden;

    background:
        url("../img/carnets/orangerie.webp")
        center 58% / cover no-repeat;

    color: #f4efe5;

    text-align: center;

    isolation: isolate;
}

.carnets-hero::before {
    content: "";

    position: absolute;
    inset: -2%;
    z-index: -2;

    background:
        url("../img/carnets/orangerie.webp")
        center 58% / cover no-repeat;

    transform: scale(1.03);

    animation:
        carnetsImageBreath
        30s ease-in-out
        infinite alternate;
}

@keyframes carnetsImageBreath {

    from {
        transform:
            scale(1.03)
            translate3d(0, 0, 0);
    }

    to {
        transform:
            scale(1.08)
            translate3d(-0.6%, -0.4%, 0);
    }

}

.carnets-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            ellipse at center,
            rgba(10, 12, 11, 0.12) 0%,
            rgba(10, 12, 11, 0.34) 48%,
            rgba(7, 10, 8, 0.82) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 10, 8, 0.25) 0%,
            rgba(7, 10, 8, 0.42) 55%,
            rgba(7, 10, 8, 0.82) 100%
        );
}

.carnets-hero__content {
    position: relative;
    z-index: 1;

    width: min(920px, 100%);
}

.carnets-hero h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 16vw, 12rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.85;
}

.carnets-hero__intro {
    max-width: 680px;

    margin: 2rem auto 0;

    color: rgba(244, 239, 229, 0.88);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.7;
}

.carnets-hero__caption {
    margin: 2rem auto 0;

    color: rgba(244, 239, 229, 0.56);

    font-size: 0.65rem;
    letter-spacing: 0.15em;
    line-height: 1.8;
    text-transform: uppercase;
}

.carnets-hero__caption span {
    margin-inline: 0.6rem;

    color: #b88b45;
}

.carnets-hero .hall-scroll-link {
    margin-top: 3rem;
}


/* ==================================================
   CARNETS — OUVERTURE
   ================================================== */

.carnets-opening {
    position: relative;

    min-height: 700px;

    display: grid;
    place-items: center;

    padding:
        clamp(7rem, 12vw, 12rem)
        clamp(1.5rem, 8vw, 9rem);

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eee7d9 0%,
            #f8f3ea 55%,
            #ded3c0 100%
        );

    color: #28251f;
}

.carnets-opening__number {
    position: absolute;
    top: 50%;
    left: 5%;

    color: rgba(41, 64, 52, 0.055);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14rem, 30vw, 32rem);
    line-height: 0.7;

    transform: translateY(-50%);

    pointer-events: none;
    user-select: none;
}

.carnets-opening__content {
    position: relative;
    z-index: 1;

    width: min(920px, 100%);

    text-align: center;
}

.carnets-opening h2 {
    margin: 1.5rem 0 2.2rem;

    color: #294034;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.carnets-opening__content > p:not(.chapter-label) {
    max-width: 680px;

    margin: 0 auto;

    color: rgba(40, 37, 31, 0.7);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.85;
}

.carnets-opening__status {
    width: min(500px, 100%);

    display: flex;
    justify-content: space-between;
    gap: 2rem;

    margin: 3.5rem auto 0;
    padding: 1.2rem 0;

    border-top: 1px solid rgba(40, 37, 31, 0.17);
    border-bottom: 1px solid rgba(40, 37, 31, 0.17);
}

.carnets-opening__status span,
.carnets-opening__status strong {
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.carnets-opening__status span {
    color: #a1783e;
}

.carnets-opening__status strong {
    color: #294034;
}


/* ==================================================
   CARNETS — CORRESPONDANCES
   ================================================== */

.carnets-correspondences {
    position: relative;

    min-height: 660px;

    display: grid;
    place-items: center;

    padding:
        clamp(7rem, 12vw, 12rem)
        clamp(1.5rem, 7vw, 8rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 25% 35%,
            rgba(184, 139, 69, 0.1),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #171a17 0%,
            #292d28 55%,
            #111411 100%
        );

    color: #f4efe5;

    text-align: center;
}

.carnets-correspondences__content {
    position: relative;
    z-index: 2;

    width: min(960px, 100%);
}

.carnets-correspondences .chapter-label {
    color: #b88b45;
}

.carnets-correspondences h2 {
    max-width: 950px;

    margin: 1.8rem auto 2.3rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.carnets-correspondences__content > p:not(.chapter-label) {
    max-width: 670px;

    margin: 0 auto;

    color: rgba(244, 239, 229, 0.66);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.85;
}

.carnets-correspondences__link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    margin-top: 3.5rem;
    padding-bottom: 0.7rem;

    border-bottom: 1px solid #b88b45;

    color: #f4efe5;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.carnets-correspondences__link span {
    color: #b88b45;

    transition: transform 0.3s ease;
}

.carnets-correspondences__link:hover span {
    transform: translateX(7px);
}


/* Lignes graphiques */

.carnets-correspondences__lines {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.carnets-correspondences__lines span {
    position: absolute;

    width: 65%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(184, 139, 69, 0.48),
            transparent
        );
}

.carnets-correspondences__lines span:nth-child(1) {
    top: 26%;
    left: -12%;

    transform: rotate(8deg);
}

.carnets-correspondences__lines span:nth-child(2) {
    top: 61%;
    right: -18%;

    transform: rotate(-9deg);
}

.carnets-correspondences__lines span:nth-child(3) {
    bottom: 15%;
    left: 20%;

    opacity: 0.45;

    transform: rotate(3deg);
}


/* ==================================================
   CARNETS — RESPONSIVE
   ================================================== */

@media (max-width: 600px) {

    .carnets-hero {
        background-position: 58% center;
    }

    .carnets-hero::before {
        background-position: 58% center;
    }

    .carnets-opening,
    .carnets-correspondences {
        padding-inline: 1.2rem;
    }

    .carnets-opening__status {
        align-items: center;
        flex-direction: column;

        gap: 0.7rem;
    }

}

/* ==================================================
   PASSAGES VERS LES CORRESPONDANCES
   ================================================== */

.correspondences-passage {
    position: relative;

    min-height: 660px;

    display: grid;
    place-items: center;

    padding:
        clamp(7rem, 12vw, 12rem)
        clamp(1.5rem, 7vw, 8rem);

    overflow: hidden;

    color: #f4efe5;
    text-align: center;
}

.correspondences-passage__content {
    position: relative;
    z-index: 2;

    width: min(980px, 100%);
}

.correspondences-passage .chapter-label {
    color: #b88b45;
}

.correspondences-passage h2 {
    max-width: 980px;

    margin: 1.8rem auto 2.3rem;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 7vw, 7.2rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.correspondences-passage__content > p:not(.chapter-label) {
    max-width: 680px;

    margin: 0 auto;

    color: rgba(244, 239, 229, 0.68);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.85;
}

.correspondences-passage__link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    margin-top: 3.5rem;
    padding-bottom: 0.7rem;

    border-bottom: 1px solid #b88b45;

    color: #f4efe5;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.correspondences-passage__link span {
    color: #b88b45;

    transition: transform 0.3s ease;
}

.correspondences-passage__link:hover span {
    transform: translateX(7px);
}


/* Fils décoratifs */

.correspondences-passage__lines {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.correspondences-passage__lines span {
    position: absolute;

    width: 70%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(184, 139, 69, 0.48),
            transparent
        );
}

.correspondences-passage__lines span:nth-child(1) {
    top: 25%;
    left: -16%;

    transform: rotate(10deg);
}

.correspondences-passage__lines span:nth-child(2) {
    top: 60%;
    right: -18%;

    transform: rotate(-10deg);
}

.correspondences-passage__lines span:nth-child(3) {
    bottom: 16%;
    left: 18%;

    opacity: 0.45;

    transform: rotate(3deg);
}


/* Variantes graphiques */

.correspondences-passage--cinema {
    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(184, 139, 69, 0.11),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #111713 0%,
            #263129 55%,
            #0c110e 100%
        );
}

.correspondences-passage--literature {
    background:
        linear-gradient(
            135deg,
            #e8dfd0 0%,
            #f6f0e5 50%,
            #dbcfbc 100%
        );

    color: #28251f;
}

.correspondences-passage--literature .chapter-label {
    color: #a1783e;
}

.correspondences-passage--literature
.correspondences-passage__content > p:not(.chapter-label) {
    color: rgba(40, 37, 31, 0.68);
}

.correspondences-passage--literature
.correspondences-passage__link {
    color: #294034;
}

.correspondences-passage--literature
.correspondences-passage__lines span {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(161, 120, 62, 0.4),
            transparent
        );
}

.correspondences-passage--cabinet {
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(184, 139, 69, 0.12),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #07130e 0%,
            #10231a 55%,
            #07110d 100%
        );
}

.correspondences-passage--carnets {
    background:
        radial-gradient(
            circle at 25% 35%,
            rgba(184, 139, 69, 0.1),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #171a17 0%,
            #292d28 55%,
            #111411 100%
        );
}

@media (max-width: 600px) {

    .correspondences-passage {
        min-height: 600px;
        padding-inline: 1.2rem;
    }

}




/* =========================================================
   CARTOUCHE MAPPA MUNDI — LAITON CHAUD
   ========================================================= */

.mappa-cartouche {
    position: absolute;
    top: clamp(70px, 8vh, 105px);
    right: clamp(40px, 4vw, 72px);
    z-index: 20;

    width: clamp(165px, 13.5vw, 205px);
    min-height: 168px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 1.55rem 1.15rem 1.25rem;

    border: 5px solid #4c301b;

    background:
        radial-gradient(
            ellipse at 38% 28%,
            rgba(255, 226, 150, 0.34),
            transparent 43%
        ),
        radial-gradient(
            ellipse at 75% 76%,
            rgba(78, 46, 22, 0.2),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #63421f 0%,
            #a87835 18%,
            #d4a956 38%,
            #f0cf82 49%,
            #b7843d 67%,
            #755025 83%,
            #432a17 100%
        );

    color: #2d1c11;

    font-family: Georgia, "Times New Roman", serif;
    text-align: center;

    cursor: pointer;

    box-shadow:
        inset 0 0 0 1px rgba(255, 229, 164, 0.48),
        inset 0 0 0 5px rgba(82, 50, 24, 0.36),
        inset 7px 8px 17px rgba(255, 225, 157, 0.13),
        inset -10px -12px 20px rgba(47, 27, 14, 0.35),

        0 0 0 2px #24160e,
        0 0 0 7px #76502b,
        0 0 0 9px #2b1a10,

        9px 13px 18px rgba(34, 19, 10, 0.38);

    filter:
        saturate(0.92)
        contrast(1.04);

    transform: rotate(0.35deg);
    transform-origin: 50% -30px;

    transition:
        transform 500ms ease,
        filter 500ms ease,
        box-shadow 500ms ease;
}


/* Plaque intérieure et fines stries du laiton */

.mappa-cartouche::before {
    content: "";

    position: absolute;
    inset: 8px;

    border: 1px solid rgba(55, 33, 17, 0.65);

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 36%,
            rgba(255, 239, 187, 0.16) 46%,
            rgba(255, 239, 187, 0.05) 52%,
            transparent 63%,
            transparent 100%
        ),
        repeating-linear-gradient(
            112deg,
            transparent 0,
            transparent 9px,
            rgba(255, 224, 151, 0.018) 10px,
            rgba(255, 224, 151, 0.018) 11px
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            transparent 24%,
            rgba(48, 27, 13, 0.055) 100%
        );

    background-size:
        220% 100%,
        auto,
        auto;

    background-position:
        125% 0,
        0 0,
        0 0;

    box-shadow:
        inset 0 0 13px rgba(31, 17, 9, 0.26);

    transition: background-position 900ms ease;

    pointer-events: none;
}


/* Petit effet de lumière au survol */

.mappa-cartouche:hover,
.mappa-cartouche:focus-visible {
    filter:
        saturate(1)
        contrast(1.06)
        brightness(1.045);

    transform:
        translateY(-2px)
        rotate(-0.25deg);

    box-shadow:
        inset 0 0 0 1px rgba(255, 229, 164, 0.56),
        inset 0 0 0 5px rgba(82, 50, 24, 0.32),
        inset 7px 8px 17px rgba(255, 225, 157, 0.18),
        inset -10px -12px 20px rgba(47, 27, 14, 0.3),

        0 0 0 2px #24160e,
        0 0 0 7px #80572f,
        0 0 0 9px #2b1a10,

        11px 16px 24px rgba(34, 19, 10, 0.46);
}

.mappa-cartouche:hover::before,
.mappa-cartouche:focus-visible::before {
    background-position:
        -25% 0,
        0 0,
        0 0;
}

.mappa-cartouche__ornament,
.mappa-cartouche__title,
.mappa-cartouche__rule,
.mappa-cartouche__date {
    position: relative;
    z-index: 1;
}

.mappa-cartouche__ornament {
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.mappa-cartouche__title {
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.mappa-cartouche__title span {
    display: block;
}

.mappa-cartouche__rule {
    width: 70%;
    height: 1px;

    margin: 0.85rem auto 0.75rem;

    background:
        linear-gradient(
            90deg,
            transparent,
            #50301a 18%,
            #50301a 82%,
            transparent
        );
}

.mappa-cartouche__date {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mappa-cartouche__hint {
    position: absolute;
    right: 0;
    bottom: -1.8rem;
    left: 0;

    color: #f4ddb0;

    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    opacity: 0;
    transform: translateY(-4px);

    transition:
        opacity 250ms ease,
        transform 250ms ease;
}

.mappa-cartouche:hover,
.mappa-cartouche:focus-visible {
    filter:
        brightness(1.06)
        contrast(1.05);

    transform:
        translateY(-2px)
        rotate(0deg);

    box-shadow:
        inset 0 0 0 1px rgba(241, 195, 112, 0.42),
        inset 0 0 0 5px rgba(53, 31, 18, 0.42),
        inset 7px 8px 18px rgba(255, 208, 123, 0.18),
        inset -10px -12px 20px rgba(26, 14, 8, 0.32),
        0 0 0 2px #24160e,
        0 0 0 7px #76502c,
        0 0 0 9px #2b1a10,
        11px 16px 24px rgba(34, 19, 10, 0.46);
}

.mappa-cartouche:hover .mappa-cartouche__hint,
.mappa-cartouche:focus-visible .mappa-cartouche__hint {
    opacity: 1;
    transform: translateY(0);
}

@keyframes mappaGentleSwing {
    0%   { transform: translateY(-2px) rotate(-0.25deg); }
    35%  { transform: translateY(-2px) rotate(0.35deg); }
    70%  { transform: translateY(-2px) rotate(-0.15deg); }
    100% { transform: translateY(-2px) rotate(0deg); }
}

.mappa-cartouche:hover {
    animation: mappaGentleSwing 900ms ease-out 1;
}


/* ==================================================
   MAPPA MUNDI — PLEIN ÉCRAN
   ================================================== */

.mappa-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: grid;
    place-items: center;

    padding: clamp(1rem, 3vw, 2.5rem);

    overflow: auto;

    background:
        radial-gradient(
            circle at center,
            rgba(60, 42, 27, 0.25),
            rgba(10, 7, 5, 0.94) 72%
        );

    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 500ms ease,
        visibility 500ms ease;
}

.mappa-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mappa-overlay__content {
    width: min(1680px, 100%);
    margin: 0;

    opacity: 0;

    transform:
        scale(0.975)
        translateY(12px);

    transition:
        opacity 650ms ease 100ms,
        transform 650ms ease 100ms;
}

.mappa-overlay.is-open .mappa-overlay__content {
    opacity: 1;

    transform:
        scale(1)
        translateY(0);
}

.mappa-overlay__content img {
    display: block;

    width: 100%;
    max-height: calc(100vh - 7rem);

    border: 1px solid rgba(212, 174, 104, 0.42);

    object-fit: contain;

    box-shadow:
        0 0 0 7px rgba(50, 31, 18, 0.9),
        0 0 0 9px rgba(188, 144, 75, 0.35),
        0 30px 80px rgba(0, 0, 0, 0.62);
}

.mappa-overlay__content figcaption {
    margin-top: 1.4rem;

    color: rgba(245, 229, 194, 0.72);

    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

.mappa-overlay__content figcaption span {
    margin-inline: 0.6rem;

    color: #c59b55;
}

.mappa-overlay__close {
    position: fixed;
    top: clamp(1rem, 2.5vw, 2rem);
    right: clamp(1rem, 2.5vw, 2rem);
    z-index: 2;

    width: 48px;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(213, 177, 108, 0.55);
    border-radius: 50%;

    background: rgba(32, 21, 14, 0.86);

    color: #ead2a3;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 250ms ease,
        transform 250ms ease;
}

.mappa-overlay__close:hover,
.mappa-overlay__close:focus-visible {
    background: #6c482b;

    transform: rotate(5deg);
}

.mappa-overlay__close:focus-visible {
    outline: 3px solid #d4ae68;
    outline-offset: 4px;
}

body.mappa-is-open {
    overflow: hidden;
}


/* ==================================================
   RESPONSIVE DU VESTIBULE
   ================================================== */

@media (max-width: 1050px) {

    .portes {
        min-height: auto;
        padding-bottom: 4rem;
    }

    .portes__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem 1.5rem;

        margin-top: 4rem;
    }

    .door {
        height: 610px;
    }

    .mappa-cartouche {
        position: relative;
        top: auto;
        right: auto;

        width: 190px;

        margin:
            2.5rem
            auto 0;
    }

}

@media (max-width: 620px) {

    .portes {
        padding-inline: 1rem;
    }

    .portes__title {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .portes__gallery {
        grid-template-columns: 1fr;

        width: min(360px, 100%);
    }

    .door {
        height: 590px;
    }

    .doorway--litterature .door__title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .mappa-overlay {
        padding: 0.9rem;
    }

    .mappa-overlay__content img {
        max-height: calc(100vh - 6rem);
    }

}


/* Désactivation des mouvements pour les personnes sensibles */

@media (prefers-reduced-motion: reduce) {

    .door__surface,
    .door__content,
    .mappa-cartouche,
    .mappa-overlay,
    .mappa-overlay__content {
        transition: none;
    }

}

/* ==================================================
   APPEL DE NAVIGATION COMMUN AUX HEROES
   ================================================== */

.hero-entry-link {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;

    margin-top: clamp(2.2rem, 4vh, 3.5rem);

    color: inherit;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 300ms ease,
        transform 300ms ease;
}

.hero-entry-link__arrow {
    color: #c8953f;

    font-size: 1.35rem;
    line-height: 1;

    transition: transform 300ms ease;
}

.hero-entry-link:hover,
.hero-entry-link:focus-visible {
    color: #f5f5f5;
    transform: translateY(-2px);
}

.hero-entry-link:hover .hero-entry-link__arrow,
.hero-entry-link:focus-visible .hero-entry-link__arrow {
    transform: translateY(6px);
}

.hero-entry-link:focus-visible {
    outline: 1px solid #c8953f;
    outline-offset: 8px;
}

@media (min-width: 901px) and (max-height: 760px) {

    .cabinet-object-hero__content {
        padding-block: 1.6rem;
    }

    .cabinet-object-hero__content .chapter-label {
        margin-bottom: 1rem;
    }

    .cabinet-object-hero h1 {
        font-size: clamp(3rem, 7.4vh, 5.3rem);
        margin-bottom: 1rem;
    }

    .cabinet-object-hero__content > a {
        margin-top: 1.4rem;
    }

}

/* =========================================================
   CARNET NATURALISTE — BUFO BUFO
   ========================================================= */

.naturalist-page {
    background: var(--hall-paper-light);
    color: var(--hall-ink);
}


/* =========================================================
   HERO
   ========================================================= */

.naturalist-hero {
    height: calc(100svh - 68px);
    min-height: 640px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(420px, 0.88fr);

    overflow: hidden;

    background: #18231d;
    color: var(--hall-paper-light);
}

.naturalist-hero__image {
    min-width: 0;
    min-height: 0;
    height: 100%;

    overflow: hidden;
}

.naturalist-hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        sepia(0.12)
        saturate(0.75)
        contrast(1.05)
        brightness(0.78);
}

.naturalist-hero__content {
    min-width: 0;
    min-height: 0;

    display: flex;
    justify-content: center;
    flex-direction: column;

    padding:
        clamp(2.4rem, 5vh, 4.5rem)
        clamp(2.5rem, 6vw, 7rem);
}

.naturalist-hero__content .chapter-label {
    justify-content: flex-start;

    width: fit-content;
    margin-bottom: clamp(1.4rem, 2.5vh, 2rem);

    color: var(--hall-gold);
}

.naturalist-hero__reference {
    margin: 0 0 1rem;

    color: var(--hall-gold);

    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.naturalist-hero h1 {
    max-width: 760px;

    margin: 0 0 clamp(1.4rem, 2.7vh, 2rem);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, min(6vw, 8.6vh), 7rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.91;

    text-wrap: balance;
}

.naturalist-hero__scientific-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;

    margin: 0 0 1.3rem;
}

.naturalist-hero__scientific-name em {
    color: #e1c488;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
}

.naturalist-hero__scientific-name span {
    color: rgba(247, 242, 232, 0.5);

    font-size: 0.64rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.naturalist-hero__location {
    margin: 0;

    color: rgba(247, 242, 232, 0.58);

    font-size: 0.67rem;
    letter-spacing: 0.14em;
    line-height: 1.6;
    text-transform: uppercase;
}

.naturalist-hero__location span {
    margin-inline: 0.55rem;

    color: var(--hall-gold);
}

.naturalist-hero .hero-entry-link {
    align-items: flex-start;

    margin-top: clamp(2rem, 4vh, 3.2rem);

    color: var(--hall-paper-light);
}


/* =========================================================
   FICHE D’IDENTIFICATION
   ========================================================= */

.naturalist-record {
    padding:
        clamp(6rem, 10vw, 10rem)
        clamp(1.5rem, 8vw, 9rem);

    background: var(--hall-paper);
    color: var(--hall-ink);
}

.naturalist-record__header {
    width: min(900px, 100%);
    margin: 0 auto clamp(4rem, 7vw, 7rem);

    text-align: center;
}

.naturalist-record__number {
    margin: 1.3rem 0 0;

    color: var(--hall-gold);

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.naturalist-record__header h2 {
    margin: 1.1rem 0 1.8rem;

    color: var(--hall-green);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 6.2rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.naturalist-record__header > p:last-child {
    max-width: 670px;
    margin-inline: auto;

    color: rgba(37, 37, 31, 0.66);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.8;
}

.naturalist-record__grid {
    width: min(1250px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    border-top: 1px solid var(--hall-line);
    border-left: 1px solid var(--hall-line);
}

.naturalist-record__grid > div {
    min-height: 145px;

    padding: 1.8rem;

    border-right: 1px solid var(--hall-line);
    border-bottom: 1px solid var(--hall-line);
}

.naturalist-record__grid dt {
    margin-bottom: 1rem;

    color: #a1783e;

    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.naturalist-record__grid dd {
    margin: 0;

    color: var(--hall-green);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.55;
}


/* =========================================================
   SECTIONS DU CARNET
   ========================================================= */

.naturalist-article {
    background: var(--hall-paper-light);
}

.naturalist-section {
    position: relative;

    min-height: 680px;

    display: grid;
    grid-template-columns:
        minmax(80px, 0.25fr)
        minmax(0, 1fr);

    gap: clamp(2rem, 7vw, 8rem);

    padding:
        clamp(6rem, 10vw, 11rem)
        clamp(1.5rem, 8vw, 9rem);

    overflow: hidden;

    background: var(--hall-paper-light);
    color: var(--hall-ink);
}

.naturalist-section--dark {
    background: #17251f;
    color: var(--hall-paper-light);
}

.naturalist-section--accent {
    background: #d8cbb7;
    color: var(--hall-green);
}

.naturalist-section__index {
    color: rgba(37, 37, 31, 0.09);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(6rem, 14vw, 13rem);
    line-height: 0.8;
}

.naturalist-section--dark .naturalist-section__index {
    color: rgba(247, 242, 232, 0.07);
}

.naturalist-section__content {
    width: min(850px, 100%);
}

.naturalist-section h2 {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.naturalist-section h2 em {
    font-weight: 400;
}

.naturalist-section__text {
    max-width: 720px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(2rem, 5vw, 5rem);
}

.naturalist-section__text p {
    margin: 0;

    color: rgba(37, 37, 31, 0.7);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.9;
}

.naturalist-section--dark .naturalist-section__text p {
    color: rgba(247, 242, 232, 0.7);
}

.naturalist-section--accent .naturalist-section__text p {
    color: rgba(38, 57, 47, 0.75);
}


/* ==================================================
   GALERIE NATURALISTE
   ================================================== */

.naturalist-gallery{
    max-width:1400px;
    margin:180px auto;
    padding:0 50px;
}

.naturalist-gallery__header{
    text-align:center;
    max-width:760px;
    margin:0 auto 90px;
}

.naturalist-gallery__header h2 {
    margin: 22px 0 24px;

    color: #262820;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.naturalist-gallery__grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:40px;

    align-items:start;
}

.naturalist-gallery figure{

    margin:0;

    display:flex;
    flex-direction:column;
}

.naturalist-gallery img{

    width:100%;

    aspect-ratio:4/5;

    object-fit:cover;

    display:block;

    transition:.45s;

    box-shadow:
    0 20px 40px rgba(0,0,0,.25);
}

.naturalist-gallery figure:hover img{

    transform:translateY(-8px);

}

.naturalist-gallery figcaption{

    margin-top:18px;

    text-align:center;

    text-transform:uppercase;

    letter-spacing:.20em;

    font-size:.72rem;

    color:#a48d63;
}


/* =========================================================
   NOTE PERSONNELLE
   ========================================================= */

.naturalist-note {
    position: relative;

    min-height: 650px;

    display: grid;
    place-items: center;

    padding:
        clamp(6rem, 10vw, 11rem)
        clamp(1.5rem, 8vw, 9rem);

    overflow: hidden;

    background: #536357;
    color: var(--hall-paper-light);

    text-align: center;
}

.naturalist-note__mark {
    position: absolute;
    top: -0.2em;
    left: 50%;

    color: rgba(247, 242, 232, 0.06);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20rem, 45vw, 48rem);
    line-height: 1;

    transform: translateX(-50%);

    pointer-events: none;
}

.naturalist-note__content {
    position: relative;
    z-index: 1;

    width: min(950px, 100%);
}

.naturalist-note blockquote {
    margin: 2rem auto;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4.5vw, 4.4rem);
    font-style: italic;
    line-height: 1.3;
}

.naturalist-note__content > p:last-child {
    max-width: 620px;
    margin: 0 auto;

    color: rgba(247, 242, 232, 0.64);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.naturalist-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    background: var(--hall-paper);
    color: var(--hall-ink);
}

.naturalist-navigation > a,
.naturalist-navigation__next {
    min-height: 260px;

    display: flex;
    align-items: center;

    padding: clamp(2.5rem, 6vw, 6rem);
}

.naturalist-navigation > a {
    gap: 1.5rem;

    border-right: 1px solid var(--hall-line);

    color: var(--hall-green);
    text-decoration: none;
}

.naturalist-navigation > a > span:first-child {
    color: var(--hall-gold);

    font-size: 1.4rem;

    transition: transform 0.3s ease;
}

.naturalist-navigation > a:hover > span:first-child {
    transform: translateX(-7px);
}

.naturalist-navigation small,
.naturalist-navigation__next > span {
    display: block;

    margin-bottom: 0.55rem;

    color: var(--hall-gold);

    font-size: 0.65rem;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.naturalist-navigation > a span:last-child,
.naturalist-navigation__next strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 400;
}

.naturalist-navigation__next {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;

    opacity: 0.55;
}

.naturalist-navigation__next em {
    margin-top: 0.8rem;

    color: var(--hall-muted);

    font-size: 0.75rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .naturalist-hero {
        height: auto;
        min-height: 0;

        grid-template-columns: 1fr;
    }

    .naturalist-hero__image {
        height: 65vh;
        min-height: 500px;
    }

    .naturalist-hero__content {
        padding-block: 5rem;
    }

    .naturalist-hero__content .chapter-label {
        justify-content: center;

        width: 100%;
    }

    .naturalist-hero__content {
        text-align: center;
    }

    .naturalist-hero__scientific-name,
    .naturalist-hero .hero-entry-link {
        justify-content: center;
        align-items: center;
    }

    .naturalist-record__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .naturalist-section {
        grid-template-columns: 1fr;
    }

    .naturalist-section__index {
        margin-bottom: 1rem;
    }

    .naturalist-gallery__grid {
        grid-template-columns: 1fr;
    }

    .naturalist-gallery figure:nth-child(1),
    .naturalist-gallery figure:nth-child(3) {
        transform: none;
    }

    .naturalist-gallery img {
        height: min(110vw, 680px);
    }

}


@media (max-width: 650px) {

    .naturalist-hero__image {
        min-height: 420px;
        height: 58vh;
    }

    .naturalist-record__grid {
        grid-template-columns: 1fr;
    }

    .naturalist-section__text {
        grid-template-columns: 1fr;
    }

    .naturalist-navigation {
        grid-template-columns: 1fr;
    }

    .naturalist-navigation > a {
        border-right: 0;
        border-bottom: 1px solid var(--hall-line);
    }

}

/* =========================================================
   CARNETS
   PREMIÈRE ENTRÉE — CARNET 0001
   Correspond exactement au HTML de carnets.html
   ========================================================= */


/* ---------------------------------------------------------
   SECTION GÉNÉRALE
   --------------------------------------------------------- */

.carnets-opening {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
    align-items: center;
    gap: clamp(55px, 7vw, 120px);

    width: min(100% - 80px, 1420px);
    margin: 0 auto;
    padding: clamp(110px, 11vw, 170px) 0;

    background-color: #f3ede1;
}


/* Permet au fond crème de couvrir toute la largeur */

.carnets-opening::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 100vw;

    background:
        radial-gradient(
            circle at 8% 80%,
            rgba(41, 70, 53, 0.05),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f4eee3 0%,
            #f1eadf 100%
        );

    transform: translateX(-50%);
    z-index: -1;
}


/* ---------------------------------------------------------
   GRAND NUMÉRO 01 EN ARRIÈRE-PLAN
   --------------------------------------------------------- */

.carnets-opening__number {
    position: absolute;
    top: 52%;
    left: -30px;
    z-index: 0;

    color: rgba(41, 70, 53, 0.055);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(13rem, 21vw, 24rem);
    font-weight: 400;
    line-height: 0.7;

    pointer-events: none;
    user-select: none;

    transform: translateY(-50%);
}


/* ---------------------------------------------------------
   COLONNE TEXTE
   --------------------------------------------------------- */

.carnets-opening__content {
    position: relative;
    z-index: 2;

    max-width: 640px;
}


/* Première observation */

.carnets-opening__content > .chapter-label {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 0 0 25px;

    color: #ad8042;

    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.27em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* Petit trait après Première observation */

.carnets-opening__content > .chapter-label::after {
    content: "";

    width: 85px;
    height: 1px;

    background-color: rgba(173, 128, 66, 0.65);
}


/* Carnet 0001 • date */

.carnets-opening__reference {
    margin: 0 0 23px;

    color: #746f65;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.5;
}

.carnets-opening__reference span {
    display: inline-block;
    margin: 0 7px;

    color: #ad8042;
}


/* ---------------------------------------------------------
   TITRE
   --------------------------------------------------------- */

.carnets-opening h2 {
    max-width: 620px;
    margin: 0 0 26px;

    color: #294635;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 6.3vw, 6.8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.91;

    text-wrap: balance;
}


/* ---------------------------------------------------------
   NOM SCIENTIFIQUE
   --------------------------------------------------------- */

.carnets-opening__scientific-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 24px;

    color: #777168;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.5;
}

.carnets-opening__scientific-name em {
    color: #294635;
    font-size: 1.08em;
}

.carnets-opening__scientific-name span::before {
    content: "—";
    margin-right: 8px;

    color: #b38a51;
}


/* ---------------------------------------------------------
   TEXTE D’INTRODUCTION
   --------------------------------------------------------- */

.carnets-opening__description {
    max-width: 590px;
    margin: 0 0 31px;

    color: #625f58;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.85;

    text-wrap: pretty;
}


/* ---------------------------------------------------------
   FICHE D’OBSERVATION
   --------------------------------------------------------- */

.carnets-opening__metadata {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: 100%;
    margin: 0 0 33px;
    padding: 0;

    overflow: hidden;

    border-top: 1px solid rgba(41, 70, 53, 0.18);
    border-bottom: 1px solid rgba(41, 70, 53, 0.18);
}

.carnets-opening__metadata > div {
    position: relative;

    padding: 19px 18px 20px;
}


/* Séparateurs verticaux */

.carnets-opening__metadata > div:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 18px;
    right: 0;
    bottom: 18px;

    width: 1px;

    background-color: rgba(41, 70, 53, 0.15);
}


/* Lieu, Milieu, Taille estimée */

.carnets-opening__metadata dt {
    margin: 0 0 7px;

    color: #a8783b;

    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* Valeurs */

.carnets-opening__metadata dd {
    margin: 0;

    color: #3f4039;

    font-size: 0.83rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   LIEN CONSULTER LE CARNET
   --------------------------------------------------------- */

.carnets-opening__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 13px;

    padding: 8px 0 10px;

    color: #294635;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}


/* Trait animé */

.carnets-opening__link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background-color: #b18347;

    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.carnets-opening__link:hover::after,
.carnets-opening__link:focus-visible::after {
    transform: scaleX(1);
}


/* Flèche du HTML */

.carnets-opening__link span {
    color: #ad8042;

    font-size: 1.1rem;

    transition: transform 0.3s ease;
}

.carnets-opening__link:hover span,
.carnets-opening__link:focus-visible span {
    transform: translateX(7px);
}


/* ---------------------------------------------------------
   COLONNE PHOTOGRAPHIE
   --------------------------------------------------------- */

.carnets-opening__visual {
    position: relative;
    z-index: 2;

    display: block;

    color: inherit;
    text-decoration: none;
}

.carnets-opening__visual figure {
    margin: 0;
}


/* Cadre de l’image */

.carnets-opening__frame {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background-color: #34382f;

    box-shadow:
        0 30px 65px rgba(47, 42, 34, 0.16),
        0 8px 20px rgba(47, 42, 34, 0.09);
}


/* Fine bordure intérieure */

.carnets-opening__frame::before {
    content: "";

    position: absolute;
    inset: 14px;
    z-index: 2;

    border: 1px solid rgba(242, 232, 214, 0.45);

    pointer-events: none;
}


/* Léger dégradé cinématographique */

.carnets-opening__frame::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(15, 20, 16, 0.02) 45%,
            rgba(15, 20, 16, 0.24) 100%
        );

    pointer-events: none;
}


/* Image */

.carnets-opening__frame img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    filter:
        saturate(0.88)
        contrast(1.04)
        brightness(0.93);

    transform: scale(1.001);

    transition:
        transform 1s cubic-bezier(0.2, 0.72, 0.25, 1),
        filter 0.8s ease;
}


/* Effet au survol */

.carnets-opening__visual:hover .carnets-opening__frame img,
.carnets-opening__visual:focus-visible .carnets-opening__frame img {
    filter:
        saturate(1)
        contrast(1.04)
        brightness(0.98);

    transform: scale(1.035);
}


/* Légende sous l’image */

.carnets-opening__visual figcaption {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 13px;

    color: #766f64;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.5;
    text-align: right;
}

.carnets-opening__visual figcaption span {
    color: #ad8042;
}


/* ---------------------------------------------------------
   PETIT REPÈRE DÉCORATIF SUR LA PHOTO
   --------------------------------------------------------- */

.carnets-opening__visual::before {
    content: attr(data-carnet-label);

    position: absolute;
    top: 30px;
    left: 14px;
    z-index: 4;

    padding: 10px 17px;

    color: #f3ede1;
    background-color: #294635;

    text-transform: uppercase;

    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.19em;
    line-height: 1.4;

    box-shadow: 0 9px 20px rgba(27, 38, 30, 0.15);

    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
}


/* ---------------------------------------------------------
   FOCUS CLAVIER
   --------------------------------------------------------- */

.carnets-opening__link:focus-visible,
.carnets-opening__visual:focus-visible {
    outline: 2px solid #ad8042;
    outline-offset: 6px;
}


/* =========================================================
   ÉCRANS INTERMÉDIAIRES
   ========================================================= */

@media screen and (max-width: 1150px) {

    .carnets-opening {
        grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
        gap: 55px;

        width: min(100% - 55px, 1180px);
    }

    .carnets-opening h2 {
        font-size: clamp(3.4rem, 6vw, 5.5rem);
    }

    .carnets-opening__metadata {
        grid-template-columns: 1fr;
    }

    .carnets-opening__metadata > div {
        padding: 14px 4px;
    }

    .carnets-opening__metadata > div:not(:last-child)::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: auto;
        height: 1px;
    }
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media screen and (max-width: 850px) {

    .carnets-opening {
        grid-template-columns: 1fr;
        gap: 52px;

        width: min(100% - 40px, 720px);
        padding: 90px 0 105px;
    }

    .carnets-opening__number {
        top: 220px;
        left: -25px;

        font-size: 14rem;

        transform: none;
    }

    .carnets-opening__content {
        max-width: 650px;
    }

    .carnets-opening h2 {
        max-width: 620px;

        font-size: clamp(3.7rem, 12vw, 6rem);
    }

    .carnets-opening__description {
        max-width: 620px;
    }

    .carnets-opening__metadata {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .carnets-opening__metadata > div {
        padding: 17px 14px;
    }

    .carnets-opening__metadata > div:not(:last-child)::after {
        top: 17px;
        right: 0;
        bottom: 17px;
        left: auto;

        width: 1px;
        height: auto;
    }

    .carnets-opening__frame {
        aspect-ratio: 16 / 11;
    }

    .carnets-opening__visual::before {
        top: 24px;
        left: 24px;

        transform: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 580px) {

    .carnets-opening {
        gap: 38px;

        width: min(100% - 26px, 520px);
        padding: 72px 0 82px;
    }

    .carnets-opening__number {
        top: 150px;
        left: -13px;

        font-size: 9rem;
    }

    .carnets-opening__content > .chapter-label {
        gap: 12px;

        margin-bottom: 19px;

        font-size: 0.58rem;
        letter-spacing: 0.21em;
    }

    .carnets-opening__content > .chapter-label::after {
        width: 48px;
    }

    .carnets-opening__reference {
        margin-bottom: 18px;

        font-size: 0.9rem;
    }

    .carnets-opening h2 {
        margin-bottom: 21px;

        font-size: clamp(3.25rem, 17vw, 5rem);
        line-height: 0.93;
    }

    .carnets-opening__scientific-name {
        margin-bottom: 19px;

        font-size: 0.92rem;
    }

    .carnets-opening__description {
        margin-bottom: 25px;

        font-size: 0.98rem;
        line-height: 1.75;
    }

    .carnets-opening__metadata {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }

    .carnets-opening__metadata > div {
        padding: 13px 3px;
    }

    .carnets-opening__metadata > div:not(:last-child)::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: auto;
        height: 1px;
    }

    .carnets-opening__metadata dt {
        margin-bottom: 4px;
    }

    .carnets-opening__metadata dd {
        font-size: 0.86rem;
    }

    .carnets-opening__frame {
        aspect-ratio: 4 / 5;
    }

    .carnets-opening__frame::before {
        inset: 9px;
    }

    .carnets-opening__visual::before {
        top: 17px;
        left: 17px;

        padding: 8px 12px;

        font-size: 0.53rem;
    }

    .carnets-opening__visual figcaption {
        justify-content: flex-start;

        font-size: 0.73rem;
        text-align: left;
    }
}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .carnets-opening__frame img,
    .carnets-opening__link::after,
    .carnets-opening__link span {
        transition: none;
    }

    .carnets-opening__visual:hover .carnets-opening__frame img,
    .carnets-opening__visual:focus-visible .carnets-opening__frame img {
        transform: none;
    }
}

@media (max-width: 700px) {
  .site-header .site-header__nav {
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
  }

  .site-header .site-header__nav.is-open {
    display: flex;
  }
}

/* Page actuelle : doré clair */
.site-header__nav a[aria-current="page"] {
  color: #d4b47c;
  opacity: 1;
}

.site-header__nav a[aria-current="page"]::after {
  background: #d4b47c;
}

@media (max-width: 700px) {
  /* Suppression du soulignement sur mobile */
  .site-header__nav a[aria-current="page"]::after {
    content: none;
  }

  .site-header__nav a[aria-current="page"] {
    padding-left: 16px;
    font-weight: 600;
  }

  /* Repère à gauche de la rubrique actuelle */
  .site-header__nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 16px;
    background: #d4b47c;
    transform: translateY(-50%);
  }
}

/* Cinéma — hero sur smartphone */
@media (max-width: 700px) {
  .cinema-hall-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - 74px);
    padding: 4rem 20px;
  }

  .cinema-hall-hero__content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
  }

  .cinema-hall-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
    line-height: 1;
  }

  .cinema-hall-hero__text {
    max-width: 100%;
    margin: 1.75rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .cinema-hall-hero .chapter-label {
    gap: 14px;
    line-height: 1.4;
  }

  .cinema-hall-hero .chapter-label::before,
  .cinema-hall-hero .chapter-label::after {
    width: 40px;
  }

  .cinema-hall-hero .hero-entry-link {
    max-width: 100%;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: 100%;
    min-width: 0;
    padding-inline: 20px;
    gap: 12px;
  }

  .site-header__brand {
    flex: 1;
    min-width: 0;
    white-space: normal;
  }

  .cinema-hall-hero {
    width: 100%;
    min-width: 0;
    padding-inline: 24px;
  }

  .cinema-hall-hero__content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .cinema-hall-hero__text {
    width: 100%;
    max-width: 310px;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }
}

@media (max-width: 700px) {
  .site-header {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 20px;
  }

  .site-header__brand {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .site-header .nav-toggle {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 11px;
    justify-self: end;
  }
}

/* ==========================================
   FILS D’ARIANE — CORRECTION RESPONSIVE
   Cinéma, Littérature, Cabinet et Carnets
   ========================================== */

.correspondences-passage,
.cabinet-correspondences,
.carnets-correspondences {
    grid-template-columns: minmax(0, 1fr);
}

.correspondences-passage__content,
.cabinet-correspondences__content,
.carnets-correspondences__content {
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {

    .correspondences-passage,
    .cabinet-correspondences,
    .carnets-correspondences {
        min-height: 0;
        padding-block: clamp(4rem, 12vw, 6rem);
        padding-inline: clamp(1.25rem, 5vw, 2rem);
    }

    .correspondences-passage .chapter-label,
    .cabinet-correspondences .chapter-label,
    .carnets-correspondences .chapter-label {
        gap: 0.65rem;
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        line-height: 1.5;
    }

    .correspondences-passage .chapter-label::before,
    .correspondences-passage .chapter-label::after,
    .cabinet-correspondences .chapter-label::before,
    .cabinet-correspondences .chapter-label::after,
    .carnets-correspondences .chapter-label::before,
    .carnets-correspondences .chapter-label::after {
        flex: 0 0 clamp(0.875rem, 4vw, 1.5rem);
    }

    .correspondences-passage h2,
    .cabinet-correspondences h2,
    .carnets-correspondences h2 {
        margin: 1.4rem auto 1.65rem;
        font-size: clamp(2.2rem, 9vw, 3.4rem);
        letter-spacing: -0.04em;
        line-height: 1.08;
    }

    .correspondences-passage__content > p:not(.chapter-label),
    .cabinet-correspondences__content > p:not(.chapter-label),
    .carnets-correspondences__content > p:not(.chapter-label) {
        font-size: 1rem;
        line-height: 1.75;
    }

    .correspondences-passage__link,
    .cabinet-correspondences__link,
    .carnets-correspondences__link {
        min-height: 44px;
        margin-top: 2rem;
        padding-block: 0.6rem;
    }
}

/* Menu accessible pendant le défilement sur mobile */
@media (max-width: 700px) {
    body {
        overflow-x: clip;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .site-header .site-header__nav {
        max-height: calc(100svh - 6rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #cinema-content {
        scroll-margin-top: 6rem;
    }
}

/* Cinéma : affiche puis présentation sur mobile et tablette */
@media (max-width: 900px) {
    .cinema-hall .featured-entry--cinema {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "affiche" "presentation";
    }

    .cinema-hall .featured-entry__image {
        grid-area: affiche;
        min-width: 0;
    }

    .cinema-hall .featured-entry__content {
        grid-area: presentation;
        min-width: 0;
    }
}

/* Littérature — hero mobile */
@media (max-width: 700px) {
  .literature-hall-hero {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: calc(100svh - 68px);
    grid-template-columns: minmax(0, 1fr);
    padding: 4rem 24px;
  }

  .literature-hall-hero__content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .literature-hall-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
    line-height: 1.05;
  }

  .literature-hall-hero__text {
    width: 100%;
    max-width: 310px;
    margin: 1.75rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: normal;
  }

  .literature-hall-hero .chapter-label {
    gap: 12px;
    line-height: 1.4;
  }

  .literature-hall-hero .chapter-label::before,
  .literature-hall-hero .chapter-label::after {
    width: 32px;
  }

  .literature-hall-hero .hero-entry-link {
    max-width: 100%;
    font-size: 0.85rem;
    letter-spacing: 0.13em;
    line-height: 1.5;
    white-space: normal;
  }
}

/* Cabinet de curiosités — premier écran mobile */

@media (max-width: 700px) {
  .cabinet-hero {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding: 4rem 24px;
  }

  .cabinet-hero__layout {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .cabinet-hero__content {
    min-width: 0;
    text-align: center;
  }

  .cabinet-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
    line-height: 1;
  }

  .cabinet-hero__intro {
    width: 100%;
    max-width: 310px;
    margin: 1.75rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .cabinet-hero .chapter-label {
    gap: 12px;
    justify-content: center;
    line-height: 1.4;
  }

  .cabinet-hero .chapter-label::before,
  .cabinet-hero .chapter-label::after {
    width: 32px;
    flex-shrink: 0;
  }

  .cabinet-hero .hero-entry-link {
    max-width: 100%;
    font-size: 0.85rem;
    letter-spacing: 0.13em;
    line-height: 1.5;
    white-space: normal;
  }

  .cabinet-hero .cabinet-map {
    width: 100%;
    min-width: 0;
    max-width: 480px;
    margin-inline: auto;
  }

  .cabinet-map__frame {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .cabinet-map img {
    max-width: 100%;
    height: auto;
  }

  .cabinet-map figcaption {
    line-height: 1.6;
  }
}

/* Carnets — premier écran mobile */

@media (max-width: 700px) {
  .carnets-hero {
    box-sizing: border-box;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - 76px);
    padding: 4rem 24px;
  }

  .carnets-hero__content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .carnets-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
    line-height: 1;
  }

  .carnets-hero__intro {
    width: 100%;
    max-width: 310px;
    margin: 1.75rem auto 0;
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .carnets-hero__caption {
    max-width: 280px;
    margin: 1.75rem auto 0;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    line-height: 1.9;
  }

  .carnets-hero__caption span {
    margin-inline: 0.35rem;
  }

  .carnets-hero .chapter-label {
    gap: 12px;
    line-height: 1.4;
  }

  .carnets-hero .chapter-label::before,
  .carnets-hero .chapter-label::after {
    width: 32px;
    flex-shrink: 0;
  }

  .carnets-hero .hero-entry-link {
    max-width: 100%;
    font-size: 0.85rem;
    letter-spacing: 0.13em;
    line-height: 1.5;
    white-space: normal;
  }
}

/* Mentions légales des Chroniques */

.chroniques-legal {
  padding: 80px 24px;
  background: #eee7d9;
  color: #28251f;
}

.chroniques-legal__intro,
.chroniques-legal__sections {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.chroniques-legal__intro {
  max-width: 760px;
  margin-bottom: 64px;
  text-align: center;
}

.chroniques-legal__kicker {
  margin: 0 0 18px;
  color: #80602b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.chroniques-legal h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.chroniques-legal__intro > p:last-child {
  max-width: 580px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.chroniques-legal__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.chroniques-legal__sections section {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(40, 37, 31, 0.25);
}

.chroniques-legal h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.chroniques-legal section p,
.chroniques-legal address {
  line-height: 1.8;
}

.chroniques-legal address {
  font-style: normal;
}

.chroniques-legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #80602b;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.chroniques-legal a:focus-visible {
  outline: 2px solid #80602b;
  outline-offset: 5px;
}

.chroniques-legal__biologique {
  padding: 2px 7px;
  background: #18382d;
  color: #6ad225;
  border-radius: 3px;
}

.chroniques-legal__return {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 64px auto 0;
}

@media (max-width: 700px) {
  .chroniques-legal {
    padding: 56px 24px 80px;
  }

  .chroniques-legal__intro {
    margin-bottom: 44px;
  }

  .chroniques-legal__sections {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

.chronicle-warning {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--bronze);
    background: rgba(176, 141, 87, 0.08);
}

.chronicle-warning p {
    margin: 0;
    font-family: var(--text-font);
    font-size: 0.95rem;
    line-height: 1.65;
}

.chronicle-warning strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--forest);
}

.chronicle-ending__octopus {
    filter: none;
}

.chronicle-share {
    width: min(100%, 850px);
    margin: 4rem auto;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(176, 141, 87, 0.35);
    border-bottom: 1px solid rgba(176, 141, 87, 0.35);
    text-align: center;
}

.chronicle-share h2 {
    margin: 0 0 1rem;
    color: var(--forest);
    font-family: var(--title-font);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 400;
}

.chronicle-share__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.chronicle-share__actions button,
.chronicle-share__actions a {
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--forest);
    border-radius: 3px;
    color: var(--forest);
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.chronicle-share__actions [hidden] {
    display: none;
}

.chronicle-share__actions button:hover,
.chronicle-share__actions a:hover {
    color: var(--parchment);
    background: var(--forest);
}

.chronicle-share__actions button:focus-visible,
.chronicle-share__actions a:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 4px;
}

.chronicle-share__hint,
.chronicle-share__status {
    font-size: 0.9rem;
    line-height: 1.6;
}

.chronicle-share__status {
    min-height: 1.6em;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .chronicle-share__actions button,
    .chronicle-share__actions a {
        transition: none;
    }
}

/* ==================================================
   CINÉMA — THÈMES CLAIR ET SOMBRE
   ================================================== */

html[data-theme="light"] .cinema-hall {
    --cinema-background: #eee7d9;
    --cinema-surface: #f7f2e8;
    --cinema-text: #25251f;
    --cinema-muted: #625c51;
    --cinema-accent: #80602b;
    --cinema-line: rgba(38, 36, 31, 0.25);
}

html[data-theme="dark"] .cinema-hall {
    --cinema-background: #111c17;
    --cinema-surface: #1b2b23;
    --cinema-text: #eee7da;
    --cinema-muted: #c4bcae;
    --cinema-accent: #d4b47c;
    --cinema-line: rgba(238, 231, 218, 0.25);
}

/* Présentation des films et séries */

html[data-theme] .cinema-hall .featured-entry--cinema {
    background: var(--cinema-surface);
    color: var(--cinema-text);
}

html[data-theme] .cinema-hall .featured-entry__content h2,
html[data-theme] .cinema-hall .featured-entry .editorial-link {
    color: var(--cinema-text);
}

html[data-theme] .cinema-hall .featured-entry__meta {
    color: var(--cinema-muted);
}

html[data-theme] .cinema-hall .featured-entry .hall-kicker {
    color: var(--cinema-accent);
}

/* Catalogue des chroniques */

html[data-theme] .cinema-hall .hall-catalogue--cinema {
    background: var(--cinema-background);
    color: var(--cinema-text);
}

html[data-theme] .cinema-hall .hall-section-header h2,
html[data-theme] .cinema-hall .hall-entry-card h3,
html[data-theme] .cinema-hall .hall-entry-card a {
    color: var(--cinema-text);
}

html[data-theme] .cinema-hall .hall-section-header > p {
    color: var(--cinema-muted);
}

html[data-theme] .cinema-hall .hall-catalogue .chapter-label {
    color: var(--cinema-accent);
}

html[data-theme] .cinema-hall .hall-entry-grid,
html[data-theme] .cinema-hall .hall-entry-card {
    border-color: var(--cinema-line);
}

html[data-theme] .cinema-hall .hall-entry-card__number,
html[data-theme] .cinema-hall .hall-entry-card__category,
html[data-theme] .cinema-hall .hall-entry-card > p:not(
    .hall-entry-card__number,
    .hall-entry-card__category
) {
    color: var(--cinema-muted);
    opacity: 1;
}

/* Littérature — couverture avant le texte sur petits écrans */
@media (max-width: 900px) {
    .literature-hall .featured-entry--literature {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "couverture"
            "presentation";
    }

    .literature-hall .featured-entry--literature > .featured-entry__book {
        grid-area: couverture;
        min-width: 0;
    }

    .literature-hall .featured-entry--literature > .featured-entry__content {
        grid-area: presentation;
        min-width: 0;
    }
}
/* Cinéma : conserver les affiches entières, y compris dans un lien. */
.cinema-hall .featured-entry__image {
    padding: 2rem 1.5rem;
}

.cinema-hall .featured-entry__image > a {
    display: block;
    width: min(100%, 420px);
}

.cinema-hall .featured-entry__image img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}


/* Affiches entières dans la largeur du téléphone. */
@media (max-width: 700px) {
    .cinema-hall .featured-entry__image {
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
        padding: 2rem 1.5rem;
    }

    .cinema-hall .featured-entry__image > a,
    .cinema-hall .featured-entry__image > img {
        width: min(100%, 300px);
    }
}

/* Éviter un zoom persistant après un toucher sur écran tactile. */
@media (hover: none) {
    .cinema-hall .featured-entry:hover .featured-entry__image img {
        transform: none;
    }
}

/* Date de publication, distincte de l’année du film ou de l’édition du livre. */
.featured-entry__content > .chronicle-publication,
.hall-entry-card > .chronicle-publication {
    margin: 0.85rem 0 0;
    color: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0.8;
}

/* Les affiches conservent leur ratio natif, avec ou sans lien. */
.cinema-hall .featured-entry__image {
    min-width: 0;
    box-sizing: border-box;
}

.featured-entry__content > .chronicle-availability,
.hall-entry-card > .chronicle-availability {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Carnets : alterner les observations en conservant les mêmes cadres photo. */
.carnets-opening + .carnets-opening {
    margin-top: clamp(3rem, 6vw, 6rem);
}

@media (min-width: 1001px) {
    .carnets-opening--reverse .carnets-opening__visual {
        grid-column: 1;
        grid-row: 1;
    }

    .carnets-opening--reverse .carnets-opening__content {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Littérature : harmoniser la taille des couvertures */
.literature-hall .featured-entry__book img {
    display: block;
    width: 100%;
    height: auto;
}
