/* ============================================
   VARIABLES CSS - DESIGN SYSTEM
   Modifiez ces variables pour changer la DA
   ============================================ */

:root {
    /* Couleurs principales */
    --color-primary: #0066FF;
    --color-primary-light: #3385FF;
    --color-primary-dark: #0052CC;

    --color-secondary: #7C3AED;
    --color-secondary-light: #9F67FF;
    --color-secondary-dark: #6026D6;

    --color-accent: #EC4899;
    --color-accent-light: #F472B6;
    --color-accent-dark: #DB2777;

    /* Couleurs neutres */
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Couleurs de succès/erreur */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FONT FAMILIES
   ============================================ */

/* Antonio Font Family */
@font-face {
    font-family: 'Antonio';
    src: url('../fonts/Antonio-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Antonio';
    src: url('../fonts/Antonio-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Antonio';
    src: url('../fonts/Antonio-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Antonio';
    src: url('../fonts/Antonio-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Aileron Font Family */
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Regular.woff2') format('woff2'),
         url('../fonts/Aileron-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Light.woff2') format('woff2'),
         url('../fonts/Aileron-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-SemiBold.woff2') format('woff2'),
         url('../fonts/Aileron-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Bold.woff2') format('woff2'),
         url('../fonts/Aileron-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Antonio', sans-serif;
    text-transform: uppercase;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.uppercase {
    text-transform: uppercase;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: var(--color-primary);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 102, 255, 0));
}

.via-secondary {
    --tw-gradient-stops: var(--tw-gradient-from), var(--color-secondary), var(--tw-gradient-to, rgba(124, 58, 237, 0));
}

.to-secondary {
    --tw-gradient-to: var(--color-secondary);
}

.to-accent {
    --tw-gradient-to: var(--color-accent);
}

.text-primary {
    color: var(--color-primary);
}

/* ============================================
   COMPONENTS - BUTTONS
   ============================================ */

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-gray-200);
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-gray-50);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   COMPONENTS - CARDS
   ============================================ */

.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.feature-card-advanced {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card-advanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.feature-card-advanced:hover::before {
    opacity: 1;
}

.benefit-item {
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
}

.benefit-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.pricing-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-gray-200);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.pricing-card-popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-2xl);
    transform: scale(1.05);
}

.pricing-card-popular:hover {
    transform: scale(1.08);
}

/* ============================================
   COMPONENTS - ICONS
   ============================================ */

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    flex-shrink: 0;
}

.feature-icon-large {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   COMPONENTS - TYPOGRAPHY
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-gray-900);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    line-height: 1.8;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

/* ============================================
   COMPONENTS - STATS
   ============================================ */

.stat-card {
    text-align: center;
    padding: 1rem;
}

/* ============================================
   ANIMATIONS - SCROLL REVEAL
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITIES - BACKGROUND PATTERNS
   ============================================ */

.bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .pricing-card-popular {
        transform: scale(1);
    }

    .pricing-card-popular:hover {
        transform: scale(1.02);
    }
}

/* ============================================
   CUSTOM SCROLLBAR (OPTIONAL)
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-primary-dark), var(--color-secondary-dark));
}

/* ============================================
   FOCUS STATES (ACCESSIBILITY)
   ============================================ */

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

/* ============================================
   DARK THEME COMPONENTS - FORMATION PAGES
   ============================================ */

/* Dark theme colors */
.dark-theme {
    --dark-950: #030305;
    --dark-900: #0a0a10;
    --dark-800: #111118;
    --dark-700: #1a1a24;
    --dark-600: #252530;
}

/* Dark theme cards */
.dark-card {
    background: var(--dark-800, #111118);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
}

.dark-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

/* Gradient text utility */
.gradient-text-multi {
    background: linear-gradient(135deg, #10b981, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark form inputs */
.dark-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-700, #1a1a24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: white;
    transition: all var(--transition-base);
}

.dark-input::placeholder {
    color: #6b7280;
}

.dark-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Dark button variants */
.btn-gradient {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

/* Dark navigation */
.dark-nav {
    background: rgba(10, 10, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Testimonial card dark */
.testimonial-dark {
    background: var(--dark-800, #111118);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge dark variant */
.badge-dark {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glow effects */
.glow-violet {
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
}

.glow-emerald {
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.15);
}

.glow-pink {
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.15);
}

/* Mesh background pattern */
.bg-mesh-pattern {
    background-color: #030305;
    background-image:
        radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
}

/* Gradient border wrapper */
.gradient-border-wrapper {
    position: relative;
    background: linear-gradient(135deg, #10b981, #6366f1, #ec4899);
    padding: 2px;
    border-radius: 1rem;
}

.gradient-border-wrapper > * {
    background: #0a0a10;
    border-radius: calc(1rem - 2px);
}

/* Stats card dark */
.stat-dark {
    text-align: center;
    padding: 1rem;
    background: rgba(17, 17, 24, 0.5);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section divider for dark themes */
.section-divider-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
