:root {
    --dt-yellow: #e3ba67;
    --dt-black: #0e0e0e;
    --dt-white: #ffffff;
    --dt-font-preheader: "Mulish", sans-serif;
    --dt-font-nav: "Geist", sans-serif;
    --dt-header-max-width: 1440px;
}

/* =========================================================
   HEADER GLOBAL
========================================================= */

.dt-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1px;

    background: var(--dt-black);
}

/* =========================================================
   PRÉHEADER
========================================================= */

.dt-preheader {
    position: relative;
    z-index: 5000;

    width: 100%;
    min-height: 34px;

    background: var(--dt-yellow);
}

.dt-preheader__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;

    width: 100%;
    max-width: var(--dt-header-max-width);
    min-height: 34px;

    margin: 0 auto;
    padding: 5px 30px;
    box-sizing: border-box;
}

.dt-preheader__inner a:hover {
    font-weight: 700;
}

.dt-preheader,
.dt-preheader a,
.dt-preheader button {
    color: #000;
    font-family: var(--dt-font-preheader);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.dt-preheader a {
    color: inherit;
    text-decoration: none;
}

.dt-preheader__phones,
.dt-preheader__actions,
.dt-preheader__account-actions,
.dt-preheader__login {
    display: flex;
    align-items: center;
}

.dt-preheader__phones {
    justify-self: start;
    gap: 10px;
    min-width: 0;
}

.dt-preheader__shipping {
    justify-self: center;
    white-space: nowrap;
}

.dt-preheader__actions {
    justify-self: end;
    gap: 10px;
}

.dt-preheader__account-actions {
    gap: 17px;
}

.dt-preheader__login {
    gap: 6px;
    white-space: nowrap;
}

.dt-preheader__login svg {
    flex: 0 0 14px;
}

.dt-preheader__account-menu {
    position: relative;
}

.dt-preheader__account-menu > summary {
    cursor: pointer;
    list-style: none;
}

.dt-preheader__account-menu > summary::-webkit-details-marker {
    display: none;
}

.dt-preheader__account-chevron {
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.dt-preheader__account-menu[open] .dt-preheader__account-chevron {
    transform: translateY(2px) rotate(225deg);
}

.dt-preheader__account-panel {
    position: absolute;
    top: calc(100% + 9px);

    z-index: 20;

    width: max-content;
    min-width: 170px;
    padding: 6px;

    border: 1px solid rgba(14, 14, 14, 0.16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(14, 14, 14, 0.18);
}

.dt-preheader__account-panel form {
    margin: 0;
}

.dt-preheader__account-panel .dt-preheader__account-item {
    display: block;
    width: 89%;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #000;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.dt-preheader__account-panel .dt-preheader__account-item:hover,
.dt-preheader__account-panel .dt-preheader__account-item:focus-visible {
    background: #f2f0ec;
    outline: none;
}

.dt-preheader__facebook {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
}

.dt-preheader__facebook img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.dt-preheader__divider {
    display: block;
    width: 1px;
    height: 21px;
    flex: 0 0 1px;
    background: #000;
}
.dt-preheader__cart {
    position: relative;

    display: inline-flex;
    width: 15px;
    height: 15px;

    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;

    background: transparent;

    cursor: pointer;
    margin-right: 10px;
}

.dt-preheader__cart img {
    display: block;

    width: 15px;
    height: 15px;
}

.dt-preheader__cart-count {
    position: absolute;
    top: -5.25px;
    right: -6px;

    display: flex;
    width: 12px;
    height: 12px;

    align-items: center;
    justify-content: center;

    color: var(--dt-white);

    font-family: var(--dt-font-preheader);
    font-size: 8px;
    line-height: 1;

    border-radius: 10px;

    background: var(--dt-black);
}

/* =========================================================
   SÉLECTEUR DE LANGUE
========================================================= */

.dt-language-wrapper {
    position: relative;
    z-index: 3000;
}

.dt-language {
    display: flex;
    min-width: 56px;
    padding: 4px 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid var(--dt-black);
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
}

.dt-language-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 4000;

    display: flex;
    min-width: 70px;
    padding: 6px;
    flex-direction: column;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: var(--dt-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dt-language-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dt-language-menu a {
    display: block;
    padding: 7px 10px;
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
}

.dt-language-menu a:hover,
.dt-language-menu a:focus-visible {
    background: #f2f2f2;
}

/* =========================================================
   NAVIGATION PRINCIPALE
========================================================= */

.dt-navigation-area {
    position: relative;

    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;

    background: var(--dt-black);
}

.dt-navbar {
    position: relative;
    z-index: 20;

    display: flex;
    width: 100%;
    max-width: var(--dt-header-max-width);
    min-height: 86px;
    padding: 20px 20px 20px 32px;
    align-items: center;
    justify-content: center;
    gap: 64px;
    box-sizing: border-box;

    border-radius: 0 0 12px 12px;
    background: var(--dt-black);
}

.dt-navbar__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dt-navbar__logo img {
    display: block;
    width: 112px;
    height: 40px;
    object-fit: contain;
}

.dt-navbar__links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.dt-navbar__links a,
.dt-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-family: var(--dt-font-nav);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.dt-navbar__links a {
    color: var(--dt-white);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dt-navbar__links a:hover,
.dt-navbar__links a:focus-visible {
    color: var(--dt-yellow);
}

.dt-search-button {
    min-height: 40px;
    padding: 8px 16px;
    box-sizing: border-box;

    color: var(--dt-black);
    border-radius: 8px;
    background: var(--dt-white);
    transition: opacity 0.2s ease, transform 0.2s ease;
}



.dt-search-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dt-search {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.dt-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 2000;
    width: min(420px, calc(100vw - 32px));
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid #d7dce3;
    border-radius: 10px;
    background: var(--dt-white);
    box-shadow: 0 16px 35px rgb(0 0 0 / 24%);
}

.dt-search-results[hidden],
.dt-search-results__list[hidden],
.dt-search-results__status[hidden] {
    display: none;
}

.dt-search-results__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dt-search-results__input {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    box-sizing: border-box;
    border: 1px solid #b8c0cb;
    border-radius: 8px;
    background: #f6f7f9;
    color: var(--dt-black);
    font-family: var(--dt-font-preheader);
    font-size: 15px;
}

.dt-search-results__input:focus-visible {
    outline: 2px solid #b48727;
    outline-offset: 2px;
}

.dt-search-results__list {
    max-height: 400px;
    margin-top: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dt-search-results__item {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--dt-black);
    font-family: var(--dt-font-preheader);
    text-decoration: none;
}

.dt-search-results__item:hover,
.dt-search-results__item:focus-visible,
.dt-search-results__item.is-selected {
    background: #f5ebd6;
}

.dt-search-results__image {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 6px;
    background: #f6f7f9;
    object-fit: contain;
}

.dt-search-results__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.dt-search-results__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dt-search-results__sku {
    color: #576071;
    font-size: 12px;
    line-height: 17px;
}

.dt-search-results__status {
    margin: 10px 2px 2px;
    color: #576071;
    font-family: var(--dt-font-preheader);
    font-size: 14px;
    line-height: 20px;
}

/* =========================================================
   NAVIGATION DES CATÉGORIES
========================================================= */

.dt-category-nav {
    display: flex;
    width: 100%;
    padding: 10px 44px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    border-top: 2px solid var(--dt-white);
    background: var(--dt-black);
}

.dt-category-nav__list {
    display: flex;
    width: 100%;
    max-width: var(--dt-header-max-width);
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dt-category-nav__link {
    display: flex;
    padding: 5px 10px;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--dt-white);
    font-family: var(--dt-font-preheader);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    text-decoration: none;
    white-space: nowrap;

    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dt-category-nav__link:hover,
.dt-category-nav__link:focus-visible {
    color: var(--dt-black);
    background: var(--dt-yellow);
}

/* =========================================================
   SOUS-MENUS DES CATÉGORIES
========================================================= */

.dt-category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1100;

    display: none;
    width: 100%;

    color: #121212;
    background: #f3f3f3;
    box-shadow: 0 15px 28px rgba(0, 0, 0, 0.18);
}

.dt-category-menu.is-open {
    display: block;
}

.dt-category-menu__inner {
    display: flex;
    width: min(100%, 1060px);
    margin: 0 auto;
    padding: 46px 30px 44px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 42px;
}

.dt-category-menu__columns {
    display: grid;
    grid-template-columns: repeat(var(--dt-category-menu-columns, 1), minmax(0, 1fr));
}

/*
 * Les petites listes restent ancrées au bord gauche du même conteneur que
 * Sports. Les quatre colonnes fixes répartissent les petites et moyennes listes
 * sans les étirer artificiellement sur toute la largeur du mega-menu.
 */
.dt-category-menu--corporate .dt-category-menu__columns,
.dt-category-menu--school .dt-category-menu__columns,
.dt-category-menu--parts .dt-category-menu__columns,
.dt-category-menu--machinery .dt-category-menu__columns,
.dt-category-menu--materials .dt-category-menu__columns,
.dt-category-menu--personalization .dt-category-menu__columns {
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    grid-template-columns: repeat(var(--dt-category-menu-columns, 1), minmax(0, 200px));
}

.dt-category-menu__column {
    min-width: 0;
    padding: 0 36px;
}

.dt-category-menu__column + .dt-category-menu__column {
    border-left: 1px solid #737373;
}

.dt-category-menu__column:first-child {
    padding-left: 10px;
}

.dt-category-menu__column:last-child {
    padding-right: 10px;
}

.dt-category-menu__column a {
    display: block;
    margin-bottom: 18px;

    color: inherit;
    font-family: var(--dt-font-preheader);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.dt-category-menu__column a:hover,
.dt-category-menu__column a:focus-visible {
    color: #725015;
    text-decoration: underline;
}

.dt-category-menu__all-link {
    display: flex;
    width: 100%;
    min-height: 47px;
    padding: 10px 22px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    color: #111;
    font-family: var(--dt-font-preheader);
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
    text-decoration: none;

    border-radius: 11px;
    background: var(--dt-yellow);
}

.dt-category-menu__all-link:hover,
.dt-category-menu__all-link:focus-visible {
    background: #d5a84d;
}

.dt-category-menu--custom .dt-category-menu__all-link {
    width: min(100%, 336px);
    margin: 0 auto;
}

/* Sur mesure conserve volontairement son bloc plus compact et centré. */
.dt-category-menu--custom .dt-category-menu__columns {
    width: min(100%, 400px);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================================
   MENU MOBILE
========================================================= */

.dt-mobile-menu-button,
.dt-mobile-menu {
    display: none;
}

.dt-mobile-menu-button {
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    border: 0;
    border-radius: 8px;
    background: var(--dt-white);
    cursor: pointer;
}

.dt-mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--dt-black);
}

@media (max-width: 1100px) {
    .dt-preheader__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dt-preheader__shipping {
        display: none;
    }

    .dt-navbar {
        min-height: 78px;
        padding: 16px 24px;
        justify-content: space-between;
        gap: 20px;
    }

    .dt-navbar__links,
    .dt-category-nav,
    .dt-category-menu {
        display: none;
    }

    .dt-search {
        margin-left: auto;
    }

    .dt-search {
        position: static;
    }

    .dt-search-results {
        top: calc(100% + 4px);
        right: 16px;
        left: 16px;
        width: auto;
    }

    .dt-search-results__list {
        max-height: min(400px, calc(100dvh - 220px));
    }

    .dt-mobile-menu-button {
        display: flex;
    }

    .dt-mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1200;

        width: 100%;
        max-height: var(--dt-mobile-menu-available-height, calc(100dvh - 112px));
        padding: 22px 24px 28px;
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        gap: 14px;

        border-top: 1px solid rgba(255, 255, 255, 0.24);
        background: var(--dt-black);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    }

    .dt-mobile-menu.is-open {
        display: flex;
    }

    .dt-mobile-menu a {
        color: var(--dt-white);
        font-family: var(--dt-font-preheader);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        text-decoration: none;
    }

    .dt-mobile-menu__categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;

        margin-top: 4px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
    }

    .dt-mobile-menu__heading {
        grid-column: 1 / -1;
        color: var(--dt-yellow);
        font-family: var(--dt-font-preheader);
        font-size: 13px;
        font-weight: 700;
        line-height: 20px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .dt-mobile-menu__category {
        grid-column: 1 / -1;
    }

    .dt-mobile-menu__category summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--dt-white);
        font-family: var(--dt-font-preheader);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        cursor: pointer;
        list-style: none;
    }

    .dt-mobile-menu__category summary::-webkit-details-marker {
        display: none;
    }

    .dt-mobile-menu__category summary::after {
        content: "+";
        color: var(--dt-yellow);
        font-size: 20px;
        font-weight: 400;
    }

    .dt-mobile-menu__category[open] summary::after {
        content: "−";
    }

    .dt-mobile-menu__category-links {
        display: grid;
        margin-top: 8px;
        padding: 4px 0 4px 16px;
        gap: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
    }

    .dt-mobile-menu .dt-mobile-menu__category-links a {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

    .dt-mobile-menu .dt-mobile-menu__category-links .dt-mobile-category-menu__all-link {
        display: inline-flex;
        min-height: 40px;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        justify-self: start;
        box-sizing: border-box;
        margin-top: 6px;
        padding: 10px 14px;
        border-radius: 8px;
        background: #E3BA67;
        color: #0E0E0E;
        font-family: "Mulish", sans-serif;
        font-weight: 700;
        text-align: center;
    }

    .dt-mobile-menu .dt-mobile-menu__category-links .dt-mobile-category-menu__all-link:hover,
    .dt-mobile-menu .dt-mobile-menu__category-links .dt-mobile-category-menu__all-link:focus-visible {
        background: #d5a84d;
        color: #0E0E0E;
    }

    .dt-mobile-menu__view-all {
        grid-column: 1 / -1;
    }

}

@media (max-width: 700px) {
    .dt-preheader__inner {
        display: flex;
        padding: 7px 14px;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .dt-preheader__shipping {
        display: block;
        order: 2;
        font-size: 12px;
        line-height: 16px;
    }

    .dt-preheader__phones {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 7px;
    }

    .dt-preheader__actions {
        order: 3;
        justify-content: space-between;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        width: 92%;
    }

    .dt-navbar {
        padding: 14px 16px;
    }

    .dt-navbar__logo img {
        width: 104px;
        height: auto;
    }

    .dt-preheader__shipping,.dt-preheader__divider,.dt-preheader__facebook,.dt-preheader__phones{
        display: none;
    }

    .dt-mobile-menu__view-all img {
    width: 20px;
    height: 20px;

   filter: brightness(0) invert(1);
}

    .dt-preheader__cart{
          margin-right: 0px;
    }
}

@media (max-width: 500px) {
    .dt-preheader,
    .dt-preheader a,
    .dt-preheader button {
        font-size: 11px;
    }

    .dt-preheader__inner {
        padding: 7px 10px;
    }

    .dt-preheader__actions {
        gap: 9px;
    }

    .dt-preheader__account-actions {
        gap: 13px;
    }

    .dt-preheader__divider {
        display: none;
    }

    .dt-language {
        min-width: auto;
        padding: 3px 9px;
    }

    .dt-mobile-menu__categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 392px) {
    .dt-search-button {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .dt-search-button span {
        display: none;
    }

    .dt-navbar__logo img {
        width: 94px;
    }
}
