@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Correction du débordement horizontal */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.tech-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

/* Correction pour les conteneurs */
.container,
section,
footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

section {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Correction pour les images */
img {
    max-width: 100%;
    height: auto;
}

/* Hero Text & Gradients */
.gradient-text {
    background: linear-gradient(90deg, #00f0ff, #5773ff, #ff007a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 3D Glass Cards */
.holographic {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 100%;
    box-sizing: border-box;
}

.holographic:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15);
    border-color: #5773ff;
}

/* Animations */
.floating {
    animation: floating 6s ease-in-out infinite;
    max-width: 100%;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    max-width: 100vw;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #5773ff, #ff007a);
    border-radius: 4px;
}

/* Canvas Containers */
canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

/* Specific Text Colors for Dark Mode handling */
h1,
h2,
h3,
h4 {
    color: var(--text-color);
    max-width: 100%;
    word-wrap: break-word;
}

p {
    color: var(--text-muted);
    max-width: 100%;
    word-wrap: break-word;
}

.feature-icon {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(87, 115, 255, 0.1) 50%, rgba(255, 0, 122, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
}

/* Scrolling strip */
.scrolling-strip {
    width: 100vw;
    /* 100% de la largeur de la fenêtre */
    position: relative;
    left: 50%;
    /* Centre le conteneur */
    right: 50%;
    margin-left: -50vw;
    /* Compense le décalage */
    margin-right: -50vw;
    /* Compense le décalage */
    overflow: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 0;
    white-space: nowrap;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
}

.scrolling-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
    padding-right: 20px;
    box-sizing: border-box;
}

.scrolling-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scrolling-content span {
    display: inline-block;
    padding-left: 20px;
    white-space: nowrap;
}

/* Animation logo */
.animate-text-switch {
    position: relative;
    height: 1.2em;
    overflow: hidden;
    max-width: 100%;
}

.animate-text-switch div {
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: textSwitch 6s infinite;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

.animate-text-switch div:nth-child(1) {
    animation-delay: 0s;
}

.animate-text-switch div:nth-child(2) {
    animation-delay: 3s;
}

@keyframes textSwitch {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
    }

    45% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Correction pour les éléments en largeur complète */
.w-full {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Correction pour les conteneurs flex */
.flex {
    max-width: 100%;
}

/* Correction pour les grilles */
.grid {
    max-width: 100%;
}

/* Ajoutez cette règle dans votre balise <style> */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    color: #000000 !important;
    /* Texte en noir en mode nuit */
}

/* Pour le placeholder */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #666666 !important;
    /* Placeholder en gris foncé */
}

/* Mobile Menu Items Background */
.mobile-menu .mobile-link {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-menu .mobile-link {
    background-color: rgba(30, 41, 59, 0.95);
}


.mobile-menu .mobile-link:hover {
    background-color: rgba(87, 115, 255, 0.1);
    transform: translateX(-5px);
}

/* Logo Marquee Animation */
.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    /* Espacement entre les logos */
    animation: logoScroll 40s linear infinite;
    padding-left: 2rem;
}

.logo-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Logos styling */
.tech-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
    cursor: default;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.tech-logo i {
    font-size: 2rem;
}