/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --font-heading: 'Sora', 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Sora', sans-serif;
    --primary: #1a3a5c;
    --primary-light: #2563eb;
    --primary-dark: #0f2440;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Masquage SEO : visible pour les moteurs, invisible pour les utilisateurs */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ========================================
   Preloader
   ======================================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

/* Soulignement dégradé animé */
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}

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

.nav-link.active {
    color: var(--primary-light);
    font-weight: 600;
}

.nav-link.active::after {
    width: 70%;
}

/* Effet de surbrillance au survol */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-nav {
    position: relative;
    padding: 11px 26px;
    background: var(--gradient);
    background-size: 200% auto;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    overflow: hidden;
}

.btn-nav::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.btn-nav:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-nav:hover::after {
    transform: translateX(4px);
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background: var(--bg-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(245, 158, 11, 0.03) 50%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 0.7rem;
    color: var(--accent);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat { text-align: center; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual - Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    width: 100%;
    max-width: 480px;
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(37, 99, 235, 0.15);
    animation: codeFloat 6s ease-in-out infinite;
}

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

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body pre {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #94a3b8;
}

.code-keyword { color: #c084fc; }
.code-var { color: #67e8f9; }
.code-prop { color: #93c5fd; }
.code-string { color: #86efac; }
.code-number { color: #fca5a5; }
.code-method { color: var(--accent-light); }

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 80px 0;
    background: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.02) 0%, var(--bg-card) 100%);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 24px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--accent);
    font-size: 0.7rem;
    width: 18px;
    text-align: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-mission {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-style: italic;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1rem;
}

.highlight h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.highlight p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: var(--radius-xl);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    padding: 40px;
}

.about-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: 80px 0;
    background: var(--bg-gray);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.step-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Why Choose Us
   ======================================== */
.why-us {
    padding: 80px 0;
    background: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.why-card:hover::after {
    transform: scaleX(1);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Technologies Section
   ======================================== */
.technologies {
    padding: 80px 0;
    background: var(--bg-gray);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.tech-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 70px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    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.05'%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");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-section .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.project-card.hidden {
    display: none;
}

.project-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-gray);
}

.project-shot {
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-shot {
    transform: scale(1.04);
}

/* Mockups (browser, window, phone) */
.mock-browser,
.mock-window {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #eef;
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbbf24;
}

.mock-bar span:first-child { background: #ef4444; }
.mock-bar span:nth-child(2) { background: #f59e0b; }
.mock-bar span:last-child { background: #22c55e; }

.mock-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-hero {
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    opacity: 0.85;
}

.mock-hero.small {
    height: 34px;
}

.mock-cards {
    display: flex;
    gap: 8px;
}

.mock-card {
    flex: 1;
    height: 46px;
    border-radius: 6px;
    background: var(--bg-gray);
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mock-tile {
    height: 34px;
    border-radius: 6px;
    background: var(--bg-gray);
}

.mock-window {
    display: flex;
    flex-direction: column;
}

.mock-window .mock-bar {
    background: #e8e8f0;
}

.mock-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--primary-dark);
    width: 40%;
}

.mock-sidebar .mock-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.mock-sidebar .mock-line:first-child {
    background: var(--accent);
    width: 70%;
}

.mock-sidebar .mock-line:last-child {
    width: 55%;
}

.mock-main {
    flex: 1;
    background: var(--bg-gray);
    min-height: 80px;
}

.mock-side,
.mock-video {
    flex: 1;
}

.mock-abs {
    height: 16px;
    border-radius: 4px;
    background: var(--bg-gray);
    margin-bottom: 10px;
}

.mock-side {
    display: flex;
    flex-direction: column;
    background: var(--bg-gray);
    padding: 10px;
    border-radius: 6px;
}

.mock-video {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    min-height: 70px;
    border-radius: 6px;
    opacity: 0.85;
}

/* Phone mockups */
.mock-phone {
    width: 120px;
    height: 200px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 18px 10px 10px;
    overflow: hidden;
    border: 6px solid #1e293b;
}

.mock-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 12px;
    background: #1e293b;
    border-radius: 10px;
}

.mock-wallet,
.mock-dash {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-balance {
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.mock-row {
    height: 18px;
    border-radius: 6px;
    background: var(--bg-gray);
}

.mock-map {
    flex: 1;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
    border-radius: 8px;
    position: relative;
    min-height: 120px;
}

.mock-route {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 4px;
    border-radius: 4px;
    background: var(--primary-light);
    transform: rotate(-12deg);
}

.mock-pin {
    position: absolute;
    top: 40%;
    left: 60%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.25);
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.mock-col {
    height: 20px;
    border-radius: 5px;
    background: var(--bg-gray);
}

.mock-col:nth-child(1) { background: var(--primary-glow); }
.mock-col:nth-child(2) { background: var(--bg-gray); }
.mock-col:nth-child(3) { background: var(--accent-glow); }

.mock-chart {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-light) 0 65%, var(--bg-gray) 65% 100%);
    margin: 0 auto;
}

.mock-stat {
    height: 16px;
    border-radius: 5px;
    background: var(--bg-gray);
}

.project-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: var(--gradient);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

.shot-ecommerce { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.shot-gestion { background: linear-gradient(135deg, #0f2440, #2563eb); }
.shot-fintech { background: linear-gradient(135deg, #059669, #10b981); }
.shot-health { background: linear-gradient(135deg, #e11d48, #fb7185); }
.shot-delivery { background: linear-gradient(135deg, #d97706, #f59e0b); }
.shot-education { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.shot-inventory { background: linear-gradient(135deg, #92724b, #d97706); }
.shot-sports { background: linear-gradient(135deg, #db2777, #f472b6); }

.project-body {
    padding: 24px;
}

.project-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.project-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.65;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tech span {
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-light);
    background: var(--primary-glow);
    border-radius: 50px;
}

.project-meta {
    display: flex;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
}

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

/* ========================================
   Analytics / Charts Section
   ======================================== */
.analytics {
    padding: 80px 0;
    background: var(--bg-gray);
    position: relative;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.chart-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chart-card h4 i {
    color: var(--primary-light);
}

.chart-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Donut chart */
.chart-donut {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.chart-donut[data-value="98"] {
    background: conic-gradient(var(--primary-light) 0 88%, var(--accent) 88% 96%, var(--bg-gray) 96% 100%);
}

.chart-donut[data-value="98"]::after {
    content: '';
    position: absolute;
    inset: 18px;
    background: var(--bg-card);
    border-radius: 50%;
}

.chart-donut span {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
}

/* Bar chart */
.chart-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 150px;
    margin-bottom: 8px;
}

.bar {
    width: 44px;
    position: relative;
    border-radius: 8px 8px 0 0;
    background: var(--gradient);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.bar span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.15);
    padding: 3px 8px;
    border-radius: 20px;
}

.bar[data-v="70"] { height: 70%; }
.bar[data-v="85"] { height: 85%; }
.bar[data-v="100"] { height: 100%; }

.bar.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Pie chart */
.bars-pie {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-seg {
    width: 150px;
    height: 150px;
    position: absolute;
    border-radius: 50%;
}

.seg-web { background: conic-gradient(var(--primary-light) 0 45%, transparent 45% 100%); }
.seg-desktop { background: conic-gradient(var(--accent) 45% 75%, transparent 75% 100%); }
.seg-mobile { background: conic-gradient(#10b981 75% 100%, transparent 75% 100%); }

.bars-pie::after {
    content: '';
    position: absolute;
    inset: 18px;
    background: var(--bg-card);
    border-radius: 50%;
}

.pie-legend {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.pie-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-web { background: var(--primary-light); }
.dot-desktop { background: var(--accent); }
.dot-mobile { background: #10b981; }

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 80px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1rem;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-emails {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-emails a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.info-emails a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 0;
    background: var(--primary-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: inline-flex;
    padding: 10px 18px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 14px;
}

.footer-contact-inline {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    background: var(--gradient);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}

.footer-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

.footer-email-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.footer-email-ghost:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.footer-social a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Section Separators (vagues/ondes décoratives)
   ======================================== */
.sect-edge {
    position: relative;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.sect-edge svg {
    display: block;
    width: 100%;
    height: 60px;
}

.sect-edge-top {
    margin-bottom: -1px;
    z-index: 2;
}

.edge-white-bg {
    background: var(--bg-white);
}

.edge-gray-bg {
    background: var(--bg-gray);
}

/* Séparateur sous le CTA (dégradé -> blanc) */
.cta-bottom-wave {
    position: relative;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    margin-top: -1px;
    z-index: 2;
    background: var(--bg-white);
}

.cta-bottom-wave svg {
    display: block;
    width: 100%;
    height: 60px;
    transform: rotate(180deg);
}

/* Animation d'apparition des vagues */
@keyframes waveReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sect-edge,
.cta-bottom-wave {
    opacity: 0;
}

.sect-edge.seen,
.cta-bottom-wave.seen {
    animation: waveReveal 0.8s ease forwards;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Animations
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ========================================
   PRODUCTION DESIGN SYSTEM (TargetProvider)
   Couche senior : tokens, composants premium, a11y
   ======================================== */

/* --- Fluid typography & spacing tokens --- */
:root {
    --container-max: 1200px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --gradient-text: linear-gradient(100deg, var(--primary-light), var(--accent));
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.6);
}

html {
    font-size: 16px;
}

/* --- Boutons premium : balayage lumineux + focus --- */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-primary {
    background-image: linear-gradient(135deg, var(--primary-light) 0%, #3b82f6 45%, var(--accent) 100%);
    background-size: 180% auto;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 14px 34px -6px rgba(37, 99, 235, 0.45), 0 0 0 0 rgba(245, 158, 11, 0.2);
}

/* --- Focus visible accessible --- */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* skip-link accessible */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--primary-dark);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 16px;
}

/* --- Section headers --- */
.section-header h2 {
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(100deg, var(--primary-light), var(--accent));
    transform: translateX(-50%);
}

.section-tag {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

/* --- Hero : subtile mesh + réflexions --- */
.hero-content h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.18rem;
}

/* Badge de Glassmorphism dans le hero */
.hero-badge {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 6px 20px -6px rgba(30, 58, 95, 0.2);
}

/* --- Stat blocs premium --- */
.hero-stats .stat-item {
    position: relative;
}

.hero-stats .stat-number {
    font-family: var(--font-display);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Cartes premium : bordure dégradée au survol --- */
.service-card,
.process-step,
.why-card,
.tech-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* La carte projet garde sa transition d'origine (aucune surcharge) */

/* --- Formulaire premium --- */
.form-group input,
.form-group select,
.form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* --- Images fluides + lazy --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Respect des préférences de mouvement --- */
@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;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .process-timeline::before {
        display: none;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .analytics-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -110%;
        width: min(340px, 85vw);
        height: 100vh;
        background: linear-gradient(180deg, #ffffff 0%, #eef2ff 50%, #fff7ed 100%);
        flex-direction: column;
        padding: 90px 32px 40px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--border);
        box-shadow: -20px 0 60px rgba(30, 58, 95, 0.15);
        z-index: 1000;
        gap: 6px;
        overflow-y: auto;
    }

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

    /* Overlay de fond derrière le menu mobile */
    .nav-menu::before {
        content: '';
        position: fixed;
        inset: 0;
        right: min(340px, 85vw);
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }

    /* Logo en haut du menu mobile */
    .nav-menu::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient);
    }

    .nav-link {
        width: 100%;
        padding: 13px 18px;
        font-size: 1rem;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        border-radius: var(--radius-md);
        margin: 2px 0;
        transform: translateX(40px);
        opacity: 0;
        overflow: visible;
    }

    /* Reset des pseudo-éléments desktop pour un affichage mobile propre */
    .nav-link::after {
        display: none;
    }

    .nav-link::before {
        position: static;
        margin-right: 12px;
        font-size: 0.9rem;
        width: 20px;
        text-align: center;
        opacity: 0.75;
        background: none;
        z-index: auto;
        transform: none;
        padding: 0;
        flex-shrink: 0;
        color: var(--primary-light);
    }

    /* Icônes pour chaque lien du menu mobile */
    .nav-link[href="#hero"]::before { content: '\f015'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
    .nav-link[href="#services"]::before { content: '\f085'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
    .nav-link[href="#about"]::before { content: '\f2bb'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
    .nav-link[href="#projects"]::before { content: '\f0b1'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
    .nav-link[href="#process"]::before { content: '\f0c9'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
    .nav-link[href="#technologies"]::before { content: '\f013'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
    .nav-link[href="#contact"]::before { content: '\f0e0'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

    .nav-link.show {
        transform: translateX(0);
        opacity: 1;
        transition: transform 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.45s ease;
    }

    .nav-link:hover {
        background: var(--gradient-soft);
    }

    .nav-link.hover,
    .nav-link.active {
        background: var(--gradient-soft);
    }

    .btn-nav {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.7);
        box-shadow: var(--shadow-sm);
        position: relative;
    }

    .hamburger:hover {
        background: var(--gradient-soft);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-header h2,
    .about-content h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .services-grid,
    .process-timeline,
    .why-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .contact-form {
        padding: 24px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
