@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
    
    * {
        font-family: 'Inter', sans-serif;
    }
    
    html {
        scroll-behavior: smooth;
    }
    
    /* ===== VARIABLES CSS POUR DARK/LIGHT MODE ===== */
    :root {
        /* Backgrounds */
        --bg-primary: #0A0A0A;
        --bg-secondary: #000000;
        --bg-tertiary: #1a1a1a;
        --bg-card: #1f2937;
        --bg-card-hover: #374151;
        
        /* Textes */
        --text-primary: #ffffff;
        --text-secondary: #9ca3af;
        --text-tertiary: #6b7280;
        
        /* Bordures */
        --border-color: #374151;
        --border-light: #4b5563;
        
        /* Glass effect */
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.2);
        
        /* Shadows */
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="light"] {
        /* Backgrounds */
        --bg-primary: #ffffff;
        --bg-secondary: #f9fafb;
        --bg-tertiary: #f3f4f6;
        --bg-card: #ffffff;
        --bg-card-hover: #f9fafb;
        
        /* Textes */
        --text-primary: #0A0A0A;
        --text-secondary: #4b5563;
        --text-tertiary: #6b7280;
        
        /* Bordures */
        --border-color: #e5e7eb;
        --border-light: #d1d5db;
        
        /* Glass effect */
        --glass-bg: rgba(0, 0, 0, 0.05);
        --glass-border: rgba(0, 0, 0, 0.1);
        
        /* Shadows */
        --shadow: rgba(0, 0, 0, 0.1);
    }
    
    /* Application des variables */
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    /* ===== CLASSES RÉUTILISABLES ===== */
    .bg-dark {
        background-color: var(--bg-primary) !important;
    }
    
    .bg-black {
        background-color: var(--bg-secondary) !important;
    }
    
    .bg-gray-900 {
        background-color: var(--bg-card) !important;
    }
    
    .bg-gray-800 {
        background-color: var(--bg-tertiary) !important;
    }
    
    .text-white {
        color: var(--text-primary) !important;
    }
    
    .text-gray-300 {
        color: var(--text-secondary) !important;
    }
    
    .text-gray-400 {
        color: var(--text-secondary) !important;
    }
    
    .text-gray-500 {
        color: var(--text-tertiary) !important;
    }
    
    .border-gray-800 {
        border-color: var(--border-color) !important;
    }
    
    .border-gray-900 {
        border-color: var(--border-light) !important;
    }
    
    /* Glass effect */
    .glass {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border) !important;
    }
    
    /* Gradient (reste identique) */
    .gradient-text {
        background: linear-gradient(135deg, #FF1B2D 0%, #7B00D3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .gradient-bg {
        background: linear-gradient(135deg, #FF1B2D 0%, #7B00D3 100%);
    }
    
    /* ===== SECTIONS SPÉCIFIQUES ===== */
    
    /* Hero sections avec gradient */
    section[class*="gradient"] {
        position: relative;
    }
    
    section .absolute.inset-0 {
        background-color: var(--bg-secondary);
    }
    
    /* Cards et conteneurs */
    .bg-gradient-to-br {
        background: linear-gradient(to bottom right, var(--bg-card), var(--bg-secondary)) !important;
    }
    
    .bg-gradient-to-b {
        background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary)) !important;
    }
    
    /* Navbar */
    #navbar {
        color: var(--text-primary);
    }
    
    .navbar-scrolled {
        background: var(--bg-primary) !important;
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px var(--shadow);
    }
    
    /* Menu mobile */
    #mobile-menu {
        background: var(--bg-primary) !important;
        border-color: var(--border-color) !important;
    }
    
    /* Footer */
    footer {
        background-color: var(--bg-secondary) !important;
        border-top-color: var(--border-color) !important;
    }
    
    /* Hover effects */
    .hover\:bg-primary:hover {
        background-color: #FF1B2D !important;
    }
    
    .hover\:bg-gray-700:hover {
        background-color: var(--bg-card-hover) !important;
    }
    
    .hover\:text-white:hover {
        color: var(--text-primary) !important;
    }
    
    .hover\:text-primary:hover {
        color: #FF1B2D !important;
    }
    
    .hover\:border-primary:hover {
        border-color: #FF1B2D !important;
    }
    
    /* ===== ANIMATIONS ===== */
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
    }
    
    .hover-scale {
        transition: transform 0.3s ease;
    }
    
    .hover-scale:hover {
        transform: scale(1.05);
    }
    
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* ===== THEME SWITCH ===== */
    .theme-switch {
        position: relative;
        width: 60px;
        height: 30px;
        background: var(--bg-tertiary);
        border-radius: 30px;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .theme-switch-slider {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #FF1B2D, #7B00D3);
        border-radius: 50%;
        transition: transform 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
    }
    
    [data-theme="light"] .theme-switch-slider {
        transform: translateX(30px);
    }
    
    /* ===== LOADER ===== */
    #page-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    
    #page-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }
    
    .loader-logo {
        width: 120px;
        height: 120px;
        position: relative;
        animation: pulse 2s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            filter: drop-shadow(0 0 20px rgba(255, 27, 45, 0.5));
        }
        50% {
            transform: scale(1.1);
            filter: drop-shadow(0 0 40px rgba(123, 0, 211, 0.8));
        }
    }
    
    .electric-effect {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    
    .electric-bolt {
        position: absolute;
        width: 2px;
        height: 30px;
        background: linear-gradient(to bottom, rgba(255, 27, 45, 0), #FF1B2D, rgba(255, 27, 45, 0));
        animation: electricBolt 1.5s ease-in-out infinite;
        opacity: 0;
    }
    
    .electric-bolt:nth-child(1) {
        top: -30px;
        left: 30%;
        animation-delay: 0s;
    }
    
    .electric-bolt:nth-child(2) {
        top: -30px;
        right: 30%;
        animation-delay: 0.3s;
    }
    
    .electric-bolt:nth-child(3) {
        bottom: -30px;
        left: 40%;
        animation-delay: 0.6s;
        background: linear-gradient(to bottom, rgba(123, 0, 211, 0), #7B00D3, rgba(123, 0, 211, 0));
    }
    
    .electric-bolt:nth-child(4) {
        bottom: -30px;
        right: 40%;
        animation-delay: 0.9s;
        background: linear-gradient(to bottom, rgba(123, 0, 211, 0), #7B00D3, rgba(123, 0, 211, 0));
    }
    
    @keyframes electricBolt {
        0%, 100% {
            opacity: 0;
            transform: translateY(0);
        }
        50% {
            opacity: 1;
            transform: translateY(20px);
        }
    }
    
    .energy-ring {
        position: absolute;
        border: 2px solid;
        border-radius: 50%;
        animation: expandRing 2s ease-out infinite;
    }
    
    .energy-ring:nth-child(1) {
        width: 100px;
        height: 100px;
        border-color: rgba(255, 27, 45, 0.3);
        animation-delay: 0s;
    }
    
    .energy-ring:nth-child(2) {
        width: 100px;
        height: 100px;
        border-color: rgba(123, 0, 211, 0.3);
        animation-delay: 0.5s;
    }
    
    .energy-ring:nth-child(3) {
        width: 100px;
        height: 100px;
        border-color: rgba(255, 27, 45, 0.2);
        animation-delay: 1s;
    }
    
    @keyframes expandRing {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        100% {
            transform: scale(2.5);
            opacity: 0;
        }
    }
    
    .loader-text {
        margin-top: 30px;
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(135deg, #FF1B2D, #7B00D3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: fadeInOut 2s ease-in-out infinite;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
    
    .loader-progress {
        width: 200px;
        height: 3px;
        background: var(--bg-tertiary);
        border-radius: 10px;
        margin-top: 20px;
        overflow: hidden;
    }
    
    .loader-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #FF1B2D, #7B00D3);
        animation: loadingProgress 2s ease-in-out infinite;
        border-radius: 10px;
    }
    
    @keyframes loadingProgress {
        0% { width: 0%; }
        50% { width: 70%; }
        100% { width: 100%; }
    }
    
    /* ===== INPUTS ET FORMULAIRES ===== */
    input, textarea, select {
        background-color: var(--bg-card) !important;
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: #FF1B2D !important;
    }
    
    /* ===== OMBRES ===== */
    .shadow-lg, .shadow-xl, .shadow-2xl {
        box-shadow: 0 10px 40px var(--shadow) !important;
    }
    
    /* ===== MODE CLAIR - AJUSTEMENTS SPÉCIAUX ===== */
    [data-theme="light"] .bg-primary\/20 {
        background-color: rgba(255, 27, 45, 0.1) !important;
    }
    
    [data-theme="light"] .bg-primary\/10 {
        background-color: rgba(255, 27, 45, 0.05) !important;
    }
    
    [data-theme="light"] .text-primary {
        color: #FF1B2D !important;
    }
    
    /* Boutons sociaux en mode clair */
    [data-theme="light"] .bg-gray-900 {
        background-color: #e5e7eb !important;
    }
    
    [data-theme="light"] .bg-gray-900:hover {
        background-color: #FF1B2D !important;
        color: white !important;
    }
    /* Badge "Nouveau" */
    [data-theme="light"] .glass {
        background: rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: var(--text-primary) !important;
    }
    
    /* Si tu veux que le texte du badge soit visible en mode clair */
    [data-theme="light"] .glass span {
        color: #1f2937 !important;
    }
    
    /* Texte gris en mode clair */
    [data-theme="light"] .text-gray-200 {
        color: #4b5563 !important;
    }
    
    [data-theme="light"] .text-gray-300 {
        color: #6b7280 !important;
    }



    /* ===== HERO SECTION AVEC IMAGE DE FOND ===== */

/* Container principal du hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

/* Image de fond avec effet parallaxe */
.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Overlays pour meilleure lisibilité */
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.6) 50%, 
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 27, 45, 0.2) 0%, 
        transparent 50%, 
        rgba(123, 0, 211, 0.2) 100%
    );
    z-index: 2;
}

/* Effet de vignette sur les bords */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 3;
}

