.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100); /* Fix iOS 100vh bug */
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* =========================
   WOW BACKGROUND LAYERS - ULTRA PREMIUM BLUE
   ========================= */
:root{
  --hm-glow: rgba(0,102,255,.35);
  --hm-glow-2: rgba(0,212,255,.45);
  --hm-glow-3: rgba(0,26,255,.30);
  --electric-blue: #00d4ff;
  --deep-blue: #0066ff;
  --ultra-blue: #001aff;
}

.noise-bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.aurora-bg{
  position: fixed;
  inset: -20vh -20vw;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 60vw at 15% 20%, var(--hm-glow-2), transparent 50%),
    radial-gradient(60vw 60vw at 85% 15%, var(--hm-glow), transparent 50%),
    radial-gradient(55vw 55vw at 60% 85%, rgba(0,212,255,.25), transparent 52%),
    radial-gradient(45vw 45vw at 35% 75%, rgba(0,26,255,.22), transparent 55%),
    radial-gradient(70vw 70vw at 50% 50%, rgba(0,102,255,.18), transparent 58%),
    radial-gradient(65vw 65vw at 75% 40%, rgba(0,180,255,.20), transparent 60%);
  filter: blur(20px);
  opacity: 1;
  transform: translate3d(0,0,0);
  animation: auroraMove 14s ease-in-out infinite alternate;
}

@keyframes auroraMove{
  0%{ transform: translate3d(-1.5vw, -1vh, 0) scale(1); }
  100%{ transform: translate3d(1.5vw, 1vh, 0) scale(1.05); }
}

.wow-sparkles{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 22% 68%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 38% 32%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 56% 22%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 72% 54%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 88% 28%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 82% 82%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 18% 88%, rgba(255,255,255,.75), transparent 60%);
  background-size: 100% 100%;
  animation: sparkleTwinkle 5s ease-in-out infinite;
}

@keyframes sparkleTwinkle{
  0%,100%{ opacity: .35; filter: blur(.2px); transform: translateY(0); }
  50%{ opacity: .7; filter: blur(.6px); transform: translateY(-2px); }
}

.floating-orbs{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-orbs .orb{
  position: absolute;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 999px;
  filter: blur(12px);
  opacity: .15;
  transform: translate3d(0,0,0);
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,.75), rgba(0,212,255,0) 55%),
              radial-gradient(circle at 60% 70%, rgba(0,102,255,.65), rgba(0,102,255,0) 58%),
              radial-gradient(circle at 40% 50%, rgba(0,26,255,.55), rgba(0,26,255,0) 62%);
  animation: floatOrb 12s ease-in-out infinite;
  box-shadow: 0 0 100px rgba(0,212,255,0.4), 0 0 200px rgba(0,102,255,0.3);
}

.floating-orbs .orb-1{ top: -12%; left: -10%; animation-duration: 13s; }
.floating-orbs .orb-2{ top: 10%; right: -14%; animation-duration: 15s; opacity: .14; }
.floating-orbs .orb-3{ bottom: -18%; left: 20%; animation-duration: 14s; opacity: .12; }
.floating-orbs .orb-4{ bottom: 10%; right: 10%; width: min(34vw, 340px); height: min(34vw, 340px); animation-duration: 11s; opacity: .13; }
.floating-orbs .orb-5{ top: 42%; left: 55%; width: min(28vw, 280px); height: min(28vw, 280px); animation-duration: 10s; opacity: .10; }

@keyframes floatOrb{
  0%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(10px,-16px,0) scale(1.04); }
  100%{ transform: translate3d(-8px,10px,0) scale(1); }
}

/* Make sure main content stays above backgrounds */
body > :not(.noise-bg):not(.aurora-bg):not(.wow-sparkles):not(.floating-orbs):not(#pageLoader){
  position: relative;
  z-index: 1;
}

/* =========================
   PORTFOLIO WOW
   ========================= */
.portfolio-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 1.5rem;
  background: conic-gradient(from 180deg at 50% 50%, rgba(0,212,255,.45), rgba(0,102,255,.50), rgba(0,26,255,.40), rgba(0,180,255,.35), rgba(0,212,255,.45));
  opacity: 0;
  filter: blur(20px);
  transition: opacity .7s ease;
  z-index: -1;
}
.portfolio-card:hover::before{ opacity: 1; }

