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

:root {
    --navy: #0c1f6b;
    --navy-deep: #081656;
    --sky: #8ec8e8;
    --brown: #4A2011;
    --white: #ffffff;
    --black: #111111;
    --font-display: "Anton", sans-serif;
    --font-condensed: "Barlow Condensed", sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-body: "Open Sans", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* ── Hero ── */

.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    min-height: clamp(280px, 38vw, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3.5rem, 8vw, 5rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 3.5rem);
}

.menu-toggle {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 2rem;
    height: 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 20;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: var(--white);
    border-radius: 1px;
}

.telerama-mark {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 20;
}

.telerama-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.65rem;
    background: rgba(6, 10, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}

.telerama-name,
.telerama-year {
    white-space: nowrap;
}

.telerama-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.35rem;
    background: #e2001a;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1;
}

.hero-brand {
    text-align: center;
    width: min(94vw, 640px);
}

.hero-logo-wrap {
    margin: 0;
    line-height: 0;
}

.hero-logo {
    display: block;
    width: min(74vw, 26rem);
    height: auto;
    margin: 0 auto;
}

.hero-info {
    margin-top: clamp(1.25rem, 3vw, 2rem);
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.hero-info p + p {
    margin-top: 0.1em;
}

.hero-info a {
    text-decoration: none;
}

/* ── Navigation ── */

.site-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 85vw);
    background: var(--navy-deep);
    color: var(--white);
    z-index: 100;
    padding: 4rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.site-nav.is-open {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: none;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.site-nav a {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
}

.nav-backdrop:not([hidden]) {
    display: block;
}

/* ── Intro ── */

.intro {
    background: var(--white);
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 6vw, 4rem);
}

.intro-text {
    max-width: 52rem;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    text-align: left;
}

.intro-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding-right: clamp(0, 2vw, 1rem);
}

.intro-links a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--black);
}

/* ── Gallery ── */

.gallery--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.gallery-item {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d8d8d8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Gallery carousel (bas de page) ── */

.gallery-carousel {
    background: var(--white);
    position: relative;
}

.gallery-carousel__pin {
    position: relative;
    width: 100%;
}

.gallery-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-carousel__track {
    display: flex;
    will-change: transform;
    margin: 0;
    padding: 0;
}

.gallery-carousel__slide {
    flex: 0 0 50%;
    margin: 0;
    aspect-ratio: 586 / 780;
    overflow: hidden;
    background: var(--white);
}

.gallery-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.gallery-carousel__progress {
    display: none;
}

.gallery-carousel__dots {
    display: none;
}

@media (min-width: 769px) {
    .gallery-carousel__pin {
        position: sticky;
        top: 0;
        align-self: start;
    }

    .gallery-carousel__viewport {
        height: clamp(260px, 28vw, 360px);
    }

    .gallery-carousel__slide {
        aspect-ratio: auto;
        height: clamp(260px, 28vw, 360px);
    }

    .gallery-carousel__progress {
        display: block;
        position: absolute;
        bottom: clamp(1.5rem, 4vh, 2.5rem);
        left: 50%;
        transform: translateX(-50%);
        width: 3.5rem;
        height: 1px;
        background: rgba(12, 31, 107, 0.12);
        pointer-events: none;
    }

    .gallery-carousel__progress-fill {
        display: block;
        height: 100%;
        width: 0%;
        background: rgba(12, 31, 107, 0.35);
        transform-origin: left center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-carousel {
        height: auto !important;
    }

    .gallery-carousel__pin {
        position: relative !important;
        height: auto !important;
    }

    .gallery-carousel__progress {
        display: none !important;
    }
}

/* ── Split sections ── */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(320px, 38vw, 480px);
}

.split-panel {
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
    display: flex;
    flex-direction: column;
}

.split-panel--cinema {
    background: var(--navy);
    color: var(--white);
    justify-content: flex-start;
}

.split-panel--cinema .split-body,
.split-panel--festival .split-body,
.split-panel--extras .split-body {
    margin-top: clamp(1.25rem, 3vw, 2rem);
}

.split-panel--cinema .split-body p,
.split-panel--festival .split-body p,
.split-panel--extras .split-body p {
    font-family: var(--font-body);
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 1.65;
    max-width: 28rem;
    font-weight: 500;
}

.split-panel--cinema .split-body strong,
.split-panel--festival .split-body strong,
.split-panel--extras .split-body strong {
    font-weight: 900;
}

.split-panel--cinema .split-body .split-note,
.split-panel--festival .split-body .split-note,
.split-panel--extras .split-body .split-note {
    margin-top: 1.25rem;
    font-style: italic;
}

.split-panel--cinema .split-body .split-note a,
.split-panel--festival .split-body .split-note a,
.split-panel--extras .split-body .split-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.split-panel--cinema .split-body .split-note a:hover,
.split-panel--festival .split-body .split-note a:hover,
.split-panel--extras .split-body .split-note a:hover {
    text-decoration-thickness: 2px;
}

.split-panel--media {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: var(--black);
}

.split-panel--media img {
    width: 100%;
    height: 100%;
    min-height: clamp(280px, 38vw, 480px);
    object-fit: cover;
}

.split-panel--festival {
    background: var(--sky);
    color: var(--white);
    justify-content: flex-start;
}

.split-panel--extras {
    background: var(--brown);
    color: var(--white);
    justify-content: flex-end;
}

.split-panel--text {
    background: var(--white);
    justify-content: center;
}

.split-panel--text p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.65;
    max-width: 28rem;
}

