/**
 * Styles pour les Widgets Elementor Personnalisés
 * @package ThemeArchipicture
 * 
 * Ce fichier contient les styles pour tous les widgets Elementor personnalisés
 */

/* ========================================
   WIDGET : SUCROSITÉ DU VIN
   ======================================== */

.wine-sweetness-widget {
    width: 100% !important;
    max-width: 900px !important;
    margin: 20px auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 25px !important;
}

/* Message d'erreur */
.wine-sweetness-error {
    padding: 10px !important;
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

/* Barre de sucrosité */
.wine-sweetness-bar {
    display: flex !important;
    gap: 2px !important;
    width: 100% !important;
    height: 15px !important;
    margin-bottom: 10px !important;
}

.wine-sweetness-bar .segment {
    flex: 1 !important;
    background-color: #d9d9d9 !important;
    transition: background-color 0.3s ease !important;
    border: none !important;
}

.wine-sweetness-bar .segment.active {
    background-color: #8B4450 !important;
}

/* Labels */
.wine-sweetness-labels {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
    position: relative !important;
    width: 100% !important;
}

.wine-sweetness-labels .label {
    flex: 1 !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #333 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Marqueur triangulaire */
.wine-sweetness-labels .label .marker {
    font-size: 16px !important;
    line-height: 1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    color: #8B4450 !important;
    margin-bottom: 2px !important;
}

.wine-sweetness-labels .label.current .marker {
    opacity: 1 !important;
}

/* Texte du label */
.wine-sweetness-labels .label .label-text {
    font-weight: 700 !important;
    margin-top: 2px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    color: #000 !important;
}

.wine-sweetness-labels .label .label-subtext {
    font-size: 10px !important;
    color: #666 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.wine-sweetness-labels .label.current .label-text {
    font-weight: 900 !important;
    color: #8B4450 !important;
}

/* Responsive - Sucrosité */

/* Tablettes et petits écrans (moins de 880px) */
@media (max-width: 880px) {
    .wine-sweetness-labels .label .label-text {
        font-size: 13px !important;
    }

    .wine-sweetness-widget.mode-effervescent .wine-sweetness-labels .label .label-subtext {
        display: none !important;
    }

    .wine-sweetness-labels .label .marker {
        font-size: 14px !important;
    }
}

/* Mobiles (moins de 768px) */
@media (max-width: 768px) {
    .wine-sweetness-labels .label {
        font-size: 9px !important;
    }

    .wine-sweetness-labels .label .label-text {
        font-size: 11px !important;
    }

    .wine-sweetness-widget.mode-effervescent .wine-sweetness-labels .label .label-subtext {
        display: none !important;
    }

    .wine-sweetness-labels .label .marker {
        font-size: 12px !important;
    }
}

/* FORCE DISPLAY for Tranquille mode on mobile - Safety measure */
@media (max-width: 880px) {
    .wine-sweetness-widget.mode-tranquille .wine-sweetness-labels .label .label-subtext {
        display: block !important;
    }
}






/* ========================================
   WIDGET : TITRE PRODUIT AVEC SOUS-TITRE
   ======================================== */

.product-title-widget {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* Titre principal */
.product-title-widget .product-title-main {
    display: inline-block !important;
}

/* Sous-titre */
.product-title-widget .product-title-subtitle {
    display: block !important;
}

/* Séparateur (quand inline) */
.product-title-widget .product-title-separator {
    display: inline !important;
    margin: 0 5px !important;
}

/* Mode inline */
.product-title-widget .product-title-subtitle[style*="display: inline"] {
    display: inline !important;
}

/* Reset des styles heading par défaut */
.product-title-widget.h1,
.product-title-widget.h2,
.product-title-widget.h3,
.product-title-widget.h4 {
    font-size: inherit !important;
}

/* ========================================
   WIDGET : ACCORDS METS & VINS
   ======================================== */

.food-pairing-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    flex-direction: row !important;
    /* Force row */
    width: 100% !important;
}

.food-pairing-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-right: 15px !important;
    /* Safety margin */
    flex-shrink: 0 !important;
    /* Prevent shrinking */
}

.food-pairing-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.food-pairing-icon i,
.food-pairing-icon svg {
    display: block !important;
    line-height: 1 !important;
    height: auto !important;
    width: auto !important;
}

.food-pairing-label {
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* ========================================
   WIDGET : WOOCOMMERCE CHECKOUT TIMELINE
   ======================================== */

.woocommerce-timeline-2494-container {
    padding: 20px 0;
    width: 100%;
    margin: 0 auto;
}

.timeline-2494-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.timeline-2494-line-bg {
    position: absolute;
    left: 16.66%;
    right: 16.66%;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-2494-line-fill {
    position: absolute;
    left: 16.66%;
    z-index: 2;
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.timeline-2494-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 3;
}

.timeline-2494-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 33.33%;
}

.timeline-2494-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

a.timeline-2494-link {
    color: inherit;
}
a.timeline-2494-link:hover,
a.timeline-2494-link:focus,
a.timeline-2494-link:active {
    color: inherit;
    text-decoration: none;
}
div.timeline-2494-link {
    cursor: default;
}

.timeline-2494-dot-wrapper {
    background-color: transparent;
    padding: 0 10px;
    margin-bottom: 15px;
}

.timeline-2494-dot {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.timeline-2494-text {
    text-transform: uppercase;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.timeline-2494-step-active .timeline-2494-text {
    font-weight: bold;
}

@media (max-width: 767px) {
    .timeline-2494-text {
        font-size: 12px;
    }
}