/* Cookie Consent Popup Styles */
.cookie-consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 80vh;
    overflow-y: auto;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-consent-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.cookie-consent-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-purple);
    margin: 0;
}

.cookie-consent-body {
    margin-bottom: 1.5rem;
}

.cookie-consent-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cookie-consent-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-option {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.cookie-option:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
}

.cookie-option-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
}

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

.cookie-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-option-label input[type="checkbox"]:checked + .cookie-checkbox {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.cookie-option-label input[type="checkbox"]:checked + .cookie-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.cookie-option-label input[type="checkbox"]:disabled + .cookie-checkbox {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    opacity: 0.7;
}

.cookie-option-label input[type="checkbox"]:disabled + .cookie-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.cookie-option-content {
    flex: 1;
}

.cookie-option-content strong {
    display: block;
    color: var(--light-purple);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cookie-option-content small {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-consent-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent-buttons .btn {
    min-width: 140px;
    justify-content: center;
}

.cookie-consent-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.cookie-link:hover {
    color: var(--light-purple);
}

.cookie-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.cookie-link:hover::after {
    width: 100%;
}

/* Animation d'apparition */
@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-popup.show {
    animation: cookieSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 1rem;
    }
    
    .cookie-consent-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cookie-consent-title {
        font-size: 1.25rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons .btn {
        min-width: auto;
        width: 100%;
    }
    
    .cookie-consent-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .cookie-consent-options {
        gap: 0.75rem;
    }
    
    .cookie-option {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 0.75rem;
    }
    
    .cookie-consent-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .cookie-consent-title {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text {
        font-size: 0.9rem;
    }
    
    .cookie-option-content strong {
        font-size: 0.9rem;
    }
    
    .cookie-option-content small {
        font-size: 0.8rem;
    }
}

/* Overlay pour masquer le contenu derrière */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Styles pour les états de consentement */
.cookie-consent-popup.minimized {
    transform: translateY(calc(100% - 60px));
}

.cookie-consent-popup.minimized .cookie-consent-content {
    padding: 0.75rem 2rem;
}

.cookie-consent-popup.minimized .cookie-consent-header,
.cookie-consent-popup.minimized .cookie-consent-body,
.cookie-consent-popup.minimized .cookie-consent-footer {
    display: none;
}

.cookie-consent-minimized {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-minimized-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cookie-consent-minimized-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-consent-minimized .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: auto;
}
