/* ==========================================
   RGPD Cookie Consent Banner
   ========================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A1514 0%, #2A2420 100%);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.3);
    border-top: 3px solid #D4AF37;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hide {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    color: #D4AF37;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.cookie-text p {
    color: #F4E5C2;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-text a {
    color: #D4AF37;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-text a:hover {
    color: #F4E5C2;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #F4E5C2 100%);
    color: #1A1514;
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.cookie-btn-accept::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.cookie-btn-accept:hover::before {
    left: 100%;
}

.cookie-btn-refuse {
    background: transparent;
    color: #F4E5C2;
    border-color: #8B7355;
}

.cookie-btn-refuse:hover {
    background: rgba(139, 115, 85, 0.2);
    border-color: #D4AF37;
    color: #D4AF37;
}

.cookie-btn-customize {
    background: transparent;
    color: #D4AF37;
    border-color: #D4AF37;
    padding: 0.875rem 1.5rem;
}

.cookie-btn-customize:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Modal de personnalisation */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 21, 20, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: linear-gradient(135deg, #2A2420 0%, #1A1514 100%);
    border: 3px solid #D4AF37;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
}

.cookie-modal-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    color: #D4AF37;
    font-size: 1.75rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #F4E5C2;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-header h3 {
    color: #D4AF37;
    font-size: 1.125rem;
    font-weight: 700;
}

.cookie-toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8B7355;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #B8860B, #D4AF37);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #C9B99B;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cookie-category.required {
    border-color: rgba(212, 175, 55, 0.5);
}

.cookie-category.required .cookie-toggle-slider {
    background: linear-gradient(135deg, #B8860B, #D4AF37);
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        margin: 1rem;
    }
    
    .cookie-modal-header {
        padding: 1.5rem;
    }
    
    .cookie-modal-body {
        padding: 1.5rem;
    }
    
    .cookie-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-text h3 {
        font-size: 1.125rem;
    }
    
    .cookie-text p {
        font-size: 0.9375rem;
    }
    
    .cookie-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
