/* Styles pour le système de cookies */

/* Bannière de cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #0056b3 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

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

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

.cookie-text h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.cookie-text p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #60A5FA;
}

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

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #60A5FA;
    color: white;
}

.btn-primary:hover {
    background: #3B82F6;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #94A3B8;
    color: white;
}

.btn-secondary:hover {
    background: #64748B;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-links {
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.cookie-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.cookie-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Modal des préférences de cookies */
#cookie-preferences {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-preferences-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-content h3 {
    margin: 0 0 25px 0;
    color: #1E3A8A;
    font-size: 24px;
    text-align: center;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1E3A8A;
}

.cookie-category h4 {
    margin: 0 0 10px 0;
    color: #1E3A8A;
    font-size: 18px;
}

.cookie-category p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.cookie-category ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.cookie-category li {
    margin-bottom: 5px;
}

/* Toggle switch pour les cookies */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked + .slider {
    background: #60A5FA;
}

.cookie-toggle input[type="checkbox"]:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.cookie-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Message de confirmation */
.cookie-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #60A5FA;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-preferences-content {
        margin: 20px;
        padding: 20px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 15px;
    }
    
    .cookie-text h4 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-buttons .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Animation d'entrée pour la bannière */
#cookie-banner {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Style pour le bouton de gestion des cookies dans le footer */
.cookie-manager-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cookie-manager-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}


