@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
/* Navbar fixe */
.navbar {
    position: fixed;
    top: 0;
    right: 0px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background-color:black;
}

/* Style des boutons navbar */
.nav-btn {
    background: #444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn img {
    width: 32px;
    height: 32px;
}

.nav-btn:hover {
    background: #666;
}

/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


body {
    background:#011f4b; /* Couleur de fond par défaut */
    background-image: linear-gradient(45deg, #011f4b, #1c377b, #281756, #2a074d);
    background-size: 600% 600%;
    color: white;
    display: block;
    height: 100vh;
    margin: 0;
    padding-top: 80px;
    transition: background-image 1s ease-in-out; /* Transition sur background-image uniquement */
}

/* Mode gradient */
.gradient-bg {
    animation: gradientAnimation 16s ease infinite;
}

/* Mode noir */
.black-bg {
    background-image: none; /* Supprime uniquement l’image */
}

/* Carte principale */
.card {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    justify-content: center;
    width: 500px;
    height: 380px;
    margin: 20px auto; /* Centre horizontalement et garde un espace en haut */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Photo de profil */
.profile-pic {
    width: 130px;
    height: 130px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Titres */
.subtitle {
    color: gray;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.title {
    font-size: 24px;
    font-weight: bold;
}

.description {
    font-size: 14px;
    color: #bbb;
    margin: 10px 0;
}

/* Boutons */
.buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

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

/* Section "À propos de moi" */
.text-block {
    width: 80%;
    margin: 120px auto; /* Réduire la marge pour éviter la coupure */
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Couleurs des boutons */
.blue { background-color: #52aedf; }
.blue:hover { background-color: #005f8f; }

.white { color: rgb(158, 158, 158); }
.white:hover { color: #c6c6c6; }


.purple { background-color: #6a0dad; }
.purple:hover { background-color: #570a91; }

.red { background-color: #dd2443; }
.red:hover { background-color: #a4031f; }

.dark { background-color: #333; }
.dark:hover { background-color: #555; }

#gym {color: orange;}
#gym:hover {color: rgba(255, 166, 0, 0.645);}

#sportco {color : lightskyblue}
#sportco:hover {color : rgb(69, 106, 129)}

#storytelling {color : rgb(205, 83, 61)}
#storytelling:hover {color : rgb(105, 43, 33)}

#design {color: rgb(174, 0, 255);}
#design:hover {color: rgba(126, 7, 106, 0.645);}

#meca {color: rgb(252, 255, 93);}
#meca:hover {color: rgba(174, 196, 9, 0.645);}

#jeux-vidéos {color: rgb(19, 195, 36);}
#jeux-vidéos:hover {color: rgba(38, 182, 45, 0.645);}


/* Contenu principal */
#content {
    min-height: calc(100vh - 80px);
    transition: opacity 0.3s ease-in-out; /* Hauteur de l'écran - taille de la navbar */
    margin: 0 auto; /* Centrer le contenu */
    padding: 20px; /* Ajouter un peu de padding */
}
#content_contact {
    height: 500px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    justify-content: center;
    margin: 0 auto; /* Centrer le contenu */
    padding: 20px; /* Ajouter un peu de padding */
}

#projets {
    height: 500px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    justify-content: center;
    margin: 0 auto; /* Centrer le contenu */
    padding: 20px; /* Ajouter un peu de padding */
    flex-direction: column;
}

#skills {
    text-align: left;
    padding-left: 25%;
    margin-top: 10px;
}