.portfolio-shine{
  background:
    radial-gradient(800px 260px at 20% 10%, rgba(0,212,255,.35), transparent 55%),
    radial-gradient(700px 260px at 80% 20%, rgba(0,102,255,.30), transparent 55%),
    linear-gradient(120deg, rgba(0,180,255,.22), transparent 50%);
  opacity: .7;
  mix-blend-mode: screen;
  transition: opacity .6s ease;
}
.portfolio-card:hover .portfolio-shine{ opacity: 1; }

.portfolio-glow{
  background:
    radial-gradient(480px 280px at 30% 30%, rgba(0,212,255,.35), transparent 55%),
    radial-gradient(520px 320px at 70% 60%, rgba(0,102,255,.30), transparent 58%),
    radial-gradient(600px 360px at 40% 80%, rgba(0,26,255,.25), transparent 60%);
  filter: blur(25px);
}

.cta-wow{
  position: relative;
  overflow: hidden;
}
.cta-wow::after{
  content:"";
  position:absolute;
  inset:-60%;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,.50), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(0,102,255,.45), transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(0,180,255,.40), transparent 55%);
  filter: blur(20px);
  transform: rotate(15deg);
  opacity: .7;
  animation: ctaGlow 4.2s ease-in-out infinite;
}
@keyframes ctaGlow{
  0%,100%{ transform: rotate(15deg) translate3d(-10px, 6px, 0); opacity:.55;}
  50%{ transform: rotate(15deg) translate3d(12px, -8px, 0); opacity:.85;}
}
.cta-spark{
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 20% 40%, rgba(0,0,0,.25), transparent 60%),
    radial-gradient(1px 1px at 60% 30%, rgba(0,0,0,.22), transparent 60%),
    radial-gradient(1px 1px at 80% 60%, rgba(0,0,0,.18), transparent 60%);
  opacity: .45;
  mix-blend-mode: multiply;
}

/* =========================
   HERO IMAGE WOW (optional)
   ========================= */
.hero-ai-bg{
  position:absolute;
  inset:-10%;
  z-index:-1;
  opacity:.55;
  filter: blur(0px) saturate(1.1);
  background-image: url("assets/img/ai-bg-hero.webp");
  background-size: cover;
  background-position: center;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 35%, rgba(0,0,0,0) 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 35%, rgba(0,0,0,0) 70%);
  mix-blend-mode: screen;
  pointer-events:none;
}

/* =========================
   ULTRA PREMIUM EXTRAS
   ========================= */

/* Particle Effect - floating dots */
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-20px) translateX(10px) scale(1.2); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(-15px) scale(1.1); opacity: 1; }
  75% { transform: translateY(-30px) translateX(5px) scale(0.9); opacity: 0.7; }
}

/* Blue glow pulsing effect */
@keyframes bluePulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0,102,255,0.3), 0 0 40px rgba(0,212,255,0.2), inset 0 0 20px rgba(0,102,255,0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0,102,255,0.6), 0 0 80px rgba(0,212,255,0.4), inset 0 0 30px rgba(0,102,255,0.2);
  }
}

/* Scanning line effect */
@keyframes scanLine {
  0% { top: -100%; opacity: 0.7; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.7; }
}

/* Shimmer moving effect */
@keyframes shimmerMove {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Text glow effect */
@keyframes textGlow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(0,212,255,0.5),
      0 0 20px rgba(0,102,255,0.3),
      0 0 30px rgba(0,212,255,0.2);
  }
  50% {
    text-shadow:
      0 0 20px rgba(0,212,255,0.8),
      0 0 40px rgba(0,102,255,0.6),
      0 0 60px rgba(0,212,255,0.4);
  }
}

/* Border glow animation */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(0,102,255,0.3);
    box-shadow: 0 0 15px rgba(0,102,255,0.2);
  }
  50% {
    border-color: rgba(0,212,255,0.6);
    box-shadow: 0 0 30px rgba(0,212,255,0.5), 0 0 60px rgba(0,102,255,0.3);
  }
}