/* Particules animées */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    top: 25%;
    left: 25%;
    width: 8px;
    height: 8px;
    background: #FF1B2D;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    top: 33%;
    right: 25%;
    width: 12px;
    height: 12px;
    background: #7B00D3;
    animation-delay: 2s;
}

.hero-particle:nth-child(3) {
    bottom: 25%;
    left: 33%;
    width: 8px;
    height: 8px;
    background: #FF1B2D;
    animation-delay: 4s;
}

/* Contenu du hero */
.hero-content {
    position: relative;
    z-index: 20;
}

/* Badge "Nouveau" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge-pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Titre principal avec effet de texte */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* Texte avec gradient */
.hero-gradient-text {
    background: linear-gradient(135deg, #FF1B2D 0%, #7B00D3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Sous-titre */
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 48rem;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Boutons CTA */
.hero-cta-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@media (min-width: 640px) {
    .hero-cta-container {
        flex-direction: row;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #FF1B2D 0%, #7B00D3 100%);
    color: white;
}

.hero-btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 27, 45, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Stats section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF1B2D 0%, #7B00D3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animation fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Animation pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 4rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    /* Désactiver le zoom de l'image sur mobile */
    .hero-background img {
        animation: none;
    }
}

@media (max-width: 640px) {
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-particle {
        display: none; /* Cacher les particules sur très petits écrans */
    }
}

/* ===== MODE CLAIR ===== */

[data-theme="light"] .hero-overlay-dark {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(255, 255, 255, 0.75) 50%, 
        rgba(255, 255, 255, 0.9) 100%
    );
}

[data-theme="light"] .hero-subtitle {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .hero-stat-label {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0A0A0A;
}

[data-theme="light"] .hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-scroll-indicator i {
    color: rgba(0, 0, 0, 0.5);
}

/* ===== OPTIMISATIONS PERFORMANCE ===== */

/* Améliorer les performances des animations */
.hero-background img,
.hero-particle,
.hero-badge,
.hero-title,
.hero-subtitle {
    will-change: transform;
}

/* Préférence de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .hero-background img,
    .hero-particle,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-scroll-indicator {
        animation: none !important;
    }
    
    .hero-btn:hover {
        transform: none !important;
    }
}





/* ===== NOUVEAU CARROUSEL DE PROJETS ===== */

.projects-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay avec gradient */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    padding: 3rem 2rem 2rem;
    z-index: 2;
}

.slide-content {
    max-width: 800px;
}

/* Badge du projet */
.slide-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #FF1B2D, #ff4757);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #7B00D3, #9b59b6);
    color: white;
}

