* {
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    background-color: #f8f9fa; /* Fond uniforme pour le corps de la page */
}

body {
    margin-top: auto;
    min-height: 100vh; /* S'assure que le fond couvre toute la hauteur de la fenêtre */
    background-color: #c0c0c0; /* Couleur de fond uniforme */
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url(../bg.jpg);
    background-size:cover; 
    background-position: center center; /* Centre l'image */
    background-attachment: fixed; /* Fait en sorte que le fond reste fixe lors du défilement */


}

main{
    margin-top: 76px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/*
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/
/*
.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin: 0 20px;
}

.nav-list li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: #ffcc00;
} */

/* Menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: white;
    height: 4px;
    width: 25px;
    margin: 3px 0;
    transition: 0.3s;
}

/* Section principale */
main {
    margin: unset;
    margin-top: 76px;
    width: 100%;
    max-width: 1200px; /* Limiter la largeur */
    padding: 20px;
    line-height: 1.6;
    background-color: #ffffff; /* Fond blanc uniforme */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Ombre pour profondeur */
    margin: 0 auto; /* Centrer horizontalement */
}

section {
    padding: 40px 20px;
    border-bottom: 1px solid #ccc;
    background-color: #ffffff; /* Fond uniforme pour toutes les sections */
    border-radius: 5px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05); /* Ombre légère pour chaque section */
    margin-bottom: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    color: #333;
}

h2 {
    font-size: 2em;
    color: #555;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffcc00;
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #ff9900;
}

/* Styles responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        text-align: center;
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Affichage cartes projets */
.section-projets-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.section-projets {
    display: flex;
    width: max-content; /* Permet d'occuper uniquement l'espace nécessaire */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    padding: 0 10px;
}

.projet {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    height: fit-content;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.projet img {
    border-radius: 5px 5px 0 0;
    width:100%;
    height: 20vh;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(255, 204, 0, 0.9);
}

#skill-disp {
    display: grid;
    gap: 20px;
    padding: 20px;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
    grid-template-rows: auto; /* Les lignes s'ajustent automatiquement selon le nombre de compétences */
}

.skills-category {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Hauteur fixe pour chaque carré */
    text-align: center;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.skills-category ul {
    padding-left: 0;
    list-style-type: none;
}

.skills-category li {
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

/* Responsive design : ajuster le nombre de colonnes selon la taille de l'écran */
@media (max-width: 1024px) {
    #skill-disp {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour les tablettes */
    }
}

@media (max-width: 768px) {
    #skill-disp {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour les petits écrans */
    }
}

@media (max-width: 480px) {
    #skill-disp {
        grid-template-columns: 1fr; /* 1 colonne pour les très petits écrans */
    }
}

.skill-logo{
    max-width:5em;
}


.fimg img{
    max-width: 100%;
}

#Contact img{
    max-width: 20%;
    min-width: 15%;
}