/* Reset et Variables */
:root {
    --primary-color: #00bcd4;
    --secondary-color: #0891b2;
    --accent-color: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #00bcd4, #0891b2);
    --gradient-secondary: linear-gradient(135deg, #0891b2, #0f766e);
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --text-light: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-primary: 0 10px 25px rgba(0, 188, 212, 0.2);
    --shadow-secondary: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    
    /* Breakpoints pour une meilleure organisation */
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1200px;
    --xl-desktop: 1440px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base responsive - Forcer le respect de la largeur sur tous les appareils */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 16px; /* Base font size */
    margin: 0;
    padding: 0;
}

/* Correction globale pour éviter les débordements */
* {
    box-sizing: border-box;
}

/* Container responsive universel */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Correction spécifique pour les images et médias */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Correction pour éviter les débordements horizontaux */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 90px; /* Compensation pour la navbar fixe */
    perspective: 1000px;
    perspective-origin: center center;
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
}

/* ============================================ */
/* BREAKPOINTS RESPONSIVE COMPLETS             */
/* ============================================ */

/* Extra Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
    
    .services-grid {
        gap: 1.5rem;
    }
    
    .service-card {
        min-width: 220px;
        max-width: 280px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .tools-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Large Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        gap: 1.2rem;
    }
    
    .service-card {
        min-width: 200px;
        max-width: 250px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 1000px;
        padding: 0 25px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        min-width: 180px;
        max-width: 220px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .tools-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .services-grid {
        gap: 0.8rem;
    }
    
    .service-card {
        min-width: 160px;
        max-width: 200px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tools-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
    
    .hero-logo {
        width: 250px;
        height: 250px;
        min-width: 250px;
        min-height: 250px;
        object-fit: cover;
    }
    
    .fallback-logo {
        width: 250px;
        height: 250px;
        min-width: 250px;
        min-height: 250px;
    }
    
    .hero-logo-canvas {
        width: 250px;
        height: 250px;
        min-width: 250px;
        min-height: 250px;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .services-grid {
        gap: 0.8rem;
    }
    
    .service-card {
        min-width: 150px;
        max-width: 180px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .tools-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        display: flex;
        align-items: center;
        overflow: visible;
        position: relative;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }
    
    .fallback-logo {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }
    
    .hero-logo-canvas {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Mobile (320px - 480px) */
/* ============================================ */
/* NAVIGATION RESPONSIVE                       */
/* ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Suppression de tous les effets de survol sur la navigation */
.nav-link:hover {
    /* Aucun effet - comportement par défaut */
}

.nav-menu .nav-item .nav-link:hover {
    /* Aucun effet - comportement par défaut */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* ============================================ */
/* HERO SECTION RESPONSIVE                     */
/* ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 2rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    pointer-events: auto !important;
    text-align: center;
    min-width: fit-content;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    /* Aucun effet - comportement par défaut */
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    /* Aucun effet - comportement par défaut */
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
}

.hero-logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transition: var(--transition);
    object-fit: cover;
    flex-shrink: 0;
}

.fallback-logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    flex-shrink: 0;
}

.hero-logo-canvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================ */
/* SECTIONS RESPONSIVE                         */
/* ============================================ */

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================ */
/* BREAKPOINTS MOBILE OPTIMISÉS                */
/* ============================================ */

