/* ===== Cookie Factory : feuille de style (fournie, pas à modifier) ===== */

body {
    font-family: system-ui, sans-serif;
    background-color: #fdf6ec;
    color: #4a3222;
    text-align: center;
    margin: 0;
    padding: 1rem;
}

h1 {
    margin-bottom: 0.2rem;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0 0 0;
}

.infos {
    color: #8a6a50;
    margin-top: 0.2rem;
}

/* Le gros cookie cliquable */
.cookie {
    font-size: 6rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    border: 6px solid #c98b4f;
    background-color: #f3d3a5;
    cursor: pointer;
    transition: transform 0.08s;
}

.cookie:hover {
    transform: scale(1.05);
}

.cookie:active {
    transform: scale(0.92);
}

/* La boutique */
.boutique {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.achat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 14rem;
    padding: 0.8rem;
    border: 2px solid #c98b4f;
    border-radius: 0.8rem;
    background-color: #fff;
    color: #4a3222;
    font-size: 1rem;
    cursor: pointer;
}

.achat:hover {
    background-color: #fbe7c8;
}

.achat .nom {
    font-weight: bold;
    font-size: 1.1rem;
}

.achat .prix {
    color: #8a6a50;
}

/* Un bouton désactivé (pas assez de cookies) apparaît grisé */
.achat:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #fff;
}
