/* RESET — Nettoyage des marges et comportement des éléments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    /* color: #222; */
    line-height: 1.6;
}

/*  Zone contenant le logo + hamburger */
header {
    background-color: #007bff;    /* Noir/gris foncé */
    color: white;
    padding: 15px 20px;
}

/* Container horizontal : logo à gauche, hamburger à droite */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
}

/* Menu mobile avec 3 traits*/
.hamburger-menu {
    width: 30px;
    height: 15px;
    display: none;  /* Caché sur PC, visible seulement mobile */
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    
}

/* Chaque trait */
.hamburger-menu span {
    height: 2px;
    background-color: white;
    border-radius: 4px;
    
}

/* Barre de navigation sous le header */
nav {
    background-color: #007bff; /* Gris différent pour bien séparer */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600; /* Orange moderne */
}

/* Bloc réseaux sociaux centré dans le header */
.partie-reseau {
    display: flex;
    justify-content: center;   /* centre horizontalement */
    margin-top: 10px;
}

#reseau-social {
    list-style: none;
    display: flex;
    gap: 15px;                 /* espace entre les icônes */
    padding: 0;
}

#reseau-social li a img {
    width: 40px;               /* taille des icônes */
    height: 40px;
    border-radius: 50%;        /* rend circulaire */
    object-fit: cover;         /* ajuste l’image */
    /*border: 1px solid #111; /* bordure décorative */
    transition: transform 0.3s ease;
}

#reseau-social li a img:hover {
    transform: scale(1.1);     /* effet zoom au survol */
}

/*  COMPÉTENCES  */
/*  MAIN  */
main {
    padding: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Titre principal */
main h1 {
    text-align: center;   /* centré */
    margin-bottom: 30px;  /* espace sous le titre */
    font-size: 2rem;
    color: #007bff;
    font-weight: bold;
}

/* Layout des cards */
/*  MAIN  */
main {
    padding: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Titre principal */
main h1 {
    text-align: center;   /* centré */
    margin-bottom: 30px;  /* espace sous le titre */
    font-size: 2rem;
    color: #007bff;
    font-weight: bold;
}

/* Conteneur des cards */
main > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* grille responsive */
    gap: 20px; /* espace entre les cards */
}

/* Style des cards */
main section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px; /* espace en bas de chaque section */
}

/* Effet dynamique au survol */
main section:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

/* Titres des cards */
main section h2 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Texte */
main section p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}



















/* RESPONSIVE — VERSION MOBILE Le nav disparaît et le hamburger apparaît */
@media (max-width: 768px) {

    /* On affiche le hamburger */
    .hamburger-menu {
        display: flex;
    }

    /* Le menu nav disparaît */
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #111;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }

    /* Quand on clique sur le hamburger → class "show" */
    nav ul.show {
        display: flex;
    }


    main {
        grid-template-columns: 1fr; /* une seule colonne sur mobile */
        padding: 20px;
        gap: 15px;
    }

    main section {
        padding: 15px;
    }

    main h1 {
        font-size: 1.6rem;
    }

    main section h2 {
        font-size: 1.1rem;
    }

    main section p {
        font-size: 0.9rem;
    }


    /* Footer vertical sur mobile */
    footer {
        flex-direction: column;   /* aligne les sections verticalement */
        
        gap: 20px;                /* espace entre les blocs */
    }

    footer .lien {
        margin: 10px;
    }

    footer section {
        width: 100%;              /* chaque bloc prend toute la largeur */
        max-width: 300px;         /* limite la largeur pour rester lisible */
    }

    .partie-reseau {
    justify-content: center;   /* reste centré sur mobile */
    margin-top: 15px;
    }

    #reseau-social li a img {
        width: 35px;               /* icônes plus petites sur mobile */
        height: 35px;
    }

}




 





















/*  FOOTER  */
footer {
    background-color: #111;
    color: #ccc;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer h5, footer h6 {
    color: white;
    margin-bottom: 10px;
}

footer ul {
    list-style: none;
}

footer a {
    color: #ccc;
    transition: 0.3s;
}

footer a:hover {
    color: #ff6600;
}