
body{
    background-color: #e2d2b4;
    padding: 2em;
}

section {
    background-color: white;
    border-top: 0.5em solid #ac7d2a;
    border-radius: 0.5em;
    padding: 1em;
    box-shadow: rgba(0,0,0,0.2) 5px 5px 10px;
}

.back-marron {
    background-color: #a26d00;
    color: white;
}
.hover-back-marron:hover{
    background-color:#dbb88d;
}

#main-img{
    width: 100%;
    border-radius: 0.5em;
}
#logo-div{
    border-radius: 0.5em;
    background-color: white;
    padding: 0.5em;
    overflow: hidden;
    max-height: 17em;
    box-shadow: rgba(0,0,0,0.2) 5px 5px 10px;
    border: 1px solid #ac7d2a;
}
#logo-div img{
    width: 100%;
}



#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#menu ul li:not(:first-child) {
    margin-top: 1em;
}
#menu ul li a {
    background-color: #d5d5d5;
    display: block;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    color: black;
}
#menu ul li a.actif {
    background-color: #ece3e3;
    color: rgb(71, 71, 71);
    font-weight: bold;
}
#menu ul li a:hover {
    background-color: #dbb88d;
    color: brown;
}


#btn-creer{
    float:right;
}


.flex-col{
    display: flex;
    gap: 2em;
    flex-direction: column;
}

.page2col{
    display: flex;
    gap: 2em;
    flex-direction: row;
}
.page2col > div:nth-child(1){
    min-width: 15em;
    width: 15em;
}
.page2col > div:nth-child(2){
    flex-grow: 1;
}



.fixe{
    position: sticky;
    top: 1em;
    z-index: 2;
}




table {
    border: 2px solid #938989;
    border-spacing: 1px;
    width: 100%;
}

table td,
table th {
    border: 1px solid #d5d5d5;
    padding: 5px;
}
table td.buttons,
table th.buttons {
    width: 0;
    text-align: center;
    text-wrap: nowrap;
}
table td.ellipsis,
table th.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    max-width: 15vw;
}


table button{
    border: none;
    background-color: transparent;
    padding: 0;
}
table button:hover{
    background-color: #d5d5d5;
}
table a img,
table button img,
table td.photo img{
    width: 24px;
    height: 24px;
}
table tr.actif0 td{
    background-color: #EEEEEE;
    color: #888888;
}


.popover div.img{
    height: 135px;
    width: 240px;
    border: 1px solid black;
    background-size: cover;
    background-color: #ece3e3;
    background-position-x: center;
    background-position-y: center;
}


.hidden{
    display: none;
}



.input-number-group{
    display: flex;
}
.input-number-group button{
    padding: 0;
    width: 1.8em;
}
.input-number-group button:first-child{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-number-group button:last-child{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-number-group input{
    width: 3em;
    border-radius: 0;
    text-align: right;
}





#vitrine{
    display: flex;
}
#vitrine > ul{
    flex-grow: 1;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}
#vitrine > ul > li{
    display: block;
    max-width: 16em;
    width: 16em;
    min-width: 16em;
    height: 15em;
    flex-grow: 1;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    background-color: #f1ede6;
    box-shadow: rgba(0,0,0,0.2) 5px 5px 10px;
    position: relative;
}
#vitrine > ul > li.actif{
    background-color: #e5d6bb;
}
#vitrine > ul > li.epuise{
    background-color: #f1c7ce;
    color:#888888;
}
#vitrine > ul > li > button:first-child{
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
}
#vitrine > ul > li .titre{
    margin: 12px 0px 12px 0px;
    text-align: center;
    font-weight: bold;
    width: 100%;
    padding-right: 40px;
}
#vitrine > ul > li .photo{
    height: 9em;
    width: 16em;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    background-size: cover;
    background-color: #ece3e3;
    background-position-x: center;
    background-position-y: center;
    margin-left: -1px;
}
#vitrine > ul > li .prix{
    text-shadow: white 2px 2px 1px;
    color: lightgray;
    font-size: 1.8em;
    text-align: center;
    font-style: italic;
    font-family: math;
    width: 100%;
    margin-top: 4px;
}
#vitrine > ul > li.actif .prix{
    text-shadow: none;
    color: #444444;
}
#vitrine > ul > li .quantite{
    position: absolute;
    bottom: 3px;
    left: 3px;
    border: 1px solid #cd9f59;
    height: 40px;
    width: 40px;
    text-align: center;
    padding-top: 7px;
    border-radius: 20px;
    background: #e3bb92;
    cursor: pointer;
    font-weight: bold;
}
#vitrine > ul > li .info{
    position: absolute;
    top: 3px;
    right: 3px;
    height: 40px;
    width: 40px;
    padding-top: 7px;
    border: none;
    background: none;
    font-style: italic;
    font-size: small;
}
#vitrine > ul > li .sub{
    position: absolute;
    bottom: 3px;
    right: 3px;
    height: 40px;
    width: 40px;
    padding-top: 7px;
    border-radius: 20px;
    /*display: none;*/
}
#vitrine > ul > li.actif .sub{
    display: unset;
}
#vitrine > ul > li .description{
    display: none;
}




