/* Styles pour le bandeau de cookies */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
    max-width: 400px; /* Limite la largeur du bandeau */
}

.cookie-banner .cookie-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-banner h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--color-gold);
}

.cookie-banner p {
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
}

.cookie-banner .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cookie-banner .cookie-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-banner .cookie-buttons .btn-accept-all {
    background-color: var(--color-gold);
    color: #fff;
}

.cookie-banner .cookie-buttons .btn-accept-all:hover {
    background-color: var(--color-gold-dark);
}

.cookie-banner .cookie-buttons .btn-settings,
.cookie-banner .cookie-buttons .btn-necessary {
    background-color: #555;
    color: #fff;
}

.cookie-banner .cookie-buttons .btn-settings:hover,
.cookie-banner .cookie-buttons .btn-necessary:hover {
    background-color: #777;
}

/* Styles pour la modale de paramètres de cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.cookie-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    color: #333;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: var(--color-gold-dark);
}

.cookie-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.cookie-modal .close-btn:hover {
    color: #333;
}

.cookie-modal-body {
    margin-bottom: 20px;
}

.cookie-category {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

.cookie-category p {
    font-size: 0.85em;
    color: #666;
    text-align: left;
    line-height: 1.4;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.cookie-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-gold);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-gold);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    text-align: right;
}

.cookie-modal-footer .btn-save {
    background-color: var(--color-gold);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-modal-footer .btn-save:hover {
    background-color: var(--color-gold-dark);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
        max-width: unset;
    }

    .cookie-banner .cookie-buttons {
        flex-direction: column;
    }

    .cookie-modal-content {
        padding: 20px;
        width: 95%;
    }

    .cookie-modal-header h3 {
        font-size: 1.2em;
    }

    .cookie-category-header h4 {
        font-size: 1em;
    }

    .cookie-category p {
        font-size: 0.8em;
    }

    .cookie-modal-footer .btn-save {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
