/**
 * Solution Numérique - Design System V2.0
 *
 * Aesthetic: Afro-Tech Futuriste Élégant
 * Typography: Outfit (display) + Plus Jakarta Sans (body)
 * Brand Colors: Extracted from official logo
 */

/* ============================================
   CSS VARIABLES - Design Tokens
   ============================================ */
:root {
    /* Primary Colors - Solution Numérique Blue (from logo) */
    --primary: #5B8DB8;
    --sn-blue-primary: #5B8DB8;     /* Main brand blue */
    --sn-blue-dark: #4A7BA7;        /* Darker variant */
    --sn-blue-deeper: #2B5E8A;      /* Deepest blue for text */
    --sn-blue-light: #7BA8CC;       /* Light variant */
    --sn-blue-lighter: #A8C8E1;     /* Lighter accent */

    /* Legacy aliases (for backward compatibility) */
    --primary-dark: #4A7BA7;
    --primary-light: #7BA8CC;

    /* Accent Colors - Afro-Tech Palette */
    --accent-orange: #E67E22;       /* Cameroon energy */
    --accent-orange-bright: #F39C12;
    --accent-orange-dark: #CA6510;
    --accent-green: #27AE60;        /* Innovation green */
    --accent-green-bright: #2ECC71;
    --accent-green-dark: #229954;
    --accent-purple: #8E44AD;       /* Digital tech */
    --accent-purple-bright: #9B59B6;
    --accent-purple-dark: #71368A;
    
    /* Neutral Colors */
    --dark: #1A1F36;
    --dark-lighter: #2C3E50;
    --gray-900: #1E293B;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748B;
    --gray-500: #94A3B8;
    --gray-400: #CBD5E1;
    --gray-300: #E2E8F0;
    --gray-200: #F1F5F9;
    --gray-100: #F8FAFC;
    --white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    /* Spacing */
    --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;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows - Refined Elevation System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-blue: 0 0 40px rgba(91, 141, 184, 0.3);
    --shadow-glow-orange: 0 0 40px rgba(230, 126, 34, 0.3);
    --shadow-glow: var(--shadow-glow-blue); /* Default glow */

    /* Gradients - Signature Brand Gradients */
    --gradient-hero: linear-gradient(135deg, #5B8DB8 0%, #2B5E8A 100%);
    --gradient-sunset: linear-gradient(135deg, #E67E22 0%, #F39C12 50%, #5B8DB8 100%);
    --gradient-innovation: linear-gradient(135deg, #27AE60 0%, #5B8DB8 100%);
    --gradient-digital: linear-gradient(135deg, #8E44AD 0%, #5B8DB8 100%);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    z-index: 9999;
    transition: top var(--transition-fast);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--space-4);
}

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

@media (max-width: 768px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
}

p {
    margin-bottom: var(--space-4);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Text Colors */
.text-accent { color: var(--accent-green); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-600); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header .navbar {
    padding: var(--space-4) 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.header .navbar.scrolled {
    padding: var(--space-2) 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
}

.navbar-brand .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-xl);
}

.navbar-brand .logo-text {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--gray-300);
    font-weight: 500;
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.dropdown-menu.dropdown-menu-dark {
    background-color: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-xl);
}

.dropdown-item {
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-4);
    transition: all var(--transition-fast);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #FF8555 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    color: var(--white);
}

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

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

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-24) 0 var(--space-16);
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 50%, #0D1B2A 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 102, 0.1) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Geometric Pattern - African inspired */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
    opacity: 0.05;
    transform: translateY(-50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(10deg) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: var(--accent-green);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(0, 204, 102, 0.3);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

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

.hero-description {
    font-size: var(--text-xl);
    color: var(--gray-400);
    max-width: 600px;
    margin-bottom: var(--space-8);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-20) 0 var(--space-12);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-description {
        font-size: var(--text-lg);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-20) 0;
}

.section-dark {
    background-color: var(--gray-900);
    color: var(--gray-300);
}

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

.section-light {
    background-color: var(--gray-100);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 204, 102, 0.1) 100%);
    color: var(--primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-description {
    color: var(--gray-600);
    font-size: var(--text-lg);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-green) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 204, 102, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    font-size: var(--text-2xl);
    color: var(--primary);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    color: var(--white);
    transform: scale(1.1);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-description {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--primary);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
    padding-top: var(--space-16);
    color: var(--gray-400);
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: 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.5;
    pointer-events: none;
}

.footer-main {
    position: relative;
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-brand .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-xl);
}

.footer-description {
    margin-bottom: var(--space-6);
    line-height: 1.8;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    font-size: var(--text-lg);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

.footer-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: var(--space-2);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--accent-green);
}

.newsletter-form {
    margin-top: var(--space-6);
}

.newsletter-form h5 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.newsletter-form .form-control {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .form-control:focus {
    background: var(--gray-800);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
    color: var(--white);
}

.footer-bottom {
    padding: var(--space-6) 0;
}

.copyright,
.made-with {
    margin: 0;
    font-size: var(--text-sm);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control {
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-label {
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.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; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================
   UTILITIES
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-balance {
    text-wrap: balance;
}