.img-and-form{
    display: flex;
}
.img-and-form img {
    width:36px;
    height:36px;
    margin-right: 10px;
    margin-top: 5px;
}
.img-and-form > div + div {
    flex-grow: 1;
}



.unvalidated #left-part {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(50,50,50,0.5);
    width: unset;
}
.unvalidated #left-part #logo-div,
.unvalidated #left-part #panier {
    display: none;
}
.unvalidated #left-part section {
    width: 250px;
    margin: auto;
    height: 273px;
    max-height: 273px;
}
.unvalidated #left-part section button {
    display: inline-block !important;
}



.table-avec-total{
    margin-top: 20px; 
    border: none;
    border-right: 2px solid #938989;
    border-top: 2px solid #938989;
    border-spacing: 0px;
}
.table-avec-total th,
.table-avec-total tbody td{
    border-bottom: 1px solid lightgrey;
    border-left: 1px solid lightgrey;
}
.table-avec-total tfoot td{
    border: none;
}
.table-avec-total thead th:first-child,
.table-avec-total tbody td:first-child,
.table-avec-total tfoot td:last-child{
    border-left: 2px solid #938989;
}
.table-avec-total tbody tr:last-child td:not(:last-child),
.table-avec-total tfoot td:last-child{
    border-bottom: 2px solid #938989;
}

.table-avec-total tfoot td:last-child{
    font-weight: bold;
}









@media only screen and (max-width: 600px) {
    body{
        padding: 0;
    }
    .container{
        padding:0;
    }
    .large-screen,
    .medium-screen{
        display: none;
    }
    #logo-div{
        display: none;
    }
    .fixe{
        top:0;
    }
    .flex-col {
        gap: 0 !important;
        flex-direction: column !important;
    }
    .flex-col > * {
        gap: 0;
        box-shadow: none;
        border-radius: 0;
    }
    .flex-col > *:last-child {
        border-bottom: 1px solid #ac7d2a;
    }
    #logo-div + section{
        flex-direction: column !important;
    }
    .img-and-form > div:first-child{
        display: block !important;
    }
    #panier{
        gap: 0;
        padding-top:0;
        border-top: none;
    }
    #panier > div:first-child{
        flex-grow: 0;
    }
    .fixe label,
    #panier .fw-bold{
        display: none;
    }
    #total{
        float: left !important;
        margin-right: 20px;
    }
    #nb-articles{
        float: left !important;
    }
    #menu li {
        overflow: hidden;
    }
}
@media only screen and (max-width: 700px) and (min-width: 600px) {
    body{
        padding: 1em;
    }
    .large-screen,
    .medium-screen{
        display: none;
    }
    .page2col > div:first-child > section.fixe{
        flex-direction: column;
        gap: 0.1em;
    }
    #panier{
        gap: 0.1em;
    }
    .fixe label{
        display: none;
    }
    .img-and-form > div:first-child{
        display: block !important;
    }
}
@media only screen and (max-width: 767px) {
    .container{
        max-width: 100% !important;
    }
    .large-screen{
        display: none;
    }
}

@media only screen and (max-width: 991px) {
    /* For mobile phones: */
    .page2col {
        flex-direction: column;
        gap: 1em;
    }
    .page2col > div:first-child {
        flex-direction: row;
        width: 100%;
        display: flex;
        gap: 1em;
    }
    #logo-div { 
        padding: 0;
        min-width: 4em;
        width: 4em;
     }
    .page2col > div:first-child > section {
        flex-grow: 1;
    }
    .page2col > div:first-child > section,
    #menu ul {
        display: flex;
        gap: 1em;
    }
    .page2col > div:first-child > section > div,
    #menu li {
        margin-top: 0 !important;
        flex-grow: 1;
    }
    .large-screen{
        display: none;
    }
    .img-and-form > div:first-child{
        display: none;
    }
}

@media only screen and (max-width: 1199px) and (min-width: 992px) {
    /* For mobile phones: */
    .page2col > div:nth-child(1) {
        min-width: 10em;
        width: 10em;
    }
    .large-screen{
        display: none;
    }
    .img-and-form > div:first-child{
        display: none;
    }
}