.p-header__logo {
    background-image: url("../images/logo.png") !important;
}

/* === CHECKOUT & CART UX IMPROVEMENTS (MOBILE & DESKTOP) === */
/* 1. Fix blue backgrounds to clean white/light grey with readable text */
.c-box__bottom {
    background-color: #f5f6fa !important;
    color: #4a4d57 !important;
    border-top: 1px solid #e2e4ec !important;
}
.is-active .c-progress__step {
    background: #f0f2fa !important;
    border-color: #293170 !important;
}
#checkout-payment-method-load #payment_form_payzen_multi,
#checkout-payment-method-load #payment_form_payzen_standard,
#checkout-payment-method-load .form-list #payment_form_bankpayment {
    list-style: none !important;
    background-color: #ffffff !important;
    color: #73757f !important;
    border: 1px solid #d8dae0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0.6rem 0 0.8rem !important;
}
#checkout-payment-method-load #payment_form_payzen_multi,
#checkout-payment-method-load #payment_form_payzen_standard {
    padding: 1.2rem 1.4rem !important;
}

/* 2. Retractable Virement (bankpayment) on white background */
.c-bankpayment-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    background-color: #ffffff;
    color: #20222b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.15s ease;
    user-select: none;
}
.c-bankpayment-toggle:hover {
    background-color: #f8f9fc;
}
.c-bankpayment-toggle__title {
    color: #20222b;
    font-weight: 600;
}
.c-bankpayment-toggle__right {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #293170;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}
.c-bankpayment-toggle__chevron {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid #293170;
    border-bottom: 2px solid #293170;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.2rem;
}
.c-bankpayment-toggle.is-open .c-bankpayment-toggle__chevron {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}
.c-bankpayment-body {
    padding: 1.2rem 1.4rem;
    border-top: 1px solid #e2e4ec;
    background-color: #ffffff;
    color: #73757f;
    border-radius: 0 0 8px 8px;
    font-size: 1.3rem;
    line-height: 1.45;
}
.c-bankpayment-intro,
.c-bankpayment-intl,
.c-bankpayment-note {
    margin: 0.4rem 0 0.6rem;
    color: #73757f;
    font-size: 1.3rem;
}
.c-bankpayment-intl {
    margin-top: 0.8rem;
    font-weight: 500;
}
.c-bankpayment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.4rem 0;
}
.c-bankpayment-table td {
    padding: 0.2rem 0.8rem 0.2rem 0;
    vertical-align: top;
    color: #73757f;
    font-size: 1.3rem;
}
.c-bankpayment-table td label {
    color: #20222b;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* 3. HTTPS Notice Banner */
.o-section--checkout .o-section__notice {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 1.3rem !important;
    line-height: 1.35 !important;
}
.o-section--checkout .o-section__notice__icon {
    width: 1.8rem !important;
    height: 1.8rem !important;
    margin-right: 0.8rem !important;
    flex-shrink: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
}
.o-section--checkout .o-section__notice__icon * {
    fill: none !important;
    stroke: currentColor !important;
}
.o-section--checkout .o-section__notice__text span {
    display: inline !important;
}

/* 4. Compact Checkout Steps & Immediate Validate Button Visibility */
.login-checkout .c-title {
    padding: 0 !important;
    margin: 0 0 0.8rem !important;
    background: none !important;
    font-weight: 600 !important;
}
.login-checkout .c-title::before,
.login-checkout .c-title::after {
    content: none !important;
}
.o-section--checkout .c-box__head--separator {
    margin-bottom: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}
.o-section--checkout .c-box__head--separator h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
}
.o-section--checkout .c-box--main p.u-text-md {
    margin: 0 0 0.6rem !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
}
.o-section--checkout .c-choices {
    margin-bottom: 0.4rem !important;
}
.o-section--checkout .c-choices__item {
    margin: 0 0 0.5rem !important;
}
.o-section--checkout .c-choices__label {
    padding: 0.8rem 1rem 0.8rem 3.8rem !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
}
.o-section--checkout .c-choices__label::before {
    top: 50% !important;
    left: 1.2rem !important;
    width: 1.8rem !important;
    height: 1.8rem !important;
    transform: translateY(-50%) !important;
}
.o-section--checkout .c-choices__label::after {
    top: 50% !important;
    left: 1.65rem !important;
    transform: translateY(-10%) scaleX(-1) rotate(135deg) !important;
}
.o-section--checkout #co-billing-form .u-mt-3xl,
.o-section--checkout #co-shipping-form .u-mt-3xl {
    margin-top: 0.2rem !important;
    margin-bottom: 0.4rem !important;
}
.o-section--checkout .c-field {
    margin-bottom: 0.5rem !important;
}
.o-section--checkout .c-field input[type="text"],
.o-section--checkout .c-field input[type="email"],
.o-section--checkout .c-field input[type="tel"],
.o-section--checkout .c-field input[type="password"],
.o-section--checkout .c-field--select select {
    height: 3.8rem !important;
    padding-top: 1.2rem !important;
    padding-bottom: 0.2rem !important;
    font-size: 1.3rem !important;
}
.o-section--checkout .c-field label {
    font-size: 1.2rem !important;
}
.c-checkout-choices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}
.c-checkout-choices-row > .c-choices__item {
    flex: 1 1 calc(50% - 0.3rem);
    margin-bottom: 0.4rem !important;
}
.o-section--checkout .c-box__bottom--checkout {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 95 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* 5. Mobile Checkout Layout (Flex column so HTTPS notice NEVER overlaps progress bar) */
@media (max-width: 63.9375em) {
    .o-section--checkout {
        display: flex !important;
        flex-direction: column !important;
        padding-top: 0 !important;
        padding-bottom: 0.8rem !important;
    }
    .o-section--checkout .o-section__notice {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        order: 1 !important;
        padding: 0.5rem 0.6rem !important;
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    .o-section--checkout .o-section__notice__icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
        margin-right: 0.6rem !important;
    }
    .o-section--checkout #o-summary {
        display: contents !important;
    }
    .o-section--checkout #o-summary.c-loading::before,
    .o-section--checkout #o-summary.c-loading::after {
        display: none !important;
    }
    .o-section--checkout #o-summary > .c-box--aside:last-child,
    .o-section--checkout #o-summary > .c-box--progress {
        order: 2 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .o-section--checkout .o-section__progress {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .o-section--checkout .c-progress__title {
        display: none !important;
    }
    .o-section--checkout .c-progress__list {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.65rem 0 !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        border-bottom: 1px solid #ebedf5 !important;
    }
    .o-section--checkout .c-progress__list::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }
    .o-section--checkout .c-progress__item {
        flex: 0 0 auto !important;
        margin: 0 0.25rem 0 0 !important;
        padding: 0 !important;
    }
    .o-section--checkout .c-progress__item:not(:last-child) {
        padding: 0 0.85rem 0 0 !important;
    }
    .o-section--checkout .c-progress__item:not(:last-child)::after {
        position: absolute !important;
        top: 50% !important;
        left: auto !important;
        right: 0 !important;
        width: 0.6rem !important;
        height: 1px !important;
        border-left: 0 !important;
        border-top: 2px dotted #dcdcdf !important;
        content: "" !important;
    }
    .o-section--checkout .c-progress__item:not(:last-child).is-active::after,
    .o-section--checkout .c-progress__item:not(:last-child).is-completed::after {
        border-top-style: solid !important;
    }
    .o-section--checkout .c-progress__step {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        font-size: 1rem !important;
        min-height: 1.7rem !important;
        padding: 0 0 0 1.65rem !important;
        border-left: 0 !important;
        background: transparent !important;
    }
    .o-section--checkout .c-progress__step::before {
        left: 0 !important;
        width: 1.35rem !important;
        height: 1.35rem !important;
        top: calc(50% - 0.675rem) !important;
    }
    .o-section--checkout .is-active .c-progress__step::after {
        width: 0.62rem !important;
        height: 0.62rem !important;
        top: calc(50% - 0.31rem) !important;
        left: 0.365rem !important;
    }
    .o-section--checkout .is-completed .c-progress__step::after {
        top: calc(50% + 0.04rem) !important;
        left: 0.31rem !important;
        width: 0.36rem !important;
        height: 0.7rem !important;
    }
    .o-section--checkout .c-progress__step__toggle {
        pointer-events: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1rem !important;
    }
    .o-section--checkout .c-progress__step__toggle::before,
    .o-section--checkout .c-progress__step__toggle::after {
        display: none !important;
    }
    .o-section--checkout .c-progress__item .c-overflow {
        display: none !important;
    }
    .o-section--checkout > .o-section__main {
        order: 3 !important;
        width: 100% !important;
    }
    .o-section--checkout #o-summary > .c-box--aside:first-child,
    .o-section--checkout #o-summary > .c-box--summary {
        order: 4 !important;
        width: 100% !important;
    }
    .login-checkout .c-box {
        padding: 1rem 1.2rem !important;
        margin-bottom: 0.6rem !important;
    }
    .login-checkout .c-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }
    .login-checkout p.u-text-md,
    .login-checkout ul.u-text-md {
        display: none !important;
    }
    .login-checkout .u-mt-lg {
        margin-top: 0.4rem !important;
    }
    .login-checkout .c-button {
        min-height: 3.8rem !important;
        padding: 0.8rem 1.4rem !important;
        font-size: 1.4rem !important;
    }
    .o-section--checkout .c-box--main {
        padding: 0.8rem 1.2rem 1rem !important;
    }
    .o-section--checkout .o-section__action.c-box__bottom--checkout {
        position: sticky !important;
        bottom: 0 !important;
        left: auto !important;
        width: calc(100% + 2.4rem) !important;
        margin: 0.4rem -1.2rem 0 !important;
        padding: 0.6rem 1.2rem !important;
        background-color: #ffffff !important;
        border-top: 1px solid #e2e4ec !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        z-index: 95 !important;
    }
    .o-section--checkout .c-box__bottom--checkout .c-box__bottom__text {
        display: none !important;
    }
    .o-section--checkout .c-box__bottom--checkout .c-button {
        padding: 0.9rem 1.4rem !important;
        min-height: 4rem !important;
        font-size: 1.45rem !important;
    }
    .o-section--checkout .c-summary {
        margin: 0.6rem -1.2rem 0 !important;
        padding: 0.8rem 1.2rem 0 !important;
    }
    .o-section--checkout .c-summary__toggle {
        margin-bottom: 0.4rem !important;
        font-size: 1.4rem !important;
    }
    .o-section--checkout .c-summary .u-text-4xl {
        font-size: 1.7rem !important;
    }
}

