/* Vitrine : bannières, cartes et méga-menus */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

header.sticky {
    z-index: 70 !important;
    overflow: visible !important;
    max-width: 100%;
}

header.sticky img,
.oe-fit img,
.oe-hero img {
    max-width: 100%;
}

header.sticky .container > .flex {
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
}

header.sticky .container > .flex > .flex {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

header.sticky .tooltip {
    position: relative;
}

header.sticky .tooltip-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    width: max-content;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 90;
}

header.sticky .tooltip:hover .tooltip-text,
header.sticky .tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1279px) {
    .oe-desktop-nav {
        gap: 0.55rem !important;
        font-size: 13px;
    }
}

header.sticky #searchForm,
header.sticky .min-w-\[18rem\] {
    min-width: 0 !important;
}

header.sticky > .bg-primary {
    overflow: hidden;
}

header.sticky > .bg-primary > .container {
    flex-wrap: nowrap !important;
    gap: 10px;
    min-width: 0;
}

header.sticky > .bg-primary > .container > div {
    min-width: 0;
}

header.sticky > .bg-primary > .container > div:first-child {
    flex: 1 1 auto;
}

header.sticky > .bg-primary > .container > div:first-child > div:first-child {
    min-width: 0;
    max-width: 100%;
}

header.sticky > .bg-primary > .container > div:first-child span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header.sticky > .bg-primary > .container > div:last-child {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

@media (max-width: 1023px) {
    header.sticky > .bg-primary {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    header.sticky > .bg-primary a.text-sm,
    header.sticky > .bg-primary .border-l {
        display: none !important;
    }

    header.sticky > .bg-primary > .container > div:last-child {
        gap: 12px;
    }
}

main {
    overflow-x: clip;
}

main > section.py-16,
main > section.py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.oe-hero {
    overflow: hidden;
    background: #f4f6fb;
    padding: 12px 0 4px;
}

.oe-hero .heroSwiper {
    width: min(calc(100% - 16px), 1180px);
    margin: 0 auto;
    aspect-ratio: 1560 / 280;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #040782;
}

@media (min-width: 768px) {
    .oe-hero .heroSwiper {
        width: min(calc(100% - 32px), 1180px);
        aspect-ratio: 1560 / 280;
        border-radius: 20px;
    }
}

.oe-hero .heroSwiper .swiper-wrapper,
.oe-hero .heroSwiper .swiper-slide {
    height: 100%;
}

.oe-hero-slide {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #040782;
}

.oe-hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.oe-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #040782;
}

.oe-hero .swiper-button-prev,
.oe-hero .swiper-button-next {
    width: 34px;
    height: 34px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(4, 7, 130, 0.16);
}

.oe-hero .swiper-button-prev {
    left: 10px;
}

.oe-hero .swiper-button-next {
    right: 10px;
}

.oe-hero .swiper-button-prev::after,
.oe-hero .swiper-button-next::after {
    font-size: 12px;
    font-weight: 700;
}

.oe-hero .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.45;
}

.oe-hero .swiper-pagination-bullet-active {
    background: #e19a02;
    opacity: 1;
}

.oe-side-visual {
    height: 100%;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #040782;
}

.oe-side-visual picture,
.oe-side-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 1024px) {
    .oe-side-visual,
    .oe-side-visual picture,
    .oe-side-visual img {
        min-height: 100%;
    }
}

.oe-band {
    background: #f4f6fb;
    padding: 8px 0;
    overflow: hidden;
}

.oe-fit {
    display: block;
    width: min(calc(100% - 16px), 1180px);
    margin: 0 auto;
    aspect-ratio: 1560 / 168;
    border-radius: 16px;
    overflow: hidden;
    background: #040782;
}

@media (min-width: 768px) {
    .oe-fit {
        width: min(calc(100% - 32px), 1180px);
        aspect-ratio: 1560 / 168;
        border-radius: 20px;
    }
}

