
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 */
}

h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
}


.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: 0.4s;
}
nav {
    background: #1e1e1e;
    padding: 10px 20px;
    position: fixed;
    width: 100%; /* Prend toute la largeur de la page */
    top: 0;
    left: 0; /* Assure que la navigation commence à gauche */
    z-index: 100;
    box-sizing: border-box; /* Inclut le padding dans la largeur totale */
}
nav ul {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

nav ul li {
    margin: 0 20px; /* Increased margin between items */
}

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;
}

header {
    height: 100vh;
    background: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Change to space-between to separate text and image */
    text-align: left;
    padding: 0 80px;
    gap: 20px;
    position: relative;
    
}

header .intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header .intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 1s forwards;
    color: #fff;
}

header .intro p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #ccc;
    opacity: 0.8;
}

header .btn {
    background-color: #ff6347;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
}

header .btn:hover {
    background-color: #e05340;
}

header .image-container {
    flex: 0 0 auto; /* Prevent the image from growing or shrinking */
}

header #PhotoPrinc {
    width: 35vw; /* Use viewport width for flexible sizing */
    height: auto;
    border-radius: 7px;
    object-fit: cover;
}

.animated-text-section {
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

#séparateur {
    width: 100%; /* Prend toute la largeur de la page */
    padding: 60px 20px;
    background-color: #1e1e1e;
    text-align: center;
}
main {
    width: 100%; /* Prend toute la largeur de la page */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


main section {
    width: 100%; /* Assure que chaque section prend toute la largeur de la page */
    padding: 20px;
    box-sizing: border-box; /* Inclut le padding dans la largeur totale */
}

#code-text {
    color: #ff6347;
    font-size: 2em;
    font-family: 'Courier New', Courier, monospace;
}

/* Effet de curseur clignotant */
#code-text::after {
    content: '|';
}


/* Skills Section */

.skills-table {
    display: flex;
    justify-content: center; /* Centre horizontalement la table des compétences */
    align-items: flex-start;
    margin: 40px auto; /* Plus d'espace pour aérer */
    padding: 10px;
    gap: 20px;
    max-width: 80%; /* Limite la largeur pour un meilleur centrage */
}

.skills-column {
    background-color: #1e1e1e; /* Harmonisation avec un blanc neutre */
    border: 2px solid #1e1e1e; /* Ajout d'une bordure correspondant au thème */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Accentuation de l'ombre */
    width: 40%; /* Réduction pour un meilleur alignement */
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skills-column:hover {
    transform: translateY(-10px); /* Animation plus marquée */
    background-color: #1e1e1e; /* Couleur hover plus vive */
}

.skills-column h3 {
    color: #fff; /* Couleur vive pour le titre */
    font-size: 1.8em;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.skills-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.skills-column ul li {
    font-size: 1.2em;
    color: #fff; /* Couleur de base harmonisée */
    margin: 10px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.skills-column ul li:hover {
    color: #ff5722; /* Surbrillance au hover */
    transform: scale(1.1);
}

/* Style pour le titre global "Mes Compétences" */
#skills h2 {
    text-align: center; /* Centrage du titre */
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 20px;
    margin-left: 36%;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 3px solid #ff5722; /* Ligne décorative */
    display: inline-block; /* Permet de centrer la ligne aussi */
}


#projects {
    padding: 40px 20px;
    text-align: center;
    background-color: #1e1e1e;
}

.project-carousel {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
}

.card {
    background-color: #2e2e2e;
    border: 1px solid #fff;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    margin: 0 10px;
}

.card img {
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
}

.card-content {
    padding: 20px;
}


.card:hover {
    transform: scale(1.1);
}
/* Animation du bouton de scroll */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 49%;
    transform: translateX(-50%);
    border: 2px solid #ff6347;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: #ff6347;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    60% {
        transform: translateY(-10px);
    }
}
/* 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;
}
/* Responsive */

/* Ecran téléphone */
@media (max-width: 768px) {
    /* 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);
    }
    .skills-table {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .skills-column {
        width: 90%;
        padding: 20px;
        font-size: 0.9em;
    }

    .skills-column h3 {
        font-size: 1.2em;
    }

    .skills-column ul li {
        font-size: 1em;
        margin: 8px 0;
    }
    #skills h2 {
        margin-left: 4%;
    }
    
    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; /* Les éléments s'empilent verticalement */
        align-items: center;
        text-align: center;
        height: 125vh;
    }
    header .image-container {
        flex: 0 0 auto; /* Prevent the image from growing or shrinking */
    }
    
    header #PhotoPrinc {
        order: -1;
        width: 80vw; /* Increased from 70vw to 80vw */
        height: auto;
        margin-bottom: 15px; /* Reduced from 30px to 15px */
    }
    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 */
    }

    .project-carousel {
        flex-direction: column; /* Les projets s'empilent */
        align-items: center;
    }

    .card {
        width: 90%; /* Les cartes occupent presque toute la largeur */
        margin-bottom: 20px;
    }
    .scroll-down {
        position: absolute;
        top: 98%;
        left: 45%;
        transform: translateX(-50%);
        border: 2px solid #ff6347;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        background: #ff6347;
        animation: bounce 2s infinite;
        
    }
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            60% {
                transform: translateY(-10px);
            }
    }
    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;
    }
}

/* Ecran tablette */
@media (min-width: 768px) and (max-width: 1024px) {
    .burger-menu {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 101;
    }
    
    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: 15px 0;
    }

    /* Burger animation classes */
    .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 {
        flex-direction: column; /* Les éléments s'empilent verticalement */
        align-items: center;
        text-align: center;
        height: 125vh;
    }
    header .image-container {
        flex: 0 0 auto; /* Prevent the image from growing or shrinking */
    }
    
    header #PhotoPrinc {
        order: -1;
        width: 50vw; /* Increased from 70vw to 80vw */
        height: auto;
        margin-bottom: 15px; /* Reduced from 30px to 15px */
    }
    header .btn {
        background-color: #ff6347;
        color: #fff;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 4px;
        position: relative;
        bottom: 90px;
        left: 115px;
    }
    
    header .btn:hover {
        background-color: #e05340;
    }
    .intro p {
        margin-top: 0;
        margin-bottom: 200px; /* Added to control bottom spacing */
    }
    nav ul {
        flex-direction: column; /* Les liens de navigation sont empilés */
        display: none; /* Caché par défaut pour téléphone */
    }

    nav ul.active {
        display: flex;
    }
    .scroll-down {
        position: absolute;
        top: 98%;
        left: 49%;
        transform: translateX(-50%);
        border: 2px solid #ff6347;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        background: #ff6347;
        animation: bounce 2s infinite;
        
    }
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            60% {
                transform: translateY(-10px);
            }
    }
    .skills-table {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .skills-column {
        width: 80%;
    }

}

/* Ecran large */
@media (min-width: 1024px) {
    header {
        flex-direction: row; /* Les éléments sont alignés horizontalement */
        justify-content: space-between;
    }

    .intro img {
        order: 0; /* L'image reste à sa position initiale */
        width: 35%; /* Taille normale pour les grands écrans */
    }

    .project-carousel {
        flex-direction: row; /* Les projets sont alignés horizontalement */
        justify-content: space-around;
    }

    .card {
        width: 300px; /* Taille fixe pour les cartes */
    }
}
