/* Styles de base */
body {
    font-family: Arial, sans-serif;
    background-color: #314559;  /* Fond de la page */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Bandeau fixe en haut */
.bandeau {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fefefe;
    z-index: 100;
    display: block;
    padding: 0 20px;
    height: 45px;
}

.bandeau nav ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.bandeau nav ul li {
    padding: 0 15px;
    display: inline-block;
}

.bandeau nav ul li a {
    text-decoration: none;
    color: #314559;
    font-size: 24px;
    padding: 10px;
    display: inline-block;
    height: 100%;
    line-height: 45px;
}

/* Ajouter une barre verticale entre les liens */
.bandeau nav ul li:not(:last-child) {
    position: relative;
}

.bandeau nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #314559;
}

/* Menu burger */
.burger {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.burger .bar {
    width: 28px;
    height: 3px;
    background-color: #314559;
    border-radius: 2px;
    display: block;
    margin: 4px 0;
}

/* Espacement pour ne pas être recouvert par le bandeau */
.section {
    margin: 40px 0;
    width: 90%;
    max-width: 1200px;
    margin-top: 70px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fefefe;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    width: 100%;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, filter 0.3s ease-in-out;
    width: 100%;
    max-width: 150px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Légende qui déborde de l'image */
.caption {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: transparent;
    padding: 5px;
    font-size: 12px;
    font-weight: 450;
    text-align: center;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .caption {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Styles pour le menu à gauche */
.menu-gauche {
    position: fixed;
    top: 45px;
    left: -70px;
    width: 70px;
    background-color: #fefefe;
    color: #314559;
    font-family: Arial, sans-serif;
    padding-top: 20px;
    box-sizing: border-box;
    z-index: 90;
    height: 100%;
    transition: left 0.3s ease;
}

.menu-gauche.visible {
    left: 0;
}

.menu-gauche ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-gauche ul li {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.menu-gauche ul li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: transparent;
    font-size: 0;
    transition: color 0.3s ease, font-size 0.3s ease;
    height: 40px;
    text-decoration: none;
}

.menu-gauche ul li .logo {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Afficher le menu lorsque le bouton burger est survolé */
.menu-gauche:hover {
    left: 0;  /* Affiche le menu */
    width: 250px;
}

/* Ajouter des transitions douces sur l’apparition du texte */
.menu-gauche ul li a:hover {
    color: #314559;
    font-size: 18px;  /* Afficher le texte lorsque survolé */
}

/* Classe pour afficher le texte lorsque le menu est ouvert */
.menu-gauche:hover ul li a {
    color: #314559;  /* Réaffiche le texte */
    font-size: 18px;  /* Affiche le texte avec la taille normale */
}

/* Lorsque le menu est survolé, le texte devient visible */
.menu-gauche.visible ul li a {
    color: #314559;  /* Affiche le texte */
    font-size: 18px;  /* Affiche le texte avec la taille normale */
}

/* Style du pied de page */
.footer {
    background-color: #314559;
    color: #fefefe;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer a {
    color: #fefefe;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}
