/* ==========================================================================
   e-nov Companion - Day Schedule Widget (Déroulé d'une journée)
   ========================================================================== */

.etc-ds {
    --etc-ds-line-color: #e0a96d;
    --etc-ds-line-height: 2px;
    --etc-ds-dot-color: #ea7317;
    --etc-ds-dot-size: 12px;
    --etc-ds-dot-border-color: transparent;
    --etc-ds-dot-border-width: 0px;
    --etc-ds-highlight-dot-color: #ff5722;
    --etc-ds-item-width: 220px;
    --etc-ds-item-gap: 30px;
    --etc-ds-fade-color: rgba(255, 255, 255, 0.92);

    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.etc-ds__notice {
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Scroll & Track
   -------------------------------------------------------------------------- */
.etc-ds__scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    outline: none;
    box-sizing: border-box;
}

.etc-ds__scroll::-webkit-scrollbar {
    display: none;
}

.etc-ds--draggable .etc-ds__scroll {
    cursor: grab;
}

.etc-ds--draggable.is-dragging .etc-ds__scroll {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.etc-ds__track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--etc-ds-item-gap, 30px);
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Horizontal Line
   -------------------------------------------------------------------------- */
.etc-ds__line {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(6px + (var(--etc-ds-dot-size, 12px) / 2) - (var(--etc-ds-line-height, 2px) / 2));
    height: var(--etc-ds-line-height, 2px);
    background-color: var(--etc-ds-line-color, #e0a96d);
    z-index: 1;
    pointer-events: none;
    border-radius: 99px;
}

/* --------------------------------------------------------------------------
   Timeline Item
   -------------------------------------------------------------------------- */
.etc-ds__item {
    position: relative;
    z-index: 2;
    flex: 0 0 var(--etc-ds-item-width, 220px);
    max-width: var(--etc-ds-item-width, 220px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Dot Container & Marker */
.etc-ds__dot-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: var(--etc-ds-dot-size, 12px);
    flex-shrink: 0;
}

.etc-ds__dot {
    display: inline-block;
    width: var(--etc-ds-dot-size, 12px);
    height: var(--etc-ds-dot-size, 12px);
    border-radius: 50%;
    background-color: var(--etc-ds-dot-color, #ea7317);
    border: var(--etc-ds-dot-border-width, 0px) solid var(--etc-ds-dot-border-color, transparent);
    box-sizing: border-box;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.etc-ds__item:hover .etc-ds__dot {
    transform: scale(1.2);
}

.etc-ds__item--highlight .etc-ds__dot {
    background-color: var(--etc-ds-highlight-dot-color, #ff5722);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(234, 115, 23, 0.25);
}

/* --------------------------------------------------------------------------
   Content: Time, Title, Desc, Badge
   -------------------------------------------------------------------------- */
.etc-ds__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.etc-ds__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #fef3c7;
    color: #92400e;
    margin-top: 12px;
    margin-bottom: 2px;
}

.etc-ds__time {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #ea7317;
    margin-top: 18px;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.etc-ds__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f1e36;
    margin: 0 0 6px 0;
}

.etc-ds__desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Navigation Arrows
   -------------------------------------------------------------------------- */
.etc-ds__arrow {
    position: absolute;
    top: calc(50% - 18px);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: #ffffff;
    color: #ea7317;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.etc-ds__arrow:hover {
    transform: scale(1.1);
}

.etc-ds__arrow:active {
    transform: scale(0.95);
}

.etc-ds__arrow--prev {
    left: -18px;
}

.etc-ds__arrow--next {
    right: -18px;
}

.etc-ds__arrow.is-disabled {
    opacity: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Fade Edge Indicators
   -------------------------------------------------------------------------- */
.etc-ds__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.etc-ds__fade--left {
    left: 0;
    background: linear-gradient(to right, var(--etc-ds-fade-color, rgba(255, 255, 255, 0.95)), transparent);
}

.etc-ds__fade--right {
    right: 0;
    background: linear-gradient(to left, var(--etc-ds-fade-color, rgba(255, 255, 255, 0.95)), transparent);
}

.etc-ds__fade.is-visible {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .etc-ds {
        --etc-ds-item-width: 200px;
        --etc-ds-item-gap: 24px;
    }
    .etc-ds__arrow--prev {
        left: 0;
    }
    .etc-ds__arrow--next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .etc-ds {
        --etc-ds-item-width: 180px;
        --etc-ds-item-gap: 20px;
    }
    .etc-ds__time {
        font-size: 20px;
        margin-top: 14px;
        margin-bottom: 6px;
    }
    .etc-ds__title {
        font-size: 15px;
    }
    .etc-ds__desc {
        font-size: 13px;
    }
    .etc-ds__fade {
        width: 32px;
    }
}
