/**
 * Styles pour le widget Product Tabs - Tabs responsive pour produits
 * 
 * @package Metal_Rouge_SAMR_Extension
 * @since 1.0.31
 */

/* ===== CONTENEUR WIDGET - CORRECTION LARGEUR ET POSITION ===== */
.elementor-widget-metal-rouge-product-tabs .elementor-widget-container {
    /* Le conteneur Elementor doit être flexible pour permettre le centrage */
    display: flex;
    justify-content: center; /* Défaut, sera écrasé par les contrôles Elementor */
}

.elementor-widget-metal-rouge-product-tabs .widget-container {
    /* Le conteneur interne du widget */
    width: 100%; /* Défaut, sera écrasé par les contrôles Elementor */
    max-width: 100%; /* Défaut, sera écrasé par les contrôles Elementor */
    position: relative;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.metal-rouge-product-tabs {
    position: relative;
    width: 100%;
    font-family: inherit;
    /* Suppression de max-width qui créait des conflits */
}

/* ===== NAVIGATION DES ONGLETS ===== */
.metal-rouge-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
    background: transparent;
    position: relative;
}

/* ===== NOUVEAU : STYLES POUR LA LARGEUR DES ONGLETS ===== */

/* Mode largeur adaptée au contenu (par défaut) */
.metal-rouge-product-tabs.tabs-width-auto .metal-rouge-tab-button {
    flex: 0 1 auto;
    min-width: max-content;
    width: auto;
}

/* Mode largeur uniforme */
.metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tab-button {
    flex: 1 1 120px; /* Défaut, écrasé par les contrôles Elementor */
    min-width: 120px; /* Défaut, écrasé par les contrôles Elementor */
    text-align: center;
    justify-content: center;
}

/* Mode largeur personnalisée (fixe) */
.metal-rouge-product-tabs.tabs-width-custom .metal-rouge-tab-button {
    flex: 0 0 150px; /* Défaut, écrasé par les contrôles Elementor */
    width: 150px; /* Défaut, écrasé par les contrôles Elementor */
    text-align: center;
    justify-content: center;
}

/* ===== STYLES D'ESPACEMENT POUR LES DIFFÉRENTS TYPES ===== */
/* Mode space-between */
.metal-rouge-tabs-nav.spacing-space-between {
    justify-content: space-between !important;
}

.metal-rouge-tabs-nav.spacing-space-between .metal-rouge-tab-button {
    margin-right: 0;
    flex: 0 1 auto;
}

/* Mode space-around */
.metal-rouge-tabs-nav.spacing-space-around {
    justify-content: space-around !important;
}

.metal-rouge-tabs-nav.spacing-space-around .metal-rouge-tab-button {
    margin-right: 0;
    flex: 0 1 auto;
}

/* Mode space-evenly */
.metal-rouge-tabs-nav.spacing-space-evenly {
    justify-content: space-evenly !important;
}

.metal-rouge-tabs-nav.spacing-space-evenly .metal-rouge-tab-button {
    margin-right: 0;
    flex: 0 1 auto;
}

/* ===== AJUSTEMENTS POUR LES MODES LARGEUR UNIFORME ET PERSONNALISÉE ===== */

/* En mode largeur uniforme avec espacement space-between */
.metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tabs-nav.spacing-space-between .metal-rouge-tab-button {
    flex: 1 1 0;
    min-width: auto;
}

/* En mode largeur uniforme avec espacement space-around */
.metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tabs-nav.spacing-space-around .metal-rouge-tab-button {
    flex: 1 1 0;
    min-width: auto;
}

/* En mode largeur uniforme avec espacement space-evenly */
.metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tabs-nav.spacing-space-evenly .metal-rouge-tab-button {
    flex: 1 1 0;
    min-width: auto;
}

/* Onglets scrollables */
.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f8f9fa;
}

/* Mode débordement automatique */
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f8f9fa;
    scroll-behavior: smooth;
}

/* Indicateurs visuels de scroll disponible */
.metal-rouge-product-tabs.tabs-overflow-mode::before,
.metal-rouge-product-tabs.tabs-overflow-mode::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Gradient de fade à gauche */
.metal-rouge-product-tabs.tabs-overflow-mode.can-scroll-left::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
    opacity: 1;
}

