/* ==========================================================================
   1. VARIABLES & CONFIGURATION DU THEME
   ========================================================================== */
:root {
    --bg-dark: #090d16;
    --bg-card: #0e131f;
    --bg-card-hover: #141b2d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --primary: #2563eb; /* Rouge Albert Davaint */
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.35);
    
    --discord-color: #5865F2; /* Couleur Discord */
    --discord-glow: rgba(88, 101, 242, 0.35);
    --blue-btn: #2563eb; /* Bouton Service Académique en bleu */
    --blue-btn-hover: #1d4ed8;
    
    --accent: #eab308; /* Or / Accentuation chaleureuse */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(37, 99, 235, 0.3);

    --nav-bg: rgba(9, 13, 22, 0.85);
    --nav-text: #94a3b8;
    --nav-text-hover: #2563eb;
    --nav-border: rgba(255, 255, 255, 0.05);

    /* Cartes claires */
    --card-light-bg: #ffffff;
    --card-light-border: rgba(0, 0, 0, 0.06);
    --card-light-text: #1e293b;
    --card-light-muted: #64748b;

    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thème clair (activé via bouton lune/soleil dans la navbar) */
body.theme-light {
    --bg-dark: #fcfcfd;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f7ff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(37, 99, 235, 0.35);
    
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-text: #475569;
    --nav-text-hover: #2563eb;
    --nav-border: rgba(0, 0, 0, 0.06);
}

body.theme-light .hero-content h1 span.highlight {
    background: linear-gradient(to right, #0f172a, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-light .footer { background: #f8fafc; }
body.theme-light .footer-bottom { color: rgba(15, 23, 42, 0.35); }

/* ==========================================================================
   2. BASES, RESET & PERSO SCROLLBAR
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    padding-top: 75px;
    transition: background-color var(--transition-med), color var(--transition-med);
    /* Grilles et mesh de fonds pour un rendu premium */
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.02) 0px, transparent 50%);
}

/* Custom Scrollbar Premium */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

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

/* ==========================================================================
   3. BARRE DE NAVIGATION (Bandeau Supérieur)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--transition-med), border-color var(--transition-med);
}

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

/* Logo à gauche (icône + texte) */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    transition: transform var(--transition-fast);
}
.logo:hover .logo-img { transform: scale(1.05) rotate(-3deg); }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .main-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
}

.logo-text .sub-title {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--primary);
}

/* Liens principaux au milieu */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-item:hover { color: var(--nav-text-hover); }
.nav-item:hover::after,
.nav-item.active::after { width: 100%; }
.nav-item.active { color: var(--nav-text-hover); }

/* Partie Droite (Discord, Service Académique, Theme Toggle) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.discord-link {
    color: var(--nav-text);
    font-size: 1.4rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.discord-link:hover {
    color: var(--discord-color);
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 2px 8px var(--discord-glow));
}

.btn-client {
    background: var(--blue-btn);
    color: #fff !important;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-client:hover {
    background: var(--blue-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.theme-toggle {
    color: var(--nav-text);
    font-size: 1.1rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    padding: 0.4rem;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg) scale(1.05);
}

/* Bouton menu mobile (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--nav-text);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. HERO PRINCIPAL & SECONDAIRE (PAGE HERO)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 4rem 1rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #fca5a5;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span.highlight {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* En-tête des pages secondaires */
.page-hero {
    position: relative;
    padding: 7rem 1rem 4.5rem 1rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(0,0,0,0) 100%);
    transition: background var(--transition-med), border-color var(--transition-med);
}

