:root {
    --text: #4a4a4a;

    --info-text: #255728;
    --info-bg: #b8f5bb;
    --alert-text: #b40000;
    --alert-bg: #f5c8ca;

    --bg-color: #3a913f;
	--bg-color-light: #baffbe;
    --bg-color-white: #fff;
    --bg-color-dark: rgba(60,64,67,0.08);
    --nav-width: 256px;
    --max-block-width: 32rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 1rem;
    color: var(--text);
}

html, body, #app {
    height: 100%;
}

#app {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
h2, h3 {
    margin-bottom: 0.5rem;
}

ul {
    margin: 1rem;
}

.icon {
    font-size: 1.2rem;
    cursor: pointer;
}

i.la, i.las, i.lab, i.lar {
    font-size: inherit;
}

footer .credit {
    text-align: center;
    font-weight: bold;
    color: #b2b2b2;
    margin-top: 0.5rem;
}

footer .assurance {
    border-top: 1px solid #999;
    margin-top: 1rem;
}

footer .assurance a {
    text-align: center;
    font-size: 0.9rem;
    padding: 0.6rem;
    display: block;
    background-color: rgb(235, 235, 235);
}

footer .assurance a i.la {
    font-weight: bold;
    font-size: 1.2rem;
}

footer .assurance .details {
    padding: 0 0.3rem;
    opacity: 100%;
    height: 100%;
}

footer .assurance .details.hide {
    opacity: 0;
    height: 0;
    display: none;
}

footer .legals {
    border-top: 1px solid #999;
    background-color: #eee;
    text-align: center;
    padding: 0.3rem;
    font-size: 12px;
}

nav {
    background-color: var(--bg-color-white);
    width: var(--nav-width);
    display: flex;
    flex-direction: column;
    transition: 250ms;
}

#toggler {
    display: none;
}

#toggler:checked~nav {
    width: 0;
    padding: 0;
    opacity: 0;
    z-index: 0;
}

.iconbutton .icon i {
    font-size: 1.4rem;
    border-radius: 1rem;
    padding: 0.3rem;
}

.iconbutton:active .icon i {
    background-color: var(--bg-color-dark);
    outline: none;
}

nav .item {
    font-size: 1.2rem;
    text-decoration: none;
    padding: 1rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--info-text);
}

nav .item.selected {
    border-left: 8px solid var(--bg-color);
    font-weight: bold;
}

nav .item:hover, nav .item:hover span, nav .item:hover span i {
    background-color: var(--info-bg);
}

section {
    padding: 0.5rem 0 0;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    transform: translateX(0);
}

.brand {
    font-size: 1.6rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.brand .icon {
    margin-right: 0.3rem;
    font-size: 1.6rem;
}

header {
    background-color: #fff;
    box-shadow: 2px 1px 4px 0px #707070;
    z-index: 9999;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header .item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 2rem;
}

/* header profile menu */

header .profile {
    display: flex;
    flex-direction: column;
    position: relative;
}

header #profilebox {
    display: none;
}

header .profilemenu {
    transition: 250ms;
    background-color: #fff;
    box-shadow: 5px 5px 10px 0px #707070;
    z-index: 8888;
    position: absolute;
    top: 48px;
    right: 0;
    opacity: 100%;
}

header #profilebox:checked~.profilemenu {
    opacity: 0;
    visibility: hidden;
}

header .profilemenu a, header .profilemenu span {
    white-space: nowrap;
    display: block;
    padding: 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--info-text);
}

header .profilemenu a:hover {
    color: #fff;
    background-color: var(--bg-color);
}

