/* =================================================================
   UCAO ORIENTATION - PREMIUM DESIGN SYSTEM v2.0
   Professional SaaS-grade UI with Modern Animations
   ================================================================= */

/* =================================================================
   CSS VARIABLES & DESIGN TOKENS
   ================================================================= */
:root {
    /* Primary Color Palette */
    --couleur-primaire: #180391;
    --couleur-secondaire: #8B0000;
    --couleur-primaire-light: #2a15b3;
    --couleur-primaire-dark: #0e0560;
    --couleur-secondaire-light: #b30000;
    --couleur-secondaire-dark: #5c0000;
    --blue: var(--couleur-primaire);

    /* Accent Colors */
    --gold: #FFD700;
    --gold-light: #ffe44d;
    --gold-dark: #ccac00;
    --gold-subtle: rgba(255, 215, 0, 0.15);

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FC;
    --medium-gray: #E5E8EF;
    --dark-gray: #2D3436;
    --text-light: #F0F0F0;
    --text-dark: #1a1a2e;
    --text-muted: #636e72;
    --text-subtle: #9ca3af;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-primaire-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--couleur-secondaire) 0%, var(--couleur-secondaire-dark) 100%);
    --gradient-mixed: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-secondaire) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--couleur-primaire) 0%, #0a0445 40%, var(--couleur-secondaire-dark) 100%);
    --gradient-subtle: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    --gradient-premium: linear-gradient(135deg, #1a0a4a 0%, var(--couleur-primaire) 50%, #2a0a6a 100%);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes - Fluid Typography (échelle contenue pour un rendu éditorial sobre) */
    --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.78rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.86rem + 0.2vw, 0.9575rem);
    --text-lg: clamp(0.975rem, 0.92rem + 0.3vw, 1.0625rem);
    --text-xl: clamp(1.05rem, 0.98rem + 0.35vw, 1.15rem);
    --text-2xl: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem);
    --text-3xl: clamp(1.3rem, 1.18rem + 0.7vw, 1.6rem);
    --text-4xl: clamp(1.5rem, 1.32rem + 0.95vw, 1.95rem);
    --text-5xl: clamp(1.8rem, 1.55rem + 1.3vw, 2.5rem);

    /* Spacing Scale - 8px base */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* Legacy spacing aliases */
    --space-xs: var(--space-1);
    --space-sm: var(--space-2);
    --space-md: var(--space-4);
    --space-lg: var(--space-6);
    --space-xl: var(--space-8);
    --space-2xl: var(--space-12);
    --space-3xl: var(--space-16);
    --space-4xl: var(--space-24);

    /* Premium Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --transition-fast: 150ms var(--ease-out-expo);
    --transition-base: 250ms var(--ease-out-expo);
    --transition-smooth: 350ms var(--ease-out-quart);
    --transition-slow: 500ms var(--ease-out-quart);
    --transition-spring: 400ms var(--ease-spring);

    /* Premium Shadows */
    --shadow-xs: 0 1px 2px rgba(24, 3, 145, 0.04);
    --shadow-sm: 0 2px 4px rgba(24, 3, 145, 0.04), 0 4px 8px rgba(24, 3, 145, 0.04);
    --shadow-md: 0 4px 8px rgba(24, 3, 145, 0.04), 0 8px 16px rgba(24, 3, 145, 0.06);
    --shadow-lg: 0 8px 16px rgba(24, 3, 145, 0.06), 0 16px 32px rgba(24, 3, 145, 0.08);
    --shadow-xl: 0 16px 32px rgba(24, 3, 145, 0.08), 0 32px 64px rgba(24, 3, 145, 0.12);
    --shadow-2xl: 0 24px 48px rgba(24, 3, 145, 0.12), 0 48px 96px rgba(24, 3, 145, 0.16);
    --shadow-inner: inset 0 2px 4px rgba(24, 3, 145, 0.06);
    --shadow-gold: 0 8px 24px rgba(255, 215, 0, 0.35), 0 4px 8px rgba(255, 215, 0, 0.2);
    --shadow-hover: 0 20px 40px rgba(24, 3, 145, 0.15), 0 8px 16px rgba(24, 3, 145, 0.1);
    --shadow-card: 0 4px 6px rgba(24, 3, 145, 0.04), 0 10px 20px rgba(24, 3, 145, 0.06);
    --shadow-card-hover: 0 12px 24px rgba(24, 3, 145, 0.1), 0 24px 48px rgba(24, 3, 145, 0.12);
    --shadow-button: 0 4px 14px rgba(24, 3, 145, 0.25);
    --shadow-glow: 0 0 40px rgba(24, 3, 145, 0.15);
    --shadow-gold-glow: 0 0 40px rgba(255, 215, 0, 0.3);

    /* Border Radius - Consistent Scale */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-6);
}