@media (max-width: 480px) {
    /* Container et padding optimisés */
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 10px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Correction spécifique pour les éléments du hero */
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 1.5rem;
        width: 140px;
        height: 140px;
        justify-content: center;
        display: flex;
        align-items: center;
        overflow: visible;
        position: relative;
        margin-left: auto;
        margin-right: auto;
        flex-shrink: 0;
    }
    
    .floating-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 140px;
        height: 140px;
        flex-shrink: 0;
    }
    
    /* Typographie optimisée pour mobile */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .gradient-text {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .typewriter {
        font-size: 1rem;
        min-height: 1.3rem;
        height: 1.3rem;
        line-height: 1.3rem;
        text-align: center;
        display: block;
    }
    
    /* Grilles optimisées pour mobile */
    .service-card {
        min-width: 130px;
        max-width: 160px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
        padding: 0;
    }
    
    .tools-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Portfolio filters optimisés */
    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        background: var(--dark-secondary);
        color: var(--text-light);
        border: 1px solid var(--dark-tertiary);
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: fit-content;
    }
    
    .filter-btn.active,
    .filter-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }
    
    /* Hero section optimisée */
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        position: relative;
    }
    
    .hero-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    
    .scroll-indicator {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-secondary);
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
        border-right: 2px solid var(--text-secondary);
        border-bottom: 2px solid var(--text-secondary);
        transform: rotate(45deg);
        animation: scrollBounce 2s infinite;
    }
    
    @keyframes scrollBounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0) rotate(45deg);
        }
        40% {
            transform: translateY(-10px) rotate(45deg);
        }
        60% {
            transform: translateY(-5px) rotate(45deg);
        }
    }
    
    .hero-logo {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        object-fit: cover;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .fallback-logo {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .hero-logo-canvas {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    /* Boutons optimisés */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 0.9rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Cards et formulaires optimisés */
    .service-card,
    .contact-form,
    .quote-form {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-item {
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
    
    /* Portfolio items optimisés */
    .portfolio-item {
        background: var(--dark-secondary);
        border-radius: var(--border-radius);
        overflow: visible;
        box-shadow: var(--shadow-secondary);
        transition: var(--transition);
        border: 1px solid var(--dark-tertiary);
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .portfolio-image {
        position: relative;
        overflow: hidden;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        aspect-ratio: 16/9;
        width: 100%;
        height: auto;
    }
    
    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
        display: block;
    }
    
    .portfolio-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: var(--transition);
    }
    
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }
    
    .portfolio-content {
        text-align: center;
        color: var(--text-light);
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .portfolio-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--text-light);
    }
    
    .project-date {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
    }
    
    .portfolio-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .tech-tag {
        background: var(--primary-color);
        color: var(--white);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .portfolio-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: var(--white);
        border-radius: 50%;
        text-decoration: none;
        transition: var(--transition);
        margin-top: 1rem;
    }
    
    .portfolio-link:hover {
        transform: scale(1.1);
        background: var(--secondary-color);
    }
    
    /* Navigation mobile optimisée */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Sélecteur de langue optimisé */
    .language-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .language-menu {
        min-width: 180px;
        right: -10px;
    }
    
    /* Footer optimisé */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Très petit mobile (moins de 320px) */

@media (max-width: 319px) {
    /* Container et padding optimisés pour très petits écrans */
    .container {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-container {
        padding: 0 8px;
    }
    
    .hero-content {
        padding: 0 8px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    /* Typographie optimisée pour très petits écrans */
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .typewriter {
        font-size: 0.9rem;
        min-height: 1.2rem;
        height: 1.2rem;
        line-height: 1.2rem;
    }
    
    /* Hero section optimisée */
    .hero {
        min-height: 85vh;
        padding: 0.8rem 0;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 1.2rem;
        width: 120px;
        height: 120px;
        justify-content: center;
        display: flex;
        align-items: center;
        overflow: visible;
        position: relative;
        margin-left: auto;
        margin-right: auto;
        flex-shrink: 0;
    }
    
    .hero-logo,
    .fallback-logo,
    .hero-logo-canvas {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        object-fit: cover;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    /* Boutons optimisés */
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 260px;
        padding: 10px 20px;
        font-size: 0.85rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Cards et formulaires optimisés */
    .service-card,
    .contact-form,
    .quote-form {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    /* Navigation optimisée */
    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    /* Sélecteur de langue optimisé */
    .language-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .language-menu {
        min-width: 160px;
        right: -8px;
    }
}

/* ============================================ */
/* CORRECTIONS SPÉCIFIQUES POUR LES ÉLÉMENTS   */
/* ============================================ */

/* Correction globale pour éviter les débordements */
html, body, div, section, nav, ul, li, img, video, iframe {
    max-width: 100%;
    box-sizing: border-box;
}

/* Correction spécifique pour portfolio */
.portfolio, .portfolio .container, .portfolio-grid, .portfolio-item {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

/* Correction spécifique pour les images portfolio */
.portfolio-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.portfolio-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Effets simplifiés pour les boutons */
.btn, .btn-primary, .btn-secondary {
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-primary:hover {
    /* Aucun effet - comportement par défaut */
}

.btn-secondary:hover {
    /* Aucun effet - comportement par défaut */
}

/* Correction spécifique pour éviter la barre de scroll horizontale */
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

    /* Correction pour les conteneurs principaux */
    .container, .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Correction spécifique pour éviter les coupures */
    .hero, .hero-content, .hero-visual, .floating-logo {
        overflow: visible !important;
        max-width: none !important;
        max-height: none !important;
    }

    /* Correction spécifique pour hero-content */
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }

    /* Correction pour les grilles */
    .services-grid, .tools-content, .contact-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Correction spécifique pour portfolio-grid */
    .portfolio-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        box-sizing: border-box !important;
    }

    /* Correction pour les éléments qui dépassent */
    @media (max-width: 768px) {
        * {
            max-width: 100%;
        }
        
        body {
            overflow-x: hidden;
            position: relative;
        }
        
        .container,
        .hero-content,
        .services .container,
        .tools .container,
        .contact .container,
        .quote .container {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }
        
            /* Correction spécifique pour navigation */
    .nav-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
        z-index: 1002;
    }
    
    /* S'assurer que le hamburger est visible */
    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001;
        position: relative;
    }
    
    /* Effets simplifiés pour les boutons sur mobile */
    .btn, .btn-primary, .btn-secondary {
        pointer-events: auto !important;
        cursor: pointer !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
        touch-action: manipulation !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: fit-content !important;
    }
    
    /* Effets simplifiés pour navigation sur mobile */
    .nav-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
        transform: none !important;
        filter: none !important;
    }
    
    /* Effets simplifiés pour les filtres portfolio */
    .filter-btn {
        pointer-events: auto !important;
        cursor: pointer !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: fit-content !important;
    }
    
    .filter-btn:hover {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }
        
        /* Correction spécifique pour portfolio */
        .portfolio .container {
            width: 100%;
            max-width: 100%;
            overflow: visible;
            padding: 0 5px;
            box-sizing: border-box;
        }
        
        .portfolio-grid {
            width: 100%;
            max-width: 100%;
            overflow: visible;
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .portfolio-item {
            width: 100%;
            max-width: 100%;
            overflow: visible;
            margin-bottom: 0;
            box-sizing: border-box;
            padding: 0;
        }
    
    /* Correction spécifique pour les éléments qui dépassent */
    section,
    div,
    ul,
    li,
    img,
    video,
    iframe {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Correction pour les grilles */
    .services-grid,
    .portfolio-grid,
    .tools-content,
    .contact-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Correction pour les formulaires */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Correction pour le footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Correction pour le sélecteur de langue */
    .language-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .language-menu {
        min-width: 160px;
        right: -20px;
    }
}

/* ============================================ */
/* OPTIMISATIONS POUR L'ORIENTATION            */
/* ============================================ */

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .hero-content {
        gap: 1rem;
        padding: 0 15px;
    }
    
    .hero-visual {
        max-width: 160px;
        margin-bottom: 1rem;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
    }
    
    .fallback-logo {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
    }
    
    .hero-logo-canvas {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Orientation portrait sur tablette */
@media (min-width: 481px) and (max-width: 1023px) and (orientation: portrait) {
    .hero {
        min-height: 75vh;
    }
    
    .hero-content {
        gap: 2rem;
    }
}

/* ============================================ */
/* OPTIMISATIONS POUR LES ÉCRANS HAUTE DENSITÉ */
/* ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .hero-logo,
    .fallback-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================ */
/* FOOTER ET ÉLÉMENTS FINAUX                   */
/* ============================================ */

.footer {
    background: var(--dark-secondary);
    padding: 3rem 0;
    border-top: 1px solid var(--dark-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ============================================ */
/* SÉLECTEUR DE LANGUE RESPONSIVE              */
/* ============================================ */

.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid var(--dark-tertiary);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.language-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-secondary);
    border: 1px solid var(--dark-tertiary);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow-secondary);
    z-index: 1000;
    display: none;
}

.language-menu.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.language-option:hover {
    background: var(--dark-tertiary);
    color: var(--primary-color);
}

.language-option.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================ */
/* UTILITAIRES RESPONSIVE                      */
/* ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* ============================================ */
/* OPTIMISATIONS POUR L'ACCESSIBILITÉ          */
/* ============================================ */

/* Mode haute performance et accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .space-invader,
    .cursor-trail,
    .floating-logo {
        animation: none !important;
        transition: none !important;
    }
}

/* Mode sombre système */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0a0a;
        --dark-secondary: #1a1a1a;
        --dark-tertiary: #2a2a2a;
    }
}

/* Mode clair système */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #f8fafc;
        --dark-secondary: #e2e8f0;
        --dark-tertiary: #cbd5e1;
        --text-light: #1e293b;
        --text-secondary: #475569;
        --text-muted: #64748b;
    }
}

/* Utilitaires */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* Responsive pour les titres de section */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: none;
}

