@import url('../css pages/global.css');

/* ═══════════════════════════════════════════════════
   VARIABLES & BASE
═══════════════════════════════════════════════════ */

body { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   DARK MODE - TEXTES
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   DARK MODE - BACKGROUNDS
═══════════════════════════════════════════════════ */

body.dark-theme .bg-\[#F8FAFC\] {
    background-color: #0f172a !important;
}

/* ═══════════════════════════════════════════════════
   DARK MODE - BORDERS
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   DARK MODE - SPÉCIFIQUES
═══════════════════════════════════════════════════ */
body.dark-theme .glass-card {
    background-color: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
}

body.dark-theme .billing-selector {
    background-color: #334155 !important;
}

body.dark-theme .billing-opt {
    color: #94a3b8 !important;
}

body.dark-theme .billing-opt.active {
    background-color: #1e293b !important;
    color: #6366f1 !important;
}

body.dark-theme .social-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .social-btn:hover {
    background-color: #334155 !important;
}

body.dark-theme .checkbox-custom:checked + label {
    background-color: rgba(99, 102, 241, 0.1) !important;
    border-color: #4f46e5 !important;
}

/* ═══════════════════════════════════════════════════
   STYLES GÉNÉRAUX
═══════════════════════════════════════════════════ */
.glass-card { 
    backdrop-filter: blur(14px); 
    background-color: var(--surface-glass); 
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.checkbox-custom:checked + label { 
    border-color: #4f46e5; 
    background-color: #f5f3ff; 
}

.social-btn { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid var(--border); 
    background: var(--surface);
}

.social-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.2);
    border-color: #4f46e5; 
}

.paypal-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(1);
    transition: all 0.4s ease;
}

.error-message {
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.error-message.show {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 1rem;
}

.billing-selector {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    transition: background 0.3s ease;
}

.billing-opt {
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
    color: #64748b;
}

.billing-opt.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@keyframes modalShow {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.animate-modal { animation: modalShow 0.3s ease-out forwards; }