.page-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-hero h1 span.highlight {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.theme-light .page-hero h1 span.highlight {
    background: linear-gradient(to right, #0f172a, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
body.theme-light .page-hero p {
    color: #475569;
}

/* ==========================================================================
   5. STATS
   ========================================================================== */
.stats-section { padding: 3rem 0 5rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-card:hover { 
    transform: translateY(-6px); 
    border-color: var(--border-hover);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}
.stat-card h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.stat-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   6. SECTIONS AVANTAGES & CONTENU
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header .sub-title {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   7. CARTES ÉTABLISSEMENTS & FORMATIONS & DETAIL DE FORMATION
   ========================================================================== */
.partners-section { padding: 5rem 0 6rem 0; }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--border-hover);
}

body.theme-light .partner-card {
    background: var(--card-light-bg);
    border: 1px solid var(--card-light-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
body.theme-light .partner-card:hover {
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: var(--border-hover);
}

.partner-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.theme-light .partner-card-header {
    border-bottom: 1px solid #f1f5f9;
}

.partner-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
}

.partner-card-title h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.partner-card-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.partner-card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
body.theme-light .partner-card-desc {
    color: #475569;
}

.partner-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    margin-top: 0.5rem;
}

/* Cursus details (page formations) */
.formation-details {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
}
body.theme-light .formation-details {
    border-top-color: #e2e8f0;
}
.formation-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    line-height: 1.4;
}
body.theme-light .formation-detail-item {
    color: #475569;
}
.formation-detail-item strong {
    color: var(--text-main);
    font-weight: 600;
}
body.theme-light .formation-detail-item strong {
    color: #0f172a;
}
.formation-detail-item i {
    color: var(--primary);
    width: 14px;
    margin-top: 2px;
    font-size: 0.85rem;
}

/* Variante "personnel" : en-tête centré */
.staff-card .partner-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}
.staff-card .partner-icon {
    width: 68px;
    height: 68px;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   8. FORMULAIRE DE CONTACT
   ========================================================================== */
.contact-section { padding: 5rem 0 6rem 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem;
    transition: background var(--transition-med), border-color var(--transition-med);
}
body.theme-light .contact-info-card {
    background: var(--card-light-bg);
    border: 1px solid var(--card-light-border);
}
.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 1.8rem; font-weight: 800; }
.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contact-info-row h4 { font-size: 0.95rem; margin-bottom: 0.25rem; font-weight: 700; }
.contact-info-row p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }
body.theme-light .contact-info-row p { color: #475569; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem;
    display: grid;
    gap: 1.2rem;
    transition: background var(--transition-med), border-color var(--transition-med);
}
body.theme-light .contact-form {
    background: var(--card-light-bg);
    border: 1px solid var(--card-light-border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
body.theme-light .form-group label { color: #475569; }
.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
body.theme-light .form-group input, body.theme-light .form-group textarea {
    background: #f8fafc;
    color: #0f172a;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
}
body.theme-light .form-group input:focus, body.theme-light .form-group textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
}

/* ==========================================================================
   9. BOUTON RETOUR EN HAUT (BACK TO TOP)
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Masqué par défaut */
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 1999;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform var(--transition-fast), background var(--transition-fast), right var(--transition-med);
}
.back-to-top-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-4px) scale(1.05);
}
.back-to-top-btn.is-visible {
    right: 30px;
}

/* ==========================================================================
   10. ANIMATIONS AU DÉFILEMENT (Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--reveal-delay, 0s); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-scale, .hero-glow { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   11. BOUTONS GENERIQUES
   ========================================================================== */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
    background: #060303;
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem 2rem;
    transition: background-color var(--transition-med), border-color var(--transition-med);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}
.footer-block h3 {
    font-weight: 800;
}
.footer-block h3 span { color: var(--primary); }
.footer-block p { color: var(--text-muted); margin-top: 1rem; font-size: 0.9rem; line-height: 1.5; }
.footer-block h4 { font-size: 1rem; color: var(--text-main); margin-bottom: 1.2rem; font-weight: 700; }
.footer-block a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 0.6rem; font-size: 0.9rem; transition: color var(--transition-fast), transform var(--transition-fast); }
.footer-block a:hover { color: var(--primary); transform: translateX(4px); }

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* ==========================================================================
   13. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-med);
        border-bottom: 1px solid var(--nav-border);
    }
    body.theme-light .nav-links {
        background: var(--bg-card);
    }
    
    .nav-links.is-open { max-height: 400px; padding: 0.5rem 0; }
    .nav-links li { width: 100%; }
    .nav-item { padding: 0.9rem 2rem; width: 100%; }
    .nav-item::after { display: none; }

    .nav-right {
        gap: 1rem;
    }
    .btn-client {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .hero-content h1 { font-size: 2.2rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .nav-container { padding: 0.7rem 1.2rem; }
    .nav-right { gap: 0.6rem; }
    .logo-text .main-title { font-size: 0.85rem; }
    .logo-text .sub-title { font-size: 0.65rem; }
    .discord-link { font-size: 1.2rem; }
    .back-to-top-btn { width: 40px; height: 40px; bottom: 20px; }
    .back-to-top-btn.is-visible { right: 20px; }
}

/* ==========================================================================
   14. EFFETS DYNAMIQUES ET MOUVEMENTS PREMIUM (SPOTLIGHT & TRANSITIONS)
   ========================================================================== */
.partner-card, .stat-card, .feature-card {
    position: relative;
    overflow: hidden;
}

/* Effet de halo lumineux (Spotlight) qui suit la souris */
.partner-card::before, .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(37, 99, 235, 0.09), transparent 50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.theme-light .partner-card::before, body.theme-light .stat-card::before {
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(37, 99, 235, 0.05), transparent 50%);
}

