/* Container principal */
#overlay-cookie {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1055; /* Au-dessus du z-index modal Bootstrap (1050) */
}

/* Popup caché par défaut */
#popup-cookie {
    display: none;
    border-top: 5px solid #014d23 !important;
}

/* Couleur verte personnalisée pour remplacer le vert Bootstrap */
.text-success,
.btn-success,
.btn-outline-success,
.spinner-border.text-success {
    --bs-success: #014d23 !important;
    --bs-success-rgb: 1, 77, 35 !important;
}

.btn-success {
    background-color: #014d23 !important;
    border-color: #014d23 !important;
}

.btn-success:hover {
    background-color: #219a00 !important;
    border-color: #219a00 !important;
}

.btn-outline-success {
    color: #014d23 !important;
    border-color: #014d23 !important;
}

.btn-outline-success:hover {
    background-color: #9d9d9d !important;
    border-color: #9d9d9d !important;
    color: #fff !important;
}

/* Afficher le spinner quand loading */
#popup-cookie.loading .loading-overlay {
    display: flex !important;
}

/* Désactiver les interactions pendant le chargement */
#popup-cookie.loading .cookie-popup-buttons,
#popup-cookie.loading .popup-cross-cookie {
    pointer-events: none;
    opacity: 0.5;
}

/* Titre avec font Poppins si disponible */
.popup-cookie-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive - Boutons en colonne sur mobile */
@media (max-width: 400px) {
    .cookie-popup-buttons {
        flex-direction: column !important;
        width: 100%;
    }
    .cookie-popup-buttons .btn {
        width: 100%;
    }
}