/* ============================================
   DIGITAL ATELIER - Portfolio CSS
   Refactored: Modular, Accessible, Performant
   ============================================ */

/* === CSS Variables === */
:root {
    /* Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f0f5f2;
    --text-secondary: #9ca8a1;
    --text-muted: #5a6b62;
    --accent: #10b981;
    --accent-hover: #34d399;
    --border: rgba(240, 245, 242, 0.1);
    --border-hover: rgba(240, 245, 242, 0.2);

    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Layout */
    --container-width: 1400px;
    --nav-height: 80px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-nav: 1000;
    --z-modal: 2000;
    --z-overlay: 9000;
    --z-cursor: 9999;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Color Utilities */
    --accent-10: rgba(16, 185, 129, 0.1);
    --accent-20: rgba(16, 185, 129, 0.2);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

/* Désactive le scroll smooth quand on est dans un navigateur in-app (Instagram/Facebook) */
html.no-smooth-scroll {
    scroll-behavior: auto;
}

/* Par défaut, on évite le scroll smooth sur mobile pour limiter les effets de glissement long */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--bg-secondary); }
html::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    cursor: none;
    transition: background var(--duration-slow) var(--ease-out),
                color var(--duration-slow) var(--ease-out);
}

/* Quand le menu mobile est ouvert, on coupe le scroll */
body.menu-open {
    overflow: hidden;
}

/* Lock complet uniquement si le JS le décide (évite les freezes dans certaines WebView) */
body.menu-open.menu-lock {
    position: fixed;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: none;
    border: none;
    background: none;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* === Accessibility: Focus Styles === */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Skip Link for Keyboard Users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    z-index: calc(var(--z-cursor) + 1);
    border-radius: 0 0 8px 8px;
    transition: top var(--duration-fast);
}

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

/* === Reduced Motion === */
@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;
    }

    /* Disable all decorative animations */
    .visual-shape,
    .hero-label,
    .title-word,
    .hero-description,
    .hero-cta,
    .scroll-indicator,
    .scroll-wheel,
    .cursor {
        animation: none !important;
    }

    /* Hide custom cursor in reduced motion */
    .cursor {
        display: none !important;
    }

    /* Show elements immediately without reveal animation */
    .reveal,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === Custom Cursor === */
.cursor {
    pointer-events: none;
    position: fixed;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--ease-out);
}

.cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s var(--ease-out);
}

.cursor.hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: rgba(5, 150, 105, 0.1);
}

.cursor.click .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

/* === Noise Overlay === */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-overlay);
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    z-index: var(--z-nav);
    background: transparent;
    transition: background var(--duration-normal) var(--ease-out),
                backdrop-filter var(--duration-normal) var(--ease-out);
}

/* Header transparent par défaut - juste Hebora + toggle visibles */
.nav-links {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

/* Quand scrolled : nav apparaît avec fond */
.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
}

.nav.scrolled .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Fallback : désactive le blur sur les navigateurs qui ne supportent pas backdrop-filter */
.no-backdrop .nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: none;
}

.no-backdrop .nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

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

.nav-brand-svg {
    width: 200px;
    height: auto;
}

