:root {
    --navy: #102a5e;
    --amber: #f59e0b;
    --text: #334155;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.7;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 25px; }

/* NAV */
.legal-nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
.legal-nav .container { display: flex; justify-content: space-between; align-items: center; }
.legal-nav img { height: 40px; }
.back-home { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }

/* HEADER */
.legal-header { padding: 60px 0; background: #f8fafc; text-align: center; }
.legal-header h1 { font-size: 32px; color: var(--navy); margin-bottom: 10px; }
.legal-header h1 span { color: var(--amber); }
.legal-header p { color: #94a3b8; font-size: 14px; }

/* CONTENT */
.legal-content .container { display: grid; grid-template-columns: 250px 1fr; gap: 50px; padding: 60px 0; }

.table-of-contents { position: sticky; top: 40px; height: fit-content; }
.table-of-contents ul { list-style: none; }
.table-of-contents li { margin-bottom: 15px; }
.table-of-contents a { text-decoration: none; color: #64748b; font-size: 14px; transition: 0.3s; }
.table-of-contents a:hover { color: var(--navy); padding-left: 5px; }

.text-body h2 { color: var(--navy); font-size: 20px; margin: 40px 0 20px; }
.text-body p { margin-bottom: 15px; font-size: 15px; }
.text-body ul { margin-left: 20px; margin-bottom: 20px; }
.text-body li { margin-bottom: 8px; font-size: 15px; }

.legal-footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); color: #94a3b8; font-size: 13px; }

@media (max-width: 768px) {
    .legal-content .container { grid-template-columns: 1fr; }
    .table-of-contents { display: none; }
}
/* Style du bouton Download */
.btn-download {
    background: #102a5e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 42, 94, 0.2);
}

.btn-download:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* Optimisation pour le PDF */
/* Styles spécifiques pour le rendu PDF */
.text-body {
    background: white !important;
    color: #1a202c !important;
}

.doc-section {
    padding: 10px 0;
    /* Force chaque section à commencer sur une nouvelle page si nécessaire */
    page-break-before: auto; 
    page-break-inside: avoid; 
}

/* On stylise les titres pour le PDF */
.doc-section h2 {
    color: #102a5e !important;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Empêcher les cartes de se couper en deux */
.f-card, .grid-card, .info-alert {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 15px;
}

/* Supprimer les éléments inutiles sur le PDF */
@media print {
    .sidebar, .table-of-contents, .btn-download {
        display: none !important;
    }
}
/* Cibler le logo spécifiquement dans ta navbar légale */
.legal-nav .brand img {
    height: 100px; /* Taille recommandée (contre ~15px actuellement) */
    width: auto; /* Garde les proportions originales du logo */
    object-fit: contain; /* Assure que le logo ne soit pas déformé */
    vertical-align: middle; /* Aligne parfaitement le logo avec le texte "Retour" */
    
    /* Animation fluide au survol (optionnel, mais fait pro) */
    transition: transform 0.2s ease; 
}

/* Optionnel : petit effet au survol */
.legal-nav .brand img:hover {
    transform: scale(1.05);
}

/* Ajuster l'espacement du conteneur si nécessaire */
.legal-nav {
    padding: 15px 0; /* Ajoute un peu d'espace en haut et en bas de la barre */
}