/* =================================================================
   KEYFRAME ANIMATIONS - Premium Collection
   ================================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(24, 3, 145, 0.2); }
    50% { box-shadow: 0 0 40px rgba(24, 3, 145, 0.4); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--gold); box-shadow: 0 0 10px var(--gold-subtle); }
    50% { border-color: var(--gold-light); box-shadow: 0 0 20px var(--gold-subtle); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.1); }
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

@keyframes underlineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* =================================================================
   RESET & BASE STYLES
   ================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-mixed);
    border-radius: 6px;
    border: 2px solid var(--light-gray);
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--couleur-primaire-light) 0%, var(--couleur-secondaire-light) 100%);
    box-shadow: 0 0 12px rgba(24, 3, 145, 0.3);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Selection */
::selection {
    background: var(--couleur-primaire);
    color: var(--white);
}

::-moz-selection {
    background: var(--couleur-primaire);
    color: var(--white);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--couleur-primaire), var(--couleur-primaire-dark));
    border-radius: var(--radius-full);
    border: 2px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--couleur-primaire);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--couleur-primaire) var(--light-gray);
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--couleur-primaire);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
}

.lead {
    font-size: var(--text-lg);
    color: var(--text-dark);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--couleur-primaire);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--couleur-secondaire);
}

strong, b {
    font-weight: 600;
}

small {
    font-size: var(--text-sm);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* =================================================================
   LAYOUT
   ================================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-16) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-4);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gradient-gold);
    margin: var(--space-3) auto 0;
    border-radius: var(--radius-full);
    transition: width var(--transition-smooth);
}

.section-header:hover .section-title::after,
.section-title:hover::after {
    width: 100px;
}

.section-subtitle {
    max-width: 600px;
    margin: var(--space-4) auto 0;
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: 1.7;
}

/* Section Backgrounds */
.section-light {
    background: var(--light-gray);
}

.section-gradient {
    background: var(--gradient-subtle);
}

.section-dark {
    background: var(--gradient-hero);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white);
}

/* =================================================================
   BUTTONS - Premium Interactions
   ================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    text-decoration: none;
}

/* Button shine effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left var(--transition-slow);
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #1c2d82 0%, #6b1f2c 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(24, 3, 145, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(24, 3, 145, 0.2);
    background: linear-gradient(135deg, #24389d 0%, #7a2635 100%);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--couleur-primaire);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-button);
}

/* Gradient Button */
.btn-gradient {
    background: var(--gradient-mixed);
    background-size: 200% 200%;
    color: var(--white);
    border: none;
    animation: gradientShift 4s ease infinite;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    animation-play-state: paused;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--couleur-primaire);
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(24, 3, 145, 0.05);
    color: var(--couleur-primaire-dark);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: var(--text-base);
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: var(--text-lg);
}

