/* =========================
   BANNIERE COOKIES
   ========================= */
.cookie-banner {
    position: fixed;
    bottom: 20px; /* un petit espace du bas */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(241, 237, 233, 0.95); /* effet légèrement transparent */
    padding: 20px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 12px;
    display: none;
    z-index: 9999;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

/* Conteneur interne */
.cookie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Texte informatif */
.cookie-text {
    margin: 0;
    font-size: 14px;
    color: #333;
    /* flex: 1 1 300px; */
    line-height: 1.5;
}

/* Boutons */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style de base pour tous les boutons */
.btn-cookie {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

/* Hover effect */
.btn-cookie:hover {
    transform: translateY(-2px);
}

/* Boutons spécifiques */
.btn-accept {
    background-color: #a6a76a;
    color: white;
}

.btn-refuse {
    background-color: #dc3545;
    color: white;
}

.btn-continue {
    background: none;
    border: none;
    color: #cacacb;
    text-decoration: underline;
    font-weight: normal;
    padding: 5px 8px;
}

.btn-continue:hover {
    color: #333;
    transform: none;
}

/* Liens dans le texte */
.cookie-text a {
    color: #a6a76a;
    text-decoration: underline;
}
/* Modal interne pour cookies essentiels */
.cookie-modal {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff3cd; /* jaune clair pour alerte */
    border: 1px solid #ffeeba;
    border-radius: 8px;
    text-align: left;
}

.cookie-modal p {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.essential-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.essential-list li {
    margin-bottom: 5px;
}

.essential-list input[type="checkbox"] {
    margin-right: 8px;
}
/* Responsive */
@media (max-width: 768px) {

    .cookie-banner {
        width: 90%;
        padding: 15px 20px;
        bottom: 5px;
        font-size: 13px;
    }

    .cookie-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px; /* espace vertical réduit */
    }

    .cookie-text {
        margin-bottom: 4px; /* petit espace contrôlé */
    }

    .cookie-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        margin-top: 0; /* enlève espace inutile */
    }

    .btn-cookie {
        width: 100%;
        max-width: 220px;
        padding: 8px 0;
        font-size: 13px;
        text-align: center;
    }

    .cookie-modal {
        width: 85%;
        max-width: 300px;
        max-height: 70vh;
        padding: 12px;
        font-size: 13px;
        overflow-y: auto;
        margin: 0 auto;
    }

    .essential-list li {
        margin-bottom: 4px;
    }
}