main {
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* form */

form {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 8px 0 var(--text);
    max-width: max-content;
}

.admin {
    max-width: 1280px;
}
.admin form {
    background-color:  var(--bg-color-light);
    margin-bottom: 1rem;
}

.field {
    margin: 0.3rem 0 1rem 0;
}

input, select {
    display: block;
    max-width: 30rem;
    width: 100%;
    background-color: #fff;
    padding: 0.2rem;
    border: 1px solid var(--bg-color);
    border-radius: 0.3rem;
}

input[type=checkbox] {
    display: inline;
    max-width: inherit;
    width: inherit;
}

input:invalid {
    border: 3px solid red;
}

button {
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 1px 1px 1px 0px;
    padding: 0.75rem 0.5rem;
    border: 0;
    border-radius: 0.3rem;
    background-color: var(--bg-color);
}

button, button i {
    font-weight: normal;
    color: #fff;
}

button.small, button.small i {
    margin: 0.3rem;
    color: var(--info-text);
    background-color: var(--info-bg);
}

button:active {
    color: var(--bg-color);
    background-color: #fff;
}

button:disabled, button[disabled], select:disabled {
    background-color: #ccc;
    color: #666;
    user-select: none;
    cursor: not-allowed;
}

button:disabled i, button[disabled] i {
    color: #666;
}

.action {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.action button {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.action button:first-child {
    margin-left: 0;
}

/* field input with icon */

.field.icon {
    position: relative;
}

.field.icon input {
    padding-left: 1.4rem;
    line-height: 1rem;
    font-size: 1rem;
}

.field.icon i {
    position: absolute;
    top: 0.3rem;
    left: 0.2rem;
    line-height: 1rem;
    font-size: 1rem;
}

/* semantic */

.login {
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color-white);
}

.login h1 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.login h1 .icon {
    font-size: 3rem;
}

blockquote {
    margin: 1rem 0 1rem 0;
    padding: 1rem;
}

article.alert, blockquote.alert {
    max-width: 15rem;
    padding: 0.5rem;
    color: var(--alert-text);
    border-left: 4px solid var(--alert-text);
    background-color: var(--alert-bg);
}

blockquote.info {
    color: var(--info-text);
    border-left: 4px solid var(--info-text);
    background-color: var(--info-bg);
}

.project {
    display: flex;
    flex-direction: column;
}

.project .rappel_projet {
    width: 100%;
}

.project .results {
    display: flex;
    align-items: center;
    flex-flow: row wrap;
    max-width: var(--max-block-width);
}

.project .results .result {
    background-color: var(--bg-color-light);
    border-radius: 0 0 1rem 1rem;
    margin: 1rem 1rem 1rem 0;
    padding: 0 0 1rem;
    width: 15rem;
    height: 15rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project .results .result .result_title {
    background-color: var(--bg-color);
    color: #fff;
}
.project .results .result .multioffre {
    display: flex;
    flex-direction: row;
}
.project .results .result .multioffre input {
    display: inline;
    width: inherit;
    margin-left: 1rem;
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
}
.project .results .result .multioffre label {
    text-align: left;
    font-weight: bold;
}


.project .card {
    display: flex;
    align-items: center;
    max-width: var(--max-block-width);
}

.project .card p {
    font-size: 1.2rem;
}

.project .card p .cagnotte {
    font-size: 1.2rem;
    font-weight: bold;
}


@media screen and (max-width:768px) {

    header, main {
        padding: 0.3rem;
    }

    nav {
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 9999;
    }

    .project .results .result {
        margin: 0.5rem 0;
        padding: 0 0 1rem;
        border: 1px solid white;
        width: 50%;
    }

    .project .results .result .comment {
        font-size: 0.8rem;
        letter-spacing: -1px;
    }
}


/* Manage app updates */
#update {
    transition: ease 0.5s;
    visibility: hidden;
    padding: 0;
    height: 0;
    z-index: 1;
    width: 300px;
    margin: 0 auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
}

#update.show {
    visibility: visible;
    padding: 16px 0;
    height: 75px;
    z-index: 99999;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 32px;
    height: 32px;
    animation: spin 2s linear infinite;
}
.message {
	color: var(--alert-text); 
	padding: 0;
	margin: 0;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
