:root {
    /* Professional Classic Palette */
    --primary: #1e40af;      /* Professional blue */
    --secondary: #1e3a8a;    /* Darker blue */
    --accent: #f59e0b;       /* Gold accent */
    --bg-dark: #0f172a;      /* Slate 900 */
    --card-dark: #1e293b;    /* Slate 800 */
    --surface: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #cbd5e1; /* Slate 300 */
    --success: #10b981;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    padding-top: 80px;
}

/* Background Layers */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(30,64,175,0.03) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(245,158,11,0.02) 0%, transparent 50%),
        var(--bg-dark);
    z-index: -1;
}

/* Typography Scale */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

/* Navbar - Professional */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Styles pour le bouton flottant de langue */
        .lang-float {
            position: fixed;
            bottom: 100px; /* Au-dessus du bouton WhatsApp */
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #4f46e5, #7c3aed);
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            font-size: 1.2rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            cursor: pointer;
            z-index: 1000;
            transition: transform 0.3s;
            border: none;
        }
        .lang-float:hover { transform: scale(1.1); }
        
        /* Support Arabe (RTL) */
        [lang="ar"] { direction: rtl; text-align: right; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
        [lang="ar"] .nav-menu { margin-right: auto; margin-left: 0; }
        [lang="ar"] .lang-float { right: auto; left: 20px; } /* Aligne à gauche en arabe */
        [lang="ar"] .whatsapp-float { right: auto; left: 20px; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.parallax-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.parallax-header #particles-js {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.badge {
    display: inline-block;
    background: rgba(239,68,68,0.15);
    color: #f87171;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(239,68,68,0.3);
    margin-bottom: 2rem;
}

/* Cards - Professional */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.programme-card {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.programme-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.programme-card:hover::before {
    opacity: 0.05;
}

.programme-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.programme-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.programme-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.programme-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Sections */
section {
    padding: 6rem 0;
}

.dates {
    text-align: center;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.date-card {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.date-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.date-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.date-card h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.date-card strong {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: block;
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(rgba(30,64,175,0.02), transparent);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-phone {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2rem;
}

/* FAQ Professional */
.faq-section {
    background: linear-gradient(rgba(30,64,175,0.02), transparent);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    gap: 0;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(30,64,175,0.3);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Form - Professional Stripe-like */
.payment-form {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4rem 3rem;
    max-width: 800px;
    margin: 4rem auto 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
    background: rgba(255,255,255,0.08);
}

.drag-drop-area {
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(30,64,175,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 0.5rem;
}

.drag-drop-area:hover {
    border-color: var(--accent);
    background: rgba(30,64,175,0.08);
    transform: translateY(-1px);
}

.drag-drop-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Primary CTA Button */
.btn-submit {
    grid-column: 1 / -1;
    background: var(--white);
    color: var(--bg-dark);
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: none;
    letter-spacing: -0.025em;
}

.btn-submit:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .programme-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
    .payment-form {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Admin button */
.btn-admin {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
