/* ===== PRIME TECH GROUP - STYLES PREMIUM AVEC GSAP/LENIS/TAILWIND/SPLITTYPE ===== */

/* Variables CSS - Thème Noir et Blanc */
:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #f0f0f0;
    --whatsapp-color: #25D366;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #222222;
    --shadow-primary: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-secondary: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #ffffff, #e0e0e0);
    --gradient-secondary: linear-gradient(135deg, #333333, #000000);
    --gradient-accent: linear-gradient(135deg, #1a1a1a, #000000);
    --font-primary: 'Inter', sans-serif;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Thème Clair */
[data-theme="light"] {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #1a1a1a;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #fafafa;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow-primary: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-secondary: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, #000000, #333333);
    --gradient-secondary: linear-gradient(135deg, #f0f0f0, #ffffff);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Styles */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s var(--transition-smooth), color 0.5s var(--transition-smooth);
}

/* ===== CURSEUR PERSONNALISÉ ===== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.1s ease-out;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 1;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transition: all 0.05s ease-out;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: transparent;
    border: 2px solid var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Désactiver le curseur par défaut uniquement si le curseur personnalisé est présent */
body.custom-cursor-active {
    cursor: none !important;
}

body.custom-cursor-active * {
    cursor: none !important;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: transparent;
    border: 2px solid var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Styles pour les éléments interactifs */
a, button, .service-card, .portfolio-item, .nav-link, .theme-toggle {
    transition: all 0.3s var(--transition-smooth);
}

a:hover, button:hover, .nav-link:hover, .theme-toggle:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.service-card:hover, .portfolio-item:hover {
    box-shadow: var(--shadow-primary), 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Animation de pulsation pour les éléments cliquables */
@keyframes cursor-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.7; }
}

.custom-cursor.pulse {
    animation: cursor-pulse 0.6s ease-in-out;
}

/* ===== BARRES DE DÉFILEMENT GLOBALES ===== */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-secondary);
}

/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--transition-smooth);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--text-secondary), var(--text-primary));
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

*::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

/* Barre de défilement principale du body */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--text-muted), var(--text-secondary));
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--text-secondary), var(--text-primary));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ===== PAGE DE CHARGEMENT PREMIUM ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loader.hidden {
    pointer-events: none;
}

.loader-content {
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.loader-logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2.5rem;
}

.loader-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: loaderSpin 1.2s linear infinite;
}

.loader-ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-top-color: transparent;
    border-right-color: var(--text-primary);
    opacity: 0.3;
    animation: loaderSpinReverse 1.8s linear infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderSpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.loader-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.loader-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .loader-title span {
    -webkit-text-fill-color: var(--text-primary);
}

.loader-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.loader-progress {
    width: 240px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.2s ease-out;
}

.loader-percentage {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0.05;
    animation: loaderParticle 5s infinite ease-in-out;
}

.loader-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.loader-particles span:nth-child(2) { left: 20%; top: 60%; animation-delay: 0.4s; }
.loader-particles span:nth-child(3) { left: 35%; top: 10%; animation-delay: 0.8s; }
.loader-particles span:nth-child(4) { left: 50%; top: 80%; animation-delay: 1.2s; }
.loader-particles span:nth-child(5) { left: 65%; top: 30%; animation-delay: 1.6s; }
.loader-particles span:nth-child(6) { left: 75%; top: 70%; animation-delay: 2s; }
.loader-particles span:nth-child(7) { left: 85%; top: 15%; animation-delay: 2.4s; }
.loader-particles span:nth-child(8) { left: 90%; top: 50%; animation-delay: 2.8s; }
.loader-particles span:nth-child(9) { left: 5%; top: 85%; animation-delay: 3.2s; }
.loader-particles span:nth-child(10) { left: 45%; top: 45%; animation-delay: 3.6s; }
.loader-particles span:nth-child(11) { left: 60%; top: 90%; animation-delay: 4s; }
.loader-particles span:nth-child(12) { left: 30%; top: 75%; animation-delay: 4.4s; }

@keyframes loaderParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.05;
    }
    50% {
        transform: translateY(-40px) scale(1.8);
        opacity: 0.15;
    }
}