.btn::before {
    display: none;
}

.btn:hover::before {
    display: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    /* Aucun effet - comportement par défaut */
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    /* Aucun effet - comportement par défaut */
}

/* Navigation - Version complètement refaite */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(35px);
    padding: 0.7rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    /* Aucun effet - comportement par défaut */
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
    transition: none;
}

.nav-logo:hover img {
    /* Aucun effet - comportement par défaut */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Liens de navigation - Version simplifiée et moderne */
.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: block;
    background: transparent;
    border: 1px solid transparent;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 188, 212, 0.1) !important;
    transform: none !important;
    filter: none !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 188, 212, 0.15) !important;
    transform: none !important;
    filter: none !important;
}

/* Suppression de tous les effets de survol sur la navigation */
.nav-link:hover {
    /* Aucun effet - comportement par défaut */
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 188, 212, 0.15) !important;
    transform: none !important;
    filter: none !important;
}

/* Sélecteur de langue */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    color: var(--text-light);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    /* Aucun effet - comportement par défaut */
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-option:hover {
    /* Aucun effet - comportement par défaut */
}

.language-option.active {
    background: rgba(0, 188, 212, 0.2);
    color: var(--accent-color);
}

.language-option img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* Menu hamburger pour mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover .bar {
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(0, 188, 212, 0.2);
        z-index: 1000;
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 1002;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        display: block;
        border-bottom: 1px solid rgba(0, 188, 212, 0.1);
        transform: none !important;
        filter: none !important;
        pointer-events: auto !important;
    }
    
    .nav-link:hover {
        color: var(--primary-color) !important;
        background: transparent !important;
        transform: none !important;
        filter: none !important;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 1002;
    }
    
    .nav-menu {
        padding: 1.5rem;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid rgba(0, 188, 212, 0.1);
        transform: none !important;
        filter: none !important;
        pointer-events: auto !important;
    }
    
    .nav-link:hover {
        /* Aucun effet - comportement par défaut */
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 188, 212, 0.05));
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    display: none;
}

.language-btn:hover::before {
    display: none;
}

.language-btn:hover {
    /* Aucun effet - comportement par défaut */
}

/* Suppression de l'animation pour le bouton de langue */
.language-dropdown.active .language-btn {
    /* Aucun effet - comportement par défaut */
}

/* Suppression de l'animation pulse */
@keyframes languagePulse {
    /* Animation supprimée */
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 188, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--dark-tertiary);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--dark-tertiary);
    position: relative;
    overflow: hidden;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option::before {
    display: none;
}

.language-option:hover::before {
    display: none;
}

.language-option:hover {
    /* Aucun effet - comportement par défaut */
}

.language-option.active {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
}

.language-option img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    background: transparent !important;
    width: 100%;
    overflow-x: hidden;
}

.hero-particles {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: none !important;
    transform: none !important;
}

/* Rendre les sections transparentes pour laisser voir le fond global */
.services,
.portfolio,
.tools,
.contact {
    background: transparent !important;
}

/* Transparence des conteneurs internes pour laisser voir le fond global */
.services .container,
.portfolio .container,
.tools .container,
.contact .container,
.portfolio-grid,
.portfolio-page {
    background: transparent !important;
}

@keyframes particlesFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    z-index: 2;
    max-width: 100%;
    overflow-x: hidden;
    justify-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-title {
        text-align: center;
    }
}

.typewriter {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    animation: blink 1s step-end infinite;
    min-height: 2.2rem;
    height: 2.2rem;
    line-height: 2.2rem;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
}

@media (max-width: 768px) {
    .typewriter {
        text-align: center;
    }
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-description {
        text-align: center;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1500px;
    perspective-origin: center center;
    width: 100%;
    max-width: 400px;
}

.floating-logo {
    position: relative;
    animation: float 6s ease-in-out infinite;
    cursor: grab;
    transition: transform 0.1s ease-out;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

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

/* Canvas Three.js pour le logo */
.hero-logo-canvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: transparent;
    cursor: grab;
    transition: filter 0.3s ease;
    box-shadow: 0 0 40px rgba(0, 188, 212, 0.4), 
                0 0 80px rgba(0, 188, 212, 0.2);
    overflow: hidden;
}

.hero-logo-canvas:active {
    cursor: grabbing;
}

/* Logo fallback avec effets 3D CSS améliorés */
.hero-logo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    filter: 
        drop-shadow(0 0 40px rgba(0, 188, 212, 0.9))
        drop-shadow(0 0 80px rgba(0, 188, 212, 0.4))
        contrast(1.4)
        brightness(1.3)
        saturate(1.2);
    background: transparent;
    border-radius: 50%;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: none;
    outline: none;
    box-shadow: inset 0 0 40px rgba(0, 188, 212, 0.2);
    mix-blend-mode: screen;
    -webkit-mask: radial-gradient(circle, rgba(255,255,255,1) 65%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0.3) 95%, transparent 100%);
    mask: radial-gradient(circle, rgba(255,255,255,1) 65%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0.3) 95%, transparent 100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: visible;
    transform-origin: center center;
    cursor: grab;
}

.hero-logo:hover {
    filter: 
        drop-shadow(0 0 60px rgba(0, 188, 212, 1))
        drop-shadow(0 0 120px rgba(0, 188, 212, 0.6))
        contrast(1.6)
        brightness(1.5)
        saturate(1.4);
}

.hero-logo:active {
    cursor: grabbing;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* Anciennes tech-icons supprimées - remplacées par Space Invaders */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Services Section */
.services {
    padding: 1rem 0;
    background: var(--dark-secondary);
    width: 100%;
    overflow-x: hidden;
}

.services .container {
    max-width: 100%;
    overflow-x: hidden;
}

.services .container {
    padding-left: 40px;
    padding-right: 40px;
}

.services-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1rem 0;
}

@media (max-width: 1200px) {
    .service-card {
        min-width: 180px;
        max-width: 220px;
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 0.6rem;
        flex-shrink: 0;
        min-width: 160px;
        max-width: 200px;
    }
    
    .service-icon {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 0.5rem;
        flex-shrink: 0;
        min-width: 140px;
        max-width: 180px;
    }
    
    .service-icon {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .service-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .service-card p {
        font-size: 0.7rem;
    }
}

.service-card {
    background: var(--dark-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    height: fit-content;
    min-height: auto;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Media query redondante supprimée */

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
}

.service-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.service-card p {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    width: 100%;
    overflow-x: hidden;
}

.portfolio .container {
    padding-left: 40px;
    padding-right: 40px;
}

/* Responsive Portfolio */
@media (max-width: 768px) {
    .portfolio {
        padding: 4rem 0;
    }
    
    .portfolio .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portfolio {
        padding: 3rem 0;
    }
    
    .portfolio .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        padding: 10px 20px;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-weight: 500;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
}

.portfolio-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
    width: 100%;
    min-height: 600px;
}

.portfolio-page.hidden {
    display: none !important;
}

.portfolio-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Pagination */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-btn {
    background: var(--dark-tertiary);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Correction pour les écrans moyens */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .portfolio-page {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto);
    }
}

/* Correction pour les petits écrans */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .portfolio-page {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .portfolio-page {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, auto);
    }
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    opacity: 0.9;
}

.portfolio-image {
    position: relative;
    height: 200px;
    background: var(--dark-tertiary);
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.portfolio-media {
    position: relative;
    height: 200px;
    background: var(--dark-tertiary);
    overflow: hidden;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Overlay seulement pour les images, pas pour les vidéos */
.portfolio-item:has(.portfolio-image):hover .portfolio-overlay {
    opacity: 1;
}

/* Pour les vidéos, pas d'overlay au survol */
.portfolio-item:has(.portfolio-video):hover .portfolio-overlay {
    opacity: 0;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.portfolio-item:hover .portfolio-overlay {
    opacity: 0;
}

/* Styles pour les vidéos sans overlay bloquant */
.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
    pointer-events: none; /* Ne pas bloquer les interactions vidéo */
    z-index: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    pointer-events: auto; /* Permettre les interactions seulement au survol */
}

/* Styles pour les infos vidéo en dessous de l'encadré */
.portfolio-info-below {
    position: relative;
    background: var(--dark-tertiary);
    padding: 0.7rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -3px; /* Réduire le chevauchement */
    border-top: 1px solid rgba(0, 188, 212, 0.15);
}

.portfolio-info-below .portfolio-content {
    text-align: left;
}

.portfolio-info-below .portfolio-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.portfolio-info-below .portfolio-content h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-light);
}

.portfolio-info-below .project-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(0, 188, 212, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 188, 212, 0.4);
    backdrop-filter: blur(10px);
}

.portfolio-info-below .portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.85rem;
}

.portfolio-info-below .portfolio-tech {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.portfolio-info-below .tech-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.portfolio-info-below .portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.portfolio-info-below .portfolio-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Responsive pour les vidéos portfolio */
@media (max-width: 768px) {
    .portfolio-info {
        padding: 0.8rem;
    }
    
    .portfolio-info .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-info .portfolio-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-tech {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Styles pour les infos vidéo en dessous sur mobile */
    .portfolio-info-below {
        padding: 0.6rem;
        margin-top: -2px;
    }
    
    .portfolio-info-below .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .portfolio-info-below .portfolio-content h3 {
        font-size: 1rem;
    }
    
    .portfolio-info-below .portfolio-content p {
        font-size: 0.8rem;
    }
    
    .portfolio-info-below .tech-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    /* Optimisations pour les effets immersifs sur mobile */
    .space-invader {
        font-size: 1.2rem;
    }
    
    .cursor-trail {
        display: none; /* Désactiver sur mobile pour les performances */
    }
    
    .magnetic-element {
        transform: none !important; /* Désactiver les effets magnétiques sur mobile */
    }
}

@media (max-width: 480px) {
    .portfolio-info {
        padding: 0.6rem;
    }
    
    .portfolio-info .portfolio-content h3 {
        font-size: 1.1rem;
    }
    
    .portfolio-info .portfolio-content p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .portfolio-tech {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    /* Styles pour les infos vidéo en dessous sur très petits écrans */
    .portfolio-info-below {
        padding: 0.5rem;
        margin-top: -2px;
    }
    
    .portfolio-info-below .portfolio-content h3 {
        font-size: 0.95rem;
    }
    
    .portfolio-info-below .portfolio-content p {
        font-size: 0.7rem;
    }
    
    .portfolio-info-below .tech-tag {
        font-size: 0.5rem;
        padding: 0.08rem 0.3rem;
    }
    
    /* Optimisations supplémentaires pour très petits écrans */
    .space-invader {
        font-size: 1rem;
    }
    
    .hero-visual {
        transform: none !important; /* Désactiver les effets 3D sur très petits écrans */
    }
}

/* Indicateur vidéo */
.video-info-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none; /* Ne pas bloquer les interactions */
    z-index: 1; /* S'assurer qu'il est au-dessus mais n'interfère pas */
}

.video-info-overlay i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Amélioration de l'affichage des vidéos */
.portfolio-media {
    position: relative;
    height: 250px;
    background: var(--dark-tertiary);
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: auto; /* Permettre l'interaction avec la vidéo */
    z-index: 2; /* S'assurer que la vidéo est au-dessus de l'overlay */
    position: relative;
}

/* Responsive pour les médias portfolio */
@media (max-width: 768px) {
    .portfolio-media {
        height: 200px;
    }
    
    /* S'assurer que les contrôles vidéo sont accessibles sur mobile */
    .portfolio-video {
        z-index: 10;
    }
    
    .portfolio-info {
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .portfolio-media {
        height: 180px;
    }
    
    /* Contrôles vidéo prioritaires sur très petits écrans */
    .portfolio-video {
        z-index: 10;
    }
    
    .portfolio-info {
        z-index: 1;
        pointer-events: none;
    }
    
    .portfolio-item:hover .portfolio-info {
        pointer-events: auto;
    }
}

.portfolio-content {
    text-align: center;
    padding: 2rem;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-light);
}

.project-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(0, 188, 212, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 188, 212, 0.4);
    align-self: flex-start;
    backdrop-filter: blur(10px);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.portfolio-tech {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.portfolio-link:hover {
    color: var(--white);
    transform: scale(1.2);
}

/* Tools Section */
.tools {
    padding: 1rem 0;
    background: var(--dark-secondary);
    width: 100%;
    overflow-x: hidden;
}

.tools-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.tools-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-category {
    background: var(--dark-tertiary);
    padding: 0.6rem;
    border-radius: var(--border-radius);
}

.tool-category h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--dark-bg);
    border-radius: 4px;
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tech-item i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.tech-item:hover i {
    color: var(--white);
}

.methodology h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.method-step {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--white);
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    width: 100%;
    overflow-x: hidden;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        padding: 10px 20px;
    }
    
    .contact-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact-tabs {
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-details {
        gap: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Onglets de contact */
.contact-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.tab-btn {
    background: var(--dark-secondary);
    color: var(--text-secondary);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.tab-btn:hover:not(.active) {
    background: var(--dark-tertiary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--dark-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Forms */
.contact-form,
.quote-form {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive pour les formulaires */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    /* Tools responsive pour très petits écrans */
    .tools-content {
        gap: 2rem;
    }
    
    .tool-category {
        padding: 1rem;
    }
    
    .tool-category h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-stack {
        gap: 0.6rem;
    }
    
    .tech-item {
        padding: 6px;
        font-size: 0.9rem;
    }
    
    .tech-item i {
        font-size: 1rem;
    }
    
    .tech-item span {
        font-size: 0.85rem;
    }
    
    .methodology h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .method-steps {
        gap: 1rem;
    }
    
    .method-step {
        gap: 0.8rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-tertiary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--dark-secondary);
    padding: 0 5px;
}

.checkbox-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
    position: static;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    position: static;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

/* Quote Section */
.quote {
    padding: 6rem 0;
    background: var(--dark-secondary);
}

.quote-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.quote-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.quote-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--dark-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-links {
        gap: 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    background: transparent;
    border-radius: 50%;
    padding: 3px;
    backdrop-filter: blur(5px);
    border: none;
    outline: none;
    filter: 
        drop-shadow(0 0 8px rgba(0, 188, 212, 0.6))
        brightness(1.2)
        contrast(1.2)
        saturate(1.1);
    mix-blend-mode: screen;
    -webkit-mask: radial-gradient(circle, rgba(255,255,255,1) 60%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0.4) 95%, transparent 100%);
    mask: radial-gradient(circle, rgba(255,255,255,1) 60%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0.4) 95%, transparent 100%);
    transition: all 0.3s ease;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-tertiary);
    color: var(--text-muted);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bouton d'administration discret */
.admin-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0.3;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
}

.admin-link:hover {
    opacity: 1;
    color: var(--accent-color);
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.2);
}

.admin-link i {
    font-size: 0.8rem;
}

/* Animations AOS */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container, .nav-container, .hero-content,
    .services .container, .portfolio .container,
    .tools .container, .contact .container, .quote .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .tools-content {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tool-category {
    padding: 0.5rem;
}

.tool-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tech-stack {
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.tech-item {
    padding: 8px;
}

.tech-item i {
    font-size: 1.2rem;
}

.methodology h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.method-steps {
    gap: 1.5rem;
}

.method-step {
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.step-content h4 {
    font-size: 1.1rem;
}
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container, .nav-container, .hero-content,
    .services .container, .portfolio .container,
    .tools .container, .contact .container, .quote .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .typewriter {
        font-size: 1.4rem;
        min-height: 1.8rem;
        height: 1.8rem;
        line-height: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: 80vh;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        justify-items: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        display: flex;
        align-items: center;
        overflow: visible;
        position: relative;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }
    
    .fallback-logo {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }
    
    .hero-logo-canvas {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }
}

/* ============================================ */
/* STYLES DE BASE ET LAYOUT                     */
/* ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px; /* Compensation pour la navbar fixe */
    perspective: 1000px;
    perspective-origin: center center;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
}

/* ============================================ */
/* STYLES DE BASE POUR LES SECTIONS            */
/* ============================================ */

/* Container responsive universel */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

/* Optimisations mobiles pour le container */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================ */
/* GRID LAYOUTS RESPONSIVE                     */
/* ============================================ */

/* .services-grid supprimé - remplacé par flexbox */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tools-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ============================================ */
/* CARDS ET FORMULAIRES RESPONSIVE             */
/* ============================================ */

/* .service-card supprimé - remplacé par la définition principale */

.portfolio-item {
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-secondary);
    transition: var(--transition);
    border: 1px solid var(--dark-tertiary);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.contact-form,
.quote-form {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-secondary);
    border: 1px solid var(--dark-tertiary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-tertiary);
    border-radius: var(--border-radius);
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================ */
/* EFFETS VISUELS ET ANIMATIONS                */
/* ============================================ */

/* Effet de particules personnalisé */
.hero::before {
    content: none;
}

@keyframes particleMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%; 
    }
    50% { 
        background-position: 100% 100%, 0% 0%; 
    }
}

/* Figer tout mouvement du cadre/visuel hero */
.hero-visual {
    animation: none !important;
    transform: none !important;
}
.logo-glow {
    animation: none !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Smooth scrolling enhancement */
html {
    scroll-padding-top: 80px;
}

/* Loading animation pour les images */
.portfolio-image {
    background: linear-gradient(45deg, var(--dark-tertiary), var(--dark-secondary));
}

.portfolio-image img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-image img.loaded {
    opacity: 1;
}

/* Logo seamless integration et effets hover */
.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: 
        drop-shadow(0 0 25px rgba(0, 188, 212, 1))
        drop-shadow(0 0 50px rgba(0, 188, 212, 0.5))
        contrast(1.5)
        brightness(1.4)
        saturate(1.3);
    -webkit-mask: radial-gradient(circle, rgba(255,255,255,1) 70%, rgba(255,255,255,0.9) 85%, rgba(255,255,255,0.3) 95%, transparent 100%);
    mask: radial-gradient(circle, rgba(255,255,255,1) 70%, rgba(255,255,255,0.9) 85%, rgba(255,255,255,0.3) 95%, transparent 100%);
}

.hero-logo:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: 
        drop-shadow(0 0 60px rgba(0, 188, 212, 1))
        drop-shadow(0 0 120px rgba(0, 188, 212, 0.6))
        contrast(1.6)
        brightness(1.5)
        saturate(1.4);
    -webkit-mask: radial-gradient(circle, rgba(255,255,255,1) 70%, rgba(255,255,255,0.8) 85%, rgba(255,255,255,0.2) 98%, transparent 100%);
    mask: radial-gradient(circle, rgba(255,255,255,1) 70%, rgba(255,255,255,0.8) 85%, rgba(255,255,255,0.2) 98%, transparent 100%);
}

/* Effet de réaction à la souris */
.floating-logo.mouse-interactive {
    animation-play-state: paused;
}

.floating-logo.mouse-interactive .hero-logo {
    transition: transform 0.04s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.15s ease-out;
    transform-origin: center center;
}

.floating-logo.mouse-interactive .logo-glow {
    transition: transform 0.06s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.15s ease-out;
    transform-origin: center center;
}

/* Animation de rotation complète au clic */
.floating-logo.spinning .hero-logo {
    animation: logoSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes logoSpin {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    25% {
        transform: rotateY(90deg) scale(0.8);
        filter: 
            drop-shadow(0 0 40px rgba(0, 188, 212, 0.8))
            contrast(1.4)
            brightness(1.2)
            saturate(1.2);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
        filter: 
            drop-shadow(0 0 60px rgba(0, 188, 212, 1))
            drop-shadow(0 0 120px rgba(0, 188, 212, 0.8))
            contrast(1.6)
            brightness(1.5)
            saturate(1.4);
    }
    75% {
        transform: rotateY(270deg) scale(0.8);
        filter: 
            drop-shadow(0 0 40px rgba(0, 188, 212, 0.8))
            contrast(1.4)
            brightness(1.2)
            saturate(1.2);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

/* Curseur personnalisé pour le logo */
.floating-logo:active {
    cursor: grabbing;
}

/* Ombre dynamique 3D */
.floating-logo::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    width: 200px;
    height: 50px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 188, 212, 0.15) 0%,
        rgba(0, 188, 212, 0.05) 50%,
        transparent 100%
    );
    transform: translateX(-50%) rotateX(90deg);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

/* Effet de magnétisme visuel amélioré */
.floating-logo.mouse-interactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 2px solid rgba(0, 188, 212, 0.15);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0, 188, 212, 0.02) 70%,
        rgba(0, 188, 212, 0.05) 85%,
        transparent 100%
    );
}

.floating-logo.mouse-interactive:hover::before {
    opacity: 1;
    animation: magneticPulse 2s ease-in-out infinite;
}

@keyframes magneticPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

.footer-logo img:hover {
    transform: scale(1.15) rotate(10deg);
    filter: 
        drop-shadow(0 0 15px rgba(0, 188, 212, 0.9))
        brightness(1.3)
        contrast(1.3)
        saturate(1.2);
    -webkit-mask: radial-gradient(circle, rgba(255,255,255,1) 65%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0.3) 95%, transparent 100%);
    mask: radial-gradient(circle, rgba(255,255,255,1) 65%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0.3) 95%, transparent 100%);
}

