/* ============================================
   DESIGN SYSTEM - Formation IA English Tree
   Pour cadres, dirigeants PME, freelances
   ============================================ */

/*
   ANALYSE DE LA CIBLE :
   - Cadres d'entreprise (40-55 ans)
   - Dirigeants PME
   - Freelances expérimentés

   CE QU'ILS RECHERCHENT :
   - Crédibilité et expertise
   - ROI concret
   - Gain de temps
   - Avantage compétitif

   CE QUI LES RASSURE :
   - Certifications officielles
   - Témoignages de pairs
   - Approche pragmatique
   - Accompagnement personnalisé
*/

:root {
    /* ============================================
       NOUVELLE PALETTE - Executive / Premium
       ============================================ */

    /* Primary - Bleu profond "confiance & expertise" */
    --primary: #1e3a5f;           /* Navy profond - autorité, confiance */
    --primary-light: #2d5a8a;     /* Pour hover states */
    --primary-dark: #0f2744;      /* Pour accents forts */
    --primary-bg: #f0f4f8;        /* Background subtle */

    /* Accent - Or/Bronze "premium & succès" */
    --accent: #c9a227;            /* Or sophistiqué - premium, réussite */
    --accent-light: #e8c547;      /* Pour highlights */
    --accent-dark: #9a7b1a;       /* Pour texte sur fond clair */
    --accent-bg: #fdf9eb;         /* Background warm */

    /* Secondary - Vert "croissance & résultats" */
    --success: #2d6a4f;           /* Vert forêt - croissance durable */
    --success-light: #40916c;
    --success-bg: #ecf5f0;

    /* Neutral - Gris sophistiqués */
    --ink: #1a1f2e;               /* Texte principal - presque noir mais plus doux */
    --ink-light: #4a5568;         /* Texte secondaire */
    --ink-muted: #718096;         /* Texte tertiaire */
    --ink-faint: #a0aec0;         /* Placeholders */

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-cream: #fafbfc;          /* Off-white sophistiqué */
    --bg-warm: #f7f8fa;           /* Pour sections alternées */
    --bg-cool: #f0f4f8;           /* Pour sections info */

    /* Borders */
    --border: #e2e8f0;
    --border-dark: #cbd5e0;

    /* Shadows - Plus subtiles, plus pro */
    --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.04);
    --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
    --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.12);
    --shadow-xl: 0 20px 50px rgba(30, 58, 95, 0.15);

    /* ============================================
       TYPOGRAPHIE - Executive
       ============================================ */

    /* Display - Pour titres : élégance et autorité */
    --font-display: 'Playfair Display', 'Georgia', serif;

    /* Body - Pour contenu : lisibilité et modernité */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizes - Plus aérés pour lecture confortable */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */

    /* Line heights */
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* ============================================
       SPACING - Plus généreux = plus premium
       ============================================ */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* ============================================
       BORDER RADIUS - Subtils, pas enfantins
       ============================================ */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ============================================
       TRANSITIONS
       ============================================ */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ============================================
       Z-INDEX
       ============================================ */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--ink);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.font-display {
    font-family: var(--font-display);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTON STYLES - Executive
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-accent {
    background: var(--accent);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--ink-light);
    padding: 0.75rem 1rem;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--bg-cool);
}

/* ============================================
   CARD STYLES - Executive
   ============================================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-lg);
}

.card-premium {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--accent-bg) 100%);
    border: 2px solid var(--accent);
}

.card-dark {
    background: var(--primary);
    color: white;
    border: none;
}

/* ============================================
   ANIMATIONS - Subtiles et pro
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   NAVIGATION - Executive
   ============================================ */
.nav-executive {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    position: relative;
    color: var(--ink-light);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    padding: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ink-light);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-cool);
    color: var(--primary);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--space-24) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

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

.section-warm {
    background: var(--bg-warm);
}

.section-cool {
    background: var(--bg-cool);
}

/* ============================================
   FORM STYLES - Executive
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--ink);
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-input::placeholder {
    color: var(--ink-faint);
}

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

/* ============================================
   TESTIMONIAL STYLES
   ============================================ */
.testimonial {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--bg-warm);
}

/* ============================================
   BADGE STYLES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

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

.badge-accent {
    background: var(--accent-bg);
    color: var(--accent-dark);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

/* ============================================
   STATS / METRICS - Pour crédibilité
   ============================================ */
.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--ink-muted);
    margin-top: var(--space-2);
}

/* ============================================
   PRICING CARD - Premium
   ============================================ */
.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
}

.pricing-card.featured {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   FOOTER - Executive
   ============================================ */
.footer-executive {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-executive a:hover {
    color: white;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 800px;
}

.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;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
    }

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

@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
    }

    .container {
        padding: 0 var(--space-4);
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .nav-executive,
    .footer-executive,
    .btn {
        display: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