.oe-fit picture,
.oe-mega-banner picture,
.oe-acc-banner picture {
    display: block;
    width: 100%;
    height: 100%;
}

.oe-fit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #040782;
}

.heroSwiper .swiper-slide,
.featuredSwiper .swiper-slide {
    height: auto;
}

.heroSwiper .swiper-slide > .relative {
    height: auto !important;
}

@media (min-width: 768px) {
    .heroSwiper .swiper-slide > .relative {
        height: auto !important;
    }
}

.product-card {
    overflow: hidden;
    max-width: 100%;
}

.product-card .img-hover-zoom,
.product-image-container {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f4f6fb;
    overflow: hidden;
}

.product-card img.product-image,
.product-image-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f6fb;
}

.category-card {
    height: 168px !important;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .category-card {
        height: 210px !important;
    }
}

.brandSwiper .swiper-slide,
.brand-card {
    height: auto;
}

.brandSwiper .swiper-slide a > div,
.brand-card .brand-logo-wrap,
.brand-card {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
}

.brand-logo {
    max-height: 72px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.swiper {
    overflow: hidden;
}

.oe-desktop-nav {
    position: static;
}

.oe-item {
    position: static;
}

.oe-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #1f2937;
    padding: 8px 0;
}

.oe-trigger i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.oe-item:hover .oe-trigger,
.oe-item:focus-within .oe-trigger,
.oe-trigger.is-current {
    color: #040782;
}

.oe-item:hover .oe-trigger i,
.oe-item:focus-within .oe-trigger i {
    transform: rotate(180deg);
}

.oe-mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 6px);
    padding-top: 12px;
    z-index: 80;
}

.oe-item:hover .oe-mega,
.oe-item:focus-within .oe-mega {
    display: block;
}

.oe-mega-panel {
    background: #fff;
    border-top: 3px solid #e19a02;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 28px 50px rgba(4, 7, 130, 0.16);
    max-height: min(72vh, 560px);
    overflow: auto;
}

.oe-mega-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 300px;
    gap: 22px;
    align-items: start;
}

.oe-mega-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.oe-mega-head strong {
    color: #040782;
    font-size: 1.05rem;
}

.oe-mega-head a {
    color: #e19a02;
    font-size: 0.85rem;
    font-weight: 600;
}

.oe-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.oe-links a,
.oe-brand-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    color: #1f2937;
}

.oe-links a:hover,
.oe-brand-grid a:hover,
.oe-mini:hover {
    background: #f4f6fb;
}

.oe-links img,
.oe-links span.oe-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    background: #eef1f8;
    flex: 0 0 36px;
}

.oe-links span.oe-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #040782;
    font-weight: 700;
}

.oe-links .oe-name,
.oe-mini .oe-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.oe-links em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 7px;
}

.oe-brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.oe-brand-grid img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.oe-mega-banner {
    display: block;
    height: 148px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}

.oe-mega-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.oe-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-top: 1px solid #eef1f6;
    color: #111827;
}

.oe-mini img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #f4f6fb;
    border-radius: 10px;
    flex: 0 0 54px;
}

.oe-mini small {
    display: block;
    color: #040782;
    font-weight: 700;
}

.oe-mini s {
    color: #9ca3af;
    font-weight: 500;
    margin-left: 6px;
}

.oe-fold {
    border-bottom: 1px solid #f3f4f6;
}

.oe-acc {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    padding: 12px 0;
    font-weight: 600;
    text-align: left;
}

.oe-acc-panel {
    display: none;
    padding: 0 0 12px 8px;
}

.oe-fold.is-open .oe-acc-panel {
    display: block;
}

.oe-acc-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #1f2937;
}

.oe-acc-banner {
    display: block;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
}

.oe-acc-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1100px) {
    .oe-mega-inner {
        grid-template-columns: 1fr;
    }

    .oe-mega-side {
        display: none;
    }
}