/* Enhanced hover transitions for interactive elements */
.hover-glow-blue {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow-blue:hover {
  box-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(0,102,255,0.4);
  border-color: rgba(0,212,255,0.8) !important;
  transform: translateY(-2px);
}

/* ============================
   INTRO PARALLAX FULLSCREEN
   ============================ */

/* Conteneur principal de l'intro */
.parallax-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100); /* Fix iOS 100vh bug */
    overflow: hidden;
    background: transparent !important; /* Transparent pour voir les couches */
    background-color: transparent !important;
    pointer-events: none; /* Permet le scroll à travers */
    z-index: 9999; /* Au-dessus de tout */
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    will-change: opacity;
}

/* État: intro disparaît après le scroll */
.parallax-intro.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

/* Chaque couche parallax */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1200vh; /* Hauteur augmentée pour desktop - parallax 2x plus long */
    background-size: contain; /* Contain pour voir l'image complète */
    background-position: top center; /* Top pour voir depuis le haut */
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Optimisation rendering */
    -webkit-backface-visibility: hidden;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Images pour chaque couche (ordre inversé: 9 au fond, 1 au premier plan) */
.parallax-layer[data-layer="9"] {
    background-image: url('assets/parralax_asset/couche9.png');
    z-index: 10;
}

.parallax-layer[data-layer="8"] {
    background-image: url('assets/parralax_asset/couche8.png');
    z-index: 20;
}

.parallax-layer[data-layer="7"] {
    background-image: url('assets/parralax_asset/couche7.png');
    z-index: 30;
}

.parallax-layer[data-layer="6"] {
    background-image: url('assets/parralax_asset/couche6.png');
    z-index: 40;
}

.parallax-layer[data-layer="5"] {
    background-image: url('assets/parralax_asset/couche5.png');
    z-index: 50;
}

.parallax-layer[data-layer="4"] {
    background-image: url('assets/parralax_asset/couche4.png');
    z-index: 60;
}

/* Logo HandMotion: z-index: 65 (défini inline dans HTML - entre couche 4 et 3) */

.parallax-layer[data-layer="3"] {
    background-image: url('assets/parralax_asset/couche3.png');
    z-index: 70;
}

.parallax-layer[data-layer="2"] {
    background-image: url('assets/parralax_asset/couche2.png');
    z-index: 80;
}

.parallax-layer[data-layer="1"] {
    background-image: url('assets/parralax_asset/couche1.png');
    z-index: 90; /* Premier plan - au-dessus de tout */
}

