:root {
    --bg-color: #0f172a;           
    --bg-secondary: #1e293b;       
    --accent-color: #38bdf8;
    --accent-secondary: #8b5cf6;          
    --text-primaire: #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-primaire);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-container {
    max-width: 1400px;
    margin: 0 auto; 
    padding: 0 24px 60px 24px;   
}

.hero-welcome {
    position: relative;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), 
                url('../images/Seriboxd%20t%C3%A9l%C3%A9.png') no-repeat center center;
    background-size: cover;
    padding: 80px 24px 100px 24px;
    max-height: 320px; 
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-welcome h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.hero-welcome p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin: 0;
}

.barre-recherche {
    display: flex;
    max-width: 640px;
    margin: -32px auto 60px auto;
    position: relative;
    z-index: 5;
    background: rgba(30, 41, 59, 0.95);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); 
}

.barre-recherche input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
}

.barre-recherche input:focus {
    outline: none;
}

.bouton-recherche {
    background: var(--text-lien);
    color: #fff;
    border: none;
    padding: 0 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.bouton-recherche:hover {
    background: var(--accent-color);
    transform: scale(0.98);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 14px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.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-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
    gap: 20px;
}

.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    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 4px 15px 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.18);
}

.card__img-container {
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.card:hover .card__img {
    transform: scale(1.03);
}

.card__overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.card__note {
    background: rgba(15, 23, 42, 0.85);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.card__content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card__year {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card--action:hover { border-color: rgba(239, 68, 68, 0.4); }
.card--comedie: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--sciencefiction:hover { border-color: rgba(6, 182, 212, 0.4); }