/* ==========================================================================
   EXP Product Tabs v1.4.4
   Design system : Poppins (titres/labels), Inter (textes)
   Couleurs : Orange #E94F1A, Orange clair #FFDCD0, Bleu foncé #001866,
              Gris #818181, Textes #484848, Fond attribut #EFEFEF
   ========================================================================== */

.exp-product-tabs *,
.exp-product-tabs *::before,
.exp-product-tabs *::after {
    box-sizing: border-box;
}

/* ── Container ────────────────────────────────────────────────────────── */
.exp-product-tabs {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   DESKTOP — Onglets horizontaux
   ========================================================================== */

.exp-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.exp-tab-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #001866;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s ease;
    line-height: 1.4;
}

.exp-tab-btn:hover,
.exp-tab-btn:focus {
    color: #E94F1A;
    background: none !important;
    background-color: transparent !important;
    text-decoration: none;
}

.exp-tab-btn.active {
    color: #E94F1A;
    background: none !important;
    background-color: transparent !important;
}

/* ── Séparateur + indicateur actif ───────────────────────────────────── */
.exp-tabs-separator {
    position: relative;
    margin-top: 20px;
}

.exp-tabs-line {
    width: 100%;
    height: 1px;
    background: #B1B0B0;
    opacity: 0.36;
}

.exp-tabs-active-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #E94F1A;
    border-radius: 1.5px;
    transition: left 0.3s ease, width 0.3s ease;
}

/* ── Contenu onglets ──────────────────────────────────────────────────── */
.exp-tabs-content {
    margin-top: 40px;
}

.exp-tab-panel {
    display: none;
}

.exp-tab-panel.active {
    display: block;
}

/* ── Description texte ────────────────────────────────────────────────── */
.exp-tab-description {
    max-width: 1237px;
    color: #484848;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 22.08px;
    margin-bottom: 40px;
}

.exp-tab-description strong,
.exp-tab-description b {
    font-weight: 600;
}

.exp-tab-description p {
    margin: 0 0 12px 0;
}

.exp-tab-description p:last-child {
    margin-bottom: 0;
}

/* ── Contenu meta (onglets 2-4) ──────────────────────────────────────── */
.exp-tab-meta-content {
    color: #484848;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 22.08px;
}

.exp-tab-meta-content p {
    margin: 0 0 12px 0;
}

.exp-tab-empty {
    color: #818181;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: italic;
}

/* ── Grille attributs (2 colonnes) ────────────────────────────────────── */
.exp-attributes-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.exp-attributes-col {
    width: calc(50% - 10px);
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Ligne attribut desktop ───────────────────────────────────────────── */
.exp-attr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 18px 36px 18px 24px;
    background: #EFEFEF;
    border-radius: 10px;
}