/* Enhanced glow effect for hero logo */
.floating-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, rgba(0, 188, 212, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: logoGlow 4s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes logoGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ============================================ */
/* SYSTÈME D'EFFETS IMMERSIFS ULTRA-FLUIDES   */
/* ============================================ */

/* CURSEUR CSS SIMPLE ET EFFICACE - Solution qui marche partout */
* {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iNCIgZmlsbD0iIzAwYmNkNCIgZmlsbC1vcGFjaXR5PSIwLjgiLz4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOCIgc3Ryb2tlPSIjMDBiY2Q0IiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiIHN0cm9rZS1vcGFjaXR5PSIwLjQiLz4KPC9zdmc+') 12 12, auto !important;
}

/* Curseur spécial pour les liens et boutons */
a, button, .btn, .nav-link, [role="button"] {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iNiIgZmlsbD0iIzAwYmNkNCIgZmlsbC1vcGFjaXR5PSIxIi8+CjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiBzdHJva2U9IiMwMGJjZDQiIHN0cm9rZS13aWR0aD0iMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLW9wYWNpdHk9IjAuOCIvPgo8L3N2Zz4=') 12 12, pointer !important;
}

.space-invader {
    cursor: crosshair !important;
    pointer-events: auto !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.8) 0%, rgba(0, 188, 212, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease;
    animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Particules d'icônes orbitales */
@keyframes iconParticles {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(calc(-50% + var(--end-x, 0px) * 0.5), calc(-50% + var(--end-y, 0px) * 0.5)) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(-50% + var(--end-x, 0px)), calc(-50% + var(--end-y, 0px))) scale(0);
        opacity: 0;
    }
}

/* Effets de déformation sur les cartes */
.service-card, .portfolio-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card::before, .portfolio-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent 30%, 
        rgba(0, 188, 212, 0.1) 50%, 
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.service-card:hover::before, .portfolio-item:hover::before {
    transform: translateX(0%) translateY(0%) rotate(45deg);
}

/* Suppression de l'effet de vague sur la navigation */
.nav-link::before {
    display: none;
}

.nav-link:hover::before {
    display: none;
}

/* Suppression des effets de brillance sur les boutons */
.btn {
    position: relative;
    overflow: visible;
}

.btn::after {
    display: none;
}

.btn:hover::after {
    display: none;
}

/* Effets magnétiques supprimés - Space Invaders les remplacent */

/* Effet de ondulation sur les sections */
.hero, .services, .portfolio, .tools, .contact {
    position: relative;
    transition: transform 0.1s ease-out;
}

/* Amélioration des transitions globales */
* {
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Force les marges pour tous les conteneurs */
.container, .nav-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.hero-content, .services .container, .portfolio .container,
.tools .container, .contact .container, .quote .container {
    padding-left: 40px !important;
    padding-right: 40px !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Perspective globale pour les effets 3D */
body {
    perspective: 1000px;
    perspective-origin: center center;
}

/* S'assurer que toutes les sections ont le bon fond */
.hero, .services, .portfolio, .tools, .contact, .quote {
    background: var(--dark-bg);
}

/* Animation de chargement pour l'immersion */
@keyframes immersiveLoad {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.service-card, .portfolio-item {
    animation: immersiveLoad 0.8s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* Effets de particules sur les liens sociaux */
.social-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-link:hover {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
}

/* Amélioration du formulaire de contact */
.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(0, 188, 212, 0.2));
}

/* Effet de distorsion sur le logo de navigation */
.logo-img {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-img:hover {
    transform: scale(1.15) rotate(10deg) perspective(500px) rotateY(15deg);
    filter: 
        drop-shadow(0 0 30px rgba(0, 188, 212, 1))
        brightness(1.4)
        saturate(1.5);
}

/* Performance optimizations */
.space-invader, .cursor-trail {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Optimisations pour les particules */
.particle, .tech-particle, .golden-particle {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Optimisations pour les effets d'explosion */
.explosion-effect, .shockwave, .scan-line {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Mode réduit pour les appareils lents */
.reduced-motion .space-invader,
.reduced-motion .particle,
.reduced-motion .tech-particle,
.reduced-motion .golden-particle,
.reduced-motion .explosion-effect,
.reduced-motion .shockwave,
.reduced-motion .scan-line {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

.reduced-motion .floating-logo {
    animation: none !important;
    transition: none !important;
}

.reduced-motion .hero-logo-canvas {
    display: none !important;
}

.reduced-motion .hero-logo {
    display: block !important;
}

/* Responsive adjustments pour les effets */
@media (max-width: 768px) {
    .service-card::before, 
    .portfolio-item::before {
        display: none;
    }
}

/* Mode haute performance */
@media (prefers-reduced-motion: reduce) {
    .space-invader, .cursor-trail {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================ */
/* ANIMATIONS SPACE INVADERS CLIQUABLES       */
/* ============================================ */

/* Animation de mouvement pour les Space Invaders */
@keyframes spaceInvaderMovement {
    0% { 
        transform: scale(0.8) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.6));
    }
    25% { 
        transform: scale(1.1) rotate(90deg);
        filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
    }
    50% { 
        transform: scale(0.9) rotate(180deg);
        filter: drop-shadow(0 0 25px rgba(0, 188, 212, 1));
    }
    75% { 
        transform: scale(1.05) rotate(270deg);
        filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
    }
    100% { 
        transform: scale(1) rotate(360deg);
        filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.6));
    }
}

/* Animation d'apparition */
@keyframes spaceInvaderSpawn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
        filter: drop-shadow(0 0 30px rgba(0, 255, 0, 1));
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.8));
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.6));
    }
}

