/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

body.loaded {
    overflow: auto;
}

/* ==========================================
   LOADER
   ========================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.loader.fade-out {
    opacity: 0;
    transform: translateY(-100%);
}

.loader-inner {
    text-align: center;
}

.loader-text {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.2rem;
}

.letter, .dot {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: letterDrop 0.6s ease forwards;
}

.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }
.dot { animation-delay: 0.6s; color: #00ff88; }
.letter:nth-child(7) { animation-delay: 0.7s; }
.letter:nth-child(8) { animation-delay: 0.8s; }
.letter:nth-child(9) { animation-delay: 0.9s; }

@keyframes letterDrop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-progress {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    width: 0;
    animation: progressLoad 2s ease forwards;
}

@keyframes progressLoad {
    to { width: 100%; }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.95);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.logo-dot {
    color: #00ff88;
    font-size: 2rem;
    line-height: 1;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 1.5rem;
    z-index: 2;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-link:hover {
    color: #00ff88;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

/* Remove old pseudo-elements */
.nav-link::before,
.nav-link::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

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

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

/* Stats circulaires animées */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stat-circle:hover {
    transform: scale(1.1);
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.progress-ring-circle {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    fill: transparent;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease-in-out;
}

.stat-circle:nth-child(1) .progress-ring-circle {
    stroke: #00ff88;
    animation: fillCircle1 3s ease-in-out forwards;
    animation-delay: 0.5s;
}

.stat-circle:nth-child(2) .progress-ring-circle {
    stroke: #00ccff;
    animation: fillCircle2 3s ease-in-out forwards;
    animation-delay: 1s;
}

.stat-circle:nth-child(3) .progress-ring-circle {
    stroke: #ffffff;
    animation: fillCircle3 3s ease-in-out forwards;
    animation-delay: 1.5s;
}

.stat-content {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    opacity: 0;
    animation: fadeInNumber 1s ease forwards;
}

.stat-circle:nth-child(1) .stat-number {
    animation-delay: 1.5s;
    color: #00ff88;
}

.stat-circle:nth-child(2) .stat-number {
    animation-delay: 2s;
    color: #00ccff;
}

.stat-circle:nth-child(3) .stat-number {
    animation-delay: 2.5s;
    color: #ffffff;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
    opacity: 0;
    animation: fadeInNumber 1s ease forwards;
}

.stat-circle:nth-child(1) .stat-label { animation-delay: 1.8s; }
.stat-circle:nth-child(2) .stat-label { animation-delay: 2.3s; }
.stat-circle:nth-child(3) .stat-label { animation-delay: 2.8s; }

@keyframes fillCircle1 {
    to {
        stroke-dashoffset: 16.96;
    }
}

@keyframes fillCircle2 {
    to {
        stroke-dashoffset: 40.71;
    }
}

@keyframes fillCircle3 {
    to {
        stroke-dashoffset: 27.14;
    }
}

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

/* Texte en mouvement - VERSION FINALE */
.hero-scroll-text {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.scroll-line {
    display: flex;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollRight 25s linear infinite;
}

.scroll-line-2 {
    animation: scrollLeft 30s linear infinite;
    color: rgba(255, 255, 255, 0.3);
}

.scroll-line-3 {
    animation: scrollRight 35s linear infinite;
    color: rgba(255, 255, 255, 0.35);
}

@keyframes scrollRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Effet de fondu sur les bords */
.hero-scroll-text::before,
.hero-scroll-text::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-scroll-text::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,0.8) 40%, transparent 100%);
}

.hero-scroll-text::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(10,10,10,0.8) 60%, #0a0a0a 100%);
}

.scroll-line-1 {
    animation-duration: 25s;
}

.scroll-line-2 {
    animation-duration: 30s;
    animation-direction: reverse;
}

.scroll-line-3 {
    animation-duration: 35s;
}

.scroll-line span {
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.scroll-line span:hover {
    color: rgba(255, 255, 255, 1);
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-scroll-text {
        gap: 1rem;
    }
    
    .scroll-line {
        font-size: 1rem;
    }
}

/* GSAP Animation Container V2 */
.gsap-container-v2 {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: crosshair;
}

/* Canvas pour particules */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Formes morphiques */
.morph-shape {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0;
    z-index: 2;
}

.morph-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0,255,136,0.5));
}

.shape-1 {
    top: 15%;
    left: 15%;
}

.shape-2 {
    top: 60%;
    right: 20%;
}

.shape-3 {
    bottom: 25%;
    left: 25%;
}