/* Indicateur de scroll */
.scroll-indicator {
    position: fixed;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 100;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

.parallax-intro.hidden .scroll-indicator {
    opacity: 0;
}

/* Responsive: Adapter pour mobile */
@media (max-width: 768px) {
    /* Images mobiles optimisées depuis parralax_phone */
    .parallax-layer[data-layer="9"] {
        background-image: url('assets/parralax_phone/phone9.png');
    }

    .parallax-layer[data-layer="8"] {
        background-image: url('assets/parralax_phone/phone8.png');
    }

    .parallax-layer[data-layer="7"] {
        background-image: url('assets/parralax_phone/phone7.png');
    }

    .parallax-layer[data-layer="6"] {
        background-image: url('assets/parralax_phone/phone6.png');
    }

    .parallax-layer[data-layer="5"] {
        background-image: url('assets/parralax_phone/phone5.png');
    }

    .parallax-layer[data-layer="4"] {
        background-image: url('assets/parralax_phone/phone4.png');
    }

    .parallax-layer[data-layer="3"] {
        background-image: url('assets/parralax_phone/phone3.png');
    }

    .parallax-layer[data-layer="2"] {
        background-image: url('assets/parralax_phone/phone2.png');
    }

    .parallax-layer[data-layer="1"] {
        background-image: url('assets/parralax_phone/phone1.png');
        /* Étirer le bas pour couvrir les autres couches */
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: top center;
        position: relative;
    }

    /* Pseudo-élément pour étendre la couleur du bas de phone1 */
    .parallax-layer[data-layer="1"]::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 50%;
        background: linear-gradient(to bottom, transparent 0%, #000000 20%, #000000 100%);
        pointer-events: none;
    }

    .parallax-layer {
        background-size: 100% auto; /* Largeur fixée à 100% pour fit exactement */
        background-position: top center;
        height: 225vh; /* 180vh × 1.25 */
        overflow: hidden;
    }

    /* Container principal sur mobile - hauteur fixe avec fix iOS */
    .parallax-intro {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100); /* Fix iOS 100vh bug */
        overflow: hidden;
    }

    /* Logo compact pour mobile */
    .parallax-logo {
        width: 12rem !important;
    }

    /* Container du logo - position légèrement descendue */
    .logo-glow-container {
        top: 4rem !important;
    }

    /* Glow très réduit sur mobile */
    .logo-glow-container::before {
        width: 140%;
        height: 140%;
        filter: blur(30px);
    }

    .logo-glow-container:hover::before {
        width: 160%;
        height: 160%;
        filter: blur(40px);
    }

    /* Scroll indicator compact */
    .scroll-indicator {
        bottom: 2rem;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .parallax-layer {
        height: 1000vh; /* 800vh × 1.25 */
    }

    .parallax-layer[data-layer="1"] {
        position: relative;
    }

    /* Pseudo-élément pour étendre la couleur du bas de couche1 sur tablet */
    .parallax-layer[data-layer="1"]::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 50%;
        background: linear-gradient(to bottom, transparent 0%, #000000 20%, #000000 100%);
        pointer-events: none;
    }

    .parallax-logo {
        width: 20rem !important;
    }
}

/* Accessibilité: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .parallax-layer {
        transform: none !important;
    }

    .parallax-intro {
        transition: none !important;
    }

    .scroll-indicator {
        animation: none !important;
    }
}

/* ============================
   LOGO HANDMOTION GLOW FIX
   ============================ */

/* Container du logo avec position relative */
.logo-glow-container {
    position: absolute;
    display: block;
}

/* Glow circulaire diffus en arrière-plan */
.logo-glow-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(0, 212, 255, 0.9) 0%,
        rgba(0, 212, 255, 0.7) 15%,
        rgba(0, 212, 255, 0.5) 30%,
        rgba(0, 212, 255, 0.3) 45%,
        rgba(0, 212, 255, 0.15) 60%,
        transparent 75%
    );
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
    transition: all 0.3s ease-out;
}

/* Au survol, intensifier le glow */
.logo-glow-container:hover::before {
    width: 230%;
    height: 230%;
    filter: blur(90px);
    background: radial-gradient(
        circle at center,
        rgba(0, 212, 255, 1) 0%,
        rgba(0, 212, 255, 0.9) 15%,
        rgba(0, 212, 255, 0.7) 30%,
        rgba(0, 212, 255, 0.5) 45%,
        rgba(0, 212, 255, 0.3) 60%,
        transparent 75%
    );
}

/* Logo sans drop-shadow */
.parallax-logo {
    position: relative;
    z-index: 2;
    display: block;
}

/* =========================
   CONTACT MODAL PREMIUM WOW
   ========================= */

/* Modal visible state */
.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Backdrop */
.modal-backdrop {
    transition: opacity 0.5s ease;
}

/* Orbes flottants dans le modal */
.modal-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: modalOrbFloat 8s ease-in-out infinite;
}

.modal-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6), transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.modal-orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.5), transparent 70%);
    bottom: -80px;
    right: -80px;
    animation-delay: -3s;
}

.modal-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.4), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes modalOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

/* Glow border animé */
.modal-glow-border {
    background: conic-gradient(
        from 0deg,
        rgba(0, 212, 255, 0.8),
        rgba(0, 102, 255, 0.6),
        rgba(0, 26, 255, 0.4),
        rgba(0, 180, 255, 0.6),
        rgba(0, 212, 255, 0.8)
    );
    animation: modalBorderRotate 4s linear infinite;
    filter: blur(8px);
}

@keyframes modalBorderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scan line effect */
.modal-scanline::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        rgba(0, 212, 255, 0.2),
        rgba(0, 212, 255, 0.1),
        transparent
    );
    animation: modalScan 4s ease-in-out infinite;
}

@keyframes modalScan {
    0% { top: -100%; }
    50% { top: 100%; }
    50.01% { top: -100%; }
    100% { top: -100%; }
}