/* Gradient de fade à droite */
.metal-rouge-product-tabs.tabs-overflow-mode.can-scroll-right::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    opacity: 1;
}

/* Gradients en mode sombre */
body.dark-mode .metal-rouge-product-tabs.tabs-overflow-mode.can-scroll-left::before {
    background: linear-gradient(to right, rgba(26,26,26,0.9), transparent) !important;
}

body.dark-mode .metal-rouge-product-tabs.tabs-overflow-mode.can-scroll-right::after {
    background: linear-gradient(to left, rgba(26,26,26,0.9), transparent) !important;
}

.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar,
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-track,
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 2px;
}

.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 2px;
}

.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Alignements des onglets */
.metal-rouge-tabs-nav {
    justify-content: center; /* Par défaut */
}

.elementor-widget-metal-rouge-product-tabs .metal-rouge-tabs-nav {
    justify-content: var(--tabs-alignment, center);
}

/* En cas de débordement, forcer l'alignement à flex-start */
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav {
    justify-content: flex-start !important;
}

/* En mode spacing personnalisé, ne pas forcer l'alignement */
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav.spacing-space-between,
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav.spacing-space-around,
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav.spacing-space-evenly {
    justify-content: flex-start !important;
}

/* ===== BOUTONS D'ONGLETS ===== */
.metal-rouge-tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #dee2e6;
    border-bottom: none;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 2px; /* Défaut pour le mode normal */
    white-space: nowrap;
    min-width: max-content;
    position: relative;
    z-index: 1;
    user-select: none;
    
    /* Reset des styles de bouton */
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===== NOUVEAUX : AJUSTEMENTS POUR LES MODES DE LARGEUR ===== */

/* En mode largeur uniforme ou personnalisée, permettre le text-wrapping si nécessaire */
.metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tab-button,
.metal-rouge-product-tabs.tabs-width-custom .metal-rouge-tab-button {
    white-space: normal;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 48px; /* Hauteur minimale pour éviter les problèmes avec le texte long */
    line-height: 1.4;
}

/* Si le texte est trop long en mode largeur fixe, utiliser ellipsis */
.metal-rouge-product-tabs.tabs-width-custom .metal-rouge-tab-button .tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* En mode largeur uniforme, permettre le retour à la ligne */
.metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tab-button .tab-title {
    word-break: break-word;
    hyphens: auto;
    text-align: center;
}

/* Ajustements pour les modes d'espacement */
/* Dans les modes spacing, supprimer le margin par défaut */
.metal-rouge-tabs-nav.spacing-space-between .metal-rouge-tab-button,
.metal-rouge-tabs-nav.spacing-space-around .metal-rouge-tab-button,
.metal-rouge-tabs-nav.spacing-space-evenly .metal-rouge-tab-button {
    margin-right: 0;
}

/* En mode débordement, ajuster l'espacement des onglets */
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tab-button {
    flex-shrink: 0;
    margin-right: 4px;
}

.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tab-button:first-child {
    margin-left: 8px;
}

.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tab-button:last-child {
    margin-right: 8px;
}

.metal-rouge-tab-button:last-child {
    margin-right: 0;
}

/* Overrides pour le dernier onglet dans les modes spacing */
.metal-rouge-tabs-nav.spacing-space-between .metal-rouge-tab-button:last-child,
.metal-rouge-tabs-nav.spacing-space-around .metal-rouge-tab-button:last-child,
.metal-rouge-tabs-nav.spacing-space-evenly .metal-rouge-tab-button:last-child {
    margin-right: 0;
}