/* 6. Desktop Checkout Layout: Progression de la commande to the RIGHT of Récapitulatif */
@media (min-width: 64em) {
    .checkout-onepage-index .o-wrapper {
        max-width: 138rem !important;
        padding-left: 2.4rem !important;
        padding-right: 2.4rem !important;
    }
    .o-section--checkout {
        display: flex !important;
        flex-wrap: wrap !important;
        padding-top: 0 !important;
        padding-bottom: 1.6rem !important;
        align-items: flex-start !important;
    }
    .o-section--checkout .o-section__notice {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-bottom: 1.2rem !important;
    }
    .o-section--checkout > .o-section__main {
        width: calc(100% - 52rem) !important;
    }
    .o-section--checkout .c-box--main {
        padding: 1.6rem 2.2rem !important;
    }
    .o-section--checkout .c-box--main .c-box__head--separator::before {
        left: -2.2rem !important;
        right: -2.2rem !important;
    }
    .o-section--checkout .c-box--main .c-box__bottom--checkout {
        margin: 0.8rem -2.2rem -1.6rem !important;
        padding: 0.9rem 2.2rem !important;
    }
    .o-section--checkout #o-summary {
        width: 50rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.6rem !important;
        position: sticky !important;
        top: 1.6rem !important;
    }
    .o-section--checkout #o-summary > .c-box--aside {
        flex: 1 1 50% !important;
        width: calc(50% - 0.8rem) !important;
        margin-top: 0 !important;
        padding: 1.6rem !important;
    }
    .o-section--checkout #o-summary .c-summary .u-text-4xl {
        font-size: 2rem !important;
    }
    .o-section--checkout #o-summary .c-progress__step {
        margin: 0 -1.6rem !important;
        padding: 0.8rem 0.8rem 0.8rem 5rem !important;
        font-size: 1.3rem !important;
    }
    .o-section--checkout #o-summary .c-progress__step::before {
        left: 1.6rem !important;
    }
    .o-section--checkout #o-summary .is-active .c-progress__step::after,
    .o-section--checkout #o-summary .is-completed .c-progress__step::after {
        left: 2.1rem !important;
    }
    .o-section--checkout #o-summary .c-progress__item:not(:last-child) {
        padding-bottom: 1rem !important;
    }
    .o-section--checkout #o-summary .c-progress__item:not(:last-child)::after {
        top: 3.4rem !important;
        left: 0.9rem !important;
        height: calc(100% - 3.4rem) !important;
    }
}