/* Icon glow */
.modal-icon-glow {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6), transparent 70%);
    filter: blur(20px);
    animation: modalIconPulse 2s ease-in-out infinite;
}

@keyframes modalIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0.9; }
}

/* Icon rings */
.modal-icon-ring {
    animation: modalRingPulse 2s ease-in-out infinite;
}

.modal-icon-ring-2 {
    animation: modalRingPulse 2s ease-in-out infinite 0.3s;
}

@keyframes modalRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Title shimmer */
@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Contact item shine */
.modal-item-shine {
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(0, 212, 255, 0.15) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
}

.modal-contact-item:hover .modal-item-shine {
    animation: modalItemShine 0.8s ease forwards;
}

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

/* CTA Button */
.modal-cta-bg {
    background: linear-gradient(135deg, var(--deep-blue), var(--electric-blue));
    transition: all 0.3s ease;
}

.modal-cta-btn:hover .modal-cta-bg {
    filter: brightness(1.2);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 80px rgba(0, 102, 255, 0.4);
}

.modal-cta-shine {
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: modalCtaShine 3s ease-in-out infinite;
}

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

/* =========================
   SECTION CTA BUTTONS
   ========================= */

.section-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(10px);
}

.section-cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: conic-gradient(
        from 0deg,
        rgba(0, 212, 255, 0.5),
        rgba(0, 102, 255, 0.3),
        rgba(0, 212, 255, 0.5)
    );
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.section-cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.section-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 102, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4), rgba(0, 212, 255, 0.3));
}

.section-cta-btn:hover::before {
    opacity: 1;
}

.section-cta-btn:hover::after {
    transform: translateX(100%);
}

.section-cta-btn .cta-icon {
    transition: transform 0.3s ease;
}

.section-cta-btn:hover .cta-icon {
    transform: translateX(4px);
}

/* Pulse animation pour attirer l'attention */
.section-cta-btn.pulse {
    animation: ctaBtnPulse 2s ease-in-out infinite;
}

@keyframes ctaBtnPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 102, 255, 0.4);
    }
}

/* =========================
   FLOATING CTA BUTTON
   ========================= */

.floating-cta-btn {
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 102, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.floating-cta-btn:hover {
    box-shadow:
        0 0 50px rgba(0, 212, 255, 0.8),
        0 0 100px rgba(0, 102, 255, 0.5),
        0 15px 50px rgba(0, 0, 0, 0.5);
}

.floating-cta-glow {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6), transparent 70%);
    filter: blur(15px);
    animation: floatingCtaPulse 2s ease-in-out infinite;
}

@keyframes floatingCtaPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 0.9; }
}

.floating-cta-ring {
    animation: floatingCtaRing 2s ease-in-out infinite;
}

@keyframes floatingCtaRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.floating-cta-bg {
    transition: all 0.3s ease;
}

.floating-cta-btn:hover .floating-cta-bg {
    filter: brightness(1.2);
}

/* Animation d'entrée du bouton flottant */
.floating-cta-btn {
    animation: floatingCtaEntry 0.6s ease-out 2s both;
}