/* Button with Icon */
.btn-icon {
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(3px);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* =================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: perspective(1000px) rotateY(15deg) translateX(30px);
    transition:
        opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.reveal-rotate.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0) translateX(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* =================================================================
   HEADER / NAVBAR
   ================================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-smooth);
    animation: headerSlideIn 0.8s ease forwards;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.main-header.scrolled {
    padding: var(--space-3) 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.main-header.solid::before {
    opacity: 1;
}

.main-header.solid.scrolled::before {
    opacity: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-family: var(--font-primary);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    letter-spacing: -0.02em;
}

.main-header.scrolled .logo {
    color: var(--couleur-primaire);
}

.logo span {
    color: var(--gold);
    font-size: 1.875rem;
    line-height: 1;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: filter var(--transition-fast);
}

.main-header.scrolled .logo-img {
    height: 42px;
    filter: none;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-sm);
    position: relative;
    padding: var(--space-2) 0;
    transition: all var(--transition-fast);
}

.main-header.scrolled .main-nav a {
    color: var(--text-dark);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
    border-radius: var(--radius-full);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-header.scrolled .main-nav a:hover {
    color: var(--couleur-primaire);
}

/* Nav CTA */
.nav-cta .btn {
    padding: 0.625rem 1.5rem;
    font-size: var(--text-xs);
    background: #f6cc3a;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 3, 145, 0.12);
    border: 1px solid rgba(24, 3, 145, 0.1);
}

.nav-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(24, 3, 145, 0.16);
    color: #ffffff !important;
}


/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: calc(var(--z-overlay) + 10);
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-header.scrolled .hamburger:hover {
    background: rgba(24, 3, 145, 0.05);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.main-header.scrolled .hamburger span {
    background-color: var(--couleur-primaire);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--couleur-secondaire);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--couleur-secondaire);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-overlay);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--white);
    z-index: var(--z-modal);
    padding: 0;
    box-shadow: -20px 0 60px rgba(24, 3, 145, 0.2);
    transition: right 0.45s var(--ease-out-expo);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--medium-gray);
    background: var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header .logo {
    color: var(--couleur-primaire);
    font-size: 1.375rem;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-close:hover {
    background: var(--couleur-secondaire);
    color: var(--white);
    transform: rotate(90deg);
    box-shadow: var(--shadow-md);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: var(--space-6);
}

.mobile-menu ul {
    padding: 0;
}

.mobile-menu li {
    margin-bottom: var(--space-1);
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.4s var(--ease-out-expo),
        transform 0.4s var(--ease-out-expo);
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for menu items */
.mobile-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active li:nth-child(8) { transition-delay: 0.45s; }

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4);
    color: var(--text-dark);
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-gold);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: linear-gradient(90deg, rgba(24, 3, 145, 0.06), transparent);
    color: var(--couleur-primaire);
    padding-left: var(--space-6);
}

.mobile-menu a:hover::before,
.mobile-menu a.active::before {
    transform: scaleY(1);
}

.mobile-menu .mobile-cta {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--medium-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo) 0.5s;
}

.mobile-menu.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .mobile-cta .btn {
    display: block;
    text-align: center;
    width: 100%;
    color: #ffffff !important;
}

/* =================================================================
   FOOTER - Professional & Clean
   ================================================================= */
.main-footer {
    background: #ffffff;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(24, 3, 145, 0.06), transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(255, 215, 0, 0.18), transparent 40%);
    pointer-events: none;
}

/* Decorative pattern */
.main-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.18;
    pointer-events: none;
}

/* Footer Top */
.main-footer {
    border-top: 3px solid;
    border-image: linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(183, 28, 28, 0.8) 100%) 1;
    background: #ffffff;
}

.footer-top {
    padding: var(--space-16) 0 var(--space-12);
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}

/* Footer Brand */
.footer-brand {
    padding-right: var(--space-4);
    text-align: left;
}

.footer-logo {
    margin-bottom: var(--space-6);
    display: flex;
    justify-content: flex-start;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: none;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--couleur-primaire);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--couleur-primaire);
    color: var(--white);
    border-color: var(--couleur-primaire);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-social-mobile {
    display: none;
    gap: var(--space-3);
    justify-content: flex-start;
    margin-top: var(--space-2);
}

.footer-social-mobile a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--couleur-primaire);
    transition: all var(--transition-base);
}

