/* --- CSS SPÉCIFIQUE PAGE DÉTAILS --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

:root {
    --bg-black: #141414;
    --netflix-red: #E50914;
    --btn-white: #ffffff;
    --btn-grey: rgba(109, 109, 110, 0.7);
    --match-green: #46d369;
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-black);
    color: white;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* 1. HERO FULLSCREEN */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Plein écran */
    background-size: cover;
    background-position: center top;
}

/* 2. VIGNETTAGE (Le dégradé sombre) */
.vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to right,
            rgba(0,0,0,0.9) 0%,     /* Noir à gauche (sous le texte) */
            rgba(0,0,0,0.5) 40%,
            transparent 80%
    ),
    linear-gradient(
            to top,
            #141414 0%,            /* Noir en bas (fondu page) */
            rgba(20,20,20,0.5) 20%,
            transparent 50%
    );
}

/* 3. CONTENU (Texte à gauche) */
.content-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center; /* Centré verticalement */
    padding-left: 5%;    /* Marge gauche */
}

.info-block {
    max-width: 40%;      /* Largeur max du texte */
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

/* Logo du film ou Titre Texte */
.movie-logo {
    width: 100%;
    max-width: 400px; /* Taille max logo */
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(2px 4px 6px black);
}
.movie-title-text {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Métadonnées (Ligne d'infos) */
.meta-line {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.score { color: var(--match-green); }
.year { color: #a3a3a3; }
.hd-tag {
    border: 1px solid #888; border-radius: 3px;
    padding: 1px 6px; font-size: 0.75rem; color: #ccc;
}

/* Synopsis */
.synopsis {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px black;
}

/* 4. BOUTONS ACTION */
.btn-row { display: flex; gap: 15px; margin-bottom: 30px; }

.btn {
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}
.btn:hover { transform: scale(1.03); }

.btn-play {
    background: var(--btn-white);
    color: black;
}
.btn-play:hover { background: rgba(255,255,255,0.75); }

.btn-glass {
    background: var(--btn-grey);
    color: white;
}
.btn-glass:hover { background: rgba(109, 109, 110, 0.4); }

/* 5. CASTING (Mini têtes) */
.cast-row {
    display: flex; gap: 15px; align-items: center;
}
.actor {
    display: flex; flex-direction: column; align-items: center; width: 60px;
    font-size: 0.7rem; color: #ccc; text-align: center;
}
.actor img {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; margin-bottom: 5px; border: 1px solid #555;
}

/* Bouton Retour (Flèche) */
.back-btn {
    position: absolute; top: 30px; left: 30px; z-index: 100;
    color: white; font-size: 1.5rem; opacity: 0.7; transition: 0.3s;
}
.back-btn:hover { opacity: 1; transform: scale(1.1); }

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero { height: auto; min-height: 100vh; }
    .content-wrapper {
        position: relative;
        flex-direction: column;
        padding: 100px 20px 50px 20px;
        align-items: flex-start;
        background: linear-gradient(to top, #141414 20%, transparent);
    }
    .info-block { max-width: 100%; }
    .movie-logo { max-width: 250px; margin: 0 auto 20px auto; }
    .btn-row { flex-direction: column; width: 100%; }
    .btn { justify-content: center; width: 100%; }
    .vignette { background: rgba(0,0,0,0.5); } /* Plus sombre sur mobile */
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }