/* STRUCTURE */
* {
    box-sizing: border-box;
}
body,html{
    width: calc(100% - 2px);
    margin: 0;
    padding: 0;
    text-align: center;
    background: #ddd;
    color: #000;
    font-family: Verdana,arial;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.6em;
}
main{
    width:100%;
    margin:0 auto;
    padding:0;
    text-align:center;
    background:#eee;
    color: #000;
    min-height: calc(100vh - 130px);
    border-top: 1px solid #143352;
    border-bottom: 1px solid #3fb498;
}
h1{
    font-size: clamp(17px, 3vw, 24px);
    line-height: 1em;
}
h2{
    font-size: clamp(16px, 2.8vw, 23px);
}
h3{
    font-size: clamp(15px, 2.6vw, 22px);
}
h4{
    font-size: clamp(15px, 2.5vw, 21px);
}
h5{
    font-size: clamp(14px, 2.4vw, 19px);
}
h6{
    font-size: clamp(14px, 2.3vw, 18px);
}
h1,h2,h3,h4,h5,h6{
    margin: 0;
}
a{
    font-weight: bold;
    text-decoration: none;
    color: #04e;
}
th{
    background: #ddd;
    text-align: center;
}
td,th{
    border: 1px solid #444;
    border-radius: 5px;
    height: auto;
    min-height: 25px;
    padding: 0 10px;
    font-size: clamp(9px, 1.1vw, 16px);
}
article{
    padding-top: 0;
}
input, select, textarea, button{
    border-radius: 3px;
    border: 1px outset grey;
}
.up-label{
    position: absolute;
    font-weight: bold;
    font-style: italic;
    margin: -15px 0 0 1px;
}
#infobar{
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3fb498;
    min-height: 45px;
}
#title{
    flex: 1;
    text-align: left;
    padding: 0 10px;
}
#barsearch{
    flex: 1;
    text-align: center;
    padding: 0 10px;
}
#network{
    flex: 1;
    text-align: right;
    padding: 0 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1em;
}
#user-name{
    text-wrap-mode: nowrap;
}

footer{
    text-align: right;
    padding: 0.25em 10px;
}
footer a{
    font-size: 0.8em;
    text-decoration: none;
    font-style: oblique;
    color: #080;
}
button{
    padding: 0.25em .5em;
    font-weight: bold;
    cursor: pointer;
}

