/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #fbbf24 100%);
    
    /* Dark Mode Colors Premium */
    --dark-bg-primary: #0a0a0a;
    --dark-bg-secondary: #111111;
    --dark-bg-card: rgba(20, 20, 20, 0.8);
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b4b4b4;
    --dark-text-light: #888888;
    --dark-border-color: rgba(255, 255, 255, 0.1);
    --dark-primary-color: #8b5cf6;
    --dark-primary-light: #a78bfa;
    --dark-primary-dark: #7c3aed;
    --dark-secondary-color: #ec4899;
    --dark-gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    --dark-gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --dark-gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%);
    --dark-shadow-light: 0 4px 20px rgba(139, 92, 246, 0.1);
    --dark-shadow-medium: 0 8px 32px rgba(139, 92, 246, 0.2);
    --dark-shadow-heavy: 0 25px 50px rgba(139, 92, 246, 0.3);
    --dark-glow: 0 0 20px rgba(139, 92, 246, 0.4);
    
    /* Variables responsives */
    --navbar-height: 70px;
    --mobile-breakpoint: 768px;
    --container-padding: 2rem;
    --mobile-padding: 1rem;
}

[data-theme="dark"] {
    --primary-color: var(--dark-primary-color);
    --primary-light: var(--dark-primary-light);
    --primary-dark: var(--dark-primary-dark);
    --secondary-color: var(--dark-secondary-color);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-light: var(--dark-text-light);
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --border-color: var(--dark-border-color);
    --shadow-light: var(--dark-shadow-light);
    --shadow-medium: var(--dark-shadow-medium);
    --shadow-heavy: var(--dark-shadow-heavy);
    --gradient-primary: var(--dark-gradient-primary);
    --gradient-secondary: var(--dark-gradient-secondary);
}

/* Correction pour l'arrière-plan en mode sombre */
[data-theme="dark"] html {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
    background-color: #0a0a0a !important;
    background-image: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
    min-height: 100vh;
}

[data-theme="dark"] body {
    background: var(--dark-gradient-bg) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Navigation - Toujours sombre */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--navbar-height);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    z-index: 1001;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.1);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-link.active {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.15);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* Auth containers */
.auth-container {
    display: flex;
    gap: 0.5rem;
}

.desktop-auth {
    display: flex;
    margin-left: 1rem;
}

.mobile-auth {
    display: none;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 2px 15px rgba(139, 92, 246, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.login-btn::after {
    display: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: var(--dark-gradient-bg);
    position: relative;
}

[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 40% 40%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

[data-theme="dark"] .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    padding-top: var(--navbar-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height));
}

.hero-text {
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

[data-theme="dark"] .name-highlight {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.title-subtitle {
    color: var(--text-secondary);
    font-size: 0.7em;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    z-index: 10;
    will-change: transform;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: var(--dark-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--dark-border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .btn-secondary:hover {
    box-shadow: var(--dark-glow);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: floating 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .floating-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border-color);
    box-shadow: var(--dark-shadow-medium);
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .floating-card:hover {
    box-shadow: var(--dark-glow);
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 15%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 15%;
    animation-delay: 2s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-icon {
    font-size: 1.5rem;
}

.central-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    animation: pulse 2s ease-in-out infinite;
}

[data-theme="dark"] .central-element {
    box-shadow: var(--dark-glow);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.code-animation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-line {
    height: 4px;
    background: white;
    border-radius: 2px;
    animation: typewriter 2s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 40px;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 60px;
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    width: 30px;
    animation-delay: 1s;
}

@keyframes typewriter {
    0%, 50% { width: 0; }
    100% { width: var(--line-width, 40px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

[data-theme="dark"] .scroll-arrow {
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-primary);
}

[data-theme="dark"] .services {
    background: var(--dark-bg-secondary);
    position: relative;
}

[data-theme="dark"] .services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border-color);
    box-shadow: var(--dark-shadow-light);
    backdrop-filter: blur(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

[data-theme="dark"] .service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-10px);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .icon-bg {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.2;
}

[data-theme="dark"] .service-card:hover .icon-bg {
    opacity: 0.3;
    filter: blur(2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.service-icon .icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .service-card:hover .feature {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--dark-text-primary);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

/* CTA Section */
.cta-section {
    background: var(--bg-dark);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0b1e 50%, #0d1420 100%);
}

[data-theme="dark"] .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

[data-theme="dark"] .cta-title {
    background: var(--dark-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border-color);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .stat:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--dark-shadow-medium);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-number {
    background: var(--dark-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number.counting {
    color: var(--primary-color);
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

[data-theme="dark"] .stat-label {
    color: var(--dark-text-secondary);
}

.cta-btn {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    margin: 0 auto;
    display: flex;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--dark-border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-links a:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

/* Animation pour les particules flottantes */
@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Development Banner Styles */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 1rem;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.dev-banner.hidden {
    transform: translateY(-100%);
}

.dev-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    position: relative;
}

.dev-banner-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.dev-banner-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.dev-banner-email {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.dev-banner-email:hover {
    opacity: 0.8;
}

.dev-banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.dev-banner-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Adjust body padding when banner is visible */
body:not(.dev-banner-closed) {
    padding-top: 50px;
}

/* Adjust navbar when banner is visible */
body:not(.dev-banner-closed) .navbar {
    top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .dev-banner {
        padding: 0.6rem 1rem;
    }
    
    .dev-banner-content {
        gap: 0.5rem;
    }
    
    .dev-banner-text {
        font-size: 0.8rem;
    }
    
    .dev-banner-icon {
        font-size: 1rem;
    }

    body:not(.dev-banner-closed) {
        padding-top: 45px;
    }

    body:not(.dev-banner-closed) .navbar {
        top: 45px;
    }
}

@media (max-width: 480px) {
    .dev-banner-text {
        line-height: 1.3;
    }
}

/* RESPONSIVE DESIGN */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .cta-stats {
        gap: 2rem;
    }
    
    .footer-content {
        text-align: center;
        flex-direction: column;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    /* Hide desktop auth, show mobile nav */
    .desktop-auth {
        display: none;
    }
    
    .mobile-auth {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile navigation menu */
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        z-index: 999;
        height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 0;
        width: 100%;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 92, 246, 0.1);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Container and spacing */
    :root {
        --container-padding: var(--mobile-padding);
    }
    
    .container {
        padding: 0 var(--mobile-padding);
    }
    
    .nav-container {
        padding: 0 var(--mobile-padding);
    }
    
    .hero-container {
        padding: 0 var(--mobile-padding);
    }

    /* Hero section mobile */
    .hero {
        min-height: 100vh;
        padding-top: var(--navbar-height);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: calc(100vh - var(--navbar-height));
    }
    
    .hero-visual {
        height: 250px;
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Services grid mobile */
    .services {
        padding: 4rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }

    /* CTA section mobile */
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat {
        max-width: 200px;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .hero-container {
        padding: 0 0.75rem;
    }
}

/* Very small mobile (max-width: 380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

    .floating-card {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .service-card {
        padding: 1.2rem;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

    .nav-menu {
        height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
    }
}

/* Hover states for touch devices */
@media (hover: none) and (pointer: coarse) {
    .floating-card:hover,
    .service-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    /* Make floating cards more visible on mobile */
    .floating-card {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    [data-theme="dark"] .floating-card {
        background: rgba(20, 20, 20, 0.95);
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    }
}