html {
    height: 100%;
}

body {
    margin: 0; padding: 0; border-width: 0;
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background-color: #333;
    height: 100%;
}

/* =================================================================================== */
/*   Page d'entrée         z-index = 0                                                 */
/* =================================================================================== */
#corps {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    top: 0; left:0; width: 100%;
    height: 100%;
    margin: 0; padding: 0;

    background-color: #333;
    z-index: 0;
}

h1 {
    width: 100%; height: 60px;
    font-weight: bold;
    letter-spacing: 2px;
}
h1 p {
    margin: 10px auto 0 auto; padding: 5px 0;
    font-size: 1.3vw; font-style: italic;
}

#image {
    display: flex;
    align-items: center; /* horizontal */
    justify-content: center; /* vertical */
}

img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    margin: 0px auto;
}
img.garde {
    border : 1px solid #AAA;
    box-shadow: 4px 4px 8px #030303;
    cursor: pointer;
}

/* #charge  { display: none; } /* buffer de chargement, caché */

#footer {
    width: 100%; height: 60px;
    font: bold 0.75rem sans-serif;
    margin: 10px auto;
}

/* =================================================================================== */
/*   Onglet latéral : menu principal rétractable    z-index = 100                      */
/* =================================================================================== */
#lateral {
    position: absolute;
    top: 0; left:-200px; width: 200px;
    height: 100%;
    z-index: 100;

    font: bold 16px sans-serif;
    background-color: #999;
    color: #000;
    margin: 0; padding: 0;
    overflow: hidden;
    text-align: left;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#menugen, .menu2 { width: 200px; padding: 0 10px; }
#menugen { margin: 100px 0 0 0; }

h3 { cursor: pointer;  margin: 10px 5px; }
h3:hover { color: #B00; }
#menugen .ui-accordion-header { margin: 10px 0; }
#menugen .ui-accordion-content-active { margin: 0 20px 30px 20px; }
#menugen .ui-state-active { color: #FFF; }

.item {
    cursor: pointer;
    margin: 5px 0 0 30px;
}
.item:hover { color: #B00}

li { margin: 10px 0; list-style: none; cursor: pointer;}
li:hover { color: #B00;}

/* =================================================================================== */
/*   Menu additif (A propos, mail, mentions legales    z-index = 50                    */
/* =================================================================================== */
#panneau, #panneau_mail {
    display: none;

    position: absolute;
    top: 0; left:100px;
    width: 800px; height: 600px;
    z-index: 500;

    font: italique 16px sans-serif;
    background-color: #FFF;
    border: 1px solid #AAA;
    color: #000;
    margin: 0; padding: 0;

    overflow: hidden;
}

.masque {
    position: absolute;
    background: black; opacity: 0.8;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 250;
    display: none;
}

#panneau .ferme, #panneau_mail .ferme { float: right; padding: 0 10px; cursor: pointer; }

.page_info, .page_info_mail {
    font-size:0.9vw;
    margin: 0 auto;

}
.titre, .titre_mail {
    font-weight: bold;
    font-size:1.1vw;
    text-align: center;
    padding: 10px;
}
.texte, .texte_mail {
    width: 500px;
    margin: 0 auto;
    text-align: justify;
}
.gras { font-weight: bold; }
.centre { text-align: center; }

/* =================================================================================== */
/*   Mail                                                                              */
/* =================================================================================== */
form p      {
    position:relative; width: 400px; margin: 10px;
}
form label  { position:absolute; top:0; left:0; }

form fieldset {
    display: block; width: 470px;
    margin: 20px auto; padding: 10px;
    background-color: #DDD;
    border-style: solid; border-width: 1px 2px 2px 1px; border-color: #666 #333 #333 #666;
}
form fieldset p input, form fieldset p textarea {
    display: block; width: 400px;
    margin: 0 0 0 20px; padding: 4px;
    text-align: left;
    border-style: solid; border-width: 2px; border-color: #333 #FFF #FFF #333;
    background-color: #F0F0F0;
}
form fieldset p label {
    display: block; width: 380px;
    margin: 5px 5px 5px 26px; padding: 0;
    text-align: left; color: #777;
}
form fieldset p textarea { padding: 2px; width: 400px; }

.lib_cache { display: none; } /* transmission masquée au PHP */

#boutons {
    display: block; width: 400px;
    margin: 15px auto;
    font-size: 1rem; color: #AAA; font-style: italic;
}
#envoi  { float: left;  text-align: left; }

#retour { /* zone des messages */
    display: block; width: 300px;
    margin: 15px auto; padding: 0 10px;
    color: #A00; font-weight: bold;
}