.split-panel--text .split-note {
    margin-top: 1.25rem;
    font-style: italic;
}

.split-panel--text .split-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.split-panel--text .split-note a:hover {
    text-decoration-thickness: 2px;
}

.split-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: lowercase;
}

.split-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    margin-top: 0.35rem;
}

.split-participants {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.72rem;
    line-height: 1.5;
    opacity: 0.92;
}

/* ── Press ── */

.press {
    background: var(--navy);
    color: var(--white);
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.press__inner {
    max-width: 52rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2.5rem 2rem;
}

.press-quote {
    margin: 0;
}

.press-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.45;
}

.press-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
}

.press-logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.press-logo--telerama {
    width: clamp(3.25rem, 8vw, 5rem);
}

.press-logo--monde {
    width: clamp(3.75rem, 9vw, 5.75rem);
    margin-left: auto;
}

.press-logo--timeout {
    width: clamp(2.75rem, 7vw, 4.25rem);
    margin: 0 auto;
}

.press-quote--left {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.press-quote--right {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    text-align: right;
}

.press-quote--center {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

/* ── Footer ── */

.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    width: min(200px, 42vw);
    height: auto;
}

.footer-info {
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-info a {
    color: var(--white);
    text-decoration: none;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .gallery--duo {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 16 / 10;
    }

    .gallery-carousel {
        height: auto;
    }

    .gallery-carousel__pin {
        height: auto;
    }

    .gallery-carousel__track {
        transition: transform 0.35s ease;
    }

    .gallery-carousel__viewport {
        touch-action: pan-y pinch-zoom;
        overflow: hidden;
    }

    .gallery-carousel__slide {
        aspect-ratio: 586 / 780;
        height: auto;
        overflow: hidden;
        background: var(--white);
    }

    .gallery-carousel__slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gallery-carousel__dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.55rem;
        padding: 1rem 0 1.35rem;
    }

    .gallery-carousel__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(12, 31, 107, 0.18);
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .gallery-carousel__dot.is-active {
        background: rgba(12, 31, 107, 0.55);
        transform: scale(1.15);
    }

    .split-section,
    .split-section--reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-section--reverse .split-panel--text {
        order: 2;
    }

    .split-section--reverse .split-panel--festival,
    .split-section--reverse .split-panel--extras {
        order: 1;
    }

    .split-section--reverse .split-panel--media {
        order: 2;
    }

    .split-panel--cinema,
    .split-panel--festival,
    .split-panel--extras {
        min-height: 180px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .split-panel--media img {
        min-height: clamp(220px, 55vw, 320px);
    }

    .split-panel--cinema .split-title,
    .split-panel--festival .split-title,
    .split-panel--extras .split-title {
        font-size: clamp(2.5rem, 10vw, 3.25rem);
    }

    .split-panel--cinema .split-participants,
    .split-panel--festival .split-participants,
    .split-panel--extras .split-participants {
        margin-top: 0;
        padding-top: 0;
    }

    .press__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .press-quote--left,
    .press-quote--right,
    .press-quote--center {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

    .press-quote--center {
        text-align: left;
        margin: 0;
    }

    .press-logo--monde,
    .press-logo--timeout {
        margin-left: 0;
        margin-right: auto;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

}