.exp-attr-label {
    color: #818181;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.exp-attr-value {
    color: #001866;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.exp-attr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 27px;
    padding: 0 11px;
    background: #001866;
    border-radius: 8px;
    color: #FBFBFB;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.exp-attr-badge svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Ligne attribut empilée (Adapté pour) ─────────────────────────────── */
.exp-attr-row.exp-attr-row-stacked {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 6px;
}

.exp-attr-value-stacked {
    color: #001866;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.6;
    word-wrap: break-word;
}

.exp-attr-row.exp-attr-highlight .exp-attr-label {
    color: #E94F1A;
}

.exp-attr-row.exp-attr-highlight .exp-attr-value {
    color: #E94F1A;
}

/* ── Mobile : éléments masqués en desktop ─────────────────────────────── */
.exp-accordion-header,
.exp-accordion-line,
.exp-attributes-stack,
.exp-scroll-track {
    display: none;
}

/* ── Desktop responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .exp-tabs-nav {
        gap: 40px;
        flex-wrap: wrap;
    }

    .exp-tab-btn {
        font-size: 15px;
    }

    .exp-attributes-grid {
        flex-direction: column;
        gap: 14px;
    }

    .exp-attributes-col {
        width: 100%;
        max-width: 100%;
    }
}


/* ==========================================================================
   MOBILE — Accordéon (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* ── Masquer desktop tabs ─────────────────────────────────────────── */
    .exp-tabs-nav,
    .exp-tabs-separator,
    .exp-attributes-grid {
        display: none !important;
    }

    .exp-tabs-content {
        margin-top: 0;
    }

    /* ── Accordéon header ─────────────────────────────────────────────── */
    .exp-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 0;
        padding-top: 24px;
        padding-bottom: 0;
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        appearance: none;
    }

    .exp-accordion-header:hover,
    .exp-accordion-header:focus,
    .exp-accordion-header:active,
    .exp-accordion-header:visited {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .exp-accordion-label {
        flex: 1;
        color: #001866;
        font-size: 16px;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        word-wrap: break-word;
        line-height: 1.35;
        text-align: left;
        transition: color 0.25s ease;
    }

    .exp-accordion-header:hover .exp-accordion-label,
    .exp-accordion-header.active .exp-accordion-label {
        color: #E94F1A;
    }

    .exp-accordion-icon {
        flex-shrink: 0;
        width: 12px;
        height: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Chevrons : afficher le bon selon l'état */
    .exp-accordion-header .exp-chevron-open {
        display: none;
    }
    .exp-accordion-header .exp-chevron-close {
        display: block;
    }
    .exp-accordion-header.active .exp-chevron-open {
        display: block;
    }
    .exp-accordion-header.active .exp-chevron-close {
        display: none;
    }

    /* Chevrons : couleur bleu par défaut, orange au hover/actif */
    .exp-accordion-header .exp-chevron path {
        fill: #001866;
        transition: fill 0.25s ease;
    }
    .exp-accordion-header:hover .exp-chevron path,
    .exp-accordion-header.active .exp-chevron path {
        fill: #E94F1A;
    }

    /* ── Ligne séparatrice accordéon ──────────────────────────────────── */
    .exp-accordion-line {
        display: block;
        width: 100%;
        height: 1px;
        background: #FFDCD0;
        margin-top: 24px;
    }

    .exp-accordion-line.active {
        background: #FFDCD0;
    }

    /* ── Panel accordéon ──────────────────────────────────────────────── */
    .exp-tab-panel {
        display: none;
        overflow: hidden;
    }

    .exp-tab-panel.active {
        display: block;
    }

    /* ── Scroll wrapper pour description ──────────────────────────────── */
    .exp-desc-scroll-wrapper {
        position: relative;
        display: flex;
        gap: 0;
    }

    .exp-desc-scroll-content {
        flex: 1;
        padding-top: 24px;
        padding-right: 16px;
    }

    /* Mobile: activer le scroll sur la description */
    .exp-tab-panel[data-panel="description"] .exp-desc-scroll-wrapper {
        max-height: 520px;
    }

    .exp-tab-panel[data-panel="description"] .exp-desc-scroll-content {
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .exp-tab-panel[data-panel="description"] .exp-desc-scroll-content::-webkit-scrollbar {
        display: none;
    }

    /* ── Scrollbar custom track ───────────────────────────────────────── */
    .exp-scroll-track {
        display: block;
        position: relative;
        width: 3px;
        flex-shrink: 0;
        margin-left: 8px;
        margin-top: 24px;
        background: #FFDCD0;
        border-radius: 1.5px;
    }

    .exp-scroll-thumb {
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        background: #E94F1A;
        border-radius: 1.5px;
        min-height: 30px;
        transition: top 0.05s linear;
    }

    /* ── Description texte (mobile) ───────────────────────────────────── */
    .exp-tab-description {
        font-size: 15px;
        line-height: 21px;
        margin-bottom: 24px;
    }

    /* ── Attributs empilés (mobile) ───────────────────────────────────── */
    .exp-attributes-stack {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .exp-attr-row-m {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 24px;
        background: #EFEFEF;
        border-radius: 10px;
    }

    /* Mode inline (valeur courte) : label et valeur côte à côte */
    .exp-attr-row-m.exp-attr-row-m--inline {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .exp-attr-label-m {
        color: #818181;
        font-size: 13px;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        word-wrap: break-word;
    }

    .exp-attr-value-m {
        color: #001866;
        font-size: 14px;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        word-wrap: break-word;
    }

    /* Stacked mobile (Adapté pour) : label au-dessus, valeur en-dessous */
    .exp-attr-row-m.exp-attr-stacked-m {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .exp-attr-row-m.exp-attr-stacked-m .exp-attr-value-m {
        line-height: 1.6;
        word-wrap: break-word;
    }

    /* Highlight orange (mobile) */
    .exp-attr-row-m.exp-attr-highlight .exp-attr-label-m {
        color: #E94F1A;
    }
    .exp-attr-row-m.exp-attr-highlight .exp-attr-value-m {
        color: #E94F1A;
    }

    /* ── Contenu meta mobile ──────────────────────────────────────────── */
    .exp-tab-panel:not([data-panel="description"]) {
        padding-top: 24px;
    }

    .exp-tab-meta-content {
        font-size: 15px;
        line-height: 21px;
    }

    .exp-tab-empty {
        font-size: 14px;
    }
}


/* ==========================================================================
   MOBILE PETIT — (≤ 480px)
   ========================================================================== */

@media (max-width: 480px) {

    .exp-tab-panel[data-panel="description"] .exp-desc-scroll-wrapper {
        max-height: 460px;
    }

    .exp-attr-row-m {
        padding: 16px 18px;
    }

    .exp-accordion-label {
        font-size: 15px;
    }
}

