
[v-cloak] { display: none; }

* {
    --insa-color: #CD0E14;

    --header-button: #9b0b0b;
    --header-button-hover: #860718;

    --light-red: #f14045;

    --light-gray: #fafbfe;
    --light-gray-hover: #d0d6d9;

    --gray: #8D99AE;
    --dark-blue: #2B2D42;
    --dark-blue-light: #555767;

    --text-on-white: #232323;
    --text-light-on-white: #282828;
}


html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-flow: column;
    align-items: stretch;
    font-family: 'Verdana', sans-serif;
    background-color: var(--light-gray);
}

body * {
    box-sizing: border-box;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

code {
    font-size: .95em;
}

/********************************************/
/****************** HEADER ******************/
/********************************************/

header {
    flex: 0 1 auto;
    text-align: center;
    gap: 5px;

    background-color: var(--insa-color);
    color: #EDF2F4;

    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 450px) {
    header {
        padding: 5px 5px;
    }
}

header h1 {
    font-size: 25px;
    padding: 0 !important;
    font-weight: 600;
    margin: 0;
}
header h2 {
    font-size: 15px;
    font-weight: 200;
    margin: 0;
}

header div.side {
    flex-basis: 0;
    flex-shrink: 0;
    flex-grow: 1;
}
header div.side.left > * {
    margin-right: auto;
}
header div.side.right > * {
    margin-left: auto;
}

header a {
    color: var(--light-gray);
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease-in-out;
}
header a:visited {
    color: var(--light-gray);
}
header a.back-link {
    background-color: var(--header-button);
    padding: 5px;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 5px;
    width: fit-content;
}
header a.back-link:hover {
    text-decoration: underline;
    background-color: var(--header-button-hover);
}
header a.back-link > div.arrow {
    width: 10px;
    position: relative;
}
header a.back-link > div.arrow > div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background-color: var(--light-gray);
    border-radius: 3px;
}
header a.back-link > div.arrow > div.branch1 {
    transform: translateX(-2.122px) rotate(-45deg) translateY(-4.245px); /* 4.245 : Half the height */
}
header a.back-link > div.arrow > div.branch2 {
    transform: translateX(-2.122px) rotate(45deg) translateY(4.245px);
}
header a.back-link p {
    margin: 0;
}

/********************************************/
/************** HEADER DROPDOWN *************/
/********************************************/

header .dropdown {
    position: relative;
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    background-color: var(--header-button);
    cursor: pointer;
}

header .dropdown:hover, header .dropdown.showing {
    background-color: var(--header-button-hover);
}

.dropdown .round {
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) scale(1.15);
    width: 4px;
    height: 4px;
    border-radius: 100%;
    background: #fff;
}

.dropdown .round-1 {
    left: 25%;
}

.dropdown .round-2 {
    left: 50%;
}

.dropdown .round-3 {
    left: 75%;
}

.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    height: auto;
    background-color: var(--header-button);
    padding: 5px 0;
    border-radius: 5px;
}

header .dropdown .dropdown-content {
    width: max-content;
}

.dropdown.showing .dropdown-content {
    display: block;
    cursor: default;
}

.dropdown .dropdown-content a {
    text-decoration: none;
    display: block;
    padding: 5px 15px;
}

.dropdown .dropdown-content a:hover {
    background-color: var(--header-button-hover);
}

/********************************************/
/******************* MAIN *******************/
/********************************************/


main {
    text-align: center;
    flex: 1 1 auto;
    background-color: var(--light-gray);

    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;

    margin: 0 auto;
    padding: 10px 5px;
    width: 100%;
    max-width: 600px;
}

main > section {
    padding: 10px;
    margin: 5px auto;
    border-radius: 10px;
    width: 100%;
}
main > section.b-darken {
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px;
}

/********************************************/
/****************** INPUTS ******************/
/********************************************/

textarea{
    min-width: 100%;
    width: 100%;
    max-width: 100%;
}
input, select, textarea {
    min-width: 150px;
    padding: 5px;
}
input, select, textarea, button {
    background-color: white;
    margin: 0;
    border: 2px solid #2B2D42;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    height: 31px;
    box-sizing: border-box;
    font-family: 'Verdana', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-blue);
}
select, button {
    cursor: pointer;
}
input[type='submit']{
    cursor: pointer;
}
input[type='checkbox']{
    min-width: 0;
}
select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px;
    background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%2345475a'><polygon points='0,25 100,25 50,75'/></svg>") no-repeat calc(100% - 10px) center;
    background-size: 12px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #262626;
}

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

input[type="text"] {
    margin: 10px 0;
    width: 180px;
}

form {
    padding: 5px 0;
}

/********************************************/
/***************** MESSAGES *****************/
/********************************************/

div.error-container, div.infos-container {
    width: 100%;
    padding: 8px;
}

div.errors, div.infos, div.success {
    border-radius: 7px;
    color: #EDF2F4;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 12px;
    font-size: 15px;
    line-height: 120%;
    padding: 5px;
    margin: 5px;
}

div.errors {
    background-color: var(--light-red);
    border: 2px solid var(--header-button-hover);
}
div.success {
    background-color: #1bab14;
    border: 2px solid #237f0a;
}
div.infos {
    background-color: #50a6c5;
    border: 2px solid #2d6f98;
}

div.errors p, div.success p, div.infos p {
    color: #EDF2F4;
    font-size: 15px;
    line-height: 130%;
    margin: auto;
}

/********************************************/
/****************** FOOTER ******************/
/********************************************/

footer {
    flex: 0 1 auto;
    background-color: var(--insa-color);
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p {
    color: var(--light-gray);
    padding: 0;
    margin: 0;
    font-size: 15px;
}
footer div + div p{
    text-align: right;
}

footer a {
    color: #c1c6d2;
}
