/* ===== FONTS ===== */
@import url('./src/fonts/stylesheet.css');

/* ===== RESET GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    font-family: 'Branding SF Narrow', 'Inter', sans-serif;
    background-color: #010815;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* ===== PARTICULES ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: bold;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    top: 80%;
    left: 50%;
    animation-delay: 5s;
}

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

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
}

/* ===== LOGO ===== */
.logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 100%;
    min-width: 500px;
    max-width: 600px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

/* ===== NAVIGATION ===== */

/* Reset et base pour la navigation */
body {
    font-family: "Branding SF Narrow", "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* MOBILE FIRST - Base styles (mobile) */

/* Logo texte - Mobile */
.logo-text {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.logo-text:hover {
    transform: translateX(-50%) scale(1.02);
}

/* Bouton d'ouverture - Mobile */
.nav-container {
    cursor: pointer;
    position: absolute;
    top: 3%;
    right: 3%;
    width: 30px;
    height: 30px;
}

.menu img {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Navigation - Mobile */
nav {
    position: absolute;
    width: 100%;
    height: 20px;
    background: #02021F;
    display: flex;
    justify-content: center;
    align-items: center;
    right: -200vw;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin: 30px 0;
}

nav ul li a {
    color: #fafafa;
    font-family: "Branding SF Narrow", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5em;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

nav ul li a:after {
    content: '';
    width: 100%;
    position: absolute;
    height: 2px;
    border-radius: 3px;
    background: #fff;
    bottom: -8px;
    left: 0;
    transform-origin: left;
    transition: all .5s ease;
    transform: scaleX(0);
}

nav ul li a:hover {
    background: linear-gradient(45deg, #ff3988, #ffa930);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul li a:hover:after {
    transform: scaleX(1);
    background: linear-gradient(45deg, #ff3988, #ffa930);
}

/* Bouton de fermeture - Mobile */
nav .close {
    position: absolute;
    top: 3%;
    right: 3%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

nav .close img {
    width: 30px;
    height: 30px;
}

nav .close:hover img {
    scale: 1.1;
}

/* TABLET - 768px et plus */
@media (min-width: 768px) {
    .logo-text {
        top: 4%;
        height: 22px;
        max-width: 100px;
    }

    .nav-container {
        top: 4%;
        right: 0%;
        width: 35px;
        height: 35px;
    }

    .menu img {
        width: 35px;
        height: 35px;
    }

    nav {
        height: 25px;
    }

    nav ul li {
        margin: 40px 0;
    }

    nav ul li a {
        font-size: 1.8em;
    }

    nav ul li a:after {
        height: 2.5px;
        bottom: -9px;
    }

    nav .close {
        top: 4%;
        right: 4%;
        width: 35px;
        height: 35px;
    }

    nav .close img {
        width: 35px;
        height: 35px;
    }
}

/* DESKTOP - 992px et plus */
@media (min-width: 992px) {
    .logo-text {
        top: 5%;
        height: 40px;
        max-width: 200px;
    }

    .nav-container {
        top: 5%;
        right: 3%;
        width: 40px;
        height: 40px;
    }

    .menu img {
        width: 40px;
        height: 40px;
    }

    nav {
        height: 30px;
    }

    nav ul li {
        margin: 50px 0;
    }

    nav ul li a {
        font-size: 2em;
    }

    nav ul li a:after {
        height: 3px;
        border-radius: 5px;
        bottom: -10px;
    }

    nav .close {
        top: 5%;
        right: 5%;
        width: 40px;
        height: 40px;
    }

    nav .close img {
        width: 40px;
        height: 40px;
    }
}

/* 4K et très grands écrans - 2560px et plus */
@media (min-width: 2560px) {
    .logo-text {
        top: 3%;
        height: 60px;
        max-width: 300px;
    }

    .nav-container {
        top: 3%;
        right: 2%;
        width: 60px;
        height: 60px;
    }

    .menu img {
        width: 60px;
        height: 60px;
    }

    nav {
        height: 50px;
    }

    nav ul li {
        margin: 80px 0;
    }

    nav ul li a {
        font-size: 3em;
    }

    nav ul li a:after {
        height: 4px;
        border-radius: 6px;
        bottom: -15px;
    }

    nav .close {
        top: 3%;
        right: 2%;
        width: 60px;
        height: 60px;
    }

    nav .close img {
        width: 60px;
        height: 60px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo img {
        min-width: 300px;
        max-width: 400px;
        width: 100%;
    }
}