/* === Slider Expériences – CSS Complet & Optimisé === */
.tv-widget {
    font-family: 'Inter Tight', sans-serif;
    color: #1A1A1A;
    background: #FFFFFF;
    padding: 60px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    -webkit-font-smoothing: antialiased;
}

.tv-container {
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 0 auto;
    background: #F8F6F0;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) { .tv-container { padding: 2.5rem; } }

.tv-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 50;
}
@media (min-width: 768px) { .tv-header { flex-direction: row; align-items: center; justify-content: space-between; } }

.tv-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 42rem;
}
.tv-title span { color: #D97A35; }

/* Barre de recherche */
.tv-search-wrapper { position: relative; width: 100%; z-index: 100; }
@media (min-width: 768px) { .tv-search-wrapper { width: 300px; } }

.search-box {
    background: #fff;
    border-radius: 100px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 101;
}
.search-box.is-active { border-radius: 24px 24px 0 0; border-bottom-color: #F3F4F6; }
.search-box:focus-within:not(.is-active) { border-color: #E5E5E5; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.search-box input {
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    border: none !important;
    background: transparent !important;
    width: 100%;
    font-weight: 500;
    color: #111827;
    font-size: 0.85rem !important;
    font-family: inherit;
    padding: 0;
    margin: 0;
}
.search-box input::placeholder { color: #6B7280 !important; font-size: 13px !important; opacity: 1; }
.search-divider { height: 20px; width: 1px; background: #E5E7EB; margin: 0 12px; }
.search-icon-glass-wrapper { display: flex; align-items: center; margin-right: 12px; flex-shrink: 0; }
.search-icon-glass { color: #6B7280; font-size: 1.125rem; }
.search-icon-filter-wrapper { display: flex; align-items: center; }
.search-icon-filter { color: #6B7280; font-size: 1.125rem; }

/* Résultats */
.search-results-dropdown {
    position: absolute;
    top: 48px; left: 0; right: 0;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.25s ease;
    overflow: hidden;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}
.search-box.is-active + .search-results-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; text-decoration: none; transition: background 0.2s; cursor: pointer; }
.search-result-item:hover { background: #F9FAFB; }
.result-img-wrapper { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.result-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.result-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.result-location { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #D97A35; display: flex; align-items: center; gap: 4px; }
.result-title { font-size: 14px; font-weight: 700; color: #111827; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-size: 11px; font-weight: 500; color: #6B7280; display: flex; align-items: center; gap: 8px; }
.search-no-results { padding: 24px; text-align: center; color: #6B7280; font-size: 13px; }
.search-no-results i { font-size: 24px; margin-bottom: 8px; color: #9CA3AF; }

/* Slider */
.tv-slider-wrapper { position: relative; z-index: 10; }

.tv-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    color: #332822;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s, visibility 0.3s;
    outline: none;
    font-size: 1.2rem;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.tv-scroll-btn:hover { background: #fff; color: #D97A35; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.tv-scroll-btn:active { transform: translateY(-50%) scale(0.95); }

.tv-scroll-left { left: 8px; right: auto; visibility: hidden; opacity: 0; }
.tv-scroll-right { right: 8px; left: auto; }
.tv-scroll-btn.is-visible { visibility: visible; opacity: 1; }

/* Masque remplacé par un pseudo-élément */
.tv-scroll-mask {
    width: 100%;
    position: relative;
}
.tv-scroll-mask::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #F8F6F0);
    pointer-events: none;
    z-index: 15;
}

.tv-cards-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 10px 0 1.5rem 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    padding-right: 60px;
    cursor: grab;
}
.tv-cards-container::-webkit-scrollbar { display: none; }

/* --- CARTES --- */
.editorial-card {
    flex: 0 0 260px;
    height: 400px;
    border-radius: 28px;
    position: relative;
    background: transparent;
    scroll-snap-align: start;
    cursor: pointer;
    outline: none;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    z-index: 1;
    overflow: hidden;
}
.editorial-card.is-active {
    transform: scale(1.05);
    z-index: 5;
}
@media (min-width: 768px) {
    .editorial-card { flex: 0 0 320px; height: 460px; }
}

/* Image */
.editorial-card img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
@media (hover: hover) {
    .editorial-card:not(.is-active):hover img { transform: scale(1.04); }
}
.editorial-card.is-active img { transform: scale(1.03); }

/* Dégradé texte */
.overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 40%, transparent 70%);
}
.blur-gradient { display: none; }

/* Badge */
.card-top-right { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 20; }
.top-right-icon {
    width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.editorial-card.is-active .top-right-icon { background: #DB7A2A; }
.icon-inactive { display: block; color: #1A1A1A; font-size: 14px; }
.icon-active { display: none; color: #FFFFFF; font-size: 14px; }
.editorial-card.is-active .icon-inactive { display: none; }
.editorial-card.is-active .icon-active { display: block; }

/* Contenu */
.card-content { position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem; z-index: 20; display: flex; flex-direction: column; }
.text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.card-location { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.375rem; opacity: 0.9; }
.card-location i { color: #DB7A2A; font-size: 14px; }
.card-location span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #FFFFFF; margin: 0; }
.card-title { font-size: 22px; font-weight: 700; color: #FFFFFF; line-height: 1.25; margin: 0; }
.card-desc {
    margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; transition: opacity 0.3s ease; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-size: 0.85rem; color: #FFFFFF; font-weight: 500; line-height: 1.625; margin: 0;
}
.editorial-card:not(.is-active) .card-desc { opacity: 0.9; }

.active-meta { max-height: 0; opacity: 0; transform: translateY(10px); overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.editorial-card.is-active .active-meta { max-height: 100px; opacity: 1; transform: translateY(0); margin-top: 14px; }
.card-meta-row { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: #FFFFFF; font-weight: 500; margin-bottom: 0.75rem; }
.meta-item { display: flex; align-items: center; gap: 0.375rem; }
.meta-item i { color: #DB7A2A; font-size: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 0.75rem; }
.rating-wrapper { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; font-weight: 700; color: #FFFFFF; }
.rating-wrapper i { color: #F59E0B; font-size: 14px; }
.rating-count { color: rgba(255,255,255,0.6); font-weight: 500; font-size: 11px; margin-left: 0.125rem; }
.price-text { font-size: 14px; font-weight: 700; color: #FFFFFF; margin: 0; }

.explore-btn {
    background: transparent !important; color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.8) !important; border-radius: 100px;
    font-size: 13px; font-weight: 500; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.4s ease; width: 100%; margin-top: 16px;
    text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-sizing: border-box; outline: none;
}
.explore-btn span { white-space: nowrap; }
.explore-btn i { font-size: 14px; }
.editorial-card.is-active .explore-btn { background: #D97A35 !important; border-color: transparent !important; text-shadow: none; }

/* Bouton "Voir le catalogue" */
.view-all-wrapper { flex-shrink: 0; width: 140px; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 20; box-sizing: border-box; }
.view-all-link { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: #6B7280; text-decoration: none; transition: color 0.2s; cursor: pointer; outline: none; }
.view-all-circle {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid #D1D5DB; background: transparent;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.view-all-link:hover,
.view-all-link:hover .view-all-circle {
    color: #D97A35;
    border-color: #D97A35;
}
.view-all-text { font-size: 0.875rem; font-weight: 700; margin: 0; }

/* Points de pagination */
.tv-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}
.tv-pagination-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
.tv-pagination-dots .dot.active {
    width: 24px;
    border-radius: 10px;
    background: #D97A35;
}

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

/* Cacher les flèches sur mobile */
@media (max-width: 767px) {
    .tv-scroll-btn {
        display: none !important;
    }
}