/* --- VARIABLES GLOBALES ALIGNÉES SUR DETAIL.CSS --- */
:root {
    --bg-color: #0f172a;           
    --card-bg: #1e293b;           
    --card-bg-hover: #243046;     
    --accent-color: #38bdf8;       
    --accent-secondary: #8b5cf6;   
    --text-primary: #f8fafc;       
    --text-secondary: #94a3b8;     
    --border-color: rgba(255, 255, 255, 0.08); 
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & DESIGN DE BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- ARRIÈRE-PLAN ACTEUR IMMERSIF (FLOUTÉ) --- */
.backdrop-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center 20%;
    filter: blur(60px) brightness(0.70); /* Ajustez brightness entre 0.5 et 0.7 selon la lisibilité voulue */
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

.site-container {
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 24px;   
}

/* --- BLOC INFOS DE L'ACTEUR (HERO) --- */
.detail-wrapper {
    position: relative;
    display: flex;
    gap: 44px;
    background: var(--card-bg);
    padding: 44px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 48px;
}

.poster-img {
    width: 280px;
    min-width: 280px;
    height: 420px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.info-section h1 {
    font-size: clamp(2.2rem, 4vw, 3rem); 
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- BADGES D'INFORMATION (PLATS) --- */
.info-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
}

.bouton-retour {
    position: absolute;
    top: 24px;           
    left: 24px;          
    z-index: 10;         
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #121b2e;
    color: var(--text-primary);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bouton-retour:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    background: #fff;
    color: var(--bg-color);
    border-color: #fff;
}

.biographie-text {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.65;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 48px 0 24px 0;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 14px;
}

.filmographie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.serie-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.serie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    background: var(--card-bg-hover);
}

.serie-poster {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.serie-info {
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex-grow: 1;
}

.serie-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.serie-rating {
    display: inline-self;
    align-self: center;
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.15);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