/* 7. Cart Page (/checkout/cart) Compact & Immediate Validate Button */
.c-coupon-toggle {
    background: none;
    border: 0;
    padding: 0.2rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    text-decoration: underline;
}
.c-coupon-form__row {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}
.c-coupon-form__field {
    flex: 1 1 auto;
    margin-bottom: 0 !important;
}
.c-coupon-form__field input {
    height: 4rem !important;
}
.c-coupon-form__action {
    flex: 0 0 auto;
}
.c-coupon-form__btn {
    height: 4rem !important;
    min-height: 4rem !important;
    padding: 0 1.4rem !important;
    font-size: 1.3rem !important;
}
.checkout-cart-index .o-section {
    padding-top: 1.2rem !important;
    padding-bottom: 1.6rem !important;
}
.checkout-cart-index .c-box__head h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.6rem !important;
}
.checkout-cart-index .c-order__item {
    padding: 0.8rem 0 !important;
}
.checkout-cart-index .c-summary__item:not(:last-child) > * {
    padding-bottom: 0.5rem !important;
}
.checkout-cart-index .o-section__aside .u-text-4xl {
    font-size: 2rem !important;
}
.checkout-cart-index .c-box__action {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 95 !important;
    background: #ffffff !important;
}
@media (max-width: 63.9375em) {
    .checkout-cart-index .c-order {
        max-height: 30vh;
        overflow-y: auto;
    }
    .checkout-cart-index .c-order__item__picture {
        width: 6.4rem !important;
        height: 6.4rem !important;
    }
    .checkout-cart-index .c-order__item__picture img {
        width: 6.4rem !important;
        height: 6.4rem !important;
    }
    .checkout-cart-index .o-section__aside {
        padding-top: 0.8rem !important;
    }
    .checkout-cart-index .o-section__aside h3 {
        margin-bottom: 0.6rem !important;
        font-size: 1.5rem !important;
    }
    .checkout-cart-index .c-box__action {
        padding: 0.6rem 0 !important;
        margin-top: 0.4rem !important;
    }
    .checkout-cart-index .c-box__action .c-button {
        min-height: 4.4rem !important;
        padding: 1rem 1.6rem !important;
        font-size: 1.5rem !important;
    }
}
@media (min-width: 64em) {
    .checkout-cart-index .o-section__aside {
        position: sticky !important;
        top: 1.6rem !important;
    }
}

