@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    background-color: black;
    background-size: cover;
    background-position: center;
}


/* Canvas en arrière-plan */
#etoiles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Derrière le contenu */
    background: black; /* Fond noir pour bien voir les étoiles */
}


li {
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
}

.barre-navigation a:not(.bouton-action),
.menu-deroulant a:not(.bouton-action) {
    position: relative;
    color: white;
    font-size: 1.2rem;
    padding: 5px 15px; 
    transition: color 0.3s ease-in-out;
    border-radius: 20px; 
}

.barre-navigation a:not(.bouton-action)::before,
.menu-deroulant a:not(.bouton-action)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -1;
    transition: transform 0.3s ease-in-out, border-radius 0.3s ease-in-out;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 20px; 
}

.barre-navigation a:not(.bouton-action):hover,
.menu-deroulant a:not(.bouton-action):hover {
    color: black; 
}

.barre-navigation a:not(.bouton-action):hover::before,
.menu-deroulant a:not(.bouton-action):hover::before {
    transform: scaleX(1);
}

header {
    position: relative;
    padding: 0 2rem;
}

.barre-navigation {
    width: 100%;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.barre-navigation .logo a {
    font-size: 2rem;
    font-weight: bold;
}

.barre-navigation .liens {
    display: flex;
    gap: 2.5rem;
}

.barre-navigation .bouton-toggle {
    color: #FFF;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

.bouton-action {
    background-color: orange;
    color: #FFF;
    padding: 0.7rem 1.5rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2s ease;
}

.bouton-action:hover {
    scale: 1.05;
    color: #FFF;
}

.bouton-action:active {
    scale: 0.95;
}

.menu-deroulant {
    display: none;
    position: absolute;
    right: 2rem;
    top: 80px;
    height: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    
}



.menu-deroulant.ouvert {
    height: 330px;
}

.menu-deroulant li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-deroulant .bouton-action {
    width: 100%;
    display: flex;
    justify-content: center;
}


.barre-navigation a:hover ~ .curseur,
.menu-deroulant a:hover ~ .curseur {
    opacity: 0;
}


.curseur {
    position: fixed;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out, opacity 0.2s ease-out;
    mix-blend-mode: difference;
    z-index: 9999;
}


@media (max-width: 1130px) {
    .barre-navigation .liens,
    .barre-navigation .bouton-action {
        display: none;
    }

    .barre-navigation .bouton-toggle {
        display: block;
    }

    .menu-deroulant {
        display: block;
    }
}

@media (max-width: 576px) {
    .menu-deroulant {
        left: 2rem;
        width: unset;
    }

    .barre-navigation .logo a {
        font-size: 1rem;
        font-weight: bold;
    }
}



.fade-out {
    display: none;
    transition: opacity 1s ease-in-out;
}




#titre-aventure {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    margin-top: 10%;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 1100px) {
    #titre-aventure {
        font-size: 0.9rem;
    }
}

#titre-aventure.fade-out {
    display: none;
    transition: opacity 1s ease-in-out;
}

/* fusée */

#bouton-lancer {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10%;
    position: relative; 
    left: 50%; 
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

#bouton-lancer:hover {
    transform: scale(1.1) translate(-50%, -50%);
    background: linear-gradient(45deg, #ff4500, #ff8c00);
}

#fusée {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: bottom 2s ease-in-out, opacity 0.5s;
}

#fusée.launch {
    opacity: 1; 
    bottom: 80%; 
}

#fusée.fade-out {
    opacity: 0; 
    transition: opacity 1s ease-in-out;
}

#fusée i {
    color: white; 
    font-size: 4rem;
}

#fusée i.fade-out {
    opacity: 0; 
    transition: opacity 1s ease-in-out;
}

#explosion {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    opacity: 0;
    z-index: 10;
    transition: opacity 1s ease-in-out;
}

@keyframes explosionAnim {
    0% {
        top: -100%;
        opacity: 1;
    }
    50% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.caché {
    display: none;
}

#conteneur-tech {
    text-align: center;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    color: white;
}

#conteneur-tech h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.rangée-tech {
    display: flex;
    justify-content: center;
    gap: 25%; 
    margin-bottom: 10%; 
}

.élément-tech {
    text-align: center;
    color: white;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.img-tech {
    width: 200px; 
    height: auto; 
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .img-tech {
        width: 100px; 
    }

    .rangée-tech {
        flex-direction: column; 
        gap: 20px;
    }

    .élément-tech {
        font-size: 1.5rem; 
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Roue des Soft Skills */

#conteneur-soft-skills {
    text-align: center;
    margin-top: 5%;
    color: white;
}

#titre-roue {
    font-size: 2rem;
}

#conteneur-soft-skills h2 {
    margin-bottom: 10%; 
}

#roue-soft-skills {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 350px;
    height: 350px; 
    margin: 0 auto;
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
}

.compétence {
    position: absolute;
    width: 120px; 
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ff4500;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    text-align: center; 
    line-height: 1.2; 
}

.compétence:nth-child(1) { transform: rotate(0deg) translate(175px) rotate(0deg); }
.compétence:nth-child(2) { transform: rotate(90deg) translate(175px) rotate(-90deg); }
.compétence:nth-child(3) { transform: rotate(180deg) translate(175px) rotate(-180deg); }
.compétence:nth-child(4) { transform: rotate(270deg) translate(175px) rotate(-270deg); }

@media (max-width: 600px) {
    #roue-soft-skills {
        width: 250px; 
        height: 250px; 
    }

    #conteneur-soft-skills h2 {
        margin-bottom: 15%; 
    }

    #titre-roue {
        font-size: 1.5rem;
    }

    .compétence {
        width: 80px; 
        height: 80px; 
    }

    .compétence:nth-child(1) { transform: rotate(0deg) translate(125px) rotate(0deg); }
    .compétence:nth-child(2) { transform: rotate(90deg) translate(125px) rotate(-90deg); }
    .compétence:nth-child(3) { transform: rotate(180deg) translate(125px) rotate(-180deg); }
    .compétence:nth-child(4) { transform: rotate(270deg) translate(125px) rotate(-270deg); }
}





