
html {
    scroll-behavior: smooth;
    overflow-x : hidden
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #2e2e2e;
    color: #fff;
    line-height: 1.6;
    overflow-x : hidden;
    margin: 0;
    padding: 0;
}
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
nav {
    background: #1e1e1e;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center; /* Cela centre les éléments horizontalement */
    align-items: center;     /* Cela centre les éléments verticalement */
    list-style-type: none;   /* Retire les puces */
}

nav ul li {
    margin: 0 15px;          /* Ajoute de l'espace entre les éléments */
}


nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    background: #ff6347;
    border-radius: 4px;
}
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: 0.4s;
}
header {
    background-color: #1e1e1e;
    height: 30vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;

}

header .intro h1 {
    font-size: 3rem;
    margin-right: 50px;
}

header .intro p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

#about-me {
    padding: 40px 20px;
    background-color: #2e2e2e;
    text-align: center;
}

#about-me h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6347;
}

#about-me p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

#about-me img {
    border-radius: 50%;
    margin: 20px 0;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #ff6347;
}

.download-cv-button {
    display: block; /* Change l'affichage en bloc pour permettre le centrage */
    margin: 20px auto; /* Centre le bouton horizontalement */
    padding: 10px 20px;
    background-color: #ff6347;
    color: white;
    text-decoration: none;
    border: none; /* Supprime les bordures par défaut */
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    animation: fadeIn 1s ease-in-out; /* Ajoute une animation de fondu */
    max-width: 200px; /* Définit une largeur maximale pour le bouton */
    cursor: pointer; /* Change le curseur pour indiquer que c'est un bouton cliquable */
}

.download-cv-button:hover {
    background-color: #ff7357;
    transform: scale(1.05);
}

/* Définition de l'animation fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#passions {
    width: 100%;
    padding: 40px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

#passions img {
    width: 80px; /* Augmente la taille des icônes */
    height: auto;
    margin: 20px; /* Ajoute de l'espace autour des images */
    transition: transform 0.3s ease;
}

#passions img:hover {
    transform: scale(1.1); /* Effet de zoom au survol */
}



/* Footer */
footer {
    background-color: #1b1b1b;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    width: 100%;
    z-index: 100;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.contact-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.contact-item img:hover {
    transform: scale(1.1);
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

.copyright {
    font-size: 14px;
    color: #ccc;
}
.animated-text-section {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}
#code-text {
    color: #fff;
    font-size: 1em;
    font-family: 'Courier New', Courier, monospace;
}

/* Effet de curseur clignotant */
#code-text::after {
    content: '|';
}
/* Adaptations pour les petits écrans */

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1e1e1e;
        padding-top: 60px;
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0; /* Plus d'espace entre les liens */
    }

    nav ul {
        flex-direction: column; /* Les éléments du menu s'affichent en colonne */
        padding: 10px 0;
    }
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 30vh; /* Réduction de la hauteur */
    }

    header #PhotoPrinc {
        width: 80vw;
        margin-bottom: 15px;
    }

    header .btn {
        bottom: 90px;
        left: 50%;
    }

    header .dynamic-text {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
        margin-right: 1%;
    }
    header .btn {
        background-color: #ff6347;
        color: #fff;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 4px;
        position: relative;
        bottom: 90px;
        left: 50%;
    }
    
    header .btn:hover {
        background-color: #e05340;
    }
    .intro p {
        margin-top: 0;
        margin-bottom: 200px; /* Added to control bottom spacing */
    }
    /* Burger animation classes */
    .burger-menu {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 101;
    }
    .burger-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    header .intro h1 {
        font-size: 2rem;
    }

    #about-me p {
        font-size: 1rem;
    }
    footer {
        padding: 15px 0;
        font-size: 12px; /* Réduction de la taille du texte */
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-item img {
        width: 40px; /* Réduction de la taille des icônes */
        height: 40px;
    }

    .contact-item p {
        font-size: 12px;
    }

    .copyright {
        font-size: 12px;
    }

}


