/* Body et vidéo arrière-plan */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Inter", system-ui, sans-serif;
    background: #000;
    color: #e6eef8;
}

/* Hidden panel for beamer projection */
.hidden-panel {
    display: none !important;
}

/* Floating title overlay */
.title-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

.title-overlay h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.title-overlay .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* <-- moins négatif, visible derrière l'app */
    pointer-events: none;
    /* <-- la vidéo ne bloque pas les interactions */
    filter: blur(0px);
    transition: filter 0.1s linear, opacity 0.45s ease;
    opacity: 1;
}


/* App container */
.app {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Compteur réduit */
.gauge-card.small {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    width: 420px;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.speed-big {
    font-size: 2rem;
    font-weight: 800;
}

/* slider position (corrigé) */
.speed-slider {
    position: fixed;
    bottom: 70%;
    /* plus proche du compteur */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 18, 32, 0.7);
    padding: 8px 12px;
    border-radius: 14px;
    z-index: 3;
    display: flex;
    gap: 10px;
    color: white;
    align-items: center;
}

.speed-slider input {
    width: 200px;
}

/* Info card */
.info-card {
    background: rgba(11, 18, 32, 0.8);
    border-radius: 14px;
    padding: 12px;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.footer {
    margin-top: 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #f9f9f9;
    position: relative;
    z-index: 1;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge.green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge.grey {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Button styles */
.controls {
    display: flex;
    gap: 10px;
}

.controls button {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.controls button:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Status line */
.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-line:last-child {
    border-bottom: none;
}

/* Subread text */
.subread {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Topbar h1 */
.topbar h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Info card h2 */
.info-card h2 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: #60a5fa;
}