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

body {
    background: linear-gradient(120deg, #1e1e2f, #2d2d44);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

h2{
    color:   #00adb5;
}

#certifications .openclassrooms,.technologies-category h3{
    font-size: 25px;
}
h4{
    font-size: 20px;
}

p {
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    background: rgba(30, 30, 47, 0.9);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    font-size: 1em;
    font-weight: bold;
    color: #00adb5;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 1em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00adb5;
}
/* Styles pour le menu hamburger */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
}

/* Menu déroulant */
.nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(30, 30, 47, 0.9);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
    border-radius: 10px;
}

/* Afficher le menu lorsque la classe 'active' est ajoutée */
.nav-links-mobile.active {
    display: flex;
}

/* Styles des liens du menu */
.nav-links-mobile a {
    font-size: 1.2em;
}

/* Afficher le bouton hamburger sur mobile */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}



/* Style pour le popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrer le popup */
    width: 80%;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.6); /* Ombre de fond */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* S'assurer que le popup soit au premier plan */
    opacity: 0; /* Initialement invisible */
    animation: popup-animation 1s forwards; /* Animation d'apparition */
    border-radius: 10px; /* Arrondir les coins */
}

.popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
}

.popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvrir tout l'espace sans déformer l'image */
    z-index: -1; /* Placer l'image derrière le texte */
}

.popup-text {
    position: relative;
    z-index: 1;
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
}

.titre-pop{
    color:orange;
    font-weight: bold;
    font-size: 25px;
}

.p-pop{
    color: #ffffff;
    font-size: 15px;
    font-weight: lighter;
}

/*#avantageMalariaV{
   
    color:orange;
}*/

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#popupButton{
    background-color: red;
}

/* Animation pour l'apparition du popup */
@keyframes popup-animation {
    0% {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}


/* Section Styles */
.section {
    padding: 40px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #00adb5;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
}

.timeline-content {
    background: #24243e;
    border-radius: 8px;
    padding: 15px 25px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timeline-year {
    font-size: 1.5em;
    color: #00adb5;
}

/* About Section */
#about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#about img {
    width: 250px;
    height: 190px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}


#about .text {
    max-width: 600px;
    text-align: start;
    margin-left: 35px;
}

/* Technologies Section */
.technologies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 20px;
    margin: 25px;
}

.technology-item {
    background: #24243e;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.technology-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.technology-item i {
    font-size: 2em;
    color: #00adb5;
    margin-bottom: 10px;
}
.technology-image{
    width: 20%;
    margin-left: 40%;
    margin-bottom:15px;
}

/* Certifications Section */
.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px;
}

.certification-item {
    background: #24243e;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.certification-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Style de la section des projets */

.section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Grille de projets */
.project-grid {
            justify-content: center;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 0.2fr));
            gap: 40px;
        }

/* Style de chaque carte de projet */
.project-card {
    background-color: #24243e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Style de l'image dans chaque projet */
.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Effet au survol */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.project-bouton, .button-g2ek {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0066cc; /* Couleur principale de votre projet (bleu) */
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    animation: moveButton 5s infinite alternate;
}
.btn-cv {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #cc4e00; /* Couleur principale de votre projet (bleu) */
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-cv, .project-bouton, .button-g2ek:hover {
    background-color: #014a93; /* Couleur un peu plus sombre au survol */
}

@keyframes moveButton {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Déplace le bouton vers le haut */
    }
    100% {
        transform: translateY(0);
    }
}



 /* Collaborators Section */
.collab-grid {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 0.26fr)); /* Utilise auto-fit pour s'adapter à la largeur */
    gap: 20px;
    margin: 25px;
    justify-items: center; /* Centre les éléments dans chaque cellule */
}

/* Collaborator Card */
.collab-card {
    align-items: center;
    background: #24243e;
    padding: 20px;
    width: 250px; /* S'assure que chaque carte occupe toute la largeur de la cellule */
    max-width: 250px; /* Limite la taille maximale de chaque carte */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.collab-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.nomColaborateur{
    margin-top: 15px;
}

/* Hover effect */
.collab-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}


/* Style pour la section loisirs */

.loisir-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.loisir-item {
    background-color:  #24243e;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loisir-item i {
    font-size: 40px;
    color: #00adb5;
}

.loisir-item p {
    font-size: 1em;
    color: #ffffff;
    margin-top: 5px;
}

/* Effet au survol */
.loisir-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}



/* Contact Section */
#contactez-moi form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    background: #24243e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#contactez-moi input, #contactez-moi textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

#contactez-moi textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    padding: 10px 25px;
    background: #00adb5;
    border: none;
    color: #fff;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background: #007a8b;
}

/* Footer */
footer {
    background: #1e1e2f;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

footer .social-icons i {
    font-size: 1.5em;
    margin: 0 15px;
    color: #00adb5;
    transition: color 0.3s;
}

footer .social-icons i:hover {
    color: #ffffff;
}


/* Responsive design pour les tailles d'écran */
@media (max-width: 1024px) {

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        width: 100%;
        height: auto;
    }
}




/* Responsive design */
@media (max-width: 768px) {

    .text{
        width: 90%
    }

    .section {
        padding: 25px 20px;
        text-align: center;
    }

    .project-grid {
        gap: 5px;
        margin-top: 50px;
    }
    
    .timeline{
        width: 80%;
        margin-top: 40px;
    }

    .timeline-item{
        flex-direction: column;
        align-items: center;
    }

    .collab-grid, .loisir-list{
        margin-top: 15px;
    }

    h1, h2, h3, h4 {
        font-weight: 700;
    }

    h3 {
        font-size: 19px;
    }

    h4{
        font-size: 18px;
    }
    
    h2{
        color:   #00adb5;
        font-size: 20px;
    }
    
    #certifications .openclassrooms,.technologies-category h3{
        font-size: 18px;
    }
    
    p {
        line-height: 1.6;
        font-size: 15px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links-mobile.active {
        display: flex;
    }
    .nav-links-mobile.active a:hover {
    color: #00adb5;
}

    .collab-grid {
        grid-template-columns: 1fr; /* Affiche une seule colonne sur les petits écrans */
    }

    .collab-card {
        max-width: 90%; /* Les cartes prennent 90% de la largeur sur petits écrans */
    }
}


@media (max-width: 480px) {
    /* Très petits écrans */
    .navbar .logo {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .about-content img {
        width: 90%;
        margin-bottom: 20px;
    }

    .collab-card,
    .project-card {
        padding: 10px;
        margin-bottom: 20px;
    }

    .technology-item {
        text-align: center;
    }
}
