.PanierPage {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Reprise style bons-cadeaux (bc-steps) */
.bc-steps {
    display: flex;
    gap: 8px;
    margin-top: 2em;
    margin-bottom: 30px;
}

.bc-step {
    flex: 1;
    padding: 8px 12px;
    background: #f4f4f4;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    color: #666;
    cursor: pointer;
}

.bc-step-active {
    background: var(--bg1);
    color: #fff;
    border-color: rgba(0, 0, 0, 0);
}

.bc-step-panel {
    display: none;
}

.bc-step-panel-active {
    display: block;
}

.PanierGrid {
    display: grid;
    /* La première colonne s'adapte à son contenu, la deuxième reste à 340px */
    grid-template-columns: auto minmax(250px, 320px);

    /* C'est ici que la magie opère : l'espace vide est placé AU MILIEU */
    justify-content: space-between;

    width: 100%;
    align-items: start;
}

.PanierPanels {
    display: block;
}

.PanierGrid--single {
    grid-template-columns: 1fr;
}

.PanierCard {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 16px;
}

.PanierCard__title {
    font-family: "Mulish", sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    color: rgba(0, 0, 0, 0.75);
}

.OngletPanier .PanierCard__title {
    margin: 1em 0 0.5em 0;
}

.PanierEmpty {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 16px;
    color: rgba(0, 0, 0, 0.7);
}

.PanierMain {
    width: 100%;
    padding-right: 100px;
}

.PanierAside {
    width: 100%;
}

.PanierItems {
    display: grid;
    gap: 0;
}

.PanierItem {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.PanierItem:first-child {
    padding-top: 0;
}

.PanierItem:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.PanierItem__media {
    width: 74px;
    height: 74px;
}

.PanierItem__img,
.PanierItem__imgPlaceholder {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
}

.PanierItem__title {
    font-weight: 600;
    line-height: 1.2;
}

.PanierItem__subtitle {
    color: rgba(0, 0, 0, 0.65);
    margin-top: 2px;
}

.PanierItem__price {
    margin-top: 6px;
    color: rgba(0, 0, 0, 0.7);
}

.PanierItem__priceRow {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.PanierItem__priceRow .PanierItem__price {
    margin-top: 0;
}

.PanierBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.75em;
    line-height: 1.5;
    white-space: nowrap;
}

.PanierBadge--voucher {
    color: var(--bg1);
    border: 1px solid var(--bg1);
    background: transparent;
}

.PanierItem__price.PanierItem__price--promo {
    color: var(--bg1);
}

.PanierItem__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.PanierItem__lineTotalWrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.PanierQty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.PanierQty__btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    line-height: 1;
}

.PanierQty__btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

input[type="number"].PanierQty__input {
    width: 80px;
    padding: 6px 8px;
    text-align: right;
}

.PanierItem__lineTotal {
    font-weight: 600;
    white-space: nowrap;
    width: 80px;
    text-align: right;
}

.PanierItem__lineTotal.is-promo {
    color: var(--bg1);
}

.PanierItem__priceRef {
    margin-top: 2px;
    font-size: 0.75em;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.65);
    text-align: left;
    white-space: normal;
}

.PanierItem__priceRefOld {
    text-decoration: line-through;
}

.PanierItem__priceRefDisc {
    color: var(--bg1);
}

.PanierIconBtn {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.55);
    padding: 10px;
    border-radius: 8px;
}

.PanierIconBtn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.75);
}

.PanierSmallLink {
    display: inline-block;
    margin-left: 10px;
    color: var(--bg1);
}

.PanierTotals {
    display: grid;
    gap: 15px;
    margin-bottom: 2em;
}

.PanierTotalRow {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.PanierTotalRow--promo {
    color: rgba(0, 0, 0, 0.7);
}

.PanierTotalRow--promo strong {
    color: var(--bg1);
}

.PanierTotalRow--grand {
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.2em;
}

.PanierPromo {
    margin: 0.5em 0 3em 0;
}

.PanierPromo__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.PanierPromo__actions {
    margin-top: 6px;
}

.PanierIntro {
    margin: 0 0 12px;
    color: rgba(0, 0, 0, 0.65);
}

/* Sous-onglets identifiants */
.AuthTabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.AuthTab {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    background: #f4f4f4;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.AuthTab.is-active {
    background: var(--bg1);
    color: #fff;
    border-color: rgba(0, 0, 0, 0);
}

.Auth3Panel {
    display: none;
}

.Auth3Panel.is-active {
    display: block;
}

.ForgotBloc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.ActivationBloc {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.PanierAside__actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.login-resend-bloc.front-field-help.is-box {
    padding: 0;
    border: none;
    background: none;
    color: rgba(0, 0, 0, 0.78);
    margin: 0;
}

.front-field-help.is-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #73bb27;
    background: rgba(115, 187, 39, 0.10);
    color: rgba(0, 0, 0, 0.78);
}

.PanierBtn {
    display: none;
}

.PanierBtn--primary {
    background: var(--bg1);
    color: #fff;
}

.PanierBtn--secondary {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.85);
}

.PanierBtn--ghost {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.85);
}

.PanierContact {
    display: grid;
    gap: 6px;
    margin: 10px 0 12px;
}

.PanierBottomNav {
    margin-top: 14px;
}


/* Identifiants: switch */
.AuthSwitch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.AuthSwitch__btn {
    border: 1px solid #eee;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
}

.AuthSwitch__btn.is-active {
    background: var(--bg1);
    color: #fff;
    border-color: rgba(0, 0, 0, 0);
}

.AuthPanel {
    display: none;
}

.AuthPanel.is-active {
    display: block;
}

.PanierAside__actions--between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


@media (max-width: 960px) {
    .PanierGrid {
        grid-template-columns: 1fr;
    }

    .PanierMain {
        padding-right: 0;
    }

    .PanierAside {
        margin-top: 3em;
    }
}

@media (max-width: 630px) {
    .PanierItem {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


    .PanierItem {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-columns: 80px 1fr;
    }

    .PanierItem__controls {
        grid-column: span 2;
        justify-content: end;
    }
}

@media (max-width: 480px) {

    .Page {
        padding: 20px 0;
    }

    .bc-steps {
        display: none;
    }

    .CarteBlanche {
        border-radius: 0;
        margin: 0;
    }

    .PanierEmpty {
        margin: 20px;
    }

    .PanierItem {
        gap: 15px 10px;
        padding: 18px 0;
    }

    input[type="number"].PanierQty__input {
        width: 75px;
        font-size: 0.85em;
    }
}