@charset "UTF-8";

body {
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    padding: 0;
    height: calc(100dvh - 50px);
    padding-bottom: 50px;
    margin: 0 auto;
    overflow: hidden;
    max-width: 1000px; 
    position: relative;
}
@media (min-width: 1100px) {
  body {
    box-shadow:
      -8px 0 12px rgba(0, 0, 0, 0.15), /* ombre gauche */
       8px 0 12px rgba(0, 0, 0, 0.15); /* ombre droite */
  }
}

UL {
	margin: 0 0 0 0;
	padding: 0;
	list-style: none;
}
.header {
    background: #F9671F;    
    padding: 0;
    width: 100%;
    height: 70px;
    display: grid;
    align-content: center;
    grid-template-columns: 80px 1fr 60px;
}
.header img {
    margin-left: 10px;
    display: grid;
    align-content: center;
    width: 50px;
}
.header div {
    color: #fff;
    font-size: 20px;
    display: grid;    
    align-content: center;
    font-family: "Parisienne", cursive;
    font-weight: bold;
}

#count {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    font-size: 12px;
    color: #fff;
}
#count SPAN {
    font-size: 12px;
}
#count SPAN:first-child {
    text-align: right;
}
#count SPAN:last-child {
    text-align: left;
}
#count em {
    text-align: center;
}

.caddie {
    margin: 20px 10px 0 10px;
    display: grid;
    grid-template-columns: 1fr 20px;
}


#course, #ajout {
	width: 100%;
	overflow: hidden;
	overflow-Y: auto;
	height: CALC(100SVH - 120px); 
    align-content: flex-start;
    padding: 5px 0 50px 0;
}
#course::-webkit-scrollbar, #ajout::-webkit-scrollbar {
  display: none;
}
#course LI {
    position: relative;
    height: 50px;
    display: grid;
    align-content: center;
    grid-template-columns:  30px 1fr 30px;
    transition: transform 1s ease, opacity 1s ease;
    color: #3d3d3d;
    margin-bottom: 5px; 
    background: linear-gradient(
        to right,
        rgba(140,181,234,0) 0%,
        rgba(140,181,234,0.35) 10%,
        rgba(140,181,234,0.6) 25%,
        rgba(140,181,234,0.85) 50%,
        rgba(140,181,234,1) 100%
    );
    padding-left: 5px;
}

#course LI.new  {
    background: linear-gradient(to right,  rgba(125,185,232,0) 0%,rgba(196,117,178,0.67) 26%,rgba(196,117,178,1) 39%,rgba(196,117,178,1) 100%);
}
#course LI.check {
    background: linear-gradient(to right,  rgba(247,185,202,1) 0%,rgba(247,185,202,1) 1%,rgba(252,155,171,1) 62%,rgba(252,152,168,0.7) 68%,rgba(255,137,151,0) 100%);
}
#course LI.uncheck {
    display: grid;
}
#course LI.check {
    display: none;
}

#course LI.ccheck {
    background: linear-gradient(to right,  rgba(247,185,202,1) 0%,rgba(247,185,202,1) 1%,rgba(252,155,171,1) 62%,rgba(252,152,168,0.7) 68%,rgba(255,137,151,0) 100%);
}
#course LI.unccheck {
    background: linear-gradient(
        to right,
        rgba(140,181,234,0) 0%,
        rgba(140,181,234,0.35) 10%,
        rgba(140,181,234,0.6) 25%,
        rgba(140,181,234,0.85) 50%,
        rgba(140,181,234,1) 100%
    );
}
#course LI.edit {
    grid-template-columns: 30px 1fr 100px;
}



#course LI i.fa-circle, #course LI i.fa-circle-check, #course LI i.fa-spin {
    display: block;
    width: 15px;
    height: 50px;
    align-content: center;
    margin-left: 10px;    
    font-size: 16px;
    cursor: pointer;
}
.bordered {
    color: #FFECDF;             
    -webkit-text-stroke: 1px #F9671F;
}

#course LI .nom {
    margin-left: 10px;
    font-size: 13px;
    display: grid;
    align-content: center;
    font-family: "Zalando Sans Expanded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}
#course LI .quant {
    height: 50px;
    width: 25px;
    display: grid;
    align-content: center;
    cursor: pointer;
}
#course LI .quant SPAN {
    background-color: #F9671F;
    height: 25px;
    width: 25px;
    color: #FFF;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: grid;
    align-content: center
}
#course li.uncheck .quant span[data-count="1"] {
    color: transparent;
    background-color: transparent;
}
#course li.new .quant span[data-count="1"] {
    color: transparent;
    background-color: transparent;
}
#course li.check .quant {
    display: none;
}

#course li {
    position: relative;
}