/* Lignes connectrices */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connect-path {
    stroke-dasharray: 20 10;
    opacity: 0;
}



/* GSAP Container V3 - Animation riche avec débordement naturel */
.gsap-container-v3 {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    overflow: visible;
    pointer-events: none;
}

/* Orbes flottants avec glow */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    filter: blur(0.5px);
    pointer-events: none;
}

.orb-1 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0,255,136,0.4), rgba(0,255,136,0.1));
    top: 25%;
    left: 15%;
    box-shadow: 0 0 40px rgba(0,255,136,0.3);
}

.orb-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,204,255,0.3), rgba(0,204,255,0.1));
    top: 55%;
    right: 10%;
    box-shadow: 0 0 50px rgba(0,204,255,0.2);
}

.orb-3 {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
    bottom: 30%;
    left: 25%;
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.orb-4 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(0,255,136,0.5), rgba(0,255,136,0.15));
    top: 40%;
    right: 35%;
    box-shadow: 0 0 25px rgba(0,255,136,0.25);
}

.orb-5 {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(0,204,255,0.35), rgba(0,204,255,0.08));
    bottom: 15%;
    right: 45%;
    box-shadow: 0 0 35px rgba(0,204,255,0.18);
}

.orb-6 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0,255,136,0.3), rgba(0,255,136,0.08));
    top: 10%;
    right: 20%;
    box-shadow: 0 0 28px rgba(0,255,136,0.2);
}

.orb-7 {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(255,255,255,0.04));
    bottom: 45%;
    left: 8%;
    box-shadow: 0 0 38px rgba(255,255,255,0.12);
}

/* Éléments géométriques */
.geo-element {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.geo-triangle {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 55%;
}

.geo-hexagon {
    width: 90px;
    height: 90px;
    bottom: 25%;
    left: 5%;
}

.geo-diamond {
    width: 60px;
    height: 60px;
    top: 45%;
    right: 8%;
}

.geo-circle {
    width: 70px;
    height: 70px;
    top: 75%;
    left: 70%;
}

.geo-square {
    width: 50px;
    height: 50px;
    top: 5%;
    left: 40%;
}

/* Réseau de connexions */
.connection-web {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.web-path {
    stroke-dasharray: 200%;
    stroke-dashoffset: 200%;
}

.connection-nodes .node {
    opacity: 0;
    transform-origin: center;
}

/* Particules secondaires (sparks) */
.secondary-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0,255,136,0.8);
    border-radius: 50%;
    opacity: 0;
}

.spark-1 { top: 20%; left: 30%; background: rgba(0,255,136,0.8); }
.spark-2 { top: 70%; left: 70%; background: rgba(0,204,255,0.7); }
.spark-3 { top: 40%; right: 25%; background: rgba(255,255,255,0.6); }
.spark-4 { bottom: 25%; left: 50%; background: rgba(0,255,136,0.7); }
.spark-5 { top: 80%; right: 35%; background: rgba(0,204,255,0.6); }
.spark-6 { top: 15%; right: 45%; background: rgba(255,255,255,0.5); }

/* Responsive amélioré pour animations */
@media (max-width: 768px) {
    .gsap-container-v3 {
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
    }
    
    .floating-orb {
        transform: scale(0.6);
    }
    
    .geo-element {
        transform: scale(0.7);
    }
    
    .connection-web {
        transform: scale(0.8);
        opacity: 0.7;
    }
    
    .secondary-particles {
        opacity: 0.6;
    }
    
    /* Réajustement positions mobile */
    .orb-1 { top: 20%; left: 10%; }
    .orb-2 { top: 65%; right: 5%; }
    .orb-3 { bottom: 25%; left: 15%; }
    .orb-4 { top: 45%; right: 25%; }
    .orb-5 { bottom: 10%; right: 35%; }
}

@media (max-width: 480px) {
    .gsap-container-v3 {
        top: -5%;
        left: -5%;
        width: 110%;
        height: 110%;
    }
    
    .floating-orb {
        transform: scale(0.5);
    }
    
    .geo-element {
        transform: scale(0.6);
    }
    
    .connection-web {
        opacity: 0.4;
    }
    
    .secondary-particles {
        opacity: 0.3;
    }
}

/* Design épuré - focus sur les animations visuelles */

/* Éléments flottants */
.floating-element {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0;
}

