/*
 date création de la page 19/08/2025
 par Marc ERHARD
 Description rapide: page index menu principal proline
*/

/* =================== GLOBAL =================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: arial;
}

#root {
    display: flex;
    flex-direction: column; /* empile verticalement */
    min-height: 100vh;      /* prend toute la hauteur de la fenêtre */
}

/* =================== BANNIERE =================== */
.Banniere {
    background-image: url("/img/Banniere.gif");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 350px;
}

/* =================== TITRE =================== */
#Titre {
    color:white;
    font-size: 16px;
}

/* =================== BARRE DE MENU =================== */
#Tab1 {
    background-color: #333;
    border: 1px solid #333;
    width: 100%;
}

#Lig1 { width:100%; background-color: #333; }
#Col1 { background-color: #333; width:33.33%; }
#Col2 {
    background-color: #333;
    color: white;
    font-size: 16px;
    text-align:center;
    width:33.33%;
}
#Col3 { background-color: #333; text-align: right; width:33.33%; }
#Titre_Menu { color: white; font-size: 25px; }

/* =================== BOUTONS =================== */
.btn-home, .btn-connexion, .btn-deconnexion {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-size: cover;
    background-position: center;
    transition: transform 0.15s;
}

.btn-home { background-image: url("/img/home_n.gif"); }
.btn-home:hover { background-image: url("/img/home_e.gif"); transform: scale(1.08); }
.btn-home:active { transform: scale(0.95); }

.btn-connexion { background-image: url("/img/Connexion_n.gif"); }
.btn-connexion:hover { background-image: url("/img/Connexion_e.gif"); transform: scale(1.08); }
.btn-connexion:active { transform: scale(0.95); }

.btn-deconnexion { background-image: url("/img/Deconnexion_n.gif"); }
.btn-deconnexion:hover { background-image: url("/img/Deconnexion_e.gif"); transform: scale(1.08); }
.btn-deconnexion:active { transform: scale(0.95); }

/* =================== MENU BURGER =================== */
.topnav {
    background-color: #333;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    position: relative;
    width: 80%;
}

#topnav_hamburger_icon {
    display: block;
    width: 33px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    position: relative;
    z-index: 100;
}

#topnav_hamburger_icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    margin-bottom: 5px;
    background: #ededed;
    border-radius: 3px;
    transition: 0.25s ease-in-out;
    left: 0;
}

#topnav_hamburger_icon span:nth-child(1) { top: 0px; }
#topnav_hamburger_icon span:nth-child(2) { top: 12px; }
#topnav_hamburger_icon span:nth-child(3) { top: 24px; }

#topnav_hamburger_icon.open span:nth-child(1) { width: 110%; transform: rotate(45deg);}
#topnav_hamburger_icon.open span:nth-child(2) { width: 0%; opacity: 0;}
#topnav_hamburger_icon.open span:nth-child(3) { width: 110%; transform: rotate(-45deg);}
#topnav_hamburger_icon.open span { background: white; }

#topnav_responsive_menu {
    display: none;
    position: fixed;
    min-width: 300px;
    max-width: 90vw;
    background: #ededed;
    box-shadow: 0 2px 8px #aaa;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 9999;
    word-break: break-word;
    left: 0;
    top: 0;
}

#topnav_responsive_menu.open { display: block; }

#topnav_responsive_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#topnav_responsive_menu li { padding: 12px 24px; }

#topnav_responsive_menu a {
    color: #333;
    text-decoration: none;
    display: block;
    position: relative;
    transition: background 0.2s;
}

#topnav_responsive_menu a:hover { background: #e0e0e0; padding-left: 20px; color: #0078b4; }
#topnav_responsive_menu a::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #0078b4;
    transition: width 0.2s;
    z-index: 1;
}

@media only screen and (max-width: 768px) {
    #topnav_responsive_menu {
        left: 0 !important;
        right: 0 !important;
        top: 56px !important;
        width: 100vw !important;
        min-width: unset !important;
        max-width: unset !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: #ededed !important;
        position: fixed !important;
        height: calc(100vh - 56px) !important;
        display: none;
    }

    #topnav_responsive_menu.open { display: block; }
    #topnav_responsive_menu ul { display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
    #topnav_responsive_menu li { padding: 18px 0; }
}

/* =================== ARTICLE =================== */
#Article {
    flex: 1; /* prend tout l’espace restant */
    width: 100%;
    background-color: white;
}

/* =================== FOOTER =================== */
#Footer {
    background-color: white;
    width: 100%;
    height: auto; /* s’adapte à son contenu */
}

#Asubstra {
    font: 15px Arial;
    color: #333324;
    font-weight: bold;
    text-align: center;
    padding: 5px 0;
}