.nav-brand-svg > text {
    fill: #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav-link:hover svg {
    opacity: 1;
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* Nav link actif selon la section */
.nav-link.active {
    color: var(--accent);
}

.nav-link.active svg {
    color: var(--accent);
    opacity: 1;
}

.nav-link.active::after {
    transform: translateX(0);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    margin-right: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border: 1px solid transparent;
}

.lang-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

.lang-label {
    color: var(--text-secondary);
    transition: color var(--duration-fast);
}

.lang-separator {
    color: var(--text-muted);
    font-weight: 400;
}

/* Active language indicator */
html[lang="fr"] .lang-toggle .lang-label:first-child,
html[lang="en"] .lang-toggle .lang-label:last-child {
    color: var(--accent);
}

/* Transition animation */
body.lang-transitioning [data-i18n],
body.lang-transitioning [data-i18n-html] {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--duration-normal) var(--ease-out);
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(5, 150, 105, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.sun-icon { display: none; }
.moon-icon { display: none; }

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    padding-top: calc(var(--nav-height) + var(--space-xl));
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-label .label-text {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.brand-wave1 {
    animation: brandWave1 4s ease-in-out infinite;
}

@keyframes brandWave1 {
    0% {
        d: path("M-40,40 Q25,30 90,40 T220,40 T350,40 T480,40 T560,40 V90 H-40 Z");
        transform: translate(0, 0);
    }
    25% {
        d: path("M-40,32 Q25,42 90,32 T220,32 T350,32 T480,32 T560,32 V90 H-40 Z");
        transform: translate(-15px, -6px);
    }
    50% {
        d: path("M-40,38 Q25,28 90,38 T220,38 T350,38 T480,38 T560,38 V90 H-40 Z");
        transform: translate(0, 2px);
    }
    75% {
        d: path("M-40,34 Q25,44 90,34 T220,34 T350,34 T480,34 T560,34 V90 H-40 Z");
        transform: translate(15px, -4px);
    }
    100% {
        d: path("M-40,40 Q25,30 90,40 T220,40 T350,40 T480,40 T560,40 V90 H-40 Z");
        transform: translate(0, 0);
    }
}


.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealWord 0.8s var(--ease-out) forwards;
}

.title-word[data-delay="0"] { animation-delay: 0.3s; }
.title-word[data-delay="1"] { animation-delay: 0.4s; }
.title-word[data-delay="2"] { animation-delay: 0.5s; }
.title-word[data-delay="3"] { animation-delay: 0.6s; }
.title-word[data-delay="4"] { animation-delay: 0.7s; }
.title-word[data-delay="5"] { animation-delay: 0.8s; }

.accent,
.title-word.accent {
    color: var(--accent);
}

.title-word.outline {
    -webkit-text-stroke: 2px var(--text-primary);
    color: transparent;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

/* Hero Visual - Background Shapes */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.visual-shape {
    position: absolute;
    filter: blur(120px);
    will-change: transform, opacity;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0d3d2e 0%, #071f18 40%, transparent 70%);
    border-radius: 50%;
    top: 5%;
    right: 0%;
    opacity: 0.6;
    animation: morphMove1 12s ease-in-out infinite, cloudPulse1 6s ease-in-out infinite;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #0a5040 0%, #062e24 40%, transparent 70%);
    border-radius: 50%;
    top: 25%;
    right: 10%;
    opacity: 0.4;
    animation: morphMove2 15s ease-in-out infinite, cloudPulse2 8s ease-in-out infinite;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #10b981 0%, #065f46 30%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    right: -5%;
    opacity: 0;
    animation: morphMove3 10s ease-in-out infinite, cloudFlash 5s ease-in-out infinite;
}

@keyframes cloudPulse1 {
    0%, 100% { opacity: 0.5; filter: blur(120px); }
    50% { opacity: 0.7; filter: blur(100px); }
}

@keyframes cloudPulse2 {
    0%, 100% { opacity: 0.35; filter: blur(130px); }
    50% { opacity: 0.55; filter: blur(110px); }
}

@keyframes cloudFlash {
    0%, 70%, 100% { opacity: 0; }
    80% { opacity: 0.3; filter: blur(80px); }
    90% { opacity: 0.15; filter: blur(100px); }
}

@keyframes morphMove1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%;
    }
    25% {
        transform: translate(-30px, 40px) rotate(5deg) scale(1.05);
        border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    }
    50% {
        transform: translate(20px, -20px) rotate(-3deg) scale(0.95);
        border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%;
    }
    75% {
        transform: translate(-20px, -30px) rotate(3deg) scale(1.02);
        border-radius: 55% 45% 45% 55% / 55% 45% 55% 45%;
    }
}

@keyframes morphMove2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    }
    33% {
        transform: translate(40px, -50px) rotate(-5deg);
        border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%;
    }
    66% {
        transform: translate(-30px, 30px) rotate(5deg);
        border-radius: 45% 55% 55% 45% / 45% 55% 45% 55%;
    }
}

@keyframes morphMove3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    }
    50% {
        transform: translate(-40px, 60px) scale(1.1);
        border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%;
    }
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-text {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.5; height: 40px; }
}

/* === Fireflies Effect === */
.embers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(0.5px);
    box-shadow:
        0 0 8px 3px var(--accent),
        0 0 16px 6px rgba(5, 150, 105, 0.4);
}

