/* ─────────────────────────────────────────────────────────────────────────
   Tunnel de commande en 3 étapes (Informations / Pièces / Paiement)
   ───────────────────────────────────────────────────────────────────────── */

.sc-checkout-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 560px;
    margin: 0 auto 32px;
    position: relative;
}

.sc-checkout-progress::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #dcdcde;
    z-index: 0;
}

.sc-checkout-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.sc-checkout-progress-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dcdcde;
    color: #646970;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sc-checkout-progress-label {
    font-size: 12px;
    color: #646970;
    max-width: 100px;
}

.sc-checkout-progress-step.is-active .sc-checkout-progress-number {
    background: #534AB7;
    border-color: #534AB7;
    color: #fff;
}

.sc-checkout-progress-step.is-active .sc-checkout-progress-label {
    color: #23282d;
    font-weight: 600;
}

.sc-checkout-progress-step.is-complete .sc-checkout-progress-number {
    background: #1d9e75;
    border-color: #1d9e75;
    color: #fff;
}

.sc-checkout-progress-step.is-complete .sc-checkout-progress-number::after {
    /* ✅ background-image plutôt que content: url() : ce dernier ignore
       width/height en dehors d'un contexte flex/grid sur certains
       navigateurs, ce qui fait déborder l'icône à sa taille native
       (constaté sur le cadenas de sc-style.css — même pattern, même risque
       ici même si le rendu semblait correct). */
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("images/icons-succes.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sc-checkout-progress-step.is-complete .sc-checkout-progress-number span {
    display: none;
}

/* ── Étapes ─────────────────────────────────────────────────────────── */

.sc-checkout-step {
    display: none;
    animation: sc-step-fade-in 0.25s ease;
}

.sc-checkout-step.is-active {
    display: block;
}

@keyframes sc-step-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sc-checkout-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.sc-checkout-nav-back-only {
    justify-content: flex-start;
    border-top: none;
    padding-top: 0;
    margin-bottom: 16px;
}

.sc-checkout-nav .sc-checkout-next {
    background: #534AB7;
    border-color: #534AB7;
    color: #fff;
    margin-left: auto;
}

.sc-checkout-nav .sc-checkout-next:hover {
    background: #443b96;
    border-color: #443b96;
}

.sc-checkout-nav .sc-checkout-prev {
    background: #fff;
    border: 1px solid #dcdcde;
    color: #23282d;
}

.sc-checkout-nav .sc-checkout-prev:hover {
    background: #f6f6f6;
}

@media (max-width: 480px) {
    .sc-checkout-progress-label { display: none; }
    .sc-checkout-nav { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
    .sc-checkout-nav .sc-checkout-next,
    .sc-checkout-nav .sc-checkout-prev { width: 100%; text-align: center; margin-left: 0; }
}