.partner-card:hover::before, .stat-card:hover::before {
    opacity: 1;
}

/* Assurer que le contenu des cartes reste au-dessus du spotlight */
.partner-card-header, .partner-card-desc, .partner-badge, .formation-details, .stat-card h2, .stat-card p {
    position: relative;
    z-index: 2;
}

/* Animation douce pour le logo et les icônes */
.partner-icon i {
    transition: transform var(--transition-fast);
}
.partner-card:hover .partner-icon i {
    transform: scale(1.15) rotate(-3deg);
}

/* Halo lumineux animé en arrière-plan du Hero */
.hero-glow {
    animation: glow-pulse 8s ease-in-out infinite alternate;
}

/* ==========================================================================
   15. FAQ ACCORDEON (ANIMATIONS FLUIDES)
   ========================================================================== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

body.theme-light .faq-item {
    background: var(--card-light-bg);
    border-color: var(--card-light-border);
}

.faq-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}
body.theme-light .faq-question {
    color: var(--card-light-text);
}

.faq-question i {
    color: var(--primary);
    font-size: 0.95rem;
    transition: transform var(--transition-med);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body.theme-light .faq-answer {
    color: var(--card-light-muted);
}

.faq-item.active {
    border-color: var(--border-hover);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 1.5rem 1.4rem 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.03);
}
body.theme-light .faq-item.active .faq-answer {
    border-top-color: #f1f5f9;
}

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

/* ==========================================================================
   16. MODAL OVERLAY & POPUP (GLASSMORPHISM & SLIDE UP)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body.theme-light .modal-content {
    background: var(--card-light-bg);
    border-color: var(--card-light-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.modal-overlay.is-open .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.modal-close-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Contenu spécifique de la modale */
.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
body.theme-light .modal-title {
    color: var(--card-light-text);
}
.modal-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
body.theme-light .modal-body p {
    color: #475569;
}
.modal-section-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
body.theme-light .modal-section-title {
    color: var(--card-light-text);
}
.modal-section-title i {
    color: var(--primary);
}
.modal-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.modal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}
body.theme-light .modal-list-item {
    color: #475569;
}
.modal-list-item i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 0.85rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}
body.theme-light .modal-footer {
    border-top-color: #f1f5f9;
}

/* ==========================================================================
   17. RESTYLAGE PHOTO DU PERSONNEL (COMPOSANT PREMIUM)
   ========================================================================== */
.staff-photo-container {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast);
    z-index: 2;
}

body.theme-light .staff-photo-container {
    border-color: var(--card-light-border);
    background: #f8fafc;
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.partner-card:hover .staff-photo {
    transform: scale(1.06);
}

.partner-card:hover .staff-photo-container {
    border-color: var(--border-hover);
}

.staff-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1.2rem;
    z-index: 2;
}

.staff-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
body.theme-light .staff-name {
    color: var(--card-light-text);
}

.staff-role {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
body.theme-light .staff-role {
    color: var(--card-light-muted);
}

.staff-photo-placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    transition: transform var(--transition-med);
}

.partner-card:hover .staff-photo-placeholder-box {
    transform: scale(1.06);
}

/* ==========================================================================
   18. BARRE DE PROGRESSION DU DEFILEMENT (SCROLL PROGRESS)
   ========================================================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   19. FILTRE DES FORMATIONS (BOUTONS PREMIUMS)
   ========================================================================== */
.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
body.theme-light .btn-filter {
    background: var(--card-light-bg);
    border-color: var(--card-light-border);
    color: var(--card-light-muted);
}
.btn-filter:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
    transform: translateY(-1px);
}
body.theme-light .btn-filter:hover {
    color: var(--card-light-text);
}
.btn-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==========================================================================
   20. TOAST NOTIFICATIONS ANIMÉES
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 9999;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 320px;
    max-width: 450px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
body.theme-light .toast {
    background: var(--card-light-bg);
    border-color: var(--card-light-border);
    border-left-color: var(--accent);
    color: var(--card-light-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.toast-icon {
    color: var(--accent);
    font-size: 1.2rem;
}
.toast-content {
    flex-grow: 1;
}
.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}
body.theme-light .toast-message {
    color: var(--card-light-muted);
}
.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: color var(--transition-fast);
}
.toast-close:hover {
    color: var(--primary);
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 100%;
    animation: toastProgress 5s linear forwards;
}
@keyframes toastSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}


