@font-face {
    font-family: Parisine;
    src: url("../fonts/Parisine.otf");
}

:root {
    --watch-size: 450px;
    --border-width: 14px;
    --bg: #000;
    --inner: #0f1417;
    --text: #c8d8ec;
    --blue: #0067ff;
    --yellow: #ffbe00;

}

html,
body {
    height: var(--watch-size);
    width: var(--watch-size);
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Parisine, system-ui;
    color: #555;
}

.watch-viewport {
    width: var(--watch-size);
    height: var(--watch-size);
    background: var(--bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: scale(1);
    aspect-ratio: 1;
}

.content {
    width: calc(100% - calc(var(--border-width) * 2));
    height: calc(100% - calc(var(--border-width) * 2));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    padding: 16px;
    box-sizing: border-box;
}

.label {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 6px
}

.center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 8px rgba(0, 120, 255, 0.12);
}

.bus-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 4000px;
    padding: 0 20px;
    box-sizing: border-box;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.bus-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.bus-card:nth-child(2) { animation-delay: 0.1s; }
.bus-card:nth-child(3) { animation-delay: 0.2s; }
.bus-card:nth-child(4) { animation-delay: 0.3s; }

.bus-card:hover {
    transform: scale(1.02);
}

.bus-line {
    min-width: 50px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.bus-line.wrong-direction::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            150deg,
            transparent 50%,
            rgba(255, 255, 255, 0.4) 50%
    );
    animation: blinkDiagonal 2s step-start infinite;
}

@keyframes blinkDiagonal {
    50% { opacity: 0; }
}

.bus-info {
    flex: 1;
    overflow: hidden;
}

.bus-destination {
    font-size: 1.5rem;
    color: var(--text);
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bus-time {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.bus-time span {
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 4px;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.5rem;
}

.loader {
    width: 64px;
    height: 64px;
    border: 12px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.retry-btn {
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--blue);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.retry-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* Indicateur de pagination */
.page-indicator {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
    padding: 4px;
    animation: fadeIn 0.5s ease forwards;
}

/* Titre d'arrêt */
.stop-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease forwards;
}

/* Cartes Vélib */
.velib-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(136, 197, 66, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.velib-card:nth-child(2) { animation-delay: 0.1s; }
.velib-card:nth-child(3) { animation-delay: 0.2s; }
.velib-card:nth-child(4) { animation-delay: 0.3s; }

.velib-card:hover {
    transform: scale(1.02);
}

.velib-station-name {
    min-width: 120px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #88c542;
    color: #000;
    display: flex;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
}

.velib-info {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.velib-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.velib-icon {
    font-size: 1.4rem;
}

.velib-count {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
}

.velib-count.ebike {
    color: #88c542;
}

.velib-count.dock {
    color: #6ab3e7;
}
