/* ============================================
   TMC VIDEO CAROUSEL
   ============================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,600&display=swap');

/* ── Supprimer TOUT outline/bleu/hover louche ── */
.tmc-carousel-wrapper *,
.tmc-carousel-wrapper *:focus,
.tmc-carousel-wrapper *:focus-visible,
.tmc-carousel-wrapper *:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Wrapper */
.tmc-carousel-wrapper {
    position: relative;
    max-width: 1800px;
    margin: auto;
}

/* Gallery */
.tmc-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tmc-gallery::-webkit-scrollbar { display: none; }

/* Card */
.tmc-card {
    min-width: 340px;
    max-width: 340px;
    border: 2px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform .3s;
    padding-bottom: 5px;
    margin: 0;
}
.tmc-card.tmc-center { transform: scale(1.05); }

/* Video portrait 9:16 */
.tmc-video {
    width: 105%;
    aspect-ratio: 9 / 16;
    background: #000;
    display: block;
    object-fit: cover;
}

/* Masquer tout sauf play + volume + menu */
.tmc-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.55) 100%);
}
.tmc-video::-webkit-media-controls-timeline                  { display: none !important; }
.tmc-video::-webkit-media-controls-current-time-display      { display: none !important; }
.tmc-video::-webkit-media-controls-time-remaining-display    { display: none !important; }
.tmc-video::-webkit-media-controls-fullscreen-button         { display: none !important; }
.tmc-video::-webkit-media-controls-picture-in-picture-button { display: none !important; }

/* Embed YouTube / Vimeo */
.tmc-embed-wrap {
    position: relative;
    width: 105%;
    aspect-ratio: 9 / 16;
    background: #000 no-repeat center/cover;
    cursor: pointer;
}
.tmc-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Bouton play embed — barre bas */
.tmc-play-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    outline: none !important;
}
.tmc-play-btn:hover { background: linear-gradient(transparent, rgba(0,0,0,0.65)); }
.tmc-play-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.tmc-embed-wrap.tmc-playing .tmc-play-btn { display: none; }

/* Product bar */
.tmc-product {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #eee;
}
.tmc-product img {
    width: 46px !important;
    height: 46px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}
.tmc-product-info { display: flex; flex-direction: column; gap: 2px; }

.tmc-product-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}
.tmc-shop-link {
    font-family: 'Clash Display', sans-serif;
    color: #d6a546;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}
.tmc-shop-link:hover { color: #b8892e; }

/* Arrows — zero bleu */
.tmc-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    background: white;
    color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font-size: 20px;
    transition: transform .2s, background .2s;
    outline: none !important;
}
.tmc-arrow:hover { transform: translateY(-50%) scale(1.1); background: #f0f0f0; color: #111; }
.tmc-arrow-left  { left: -10px; }
.tmc-arrow-right { right: -10px; }

/* Responsive */
@media (max-width: 900px) {
    .tmc-gallery { padding: 16px; gap: 12px; }
    .tmc-card { min-width: 78vw; max-width: 78vw; border-radius: 14px; }
    .tmc-card.tmc-center { transform: scale(1.02); }
    .tmc-video, .tmc-embed-wrap { width: 100%; }
    .tmc-arrow { width:38px; height:38px; font-size:18px; top:45%; }
    .tmc-arrow-left  { left: 6px; }
    .tmc-arrow-right { right: 6px; }
}
@media (max-width: 480px) {
    .tmc-card { min-width: 84vw; max-width: 84vw; }
    .tmc-product-title { font-size: 12px; }
    .tmc-shop-link     { font-size: 11px; }
    .tmc-product img   { width: 40px; height: 40px; }
}
