/* Variables Apple-like - Thème Blanc Cassé iPhone */
:root {
    --primary-color: #007AFF;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --bg-primary: #F7F5F2;
    --bg-secondary: #EEEDE8;
    --bg-tertiary: #F9F7F3;
    --surface: rgba(0, 0, 0, 0.03);
    --surface-hover: rgba(0, 0, 0, 0.06);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-large: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Effets iPhone liquid glass */
    --iphone-blue: rgba(0, 122, 255, 0.1);
    --iphone-red: rgba(255, 59, 48, 0.08);
    --iphone-light-blue: rgba(90, 200, 250, 0.06);
    --iphone-gradient: linear-gradient(135deg, var(--iphone-blue) 0%, var(--iphone-light-blue) 50%, var(--iphone-red) 100%);
}

/* Thème Sombre - Version Douce et Chaleureuse */
[data-theme="dark"] {
    --text-primary: #F0F2F5;
    --text-secondary: #C4C8CC;
    --text-tertiary: #9DA3A8;
    --bg-primary: #0F1419;
    --bg-secondary: #1A1F26;
    --bg-tertiary: #252B33;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.6);
    --primary-color: #6B9FFF;
    --accent-warm: #FF8A65;
    --accent-cool: #4DD0E1;
    --gradient-primary: linear-gradient(135deg, #6B9FFF 0%, #4DD0E1 100%);
    --gradient-warm: linear-gradient(135deg, #FF8A65 0%, #FFB74D 100%);
}

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

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Network Background */
.network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#networkCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3; /* Réduit pour moins de distraction */
}

/* Mode sombre - Canvas plus visible */
[data-theme="dark"] #networkCanvas {
    opacity: 0.5;
}

/* Navigation - Liquid Glass Apple avec Hide/Show */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    padding: 0;
    width: calc(100% - 32px);
    max-width: 1100px;
    height: 72px;
    backdrop-filter: blur(60px) saturate(300%) contrast(120%);
    background: 
        radial-gradient(circle at 30% 20%, var(--iphone-blue), transparent 65%),
        radial-gradient(circle at 70% 80%, var(--iphone-light-blue), transparent 55%),
        radial-gradient(circle at 50% 50%, var(--iphone-red), transparent 80%),
        linear-gradient(135deg, rgba(248, 249, 250, 0.2), rgba(248, 249, 250, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

/* Navbar cachée */
.navbar.navbar-hidden {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

/* Effet liquid glass ondulant */
.navbar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, var(--iphone-light-blue), transparent 45%),
        radial-gradient(circle at 75% 75%, var(--iphone-blue), transparent 40%),
        radial-gradient(circle at 50% 10%, var(--iphone-red), transparent 60%);
    animation: iphoneLiquidFlow 12s ease-in-out infinite;
    opacity: 0.8;
    z-index: -1;
}

/* Animation liquide organique - Style iPhone */
@keyframes iphoneLiquidFlow {
    0%, 100% {
        transform: translate(-25%, -25%) rotate(0deg) scale(1);
        filter: blur(25px) saturate(150%) brightness(1.1);
    }
    20% {
        transform: translate(-15%, -35%) rotate(72deg) scale(1.15);
        filter: blur(30px) saturate(180%) brightness(1.2);
    }
    40% {
        transform: translate(-35%, -15%) rotate(144deg) scale(0.85);
        filter: blur(35px) saturate(120%) brightness(1);
    }
    60% {
        transform: translate(-20%, -40%) rotate(216deg) scale(1.1);
        filter: blur(28px) saturate(160%) brightness(1.15);
    }
    80% {
        transform: translate(-30%, -20%) rotate(288deg) scale(0.95);
        filter: blur(32px) saturate(140%) brightness(1.05);
    }
}

/* Animation liquide organique classique */
@keyframes liquidFlow {
    0%, 100% {
        transform: translate(-20%, -20%) rotate(0deg) scale(1);
        filter: blur(20px);
    }
    25% {
        transform: translate(-10%, -30%) rotate(90deg) scale(1.1);
        filter: blur(25px);
    }
    50% {
        transform: translate(-30%, -10%) rotate(180deg) scale(0.9);
        filter: blur(30px);
    }
    75% {
        transform: translate(-15%, -25%) rotate(270deg) scale(1.05);
        filter: blur(22px);
    }
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: liquidShimmer 4s ease-in-out infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes liquidShimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%) skewX(-20deg); }
    50% { opacity: 1; transform: translateX(100%) skewX(-20deg); }
}