/* Chaque luciole a sa propre position et animation */
.ember:nth-child(1) {
    top: 20%; left: 10%;
    animation: fly1 25s ease-in-out infinite, glow 4s ease-in-out infinite;
}
.ember:nth-child(2) {
    top: 60%; left: 85%;
    animation: fly2 30s ease-in-out infinite, glow 3s ease-in-out infinite 0.5s;
}
.ember:nth-child(3) {
    top: 80%; left: 30%;
    animation: fly3 22s ease-in-out infinite, glow 5s ease-in-out infinite 1s;
}
.ember:nth-child(4) {
    top: 15%; left: 70%;
    animation: fly4 28s ease-in-out infinite, glow 3.5s ease-in-out infinite 0.3s;
}
.ember:nth-child(5) {
    top: 45%; left: 50%;
    animation: fly5 35s ease-in-out infinite, glow 4.5s ease-in-out infinite 0.8s;
}
.ember:nth-child(6) {
    top: 70%; left: 15%;
    animation: fly6 24s ease-in-out infinite, glow 3s ease-in-out infinite 1.2s;
}
.ember:nth-child(7) {
    top: 35%; left: 90%;
    animation: fly7 32s ease-in-out infinite, glow 5s ease-in-out infinite 0.2s;
}
.ember:nth-child(8) {
    top: 90%; left: 60%;
    animation: fly8 20s ease-in-out infinite, glow 4s ease-in-out infinite 0.7s;
}
.ember:nth-child(9) {
    top: 10%; left: 40%;
    animation: fly1 27s ease-in-out infinite reverse, glow 3.5s ease-in-out infinite 1.5s;
}
.ember:nth-child(10) {
    top: 55%; left: 5%;
    animation: fly3 33s ease-in-out infinite reverse, glow 4.5s ease-in-out infinite 0.4s;
}
.ember:nth-child(11) {
    top: 25%; left: 25%;
    animation: fly5 29s ease-in-out infinite, glow 3s ease-in-out infinite 1s;
}
.ember:nth-child(12) {
    top: 75%; left: 75%;
    animation: fly7 26s ease-in-out infinite reverse, glow 5s ease-in-out infinite 0.6s;
}
.ember:nth-child(13) {
    top: 40%; left: 65%;
    animation: fly2 31s ease-in-out infinite, glow 4s ease-in-out infinite 1.3s;
}
.ember:nth-child(14) {
    top: 85%; left: 45%;
    animation: fly4 23s ease-in-out infinite reverse, glow 3.5s ease-in-out infinite 0.9s;
}
.ember:nth-child(15) {
    top: 5%; left: 80%;
    animation: fly6 34s ease-in-out infinite, glow 4.5s ease-in-out infinite 1.1s;
}

/* Tailles variées */
.ember:nth-child(odd) { width: 3px; height: 3px; }
.ember:nth-child(3n) { width: 5px; height: 5px; }
.ember:nth-child(5n) { width: 2px; height: 2px; }

/* Trajectoires uniques - mouvement libre dans l'espace */
@keyframes fly1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(80px, -60px); }
    50% { transform: translate(20px, 40px); }
    75% { transform: translate(-50px, -20px); }
}

@keyframes fly2 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-70px, 50px); }
    40% { transform: translate(-30px, -80px); }
    60% { transform: translate(60px, -30px); }
    80% { transform: translate(40px, 70px); }
}

@keyframes fly3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, 30px); }
    66% { transform: translate(-40px, -50px); }
}

@keyframes fly4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-60px, -40px); }
    50% { transform: translate(50px, -70px); }
    75% { transform: translate(30px, 50px); }
}

@keyframes fly5 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(40px, 80px); }
    40% { transform: translate(-80px, 40px); }
    60% { transform: translate(-40px, -60px); }
    80% { transform: translate(70px, -30px); }
}

@keyframes fly6 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(90px, -45px); }
}

@keyframes fly7 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-55px, 65px); }
    66% { transform: translate(45px, 35px); }
}

@keyframes fly8 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(35px, -55px); }
    50% { transform: translate(-65px, -25px); }
    75% { transform: translate(-25px, 45px); }
}

/* Clignotement de luciole */
@keyframes glow {
    0%, 100% {
        opacity: 0.2;
        box-shadow:
            0 0 4px 1px var(--accent),
            0 0 8px 3px rgba(5, 150, 105, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow:
            0 0 12px 5px var(--accent),
            0 0 25px 10px rgba(5, 150, 105, 0.5),
            0 0 40px 15px rgba(5, 150, 105, 0.2);
    }
}

/* Mobile - moins de lucioles */
@media (max-width: 768px) {
    .ember:nth-child(n+8) {
        display: none;
    }
}

/* Préférence mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .ember {
        animation: glow 4s ease-in-out infinite !important;
    }
}

/* === Mon Approche Section === */
.approach-section {
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-primary);
}

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