/* ===== NAVIGATION PREMIUM ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: all 0.4s var(--transition-smooth);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--transition-smooth);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.4s var(--transition-bounce);
}

.nav-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.nav-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    margin-left: 1.5rem;
}

.theme-toggle i {
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: transform 0.5s var(--transition-bounce);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s var(--transition-smooth);
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION PREMIUM ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-bg-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

[data-theme="light"] .hero-bg-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
}

.hero-particles {
    background-image: 
        radial-gradient(circle at 2px 2px, var(--text-muted) 1px, transparent 0);
    background-size: 60px 60px;
    opacity: 0.15;
}

.hero-content {
    position: relative;
}

.hero-title {
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

[data-theme="dark"] .hero-title {
    color: #ffffff;
}

[data-theme="light"] .hero-title {
    color: var(--text-primary);
}

[data-theme="light"] .hero-subtitle {
    -webkit-text-fill-color: var(--text-primary);
}

/* SplitType Animation Styles */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    transform-origin: bottom center;
}

.split-text .word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.1em;
}

/* Word Animation Styles */
.word-animate .word {
    display: inline-block;
}

/* Character Scramble Styles */
.char-scramble .char {
    display: inline-block;
}

/* Text Reveal Animation */
.text-reveal {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

/* Typewriter cursor */
.typewriter::after {
    content: '|';
    animation: typewriterCursor 0.8s infinite;
    margin-left: 2px;
    color: var(--text-primary);
}

@keyframes typewriterCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Blur fade animation for text */
.text-blur-in {
    opacity: 0;
    filter: blur(10px);
    transition: all 0.8s var(--transition-smooth);
}

.text-blur-in.animated {
    opacity: 1;
    filter: blur(0);
}

/* Line by line reveal */
.line-reveal {
    overflow: hidden;
}

.line-reveal .line {
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s var(--transition-smooth);
}

.line-reveal.animated .line {
    transform: translateY(0);
}

/* Gradient text animation */
.gradient-text-animate {
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary), var(--text-primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Highlight effect on scroll */
.highlight-scroll {
    position: relative;
}

.highlight-scroll::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 30%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width 1s var(--transition-smooth);
}

.highlight-scroll.highlighted::after {
    width: 100%;
}

/* Fade slide variations */
.fade-slide-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-slide-down {
    opacity: 0;
    transform: translateY(-40px);
}

.fade-slide-left {
    opacity: 0;
    transform: translateX(40px);
}

.fade-slide-right {
    opacity: 0;
    transform: translateX(-40px);
}

/* Counter style */
.counter-animate {
    font-variant-numeric: tabular-nums;
}

.hero-description {
    color: var(--text-secondary);
}

/* Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-bounce);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s var(--transition-smooth);
}

.btn-primary:hover .btn-shine {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.scroll-indicator .mouse-dot {
    animation: mouseBounce 1.5s ease-in-out infinite;
}

@keyframes mouseBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.service-card {
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.service-icon i {
    color: var(--bg-primary);
}

/* Section Title Styles */
.section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .section-title {
    -webkit-text-fill-color: var(--text-primary);
}

[data-theme="dark"] .section-title {
    -webkit-text-fill-color: var(--text-primary);
    background: none;
}

/* ===== PORTFOLIO SECTION - HORIZONTAL SCROLL ===== */
.portfolio {
    background: var(--bg-primary);
}

/* Horizontal Scroll Container */
.portfolio-horizontal-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--text-primary) var(--bg-card);
    padding-bottom: 10px;
}

.portfolio-horizontal-wrapper::-webkit-scrollbar {
    height: 8px;
}

.portfolio-horizontal-wrapper::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 0 20px;
}

.portfolio-horizontal-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.portfolio-horizontal-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ffffff, var(--text-primary));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scaleY(1.2);
}

.portfolio-horizontal-wrapper::-webkit-scrollbar-thumb:active {
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.portfolio-horizontal-track {
    display: flex;
    gap: 3rem;
    padding: 2rem 5%;
    will-change: transform;
    align-items: center;
    justify-content: flex-start;
}

.portfolio-item {
    flex-shrink: 0;
    width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.5s var(--transition-smooth);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .portfolio-item {
        width: 550px;
    }
}

@media (min-width: 1024px) {
    .portfolio-item {
        width: 600px;
    }
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-primary);
    border-color: var(--text-secondary);
}