.metal-rouge-tab-button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* États des onglets */
.metal-rouge-tab-button:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metal-rouge-tab-button.active {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    z-index: 2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.metal-rouge-tab-button.active:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

/* Animation douce pour l'onglet actif qui change de position */
.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tab-button.active {
    scroll-margin: 50px;
}

/* Icônes dans les onglets */
.metal-rouge-tab-button .tab-icon {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0; /* Évite que l'icône rétrécisse */
}

.metal-rouge-tab-button .tab-title {
    display: inline-block;
}

/* Effets de survol améliorés */
.metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button:hover:not(.active) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button.active {
    transform: translateY(-2px) scale(1.05);
}

/* ===== CONTENU DES ONGLETS ===== */
.metal-rouge-tabs-content {
    position: relative;
    overflow: hidden;
    width: 100%; /* Assure que le contenu prend toute la largeur disponible */
}

.metal-rouge-tab-content {
    display: none;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    width: 100%; /* Assure que chaque tab prend toute la largeur */
    box-sizing: border-box;
}

.metal-rouge-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMATIONS D'ENTRÉE AMÉLIORÉES ===== */
/* Animation fade */
.metal-rouge-product-tabs[data-animation-type="fade"] .metal-rouge-tab-content {
    transition: opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="fade"] .metal-rouge-tab-content:not(.active) {
    opacity: 0;
}

/* Animation slide horizontal */
.metal-rouge-product-tabs[data-animation-type="slide"] .metal-rouge-tab-content {
    transition: transform var(--animation-duration, 400ms) var(--animation-easing, ease-out), 
                opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="slide"] .metal-rouge-tab-content:not(.active) {
    transform: translateX(30px);
    opacity: 0;
}

/* Animation slide vertical */
.metal-rouge-product-tabs[data-animation-type="slideVertical"] .metal-rouge-tab-content {
    transition: transform var(--animation-duration, 400ms) var(--animation-easing, ease-out), 
                opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="slideVertical"] .metal-rouge-tab-content:not(.active) {
    transform: translateY(30px);
    opacity: 0;
}

/* Animation scale */
.metal-rouge-product-tabs[data-animation-type="scale"] .metal-rouge-tab-content {
    transition: transform var(--animation-duration, 400ms) var(--animation-easing, ease-out), 
                opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="scale"] .metal-rouge-tab-content:not(.active) {
    transform: scale(0.9);
    opacity: 0;
}

/* Animation rotate */
.metal-rouge-product-tabs[data-animation-type="rotate"] .metal-rouge-tab-content {
    transition: transform var(--animation-duration, 400ms) var(--animation-easing, ease-out), 
                opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="rotate"] .metal-rouge-tab-content:not(.active) {
    transform: rotate(10deg) scale(0.95);
    opacity: 0;
}

/* Animation flip horizontal */
.metal-rouge-product-tabs[data-animation-type="flipX"] .metal-rouge-tab-content {
    transition: transform var(--animation-duration, 400ms) var(--animation-easing, ease-out), 
                opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="flipX"] .metal-rouge-tab-content:not(.active) {
    transform: rotateY(90deg);
    opacity: 0;
}

/* Animation flip vertical */
.metal-rouge-product-tabs[data-animation-type="flipY"] .metal-rouge-tab-content {
    transition: transform var(--animation-duration, 400ms) var(--animation-easing, ease-out), 
                opacity var(--animation-duration, 400ms) var(--animation-easing, ease-out);
}

.metal-rouge-product-tabs[data-animation-type="flipY"] .metal-rouge-tab-content:not(.active) {
    transform: rotateX(90deg);
    opacity: 0;
}

/* ===== ANIMATIONS DE SORTIE ===== */
.metal-rouge-tab-content.exiting {
    pointer-events: none;
}

/* Sortie fade out */
.metal-rouge-tab-content.exiting.fadeOut {
    animation: exitFadeOut var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* Sortie slide left */
.metal-rouge-tab-content.exiting.slideOutLeft {
    animation: exitSlideLeft var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* Sortie slide right */
.metal-rouge-tab-content.exiting.slideOutRight {
    animation: exitSlideRight var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* Sortie slide up */
.metal-rouge-tab-content.exiting.slideOutUp {
    animation: exitSlideUp var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* Sortie slide down */
.metal-rouge-tab-content.exiting.slideOutDown {
    animation: exitSlideDown var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* Sortie scale out */
.metal-rouge-tab-content.exiting.scaleOut {
    animation: exitScaleOut var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* Sortie rotate out */
.metal-rouge-tab-content.exiting.rotateOut {
    animation: exitRotateOut var(--exit-duration, 250ms) var(--animation-easing, ease-out) forwards;
}

/* ===== KEYFRAMES POUR LES ANIMATIONS DE SORTIE ===== */
@keyframes exitFadeOut {
    to {
        opacity: 0;
    }
}

@keyframes exitSlideLeft {
    to {
        transform: translateX(-30px);
        opacity: 0;
    }
}

@keyframes exitSlideRight {
    to {
        transform: translateX(30px);
        opacity: 0;
    }
}

@keyframes exitSlideUp {
    to {
        transform: translateY(-30px);
        opacity: 0;
    }
}

@keyframes exitSlideDown {
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

@keyframes exitScaleOut {
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

@keyframes exitRotateOut {
    to {
        transform: rotate(-10deg) scale(0.9);
        opacity: 0;
    }
}

/* ===== ANIMATION ÉCHELONNÉE (STAGGER) ===== */
.metal-rouge-tab-content.active .product-image {
    animation: enterFromLeft var(--animation-duration, 400ms) var(--animation-easing, ease-out) both;
}

.metal-rouge-tab-content.active .product-details {
    animation: enterFromRight var(--animation-duration, 400ms) var(--animation-easing, ease-out) both;
    animation-delay: var(--stagger-delay, 50ms);
}

@keyframes enterFromLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes enterFromRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== WRAPPER DU CONTENU PRODUIT ===== */
.product-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

/* ===== IMAGE DU PRODUIT ===== */
.product-image {
    flex-shrink: 0;
    width: 40%; /* Par défaut, écrasé par les styles responsive */
    max-width: 100%;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metal-rouge-product-tabs.hover-effects-enabled .product-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== DÉTAILS DU PRODUIT ===== */
.product-details {
    flex: 1;
    min-width: 0; /* Pour éviter le débordement */
}

.product-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
    letter-spacing: -0.5px;
}

.product-price {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
    text-shadow: none;
}

.product-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-link {
    margin-top: 20px;
}

.product-link a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #dc2626;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.product-link a:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

/* ===== DISPOSITION VERTICALE ===== */
.metal-rouge-tabs-vertical {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.metal-rouge-tabs-vertical .metal-rouge-tabs-nav {
    flex-direction: column;
    width: 250px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid #e9ecef;
    margin-bottom: 0;
    margin-right: 0;
}

.metal-rouge-tabs-vertical .metal-rouge-tab-button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px 0 0 8px;
    border-right: none;
    margin-right: 0;
    margin-bottom: 2px;
}

.metal-rouge-tabs-vertical .metal-rouge-tab-button:last-child {
    margin-bottom: 0;
}

.metal-rouge-tabs-vertical .metal-rouge-tab-content {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 0 8px 8px 8px;
    border-left: none;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .product-content-wrapper {
        gap: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .metal-rouge-tabs-vertical {
        flex-direction: column;
    }
    
    .metal-rouge-tabs-vertical .metal-rouge-tabs-nav {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 20px;
        overflow-x: auto;
    }
    
    .metal-rouge-tabs-vertical .metal-rouge-tab-button {
        border-radius: 8px 8px 0 0;
        border-bottom: none;
        white-space: nowrap;
        margin-right: 2px;
        margin-bottom: 0;
    }
    
    .metal-rouge-tabs-vertical .metal-rouge-tab-content {
        border: 1px solid #e9ecef;
        border-radius: 0 8px 8px 8px;
        border-top: none;
    }
}

/* ===== BREAKPOINT MOBILE PERSONNALISABLE ===== */
@media (max-width: 768px) {
    /* ===== AJUSTEMENTS POUR LES MODES DE LARGEUR SUR MOBILE ===== */
    
    /* Forcer tous les modes de largeur à revenir à auto sur mobile */
    .metal-rouge-product-tabs.tabs-width-uniform .metal-rouge-tab-button,
    .metal-rouge-product-tabs.tabs-width-custom .metal-rouge-tab-button {
        flex: 0 1 auto;
        width: auto;
        min-width: max-content;
        white-space: nowrap;
    }
    
    /* Ajustements pour les modes d'espacement sur mobile */
    .metal-rouge-tabs-nav.spacing-space-between,
    .metal-rouge-tabs-nav.spacing-space-around,
    .metal-rouge-tabs-nav.spacing-space-evenly {
        justify-content: flex-start !important;
        overflow-x: auto;
    }

    .metal-rouge-tabs-nav.spacing-space-between .metal-rouge-tab-button,
    .metal-rouge-tabs-nav.spacing-space-around .metal-rouge-tab-button,
    .metal-rouge-tabs-nav.spacing-space-evenly .metal-rouge-tab-button {
        margin-right: 8px;
        flex: 0 0 auto;
    }

    .metal-rouge-tabs-nav.spacing-space-between .metal-rouge-tab-button:last-child,
    .metal-rouge-tabs-nav.spacing-space-around .metal-rouge-tab-button:last-child,
    .metal-rouge-tabs-nav.spacing-space-evenly .metal-rouge-tab-button:last-child {
        margin-right: 0;
    }

    /* Mode Accordion */
    .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tabs-nav {
        display: none;
    }
    
    .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content {
        display: block;
        opacity: 1;
        transform: none;
        margin-bottom: 20px;
        border-radius: 8px;
        position: relative;
    }
    
    .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content::before {
        content: attr(aria-labelledby);
        display: block;
        padding: 15px 20px;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        border-radius: 8px 8px 0 0;
    }
    
    .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content.active::before {
        background-color: #dc2626;
        color: #ffffff;
    }
    
    /* Mode Stacked */
    .metal-rouge-product-tabs[data-mobile-behavior="stacked"] .metal-rouge-tabs-nav {
        flex-direction: column;
        width: 100%;
        border-bottom: none;
        margin-bottom: 20px;
    }
    
    .metal-rouge-product-tabs[data-mobile-behavior="stacked"] .metal-rouge-tab-button {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .metal-rouge-product-tabs[data-mobile-behavior="stacked"] .metal-rouge-tab-content {
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    /* Ajustements généraux mobile */
    .metal-rouge-tab-button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: auto;
    }
    
    .metal-rouge-tab-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .product-description {
        font-size: 15px;
    }
    
    /* Force les onglets scrollables sur mobile */
    .metal-rouge-tabs-nav {
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    /* Désactiver les animations échelonnées sur mobile */
    .metal-rouge-tab-content.active .product-image,
    .metal-rouge-tab-content.active .product-details {
        animation: none;
    }
}

@media (max-width: 480px) {
    .metal-rouge-tab-button {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .metal-rouge-tab-button .tab-icon {
        font-size: 14px;
    }
    
    .metal-rouge-tab-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-description {
        font-size: 14px;
    }
}

/* ===== COMPATIBILITÉ MODE SOMBRE AMÉLIORÉE (PRIORITÉ ÉLEVÉE) ===== */
/* ===== STYLES DARK MODE ULTRA-SPÉCIFIQUES POUR ÉVITER LES CONFLITS ===== */

/* Conteneur principal - Spécificité maximale avec classe body */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs,
html body.dark-mode .metal-rouge-product-tabs,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs,
html body.dark-mode div.metal-rouge-product-tabs {
    color: #f5f5f5 !important;
}

/* Navigation des onglets - Spécificité ultra-élevée */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tabs-nav,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tabs-nav,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tabs-nav,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tabs-nav {
    border-bottom-color: #374151 !important;
}

/* ===== BOUTONS D'ONGLETS - ÉTATS NORMAUX ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button,
html body.dark-mode .metal-rouge-product-tabs button.metal-rouge-tab-button,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button,
html body.dark-mode div.metal-rouge-product-tabs button.metal-rouge-tab-button {
    background-color: #2d2d2d !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
}

/* ===== BOUTONS D'ONGLETS - ÉTAT HOVER ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button:hover,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button:hover,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button:hover,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button:hover,
html body.dark-mode .metal-rouge-product-tabs button.metal-rouge-tab-button:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button:hover,
html body.dark-mode div.metal-rouge-product-tabs button.metal-rouge-tab-button:hover {
    background-color: #374151 !important;
    color: #f5f5f5 !important;
    border-color: #4b5563 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
}

/* ===== BOUTONS D'ONGLETS - ÉTAT ACTIF (PRIORITÉ ABSOLUE) ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button.active,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button.active,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button.active,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button.active,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button.active,
html body.dark-mode .metal-rouge-product-tabs button.metal-rouge-tab-button.active,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button.active,
html body.dark-mode div.metal-rouge-product-tabs button.metal-rouge-tab-button.active,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"],
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"],
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"],
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"] {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}

/* ===== BOUTONS D'ONGLETS - ÉTAT ACTIF + HOVER ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button.active:hover,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button.active:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button.active:hover,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button.active:hover,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button.active:hover,
html body.dark-mode .metal-rouge-product-tabs button.metal-rouge-tab-button.active:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs button.metal-rouge-tab-button.active:hover,
html body.dark-mode div.metal-rouge-product-tabs button.metal-rouge-tab-button.active:hover,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"]:hover,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"]:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"]:hover,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button[aria-selected="true"]:hover {
    background-color: #b91c1c !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.5) !important;
}

/* ===== ICÔNES ET TEXTE DANS LES ONGLETS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button .tab-icon,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button .tab-title,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button .tab-icon,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button .tab-title,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button .tab-icon,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button .tab-title,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button .tab-icon,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button .tab-title {
    color: inherit !important;
}

/* ===== CONTENU DES ONGLETS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-content,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-content {
    background-color: #1a1a1a !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1) !important;
}

/* ===== TITRES DES PRODUITS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-title,
html body.dark-mode .metal-rouge-product-tabs .product-title,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-title,
html body.dark-mode div.metal-rouge-product-tabs .product-title {
    color: #f5f5f5 !important;
}

/* ===== DESCRIPTIONS DES PRODUITS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-description,
html body.dark-mode .metal-rouge-product-tabs .product-description,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-description,
html body.dark-mode div.metal-rouge-product-tabs .product-description,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-description p,
html body.dark-mode .metal-rouge-product-tabs .product-description p,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-description p,
html body.dark-mode div.metal-rouge-product-tabs .product-description p {
    color: #b3b3b3 !important;
}

/* ===== PRIX DES PRODUITS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-price,
html body.dark-mode .metal-rouge-product-tabs .product-price,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-price,
html body.dark-mode div.metal-rouge-product-tabs .product-price {
    color: #dc2626 !important;
}

/* ===== IMAGES DES PRODUITS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-image img,
html body.dark-mode .metal-rouge-product-tabs .product-image img,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-image img,
html body.dark-mode div.metal-rouge-product-tabs .product-image img {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

/* ===== LIENS DES PRODUITS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-link a,
html body.dark-mode .metal-rouge-product-tabs .product-link a,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-link a,
html body.dark-mode div.metal-rouge-product-tabs .product-link a {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .product-link a:hover,
html body.dark-mode .metal-rouge-product-tabs .product-link a:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .product-link a:hover,
html body.dark-mode div.metal-rouge-product-tabs .product-link a:hover {
    background-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4) !important;
}

/* ===== SCROLLBAR EN MODE SOMBRE ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav,
html body.dark-mode .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav,
html body.dark-mode div.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav,
html body.dark-mode .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav,
html body.dark-mode div.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav {
    scrollbar-color: #dc2626 #2d2d2d !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode div.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-track,
html body.dark-mode div.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-track {
    background: #2d2d2d !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode div.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb,
html body.dark-mode div.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb {
    background: #dc2626 !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode div.metal-rouge-product-tabs.tabs-scrollable .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover,
html body.dark-mode div.metal-rouge-product-tabs.tabs-overflow-mode .metal-rouge-tabs-nav::-webkit-scrollbar-thumb:hover {
    background: #b91c1c !important;
}

/* ===== MODE ACCORDION EN MODE SOMBRE ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content::before,
html body.dark-mode .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content::before,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content::before,
html body.dark-mode div.metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content::before {
    background-color: #2d2d2d !important;
    border-bottom-color: #374151 !important;
    color: #f5f5f5 !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content.active::before,
html body.dark-mode .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content.active::before,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content.active::before,
html body.dark-mode div.metal-rouge-product-tabs[data-mobile-behavior="accordion"] .metal-rouge-tab-content.active::before {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

/* ===== EFFETS HOVER AMÉLIORÉS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button:hover:not(.active),
html body.dark-mode .metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button:hover:not(.active),
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button:hover:not(.active),
html body.dark-mode div.metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button:hover:not(.active) {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15) !important;
    background-color: #374151 !important;
    color: #f5f5f5 !important;
    transform: translateY(-2px) scale(1.02) !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button.active,
html body.dark-mode .metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button.active,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button.active,
html body.dark-mode div.metal-rouge-product-tabs.hover-effects-enabled .metal-rouge-tab-button.active {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
    background-color: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05) !important;
}

/* ===== EFFET HOVER SUR LES IMAGES ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.hover-effects-enabled .product-image:hover img,
html body.dark-mode .metal-rouge-product-tabs.hover-effects-enabled .product-image:hover img,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs.hover-effects-enabled .product-image:hover img,
html body.dark-mode div.metal-rouge-product-tabs.hover-effects-enabled .product-image:hover img {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.03) !important;
}

/* ===== ÉTATS DE FOCUS AMÉLIORÉS ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button:focus-visible,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button:focus-visible,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button:focus-visible,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-button:focus-visible {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px !important;
    z-index: 10 !important;
}

html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content:focus-visible,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-content:focus-visible,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content:focus-visible,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-content:focus-visible {
    outline: 2px solid #dc2626 !important;
    outline-offset: -2px !important;
}

/* ===== INDICATEURS DE CHARGEMENT ===== */
html body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content.loading::after,
html body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-content.loading::after,
html body.dark-mode div.elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content.loading::after,
html body.dark-mode div.metal-rouge-product-tabs .metal-rouge-tab-content.loading::after {
    border: 3px solid #374151 !important;
    border-top: 3px solid #dc2626 !important;
}

/* ===== ANIMATIONS D'ENTRÉE ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.metal-rouge-product-tabs .product-image {
    animation: slideInRight 0.6s ease-out;
}

.metal-rouge-product-tabs .product-details {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Désactiver les animations pour les utilisateurs préférant moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .metal-rouge-product-tabs *,
    .metal-rouge-tab-button,
    .metal-rouge-tab-content,
    .product-image,
    .product-details {
        animation: none !important;
        transition: none !important;
    }
    
    .metal-rouge-tab-content.active {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .metal-rouge-tab-content.exiting {
        display: none !important;
    }
}

/* ===== ÉTATS DE FOCUS AMÉLIORÉS ===== */
.metal-rouge-tab-button:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    z-index: 10;
}

.metal-rouge-tab-content:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: -2px;
}

/* États de focus en mode sombre avec spécificité maximale */
body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button:focus-visible,
body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button:focus-visible {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px !important;
    z-index: 10 !important;
}

body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content:focus-visible,
body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-content:focus-visible {
    outline: 2px solid #dc2626 !important;
    outline-offset: -2px !important;
}

/* ===== INDICATEURS DE CHARGEMENT ===== */
.metal-rouge-tab-content.loading {
    opacity: 0.5;
    position: relative;
}

.metal-rouge-tab-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Indicateur de chargement en mode sombre avec spécificité maximale */
body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-content.loading::after,
body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-content.loading::after {
    border: 3px solid #374151 !important;
    border-top: 3px solid #dc2626 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== AMÉLIORATIONS VISUELLES ===== */
.metal-rouge-product-tabs {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

/* Améliorations visuelles en mode sombre avec spécificité maximale */
body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-product-tabs,
body.dark-mode .metal-rouge-product-tabs {
    background: #1a1a1a !important;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.05) !important;
}

/* Animation de la ligne indicatrice active */
.metal-rouge-tabs-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    height: 3px;
    background-color: #dc2626;
    transition: all 0.3s ease;
    border-radius: 2px 2px 0 0;
}

/* Animation de la ligne indicatrice en mode sombre avec spécificité maximale */
body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tabs-nav::after,
body.dark-mode .metal-rouge-product-tabs .metal-rouge-tabs-nav::after {
    background-color: #dc2626 !important;
}

/* Effet de brillance subtile */
.metal-rouge-tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* Effet de brillance en mode sombre avec spécificité maximale */
body.dark-mode .elementor-widget-metal-rouge-product-tabs .metal-rouge-tab-button.active::before,
body.dark-mode .metal-rouge-product-tabs .metal-rouge-tab-button.active::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%) !important;
}