/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth; /*adapte les liens aux scolling*/
    background-color: aliceblue;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#gr-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

.text-container {
    width: 60%;
    text-align: center;
    margin: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

/* Hamburger Menu */
#hamburger-nav {
    display: none;
}

/* Hero Section */

#profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: radial-gradient(rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%); 
    color: white;
    text-align: center;
    gap:5rem;
    margin-left: 10px;
    margin-top: 90px;
    height: 80vh;
}

.section_pic img {
    width: 320px;
    height: 400px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in;
}

.section_text h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.section_text p {
    margin-bottom: 1rem;
}


.btn-container button {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    background-color: #ffffff;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    width: 70%;
}

.btn-container button:hover {
    background-color: #007bff;
    color: #ffffff;
}

.btn-container{
    width: 100%;
}

.socials-container a img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.socials-container a img:hover {
    transform: scale(1.2);
    filter: brightness(1) invert(0);
}

/* About Section */
#about {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

#about .title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #007bff;
}

.about-containers {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 25px;
}

.details-container {
    display: flex;
    flex-direction: column; /* Organisation verticale */
    justify-content: start; /* Espace entre les éléments */
    flex: 1;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

.details-contain {
    display: flex;
    flex-direction: column; /* Organisation verticale */
    justify-content: space-between; /* Espace entre les éléments */
    flex: 1;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

.details-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.details-contain:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.details-container h3 {
    color: #333;
    margin-bottom: 1rem;
}

.details-contain h3 {
    color: #333;
    margin-bottom: 1rem;
}
#research {
    padding: 4rem 2rem;
    background-color: #f1f5f9;
    text-align: center;
}
#research .title {
    text-align: center; /* Centre le texte */
    margin-bottom: 10px;
    font-size: 30px;
    letter-spacing: 3px;
}
#research .section_p1 {
    text-align: center; /* Centre le texte */
    margin-bottom: 10px;
    font-size: 30px;
    letter-spacing: 3px;
}
/* Skills Section */
#experience {
    padding: 4rem 2rem;
    background-color: #f1f5f9;
    text-align: center;
}

.experience-sub-title {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.article-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-evenly;
}

article {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 47%;
}

article:hover {
    transform: scale(1.05);
}

/* Projects Section */
#projects {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.color-container {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.project-img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

/* Contact Section */
#contact {
    padding: 4rem 2rem;
    background-color: #007bff;
    color: white;
    text-align: center;
}

.contact-info-container p a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-container{
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.contact-info-container p a:hover {
    color: #00c4ff;
}

.copyright{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100px;
}

.icon {
    width: 25px;
    height: 25px;
}

.arrow:hover{
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: white;
    font-size: 0.9rem;
}

.menu-links {
    display: none; /* Cache les liens par défaut */
    position: absolute;
    top: 100%; /* Juste en dessous de la navbar */
    left: 0;
    background-color: white;
    width: 30%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px;
    text-align: center;
    margin-left: 70%;
}


.menu-links a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    margin-top: 20px;
}

.menu-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

.menu-links.open {
    display: block; /* Affiche les liens quand la classe 'open' est activée */
}

.hamburger-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
button {
    background-color: #4CAF50; /* Couleur de fond */
    border: none; /* Supprimer la bordure */
    color: white; /* Couleur du texte */
    padding: 10px 20px; /* Espacement intérieur */
    text-align: center; /* Alignement du texte */
    text-decoration: none; /* Supprimer la décoration de texte */
    display: inline-block; /* Afficher comme un élément en ligne */
    font-size: 16px; /* Taille de la police */
    margin: 4px 2px; /* Marge */
    cursor: pointer; /* Curseur au survol */
    border-radius: 5px; /* Bords arrondis */
}

button:hover {
    background-color: #3e8e41; /* Couleur de fond au survol */
}
/* Supprimer les puces par défaut */
ul {
    list-style-type: none;
    padding-left: 0;
}

/* Style des éléments de la liste */
ul li {
    font-size: 1rem;
    text-align: justify; /* Justification du texte */
    margin-bottom: 4px; /* Espacement entre les éléments */
}

/* Ajouter un symbole de case à cocher avant chaque élément de la liste */
ul li::before {
    content: "☑ ";
    font-size: 1.2rem; /* Taille du symbole */
    color: green; /* Couleur du symbole */
}

#certifications .title {
    text-align: center; /* Centre le texte */
    margin-bottom: 10px;
    font-size: 30px;
    letter-spacing: 3px;
}
#certifications .section_p1 {
    text-align: center; /* Centre le texte */
    margin-bottom: 10px;
    font-size: 30px;
    letter-spacing: 3px;
}