/**
 * Styles pour le gestionnaire de consentement aux cookies
 * Mikail ALBAYRAK Portfolio - 2024
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #007BFF;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-header {
    margin-bottom: 1rem;
}

.cookie-header h3 {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-header i {
    color: #007BFF;
    font-size: 1.1rem;
}

.cookie-body {
    margin-bottom: 1.5rem;
}

.cookie-body p {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cookie-category {
    margin-bottom: 0.75rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category .form-check {
    padding-left: 1.5rem;
}

.cookie-category .form-check-input {
    margin-top: 0.25rem;
}

.cookie-category .form-check-label {
    color: #212529;
    cursor: pointer;
    line-height: 1.5;
}

.cookie-category .form-check-label strong {
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-category .form-check-label small {
    color: #6c757d;
    font-size: 0.875rem;
}

.cookie-category .form-check-input:disabled + .form-check-label {
    cursor: default;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.cookie-actions .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.cookie-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cookie-actions .btn i {
    font-size: 0.85rem;
}

.cookie-links {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.cookie-links a {
    color: #007BFF;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.cookie-links a:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.cookie-links i {
    font-size: 0.8rem;
}

/* Styles responsives */
@media (max-width: 768px) {
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-header h3 {
        font-size: 1.1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-consent-banner {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 0.75rem;
    }
    
    .cookie-header h3 {
        font-size: 1rem;
    }
    
    .cookie-body p {
        font-size: 0.9rem;
    }
    
    .cookie-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation pour les boutons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.cookie-actions .btn-primary:focus {
    animation: pulse 1.5s infinite;
}

/* Styles pour le mode sombre */
[data-bs-theme="dark"] .cookie-consent-banner {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    border-top-color: #007BFF;
}

[data-bs-theme="dark"] .cookie-header h3 {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .cookie-body p {
    color: #ced4da;
}

[data-bs-theme="dark"] .cookie-details {
    background: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .cookie-category .form-check-label {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .cookie-category .form-check-label small {
    color: #adb5bd;
}

[data-bs-theme="dark"] .cookie-links {
    border-top-color: #495057;
}

/* Lien de gestion des cookies dans le footer */
.cookie-management {
    margin-top: 1rem;
    text-align: center;
}

.cookie-management a {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.cookie-management a:hover {
    color: #007BFF;
}

[data-bs-theme="dark"] .cookie-management a {
    color: #adb5bd;
}

[data-bs-theme="dark"] .cookie-management a:hover {
    color: #007BFF;
}

/* Accessibilité */
.cookie-consent-banner:focus-within {
    outline: 2px solid #007BFF;
    outline-offset: -2px;
}

.cookie-actions .btn:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

/* Animation de fade-in pour le banner */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-banner.show {
    animation: fadeInUp 0.3s ease-out;
}

/* Styles pour impression */
@media print {
    .cookie-consent-banner {
        display: none;
    }
}

/* Dark mode pour la section Cookies de la page Politique de confidentialité */
[data-bs-theme="dark"] .legal-content .alert-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .legal-content .alert-light h6,
[data-bs-theme="dark"] .legal-content .alert-light p,
[data-bs-theme="dark"] .legal-content .alert-light li {
    color: #e0e0e0 !important;
} 