/* Styles de la bannière de cookies */
/* .cookie-banner { */
/*     position: fixed; */
/*     bottom: 0; */
/*     left: 0; */
/*     right: 0; */
/*     background: #fff; */
/*     box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
/*     z-index: 9999; */
/*     padding: 1.5rem; */
/*     animation: slideUp 0.3s ease-out; */
/* } */
/* Overlay plein écran */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Popup blanc centré */
.cookie-banner-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 60rem;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: auto;  /* ← Ajoutez cette ligne */
    
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.cookie-banner-text p {
    margin: 0 0 0.5rem 0;
    color: #666;
    text-align: center;
}

.cookie-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 1.5rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

/* Modal de préférences */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 70rem;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-2rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.cookie-intro {
    color: #666;
    margin-bottom: 1.5rem;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.cookie-category-header {
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
}

.cookie-category-description {
    margin: 0;
    color: #666;
    font-size: 1.5rem;
}

.cookie-details {
    padding: 1rem;
    background: #fff;
}

.cookie-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.cookie-details li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1.5rem;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 5rem;
    height: 2.6rem;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 2rem;
    width: 2rem;
    left: 0.3rem;
    bottom: 0.3rem;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #0066cc;
}

input:checked + .toggle-slider:before {
    transform: translateX(2.4rem);
}

.toggle-switch.disabled .toggle-slider {
    background-color: #0066cc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Boutons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.btn-outline:hover {
    background: #f0f7ff;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
}