.quick-edit {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 100px;
    background: #fff;
    align-content: center;
    transform-origin: right; /* pour slide depuis le bouton */
    transform: scaleX(0);
    opacity: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    padding-left: 10px;
    border-radius: 10px 0 0 10px;
}

li.edit .quick-edit {
    transform: scaleX(1);
    opacity: 1;
}
.quick-edit DIV {
    height: 25px;
    align-content: center;
    display: grid;
    text-align: center;    
    width: 25px;      
}
.quick-edit i, .quick-edit p {
    font-size: 11px;    
    border-radius: 50%;
    height: 25px;
    width: 25px; 
    display: grid;
    align-content: center;
    margin: 0;
    padding: 0;
}
.quick-edit .fa-minus, .quick-edit .fa-trash-can {
    color: #1b5c9e;    
    border: 1px solid #1b5c9e;
}
.quick-edit P {
    border: 1px solid #dedede;
    color: #1b5c9e;
}
.quick-edit .fa-plus {
    background-color: #1b5c9e;
    border: 1px solid #1b5c9e;
    color: #fff;
}
.sugg .actions-left,
.sugg .count {
    transform: scaleX(0);
    opacity: 0;
    transform-origin: right;
    transition: transform .35s ease, opacity .35s ease;
}
.sugg.sugg-edit .actions-left,
.sugg.sugg-edit .count {
    transform: scaleX(1);
    opacity: 1;
}




#ajout {
	display: none;
    height: calc(100svh - 72px);
    overflow: hidden;
}
#ajout > DIV {
    display: grid;
    grid-template-columns: 40px 1fr 40px;  
    align-content: center;
    height: 60px;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.25);
}
#ajout INPUT {
    border: none;
    height: 45px;
    margin-top: 5px;
}
#ajout INPUT:focus {
    border: 0;
    outline: none;
}
#ajout i {
    display: grid;
    height: 60px;
    align-content: center;
    text-align: center;
    cursor: pointer;
}
#ajout UL {
    width: 100%;
    height: calc(100svh - 130px);
    overflow: hidden;
    overflow-Y: auto;
}
#ajout LI {
    border-bottom: 1px solid #dedede;
    height: 50px;
    display: grid;
    grid-template-columns: 1fr 20px 20px 20px;
    gap: 15px;
    align-content: center;
    padding-left: 20px;
    padding-right: 20px;
}
#ajout LI .nom {
    white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

#ajout LI em {
    color: #d03131;
    font-weight: bolder;
    font-style: normal;
}
#ajout LI i , #ajout LI P {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    display: grid;
    align-content: center;
    padding: 0;
    margin: 0;
}
#ajout LI i {
    font-size: 11px;
}
#ajout LI .fa-minus, #ajout LI .fa-trash-can {
    border: 1px solid #1b5c9e;
    color: #1b5c9e;
}
#ajout LI P {
    border: 1px solid #dedede;
    color: #1b5c9e;
}
#ajout LI .fa-plus {
    background-color: #1b5c9e;
     border: 1px solid #1b5c9e;
    color: #fff;
}

/* ---- FADE-IN (lent) ---- */
li.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

li.fade-in.show {
    opacity: 1;
}

/* ---- FADE-OUT (rapide) ---- */
li.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.footer {
    width: 100%;
    height: 50px;
    display: grid;
    align-content: center;
    position: absolute;
    bottom: 0;
    background: #234465;
    grid-template-columns: 1fr 1fr 1fr;
    color: #5c86b0;
}
.footer DIV {
    cursor: pointer;
}
.footer .icon {
    border-radius: 50%;
    text-align: center;
}
.footer div.active, .footer DIV:first-child {
    color: #fff;
}
.footer DIV SPAN {
    display: block;
    font-size: 10px;
    text-transform: uppercase
}
.footer DIV EM {
    font-style: normal;
    color: #5c86b0;
}
.footer DIV EM.active {
    color: #fff;
}
.footer .add DIV {
    height: 65px;
    width: 65px;
    display: grid;
    align-content: center;
    color: #fff;
    cursor: pointer;
	font-weight: bolder;
    background-color: #448aff;    
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 50%;
    margin-top: -35px;
    margin-left: calc(50% - 32.5px);
}
.footer .new.active {
    color: red;
    font-weight: bolder;
    text-shadow: 0 0 5px #ffffff;
}

#delete {
    position: absolute;
    bottom: 55px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-content: center;
    text-align: center;
    background-color: #F9671F;
    color: #fff;    
    display: none;
    cursor: pointer;
}


* {
    -webkit-tap-highlight-color: transparent;
}
button, div, i, li {
    outline: none;
}
button:focus,
div:focus,
i:focus,
li:focus {
    outline: none;
}
button, div, li, i {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-user-select: none;
    user-select: none;
}
