/*
Theme Name: Prizm Studio Liquid
Theme URI: https://prizmstudio.fr
Description: Thème Liquid Glass pour agence audiovisuelle - Design VisionOS avec glassmorphism et animations GSAP
Version: 4.0
Author: Prizm Studio
Author URI: https://prizmstudio.fr
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prizm-studio
*/

/* ============================================
   LIQUID GLASS SYSTEM
   ============================================ */
:root {
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 30px;
    --accent-glow: rgba(255, 255, 255, 0.15);
    
    /* Couleurs Orbs - Logo Prizm */
    --orb-1: #FF4830;  /* Orange/Rouge */
    --orb-2: #00C2FF;  /* Bleu Cyan */
    --orb-3: #E8D8C5;  /* Beige/Sable */
}

.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #020202; /* Fond plus sombre */
    pointer-events: none;
}

/* Overlay sombre pour assombrir encore */
.liquid-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* Réduit de 0.4 à 0.15 */
    z-index: 1;
}

.liquid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.7;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
    z-index: 0;
}

.orb-1 {
    top: -15%;
    left: -15%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
    animation: float1 25s infinite ease-in-out;
}

.orb-2 {
    bottom: -25%;
    right: -15%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
    animation: float2 30s infinite ease-in-out;
    animation-delay: -5s;
}

.orb-3 {
    top: 35%;
    left: 35%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--orb-3) 0%, transparent 70%);
    animation: float3 22s infinite ease-in-out;
    animation-delay: -10s;
    opacity: 0.5;
}

/* Animations différentes pour chaque orbe */
@keyframes float1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(30px, -50px) scale(1.15) rotate(5deg); 
    }
    50% { 
        transform: translate(-20px, -30px) scale(1.05) rotate(-3deg); 
    }
    75% { 
        transform: translate(40px, 20px) scale(1.2) rotate(8deg); 
    }
}

@keyframes float2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(-40px, 30px) scale(1.1) rotate(-5deg); 
    }
    50% { 
        transform: translate(20px, -40px) scale(1.2) rotate(7deg); 
    }
    75% { 
        transform: translate(-30px, -20px) scale(1.05) rotate(-4deg); 
    }
}

@keyframes float3 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    33% { 
        transform: translate(50px, 40px) scale(1.15) rotate(10deg); 
    }
    66% { 
        transform: translate(-40px, -50px) scale(1.25) rotate(-8deg); 
    }
}

.noise-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.08;
    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)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Glass Panel Effect */
.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.glass-panel:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
}

/* Glass Text Effect - pour le texte lui-même */
.glass-text {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.glass-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, #FF4830 0%, #00C2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    filter: blur(8px);
}

/* Logos clients défilants */
.logos-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.logos-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    animation: scroll-logos 24s linear infinite; /* 40s / 1.4 = ~28.6s, arrondi à 24s pour 40% plus rapide */
    will-change: transform;
}