.footer-social-mobile a:hover {
    background: var(--couleur-primaire);
    color: var(--white);
    border-color: var(--couleur-primaire);
}

.footer-social-mobile a svg {
    width: 18px;
    height: 18px;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--couleur-primaire);
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-logo-text span {
    color: var(--gold);
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    max-width: 520px;
}

/* Contact Info in Footer */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

/* Footer Columns */
.footer-col h4 {
    color: var(--couleur-primaire);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
    text-align: left;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width var(--transition-smooth);
}

.footer-col:hover h4::after {
    width: 60px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
}

.footer-col a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    padding: var(--space-1) 0;
    position: relative;
}

.footer-col a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--couleur-primaire);
    transition: width var(--transition-fast);
}

.footer-col a:hover {
    color: var(--couleur-primaire);
    transform: translateX(4px);
}

.footer-col a:hover::before {
    width: 100%;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.footer-contact-list li svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-list li a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-contact-list li a:hover {
    color: var(--couleur-primaire);
}

.footer-contact-list li a::before {
    display: none;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding: var(--space-6) 0;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-copyright a {
    color: var(--couleur-primaire);
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--couleur-primaire);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--couleur-primaire);
    color: var(--white);
    border-color: var(--couleur-primaire);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-gold);
}

.social-links a:active {
    transform: translateY(-2px) scale(1.02);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

/* Footer Links (horizontal) */
.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: var(--couleur-primaire);
}

/* =================================================================
   PAGE HERO BANNER - Premium Animated Version
   ================================================================= */
.page-hero {
    background-color: var(--couleur-primaire);
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 9.5rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 3, 145, 0.75) 0%, rgba(139, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Animated gradient overlay */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 215, 0, 0.24), transparent 38%),
        radial-gradient(circle at 84% 75%, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
    pointer-events: none;
    animation: heroHaloShift 10s ease-in-out infinite alternate;
}

@keyframes heroHaloShift {
    0% { opacity: 0.72; transform: scale(1) translateY(0); }
    100% { opacity: 1; transform: scale(1.08) translateY(-8px); }
}

@keyframes heroLightSweep {
    0%,
    100% {
        transform: translateX(-8%) translateY(0);
        opacity: 0.65;
    }
    50% {
        transform: translateX(8%) translateY(-12px);
        opacity: 1;
    }
}

.page-hero > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Animated title with gradient underline */
.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-4);
    font-size: var(--text-5xl);
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    animation: heroTitleIn 0.9s var(--ease-out-expo) both;
    position: relative;
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: translateY(42px) scale(0.96);
        filter: blur(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Animated underline for title */
.page-hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
    animation: heroUnderline 0.65s var(--ease-out-expo) 0.45s both;
}

@keyframes heroUnderline {
    0% { width: 0; opacity: 0; }
    100% { width: 110px; opacity: 1; }
}

.page-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.94);
    font-size: var(--text-lg);
    line-height: 1.8;
    animation: heroTextIn 0.8s var(--ease-out-expo) 0.2s both;
}

@keyframes heroTextIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    animation: heroBreadcrumbIn 0.8s var(--ease-out-expo) 0.4s both;
}

@keyframes heroBreadcrumbIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb a {
    color: var(--gold);
    opacity: 0.9;
    transition: all var(--transition-fast);
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb span,
.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.8);
}

/* Page hero responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 9rem 0 5rem;
        min-height: 350px;
        background-attachment: scroll;
    }

    .page-hero h1 {
        font-size: var(--text-3xl);
    }

    .page-hero h1::after {
        width: 72px;
    }

    .page-hero p {
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 8rem 0 4rem;
        min-height: 300px;
    }

    .page-hero h1 {
        font-size: var(--text-2xl);
    }
}

/* =================================================================
   CARDS - Premium Design
   ================================================================= */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: var(--space-8);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