.navbar.scrolled {
    top: 16px;
    width: calc(100% - 32px);
    height: 68px;
    backdrop-filter: blur(80px) saturate(400%) contrast(140%);
    background: 
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.35), transparent 65%),
        radial-gradient(circle at 75% 85%, rgba(0, 122, 255, 0.25), transparent 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    transform: translateX(-50%);
    border-radius: 24px;
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(255, 255, 255, 0.15);
}

/* Mode sombre - Liquid Glass */
[data-theme="dark"] .navbar {
    backdrop-filter: blur(60px) saturate(250%) contrast(120%);
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.4), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(88, 166, 255, 0.1), transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.587),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar::before {
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.6), transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(88, 166, 255, 0.15), transparent 35%);
}

[data-theme="dark"] .navbar.scrolled {
    backdrop-filter: blur(80px) saturate(300%) contrast(140%);
    background: 
        radial-gradient(circle at 25% 15%, rgba(0, 0, 0, 0), transparent 65%),
        radial-gradient(circle at 75% 85%, rgba(88, 166, 255, 0.15), transparent 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}

.nav-container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3002;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(0, 122, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-text:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 70%),
        rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 20px;
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 40%);
    animation: menuLiquidFlow 6s ease-in-out infinite;
    opacity: 0.7;
    z-index: -1;
}

@keyframes menuLiquidFlow {
    0%, 100% { transform: translate(-30%, -30%) scale(0.8); }
    50% { transform: translate(-20%, -40%) scale(1.2); }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 10px 18px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
    backdrop-filter: blur(40px) saturate(250%);
}



.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    z-index: 3001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Mobile Menu */
@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 16px);
        top: 12px;
        height: 64px;
        border-radius: 18px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-img {
        height: 28px;
        width: 28px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 96px;
        left: -100%;
        width: calc(100% - 32px);
        height: auto;
        max-height: calc(100vh - 100px);
        margin: 0 16px;
        background: rgba(250, 247, 240, 0.95);
        backdrop-filter: blur(40px) saturate(200%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1rem;
        transition: left 0.3s ease-in-out;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        z-index: 3000;
        overflow-y: auto;
    }

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

    .nav-menu::before {
        display: none;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 85%;
        text-align: center;
        border-radius: 12px;
        margin: 0.25rem 0;
        backdrop-filter: blur(20px);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        transform: scale(1.02);
        background: rgba(0, 122, 255, 0.1);
    }

    .theme-toggle {
        margin: 0;
        padding: 0.8rem 1.2rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Mode sombre - Menu mobile */
    [data-theme="dark"] .nav-menu {
        background: rgba(13, 17, 23, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        background: rgba(88, 166, 255, 0.15);
    }
}

/* Toggle de thème - Style iOS 26 */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-secondary);
    font-size: 1.2rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.98);
}

.theme-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

[data-theme="dark"] .theme-icon {
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .theme-icon::before {
    content: '☀️';
}

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

/* Hero Section - Ajusté pour header iOS 26 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) blur(0.5px) saturate(0.8);
    animation: gentle-zoom 30s ease-in-out infinite;
}

/* Mode sombre - Images adaptées */
[data-theme="dark"] .bg-img {
    filter: brightness(0.4) blur(0.5px) saturate(0.6) contrast(0.9);
}

@keyframes gentle-zoom {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(0.6) blur(0.5px) saturate(0.8);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(0.5) blur(1px) saturate(0.7);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(0, 122, 255, 0.1) 100%
    );
    backdrop-filter: blur(1px);
}

