:root {
    --bg-color: #f4f1e9;
    --text-color: #4b2e2e;
    --accent-color: #a9745d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    /*display: flex;
    justify-content: space-between;
    align-items: center;*/
    padding: 1.2rem;
    background-color: #fff9f3;
    border-bottom: 2px solid #d9c9b6;
}

header button {
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

#container {
    padding: 1rem;
}

.active-popup {
    display: flex !important;
}

.overlay-popup {
    position: fixed;
    top:0;
    left:0;
    height:100%;
    width: 100%;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    display: None;
}

.content-popup {
    min-width: 80%;
    min-height: 80%;
    padding: 1rem;
    background-color: #FFF;
}

.popup-buttons button, #container button {
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 0.4rem;
    background-color: var(--accent-color);
    color: white;
    transition: background-color 0.2s;
    display: block;
    margin: 0 auto;
    width: 90%;
    max-width: 15rem;
    margin-top: 1rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;  /*espace entre les boutons
    justify-content: center;
    margin-top: 20px;  espace au-dessus des boutons */
}

.TMPcontent-popup button {
    display: flex;
    align-items: center;
    justify-items: center;
    position: absolute;
    top: 0;
    right: 0;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 0rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #ddd5c3;
}

.item-name {
    flex: 1;
    font-size: 1.2rem;
}

.item-name p{
    margin-top: 0;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls button {
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 0.4rem;
    background-color: var(--accent-color);
    color: white;
    transition: background-color 0.2s;
}

.quantity-controls button:hover {
    background-color: #8a5d48;
}

.quantity-controls span {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

@media (max-width: 480px) {
    .item-name {
        font-size: 1rem;
    }

    .quantity-controls button {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .quantity-controls span {
        font-size: 1rem;
    }
}
