/* ── Reset ──────────────────────────────────── */
* {
    box-sizing: border-box;
}

/* Réserve toujours l'espace de la scrollbar — évite le décalage
   entre pages avec/sans scroll (ex: index vs projet) */
html {
    scrollbar-gutter: stable;
}

/* ── Variables ──────────────────────────────── */
:root {
    --site-margin: clamp(1.5rem, 27vw, 380px);
    --color-red: #b0020f;
    --color-border: #222; /* Légèrement plus clair pour être visible */
}

@media (max-width: 640px) {
    :root {
        --site-margin: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    :root {
        --site-margin: clamp(1rem, 8vw, 80px);
    }
}

/* ── Base ───────────────────────────────────── */
body {
    background-color: #000;
    font-family: 'Bebas Neue', sans-serif;
    color: #fff;
}

/* ── Header ─────────────────────────────────── */
.site-header {
    width: 100%;
    padding-bottom: 2rem;
    text-align: center;
}

.site-banner {
    display: block;
    padding: 4rem var(--site-margin) 0;
}

.site-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.site-subtitle {
    color: #888;
    margin: 6rem auto 4rem;
    padding: 0 var(--site-margin);
    font-size: 1.3rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.subtitle-accent {
    color: var(--color-red);
}

/* ── Film Grid ───────────────────────────────── */
.film-grid {
    margin: 0 var(--site-margin) 4rem;
    /* On retire la bordure du container car elle sera gérée par les items */
}

/* ── Film Card ───────────────────────────────── */
.film-card {
    background-color: #000;
    border: none;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    cursor: pointer;
    padding: 3rem 2.5rem 2.2rem;
    position: relative;
    overflow: visible;
    text-decoration: none;
    color: inherit;
    user-select: none; /* Comme demandé pour l'admin, propre sur tout le site */
}

/* Cellules vides pour compléter la ligne */
.film-placeholder {
    cursor: default;
    pointer-events: none;
}

/* ── Film Title ──────────────────────────────── */
.film-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.4rem, 3.2vw, 1.5rem);
    font-weight: 400;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.05em;
    transition: color 0.35s ease;
    position: relative;
    z-index: 1;
}

/* .film-card:hover .film-title {
    color: var(--color-red);
} */

/* ── Logo SVG au-dessus du texte ─────────────── */
.film-title::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('../img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    margin-bottom: 6px;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* Hover : monte légèrement + fade in */
.film-card:hover .film-title::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ── Mobile styles prioritaires ──────────────── */
@media (max-width: 640px) {
    /* Styles spécifiques mobile si besoin */
}