
/* =========================================
   RM VINTAGE - STYLE ADAPTATIF
   ========================================= */

/* Dimensions générales */
html {
    height: 100%;
}

body {
    width: 1000px;
    max-width: 100%;
    height: calc(100vh - 10px);
    margin: 5px auto;
    overflow: hidden;
}

/* Conteneur principal */
.conteneur {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* En-tête supérieur */
div.header1 {
    flex: 0 0 166px;
    height: 166px;
}
/**************************************/
/*** positionnemnt du menu ************/
/**************************************/
/* En-tête du menu */
div.header2 {
    flex: 0 0 38px;
    height: 38px;
}
 /* Menu aligné tout en bas de l'en-tête */
div.header2 {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

div.header2 table {
    margin-bottom: -6px;
}
/* Zone centrale avec défilement */
div.contenant {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 22px;

    /* Ascenseur Firefox */
    scrollbar-width: auto;
    scrollbar-color: #8b1e1e #eee9df;
}

/* Contenu */
div.centre {
    height: auto;
    min-height: 0;
}

/* Pied de page */
div.pied {
    flex: 0 0 163px;
    height: 163px;
}

/* Adaptation aux petits écrans */
@media screen and (max-width: 1000px) {
    body {
        width: 100%;
    }
}

/* =========================================
   REPERE DE DEFILEMENT PERMANENT
   ========================================= */

/* Bande beige */
div.contenant::before {
    content: "";
    position: sticky;
    float: right;
    top: 0;
    margin-right: -22px;
    width: 18px;
    height: 100%;
    min-height: 120px;
    background: #eee9df;
    border-left: 1px solid #b5a58c;
    pointer-events: none;
    z-index: 10;
}

/* Flèche de défilement */
div.contenant::after {
    content: "↕";
    position: sticky;
    float: right;
    top: 45%;
    margin-right: -19px;
    color: #8b1e1e;
    background: #eee9df;
    font-size: 22px;
    font-weight: bold;
    z-index: 11;
    pointer-events: none;
}

/* =========================================
   RM VINTAGE - ZONE DE DEFILEMENT PERSONNALISEE
   ========================================= */

/* La zone contenant la barre et le contenu */
div.contenant {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* C'est maintenant le contenu central qui défile */
div.centre {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;

    /* Masquer l'ascenseur natif */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

div.centre::-webkit-scrollbar {
    display: none;
    width: 0;
}

/* Désactiver l'ancien repère décoratif */
div.contenant::before,
div.contenant::after {
    content: none;
    display: none;
}

/* Lien retour aux jeux - aligné à gauche */
.contenant .centre p.retour-jeux-conteneur {
    display: block;
    text-align: left !important;
    margin-left: 25px !important;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 0;
}

.contenant .centre p.retour-jeux-conteneur a {
    color: #b5b5b5;
    font-size: 20px;
}

.contenant .centre p.retour-jeux-conteneur a:hover {
    color: #ffffff;
}
