:root {
    --primary: #007aff;
    --primary-glow: rgba(0, 122, 255, 0.7);
    --bg: #060d1a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --font-display: 'Bebas Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    background-image: radial-gradient(circle at center, #141e2d 0%, #060d1a 100%);
    color: #f0f4ff;
    font-family: 'DM Sans', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; height: 115px;
    background: rgba(6, 13, 26, 0.98); backdrop-filter: blur(20px);
    z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 3px; margin-bottom: 8px; }
.logo span { color: var(--primary); }

.nav-controls { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: center; }
.menu { display: flex; list-style: none; gap: 6px; }
.menu li { font-size: 0.7rem; font-weight: 800; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: rgba(255,255,255,0.4); white-space: nowrap; }
.menu li.active { background: var(--primary); color: #fff; }

.btn-reset {
    background: rgba(255, 59, 48, 0.15); border: 1px solid #ff3b30; color: #ff3b30;
    font-size: 0.65rem; font-weight: 900; padding: 6px 10px; border-radius: 8px; cursor: pointer;
}

/* CAROUSEL */
.carousel-container { height: 100vh; width: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; padding: 130px 0; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-scroller { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-bottom: 100px; }

/* CARDS */
.exercise-card {
    scroll-snap-align: center; width: calc(100vw - 30px); max-width: 480px;
    height: 70vh; max-height: 560px; background: var(--card-bg); backdrop-filter: blur(20px);
    border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.08); padding: 18px; display: flex; flex-direction: column;
}
.exercise-card.finished { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }

.gif-container { flex-grow: 1; background: #fff; border-radius: 20px; overflow: hidden; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.gif-container img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* TITRE & COMPTEUR */
.exercise-header { display: flex; align-items: center; width: 100%; margin-bottom: 10px; }
.header-spacer { flex: 1; }
.exercise-header h2 { flex: 3; font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; text-align: center; white-space: nowrap; }
.stat-counter-wrapper { flex: 1; display: flex; justify-content: flex-end; }
.counter-box { background: rgba(255, 255, 255, 0.1); color: var(--primary); padding: 4px 8px; border-radius: 8px; text-align: center; min-width: 45px; }
.counter-box .val { display: block; font-weight: 800; font-size: 0.8rem; }
.counter-box .lab { display: block; font-size: 0.4rem; opacity: 0.7; }

/* BOTTOM UI */
.bottom-ui { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(0, 0, 0, 0.4); padding: 10px; border-radius: 18px; }
.stats-row { display: flex; gap: 4px; }
.stat-tag { padding: 5px 7px; border-radius: 8px; text-align: center; min-width: 48px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.stat-tag .val { display: block; font-weight: 800; font-size: 0.8rem; }
.stat-tag .lab { display: block; font-size: 0.4rem; text-transform: uppercase; opacity: 0.6; }

.b-blue { border-color: var(--primary); color: var(--primary); }
.b-green { border-color: #34c759; color: #34c759; }
.b-yellow { border-color: #ffcc00; color: #ffcc00; }
.b-red { border-color: #ff3b30; color: #ff3b30; }

.btn-status { background: var(--primary); color: #fff; border: none; height: 40px; border-radius: 12px; flex: 1; max-width: 100px; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; cursor: pointer; }
.btn-status.is-done { background: #34c759; }
