/* ── Apéro Express – Barre de progression gamifiée ───────────────────────── */

.aez-progress-wrap {
    --aez-brique:      #C1502E;
    --aez-miel:        #EFA83B;
    --aez-sauge:       #7A8B6F;
    --aez-blanc-casse: #FBF7F2;
    --aez-brun-cafe:   #3D2C22;

    margin: 0 0 20px;
    padding: 16px 18px 20px;
    border-radius: 16px;
    background: var(--aez-blanc-casse);
    border: 1px solid rgba(193, 80, 46, 0.18);
}

.aez-progress__message {
    margin: 0 0 18px;
    font-size: 0.98em;
    line-height: 1.4;
    color: var(--aez-brun-cafe);
}

.aez-progress__message strong {
    color: var(--aez-brique);
}

/* Palier 0 — minimum de commande atteint, en route vers la livraison offerte */
.aez-progress--palier0 .aez-progress__message strong {
    color: var(--aez-miel);
}

/* Palier 1 — livraison offerte débloquée */
.aez-progress--palier1 .aez-progress__message strong {
    color: var(--aez-sauge);
}

/* Palier 2 — cadeau surprise débloqué */
.aez-progress--palier2 .aez-progress__message {
    font-weight: 700;
    color: var(--aez-brique);
}

.aez-progress__track {
    position: relative;
    height: 10px;
    margin: 0 15px;
    border-radius: 999px;
    background: rgba(193, 80, 46, 0.14);
    overflow: visible;
}

.aez-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--aez-miel); /* palier 0 : minimum de commande atteint = orange */
    transition: width 0.4s ease, background 0.4s ease;
}

.aez-progress--palier1 .aez-progress__fill {
    background: var(--aez-sauge); /* livraison offerte = vert */
}

.aez-progress--palier2 .aez-progress__fill {
    /* cadeau bonus = couleur éclatante, dégradé animé plutôt qu'un aplat */
    background: linear-gradient(90deg, var(--aez-brique), var(--aez-miel), var(--aez-brique));
    background-size: 200% 100%;
    animation: aez-progress-eclat 2s linear infinite;
}

@keyframes aez-progress-eclat {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Pastilles sur la piste : coche (palier livraison) + cadeau (palier surprise) */
.aez-progress__marker {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--aez-blanc-casse);
    border: 2px solid rgba(193, 80, 46, 0.35);
    color: var(--aez-brique);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.aez-progress__marker svg {
    width: 13px;
    height: 13px;
    transition: width 0.3s ease, height 0.3s ease;
}

.aez-progress__marker--check.is-atteint {
    background: var(--aez-sauge);
    border-color: var(--aez-sauge);
    color: #ffffff;
}

/* Picto cadeau affiché en grand + animé une fois débloqué, en bout de barre */
.aez-progress__marker--gift {
    width: 30px;
    height: 30px;
}

.aez-progress__marker--gift.is-atteint {
    width: 44px;
    height: 44px;
    background: var(--aez-brique);
    border-color: var(--aez-miel);
    border-width: 3px;
    color: #ffffff;
    box-shadow: 0 0 0 rgba(193, 80, 46, 0.5);
    animation: aez-progress-gift-pulse 1.6s ease-in-out infinite;
}

.aez-progress__marker--gift.is-atteint svg {
    width: 20px;
    height: 20px;
}

@keyframes aez-progress-gift-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(193, 80, 46, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(193, 80, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(193, 80, 46, 0); }
}

/* Libellés sous la barre */
.aez-progress__labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.82em;
    font-weight: 600;
    flex-wrap: wrap;
}

.aez-progress__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--aez-sauge);
    white-space: nowrap;
}

.aez-progress__label.is-atteint {
    color: var(--aez-sauge);
    font-weight: 700;
}

.aez-progress__label--cadeau.is-atteint {
    color: var(--aez-brique);
}

.aez-progress__label-check {
    display: inline-flex;
    color: var(--aez-sauge);
}

.aez-progress__label-check svg {
    width: 12px;
    height: 12px;
}

.aez-progress--inconnue .aez-progress__message {
    opacity: 0.85;
}