.logo-item {
    flex-shrink: 0;
    width: 260px; /* Augmenté de 30%: 200 * 1.3 = 260 */
    height: 156px; /* Augmenté de 30%: 120 * 1.3 = 156 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: background 0.3s ease;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 30px rgba(255, 72, 48, 0.4), 0 0 60px rgba(0, 194, 255, 0.3);
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Logos sur mobile */
@media (max-width: 767px) {
    .logo-item {
        width: 208px; /* 260 - 20% = 208 */
        height: 125px; /* 156 - 20% = 125 */
    }
    
    /* Garder l'animation sur mobile */
    .logos-scroll-track {
        animation: scroll-logos 24s linear infinite;
    }
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Carousel de témoignages */
.testimonials-carousel-container {
    max-width: 100%;
}

.testimonials-carousel {
    position: relative;
    overflow: visible;
}

.testimonials-track {
    display: flex;
}

.testimonial-slide {
    transition: opacity 0.5s ease;
}

/* Hover pour les cartes de témoignages */
.testimonial-card {
    position: relative;
    transition: border-color 0.3s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 24px;
    transition: background 0.3s ease;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: none !important;
}

.testimonial-card:hover::before {
    background: rgba(0, 0, 0, 0.4); /* Assombrissement au hover */
}

.pagination-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: linear-gradient(135deg, #FF4830 0%, #00C2FF 100%);
    width: 2rem;
}

/* Flèches de navigation des témoignages */
.testimonial-prev,
.testimonial-next {
    cursor: pointer;
    transform: none !important;
    transition: all 0.3s ease;
}

/* Style desktop pour les flèches */
@media (min-width: 768px) {
    .testimonial-prev,
    .testimonial-next {
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .testimonial-prev:hover,
    .testimonial-next:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 30px rgba(255, 72, 48, 0.5), 0 0 60px rgba(0, 194, 255, 0.4);
        transform: scale(1.1) !important;
    }

    .testimonial-prev iconify-icon,
    .testimonial-next iconify-icon {
        transition: transform 0.3s ease;
    }

    .testimonial-prev:hover iconify-icon {
        transform: translateX(-3px);
    }

    .testimonial-next:hover iconify-icon {
        transform: translateX(3px);
    }
}

/* Responsive - 1 slide sur mobile */
@media (max-width: 767px) {
    .testimonial-slide {
        width: 100% !important;
    }
    
    /* Flèches plus visibles sur mobile */
    .testimonial-prev,
    .testimonial-next {
        width: 48px !important;
        height: 48px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
    }
}

/* Responsive - 2 slides sur tablette */
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-slide {
        width: 50% !important;
    }
}

/* Orbs visibles sur mobile */
@media (max-width: 767px) {
    .liquid-orb {
        animation: float 20s infinite ease-in-out !important;
        filter: blur(100px);
        opacity: 0.8 !important; /* Augmenté pour meilleure visibilité */
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 90vw;
        height: 90vw;
    }
    
    .liquid-background::before {
        background: rgba(0, 0, 0, 0.3); /* Réduit pour laisser voir les orbes */
    }
    
    /* Masquer les éléments parallax expertise sur mobile */
    .parallax-element {
        display: none !important;
    }
}

/* ============================================
   LIQUID GLASS BUTTONS
   ============================================ */
.btn-liquid,
.cta-button,
.btn-liquid-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-liquid:hover,
.cta-button:hover,
.btn-liquid-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 72, 48, 0.3) 0%, rgba(0, 194, 255, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 72, 48, 0.5), 0 0 60px rgba(0, 194, 255, 0.3);
}

.btn-liquid iconify-icon,
.cta-button iconify-icon,
.btn-liquid-secondary iconify-icon {
    transition: transform 0.3s ease;
}

.btn-liquid:hover iconify-icon,
.cta-button:hover iconify-icon,
.btn-liquid-secondary:hover iconify-icon {
    transform: translateX(3px);
}

/* Variant secondary - juste une base différente */
.btn-liquid-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button groups */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Icon buttons */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.btn-icon iconify-icon {
    color: white;
    transition: color 0.3s ease;
}

