body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    padding-top: 30px;
    padding-bottom: 150px;
}

.image-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 20px;
}

.image-block {
    width: 48%;
    /* Ajuste la largeur pour 2 éléments par ligne */
    text-align: center;
    margin-bottom: 20px;
}

.image-block img {
    width: 100%;
    max-height: 300px;
    /* Limite la hauteur des images */
    object-fit: contain;
    /* Assure que l'image garde ses proportions sans être coupée */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    background-color: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background-color: #4caf50;
    border-radius: 5px;
}

.title {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
}


/* Style de base */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 60px;
    background-color: #f4f4f4;
}

header {
    background-color: #1e3a8a;
    /* Fond noir */
    color: white;
    padding: 15px 0;
    text-align: center;
    position: fixed;
    /* Fixer en haut */
    top: 0;
    /* Positionné en haut de la page */
    left: 0;
    /* Aligner à gauche */
    width: 100%;
    /* Occuper toute la largeur de la page */
    z-index: 1000;
    /* S'assurer qu'il soit au-dessus des autres éléments */
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
    /* Ombre légère pour un effet de profondeur */
}

footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    margin-top: auto;
    /* Assure que le footer reste en bas */
    font-size: 18px;
}

footer p {
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
}


/* Style du menu déroulant */

.dropdown-menu {
    display: none;
    position: absolute;
    background: #444;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px;
    margin: 0;
}


/* Affichage du menu déroulant au survol */

.dropdown:hover .dropdown-menu {
    display: block;
}


/* Masquer les détails par défaut */

.details {
    display: none;
    position: absolute;
    left: 100%;
    /* Place les détails à droite de la compétence */
    top: 0;
    /* Aligne les détails avec l'élément parent */
    background: #555;
    /* Ajoute un fond pour les détails */
    min-width: 200px;
    /* Définir une largeur minimale pour les détails */
    margin-top: -10px;
    /* Ajuste la position verticale des détails */
}


/* Afficher les détails au survol de .submenu (Compétence 1 ou 2) */

.submenu:hover .details {
    display: block;
}


/* Style des éléments du sous-menu */

.dropdown-menu li {
    display: block;
    margin-bottom: 5px;
}


/* Style des liens dans les sous-menus */

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    background: #555;
    border-radius: 5px;
    text-align: center;
    min-width: 150px;
    /* Pour éviter que les liens soient trop courts */
}

html {
    scroll-behavior: smooth;
}


/* Changement de couleur au survol */

nav ul li a:hover,
.details li a:hover {
    background-color: #888;
}


/* Style des détails des compétences */

.details li {
    display: block;
    background-color: #666;
    margin-bottom: 5px;
}

.details li a {
    padding: 5px 15px;
    color: white;
    text-decoration: none;
    background-color: #777;
    border-radius: 5px;
}