/* Animation de désintégration tech */
@keyframes techDisintegration {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.6)) brightness(1) saturate(1);
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(0, 188, 212, 1)) brightness(2) saturate(2) hue-rotate(90deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.7;
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 1)) brightness(3) saturate(3) hue-rotate(180deg);
    }
    75% {
        transform: scale(0.8) rotate(270deg);
        opacity: 0.4;
        filter: drop-shadow(0 0 40px rgba(0, 188, 212, 0.5)) brightness(1.5) saturate(1.5) blur(1px);
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
        filter: drop-shadow(0 0 50px transparent) brightness(0) saturate(0) blur(3px);
    }
}

/* Animation des particules d'explosion */
@keyframes explosionParticle {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(0.3) translate(50px, -50px);
        opacity: 0;
    }
}

/* Styles pour les Space Invaders */
.space-invader {
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.space-invader:hover {
    /* Garder l'animation active même au hover */
    animation-play-state: running;
}

/* Animation de disparition naturelle */
@keyframes spaceInvaderDisappear {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.6));
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg);
        filter: drop-shadow(0 0 30px rgba(0, 188, 212, 0));
    }
}

/* Style spécifique pour les icônes tech */
.space-invader i {
    font-size: 24px;
    color: #00bcd4;
    transition: all 0.2s ease;
}

.space-invader:hover i {
    color: #ff0064;
    transform: scale(1.2);
}

/* Style spécifique pour les icônes dorées */
.space-invader[data-is-golden="true"] i {
    color: #FFD700;
    font-size: 26px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.space-invader[data-is-golden="true"]:hover i {
    color: #FFA500;
    transform: scale(1.3);
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

/* Score immersif sous le logo */
#score-display {
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

#score-display:hover {
    transform: translateX(-50%) scale(1.05) !important;
    background: rgba(0, 188, 212, 0.1) !important;
    border-color: rgba(0, 188, 212, 0.4) !important;
}

/* Animation du logo qui grandit */
.floating-logo {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Amélioration de la fluidité des animations du logo */
.floating-logo.animating,
.floating-logo.aspirating {
    will-change: transform, filter;
}

.floating-logo.animating .hero-logo,
.floating-logo.aspirating .hero-logo {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animations pour les icônes dorées */
@keyframes goldenPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 215, 0, 1);
        transform: scale(1.05);
    }
}

@keyframes goldenDestruction {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) brightness(1) saturate(1);
    }
    25% {
        transform: scale(1.3) rotate(90deg);
        opacity: 1;
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1)) brightness(2) saturate(2);
    }
    50% {
        transform: scale(1.6) rotate(180deg);
        opacity: 0.9;
        filter: drop-shadow(0 0 60px rgba(255, 255, 0, 1)) brightness(3) saturate(3);
    }
    75% {
        transform: scale(1.2) rotate(270deg);
        opacity: 0.6;
        filter: drop-shadow(0 0 80px rgba(255, 215, 0, 0.8)) brightness(2) saturate(2) blur(1px);
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
        filter: drop-shadow(0 0 100px rgba(255, 215, 0, 0)) brightness(1) saturate(1) blur(3px);
    }
}

@keyframes goldenShockwave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        border-width: 4px;
    }
    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
        border-width: 1px;
    }
}

@keyframes goldenParticle {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--particle-x), var(--particle-y)) scale(0);
        opacity: 0;
    }
}

@keyframes goldenStar {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) translate(calc(var(--star-x) * 0.5), calc(var(--star-y) * 0.5)) scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--star-x), var(--star-y)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes goldenText {
    0% {
        transform: translate(-50%, -50%) translateY(0) scale(0.5);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) translateY(-10px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-40px) scale(0.8);
        opacity: 0;
    }
}

/* Animations tech pour les effets d'explosion */
@keyframes techShockwave {
    0% {
        transform: scale(1);
        opacity: 1;
        border-width: 2px;
    }
    100% {
        transform: scale(4);
        opacity: 0;
        border-width: 1px;
    }
}

@keyframes techParticle {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x, 60px), var(--end-y, -60px)) rotate(360deg) scale(0);
        opacity: 0;
    }
}

@keyframes techScanLine {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(1.2);
    }
}

/* Animation de progression du logo */
@keyframes logoEvolutionPulse {
    0% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
    25% {
        transform: scale(1.05);
        filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.3) saturate(1.3) drop-shadow(0 0 30px rgba(0, 188, 212, 0.9));
    }
    75% {
        transform: scale(1.05);
        filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
    }
    100% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
}

/* ===== OVERRIDES FINAUX – GRILLE PORTFOLIO ===== */
.portfolio-grid,
.portfolio-page {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    justify-content: center !important;
}

@media (max-width: 1024px) {
    .portfolio-grid,
    .portfolio-page {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .portfolio-grid,
    .portfolio-page {
        grid-template-columns: 1fr !important;
    }
}

.portfolio-item {
    width: 100% !important;
}

/* Centrage sûr du conteneur portfolio */
.portfolio {
    width: 100% !important;
}
.portfolio .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

/* ===== OVERRIDES FINAUX POUR FOND GLOBAL PARTICULES ===== */
/* Conserver le fond sombre global pour éviter les bordures blanches */
body {
    background: var(--dark-bg) !important;
}

.services, .portfolio, .tools, .contact,
.services::before, .portfolio::before, .tools::before, .contact::before,
.services::after, .portfolio::after, .tools::after, .contact::after {
    background: transparent !important;
}

.services .container, .portfolio .container, .tools .container, .contact .container,
.portfolio-grid, .portfolio-page,
.portfolio-grid::before, .portfolio-grid::after, .portfolio-page::before, .portfolio-page::after {
    background: transparent !important;
}

/* Rétablir le style natif des cartes portfolio (pas de transparence forcée ici) */
/* (override supprimé) */