/* Mode sombre - Overlay adapté */
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.85) 0%,
        rgba(13, 17, 23, 0.7) 50%,
        rgba(88, 166, 255, 0.15) 100%
    );
}

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

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-weight: 300;
    color: var(--text-secondary);
}

.title-accent {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: -0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: 
        radial-gradient(circle at 30% 30%, var(--iphone-light-blue), transparent 80%),
        var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-1px);
}

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

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

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.05));
    border: 1px solid rgba(0, 122, 255, 0.2);
    animation: float-gentle 8s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Services Preview */
.services-preview {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: 
        radial-gradient(circle at 20% 20%, var(--iphone-light-blue), transparent 70%),
        radial-gradient(circle at 80% 80%, var(--iphone-red), transparent 75%),
        var(--bg-primary);
    border-radius: var(--radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

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

.service-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(0, 122, 255, 0.02) 0%, transparent 70%),
        url('Photo/Supercar/IMG_2758.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(1px) brightness(0.15) saturate(0.5);
    z-index: -1;
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Recent Work - Section mise en valeur */
.recent-work {
    padding: 150px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.recent-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(0, 122, 255, 0.02) 0%, transparent 50%),
        url('Photo/IMG_1242.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(0.8px) brightness(0.18) saturate(0.6);
    z-index: -1;
    opacity: 0.12;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.work-item {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: blur(40px) saturate(200%) contrast(120%);
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.08), transparent 65%),
        radial-gradient(circle at 70% 80%, rgba(90, 200, 250, 0.05), transparent 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 122, 255, 0.2),
        0 0 0 1px rgba(0, 122, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.3);
}

.work-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) saturate(1.1);
}

.work-item:hover .work-image img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1) saturate(1.3);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: 
        linear-gradient(transparent, rgba(0, 0, 0, 0.8)),
        linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(90, 200, 250, 0.05));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.work-item:hover .work-category {
    background: rgba(0, 122, 255, 0.9);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* Amélioration du titre de section */
.recent-work .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, #007AFF, #FF6B6B, #4ECDC4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 122, 255, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: brightness(1) saturate(1); }
    to { filter: brightness(1.2) saturate(1.3); }
}

.recent-work .section-header p {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

/* Amélioration du CTA */
.work-cta {
    text-align: center;
    margin-top: 3rem;
}

.work-cta .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #007AFF, #4ECDC4);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.work-cta .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
    filter: brightness(1.1);
}

/* Mode sombre - Recent Work */
[data-theme="dark"] .work-item {
    backdrop-filter: blur(40px) saturate(200%) contrast(120%);
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.4), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(88, 166, 255, 0.1), transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .work-item:hover {
    box-shadow: 
        0 40px 80px rgba(88, 166, 255, 0.3),
        0 0 0 1px rgba(88, 166, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.4);
}

[data-theme="dark"] .work-category {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .work-item:hover .work-category {
    background: rgba(88, 166, 255, 0.9);
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 122, 255, 0.04) 0%, transparent 40%),
        url('Photo/IMG_2760.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(1px) brightness(0.12) saturate(0.4);
    z-index: -1;
    opacity: 0.08;
}

.cta-content h2 {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-main p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design Amélioré - Mobile First */

/* Media queries pour tablettes */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        gap: 1.5rem;
    }
}

