body {
    background-color: #f8f9fa;
    color: #17181e;
    font-family: Comfortaa, sans-serif;
}

#lang {
    text-align: center;
}

#infos-legales {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: small;
}


#mainbox {
    background-color: #ffffff;
    color: #17181e;
    width: 80%;
    border: 1px solid #916721;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    background-attachment: scroll;
    background-position: center center ;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('images/fond.jpg');
    padding: 5px;
}

h1, h2, h3 {
    font-family: Oxanium, sans-serif;
    color: #916721;
    text-align: center;
}

a {
    color: #916721;
    text-decoration: none;
}

a:hover, a:active {
    color: #17181e;
}

#errmsg {
    color: red;
    font-family: Oxanium, sans-serif;
    font-weight: bold;
    text-align: center;
}

#disclaimer {
    font-size: x-small;
}


.bouttons {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
}

.grille-principale {
    display: flex;
}

.colonne-principale {
    flex: 1;
}

.grille-resultats {
    display: flex;
}

.colonne-resultats {
    flex: 1;
}

#logos {
    display: grid;
    grid-template-columns: 33% 34% 33%;
    text-align: center;
    height: 100px;
}

#logos a {
    display: block;
    height: 100%;
}

#logos img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#logo-iso18 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.container-resultats {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    text-align: center;
}

.container-resultats > input {
    text-align: right;
    font-weight: bold;
}

.grille-champs {
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 5px;
    row-gap: 5px;
    align-items: center;
}

fieldset {
    border: 1px solid #916721;
}

fieldset > legend {
    font-family: Oxanium, sans-serif;
    font-weight: bold;
    color: #916721;
}

button {
    background-color: #916721;
    color: #FFFFFF;
    font-family: Oxanium, sans-serif;
    font-weight: bold;
    border: 1px solid black;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

button > a, button > a:hover, button > a:active {
    background-color: #916721;
    color: #FFFFFF;
    font-family: Oxanium, sans-serif;
    font-weight: bold;
    text-decoration: none;
}

@media print {
    
    *,
    *:before,
    *:after,
    *:first-letter,
    p:first-line,
    div:first-line,
    blockquote:first-line,
    li:first-line {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12px;
    }
    
    #lang, .bouttons, #infos-legales {
        visibility: hidden !important;
    }
    
    fieldset {
        border: 1px solid black !important;
    }
    
#mainbox {
    background-color: transparent !important;
    color: black !important;
    width: 100% !important;
    border: 0px solid !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px !important;
    background-image: none !important;
    padding: 5px;
}
}

@media (max-width: 1800px) {

    #mainbox {
        width: 100%;
        padding: 1px;
    }
}

@media (max-width: 1500px) {

    #mainbox {
        width: 100%;
        padding: 1px;
    }
    
    #infos-legales {
        width: 100%;
    }

  .grille-principale, .grille-resultats {
    display: block;
  }
}