/* Card accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(24, 3, 145, 0.06);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    margin-bottom: var(--space-6);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-button);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--couleur-primaire-dark);
}

/* Center buttons in cards */
.card .btn,
.formation-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body {
    color: var(--text-muted);
    line-height: 1.75;
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Feature Card */
.card-feature {
    text-align: center;
    padding: var(--space-10) var(--space-8);
}

.card-feature .card-icon {
    margin: 0 auto var(--space-6);
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
}

/* Horizontal Card */
.card-horizontal {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.card-horizontal .card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* =================================================================
   FORMS
   ================================================================= */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--text-sm);
}

.form-group label .required {
    color: var(--couleur-secondaire);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-secondary);
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-control:hover {
    border-color: #d0d5dd;
}

.form-control:focus {
    outline: none;
    border-color: var(--couleur-primaire);
    box-shadow: 0 0 0 4px rgba(24, 3, 145, 0.1);
}

.form-control::placeholder {
    color: var(--text-subtle);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-control.error {
    border-color: var(--couleur-secondaire);
    animation: shake 0.4s ease;
}

.form-control.success {
    border-color: var(--success);
}

.error-message {
    color: var(--couleur-secondaire);
    font-size: var(--text-xs);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    animation: fadeInDown 0.3s ease;
}

.error-message svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: var(--space-12);
}

.input-with-icon .input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon .input-icon svg {
    width: 20px;
    height: 20px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--medium-gray);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    background: var(--light-gray);
}

.file-upload:hover {
    border-color: var(--couleur-primaire);
    background: rgba(24, 3, 145, 0.02);
}

.file-upload.dragover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    transform: scale(1.01);
}

.file-upload.has-file {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 2.25rem;
    color: var(--couleur-primaire);
    margin-bottom: var(--space-4);
    transition: transform var(--transition-fast);
}

.file-upload:hover .file-upload-icon {
    transform: translateY(-5px);
}

.file-upload-text {
    color: var(--text-dark);
    font-weight: 600;
    font-size: var(--text-base);
}

.file-upload-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--couleur-primaire);
    cursor: pointer;
    margin-top: 2px;
}

.form-check label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

/* =================================================================
   ALERTS
   ================================================================= */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    animation: fadeInDown 0.4s var(--ease-out-expo);
    font-size: var(--text-sm);
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid var(--info);
}

.alert-dismissible {
    position: relative;
    padding-right: var(--space-12);
}

.alert-close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* =================================================================
   TABS
   ================================================================= */
.tabs {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--medium-gray);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    padding-bottom: 2px;
}

.tab-btn {
    padding: var(--space-4) var(--space-6);
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out-expo);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.tab-btn:hover {
    color: var(--couleur-primaire);
    background: rgba(24, 3, 145, 0.03);
}

.tab-btn.active {
    color: var(--couleur-primaire);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s var(--ease-out-expo);
}

.tab-content.active {
    display: block;
}

/* =================================================================
   ACCORDION
   ================================================================= */
.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.accordion-item {
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    background: var(--white);
}

.accordion-item:hover {
    border-color: var(--couleur-primaire);
    box-shadow: var(--shadow-sm);
}

.accordion-item.active {
    border-color: var(--couleur-primaire);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: var(--white);
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background: var(--light-gray);
}

.accordion-item.active .accordion-header {
    background: var(--light-gray);
    color: var(--couleur-primaire);
}

.accordion-header svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
    color: var(--couleur-primaire);
    flex-shrink: 0;
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.accordion-item.active .accordion-body {
    padding: 0 var(--space-6) var(--space-6);
    max-height: 600px;
}

.accordion-body p {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* =================================================================
   GRID LAYOUTS
   ================================================================= */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* =================================================================
   LOADING
   ================================================================= */
.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--couleur-primaire);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-dots {
    display: flex;
    gap: var(--space-2);
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--couleur-primaire);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease-out-expo);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* =================================================================
   BADGE & TAGS
   ================================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

.badge-gold {
    background: var(--gradient-gold);
    color: var(--couleur-primaire);
}

.badge-outline {
    background: transparent;
    border: 1.5px solid var(--couleur-primaire);
    color: var(--couleur-primaire);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--light-gray);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--medium-gray);
}

