:root {
        --cube-height: 100vh;
        --cube-width: calc(var(--cube-height) * 0.7);
        --half: calc(var(--cube-width) / 2);
    }

body {
        margin: 0;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
        background: #111;
        display: block;
    }

.burger {
    display: none;
    font-size: 1.2rem;
    word-spacing: 20px;
    border: none;
    cursor: pointer;
    background: black;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    color: white;
}

    #bulletin {
        display: flex;
        flex-direction: row;
        width: 100vw;
        height: 100vh;
    }

    .menulateral {
        width: 300px;
        background: #222;      /* visible */
        color: white;
        padding: 20px;
        box-sizing: border-box;
    }

    .menulateral ul {
        list-style: none;  
        display: flex;
        flex-direction: column;
        gap: 20px;   /* espace entre les <li> */
    }

    .menulateral .menu_icone {
        display: block;
        margin-bottom: 30px; /* espace entre l'image et la liste */
    }

    .scene {
        flex: 1;               /* prend tout l’espace disponible */
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 2000px;
        position: relative;
    }

    .cube {
        width: var(--cube-width);
        height: var(--cube-height);
        transform-style: preserve-3d;
        transition: transform 1s ease-in-out;
    }

    .cube__face {
        position: absolute;
        width: var(--cube-width);
        height: var(--cube-height);
        backface-visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .cube__face img {
        width: 100%;
        height: 85%;
        object-fit: contain;
        background: #000;
    }

    .cube__face--front  { transform: rotateY(  0deg) translateZ(var(--half)); }
    .cube__face--right  { transform: rotateY( 90deg) translateZ(var(--half)); }
    .cube__face--back   { transform: rotateY(180deg) translateZ(var(--half)); }
    .cube__face--left   { transform: rotateY(-90deg) translateZ(var(--half)); }

    /* Flèches navigation réduites */
   #navArrows {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: row;
        gap: var(--arrow-gap, 400px);
        z-index: 9999;
    }

    .arrow {
        font-size: 50px; /* 🔥 flèches plus petites */
        color: #66b3ff;
        cursor: pointer;
        user-select: none;
        transition: transform 0.2s;
    }

    .arrow:hover {
        transform: scale(1.15);
    }

    *------------------------------------------------------------*

    .menu_icone {
        width: 15%;
    }   

   .img_menu {
        width: 100%;
    }

    .button {
        background-color: #FFDC9D;
        color: black;
        width: 120px;
        height: auto;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 14px;
        font-family: Arial, sans-serif;
        transition: background-color 0.4s, color 0.4s;
        cursor: pointer;
        border-radius: 10px;
        padding: 10px;
    }

    .button:hover {
        background-color: #ffd27a;
        color: white;
    }
/*----------------------------------menu bulletin foi ---------------*/

/* Le <li> parent doit être positionné */
.has-submenu {
    position: relative;
}

/* Sous-menu invisible par défaut */
.submenu {
    display: none;
    position: absolute;
    top: 0px;
    left: 170px; /* Ajuste selon la largeur de ton menu */
    background: black;
    border-radius: 6px;
    z-index: 999; /* Pour passer devant le cube */
    width: 160px;
    max-height: 255px;    /* hauteur fixe → ascenseur fonctionne */
    overflow-y: auto;     /* ascenseur vertical */
    overflow-x: hidden;   /* jamais de barre horizontale */
}

/* Style identique aux autres boutons */
.submenu .button {
    margin-bottom: 6px;
}

#newsletterList a.button {
    display: flex;            
    align-items: center;      /* centre verticalement */
    font-size: 14px;         /* optionnel : texte légèrement plus petit */
    white-space: normal;     /* retour à la ligne si nom long */
}

/* 🔥 Activer le scroll sur tablette paysage */
@media screen and (max-width: 1024px) {
    body {
        overflow: auto !important;
        height: auto !important;
    }
}
#fullscreenHint {
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;

    padding: 10px 6px;
    background: white;
    color: black;

    font-size: 14px;
    font-family: Arial, sans-serif;

    border-radius: 6px;
    z-index: 9999;

    user-select: none;
    pointer-events: none;
}