/* Titre du projet */
.slide-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* Description */
.slide-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* 🎮 Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, #FF1B2D, #7B00D3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 27, 45, 0.4);
}

.carousel-prev {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

/* 📍 Indicateurs (dots) */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    width: 32px;
    border-radius: 5px;
    background: linear-gradient(135deg, #FF1B2D, #7B00D3);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 400px;
    }

    .slide-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.95rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }

    .carousel-dots {
        bottom: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 350px;
    }

    .slide-title {
        font-size: 1.25rem;
    }

    .slide-description {
        font-size: 0.875rem;
    }
}

/* ===== MODE CLAIR ===== */

[data-theme="light"] .projects-carousel {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .slide-overlay {
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        transparent 100%
    );
}

[data-theme="light"] .slide-title {
    color: #0A0A0A;
}

[data-theme="light"] .slide-description {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .carousel-nav {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0A0A0A;
}

[data-theme="light"] .carousel-nav:hover {
    background: linear-gradient(135deg, #FF1B2D, #7B00D3);
    color: white;
}

[data-theme="light"] .dot {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .dot:hover {
    background: rgba(0, 0, 0, 0.5);
}






    /* ===== CAROUSEL - VERSION CORRIGÃe ===== */
#carousel {
    position: relative;
    width: 100%;
}

#carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Forcer l'affichage du premier slide au chargement */
.carousel-slide:first-child {
    opacity: 1 !important;
    z-index: 1 !important;
}




    
    /* Container responsive */
    .container {
        width: 100%;
        margin: 0 auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    @media (min-width: 640px) {
        .container { max-width: 640px; }
    }
    
    @media (min-width: 768px) {
        .container { max-width: 768px; }
    }
    
    @media (min-width: 1024px) {
        .container { max-width: 1024px; }
    }
    
    @media (min-width: 1280px) {
        .container { max-width: 1280px; }
    }
    
    /* ===== NAVBAR RESPONSIVE ===== */
    @media (max-width: 768px) {
        #navbar .container {
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        #navbar .text-2xl {
            font-size: 1.25rem;
        }
        
        #navbar img {
            width: 2rem;
            height: 2rem;
        }
    }
    
    /* ===== MENU MOBILE ===== */
    @media (max-width: 768px) {
        #mobile-menu {
            max-height: calc(100vh - 80px);
            overflow-y: auto;
        }
        
        #mobile-menu a {
            font-size: 0.95rem;
        }
    }
    
    /* ===== HERO SECTIONS RESPONSIVE ===== */
    @media (max-width: 768px) {
        /* Titres hero */
        .text-5xl { font-size: 2rem !important; }
        .text-6xl { font-size: 2.5rem !important; }
        .text-7xl { font-size: 3rem !important; }
        .text-8xl { font-size: 3.5rem !important; }
        
        /* Sous-titres */
        .text-xl { font-size: 1rem !important; }
        .text-2xl { font-size: 1.25rem !important; }
        
        /* Padding des sections */
        .py-32 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
        .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
        .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
        
        /* Hero min-height */
        .min-h-screen { min-height: auto !important; padding-top: 6rem; padding-bottom: 4rem; }
        section[class*="min-h-"] { min-height: auto !important; padding-top: 5rem; padding-bottom: 3rem; }
    }
    
    /* ===== BOUTONS RESPONSIVE ===== */
    @media (max-width: 640px) {
        .px-10 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
        .px-8 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
        .py-5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
        .py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
        
        /* Boutons en pleine largeur sur mobile */
        a[class*="rounded-full"].gradient-bg,
        button[class*="rounded-full"].gradient-bg {
            width: 100%;
            text-align: center;
        }
    }
    
    /* ===== GRILLES RESPONSIVE ===== */
    @media (max-width: 768px) {
        /* Force 1 colonne sur mobile */
        .md\:grid-cols-2,
        .md\:grid-cols-3,
        .md\:grid-cols-4,
        .md\:grid-cols-5 {
            grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        }
        
        /* Espacement réduit */
        .gap-12 { gap: 2rem !important; }
        .gap-8 { gap: 1.5rem !important; }
        .gap-6 { gap: 1rem !important; }
    }
    
    /* Grilles spéciales (comme les stats 3 colonnes) */
    @media (max-width: 640px) {
        .grid-cols-3 {
            grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
            gap: 1.5rem !important;
        }
        
        .grid-cols-2 {
            grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        }
    }
    
    /* ===== CARDS ET CONTENEURS ===== */
    @media (max-width: 768px) {
        .p-12 { padding: 2rem !important; }
        .p-8 { padding: 1.5rem !important; }
        .p-6 { padding: 1.25rem !important; }
        
        .rounded-3xl { border-radius: 1.5rem !important; }
        .rounded-2xl { border-radius: 1rem !important; }
        
        /* Cards glassmorphism */
        .glass {
            padding: 1.5rem;
        }
    }
    
    /* ===== FOOTER RESPONSIVE ===== */
    @media (max-width: 768px) {
        footer .grid {
            grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
            gap: 2rem !important;
        }
        
        footer .md\:col-span-2 {
            grid-column: span 1 !important;
        }
        
        footer .flex-col {
            text-align: center;
        }
        
        footer .flex.space-x-4 {
            justify-content: center;
        }
    }
    
    /* ===== IMAGES ET MÉDIAS ===== */
    @media (max-width: 768px) {
        img {
            max-width: 100%;
            height: auto;
        }
        
        .aspect-video {
            aspect-ratio: 16 / 9;
        }
        
        /* Logos */
        .w-16 { width: 3rem !important; height: 3rem !important; }
        .w-12 { width: 2.5rem !important; height: 2.5rem !important; }
    }
    
    /* ===== ESPACEMENTS RESPONSIVE ===== */
    @media (max-width: 768px) {
        .space-x-8 > * + * { margin-left: 1rem !important; }
        .space-x-6 > * + * { margin-left: 0.75rem !important; }
        .space-x-4 > * + * { margin-left: 0.5rem !important; }
        
        .space-y-8 > * + * { margin-top: 1.5rem !important; }
        .space-y-6 > * + * { margin-top: 1rem !important; }
        
        .mb-16 { margin-bottom: 2.5rem !important; }
        .mb-12 { margin-bottom: 2rem !important; }
        .mb-8 { margin-bottom: 1.5rem !important; }
    }
    
    /* ===== TEXTES RESPONSIVE ===== */
    @media (max-width: 768px) {
        .text-4xl { font-size: 1.75rem !important; }
        .text-3xl { font-size: 1.5rem !important; }
        
        .leading-tight { line-height: 1.3 !important; }
        .leading-relaxed { line-height: 1.6 !important; }
        
        /* Centrer les textes sur mobile */
        h1, h2 {
            text-align: center;
        }
    }
    
    /* ===== FORMULAIRES RESPONSIVE ===== */
    @media (max-width: 640px) {
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        textarea {
            font-size: 16px !important; /* Évite le zoom sur iOS */
        }
        
        /* Formulaires en colonne sur mobile */
        .sm\:flex-row {
            flex-direction: column !important;
        }
        
        .max-w-2xl,
        .max-w-3xl,
        .max-w-4xl,
        .max-w-5xl {
            max-width: 100% !important;
        }
    }
    
    /* ===== LOADER RESPONSIVE ===== */
    @media (max-width: 768px) {
        .loader-logo {
            width: 80px !important;
            height: 80px !important;
        }
        
        .loader-text {
            font-size: 14px !important;
        }
        
        .loader-progress {
            width: 150px !important;
        }
        
        .energy-ring {
            width: 70px !important;
            height: 70px !important;
        }
    }
    
    /* ===== MESSAGES RESPONSIVE ===== */
    @media (max-width: 640px) {
        .fixed.top-24 {
            top: 5rem !important;
            right: 1rem !important;
            left: 1rem !important;
        }
        
        .glass.max-w-md {
            max-width: 100% !important;
        }
    }
    
    /* ===== BADGES ET TAGS ===== */
    @media (max-width: 640px) {
        .px-6.py-3.rounded-full {
            padding: 0.5rem 1rem !important;
            font-size: 0.875rem !important;
        }
        
        .px-4.py-2.rounded-full {
            padding: 0.375rem 0.75rem !important;
            font-size: 0.8rem !important;
        }
    }
    
    /* ===== FLEX RESPONSIVE ===== */
    @media (max-width: 768px) {
        .md\:flex-row {
            flex-direction: column !important;
        }
        
        .md\:justify-between {
            justify-content: center !important;
            text-align: center;
        }
        
        .md\:items-center {
            align-items: center !important;
        }
    }
    
    /* ===== SECTIONS SPÉCIFIQUES ===== */
    
    /* Stats section */
    @media (max-width: 640px) {
        .grid-cols-4 {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 1rem !important;
        }
    }
    
    /* Services cards */
    @media (max-width: 768px) {
        .hover-scale {
            transform: none !important;
        }
        
        .hover-scale:hover {
            transform: scale(1.02) !important;
        }
    }
    
    /* Testimonials */
    @media (max-width: 768px) {
        .w-32.h-32 {
            width: 4rem !important;
            height: 4rem !important;
        }
    }
    
    /* Blog cards */
    @media (max-width: 768px) {
        .h-48 {
            height: 12rem !important;
        }
    }
    
    /* ===== OPTIMISATIONS TACTILES ===== */
    @media (hover: none) {
        /* Désactiver les effets hover sur tactile */
        .hover\:scale-105:hover,
        .hover-scale:hover {
            transform: none !important;
        }
        
        /* Augmenter les zones tactiles */
        a, button {
            min-height: 44px;
            min-width: 44px;
        }
    }
    
    /* ===== LANDSCAPE MOBILE ===== */
    @media (max-width: 768px) and (orientation: landscape) {
        .min-h-screen {
            min-height: auto !important;
            padding-top: 4rem;
            padding-bottom: 2rem;
        }
        
        .py-20 {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }
    }
    
    /* ===== TABLETTES (768px - 1024px) ===== */
    @media (min-width: 768px) and (max-width: 1024px) {
        .text-7xl { font-size: 4rem !important; }
        .text-6xl { font-size: 3.5rem !important; }
        .text-5xl { font-size: 3rem !important; }
        
        .md\:grid-cols-3 {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
        
        .md\:grid-cols-4 {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
    }
    
    /* ===== PETITS ÉCRANS (< 375px) ===== */
    @media (max-width: 375px) {
        .text-5xl { font-size: 1.75rem !important; }
        .text-6xl { font-size: 2rem !important; }
        .text-7xl { font-size: 2.5rem !important; }
        
        .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
        .px-4 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
        
        .container {
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }
    }
    
    /* ===== GRANDS ÉCRANS (> 1536px) ===== */
    @media (min-width: 1536px) {
        .container {
            max-width: 1536px;
        }
    }
    
    /* ===== PRINT (Impression) ===== */
    @media print {
        #navbar,
        #mobile-menu,
        footer,
        #page-loader,
        .gradient-bg,
        .theme-switch {
            display: none !important;
        }
        
        body {
            background: white !important;
            color: black !important;
        }
        
        .fade-in {
            opacity: 1 !important;
            transform: none !important;
        }
    }
    
    /* ===== ACCESSIBILITÉ ===== */
    
    /* Focus visible pour navigation clavier */
    @media (prefers-reduced-motion: no-preference) {
        *:focus-visible {
            outline: 2px solid #FF1B2D;
            outline-offset: 2px;
            border-radius: 0.25rem;
        }
    }
    
    /* Réduire les animations si demandé */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        
        .animate-float,
        .loader-logo,
        .electric-bolt,
        .energy-ring {
            animation: none !important;
        }
    }
    
    /* ===== DÉBORDEMENT TEXTE ===== */
    @media (max-width: 768px) {
        h1, h2, h3, h4, h5, h6 {
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }
        
        p {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
    }
    
    /* ===== SCROLL HORIZONTAL PREVENTION ===== */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }