/* Terra Logos Carousel — v1.0.0 */

/* ============================================================
   TERRA LOGOS CAROUSEL WIDGET — v1.6.0
   Centré, actif au milieu + plus grand, rotation automatique
   ============================================================ */

.tlc-wrapper {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* ── Viewport ── */
.tlc-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ── Track ── */
.tlc-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    will-change: transform;
    cursor: grab;
    /* transition définie inline par le JS */
}
.tlc-track.is-dragging { cursor: grabbing; }

/* ── Items ── */
.tlc-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition définie inline via <style> par instance */
}

.tlc-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tlc-item img {
    display: block;
    object-fit: contain;
    pointer-events: none;
}

/* ── Placeholder (sans image) ── */
.tlc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
    min-width: 80px;
    min-height: 40px;
}

/* ── Flèches — positionnées en absolu de part et d'autre ── */
.tlc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.tlc-arrow.tlc-prev { left: 12px; }
.tlc-arrow.tlc-next { right: 12px; }
.tlc-arrow:hover {
    background: #f9fafb;
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    transform: translateY(-50%) scale(1.06);
}
.tlc-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.tlc-arrow svg { pointer-events: none; display: block; }

/* ── Dots ── */
.tlc-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tlc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
    flex-shrink: 0;
}
.tlc-dot.active {
    background: #374151;
    transform: scale(1.35);
}
.tlc-dot:hover:not(.active) { background: #9ca3af; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .tlc-arrow { width: 36px; height: 36px; }
    .tlc-arrow.tlc-prev { left: 6px; }
    .tlc-arrow.tlc-next { right: 6px; }
}