.inner-shape {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 204, 255, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.element-1 {
    top: 15%;
    left: 10%;
}

.element-2 {
    top: 60%;
    right: 15%;
}

.element-3 {
    bottom: 20%;
    left: 20%;
}

.element-4 {
    top: 30%;
    right: 25%;
}

/* Cercles d'ondulation */
.ripple-circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Texte central */
.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.text-line {
    font-size: 1.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    margin: 5px 0;
    opacity: 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.line-1 {
    font-size: 1rem;
    color: rgba(0, 255, 136, 0.8);
}

.line-2 {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 1);
}

.line-3 {
    font-size: 1rem;
    color: rgba(0, 204, 255, 0.8);
}

/* Responsive pour GSAP */
@media (max-width: 768px) {
    .gsap-container {
        height: 400px;
    }
    
    .floating-element {
        width: 80px;
        height: 80px;
    }
    
    .text-line {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .line-2 {
        font-size: 1.2rem;
    }
    
    .circle-1 { width: 150px; height: 150px; }
    .circle-2 { width: 200px; height: 200px; }
    .circle-3 { width: 250px; height: 250px; }
}

/* Effet de pulsation pour certains orbes */
.orb-1, .orb-3, .orb-5 {
    animation-name: floatPulse;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(5px) scale(1.05);
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-orbs {
        height: 300px;
    }
    
    .orb {
        transform: scale(0.7);
    }
}

/* Stats circulaires animées */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stat-circle:hover {
    transform: scale(1.1);
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.progress-ring-circle {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    fill: transparent;
    stroke-dasharray: 339.292; /* 2 * PI * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease-in-out;
}

/* Couleurs différentes pour chaque cercle */
.stat-circle:nth-child(1) .progress-ring-circle {
    stroke: #00ff88;
    animation: fillCircle1 3s ease-in-out forwards;
    animation-delay: 0.5s;
}

.stat-circle:nth-child(2) .progress-ring-circle {
    stroke: #00ccff;
    animation: fillCircle2 3s ease-in-out forwards;
    animation-delay: 1s;
}

.stat-circle:nth-child(3) .progress-ring-circle {
    stroke: #ffffff;
    animation: fillCircle3 3s ease-in-out forwards;
    animation-delay: 1.5s;
}

.stat-content {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    opacity: 0;
    animation: fadeInNumber 1s ease forwards;
}

.stat-circle:nth-child(1) .stat-number {
    animation-delay: 1.5s;
    color: #00ff88;
}

.stat-circle:nth-child(2) .stat-number {
    animation-delay: 2s;
    color: #00ccff;
}

.stat-circle:nth-child(3) .stat-number {
    animation-delay: 2.5s;
    color: #ffffff;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
    opacity: 0;
    animation: fadeInNumber 1s ease forwards;
}

.stat-circle:nth-child(1) .stat-label { animation-delay: 1.8s; }
.stat-circle:nth-child(2) .stat-label { animation-delay: 2.3s; }
.stat-circle:nth-child(3) .stat-label { animation-delay: 2.8s; }

/* Animations pour remplir les cercles */
@keyframes fillCircle1 {
    to {
        stroke-dashoffset: 16.96; /* 339.292 - (339.292 * 0.95) */
    }
}

@keyframes fillCircle2 {
    to {
        stroke-dashoffset: 40.71; /* 339.292 - (339.292 * 0.88) */
    }
}

@keyframes fillCircle3 {
    to {
        stroke-dashoffset: 27.14; /* 339.292 - (339.292 * 0.92) */
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-circle {
        transform: scale(0.8);
    }
    
    .stat-circle:hover {
        transform: scale(0.9);
    }
}

/* Dégradé simple au bas du hero pour liaison avec services */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 30%,
        rgba(10, 10, 10, 0.1) 60%,
        rgba(12, 12, 12, 0.3) 80%,
        rgba(14, 14, 14, 0.6) 90%,
        #0a0a0a 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 204, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 136, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 204, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -100px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    /* Animation gérée par GSAP */
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.word {
    display: block;
    opacity: 0;
    transform: translateX(-50px);
    /* Pas d'animation CSS - GSAP gère tout */
}

.word:nth-child(1) { 
    animation-delay: 0.8s; 
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fallback pour les navigateurs qui ne supportent pas background-clip */
@supports not (-webkit-background-clip: text) {
    .word:nth-child(1) {
        color: #ffffff !important;
    }
}
.word:nth-child(2) { 
    animation-delay: 1.1s;
    color: #00ff88;
    background: linear-gradient(135deg, #00ff88, #00ccaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@supports not (-webkit-background-clip: text) {
    .word:nth-child(2) {
        color: #00ff88 !important;
    }
}
.word:nth-child(3) { 
    animation-delay: 1.4s;
    color: #00ccff;
    background: linear-gradient(135deg, #00ccff, #0099cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@supports not (-webkit-background-clip: text) {
    .word:nth-child(3) {
        color: #00ccff !important;
    }
}

/* slideInLeft supprimé - GSAP gère l'animation */

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

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    /* Animation gérée par GSAP */
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    /* Animation gérée par GSAP */
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #0a0a0a;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: absolute;
    width: 150px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: cardFloat 1s ease forwards, floating 3s ease-in-out infinite;
}

.hero-card.delay-1 { animation-delay: 2.3s, 2.3s; }
.hero-card.delay-2 { animation-delay: 2.6s, 2.6s; }

.hero-card:nth-child(1) { 
    top: 20%; 
    left: 20%; 
    animation-delay: 2s;
}
.hero-card:nth-child(2) { 
    top: 50%; 
    right: 10%; 
    animation-delay: 2.3s;
}
.hero-card:nth-child(3) { 
    bottom: 30%; 
    left: 30%; 
    animation-delay: 2.6s;
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.card-content {
    text-align: center;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Animation gérée par GSAP */
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.05);
}
.scroll-content{
      display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .scroll-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.title-number {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.title-text {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.services-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #00ff88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 255, 0.2));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
}

.service-list li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Services Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */

.portfolio-section {
    padding: 4rem 0;
    background: #0a0a0a;
    max-height: 100vh;
    overflow: hidden;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #00ff88;
    color: #ffffff;
    background: rgba(0, 255, 136, 0.1);
}

.portfolio-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    position: relative;
}

.portfolio-grid:active {
    cursor: grabbing;
}

.portfolio-grid::before,
.portfolio-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.portfolio-grid::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
}

.portfolio-grid::after {
    right: 0;
    background: linear-gradient(270deg, #0a0a0a 0%, transparent 100%);
}

.portfolio-track {
    display: flex;
    gap: 1.5rem;
    animation: portfolioScroll 30s linear infinite;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.portfolio-track:hover {
    animation-play-state: paused;
}

.portfolio-grid:hover .portfolio-track {
    animation-play-state: paused;
}

/* Navigation Arrows */
.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portfolio-nav:hover {
    background: rgba(0, 255, 136, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-nav-left {
    left: 20px;
}

.portfolio-nav-right {
    right: 20px;
}

/* Boutons mobiles sous le carousel */
.mobile-nav-bottom {
    display: none;
}

@media (max-width: 768px) {
    /* Masquer les flèches desktop */
    .portfolio-nav {
        display: none;
    }
    
    .mobile-nav-bottom {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin-top: 20px;
    }
    
    .mobile-nav-btn {
        width: 120px;
        height: 40px;
        background: rgba(0, 255, 136, 0.8);
        border: none;
        border-radius: 8px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .mobile-nav-btn:hover {
        background: rgba(0, 255, 136, 1);
    }
}

@keyframes portfolioScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Scrollbar horizontale personnalisée pour Webkit */
.portfolio-grid::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.portfolio-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.portfolio-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 10px;
}

.portfolio-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #00ccff, #00ff88);
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    flex: 0 0 280px;
    min-width: 280px;
    opacity: 1;
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 25px 50px rgba(0, 255, 136, 0.15);
    background: rgba(0, 255, 136, 0.02);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(0.3);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 255, 136, 0.9) 0%,
        rgba(0, 204, 255, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

/* Portfolio Responsive */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 2rem 0;
    }
    
    .portfolio-grid::before,
    .portfolio-grid::after {
        width: 60px;
    }
    
    .portfolio-track {
        gap: 1rem;
        animation-duration: 40s;
    }
    
    .project-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .project-image {
        height: 140px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .project-card:hover {
        transform: translateY(-3px);
    }
    
    /* Centrer la première carte */
    .portfolio-track {
        padding-left: calc(50vw - 140px);
    }
}

@media (max-width: 480px) {
    .portfolio-grid::before,
    .portfolio-grid::after {
        width: 40px;
    }
    
    .portfolio-track {
        animation-duration: 50s;
    }
    
    .project-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .project-image {
        height: 140px;
    }
}

.work {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work.hidden-item {
    display: none;
}

.work.show {
    display: flex;
    animation: workShow 0.5s ease forwards;
}

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

.work img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    background: #1a1a1a;
    filter: grayscale(1) brightness(0.8);
    transition: all 0.3s ease;
}

.work:hover img {
    filter: grayscale(0) brightness(1);
}

.work:hover {
    transform: scale(0.98) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.work-caption {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1.5rem 1.3rem;
    color: #00ff88;
    background: #1a1a1a;
    border-top: 3px solid #00ff88;
    min-height: 30px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.work-caption span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.link-no-style {
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-no-style:hover {
    text-decoration: none;
    color: inherit;
}

/* Old portfolio styles removed - using work-based design now */

.portfolio-toggle {
    text-align: center;
    margin-top: 4rem;
}

.toggle-btn {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 255, 0.2));
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #0a0a0a;
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.toggle-btn.expanded .btn-arrow {
    transform: rotate(180deg);
}

/* ==========================================
   CLIENTS SECTION
   ========================================== */

.clients-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
}

/* Carousel clients moderne avec fond blanc */
.clients-carousel {
    margin: 4rem 0 6rem;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
}

.clients-track {
    display: flex;
    animation: infiniteScroll 40s linear infinite;
    /* 18 logos total (9 x 2) * 220px (200px + 20px margin) */
    width: calc(220px * 18);
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se déplace exactement de la moitié (9 logos) pour créer l'effet infini */
        transform: translateX(calc(-220px * 9));
    }
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    margin-right: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    background: white;
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.client-logo img {
    max-width: 85%;
    max-height: 50px;
    /* Logos en noir et blanc par défaut */
    filter: grayscale(100%);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.client-logo:hover img {
    /* Couleur originale au hover */
    filter: grayscale(0%) ;
    transform: scale(1.1);
}

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

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 50%, #0a0a0a 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;


}

.highlight {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;


}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ff88;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    transition: width 0.3s ease;
}

.form-group input:focus + .form-line,
.form-group textarea:focus + .form-line {
    width: 100%;
}

.submit-btn {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    color: #0a0a0a;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    width: fit-content;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover .btn-bg {
    left: 100%;
}

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

.footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00ff88;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

@media (max-width: 1024px) {
    .hero-content {
        margin-top: 160px;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-track {
        width: calc(200px * 18);
        animation: infiniteScroll 35s linear infinite;
    }
    
    @keyframes infiniteScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 9)); }
    }
    
    .client-logo {
        width: 180px;
        height: 90px;
        margin-right: 20px;
        padding: 1.2rem;
    }
    
    .client-logo img {
        max-height: 45px;
        /* Sur tablette, logos en couleur par défaut (hover moins pratique) */
        filter: grayscale(0%) brightness(1) contrast(1);
    }
    
    /* Portfolio en couleur sur tablette aussi */
    .work img {
        filter: grayscale(0) brightness(1);
    }
    
    /* Réduction légère du padding sur tablette */
    .services-section,
    .portfolio-section,
    .clients-section,
    .contact-section {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .hero {
         
        min-height: calc(100vh - 170px);
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
    }
    
    /* Gradient fluide entre le header et le contenu */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(180deg, 
            rgba(10, 10, 10, 0.95) 0%, 
            rgba(10, 10, 10, 0.8) 30%, 
            rgba(10, 10, 10, 0.4) 60%, 
            transparent 100%
        );
        z-index: 1;
        pointer-events: none;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 2rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.3s ease;
    }
    
    .nav.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    .nav.active .nav-link:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-indicator {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
        margin-top: 1rem;
        line-height: 1.1;
    }
    
    .hero-text {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        min-height: 250px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 3rem;
        letter-spacing: 0.25rem;
        gap: 0.08rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-top: 0.5rem;
    }
    
    .hero {
      
        min-height: calc(100vh - 170px);
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .service-card,
    .contact-form {
        padding: 2rem;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .cta-primary,
    .cta-secondary {
        flex: 1;
        justify-content: center;
    }
    
    .clients-track {
        width: calc(170px * 18);
        animation: infiniteScroll 30s linear infinite;
    }
    
    @keyframes infiniteScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-170px * 9)); }
    }
    
    .client-logo {
        width: 150px;
        height: 75px;
        margin-right: 20px;
        padding: 1rem;
    }
    
    .client-logo img {
        max-height: 35px;
        /* Sur mobile, logos en couleur par défaut (pas de hover) */
        filter: grayscale(0%) brightness(1) contrast(1);
    }
    
    .clients-carousel {
        padding: 1.5rem 0;
    }
    
    /* Portfolio en couleur sur mobile */
    .work img {
        filter: grayscale(0) brightness(1);
    }
    
    /* Réduction padding sections sur mobile (sauf hero) */
    .services-section,
    .portfolio-section,
    .clients-section,
    .contact-section {
        padding: 4rem 0;
    }
    .contact-title{
                text-align: center;
    }
    .contact-description{
                text-align: center;
    }

    

}