.cookie-banner {
    opacity: 0;
    transform: translate(-50%, -45%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #2c2c2c;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    text-align: center;
    display: none; /* Masquée par défaut */
}


.cookie-buttons button {
    margin: 0 6px;
    padding: 10px 16px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c2c2c;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-buttons button:hover {
    background-color: #e0e0e0;
}



.cookie-modal.hidden {
    display: none;
}

.cookie-modal {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -20px);
    background-color: #222;
    color: #f8f8f8 ;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1100;
    width: 90%;
    max-width: 500px;
    display: none;
}
.cookie-modal h3 {
    color: #f8f8f8;
}

.cookie-modal button {
    margin: 0 6px;
    padding: 10px 16px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c2c2c;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-modal button:hover {
    background-color: #e0e0e0;
}


.cookie-modal.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}

.modal-content h3 {
    margin-top: 0;
}

#cookie-preferences-form label {
    display: block;
    margin: 10px 0;
}

.cookie-privacy {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.cookie-privacy a {
    color: #ccc;
    text-decoration: underline;
    transition: color 0.3s;

}

.cookie-privacy a:hover {
    color: #fff;
}

/* Style des icônes */
.cookie-banner .icon,
.cookie-modal .icon {
    margin-right: 6px;
    font-size: 1.1em;
}

/* Apparition douce de la bannière */
.cookie-banner.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}