.approach-content {
    margin-top: var(--space-lg);
}

.approach-intro {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.approach-headline {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.approach-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.approach-description strong {
    color: var(--accent);
    font-weight: 600;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.approach-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.approach-step:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    line-height: 1.3;
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Témoignages par problème */
.problems-solved {
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
}

.problems-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.problems-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-md);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sector-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: fit-content;
    margin-bottom: var(--space-xs);
}

.sector-badge i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.sector-badge span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-statement {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.testimonial-content {
    margin-top: var(--space-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    font-style: normal;
}

.testimonial-author .client-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Responsive - Approche */
@media (max-width: 1024px) {
    .approach-steps {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .approach-section {
        padding: var(--space-lg) var(--space-md);
    }

    .approach-step {
        padding: var(--space-sm);
    }

    .approach-headline {
        font-size: 1.5rem;
    }

    .approach-description {
        font-size: 1rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.875rem;
    }

    .problems-title {
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: var(--space-sm);
    }

    .problem-statement {
        font-size: 0.875rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }
}

/* === Services Section === */
.services-section {
    padding: var(--space-lg) var(--space-lg);
    background: var(--bg-secondary);
}

.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Large Service Cards */
.service-card-large {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.service-card-large:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.15);
}

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

/* Featured service card - spans 2 columns on the last row */
.service-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-color: var(--accent-20);
}

.service-card-featured::before {
    opacity: 0.5;
}

.service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.service-icon-large {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-10);
    border: 1px solid var(--accent-20);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.service-card-large:hover .service-icon-large {
    background: var(--accent);
    border-color: var(--accent);
}

.service-icon-large svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: color var(--duration-normal) var(--ease-out);
}

.service-card-large:hover .service-icon-large svg {
    color: #fff;
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.service-title-large {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color var(--duration-normal) var(--ease-out);
}

.service-card-large:hover .service-title-large {
    color: var(--accent);
}

.service-desc-large {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
}

.service-tag svg {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.service-card-large:hover .service-tag {
    border-color: var(--accent-20);
    background: var(--accent-10);
}

/* Services - Responsive */
@media (max-width: 1024px) {
    .services-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .service-card-featured {
        grid-column: span 2;
    }

    .service-icon-large {
        width: 48px;
        height: 48px;
    }

    .service-icon-large svg {
        width: 24px;
        height: 24px;
    }

    .service-title-large {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .services-section .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .service-card-large,
    .service-card-featured {
        grid-column: span 1;
        padding: var(--space-sm);
    }

    .service-card-large:hover {
        transform: none;
    }

    .service-icon-large {
        width: 44px;
        height: 44px;
    }

    .service-icon-large svg {
        width: 22px;
        height: 22px;
    }

    .service-title-large {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .service-desc-large {
        display: none;
    }

    .service-tag {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    .service-tag svg {
        width: 10px;
        height: 10px;
    }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a !important;
}

.btn-primary svg {
    color: #0a0a0a !important;
    stroke: #0a0a0a !important;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.btn:hover .btn-icon svg {
    transform: translate(4px, -4px);
}

.btn-full {
    width: 100%;
}

/* === Section Headers === */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-number {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    width: 1em;
    height: 1em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* === Work Section === */
.work-section {
    padding: var(--space-lg) var(--space-lg);
}

.work-section:nth-child(odd) {
    background: var(--bg-secondary);
}

.work-section:nth-child(even) {
    background: var(--bg-primary);
}

.section-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.label-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 100px;
}

.section-label .label-text {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label .label-text i {
    width: 1em;
    height: 1em;
}

/* === Project Filters === */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-sm) 0 var(--space-lg) 0;
    padding: 0 var(--space-sm);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.filter-btn i {
    width: 14px;
    height: 14px;
}

.filter-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* === Projects Grid - Visual-first showcase === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* First 2 projects: featured large cards */
.project-card:nth-child(-n+2) {
    grid-column: span 1;
}

.project-card:nth-child(-n+2) .project-image {
    aspect-ratio: 16/10;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-primary);
    cursor: pointer;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    border: none;
    outline: none;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-featured,
.project-wide {
    grid-column: span 2;
}

.project-link {
    display: block;
    height: 100%;
}

/* Image: fills the entire card */
.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-primary);
}

.project-iframe-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-iframe-wrapper.no-embed iframe {
    display: none;
}

.project-iframe-wrapper.static-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.project-card:hover .project-iframe-wrapper.static-preview img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

.project-iframe-wrapper.static-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.project-iframe-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.project-iframe-wrapper iframe {
    width: 1920px;
    height: 1080px;
    border: none;
    transform-origin: top left;
    pointer-events: none;
}

.project-overlay {
    display: none;
}

/* Info overlay: slides up from bottom on hover */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    transform: translateY(calc(100% - 5rem));
    transition: transform 0.5s var(--ease-out);
    z-index: 2;
    color: #ffffff;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

/* Project Categories & Tags (Unified) */
.project-categories,
.project-badges,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-categories {
    margin-bottom: 0.75rem;
}

.project-badges {
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out) 0.1s, transform 0.4s var(--ease-out) 0.1s;
}

.project-card:hover .project-badges {
    opacity: 1;
    transform: translateY(0);
}

.category-tag,
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
    transition: all var(--duration-normal) var(--ease-out);
}

.category-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-sector {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    font-weight: 600;
}

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

.badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.tag {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    background: var(--border);
    color: var(--text-secondary);
}

.project-card:hover .badge {
    border-color: rgba(5, 150, 105, 0.5);
}

/* Project Meta */
.project-meta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.project-year,
.project-category {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.project-category::before {
    content: '\2014';
    margin-right: var(--space-xs);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    transition: color var(--duration-normal) var(--ease-out);
}

.project-title svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.project-card:hover .project-title {
    color: #ffffff;
}

.project-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease-out) 0.05s, transform 0.4s var(--ease-out) 0.05s;
}

.project-card:hover .project-description {
    opacity: 1;
    transform: translateY(0);
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease-out) 0.15s, transform 0.4s var(--ease-out) 0.15s, gap 0.3s var(--ease-out);
}

