/* Style principal de la barre */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 99999; /* S'assure de passer au-dessus des résultats de recherche */
    padding: 15px 20px;
    box-sizing: border-box;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* État masqué */
.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Alignement flexbox pour les grands écrans (PC/Tablettes) */
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-content p {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

.cookie-content a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

/* Groupe de boutons */
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Style commun des boutons */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* Bouton Accepter (Mise en avant discrète mais équilibrée) */
.btn-accept {
    background-color: #218838;
    color: #ffffff;
}

.btn-accept:hover {
    background-color: #1e7e34;
}

/* Bouton Refuser (Parfaitement symétrique selon les normes CNIL) */
.btn-decline {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
}

.btn-decline:hover {
    background-color: #e9ecef;
}

/* --- ADAPTATION RESPONSIVE SMARTPHONE --- */
@media (max-width: 767px) {
    .cookie-banner {
        padding: 20px 15px; /* Plus d'espace pour le tactile */
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column; /* Empilement vertical des actions sur mobile */
        gap: 10px;
    }

    .btn {
        width: 100%; /* Boutons faciles à cibler sur tout l'écran du téléphone */
        padding: 14px;
        font-size: 15px;
    }
}
