:root {
    --bg: #f4f1eb;
    --text: #171717;
    --muted: #6d6a65;
    --line: rgba(23, 23, 23, 0.18);
    --page-x: clamp(1.25rem, 4vw, 4rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ==========================================================
   HEADER
========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    padding: 1rem var(--page-x);

    background: rgba(244, 241, 235, 0.92);
    backdrop-filter: blur(10px);

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

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: .55rem;
}

.brand-name {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brand-signature {
    color: var(--muted);
    font-size: .82rem;
}

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

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: .9rem;
}

.main-nav a {
    transition: opacity .2s ease;
}

.main-nav a:hover {
    opacity: .55;
}

.menu-toggle {
    display: none;
    padding: 0;

    border: 0;
    background: transparent;

    color: inherit;
    font: inherit;

    cursor: pointer;
}

/* ==========================================================
   ÉLÉMENTS GÉNÉRAUX
========================================================== */

.eyebrow {
    margin: 0 0 .65rem;

    color: var(--muted);

    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.text-link {
    display: inline-block;
    padding-bottom: .15rem;

    border-bottom: 1px solid currentColor;

    transition: opacity .2s ease;
}

.text-link:hover {
    opacity: .55;
}

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

.hero {
    min-height: calc(100vh - 65px);

    display: grid;
    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(280px, .8fr);

    gap: clamp(1.5rem, 4vw, 5rem);

    align-items: end;

    padding:
        clamp(1.5rem, 4vw, 4rem)
        var(--page-x);
}

.hero-media {
    min-height: min(72vh, 820px);
}

.placeholder-media {
    display: grid;
    place-items: center;

    overflow: hidden;

    background-color: #d8d5cf;
    background-size: cover;
    background-position: center;
}

.placeholder-media span {
    max-width: 24rem;
    padding: 2rem;

    color: #66615b;

    text-align: center;
    font-size: .9rem;
}

.hero-caption {
    padding-bottom: 1.5rem;
}

.hero h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 7.5rem);
    font-weight: 400;
    line-height: .94;
}

.hero-caption > p:not(.eyebrow) {
    max-width: 34rem;
    margin: 1.6rem 0;

    color: var(--muted);
}

/* ==========================================================
   INTRODUCTION ACCUEIL
========================================================== */

.intro {
    padding:
        clamp(5rem, 12vw, 11rem)
        var(--page-x);
}

.intro p {
    max-width: 1100px;
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 5.5rem);
    line-height: 1.05;
}

/* ==========================================================
   SECTIONS
========================================================== */

.section {
    padding:
        clamp(4rem, 8vw, 8rem)
        var(--page-x);

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

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 2.25rem;
}