.project-card:hover .project-cta {
    opacity: 1;
    transform: translateY(0);
}

.project-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.project-card:hover .project-cta svg {
    transform: translateX(4px);
}

/* Floating arrow indicator (pseudo-element, no HTML needed) */
.project-card::after {
    content: '\2197';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.4s var(--ease-out);
    z-index: 3;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* === Projects: Load More (4 par 4) === */
.projects-grid .project-card {
    display: none;
}

.projects-grid .project-card.project-visible {
    display: block;
}

.projects-load-more-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    z-index: 4;
}

/* Flou qui remonte sur les dernières cartes */
.projects-blur-hint {
    width: 100%;
    height: 150px;
    margin-top: -150px;
    background: linear-gradient(to top, var(--bg-primary) 20%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.projects-load-more-wrapper.all-loaded .projects-blur-hint {
    opacity: 0;
    height: 0;
    margin-top: 0;
}

.projects-load-more {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.35);
    margin-top: -28px;
    position: relative;
    z-index: 5;
}

.projects-load-more:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 32px rgba(5, 150, 105, 0.5);
}

.projects-load-more:active {
    transform: scale(0.95);
}

.load-more-icon {
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
    font-family: var(--font-display);
    transition: transform 0.3s var(--ease-out);
}

.projects-load-more:hover .load-more-icon {
    transform: rotate(90deg);
}

.projects-load-more-wrapper.all-loaded .projects-load-more {
    display: none;
}

/* === About Section === */
.about {
    padding: var(--space-lg) var(--space-lg);
}

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

.about-socials-standalone {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-intro {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.problems-solved {
    margin-bottom: var(--space-lg);
}

.problems-list {
    list-style: none;
    max-width: 100%;
    overflow: hidden;
}

.problems-list li {
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    overflow: hidden;
}

.problem-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-md);
    transition: all var(--duration-normal) var(--ease-out);
    max-width: 100%;
}

.problem-link:hover {
    padding-left: var(--space-sm);
}

.problem-content {
    flex: 1;
}

.problem {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.35rem;
    transition: color var(--duration-normal) var(--ease-out);
}

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

.solution {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
}

.problem-preview {
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--duration-normal) var(--ease-out);
}

.problem-link:hover .problem-preview {
    opacity: 1;
    transform: translateX(0);
}