/* 8. Global Mobile Horizontal Overflow & Sticky Add-to-Cart Bar Fix */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}
.o-page,
.o-page__container,
.o-page__content,
.p-footer {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
    box-sizing: border-box;
}
.trust-tooltip,
.report-tooltip {
    display: none;
}
.trust-badge:hover .trust-tooltip,
.report-badge:hover .report-tooltip,
.has-tooltip:hover .report-tooltip {
    display: block;
}
.trust-badge:first-child .trust-tooltip {
    left: 0 !important;
    transform: none !important;
}
.trust-badge:first-child .trust-tooltip::after {
    left: 24px !important;
}
.trust-badge:last-child .trust-tooltip {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}
.trust-badge:last-child .trust-tooltip::after {
    left: auto !important;
    right: 20px !important;
    margin-left: 0 !important;
}
@media (max-width: 63.9375em) {
    #header-navigation:not(.is-expanded),
    .p-header__navigation__level2:not(.is-expanded) {
        display: none !important;
    }
    .p-header__navigation__level0 {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .p-header,
    .p-header__top,
    .p-header__main {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 47.9375em) {
    .c-product,
    .c-product__content,
    .c-product__details,
    #bloc-prix-action {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .c-product__actions {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .c-product__actions__btn,
    .send-unavailable-mail__actions__btn {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}