/* CONNEXION */
#login{
    text-align:left;
    border:1px solid #143352;
    padding:1.5em 2.5em;
    border-radius:8px;
    background:#fff;
    color:#000;
}
#connexion{
    display: flex;
    justify-content: center;
    margin-top: 5em;
}
.connexion-form{
    margin-bottom: 0.2em
}
.connexion-form label{
    display:block;
    position:relative;
    font-style: oblique;
}
.connexion-form input[type=text],.connexion-form input[type=password],.connexion-form input[type=email]{
    width: 100%;
    padding:5px 15px;
    border-radius:5px;
    margin-bottom:1em;
    border-color:#3fb498;
}
.connexion-form input[type=password]:focus{
    outline: none;
}
.connexion-form input[type=submit]{
    padding:5px 15px;
    border-radius:5px;
    margin-bottom:1em;
    border:1px solid #666;
}
.asterique-droite{
    text-align: right;
    font-size: .8em;
    font-style: italic;
    margin:0;
    padding:0;
}
.asterique-droite a{
    color:#06f;
}
#note-connexion{
    position: absolute;
    margin-top: -23px;
    margin-left: -2em;
    color: #c00;
    font-size: 0.9em;
    font-style: italic;
}
#indicateur{
    text-align: left;
    font-size: 0.9em;
    font-style: italic;
}
.error-message {
    animation: fadeInOut 3s ease-in-out;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* HEADER */
header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 5px 0;
    padding: 0;
    text-align: left;
    min-height: 65px;
    gap: 20px;
}
#box-svg{
    display: flex;
    gap: 10px;
    padding: 0 .25em;
    flex: 1;
    justify-content: flex-end;
}
#box-svg div{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #888;
    border-radius: 5px;
    width: 64px;
    height: 64px;
}
#deconnexion{
    text-shadow: #800 2px 2px;
}
#deconnexion i{
    color: red;
}
#parametre{
    text-shadow: #444 2px 2px;
}
#parametre i{
    color: #aaa;
}
#renseignement{
    text-shadow: #080 2px 2px;
}
#renseignement i{
    color: #8e8;
}
#archive{
    text-shadow: #840 2px 2px;
}
#archive i{
    color: #d84;
}
#home{
    text-shadow: #048 2px 2px;
}
#home i{
    color: #0af;
    margin-left: -2px;
}
#technicien{
    text-shadow: #608 2px 2px;
}
#technicien i{
    color: #c8f;
    margin-left: -2px;
}
#lexique{
    text-shadow: #448 2px 2px 3px;
}
#lexique i{
    color: #88f;
    margin-left: -2px;
}
#bibliotheque{
    text-shadow: #600 2px 2px 3px;
}
#bibliotheque i{
    color: #c00;
    margin-left: -2px;
}
.logo-lexique,
#lexique:hover{
    background: #ccf;
    box-shadow: 2px 2px 5px #338;
    border: 1px solid #338 !important;
}
.logo-bibliotheque,
#bibliotheque:hover{
    background: #faa;
    box-shadow: 2px 2px 5px #833;
    border: 1px solid #833 !important;
}
.logo-archive,
#archive:hover{
    background: #fc8;
    box-shadow: 2px 2px 5px #840;
    border: 1px solid #a60 !important;
}
.logo-renseignement,
#renseignement:hover{
    background: #cec;
    box-shadow: 2px 2px 5px #080;
    border: 1px solid #060 !important;
}
.logo-accueil,
#home:hover{
    background: #aef;
    box-shadow: 2px 2px 5px #048;
    border: 1px solid #036 !important;
}
.logo-technicien,
#technicien:hover{
    background: #ecf;
    box-shadow: 2px 2px 5px #608;
    border: 1px solid #406 !important;
}
.logo-parametre,
#parametre:hover{
    background: #ccc;
    box-shadow: 2px 2px 5px #444;
}
#deconnexion:hover{
    background: #fcc;
    box-shadow: 2px 2px 5px #800;
    border: 1px solid #700 !important;
}
/* BLOC MESSAGE */
#message{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
}
.bloc-green{
    border: 1px outset #080;
    border-radius: 5px;
    background: #efe;
    color: #060;
    width: fit-content;
    padding: 1em;
    width: 350px;
    text-align: left;
}
.bloc-red{
    border: 1px outset #e00;
    border-radius: 5px;
    background: #fee;
    color: #e00;
    width: fit-content;
    width: 350px;
    text-align: left;
    padding: 1em;
}
/* BUTTONS */
.btn-document{
    border: 1px solid #08f;
    box-shadow: 1px 1px 2px #008;
    background: #aef;
    color: #08f;
}
.btn-modifier{
    border: 1px solid #080;
    box-shadow: 1px 1px 2px #040;
    background: #efe;
    color: #080;
}
.btn-supprimer{
    border: 1px solid red;
    box-shadow: 1px 1px 2px #800;
    background: #fee;
    color: red;
}

/* AJSUTEMENT SVG */
    .fa-3x{
        font-size: 45px;
    }
/* COLOR */
.bgWhite{
    background: white;
}
/* FENETRE MODALE */
#window-modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
#page-modal{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: white;
    padding: 10px 20px 20px 20px;
    border-radius: 8px;
    width: fit-content;
    /*max-width: 500px;*/
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    text-align: left;
}
#header-modal{
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}
#footer-modal{
    padding-top: 20px;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    gap: 2em;
}
#footer-modal button{
    border-radius: 5px;
}
#btn-green{
    border: 1px solid #080;
    background: #efe;
    box-shadow: 2px 2px 5px #040;
}
#btn-orange{
    border: 1px solid orangered;
    background: #fed;
    box-shadow: 2px 2px 5px #A64;
}
#btn-red{
    border: 1px solid red;
    box-shadow: 2px 2px 5px #800;
}
#synopsis{
    padding-top: 20px;
    font-style: italic;
    line-height: normal;
}

/* RESPONSIVE */
@media (max-width: 600px){
    .fa-3x{
        font-size: 30px;
    }
    #box-svg{
        gap: 5px;
    }
    #box-svg div{
        width: 44px;
        height: 44px;
    }
    #infobar{
        flex-wrap: wrap;
    }
}
@media (max-width: 375px){
    header img{
        width: 100%;
        height: auto;
    }
    #connexion,form{
        width: calc(100% - 1em);
    }
}

@media screen and (orientation: landscape) {
  /* Supprime ce bloc si présent */
}