:root {
    --theme-color: rgb(242, 246, 246);
    --theme-middle-color: rgb(232, 235, 235);
    --theme-fonce-color: rgb(144, 145, 145);
    --background-color: white;
    --evallaitant-color : rgb(0, 143, 55);
    --main-nav-color : black;
    --main-font : 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--main-font);
    background-color: var(--theme-color);
}

header {
    width: 100%;
    height: 10%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display : flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--theme-fonce-color);
}

#evallaitant-svg {
    height: 80%;
    padding : 5%;
    fill : var(--evallaitant-color);
}

#evallaitant-title {
    color : var(--evallaitant-color);
}

main {
    width: 100%;
    height: 80%;
    padding: 0 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: scroll;
}

footer {
    width: 100%;
    height: 10%;
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    border-top: 2px solid var(--theme-fonce-color);
    text-align: center;
    background-color: var(--background-color);
    box-sizing: border-box;
}

nav {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

.navigation-button {
    height: 80%;
    margin : 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color : var(--main-nav-color);
}

.navigation-svg {
    fill : none;
    width : 100%;
    stroke : var(--main-nav-color);
}

#menu_button {
    background-color: var(--background-color);
}

#menu-section {
    display : none;
    height: 80%;
    margin : 0;
    color: black;
    background-color: var(--theme-color);
    flex-direction: column;
    position: absolute;
    top: 10%;
    right: 0;
    font-size: large;
    text-align: right;
    box-sizing: border-box;
    border-radius: 0;
}

#menu {
    width: 90%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: black;
    display: flex;
    flex-direction: column;
    right: 0;
    font-size: large;
    text-align: center;
    box-sizing: border-box;
}

#menu li {
    width: 100%;
    margin : 15px 0;
    padding: 15px;
    background-color: var(--background-color);
    box-sizing: border-box;
    border-radius: 10px;
}

#logout-form {
    width: 100%;
}

#logout-button {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    border: none;
    text-align: center;
    font-weight: bold;
    color : black;
}

/* Titles */
h1 {
    width: 100%;
    text-align: center;
}

h2, h3 {
    width : 100%;
    margin : 0;
    margin-top : 1em;
    padding: 0;
    text-align: start;
}

.h2-center {
    text-align: center;
}

section {
    width: 100%;
    margin: 0;
    padding: 1em 5%;
    box-sizing: border-box;
    display : flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color);
    border : none;
    border-radius: 10px;
}

div {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style-type: none;
}

li {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Search sections and results displayed sections */

.list_ul {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 2;
    text-align: start;
    box-sizing: border-box;
}

.list_item {
    box-sizing: border-box;
    margin: 0;
    padding: 10px 0 5px 0;
    width: 100%;
    border-bottom: 2px solid var(--theme-color);
    line-height: 1;
}

.form-list-button {
    width : 100%;
    margin : 0;
    padding : 0;
    background-color: var(--background-color);
    text-align: start;
}

.bovine-datas {
    width : 0;
}

/* Navigation secondaire */
#onglet_nav {
    height: fit-content;
    margin: 5% 0 0 0;
    padding: 0.2em;
    box-sizing: border-box;
    background-color: var(--theme-middle-color);
    border-radius: 2em;
}

.nav_button {
    width: 50%;
    height: fit-content;
    box-sizing: border-box;
    margin: 0;
    border: none;
    border-radius: 0;
    background-color: var(--theme-middle-color);
    text-align: center;
    font-size: medium;
}

.nav_button:first-of-type {
    border-right: 2px solid var(--theme-fonce-color);
    border-radius: 2em 0 0 2em;
}

.nav_button:last-of-type {
    border-left: 2px solid var(--theme-fonce-color);
    border-radius: 0 2em 2em 0;
}

/* Formulaires */
form {
    width: 100%;
    font-size: large;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

fieldset {
    width : 100%;
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    text-align: center;
}

label {
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
    box-sizing: border-box;
}

input, select {
    font-size: large;
    border-radius: 5px;
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
}

.errorlist {
    color: red;
}

.radio_line {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.radio_line label {
    width : 100%;
    display : flex;
    flex-direction: column;
    align-items: center;
}

button {
    margin: 5px 0;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background-color: var(--theme-middle-color);
    color: black;
    font-weight: bold;
    font-size: large;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

@media only screen and (min-width: 600px) {
    h2, h3 {
    width : 50%;
    }
    
    section {
        width : 50%;
    }

    #menu-section {
        width : 100%;
    }

    #onglet_nav {
        width : 50%;
    }
}