.section h2 {
    margin: 0;

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

/* ==========================================================
   CARTES DES SÉRIES
========================================================== */

.series-grid {
    display: grid;

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

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

.serie-card {
    overflow: hidden;
}

.serie-image {
    aspect-ratio: 4 / 3;

    transition: transform .35s ease;
}

.serie-card a:hover .serie-image {
    transform: scale(.985);
}

.serie-meta {
    display: flex;
    justify-content: space-between;

    gap: 1rem;

    padding-top: 1rem;

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

.serie-meta h3 {
    margin: 0;

    font-size: 1.1rem;
    font-weight: 500;
}

.serie-meta p,
.serie-meta span {
    margin: .2rem 0 0;

    color: var(--muted);

    font-size: .85rem;
}

/* ==========================================================
   SECTIONS TEXTE
========================================================== */

.text-section {
    min-height: 45vh;

    display: grid;
    align-content: center;
}

.text-section p:last-child {
    max-width: 45rem;

    color: var(--muted);
}

/* ==========================================================
   PAGE SÉRIE
   INTRODUCTION
========================================================== */

.serie-intro {
    padding-top: clamp(5rem, 10vw, 10rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.serie-title {
    max-width: 1200px;

    margin: 0;

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

.serie-description {
    max-width: 650px;

    margin-top: 2rem;

    color: var(--muted);

    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
}

/* ==========================================================
   COUVERTURE DE LA SÉRIE
========================================================== */

.serie-cover {
    padding:
        0
        var(--page-x);
}

.serie-cover img {
    width: 100%;
    max-height: 90vh;

    object-fit: contain;
}

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

.serie-gallery {
    display: grid;

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

    column-gap: clamp(1.5rem, 3vw, 4rem);
    row-gap: clamp(5rem, 10vw, 11rem);

    padding:
        clamp(6rem, 12vw, 12rem)
        var(--page-x);
}

.serie-photo {
    margin: 0;

    grid-column:
        3 / span 8;
}

.serie-photo img {
    display: block;

    width: 100%;
    height: auto;
}

/* ==========================================================
   FORMATS
========================================================== */

.serie-photo--large {
    grid-column:
        1 / span 12;
}

.serie-photo--normal {
    grid-column:
        3 / span 8;
}

.serie-photo--petit {
    grid-column:
        5 / span 4;
}

.serie-photo--gauche {
    grid-column:
        1 / span 7;
}

.serie-photo--droite {
    grid-column:
        6 / span 7;
}

.serie-photo--plein-ecran {
    grid-column:
        1 / span 12;
}

/* ==========================================================
   VARIATION AUTOMATIQUE DES PHOTOS NORMALES
========================================================== */

.serie-photo--normal:nth-child(4n + 1) {
    grid-column:
        2 / span 7;
}

.serie-photo--normal:nth-child(4n + 2) {
    grid-column:
        5 / span 7;
}

.serie-photo--normal:nth-child(4n + 3) {
    grid-column:
        3 / span 8;
}

.serie-photo--normal:nth-child(4n) {
    grid-column:
        4 / span 7;
}

/* ==========================================================
   LÉGENDE DES PHOTOS
========================================================== */

.serie-photo figcaption {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 2rem;

    margin-top: .7rem;
    padding-top: .7rem;

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

    color: var(--muted);

    font-size: .8rem;
}

/* ==========================================================
   TITRE + DESCRIPTION
========================================================== */

.photo-caption-main {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;

    gap: .3rem;
}

.photo-title {
    display: block;

    color: var(--text);

    font-size: .9rem;
    font-weight: 500;
}

.photo-description {
    display: block;

    max-width: 42rem;

    color: var(--muted);

    font-size: .82rem;
    line-height: 1.5;
}

/* ==========================================================
   LIEU
========================================================== */

.photo-location {
    flex-shrink: 0;

    color: var(--muted);

    font-size: .78rem;

    white-space: nowrap;
}

/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
    display: flex;
    justify-content: space-between;

    gap: 1rem;

    padding:
        2rem
        var(--page-x);

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

    color: var(--muted);

    font-size: .8rem;
}

/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 1000px) {

    .serie-gallery {
        grid-template-columns:
            repeat(8, minmax(0, 1fr));
    }

    .serie-photo,
    .serie-photo--normal {
        grid-column:
            2 / span 6;
    }

    .serie-photo--large,
    .serie-photo--plein-ecran {
        grid-column:
            1 / span 8;
    }

    .serie-photo--petit {
        grid-column:
            3 / span 4;
    }

    .serie-photo--gauche {
        grid-column:
            1 / span 6;
    }

    .serie-photo--droite {
        grid-column:
            3 / span 6;
    }

    .serie-photo--normal:nth-child(4n + 1),
    .serie-photo--normal:nth-child(4n + 2),
    .serie-photo--normal:nth-child(4n + 3),
    .serie-photo--normal:nth-child(4n) {
        grid-column:
            2 / span 6;
    }
}

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

@media (max-width: 850px) {

    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;

        display: none;
        flex-direction: column;

        padding:
            1rem
            0
            .25rem;
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: auto;

        grid-template-columns:
            1fr;

        align-items: start;
    }

    .hero-media {
        min-height: 62vh;
    }

    .hero-caption {
        padding-bottom: 2rem;
    }

    .series-grid {
        grid-template-columns:
            1fr;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .serie-gallery {
        display: block;

        padding:
            4rem
            var(--page-x);
    }

    .serie-photo,
    .serie-photo--normal,
    .serie-photo--large,
    .serie-photo--petit,
    .serie-photo--gauche,
    .serie-photo--droite,
    .serie-photo--plein-ecran {
        width: 100%;

        margin-bottom: 4.5rem;
    }

    .serie-photo figcaption {
        flex-direction: column;

        gap: .6rem;
    }

    .photo-description {
        max-width: none;

        font-size: .85rem;
    }

    .photo-location {
        white-space: normal;
    }

    .serie-cover img {
        max-height: none;
    }
}

/* ==========================================================
   PETITS ÉCRANS
========================================================== */

@media (max-width: 560px) {

    .hero-media {
        min-height: 54vh;
    }

    .site-footer {
        flex-direction: column;

        gap: .5rem;
    }

    .serie-title {
        font-size:
            clamp(3rem, 16vw, 5rem);
    }

    .serie-gallery {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .serie-photo,
    .serie-photo--normal,
    .serie-photo--large,
    .serie-photo--petit,
    .serie-photo--gauche,
    .serie-photo--droite,
    .serie-photo--plein-ecran {
        margin-bottom: 3.5rem;
    }
}
/* ==========================================================
   THÉMATIQUES
========================================================== */

.themes-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.theme-card {
    display: grid;
    grid-template-columns: 80px 1fr;

    gap: 2rem;

    padding: 2rem 0;

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

.theme-number {
    color: var(--muted);

    font-size: .75rem;
    letter-spacing: .12em;
}

.theme-content {
    display: grid;

    grid-template-columns:
        minmax(180px, .6fr)
        minmax(240px, 1fr)
        auto;

    gap: 2rem;

    align-items: start;
}

.theme-content h3 {
    margin: 0;

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

    font-size:
        clamp(
            1.6rem,
            3vw,
            3rem
        );

    font-weight: 400;
}

.theme-content p {
    margin: 0;

    max-width: 38rem;

    color: var(--muted);

    line-height: 1.6;
}

.theme-count {
    color: var(--muted);

    font-size: .8rem;

    white-space: nowrap;
}

@media (max-width: 800px) {

    .theme-card {
        grid-template-columns:
            40px
            1fr;

        gap: 1rem;
    }

    .theme-content {
        grid-template-columns:
            1fr;

        gap: .75rem;
    }

    .theme-count {
        white-space: normal;
    }
}
.themes-list {
    border-top: 1px solid var(--line);
}

.theme-item {
    border-bottom: 1px solid var(--line);
}

.theme-toggle {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr auto;

    gap: 1rem;

    align-items: center;

    padding: 1.5rem 0;

    border: 0;

    background: transparent;

    color: var(--text);

    text-align: left;

    cursor: default;
}

.theme-toggle-title {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            1.8rem,
            3vw,
            3.2rem
        );

    font-weight: 400;
}

.theme-toggle-icon {
    display: none;

    color: var(--muted);

    font-size: 1.5rem;

    line-height: 1;
}

.theme-body {
    display: grid;

    grid-template-columns:
        minmax(240px, .8fr)
        minmax(280px, 1.2fr);

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

    padding:
        0
        0
        2rem;
}

.theme-description {
    margin: 0;

    max-width: 38rem;

    color: var(--muted);

    line-height: 1.6;
}

.theme-series {
    display: flex;

    flex-wrap: wrap;

    gap:
        .5rem
        1.2rem;
}

.theme-series-link {
    position: relative;

    padding-bottom: .15rem;

    color: var(--text);

    font-size: .9rem;
}

.theme-series-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background: currentColor;

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform .2s ease;
}

.theme-series-link:hover::after {
    transform: scaleX(1);
}


/* ==========================================================
   THÉMATIQUES MOBILE
========================================================== */

@media (max-width: 700px) {

    .theme-toggle {
        cursor: pointer;

        padding:
            1rem
            0;
    }

    .theme-toggle-title {
        font-size:
            1.25rem;
    }

    .theme-toggle-icon {
        display: block;
    }

    .theme-body {
        display: none;

        grid-template-columns:
            1fr;

        gap:
            1.25rem;

        padding:
            0
            0
            1.5rem;
    }

    .theme-item.is-open .theme-body {
        display: grid;
    }

    .theme-item.is-open
    .theme-toggle-icon {
        transform:
            rotate(
                45deg
            );
    }

    .theme-series {
        flex-direction: column;

        gap: .45rem;
    }

    .theme-series-link {
        font-size: .95rem;
    }

}