@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;
    overflow-x: hidden;
}

/* Conteneur principal centré */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* 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: 5rem auto;
    max-width: 1200px;
    padding: 0 2rem;
    animation: float 3s ease-in-out infinite;
}

#titre-aventure h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.titre-fonction {
    font-size: 2rem;
    color: #ff8c00;
    font-weight: 300;
    display: block;
    margin-top: 0.5rem;
}

#titre-aventure h2 {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 1rem;
    font-weight: 300;
}

#titre-aventure h3 {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
    font-weight: 300;
}

.badges-hero {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.badge:hover {
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    transform: translateY(-2px);
}

@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: 4rem auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    color: white;
    max-width: 1200px;
    padding: 2rem;
}

#conteneur-tech h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rangée-tech {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.élément-tech {
    text-align: center;
    color: white;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    margin: 1rem;
    transition: transform 0.3s ease;
}

.élément-tech:hover {
    transform: translateY(-5px);
}

.élément-tech p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ff8c00;
}

.élément-tech:hover {
    transform: translateY(-5px);
}

.élément-tech p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ff8c00;
}

.img-tech {
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    animation: float 3s ease-in-out infinite;
    border-radius: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 140, 0, 0.2);
}

/* Styles pour les logos texte des nouvelles technologies */
.logo-text {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    border-radius: 20px;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

.react-logo {
    background: linear-gradient(45deg, #61dafb, #21232a);
    font-size: 3rem;
}

.wpf-logo {
    background: linear-gradient(45deg, #512bd4, #239be9);
    font-size: 3rem;
}

.git-logo {
    background: linear-gradient(45deg, #f05032, #362701);
    font-size: 3rem;
}

.java-logo {
    background: linear-gradient(45deg, #f89820, #ed8b00);
    font-size: 3rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .img-tech {
        width: 100px;
        height: 100px;
    }

    .logo-text {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .rangée-tech {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .élément-tech {
        font-size: 1.2rem;
        margin: 0.5rem;
    }

    #titre-aventure {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    #titre-aventure h1 {
        font-size: 2rem;
    }

    .titre-fonction {
        font-size: 1.5rem;
    }

    #titre-aventure h2 {
        font-size: 1.1rem;
    }

    .badges-hero {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .vaisseau-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .competence-card {
        padding: 1.5rem;
    }

    .titre-section {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-text {
        font-size: 1.2rem;
    }

    #conteneur-tech {
        padding: 1rem;
        margin: 2rem auto;
    }

    #conteneur-tech h2 {
        font-size: 2rem;
    }

    #conteneur-soft-skills {
        margin: 3rem auto;
        padding: 1rem;
    }

    .main-container {
        padding: 0 1rem;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Section Compétences Professionnelles */
.section-space {
    margin: 8rem 0;
    padding: 2rem;
    color: white;
}

.titre-section {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.vaisseau-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.competence-card {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 69, 0, 0.1));
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.competence-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.competence-card:hover::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { opacity: 0; transform: rotate(45deg) translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translateX(100%); }
}

.competence-card:hover {
    transform: translateY(-10px);
    border-color: #ff8c00;
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.4);
}

.card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ff8c00;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tech-badge {
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-badge:hover {
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    transform: scale(1.1);
}

/* Section CTA */
.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 30px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    max-width: 800px;
    margin: 4rem auto;
}

.cta-text {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cv, .btn-contact {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cv {
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: white;
    border: 2px solid transparent;
}

.btn-cv:hover {
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.4);
}

.btn-contact {
    background: transparent;
    color: #ff8c00;
    border: 2px solid #ff8c00;
}

.btn-contact:hover {
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.4);
}

/* Roue des Soft Skills */

#conteneur-soft-skills {
    text-align: center;
    margin: 6rem auto;
    color: white;
    max-width: 1200px;
    padding: 2rem;
}

#titre-roue {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#conteneur-soft-skills h2 {
    margin-bottom: 4rem;
}#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); }
}

/* Animations supplémentaires */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 140, 0, 0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.react-logo:hover {
    animation: rotate 2s linear infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    animation: slideInUp 0.6s ease forwards;
}

.badge:nth-child(1) { animation-delay: 0.2s; }
.badge:nth-child(2) { animation-delay: 0.4s; }
.badge:nth-child(3) { animation-delay: 0.6s; }





