/* Styles du bandeau de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #004e92 0%, #000428 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2rem;
    color: #ffd700;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #ffd700;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-link {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner .cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-banner .btn-primary {
    background: #28a745;
    color: white;
}

.cookie-banner .btn-primary:hover {
    background: #218838;
    transform: translateY(-1px);
}

.cookie-banner .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-banner .btn-secondary:hover {
    background: white;
    color: #004e92;
}

/* Bouton "Refuser" avec fond rouge */
#decline-cookies {
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
}

#decline-cookies:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
}

/* Bouton "Accepter tout" dans la modal */
#cookie-settings-modal .btn-secondary {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

#cookie-settings-modal .btn-secondary:hover {
    background: #218838;
    border-color: #218838;
    color: white;
}

.cookie-banner .btn-outline {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.cookie-banner .btn-outline:hover {
    background: #28a745;
    color: white;
}

/* Modal des paramètres */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

#cookie-settings-modal .cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#cookie-settings-modal .cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cookie-settings-modal .cookie-modal-header h3 {
    margin: 0;
    color: #004e92;
}

#cookie-settings-modal .cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

#cookie-settings-modal .cookie-close:hover {
    color: #004e92;
}

#cookie-settings-modal .cookie-modal-body {
    padding: 20px;
}

#cookie-settings-modal .cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

#cookie-settings-modal .cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#cookie-settings-modal .cookie-category-header h4 {
    margin: 0;
    color: #004e92;
    font-size: 1.1rem;
}

#cookie-settings-modal .cookie-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Toggle switch */
#cookie-settings-modal .cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

#cookie-settings-modal .cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cookie-settings-modal .cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

#cookie-settings-modal .cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#cookie-settings-modal .cookie-toggle input:checked+.cookie-slider {
    background-color: #28a745;
}

#cookie-settings-modal .cookie-toggle input:checked+.cookie-slider:before {
    transform: translateX(26px);
}

#cookie-settings-modal .cookie-toggle input:disabled+.cookie-slider {
    background-color: #28a745;
    opacity: 0.6;
}

#cookie-settings-modal .cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-text {
        min-width: auto;
    }

    .cookie-actions {
        justify-content: center;
    }

    #cookie-settings-modal .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
}