.preview-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.preview-browser {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 4px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.browser-dots span:first-child { background: #ff5f57; opacity: 1; }
.browser-dots span:nth-child(2) { background: #ffbd2e; opacity: 1; }
.browser-dots span:nth-child(3) { background: #28ca41; opacity: 1; }

.browser-url {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: monospace;
}

.preview-iframe-container {
    width: 280px;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.preview-iframe-container iframe {
    width: 1400px;
    height: 900px;
    border: none;
    transform: scale(0.2);
    transform-origin: top left;
    pointer-events: none;
}

.about-promise {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

/* About Visual */
.about-visual {
    position: relative;
}

.visual-frame {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.frame-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.frame-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.frame-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent);
    border-radius: 16px;
    z-index: -1;
}

/* Social Links (Unified) */
.about-socials,
.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.about-socials {
    margin-top: 1.5rem;
}

.contact-socials {
    margin-top: var(--space-lg);
}

.social-link,
.contact-social {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-social {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
}

.social-link svg,
.contact-social svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.social-link:hover,
.contact-social:hover {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-4px);
}

.social-link:hover svg,
.contact-social:hover svg {
    color: #fff;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* === Contact Section === */
.contact {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-secondary);
}

.contact-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-headline {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-xl);
}

.contact-headline .accent {
    color: var(--accent);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

.contact-link:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

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

.contact-link-main {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a !important;
}

.contact-link-main svg {
    color: #0a0a0a !important;
    stroke: #0a0a0a !important;
}

.contact-link-main:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-4px);
}

.contact-link-main:hover svg {
    color: #0a0a0a;
    stroke: #0a0a0a;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .contact-form-wrapper {
        padding: var(--space-md);
    }
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--space-sm);
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #0a0a0a !important;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    align-self: flex-start;
}

.contact-submit svg {
    width: 18px;
    height: 18px;
    color: #0a0a0a !important;
    stroke: #0a0a0a !important;
}

.contact-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
    min-height: 1.5em;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: var(--accent);
}

.form-group.has-error .form-input {
    border-color: var(--accent);
}

