:root {
    --blue: #2BACD8;
    --blue-dark: #1a8ab5;
    --blue-light: rgba(43, 172, 216, 0.10);
    --blue-mid: rgba(43, 172, 216, 0.18);
    --orange: #F5A623;
    --orange-light: rgba(245, 166, 35, 0.10);
    --bg: #F2F4F7;
    --surface: #FFFFFF;
    --surface2: #F7F8FA;
    --surface3: #ECEEF2;
    --border: rgba(0, 0, 0, 0.07);
    --border-strong: rgba(0, 0, 0, 0.12);
    --text: #1A1A22;
    --text-muted: #7A7A88;
    --text-faint: #B0B0BC;
    --green: #1EB06A;
    --green-light: rgba(30, 176, 106, 0.10);
    --red: #E84444;
    --red-light: rgba(232, 68, 68, 0.10);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);

    --padding: .5em;
    --paddingMoyen: 1em;
    --paddingGrand: 2em;
    --ecart : 2em;
    --ecartMoyen: 3em;
    --ecartGrand: 4em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "VeraMono";
    src: url('../fonts/VeraMono.ttf');
}

body {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    font-family: Ubuntu;
}

nav {
    width: 14%;
    border-right: 1px solid var(--border);
    position: relative;
    background: var(--surface);
}
nav > a:first-child{
    border-bottom: 1px solid var(--border);
    margin-bottom: 2em;
}
nav > a:first-child img{
    display: block;
    width: 46%;
    height: auto;
    padding-bottom: 2em;
}

nav header > a{
    padding: 0;
}


nav h1 {
    position: fixed;
    bottom: 5vh;
    width: 100%;
    height: 6vh;
    padding-left: 3em;
    font-size: 1.2rem;
    font-weight: normal;
    font-size: 16px;
    display: flex;
    align-items: center;
}
nav h1 span{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background-color: var(--blue-dark);
    color: var(--surface);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-right: 1em;
}
nav h1 p{
    font-size: 13.5px;
    color: var(--text-faint);
}
nav h1 p::first-line{
    color: var(--text-muted);
    font-size: 16px;
}
#logOut img {
    width: 1.2rem;
}


nav ul {
    list-style-type: none;
}
nav li.nav-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-faint);
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 6px;
}
nav a {
    display: flex;
    align-items: center;
    width: 98%;
    margin: 2% 1%;
    line-height: 2em;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    /* border: 1px solid #ccc; */
    text-decoration: none;
    color: black;
    padding-left: 5%;
    transition: all 0.15s;
}

nav a img {
    margin-right: 1em;
    height: 18px;
}

nav ul li ol {
    margin-left: 10%;
    list-style: none;
}


nav a:hover {
    background: var(--surface3);
    color: var(--text);
}

nav a:active {
    background: var(--blue-light);
    color: var(--blue-dark);
}

body > div:first-of-type{
    width: 86%;
}



header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5vh;
    padding: 2.2%;
    border-bottom: 1px solid var(--border);
    width: 100%;
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}
header h2{
    font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
header div#infopage{
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main {
    width: 100%;
    padding: 1% 1% 8vh;
    height: 97vh;
    overflow: scroll;
    background-color: var(--surface3);
}



footer {
    background-color: var(--blue-dark);
    color: var(--surface);
    width: 100%;
    padding: 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    height: 3vh;
    line-height: 3vh;
}




/**************************
CONNEXION
**************************/
form#connexion {
    width: 15%;
    margin: 20% 40%;
}

form#connexion input {
    line-height: 2em;
    width: 100%;
    margin: 1% 0;
}

form#connexion [type="submit"] {
    width: 40%;
    margin: 2% 30%;
}



/**************************
    TABLEAUX
**************************/

table{
    border-collapse: collapse;
    width: 90%;
    margin:auto;
}
td, th{
    font-size: 13.5px;
}
th{
    background: var(--surface2);
    color: var(--text-faint);
    line-height: 2em;
    text-transform: uppercase;
}
tr th:first-child{
    border-radius: var(--radius-sm) 0 0 0;
}
tr th:last-child{
    border-radius: 0 var(--radius-sm) 0 0;
}
td{
    padding: 4px 6px;
    border-bottom: 1px solid var(--text-faint);
}
tr:nth-child(even){
    background: var(--text-faint);
}

/**************************
    CTA
**************************/

.cta{
    border-radius: var(--radius-sm);
    background-color: var(--blue);
    color: var(--bg);
    padding: var(--padding);
    text-decoration: none;
    font-size: 16px;
    height: 2em;
    display: inline-flex;
    align-items: center;
}
.cta:hover{
    box-shadow: var(--shadow);
}
.ajout::before{
    content: "\002295";
    font-size: 1.3em;
    margin-right: .3em;
    position: relative;
    top: 1px;
}


/**************************
    FORM
**************************/

form{
    background: var(--surface2);
    padding: var(--padding);
    width: 40%;
    margin: auto;
    padding: var(--paddingMoyen);
    border-radius: var(--radius);
}
select,
option,
input,
textarea{
    width: 100%;
    margin: 0 0 var(--ecart);
    line-height: 3em;
    height: 3em;
    padding: 0 var(--padding);
}
textarea{
    height: 12em;
}
label{
    display: none;
}
[type="submit"]{
    width: 60%;
    margin: auto;
    display: block;
}