/* --- 1. Base globale --- */
body {
    background-color: #121212 !important;
    color: #ffffff !important;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

/* --- 2. Mise en page --- */
.legal-page {
    padding: 60px 20px 120px;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: transparent !important;
}

/* --- 3. Le conteneur (la "carte") --- */
.legal-container {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    line-height: 1.75;
}

/* --- 4. Titres --- */
h1, .legal-container h2 {
    color: #e50914 !important;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #888;
    margin-bottom: 50px;
}

/* --- 5. Gestion des cookies --- */
.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.manager-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Empile les boutons si écran petit */
}

/* Boutons */
.btn-primary { background: #e50914 !important; color: white !important; padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; }
.btn-outline { background: transparent !important; color: white !important; border: 1px solid #555; padding: 12px 24px; cursor: pointer; }

/* Correction pour éviter que le rouge de style.css n'envahisse les DIVs */
div, section, main {
    background-color: transparent !important;
}

/* Style de la notification */
#cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;

    /* Le secret du Glassmorphism */
    background: rgba(30, 30, 30, 0.7); /* Fond gris foncé transparent */
    backdrop-filter: blur(35px); /* L'effet de flou */
    -webkit-backdrop-filter: blur(15px); /* Support Safari */

    color: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure très fine et légère */
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);

    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;

    /* Animation */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#cookie-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notif-icon {
    font-size: 1.2rem;
    background: #e50914; /* Pastille rouge Netflix pour l'icône */
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Barre de progression sous la notification */
#cookie-notification::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #e50914;
    width: 100%;
    animation: shrink 2.5s linear forwards;
}

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}
