/* ==========================================================================
   PAGE MENTIONS LÉGALES & CONFIDENTIALITÉ (STYLE VAFM FOND CLAIR)
   ========================================================================== */

body {
    background-color: #f8f9fa;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* EN-TÊTE */
.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #0f0f11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #e11d48;
}

.legal-logo {
    height: 50px;
    opacity: 0.9;
}

/* CONTENEUR PRINCIPAL */
.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 80px 20px;
}

/* ONGLETS */
.legal-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

/* Onglet inactif */
.tab-btn {
    background: #e5e7eb;
    border: 1px solid transparent;
    color: #4b5563;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #111827;
    background: #d1d5db;
}

/* Onglet actif (Rouge VAFM) */
.tab-btn.active {
    color: #ffffff !important;
    background: #db1111 !important;
    border: 1px solid #db1111;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* CONTENU DES SECTIONS */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TITRES */
h1, .titre {
    color: #111827 !important;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

h2 {
    color: #111827 !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 12px;
    border-left: 4px solid #e11d48;
    padding-left: 12px;
}

h3 {
    color: #111827 !important;
    font-size: 1.1rem;
    font-weight: 700;
}

/* TEXTE GÉNÉRAL */
p, li {
    color: #374151 !important;
    font-size: 0.98rem;
    line-height: 1.65;
}

strong {
    color: #111827 !important;
}

.last-update {
    color: #6b7280 !important;
    font-weight: 500;
}

/* CARDS MENTIONS LÉGALES */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #e11d48;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-card h3 {
    margin-top: 0;
    color: #111827 !important;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.legal-card p, .legal-card li {
    color: #4b5563 !important;
}

.legal-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-card li {
    margin-bottom: 8px;
}

/* CITATION / ENCADRÉ */
.legal-quote {
    background: #fff1f2 !important;
    border-left: 4px solid #e11d48 !important;
    margin: 25px 0;
    padding: 18px 20px;
    border-radius: 0 12px 12px 0;
    color: #9f1239 !important;
    font-style: italic;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
}