/* Media queries pour mobiles - Optimisé */
@media (max-width: 768px) {
    .navbar {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 16px;
        backdrop-filter: blur(40px) saturate(200%);
    }
    
    .navbar.scrolled {
        top: 4px;
        width: calc(100% - 20px);
        backdrop-filter: blur(60px) saturate(300%);
    }
    
    .nav-container {
        padding: 8px 16px;
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 86px;
        left: 8px;
        right: 8px;
        background: rgba(250, 247, 240, 0.95);
        backdrop-filter: blur(60px) saturate(300%);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 3000;
        /* S'assurer que le menu est caché par défaut sur mobile */
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 14px 20px;
        border-radius: 12px;
        text-align: center;
        font-size: 1.05rem;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin: 6px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        margin-left: 0.5rem;
        font-size: 1rem;
    }
    
    .hero {
        min-height: 90vh;
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .service-number {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-item {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-main {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        top: 6px;
        width: calc(100% - 12px);
        border-radius: 14px;
    }
    
    .nav-container {
        padding: 6px 12px;
    }
    
    .nav-menu {
        top: 76px;
        left: 6px;
        right: 6px;
        padding: 16px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 16px;
    }
    
    .hero {
        min-height: 85vh;
        padding: 80px 0 60px;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .services-preview,
    .recent-work,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .work-item {
        height: 220px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-main p {
        font-size: 0.9rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
        display: block;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .footer-section ul li a:active {
        background: rgba(0,0,0,0.06);
    }
}

/* Améliorations pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 90%;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Optimisations mobiles étendues */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 1rem 40px;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
        display: block;
        max-width: 100%;
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: 1.5;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1.2rem;
        text-align: center;
    }
    
    .service-number {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .stat-label {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-item {
        height: 250px;
        border-radius: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Media queries pour très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        width: calc(100% - 16px);
        height: 52px;
    }
    
    .hero {
        min-height: 85vh;
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
        line-height: 1.4;
    }
    
    .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.2rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .work-item {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Media queries pour écrans extra petits */
@media (max-width: 360px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .work-item {
        height: 180px;
    }
    
    .nav-menu {
        width: calc(100% - 16px);
        margin: 0 8px;
    }
}

/* Optimisations pour mobile - Images et performances */
@media (max-width: 768px) {
    /* Images optimisées pour mobile */
    .work-image img,
    .bg-img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 12px;
    }
    
    .bg-img {
        filter: brightness(0.5) blur(0.5px) saturate(0.7);
        transform: scale(1.1);
        transition: filter 0.3s ease;
    }
    
    [data-theme="dark"] .bg-img {
        filter: brightness(0.3) blur(0.5px) saturate(0.5) contrast(0.9);
    }
    
    /* Optimiser les backgrounds pour mobile */
    .stats-section::before,
    .recent-work::before,
    .cta-section::before {
        background-attachment: scroll;
        filter: blur(1px) brightness(0.15) saturate(0.4);
        opacity: 0.1;
    }
    
    /* Améliorer les interactions tactiles */
    .btn,
    .nav-link,
    .service-link,
    .work-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Optimiser les animations pour mobile */
    .service-card,
    .work-item,
    .stat-item {
        animation-duration: 0.5s;
        will-change: transform;
    }
    
    /* Améliorations hover/active pour mobile */
    .service-card:active,
    .work-item:active {
        transform: translateY(-2px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Scroll smooth sur mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimiser les ombres pour mobile */
    .service-card,
    .work-item,
    .navbar {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .service-card:hover,
    .work-item:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 12px 30px rgba(0, 122, 255, 0.15);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Optimisations supplémentaires pour très petits écrans */
@media (max-width: 480px) {
    /* Réduire les effets pour améliorer les performances */
    .stats-section::before,
    .recent-work::before,
    .cta-section::before {
        opacity: 0.06;
        filter: blur(2px) brightness(0.1) saturate(0.3);
    }
    
    /* Améliorer la taille des zones tactiles */
    .mobile-menu-toggle {
        padding: 12px;
        min-height: 48px;
        min-width: 48px;
    }
    
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 10px;
    }
    
    /* Espacements optimisés pour le pouce */
    .hero-actions {
        gap: 1.2rem;
    }
    
    .nav-link {
        min-height: 48px;
        margin: 0.3rem 0;
    }
    
    /* Animations plus fluides sur petits écrans */
    .service-card:hover,
    .work-item:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 8px 20px rgba(0, 122, 255, 0.12);
    }
}

/* Améliorations pour la saisie tactile sur tous les mobiles */
@media (max-width: 768px) and (pointer: coarse) {
    /* Zones tactiles optimisées */
    a, button, .btn, .nav-link, .service-link {
        min-height: 44px;
        position: relative;
    }
    
    /* Feedback tactile visuel */
    .btn::before,
    .service-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 122, 255, 0.1);
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.15s ease;
    }
    
    .btn:active::before,
    .service-link:active::before {
        opacity: 1;
    }
    
    /* Amélioration du scroll */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Prévenir le zoom accidentel */
    input, textarea, select {
        font-size: 16px;
    }
}

/* Preferences pour économiser la batterie */
@media (prefers-reduced-motion: reduce) {
    .stats-section::before,
    .recent-work::before,
    .cta-section::before {
        animation: none;
        transform: none;
    }
    
    .bg-img {
        animation: none;
        transform: none;
    }
}

/* Mode sombre - Liquid Glass menu */
[data-theme="dark"] .nav-menu {
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.4), transparent 70%),
        rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-menu::before {
    background: 
        radial-gradient(circle, rgba(0, 0, 0, 0.3), transparent 40%);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mobile-menu-toggle {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mode sombre - Améliorations supplémentaires */
[data-theme="dark"] .work-overlay {
    background: linear-gradient(transparent, rgba(13, 17, 23, 0.85));
}

[data-theme="dark"] .service-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(88, 166, 255, 0.4);
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 999;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Morphing Shapes */
.morphing-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Parallax Elements */
.parallax-element {
    will-change: transform;
}

/* Text Split Animations */
.split-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    will-change: transform;
}

/* Magnetic Buttons */
.btn, .service-link {
    will-change: transform;
    transition: transform 0.1s ease;
}

/* Scroll Container */
.scroll-container {
    will-change: transform;
}

/* Overlay pour menu mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 2500;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Canvas en mode sombre */
[data-theme="dark"] #networkCanvas {
    opacity: 0.4;
}

/* Animations de slide pour les blocs */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Application des animations */
.service-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.sector-card {
    animation: slideInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

.sector-card:nth-child(odd) {
    animation-name: slideInLeft;
}

.sector-card:nth-child(even) {
    animation-name: slideInRight;
}

.sector-card:nth-child(1) { animation-delay: 0.1s; }
.sector-card:nth-child(2) { animation-delay: 0.2s; }
.sector-card:nth-child(3) { animation-delay: 0.3s; }

.hero-content {
    animation: fadeInScale 1s ease-out;
}

.hero-content h1 {
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-content p {
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.hero-actions {
    animation: slideInUp 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Footer animation */
.footer-section {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }

/* Smooth scroll reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Effets iPhone liquid glass pour les sections - Thème clair uniquement */
body:not([data-theme="dark"]) .services-preview,
body:not([data-theme="dark"]) .stats-section,
body:not([data-theme="dark"]) .recent-work {
    position: relative;
}

body:not([data-theme="dark"]) .services-preview::after,
body:not([data-theme="dark"]) .stats-section::after,
body:not([data-theme="dark"]) .recent-work::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--iphone-gradient);
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* Animations spécifiques pour Portfolio */
.portfolio-item {
    animation: fadeInScale 0.8s ease-out;
    animation-fill-mode: both;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* Animations pour Contact */
.contact-card {
    animation: slideInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

.contact-form {
    animation: slideInRight 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.form-group {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Animations pour About */
.about-card, .timeline-item {
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.about-card:nth-child(odd) {
    animation-name: slideInLeft;
}

.about-card:nth-child(even) {
    animation-name: slideInRight;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

/* Animation de hover améliorée */
.service-card:hover,
.sector-card:hover,
.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive animations */
@media (max-width: 768px) {
    .service-card,
    .sector-card,
    .portfolio-item {
        animation-duration: 0.4s;
    }
    
    .service-card:nth-child(n) { animation-delay: 0.05s; }
    .sector-card:nth-child(n) { animation-delay: 0.05s; }
}

/* Réduire les animations pour ceux qui préfèrent */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .sector-card,
    .portfolio-item,
    .hero-content,
    .animate-on-scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