.btn-icon:hover iconify-icon {
    color: black;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .btn-liquid,
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .btn-icon {
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   FILTER BUTTONS (Liquid Glass)
   ============================================ */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
}

/* ============================================
   BASE / RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #050505;
    color: #EAEAEA;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', 'Manrope', sans-serif;
}

/* OPTIMISATIONS MOBILE CRITIQUES */
@media (max-width: 767px) {
    /* Désactiver les animations CSS pour performances */
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0.15s !important;
    }
    
    /* Performance optimizations */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Réduire les effets lourds */
    .parallax-img,
    #hero-bg,
    .project-card img {
        transform: none !important;
        will-change: auto !important;
    }
    
    /* Simplifier les ombres et flous */
    .shadow-lg,
    .shadow-xl {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Désactiver blur sur mobile */
    [class*="blur-"] {
        filter: none !important;
    }
    
    /* Forcer l'affichage immédiat */
    .reveal-section,
    .service-card,
    .stat-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Scrollbar cachée */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Sélection de texte personnalisée */
::selection {
    background-color: white;
    color: black;
}

/* ============================================
   GRADIENTS
   ============================================ */
.gradient-prizm {
    background: linear-gradient(135deg, #FF4830 0%, #E8D8C5 45%, #00C2FF 100%);
}

.text-gradient-prizm {
    background: linear-gradient(135deg, #FF4830 0%, #E8D8C5 45%, #00C2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0.25em 0.3em;
    line-height: 1.5;
    overflow: visible;
}

/* Éviter les coupures de texte pour tous les éléments en italique */
.italic, em, i {
    padding: 0.15em 0.2em;
    overflow: visible;
}

/* S'assurer que les conteneurs de texte en gradient ne coupent pas */
h1, h2, h3, h4, h5, h6 {
    overflow: visible;
}

/* Éviter overflow hidden sur les divs contenant des gradients/italiques */
.text-gradient-prizm:not(.overflow-hidden),
.italic:not(.overflow-hidden),
h1:has(.text-gradient-prizm),
h2:has(.text-gradient-prizm),
h3:has(.text-gradient-prizm) {
    overflow: visible !important;
}

/* Dégradé général sur les stats (ensemble) */
.stats-gradient {
    background: linear-gradient(135deg, #FF4830 0%, #E8D8C5 45%, #00C2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Effet de flottement léger au survol */
.hover-float {
    transition: transform 0.3s ease-out;
}

.hover-float:hover {
    transform: translateY(-2px);
}

/* Réduction spécifique pour les stats */
.stat-item.hover-float:hover {
    transform: translateY(-2px);
}

/* Halo lumineux sur les cartes de stats */
.stat-item:hover {
    box-shadow: 0 0 30px rgba(255, 72, 48, 0.4), 0 0 60px rgba(0, 194, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Empêcher que les effets soient coupés */
.service-row,
.grid {
    overflow: visible !important;
}

section {
    overflow: visible !important;
}

/* Effet magnétique sur boutons et chiffres */
.magnetic-element {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ============================================
   NAVIGATION
   ============================================ */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
    mix-blend-mode: difference;
    color: white;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    isolation: isolate;
    border: none !important;
    box-shadow: none !important;
}

#main-nav::after,
#main-nav * {
    border-bottom: none !important;
    box-shadow: none !important;
}

#main-nav > div {
    border: none !important;
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

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

/* Navigation Overlay Fullscreen */
#nav-overlay {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#nav-overlay.nav-open {
    transform: translateY(0);
}

.nav-item {
    opacity: 0;
    transform: translateY(40px);
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.05em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.nav-item:hover {
    font-style: italic;
}

/* État visible des nav-items (pour fallback CSS) */
.nav-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-item {
        font-size: 2.5rem;
    }
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-primary {
    background: #ffffff;
    color: #000000;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF4830 0%, #00C2FF 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #ffffff;
    border-color: transparent;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Effet Magnetic Button */
.btn-magnetic {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.1);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        #050505 0%,
        transparent 40%,
        #050505 100%
    );
    opacity: 0.8;
}

.hero-gradient-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66%;
    height: 66%;
    background: linear-gradient(
        to top right,
        rgba(255, 72, 48, 0.1) 0%,
        rgba(0, 194, 255, 0.1) 100%
    );
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 300;
    letter-spacing: -0.05em;
    color: white;
    mix-blend-mode: overlay;
    line-height: 0.9;
}

.hero-title.italic {
    font-style: italic;
}

/* ============================================
   PORTFOLIO SECTION - STICKY CARDS
   ============================================ */
.portfolio-scroll-area {
    background: #050505;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.project-card {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    overflow: hidden;
}

.project-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.project-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.parallax-img {
    will-change: transform;
}

.project-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    padding: 0 1.5rem;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.project-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    color: white;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-cta-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-cta:hover .project-cta-circle {
    background: white;
    color: black;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: rgba(255, 72, 48, 0.3);
    background: rgba(30, 30, 30, 0.8);
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(255, 72, 48, 0.4), 0 0 60px rgba(0, 194, 255, 0.3);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.stats-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 8rem 1.5rem;
    text-align: center;
}

.cta-button {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    border-radius: 9999px;
    background: white;
    color: black;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF4830 0%, #E8D8C5 45%, #00C2FF 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover {
    color: white;
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 5rem 1.5rem 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer-heading {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 1rem;
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body:not(.home) .loading-overlay {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* Section Divider Glass */
.section-divider {
    width: 50%;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    filter: blur(0.5px);
    opacity: 0.5;
}

/* Styles mobile spécifiques */
@media (max-width: 767px) {
    /* Logos défilants sur mobile - plus rapide */
    .logos-scroll-container {
        overflow: hidden !important;
    }

    .logos-scroll-track {
        animation: scroll-logos 16s linear infinite !important; /* 50% plus rapide que desktop */
    }

    /* Fixer le bouton Fermer du menu en haut à droite */
    #nav-overlay > button {
        position: fixed !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        z-index: 9999 !important;
    }
}
