:root {
    --jaune: #ef6;
    --jaunec: #f6ffb1;
    --cyan5: #044;
    --cyan4: #066;
    --cyan3: #088;
    --cyan2: #0aa;
    --cyan1: #0cc;
    --cyan0: #0ee;
    --cl: clw, sans-serif;
    --ms: msw, sans-serif;
}

@font-face {
    font-family: 'msw';
    font-weight: 100 900;
    src: url('font/montserrat-VF.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'clw';
    src: url('font/clear.woff') format('woff');
}

* {
    margin: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font: 1.1em/1.2em var(--cl);
    color: var(--cyan2);
    background: var(--cyan5);
    padding: 32px 8px;
}

::selection {
    background: var(--jaune);
    color: var(--cyan5);
}

.container {
    max-width: 800px;
    margin: auto;
}

#logo {
    width: 180px;
}

h1 {
    margin: 32px 0;
    font: 650 1.5em var(--ms);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.group {
    background: var(--cyan4);
    border-radius: 16px;
    padding: 16px 16px 8px;
    margin-bottom: 32px;
    position: relative;
    box-shadow: 0 0 16px rgba(0, 0, 0, .1);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

h3 {
    font: 650 1.1em var(--ms);
}

.item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 8px 0;
    background: var(--cyan5);
    border-radius: 8px;
    /* cursor: grab; */
    transition: .2s;
    position: relative;
}

/* .item:active {
    cursor: grabbing;
} */

.item.dragging {
    opacity: .5;
}

.status-0 {

}

.status-1::before {
    content: 'en cours';
    font-size: .8em;
    opacity: .7;
    margin-right: 8px;
}

.status-2 {
    opacity: .5;
}

.status-2::before {
    content: '';
    display: block;
    width: 16px;
    height: 8px;
    border-left: 3px solid;
    border-bottom: 3px solid;
    transform: rotate(-45deg);
    position: relative;
    top: -4px;
    margin-right: 8px;
}

/* .status-2 div:nth-child(1) {
    text-decoration: line-through;
} */

.status-2 .meta {
    opacity: .7;
}

.meta {
    font-size: .7em;
    text-align: right;
    margin-left: auto;
    padding-right: 10px;
    opacity: .6;
}

.progress-container {
    background: var(--cyan4);
    border-radius: 2px;
    height: 4px;
    width: 100%;
    margin: 10px 0 16px;
    overflow: hidden;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, .5);
}

.progress-fill {
    height: 100%;
    background: var(--jaune);
    transition: width 0.4s ease;
    width: 0%;
}


.percent-text {
    font-size: 0.85em;
}

.btn-del {
    color: #c74545;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    background: none;
}

.btn-del:hover {
    background: #ffebee;
}

.controls {
    background: var(--cyan4);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

input, select, button {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 5px 0;
}

button {
    background: var(--jaune);
    color: var(--cyan5);
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    opacity: .5;
}
