@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00ffcc;
    --secondary: #6600ff;
    --bg: #0a0a0a;
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

.gradient-bg {
    position: fixed;
    top: -50%;  /* Augmenter la taille et décaler pour éviter les bords */
    left: -50%;
    width: 200%;  /* Doubler la taille */
    height: 200%;
    background: linear-gradient(
        45deg,
        var(--secondary) 0%,
        var(--primary) 25%,
        var(--secondary) 50%,
        var(--primary) 75%,
        var(--secondary) 100%
    );
    opacity: 0.1;
    z-index: -2;
    background-size: 200% 200%;  /* Permettre au gradient de se répéter */
    animation: gradientBackground 15s ease infinite;  /* Animation lente en arrière-plan */
}

@keyframes gradientBackground {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVfJ/YAAAACHRSTlMzMzMzMzMzM85JBgUAAAABYktHRAH/Ai3eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAPklEQVQ4y2NgoBAwghgTFhSDiAELmDCAGAuWMIAYBpYwgBgTljCAGAuWMIAYBpYwgBgLljCAGAaWMIAYAwoBAM6aCRZxQh7hAAAAAElFTkSuQmCC');
    opacity: 0.05;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-item {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-item:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
    opacity: 1;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.glitch {
    font-size: 8rem;
    font-weight: 700;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--secondary);
    animation: glitch 1s infinite;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--secondary); }
    14% { text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--secondary); }
    15% { text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--secondary); }
    49% { text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--secondary); }
    50% { text-shadow: 0.025em 0.05em 0 var(--primary), 0.03em 0 0 var(--secondary); }
    99% { text-shadow: 0.025em 0.05em 0 var(--primary), 0.03em 0 0 var(--secondary); }
    100% { text-shadow: -0.025em 0 0 var(--primary), -0.025em -0.025em 0 var(--secondary); }
}

/* Ajouter à la fin du fichier CSS existant */

/* Tablette */
@media screen and (max-width: 1024px) {
    .glitch {
        font-size: 6rem;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 2rem;
    }
}

/* Mobile Large */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .glitch {
        font-size: 4rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* Mobile Petit */
@media screen and (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-item {
        font-size: 0.9rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Ajuster l'animation glitch pour mobile */
    @keyframes glitch {
        0% { text-shadow: 0.03em 0 0 var(--primary), -0.015em -0.03em 0 var(--secondary); }
        14% { text-shadow: 0.03em 0 0 var(--primary), -0.015em -0.03em 0 var(--secondary); }
        15% { text-shadow: -0.03em -0.015em 0 var(--primary), 0.015em 0.015em 0 var(--secondary); }
        49% { text-shadow: -0.03em -0.015em 0 var(--primary), 0.015em 0.015em 0 var(--secondary); }
        50% { text-shadow: 0.015em 0.03em 0 var(--primary), 0.03em 0 0 var(--secondary); }
        99% { text-shadow: 0.015em 0.03em 0 var(--primary), 0.03em 0 0 var(--secondary); }
        100% { text-shadow: -0.015em 0 0 var(--primary), -0.015em -0.015em 0 var(--secondary); }
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 320px) {
    .brand {
        font-size: 1rem;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }
}

/* Pour gérer la hauteur sur mobile */
@media screen and (max-height: 600px) {
    .hero {
        padding: 2rem 0;
        height: auto;
        min-height: 100vh;
    }
}

/* Ajuster l'animation du fond pour mobile */
@media (hover: none) {
    .gradient-bg {
        animation: gradientBackground 20s ease infinite;
    }
}

/* Optimisation des performances sur mobile */
@media (prefers-reduced-motion: reduce) {
    .gradient-bg {
        animation: none;
    }

    .glitch {
        animation: none;
        text-shadow: 2px 2px var(--primary);
    }

    .dot {
        animation: none;
    }
}

/* Ajouter aux styles existants */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.burger span {
    width: 30px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/* Ajouter ces styles */
.typed-text {
    font-weight: 500;
    color: white;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text);
    margin-left: 2px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0% { background-color: var(--text); }
    49% { background-color: var(--text); }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100% { background-color: var(--text); }
}
.nav-item.active {
    color: var(--primary);
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Ajouter ces styles pour le nouveau sous-titre */
.role-container {
    margin: 1rem 0 2rem;
    text-align: center;
    position: relative;
}

.role {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.role::before,
.role::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.role::before {
    left: -40px;
    transform: scaleX(-1);
}

.role::after {
    right: -40px;
}

.role-underline {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: underlineExpand 1s ease forwards 0.5s;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 200px;
    }
}

/* Ajuster l'espacement pour le typed text */
.subtitle {
    margin-top: 2rem;
}

/* Styles pour le footer */
.footer {
    margin-top: 2rem;
    padding: 2rem 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    opacity: 0.7;
    line-height: 1.4;
    font-size: 0.8rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a, .footer-link {
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav a:hover, .footer-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-contact {
        justify-content: center;
        gap: 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-nav, .footer-contact {
        align-items: center;
    }
}

.footer-link {
    font-size: 0.9rem;
    white-space: nowrap;
}

@media screen and (max-width: 480px) {
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }

    .footer-link {
        font-size: 0.8rem;
    }
}

.logo:visited,
.logo:hover,
.logo:active {
    text-decoration: none;
    color: var(--text);
}

/* Ajouter ces styles pour la modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    overflow-y: auto; /* Permet le défilement dans la modal */
}

.modal.active {
    display: block;
}

.modal-content {
    max-height: 90vh; /* Hauteur maximale de la modal */
    overflow-y: auto; /* Permet le défilement dans la modal */
    /* ... autres styles existants ... */
}

/* Style pour le body quand la modal est active */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width); /* Évite le saut de contenu */
}
