:root {
    --bg-color: #0f172a;           
    --bg-secondary: #1e293b;       
    --accent-color: #38bdf8;       
    --accent-secondary: #8b5cf6;   
    --text-primary: #f8fafc;       
    --text-secondary: #94a3b8;    
    --text-lien: #ff83bd;           
    --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);
}

*, *::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;
}

.site-container {
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 24px;   
}

.filters {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.recherche {
    width: 100%;
    text-transform: uppercase;
}

.recherche input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.recherche input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.filters-group {
    display: flex;
    gap: 20px;
}

.selection {
    flex: 1;
    text-transform: uppercase;
}

.filters-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filters-group select:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.lien {
    color: var(--text-lien);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
    transition: color var(--transition-fast);
}

.lien:hover {
    color: var(--accent-color);
}

.serie-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card__img {
    width: 100%;
    height: 340px; 
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.card__content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card__content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card__types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.card__type {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card__stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-item {
    text-align: center;
}

.stat-item p {
    margin: 0 0 2px 0;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card__number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.card--action:hover { border-color: rgba(239, 68, 68, 0.4); }      
.card--comédie:hover { border-color: rgba(251, 191, 36, 0.4); }     
.card--drame:hover { border-color: rgba(59, 130, 246, 0.4); }       
.card--animation:hover { border-color: rgba(34, 197, 94, 0.4); }   
.card--fantastique:hover { border-color: rgba(139, 92, 246, 0.4); } 
.card--science-fiction:hover { border-color: rgba(6, 182, 212, 0.4); } 