.form-error {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

.form-group {
    position: relative;
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
}

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

.form-input:focus {
    outline: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    transition: background var(--duration-normal) var(--ease-out);
}

.form-input:focus ~ .input-line {
    background: var(--accent);
}

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

/* === Footer === */
.footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-copyright,
.footer-location,
.footer-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

@keyframes revealWord {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all var(--duration-slow) var(--ease-out);
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-normal) var(--ease-out);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button Effect */
.magnetic {
    transition: transform var(--duration-fast) var(--ease-out);
}

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

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .hero-visual {
        width: 80%;
        opacity: 0.4;
    }

    .projects-grid {
        gap: 1rem;
    }

    .about-grid {
        gap: var(--space-lg);
    }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
    html, body {
        cursor: auto;
        overflow-x: hidden;
    }

    button {
        cursor: pointer;
    }

    .cursor {
        display: none;
    }

    .nav {
        padding: 0 var(--space-md);
    }

    .nav-links {
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero {
        padding: var(--space-lg) var(--space-md);
        padding-top: calc(var(--nav-height) + var(--space-lg));
    }

    .hero-visual {
        width: 100%;
        opacity: 0.3;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .hero-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

    .hero-scroll {
        display: none;
    }

    .work-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .section-label {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .section-label .label-text {
        font-size: 1.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-featured,
    .project-wide {
        grid-column: span 1;
    }

    /* Mobile: classic card layout (image top, info bottom) */
    .project-card {
        width: 100%;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        background: var(--bg-secondary);
    }

    .project-card:hover {
        transform: none;
        box-shadow: none;
    }

    .project-card:nth-child(-n+2) .project-image {
        aspect-ratio: 16/10;
    }

    .project-image {
        aspect-ratio: 16/10;
        border-radius: 14px 14px 0 0;
        flex-shrink: 0;
    }

    .project-card:hover .project-iframe-wrapper.static-preview img {
        transform: none;
        filter: none;
    }

    /* Info: static block below image, not overlay */
    .project-info {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        padding: 1rem 1.1rem 1.1rem;
        background: none;
        color: var(--text-primary);
    }

    .project-description,
    .project-badges,
    .project-cta {
        opacity: 1;
        transform: none;
    }

    .project-title {
        font-size: 1.15rem;
        gap: 0.4rem;
        color: var(--text-primary);
    }

    .project-title svg {
        width: 18px;
        height: 18px;
    }

    .project-categories {
        gap: 0.35rem;
        margin-bottom: 0.5rem;
    }

    .category-tag {
        font-size: 0.6rem;
        padding: 0.35rem 0.6rem;
        background: var(--accent);
        color: var(--bg-primary);
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .project-description {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        color: var(--text-secondary);
    }

    .project-badges {
        gap: 0.35rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.6rem;
        background: var(--bg-tertiary);
        color: var(--text-primary);
        border-color: var(--border);
    }

    .badge svg {
        width: 12px;
        height: 12px;
    }

    .project-cta {
        font-size: 0.8rem;
        color: var(--accent);
    }

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

    .projects-load-more {
        width: 48px;
        height: 48px;
    }

    .load-more-icon {
        font-size: 1.5rem;
    }

    .projects-blur-hint {
        height: 100px;
        margin-top: -100px;
    }

    .projects-load-more {
        margin-top: -24px;
    }

    .about {
        padding: var(--space-xl) var(--space-md);
        overflow-x: hidden;
    }

    .about-content {
        overflow: hidden;
    }

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

    .about-socials-standalone {
        flex-direction: row;
        justify-content: center;
        margin-top: var(--space-lg);
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    /* === SECTION À PROPOS EN MOBILE : JUSTE INFORMATIF === */
    .about {
        padding: var(--space-lg) var(--space-md);
    }

    .about .section-header {
        margin-bottom: var(--space-md);
    }

    .problems-solved {
        max-width: 100%;
        margin-bottom: 0;
    }

    .problems-list li {
        border-bottom: 1px solid var(--border);
    }

    /* Désactiver les clics - juste informatif */
    .problem-link {
        pointer-events: none;
        cursor: default;
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-sm) 0;
    }

    /* Pas de +/- */
    .problem-link::after {
        display: none !important;
    }

    /* Pas de hover */
    .problem-link:hover {
        padding-left: 0 !important;
    }

    .problem-link:hover .problem {
        color: var(--text-secondary) !important;
    }

    /* Cacher complètement le preview */
    .problem-preview {
        display: none !important;
    }

    /* Texte problème */
    .problem {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
    }

    /* Texte solution en accent */
    .solution {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--accent);
    }

        font-size: 2rem;
    }

    .game-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .contact {
        padding: var(--space-xl) var(--space-md);
    }

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

    .footer {
        padding: var(--space-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* Small Mobile: < 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

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

    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   HAMBURGER & MOBILE MENU
   ============================================ */

/* Nav right container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger - caché en desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-modal) + 10);
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    position: absolute;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-8px);
}

.hamburger-line:nth-child(2) {
    transform: translateY(0);
}

.hamburger-line:nth-child(3) {
    transform: translateY(8px);
}

/* Hamburger ouvert = X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay - Animation unique */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    pointer-events: none;
    border: none !important;
    outline: none !important;
}

.mobile-menu.active {
    pointer-events: auto;
}

/* Backdrop avec blur progressif */
.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.mobile-menu.active .mobile-menu-backdrop {
    opacity: 1;
    backdrop-filter: blur(8px);
}

.no-backdrop .mobile-menu-backdrop,
.no-backdrop .mobile-menu.active .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: none;
}

/* Panel fullscreen avec animation scale + fade */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    border: none !important;
    outline: none !important;
}

.no-backdrop .mobile-menu-panel {
    background: var(--bg-primary);
}

.mobile-menu.active .mobile-menu-panel {
    opacity: 1;
}

/* Header du menu */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.mobile-menu-logo {
    display: inline-flex;
    align-items: center;
}

.mobile-brand-svg {
    width: 160px;
    height: auto;
}

.mobile-brand-svg > text {
    fill: #ffffff;
}

/* Bouton close avec animation X */
.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-close:active {
    transform: scale(0.95);
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-menu-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-close:active span {
    background: #fff;
}

/* Navigation du menu */
.mobile-menu-nav {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Items de navigation avec animation stagger */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.active .mobile-nav-item {
    opacity: 1;
    transform: translateX(0);
}

/* Nav items - liste XXL */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation */
.mobile-menu.active .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { transition-delay: 0.15s; }

.mobile-nav-item:active {
    background: var(--bg-secondary);
    transform: scale(0.98) !important;
}

.mobile-nav-item svg {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Boutons sociaux */
.mobile-menu-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-socials {
    opacity: 1;
}

.mobile-social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-social-btn:active {
    transform: scale(0.95);
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-social-btn:active svg {
    color: #fff;
}

.mobile-social-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

/* Divider */
.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* Mobile: afficher hamburger, cacher nav-links */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }

    .lang-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }

    .mobile-menu {
        display: block;
    }

    /* Nav transparent par défaut en mobile - juste Hebora + toggle */
    .nav {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Fallback blur : fond opaque pour éviter la transparence dans les WebView */
    .no-backdrop .nav {
        background: rgba(10, 10, 10, 0.95) !important;
    }

    /* Hamburger caché par défaut */
    .hamburger {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    /* Quand scrolled : tout apparaît */
    .nav.scrolled {
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    .nav.scrolled .hamburger {
        opacity: 1;
        pointer-events: auto;
    }

    /* Body locked quand menu ouvert */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open.menu-lock {
        position: fixed;
        width: 100%;
    }
}

/* ==========================================
   SERVICE MODAL - Premium Design
   ========================================== */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop with blur */
.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Container for centering */
.service-modal-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal.active .service-modal-container {
    transform: scale(1) translateY(0);
}

/* Content card */
.service-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: var(--space-lg);
    overflow: hidden;
}

/* Animated gradient background */
.modal-gradient-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    opacity: 0.4;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 200px;
    height: 200px;
    background: #10b981;
    bottom: -50px;
    left: -50px;
    opacity: 0.3;
    animation-delay: -3s;
}

.gradient-orb-3 {
    width: 150px;
    height: 150px;
    background: #047857;
    top: 50%;
    left: 50%;
    opacity: 0.2;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(10px, -15px) scale(1.05);
    }
    50% {
        transform: translate(-5px, 10px) scale(0.95);
    }
    75% {
        transform: translate(-15px, -5px) scale(1.02);
    }
}

/* Close button */
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal header */
.modal-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: var(--space-md);
}

.modal-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Modal body */
.modal-body {
    position: relative;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* Features grid - 3x2 layout */
.modal-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    padding: 0.875rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.modal-features li:hover {
    border-color: var(--accent);
    background: rgba(5, 150, 105, 0.2);
}

.modal-features li svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.modal-features li span {
    line-height: 1.3;
}

/* Modal footer */
.modal-footer {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    color: #0a0a0a !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-cta svg {
    color: #0a0a0a !important;
    stroke: #0a0a0a !important;
}

.modal-cta:hover {
    background: #10b981;
    transform: translateY(-2px);
}

.modal-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.modal-cta:hover svg {
    transform: translateX(3px);
}

/* Body lock when modal open */
body.modal-open {
    overflow: hidden;
}

/* Responsive - Mobile slide-up */
@media (max-width: 768px) {
    .service-modal {
        padding: 1rem;
        align-items: center;
    }

    .service-modal-container {
        max-width: 100%;
        max-height: 80vh;
        transform: scale(0.95) translateY(30px);
    }

    .service-modal.active .service-modal-container {
        transform: scale(1) translateY(0);
    }

    .service-modal-content {
        border-radius: 20px;
        padding: 1.25rem;
    }

    .modal-header {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .modal-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .modal-icon svg {
        width: 22px;
        height: 22px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }

    .modal-close svg {
        width: 16px;
        height: 16px;
    }

    .modal-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .modal-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .modal-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .modal-features li {
        padding: 0.625rem 0.375rem;
        font-size: 0.65rem;
        gap: 0.375rem;
    }

    .modal-features li svg {
        width: 16px;
        height: 16px;
    }

    .modal-footer {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .modal-cta {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .modal-cta svg {
        width: 18px;
        height: 18px;
    }

    /* Smaller gradient orbs */
    .gradient-orb-1 {
        width: 150px;
        height: 150px;
    }

    .gradient-orb-2 {
        width: 100px;
        height: 100px;
    }

    .gradient-orb-3 {
        width: 80px;
        height: 80px;
    }
}

/* Service cards as buttons - reset button styles */
button.service-card-large {
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

button.service-card-large:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* === Mobile Approach Steps Accordion === */
@media (max-width: 768px) {
    /* Step title becomes clickable toggle */
    .step-accordion .step-title {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-sm);
    }

    .step-accordion .step-title:active {
        opacity: 0.7;
    }

    /* +/- indicator */
    .step-toggle-icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 300;
        line-height: 1;
        color: var(--accent);
        border: 1px solid var(--border-hover);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .step-open .step-toggle-icon {
        background: var(--accent);
        color: #0a0a0a;
        border-color: var(--accent);
    }

    /* Hide description by default */
    .step-accordion .step-description {
        display: none;
    }

    /* Show description when open */
    .step-accordion.step-open .step-description {
        display: block;
    }
}