.portfolio-image {
    height: 288px; /* h-72 */
    overflow: hidden;
}

@media (min-width: 768px) {
    .portfolio-image {
        height: 320px; /* h-80 */
    }
}

@media (min-width: 1024px) {
    .portfolio-image {
        height: 360px;
    }
}

/* Progress Bar */
.scroll-progress-bar {
    background: var(--border-color);
    transition: all 0.3s ease;
}

.scroll-progress-fill {
    background: var(--gradient-primary);
    transition: width 0.1s linear;
}

/* Focused Portfolio Item */
.portfolio-item.portfolio-focused {
    border-color: var(--text-primary);
    z-index: 10;
}

.portfolio-item.portfolio-focused .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-item.portfolio-focused::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    pointer-events: none;
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

[data-theme="light"] .portfolio-item.portfolio-focused::after {
    border-color: rgba(0, 0, 0, 0.2);
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== MÉTHODE DE TRAVAIL SECTION ===== */
.methode {
    background: var(--bg-primary);
    position: relative;
}

.methode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.methode-timeline {
    position: relative;
}

.timeline-line {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.methode-step {
    position: relative;
}

.step-number {
    font-size: 4rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.1;
    font-weight: 900;
}

.step-icon {
    transition: all 0.5s var(--transition-bounce);
}

.step-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.timeline-dot {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--transition-smooth);
}

.timeline-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.visual-card {
    transition: all 0.5s var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.visual-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.methode-stats {
    position: relative;
}

.stat-item {
    transition: all 0.3s var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .methode-step {
        flex-direction: column;
    }
    
    .step-content {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 2rem;
    }
    
    .step-visual {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }
    
    .timeline-line {
        display: none !important;
    }
    
    .step-timeline {
        display: none !important;
    }
    
    .step-number {
        font-size: 3rem;
    }
}

/* ===== STACK TECHNOLOGIQUE SECTION ===== */
.stack {
    background: var(--bg-primary);
    position: relative;
}

.stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Stack Interface Styles */
.stack-interface-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.stack-title-bar {
    display: flex;
    justify-content: center;
}

.title-highlight {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.stack-interface {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
}

.stack-layout {
    min-height: 600px;
}

/* Sidebar Styles */
.stack-sidebar {
    background: rgba(17, 24, 39, 0.8);
}

.nav-item {
    position: relative;
}

.nav-item.active .nav-header {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #10B981;
}

.nav-item.active .nav-arrow {
    transform: rotate(90deg);
    color: #10B981;
}

.nav-item.active .nav-text {
    color: #10B981;
    font-weight: 600;
}

.nav-item.active .status-dot {
    opacity: 1;
    animation: pulse 2s infinite;
}

.nav-arrow {
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Content Area Styles */
.stack-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(17, 24, 39, 0.9));
    position: relative;
}

.content-panel {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.content-panel.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-title {
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    font-size: 1.75rem;
    line-height: 1.3;
}

.tech-item {
    transition: all 0.3s ease;
    border-color: rgba(75, 85, 99, 0.5);
}

.tech-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tech-icon {
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Interactive JavaScript functionality */
.nav-item:hover {
    cursor: pointer;
}

.nav-item:hover .nav-header {
    background: rgba(75, 85, 99, 0.3);
}

.nav-item:hover .nav-arrow {
    color: #10B981;
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .stack-layout {
        flex-direction: column;
        min-height: 500px;
    }
    
    .stack-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #374151;
        padding: 1rem;
    }
    
    .stack-content {
        width: 100%;
        padding: 1.5rem;
    }
    
    .stack-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0;
    }
    
    .nav-item {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }
    
    .tech-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .stack-interface {
        min-height: 400px;
    }
    
    .nav-item {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
    
    .tech-title {
        font-size: 1.1rem;
    }
    
    .title-highlight {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .tech-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stack-interface-container {
        padding: 0 0.5rem;
    }
    
    .stack-content {
        padding: 1rem;
    }
    
    .tech-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .nav-text {
        font-size: 0.7rem;
    }
    
    .tech-description {
        font-size: 0.85rem;
    }
}

/* ===== ADN SECTION ===== */
.adn {
    background: var(--bg-secondary);
}

.adn-bg {
    background: 
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 30%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
}

.adn-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.5s var(--transition-smooth);
}

.adn-item:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.04);
}

.adn-icon {
    background: var(--gradient-primary);
}

.adn-icon i {
    color: var(--bg-primary);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--bg-primary);
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-details a:hover {
    opacity: 0.7;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.btn-submit i {
    margin-left: 0.5rem;
    transition: transform 0.3s var(--transition-smooth);
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    padding: 5rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.newsletter-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.newsletter-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.btn-newsletter {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--transition-bounce);
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.newsletter-status {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
}

.newsletter-status.success {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.newsletter-status.error {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-brand h3 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-brand .social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s var(--transition-bounce);
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== WHATSAPP FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.whatsapp-main {
    width: 60px;
    height: 60px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--transition-bounce);
}

.whatsapp-main i {
    font-size: 1.8rem;
    color: white;
}

.whatsapp-main:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-main.pulse {
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

.whatsapp-options {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--transition-smooth);
}

.whatsapp-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    display: flex;
    justify-content: flex-end;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s var(--transition-smooth);
}

.whatsapp-link:hover {
    background: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    color: white;
}

.whatsapp-link i {
    width: 28px;
    height: 28px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

/* ===== MAGNETIC CURSOR EFFECT ===== */
.magnetic {
    transition: transform 0.3s var(--transition-smooth);
}

/* ===== GSAP ANIMATIONS HELPERS ===== */
[data-animate] {
    opacity: 0;
}

[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-down"] {
    transform: translateY(-60px);
}

[data-animate="fade-left"] {
    transform: translateX(-60px);
}

[data-animate="fade-right"] {
    transform: translateX(60px);
}

[data-animate="scale-in"] {
    transform: scale(0.8);
}

[data-animate="slide-up"] {
    transform: translateY(100px);
}

[data-animate="slide-left"] {
    transform: translateX(-100px);
}

[data-animate="flip-in"] {
    transform: perspective(1000px) rotateX(90deg);
    transform-origin: center bottom;
}

/* ===== PARALLAX SCROLL EFFECT ===== */
[data-speed] {
    will-change: transform;
}

/* ===== RESPONSIVE ===== */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s var(--transition-smooth);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services grid responsive */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ADN grid responsive */
    .adn-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Portfolio horizontal - smaller items */
    .portfolio-item {
        width: 320px !important;
    }
    
    .portfolio-image {
        height: 260px !important;
    }

    /* Container padding */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Tablettes portrait */
@media (max-width: 768px) {
    /* Hero responsive */
    .hero-subtitle {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-description {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    .logo-main {
        width: 100px !important;
        height: 100px !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    /* Services grid - 1 column on mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    /* ADN grid - 1 column */
    .adn-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .adn-item {
        padding: 1.25rem !important;
    }

    /* Portfolio horizontal */
    .portfolio-item {
        width: 280px !important;
    }
    
    .portfolio-image {
        height: 220px !important;
    }

    .portfolio-overlay {
        padding: 1rem !important;
    }

    .portfolio-overlay h3 {
        font-size: 1rem !important;
    }

    .portfolio-overlay p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }

    .portfolio-links a {
        width: 40px !important;
        height: 40px !important;
    }

    /* Filter buttons */
    .portfolio-filter {
        gap: 0.5rem !important;
    }

    .filter-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem !important;
    }

    .contact-item {
        padding: 1rem !important;
    }

    /* Newsletter */
    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-content {
        padding: 0 1rem !important;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1rem !important;
    }

    .nav-logo h2 {
        font-size: 1.25rem !important;
    }

    .nav-logo-img {
        width: 35px !important;
        height: 35px !important;
    }

    /* WhatsApp button */
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-main {
        width: 55px;
        height: 55px;
    }

    /* Loader */
    .loader-logo-container {
        width: 140px !important;
        height: 140px !important;
    }

    .loader-logo {
        width: 70px !important;
        height: 70px !important;
    }

    .loader-title {
        font-size: 1.5rem !important;
    }

    /* Sections padding */
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* Hero specific padding */
    .hero {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-container {
        padding: 0 1rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100%;
        gap: 1rem !important;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem !important;
    }

    .scroll-indicator {
        margin-top: 2rem !important;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    /* Hero */
    .hero-subtitle {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
    }

    .logo-main {
        width: 80px !important;
        height: 80px !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
    }

    /* Navigation */
    .nav-logo h2 {
        font-size: 1rem !important;
    }

    .nav-logo-img {
        width: 30px !important;
        height: 30px !important;
    }

    .nav-logo {
        gap: 8px !important;
    }

    /* Service cards */
    .service-card {
        padding: 1.25rem !important;
    }

    .service-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .service-icon i {
        font-size: 1.25rem !important;
    }

    /* Portfolio items */
    .portfolio-item {
        width: 260px !important;
    }
    
    .portfolio-image {
        height: 200px !important;
    }

    /* Contact */
    .contact-form {
        padding: 1.25rem !important;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem !important;
    }

    .contact-icon {
        margin: 0 auto;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    /* Theme toggle */
    .theme-toggle {
        width: 38px !important;
        height: 38px !important;
        margin-left: 0.75rem !important;
    }

    /* Loader */
    .loader-logo-container {
        width: 120px !important;
        height: 120px !important;
    }

    .loader-logo {
        width: 60px !important;
        height: 60px !important;
    }

    .loader-title {
        font-size: 1.25rem !important;
    }

    .loader-tagline {
        font-size: 0.85rem !important;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-main {
        width: 50px;
        height: 50px;
    }

    .whatsapp-main i {
        font-size: 1.25rem;
    }

    /* ADN items */
    .adn-item {
        padding: 1rem !important;
    }

    .adn-icon {
        width: 48px !important;
        height: 48px !important;
    }

    /* Progress bar */
    .scroll-progress-bar {
        width: 80px !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-subtitle {
        font-size: 1.3rem !important;
    }

    .nav-logo h2 {
        font-size: 0.9rem !important;
    }

    .section-title {
        font-size: 1.35rem !important;
    }

    .portfolio-item {
        width: 240px !important;
    }

    .portfolio-image {
        height: 180px !important;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ===== REVEAL ANIMATION CLASSES ===== */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.reveal-text.revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ===== STAGGER ANIMATION ===== */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
}

.stagger-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== IMAGE REVEAL ===== */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    transform-origin: right;
}

.img-reveal.revealed::after {
    transform: scaleX(0);
}

/* ===== PLANS ACCÈS SECTION ===== */
.plans-acces {
    background: var(--bg-primary);
    position: relative;
}

.plans-acces::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.plans-grid {
    position: relative;
    z-index: 2;
}

.plan-card {
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-price {
    position: relative;
}

.plan-price span:first-child {
    background: linear-gradient(135deg, currentColor, currentColor);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.feature-item {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.feature-item:hover {
    transform: translateX(8px);
    color: #fff;
}

.feature-item span:first-child {
    font-family: monospace;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.feature-item:hover span:first-child {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px currentColor);
}

/* Plan Card Specific Styles */
.plan-card:nth-child(1):hover {
    border-color: rgba(250, 204, 21, 0.7);
}

.plan-card:nth-child(1) .plan-price span:first-child {
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.plan-card:nth-child(2):hover {
    border-color: rgba(34, 197, 94, 0.7);
}

.plan-card:nth-child(2) .plan-price span:first-child {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.plan-card:nth-child(3):hover {
    border-color: rgba(59, 130, 246, 0.7);
}

.plan-card:nth-child(3) .plan-price span:first-child {
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

/* Buttons */
.plan-action button {
    position: relative;
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.plan-action button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.plan-action button:hover::before {
    width: 300px;
    height: 300px;
}

.plan-action button:active {
    transform: scale(0.98);
}

/* Badge Le Plus Populaire */
.plan-card .bg-yellow-400 {
    animation: badge-glow 2s ease-in-out infinite alternate;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
}

@keyframes badge-glow {
    from {
        box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
    }
    to {
        box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6), 0 0 25px rgba(250, 204, 21, 0.3);
    }
}

/* Responsive Plans */
@media (max-width: 1024px) {
    .plans-grid {
        gap: 2rem;
    }
    
    .plan-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .plan-price span:first-child {
        font-size: 2.5rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .plan-action button {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .plan-card {
        padding: 1rem;
    }
    
    .plan-price span:first-child {
        font-size: 2rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
}
