/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f0f; /* Même fond sombre pro */
    color: #e0e0e0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- HEADER (Navigation) --- */
#header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- CONTENU POLITIQUE CONFIDENTIALITÉ --- */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.container {
    max-width: 800px; /* Lecture confortable */
    margin: 0 auto;
    padding: 0 20px;
}

.legal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.legal-subtitle {
    color: #00ff88; /* Une petite touche de vert pour évoquer la sécurité/validation */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin-bottom: 60px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Style des Articles */
.legal-content article {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02); /* Légère carte */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.legal-content article:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    border-left: 3px solid #00ff88; /* Barre verte à gauche */
    padding-left: 15px;
}

.legal-content p, .legal-content li {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* Listes à puces */
.legal-content ul {
    margin-bottom: 20px;
    padding-left: 10px;
}

.legal-content ul li {
    position: relative;
    padding-left: 25px;
}

.legal-content ul li::before {
    content: "•";
    color: #00ff88;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

.legal-content a {
    color: #00ff88;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-content a:hover {
    color: #fff;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    font-size: 0.8rem;
    margin-top: 40px;
}

/* --- COOKIES --- */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    animation: cookieFade 0.25s ease both;
}
.cookie-banner.closing {
    animation: cookieFadeOut 0.2s ease both;
}
.cookie-content {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    max-width: 720px;
    width: min(720px, 92vw);
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    animation: cookiePop 0.3s ease both;
}
.cookie-banner.closing .cookie-content {
    animation: cookiePopOut 0.2s ease both;
}
.cookie-text h3 { color: #fff; margin-bottom: 6px; font-size: 1rem; }
.cookie-text p { color: #bbb; max-width: 520px; font-size: 0.95rem; }
.cookie-text a { color: #00ff88; text-decoration: underline; text-underline-offset: 4px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.cookie-btn.btn-primary { background: #00ff88; color: #000; border-color: transparent; }

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: none;
}
.cookie-modal.open { display: block; }
.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.cookie-modal-card {
    position: relative;
    max-width: 520px;
    margin: 10vh auto;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    color: #ddd;
}
.cookie-modal-card h3 { color: #fff; margin-bottom: 8px; }
.cookie-modal-card p { color: #bbb; margin-bottom: 18px; }
.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cookie-option span { color: #888; font-size: 0.9rem; display: block; }
.cookie-status { color: #00ff88; font-size: 0.85rem; }
.cookie-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.cookie-option.toggle {
    position: relative;
    padding-right: 54px;
}
.cookie-option.toggle input {
    position: absolute;
    right: 0;
    opacity: 0;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-ui {
    position: absolute;
    right: 0;
    width: 40px;
    height: 22px;
    background: #333;
    border-radius: 999px;
    transition: 0.3s;
}
.toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: 0.3s;
}
.cookie-option.toggle input:checked + .toggle-ui {
    background: rgba(0, 255, 136, 0.6);
}
.cookie-option.toggle input:checked + .toggle-ui::after {
    transform: translateX(18px);
}

.cookie-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2500;
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-fab.visible {
    opacity: 1;
    transform: translateY(0);
}

body.cookie-open {
    overflow: hidden;
}

@keyframes cookieFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cookiePop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cookieFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes cookiePopOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-content article {
        padding: 20px;
    }

    .cookie-banner { padding: 12px; }
    .cookie-modal-card { margin: 12vh 16px; }
}