/* ======= Styles Header ======= */
#head {
    height: 10vh;
    position: relative;
    z-index: 1000; /* baisse un peu */

}


#logo {
padding-left: 22px;
    padding-top: 14px;
}

#logo img {
    display: block;
    max-width: 150px;
    height: 45px;
}

.burger {
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 1001;
    color: black;
    user-select: none;
}

/* ======= Overlay Fullscreen ======= */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(240, 240, 240, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    overflow: hidden;
}

/* ======= Bouton fermeture (croix) ======= */
.close {
    position: fixed; /* pour être sûr qu’il soit au-dessus de tout */
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    z-index: 9999; /* très haut */
    padding: 6px 14px;
    transition: background 0.3s ease;
}


/* ======= Contenu modale ======= */
.menu-content {
    display: flex;
    justify-content: space-between; /* image à gauche, liste à droite */
    align-items: center;
    width: 100vw; /* plein écran largeur */
    height: 100vh; /* hauteur modale complète */
    padding: 0 60px;
    box-sizing: border-box;
}


/* ======= Zone image ======= */
.image-preview {
    width: 45vw; /* presque la moitié de la largeur viewport */
    max-width: 600px; /* limite max pour les grands écrans */
    height: 80vh; /* hauteur importante pour bien remplir */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    background: #fff;
    position: relative;
    transform: translateX(-50px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex-shrink: 0;
}

.image-preview.active {
    opacity: 1;
    transform: translateX(0);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease;
}


/* ======= Liste menu ======= */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    max-width: 45vw; /* même largeur max que l’image */
    font-size: 2.5rem;
    font-weight: 600;
    color: #222;
    overflow-y: auto; /* scroll si trop long */
    font-family: Poppins, sans-serif;
}

.menu-list li {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.3s ease;
}

.menu-list li:hover {
    color: gray;
}

.menu-list li:hover ~ .image-preview img {
    transform: scale(1.05) translateY(-5px);
}

.menu-list li a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

#logo a {
    display: inline-block;
}

.image-preview img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}
.image-preview.active img {
    opacity: 1;
}
