/* --- VARIABLES DE COULEURS (À AJUSTER SELON TON LOGO) --- */
:root {
    --primary-green: #2d5a27;   /* Vert Pépinière */
    --secondary-green: #092D04;   /* Vert Pépinière */
    --accent-red: #a52a2a;      /* Rouge Terre Cuite pour les titres */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-gray: #f8f9fa;
    --white: #ffffff;
}

/* --- MISE EN PAGE GÉNÉRALE --- */
.legal-wrapper {
    padding-top: 160px; /* Espace pour ton menu de navigation */
    padding-bottom: 80px;
    background-color: var(--bg-gray);
    display: flex;
    justify-content: center;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.legal-card {
    max-width: 900px;
    width: 95%;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* --- TITRE DE LA PAGE --- */
.legal-page-title {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 30px;
}

.legal-page-title h1 {
    font-size: 2rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.law-badge {
    font-weight: bold;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.last-update {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* --- SECTIONS NUMÉROTÉES --- */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
    padding-left: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    text-align: justify;
}

/* --- LISTES PERSONNALISÉES (🌱) --- */
.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.custom-list li::before {
    content: "🌱";
    position: absolute;
    left: 0;
    top: 0;
}

/* --- BOÎTE DES COORDONNÉES (SECTION 9) --- */
.responsible-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 5px;
    margin-top: 20px;
}

.responsible-box p {
    margin-bottom: 8px !important;
    text-align: left !important;
}

.responsible-box a {
    color: var(--primary-green);
    text-decoration: underline;
    font-weight: bold;
}

/* --- BOUTON RETOUR --- */
.legal-footer-nav {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-back {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-green);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #1e3d1a;
}

/* --- BANDEAU DE COOKIES --- */
.cookie-bar {
    position: fixed;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: var(--secondary-green);
    padding: 20px 30px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 10000;
    display: none; /* Géré par le JS */
    display: none; /* Caché par défaut */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
/* --- STYLES DES LIENS DANS LE BANDEAU --- */
.cookie-bar a {
    color: var(--white);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease-in-out; /* Transition plus fluide ici */
}

.cookie-bar a:hover {
    color: #d1e7c4; /* Vert pâle pour le rappel végétal */
}

/* --- AJUSTEMENT POUR LES LIENS DANS LE TEXTE --- */
.cc-link {
    display: inline-block;
    margin: 0 5px;
}
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.btn-cookie {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-accept { background: var(--primary-green); color: white; }
.btn-accept:hover { background: #1e3d1a; transform: scale(1.05); }

.btn-refuse { background: #f0f0f0; color: #666; }
/* Mobile */
@media (max-width: 768px) {
    .cookie-container { flex-direction: column; text-align: center; }
    .legal-card { padding: 25px; }
}
/* Style spécifique pour le bouton déclencheur (le biscuit) */
#cookie-trigger {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #2d5a27 !important; /* Ton vert pépinière */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}
.cookie-text b { color: var(--primary-green); font-size: 1.1rem; }
.cookie-text p { margin: 5px 0 0; font-size: 0.95rem; line-height: 1.4; }
#cookie-trigger i {
    font-size: 1.5rem !important;
}

#cookie-trigger:hover {
    transform: scale(1.1);
    background-color: #1e3d1a !important;
}