/* =============================================
   VARIABLES & RESET
   ============================================= */

:root {
    /* Couleurs principales - Palette professionnelle et moderne */
    --primary: #0A66C2;
    --primary-dark: #004182;
    --primary-light: #378FE9;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    
    /* Couleurs neutres */
    --dark: #0F172A;
    --dark-soft: #1E293B;
    --gray: #475569;
    --gray-light: #94A3B8;
    --light: #F8FAFC;
    --white: #FFFFFF;
    
    /* Typographie */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 16px 64px rgba(15, 23, 42, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: all var(--transition-normal);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.brand-icon {
    font-size: 1.75rem;
    animation: pulse 3s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.nav-link-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0A66C2 0%, #378FE9 50%, #F59E0B 100%);
    opacity: 0.05;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.hero-title-line {
    display: block;
}

.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(10, 102, 194, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* =============================================
   SECTIONS
   ============================================= */

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

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

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

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(10, 102, 194, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

/* =============================================
   MISSION SECTION
   ============================================= */

.section-mission {
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.mission-profile {
    position: sticky;
    top: 120px;
}

.profile-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: var(--space-md);
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.2);
}

.profile-info {
    padding: 0 var(--space-sm);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-bio {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.7;
}

.process-flow-section {
    margin-top: var(--space-xl);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.mission-text p {
    color: var(--gray);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.mission-highlight {
    display: flex;
    gap: var(--space-md);
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    padding: var(--space-md);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-top: var(--space-md);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.process-step {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 12px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateX(30px);
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.process-step:nth-child(odd).visible {
    animation: slideInRight 0.6s ease-out forwards;
}

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

.process-step:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.process-step h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--gray);
    font-size: 0.9375rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--gray-light);
    text-align: center;
}

/* =============================================
   SERVICES SECTION
   ============================================= */

.section-services {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.service-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 16px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(2).visible {
    animation-delay: 0.1s;
}

.service-card:nth-child(3).visible {
    animation-delay: 0.2s;
}

.service-card:nth-child(4).visible {
    animation-delay: 0.3s;
}

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

.service-featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-details {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.service-duration,
.service-highlight {
    font-size: 0.875rem;
    font-weight: 600;
}

.service-duration {
    color: var(--gray);
}

.service-highlight {
    color: var(--primary);
    background: rgba(10, 102, 194, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.tech-stack {
    text-align: center;
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: 16px;
}

.tech-stack h4 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.tech-list {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    background: var(--light);
    color: var(--dark);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =============================================
   VALUES SECTION
   ============================================= */

.section-values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.value-card {
    text-align: center;
    padding: var(--space-lg);
    border-radius: 16px;
    background: var(--light);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0.95);
}

.value-card.visible {
    animation: scaleIn 0.6s ease-out forwards;
}

.value-card:nth-child(2).visible {
    animation-delay: 0.1s;
}

.value-card:nth-child(3).visible {
    animation-delay: 0.2s;
}

.value-card:nth-child(4).visible {
    animation-delay: 0.3s;
}

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

.value-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.value-card h3 {
    font-size: 1.375rem;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.value-card p {
    color: var(--gray);
    line-height: 1.7;
}

.philosophy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-xl);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.philosophy-quote {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    font-family: Georgia, serif;
}

.philosophy-quote p {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.quote-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
}

/* =============================================
   CTA SECTION
   ============================================= */

.section-cta {
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    padding: var(--space-xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.cta-buttons {
    margin-bottom: var(--space-lg);
}

.cta-info {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    color: var(--gray);
}

.info-item strong {
    color: var(--dark);
    margin-right: 0.5rem;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--gray-light);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer-section a {
    display: block;
    color: var(--gray-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-info {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--gray-light);
    font-size: 0.875rem;
}

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

@media (max-width: 1024px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .mission-profile {
        position: static;
    }
    
    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cta-info {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

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

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

/* Animations pour les éléments au scroll */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
