/* Réinitialisation globale pour éviter les espaces indésirables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* Assurer que le body ne crée pas de défilement horizontal */
body {
    font-family: "Literata", serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Empêche le défilement horizontal global */
}

/* Style de la barre de navigation */
.navbar {
    text-decoration: none;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 75px;
    z-index: 10;
    box-sizing: border-box;
}

/* Style des éléments de la barre de navigation */
.logo h1 {
    font-family: "Literata";
    color: white;
    font-weight: 500;
    font-size: 40px;
    line-height: 80%;
}

.logo span {
    font-weight: 200;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s ease;
}

.nav-links li a:hover {
    color: rgb(238, 192, 8);
}

/* Style du bouton du menu hamburger */
.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 15;
    /* Assurer que le bouton hamburger reste au-dessus du menu mobile */
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Menu mobile */
.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.267);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    /* Fond flou */
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}


/* Ajustements pour les petits écrans */
@media (max-width: 768px) {

    .navbar {
        padding: 50px 50px;
        /* Réduit le padding pour plus de place */
    }

    .nav-links {
        display: none;
        /* Cacher les liens de navigation en mode mobile */
    }

    .nav-links.active {
        display: flex;
        /* Afficher le menu mobile */
    }

    .nav-toggle {
        display: flex;
        /* Afficher le bouton du menu hamburger en mode mobile */
    }

    .about-me {
        flex-direction: column;
        padding: 20px 10px;
    }

    .text-block,
    .photo-block {
        width: 100%;
    }

    .photo-block img {
        width: 100%;
    }

}


/* Style pour le bloc principal "about-me" */
.about-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 200px 100px;
    gap: 50px;
    flex-wrap: wrap;
}

/* Style du bloc de texte */
.text-block {
    flex: 1;
    max-width: 80%;
}

.text-block h1 {
    font-size: 36px;
    margin-bottom: 50px;
}

.text-block p {
    font-family: "Poppins";
    font-size: 18px;
    line-height: 1.6;
}

/* Style du bloc photo */
.photo-block {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content:center;
}

.photo-block img {
    width: 100%;
    height: auto;
    max-width: 400px;
    /* Ajustez cette valeur selon la taille souhaitée */
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-me {
        flex-direction: column;
        padding: 200px 0px;
    }

    .text-block,
    .photo-block {
        width: 100%;
    }

    .photo-block img {
        width: 100%;
    }
}