/* header */
#header-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
}

#header-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#header-container .logo {
    position: static; /* NE PAS positionner absolument ici */
    transform: none;
}
@media (min-width: 768px) {
    #header-container .logo {
        width: 100px;
    }
}

/* Ne pas forcer display: flex sur TOUS les navs */
#header-container nav {
    margin: 16px;
}

/* Appliquer display:flex SEULEMENT sur la navbar desktop */
@media (min-width: 768px) {
    #main-nav {
        display: flex;
    }
}

#header-container nav a {
    text-decoration: none;
    color: white;
    font-family: "cousine";
    padding: 1rem;
}

/* ===== barre animée ===== */
.trait {
    padding-top: 120px;
    width: 100%;
    display: flex;
    z-index: 998;
}

.growing-bar {
    margin: 0 0 32px 0;
    height: 1px;
    border: none;
    background: #ffffff91;
    width: 0; /* état de départ */
    animation: growBar 2s ease-out forwards;
    z-index: 999;
}

@keyframes growBar {
    from {
        width: 0;
    }
    to {
        width: 26%;
    } /* 24 % de .trait  */
}

.slogan {
    margin: 16px;
    padding: 16px;
    animation: slowFlicker 4s infinite ease-in-out;
    color: white;
    z-index: 1999;
}

.social {
    display: flex;
    gap: 16px;
}

@keyframes slowFlicker {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

#footer-container {
    background-color: black;
    z-index: 999;
    footer {
        display: flex;
        padding: 0 2.5%;
        justify-content: space-between;
        align-items: center;
        color: rgb(255, 255, 255);
        background-color: black;
    }
}
@media (max-width: 768px) {
    footer p {
        font-size: 8px;
    }
}
/* nav container */
#main-nav {
    position: relative; /* référentiel pour #marker */
    gap: 1.5rem;
}

/* liens */
#main-nav a {
    position: relative;
    padding: 1rem;
    text-decoration: none;
    color: #fff;
    font-family: "cousine";
    z-index: 1000;
}
#mobile-nav{
    z-index: 10000;
}

/* marqueur */
#marker {
    position: absolute;
    bottom: 0; /* collé au bas du lien */
    left: 0;
    /* width: 50px;
    height: 40px; */
    /* border-radius: 2px; */
    /* background: #ff5de9; */
    transition: 0.4s;
    pointer-events: none;
    z-index: 0;
}

/* style planete */
#marker::before {
    content: "";
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff5b5b, #662727);
    box-shadow:
        0 0 10px #ff5d5d,
        0 0 20px #ff5d5d,
        0 0 40px #ff5d5d,
        inset 0 0 8px #ff8989;
    animation: rotatePlanet 6s linear infinite;
}
/* #5da6ff */

@keyframes rotatePlanet {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}