/* =================================================================
   TOOLTIP
   ================================================================= */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: var(--space-2) var(--space-3);
    background: var(--dark-gray);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-gray);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =================================================================
   MODAL
   ================================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--text-xl);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--couleur-secondaire);
    color: var(--white);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* =================================================================
   TABLES
   ================================================================= */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--medium-gray);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.table th {
    background: var(--light-gray);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-dark);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(24, 3, 145, 0.02);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* =================================================================
   RESPONSIVE STYLES
   ================================================================= */
@media (max-width: 1200px) {
    :root {
        --container-max: 960px;
    }

    .footer-grid { gap: var(--space-5); }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }

    .section { padding: var(--space-16) 0; }
    .page-hero { padding: 9rem 0 5rem; }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
        gap: var(--space-4);
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-col {
        text-align: left;
    }

    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --space-16: 3rem;
        --space-20: 4rem;
        --space-24: 5rem;
        --container-padding: var(--space-5);
    }

    .section { padding: var(--space-12) 0; }
    .section-header { margin-bottom: var(--space-8); }

    .page-hero {
        padding: 8rem 0 4rem;
    }
    .page-hero h1 {
        font-size: var(--text-3xl);
    }
    .page-hero p {
        font-size: var(--text-base);
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5);
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0;
    }

    .footer-col:not(.footer-col-contact) {
        display: none;
    }

    .footer-col-contact {
        grid-column: 2;
        grid-row: 1;
        display: block !important;
    }

    .footer-brand p {
        display: block;
        font-size: var(--text-xs);
    }

    .footer-social-mobile {
        display: flex;
    }

    /* Hide social links on mobile */
    .footer-bottom .social-links,
    .hide-mobile {
        display: none !important;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .tabs {
        flex-direction: column;
        border-bottom: none;
        gap: var(--space-2);
    }

    .tab-btn {
        border: 1px solid var(--medium-gray);
        border-radius: var(--radius-md);
        text-align: center;
    }

    .tab-btn.active {
        border-color: var(--couleur-primaire);
        background: var(--light-gray);
    }

    .tab-btn::after { display: none; }

    .card {
        padding: var(--space-6);
    }

    .card-feature {
        padding: var(--space-8) var(--space-6);
    }

    .card-feature .card-icon {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-sm);
    }

    .btn-lg {
        padding: 0.875rem 2rem;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-xl);
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: var(--space-4);
    }

    html {
        font-size: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 1;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .footer-brand p {
        display: none;
    }

    .footer-col:not(.footer-col-contact) {
        display: none;
    }

    .footer-col-contact {
        grid-column: 2;
        grid-row: 1;
        display: block !important;
    }

    .footer-social-mobile {
        display: flex;
    }

    .footer-col {
        text-align: left;
    }

    .footer-col h4::after {
        left: 0;
        transform: none;
    }

    .footer-col a:hover {
        transform: translateX(4px);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .btn {
        padding: 0.75rem 1.25rem;
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .card {
        padding: var(--space-5);
    }

    .card-icon {
        width: 52px;
        height: 52px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .accordion-header {
        padding: var(--space-4) var(--space-5);
        font-size: var(--text-sm);
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: var(--text-xs);
    }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text colors */
.text-primary { color: var(--couleur-primaire); }
.text-secondary { color: var(--couleur-secondaire); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

/* Background colors */
.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background: var(--gradient-secondary); }
.bg-light { background: var(--light-gray); }
.bg-white { background: var(--white); }

/* Margins */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Padding */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Border radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Gradient Text */
.gradient-text {
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Float Animation */
.float { animation: float 3s ease-in-out infinite; }

/* Glow Effect */
.glow { animation: glowPulse 2s ease-in-out infinite; }

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Hide on mobile/desktop */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-6);
    background: var(--couleur-primaire);
    color: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-rotate {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    .main-header,
    .main-footer,
    .mobile-menu,
    .mobile-menu-overlay,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