@keyframes floatingCtaEntry {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tooltip au survol */
.floating-cta-btn::before {
    content: 'Contactez-nous';
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 8px 16px;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.floating-cta-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile: cacher le tooltip */
@media (max-width: 768px) {
    .floating-cta-btn::before {
        display: none;
    }

    .floating-cta-btn {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================
   RESPONSIVE PREMIUM - MOBILE & TABLET
   Optimisé pour une agence créative premium
   ========================================================== */

/* =============================================
   VARIABLES RESPONSIVE
   ============================================= */
:root {
    --mobile-padding: 1.25rem;
    --tablet-padding: 2rem;
    --section-gap-mobile: 4rem;
    --section-gap-tablet: 5rem;
}

/* =============================================
   SCROLL SMOOTH GLOBAL
   ============================================= */
html {
    scroll-behavior: smooth;
}

/* =============================================
   DETECTION JS: Classes ajoutees immediatement
   ============================================= */
.is-mobile-device .backdrop-blur-xl,
.is-mobile-device .backdrop-blur-2xl,
.is-mobile-device .backdrop-blur-md,
.is-mobile-device [class*="backdrop-blur"] {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* iOS specifique - GPU acceleration */
.is-ios-device * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* =============================================
   MOBILE PREMIUM (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

    /* === BASE RESET === */
    html {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100%;
        min-height: -webkit-fill-available;
        font-size: 15px;
    }

    /* === PARALLAX INTRO MOBILE === */
    .parallax-intro {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: transparent !important;
        pointer-events: auto !important;
        touch-action: none !important;
        z-index: 9999 !important;
        overflow: hidden !important;
    }

    .parallax-intro.hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -9999 !important;
        pointer-events: none !important;
    }

    /* Couches parallax mobiles - hauteur reduite */
    .parallax-layer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 250vh !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        will-change: transform !important;
    }

    /* Logo centré avec glow subtil */
    .logo-glow-container {
        position: fixed !important;
        top: 35% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease-out !important;
    }

    .parallax-intro.hidden .logo-glow-container {
        display: none !important;
    }

    .logo-glow-container::before {
        display: block !important;
        opacity: 0.4 !important;
        filter: blur(40px) !important;
        width: 150% !important;
        height: 150% !important;
    }

    /* Scroll indicator mobile - caché */
    .scroll-indicator {
        display: none !important;
    }

    .parallax-logo {
        width: 200px !important;
        max-width: 55vw !important;
    }

    /* Cacher le badge "02" dans expertise sur mobile */
    #expertise .font-mono {
        display: none !important;
    }

    /* === NAVBAR MOBILE PREMIUM === */
    nav {
        position: fixed !important;
        top: 0.75rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 92% !important;
        z-index: 9998 !important;
    }

    #navContainer {
        background: rgba(10, 10, 15, 0.92) !important;
        backdrop-filter: blur(20px) saturate(1.2) !important;
        -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 1.25rem !important;
    }

    /* Menu mobile ouvert */
    #mobileMenuContent {
        background: transparent !important;
    }

    #mobileMenuContent a {
        font-size: 1.1rem !important;
        padding: 0.5rem 0 !important;
    }

    /* === SITE CONTENT === */
    .site-content {
        padding-top: 0 !important;
    }

    /* === HERO SECTION MOBILE === */
    section.min-h-screen {
        min-height: auto !important;
        padding-top: 7rem !important;
        padding-bottom: 3rem !important;
    }

    /* Titre principal */
    h1.font-display {
        font-size: 2.75rem !important;
        line-height: 1 !important;
        margin-bottom: 1.25rem !important;
    }

    /* Sous-titre */
    .text-electric-blue.font-semibold {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Description hero */
    #work {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
    }

    /* CTA principal hero */
    #showreelTrigger {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Video showreel container */
    #showreelSection {
        margin-top: 2.5rem !important;
        margin-left: var(--mobile-padding) !important;
        margin-right: var(--mobile-padding) !important;
    }

    /* Video info bar */
    #showreelSection .p-4 {
        padding: 0.75rem !important;
    }

    /* === MARQUEE TEXT === */
    .animate-marquee span {
        font-size: 2rem !important;
        padding: 0 1rem !important;
    }

    .animate-marquee {
        animation: marquee 40s linear infinite !important;
    }

    /* === SECTION CONFIANCE (LOGOS) === */
    section.py-20.bg-black\/30 {
        padding: 3rem 0 !important;
    }

    section.py-20.bg-black\/30 h2 {
        font-size: 1.5rem !important;
    }

    section.py-20.bg-black\/30 p {
        font-size: 0.85rem !important;
    }

    .logos-slide img {
        height: 2.5rem !important;
    }

    .logos-marquee {
        gap: 2rem !important;
        animation-duration: 18s !important;
    }

    .logos-slide {
        gap: 2rem !important;
    }

    /* === SECTION APPROCHE === */
    #expertise {
        padding: 3rem var(--mobile-padding) !important;
    }

    #expertise h2 {
        font-size: 2rem !important;
    }

    #expertise > div > div.mb-16 {
        margin-bottom: 2rem !important;
    }

    /* Cards Approche */
    #expertise .grid > div {
        min-height: auto !important;
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    #expertise .grid > div h3 {
        font-size: 1.25rem !important;
    }

    /* Social video card */
    #expertise .grid > div:nth-child(2) {
        min-height: 400px !important;
    }

    /* === SECTION PORTFOLIO === */
    #realisations {
        padding: 3rem var(--mobile-padding) !important;
    }

    #realisations h2 {
        font-size: 1.75rem !important;
    }

    #realisations .grid {
        gap: 1.25rem !important;
    }

    .portfolio-card .p-6 {
        padding: 1rem !important;
    }

    .portfolio-card .text-lg {
        font-size: 1rem !important;
    }

    /* === SECTION SERVICES === */
    section.py-24.px-6 {
        padding: 3rem var(--mobile-padding) !important;
    }

    section.py-24.px-6 h2 {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    section.py-24.px-6 .grid {
        gap: 0.875rem !important;
    }

    section.py-24.px-6 .grid > div {
        padding: 1.25rem !important;
    }

    section.py-24.px-6 .grid > div h3 {
        font-size: 1.1rem !important;
    }

    section.py-24.px-6 .grid > div .text-4xl {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* === SECTION FAQ === */
    #agency {
        padding: 3rem var(--mobile-padding) !important;
    }

    #agency h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .accordion-btn {
        padding: 1rem !important;
    }

    .accordion-btn span:first-child {
        font-size: 0.95rem !important;
        padding-right: 2rem !important;
    }

    /* === SECTION CONTACT === */
    #contact {
        padding: 3rem var(--mobile-padding) !important;
    }

    #contact h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    #contact .text-xl {
        font-size: 1rem !important;
    }

    /* === FOOTER MOBILE === */
    footer {
        padding: 2rem var(--mobile-padding) !important;
    }

    footer > div {
        flex-direction: column !important;
        gap: 1.25rem !important;
        text-align: center !important;
    }

    footer .text-sm {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }

    footer .flex.gap-6 {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.75rem 1.5rem !important;
    }

    /* === CTA BUTTONS MOBILE === */
    .section-cta-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 320px !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 100 !important;
    }

    .section-cta-btn.pulse {
        animation: ctaBtnPulse 3s ease-in-out infinite !important;
    }

    /* === FLOATING CTA MOBILE === */
    .floating-cta-btn {
        position: fixed !important;
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        width: 54px !important;
        height: 54px !important;
        font-size: 1.5rem !important;
        z-index: 9990 !important;
        pointer-events: auto !important;
    }

    .floating-cta-btn::before {
        display: none !important;
    }

    .floating-cta-glow,
    .floating-cta-ring {
        display: none !important;
    }

    /* === MODAL CONTACT MOBILE === */
    .contact-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for mobile */
        z-index: 999999 !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }

    .contact-modal.active {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .contact-modal .modal-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .contact-modal .modal-content {
        margin: 1rem !important;
        max-height: 85vh !important;
        max-height: 85dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .modal-orb {
        display: none !important;
    }

    .modal-contact-item {
        padding: 0.875rem !important;
    }

    .modal-contact-item .w-14 {
        width: 3rem !important;
        height: 3rem !important;
    }

    /* === OPTIMISATIONS PERFORMANCE === */
    .aurora-bg {
        opacity: 0.15 !important;
        filter: blur(30px) !important;
    }

    .floating-orbs {
        display: none !important;
    }

    .wow-sparkles {
        opacity: 0.2 !important;
    }

    .noise-bg {
        opacity: 0.08 !important;
    }

    .animate-blob {
        display: none !important;
    }

    /* Animations légères uniquement */
    .animate-pulse-glow,
    .animate-float-slow {
        animation: none !important;
    }

    /* Box shadows subtils */
    .shadow-blue-glow {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.15) !important;
    }

    .shadow-blue-glow-lg {
        box-shadow: 0 0 30px rgba(0, 102, 255, 0.2) !important;
    }

    /* Transitions fluides */
    * {
        transition-duration: 0.2s !important;
    }

    /* === iOS FIXES === */
    .fixed {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    video {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    section {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* =============================================
   TABLET PREMIUM (769px - 1024px)
   ============================================= */
@media (min-width: 769px) and (max-width: 1024px) {

    body {
        font-size: 16px;
    }

    /* === PARALLAX TABLET === */
    .parallax-intro {
        background: transparent !important;
    }

    .parallax-layer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .logo-glow-container {
        top: 40% !important;
    }

    .parallax-logo {
        width: 280px !important;
    }

    .logo-glow-container::before {
        display: block !important;
        opacity: 0.5 !important;
    }

    /* === NAVBAR TABLET === */
    nav {
        width: 94% !important;
    }

    /* === HERO TABLET === */
    section.min-h-screen {
        padding-top: 10rem !important;
    }

    h1.font-display {
        font-size: 4.5rem !important;
    }

    /* === SECTIONS TABLET === */
    #expertise,
    #realisations,
    section.py-24.px-6,
    #agency,
    #contact {
        padding-left: var(--tablet-padding) !important;
        padding-right: var(--tablet-padding) !important;
    }

    /* Approche grid 2 colonnes */
    #expertise .grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #expertise .grid > div:nth-child(3) {
        grid-column: span 2 !important;
    }

    /* Services grid 2 colonnes */
    section.py-24.px-6 .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* === FOOTER TABLET === */
    footer > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
    }

    footer .text-sm {
        flex-basis: 100% !important;
    }

    /* === PERFORMANCES TABLET === */
    .aurora-bg {
        opacity: 0.25 !important;
    }

    .floating-orbs {
        opacity: 0.08 !important;
    }

    .animate-blob {
        display: none !important;
    }

    .backdrop-blur-xl,
    .backdrop-blur-2xl {
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    .animate-pulse-glow {
        animation: none !important;
    }
}

/* =============================================
   iOS SPECIFIQUE (via classe JS)
   ============================================= */
.is-ios-device {
    -webkit-overflow-scrolling: touch;
}

.is-ios-device body {
    position: relative;
    min-height: 100%;
    min-height: -webkit-fill-available;
}

.is-ios-device .parallax-intro {
    position: fixed;
    background: transparent;
}

/* =============================================
   ACCESSIBILITE - REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .parallax-layer {
        transform: none !important;
    }

    .animate-marquee {
        animation: none !important;
    }

    .logos-marquee {
        animation: none !important;
    }
}

/* =========================
   LOGOS MARQUEE - ILS NOUS ONT FAIT CONFIANCE
   ========================= */
/* Text marquee (Motion Design • Branding...) */
.animate-marquee {
    display: flex;
    width: fit-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.animate-marquee span {
    flex-shrink: 0;
}

.logos-marquee-container {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logos-marquee {
    display: flex;
    width: fit-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    gap: 0 !important; /* Supprimer le gap Tailwind entre les slides */
}

.logos-slide {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .logos-slide {
        gap: 4rem;
        padding-right: 4rem;
    }
}

.logos-slide img {
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mobile: ralentir l'animation */
@media (max-width: 768px) {
    .logos-marquee {
        animation-duration: 20s;
    }

    .logos-slide img {
        height: 3rem !important;
    }
}

/* =========================
   APPROCHE SECTION - CENTER BOXES
   ========================= */
@media (min-width: 1024px) {
    #expertise .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }

    /* Première box - Nos Expertises (~33%) */
    #expertise .grid > div:first-child {
        flex: 0 0 calc(33.333% - 0.833rem);
        min-height: 450px;
    }

    /* Deuxième box - Social Content (~33%) */
    #expertise .grid > div:nth-child(2) {
        flex: 0 0 calc(33.333% - 0.833rem);
        min-height: 520px;
    }

    /* Troisième box - Résultats (~66%) */
    #expertise .grid > div:nth-child(3) {
        flex: 0 0 calc(66.666% - 0.625rem);
        min-height: 350px;
    }

    /* === PARALLAX DESKTOP - Forcer visibilité === */
    .parallax-intro {
        display: block !important;
        visibility: visible !important;
        background: transparent !important;
    }

    .parallax-intro:not(.hidden) {
        opacity: 1 !important;
    }

    .parallax-layer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .logo-glow-container {
        display: block !important;
        visibility: visible !important;
    }

    .logo-glow-container::before {
        display: block !important;
        opacity: 0.7 !important;
    }
}
