/* Espace rider — Racer IQ by Motorsfit (gabarit member_racer_template.php), repris des maquettes maquettes/racing (mobile first)
   Charte : noir profond, rouge #e30613, Barlow Condensed (titres), Barlow (texte), Share Tech Mono (chronos) */
:root {
  --rq-bg: #070707;
  --rq-surface: #101010;
  --rq-surface-2: #171717;
  --rq-line: #262626;
  --rq-text: #f0f0f0;
  --rq-muted: #8a8a8a;
  --rq-red: #e30613;
  --rq-red-dark: #b0040f;
  --rq-green: #22c55e;
  --rq-yellow: #facc15;
  --rq-purple: #a855f7;
  --rq-radius: 2px;
  --rq-nav-h: 64px;
  --bs-body-bg: var(--rq-bg);
  --bs-body-color: var(--rq-text);
  --bs-border-color: var(--rq-line);
  --bs-secondary-color: var(--rq-muted);
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--rq-bg);
  color: var(--rq-text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 15px;
  padding-bottom: calc(var(--rq-nav-h) + env(safe-area-inset-bottom) + 1.5rem);
  min-height: 100vh;
}
a { color: var(--rq-text); }
.rq-title, h1, h2, h3, h4, .rq-cond {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
}
.rq-mono { font-family: "Share Tech Mono", ui-monospace, monospace; letter-spacing: .02em; }
.rq-red { color: var(--rq-red) !important; }
.rq-muted { color: var(--rq-muted) !important; }

/* ---------- En-tête ---------- */
.rq-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(7, 7, 7, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rq-line);
}
.rq-header__inner { display: flex; align-items: center; gap: 1rem; height: 58px; }
.rq-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.rq-brand img { height: 34px; width: auto; }
.rq-brand small {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic;
  text-transform: uppercase; font-size: 11px; letter-spacing: .12em; color: var(--rq-muted);
  border-left: 1px solid var(--rq-line); padding-left: .55rem; line-height: 1.1;
}
.rq-brand small b { color: var(--rq-text); font-weight: 800; display: block; font-size: 13px; letter-spacing: .06em; }
.rq-topnav { display: none; margin-left: auto; gap: .25rem; }
.rq-topnav a {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 15px; letter-spacing: .04em; color: var(--rq-muted); text-decoration: none;
  padding: .45rem .75rem; border-bottom: 2px solid transparent;
}
.rq-topnav a:hover { color: var(--rq-text); }
.rq-topnav a.active { color: var(--rq-text); border-bottom-color: var(--rq-red); }
.rq-user { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.rq-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--rq-surface-2);
  border: 1px solid var(--rq-line); display: grid; place-items: center; font-size: 15px; color: var(--rq-text);
}
.rq-icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--rq-radius);
  background: transparent; border: 1px solid var(--rq-line); color: var(--rq-text);
}
.rq-icon-btn:hover { border-color: var(--rq-red); color: var(--rq-red); }

/* ---------- Navigation basse (mobile) ---------- */
.rq-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  height: calc(var(--rq-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 10, 10, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rq-line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.rq-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--rq-muted); text-decoration: none; position: relative;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em;
}
.rq-tabbar a i { font-size: 20px; }
.rq-tabbar a.active { color: var(--rq-text); }
.rq-tabbar a.active::before {
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--rq-red);
  transform: skewX(-20deg);
}
.rq-tabbar a.active i { color: var(--rq-red); }

@media (min-width: 992px) {
  body { padding-bottom: 2rem; }
  .rq-tabbar { display: none; }
  .rq-topnav { display: flex; }
  .rq-user { margin-left: 1rem; }
}

/* ---------- Titres de page ---------- */
.rq-page-head { padding: 1.25rem 0 .75rem; }
.rq-page-head h1 { font-size: 34px; margin: 0; }
.rq-page-head h1 span { color: var(--rq-red); }
.rq-page-head p { color: var(--rq-muted); margin: .35rem 0 0; font-size: 14px; }
.rq-kicker {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: 12px; color: var(--rq-red); margin-bottom: .35rem; display: block;
}
@media (min-width: 992px) { .rq-page-head h1 { font-size: 46px; } }

/* ---------- Cartes ---------- */
.rq-card {
  background: var(--rq-surface); border: 1px solid var(--rq-line); border-radius: var(--rq-radius);
  padding: 1rem; position: relative;
}
.rq-card + .rq-card { margin-top: .75rem; }
.rq-card--accent { border-left: 3px solid var(--rq-red); }
.rq-card__title {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 18px; letter-spacing: .02em; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem;
}
.rq-card__title i { color: var(--rq-red); font-style: normal; }
.rq-card__title .ms-auto { font-style: normal; }

/* Chiffres clés */
.rq-stat { background: var(--rq-surface-2); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); padding: .7rem .8rem; height: 100%; }
.rq-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--rq-muted); font-weight: 600; }
.rq-stat__value { font-family: "Share Tech Mono", monospace; font-size: 24px; line-height: 1.15; margin-top: .15rem; }
.rq-stat__value small { font-size: 13px; color: var(--rq-muted); }
.rq-stat--best .rq-stat__value { color: var(--rq-purple); }
.rq-stat--red .rq-stat__value { color: var(--rq-red); }

/* ---------- Formulaires (filtres) ---------- */
.rq-filters { background: var(--rq-surface); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); padding: .75rem; }
.form-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--rq-muted); font-weight: 600; margin-bottom: .3rem; }
.form-control, .form-select {
  background-color: var(--rq-surface-2); border: 1px solid var(--rq-line); color: var(--rq-text);
  border-radius: var(--rq-radius); min-height: 44px; font-size: 15px;
}
.form-control:focus, .form-select:focus { background-color: var(--rq-surface-2); color: var(--rq-text); border-color: var(--rq-red); box-shadow: 0 0 0 .2rem rgba(227, 6, 19, .2); }
.form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f0f0f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-control::placeholder { color: #5f5f5f; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
.form-check-input { background-color: var(--rq-surface-2); border-color: #3a3a3a; }
.form-check-input:checked { background-color: var(--rq-red); border-color: var(--rq-red); }
.form-check-input.rq-switch-ok:checked { background-color: var(--rq-green); border-color: var(--rq-green); }

/* ---------- Boutons ---------- */
.btn { border-radius: var(--rq-radius); font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; min-height: 44px; }
.btn-rq { background: var(--rq-red); border: 1px solid var(--rq-red); color: #fff; }
.btn-rq:hover, .btn-rq:focus { background: var(--rq-red-dark); border-color: var(--rq-red-dark); color: #fff; }
.btn-rq-ghost { background: transparent; border: 1px solid #3a3a3a; color: var(--rq-text); }
.btn-rq-ghost:hover { border-color: var(--rq-text); color: var(--rq-text); }
.btn-sm { min-height: 34px; font-size: 13px; }

/* ---------- Onglets ---------- */
.rq-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--rq-line); overflow-x: auto; scrollbar-width: none; }
.rq-tabs::-webkit-scrollbar { display: none; }
.rq-tabs button {
  background: none; border: 0; color: var(--rq-muted); padding: .7rem .9rem; white-space: nowrap;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .04em;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.rq-tabs button.active { color: var(--rq-text); border-bottom-color: var(--rq-red); }
.rq-tabs .badge { background: var(--rq-red); font-family: "Barlow", sans-serif; font-style: normal; }
.rq-tabpane { display: none; padding-top: 1rem; }
.rq-tabpane.active { display: block; }

/* ---------- Puces (sélection de manche, etc.) ---------- */
.rq-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.rq-chips::-webkit-scrollbar { display: none; }
.rq-chip {
  flex: none; background: var(--rq-surface-2); border: 1px solid var(--rq-line); color: var(--rq-text);
  border-radius: var(--rq-radius); padding: .45rem .8rem; font-size: 13px; text-align: left; line-height: 1.2;
}
.rq-chip b { display: block; font-family: "Barlow Condensed", sans-serif; font-style: italic; text-transform: uppercase; font-size: 15px; }
.rq-chip span { color: var(--rq-muted); font-size: 12px; }
.rq-chip.active { border-color: var(--rq-red); background: rgba(227, 6, 19, .12); }

/* ---------- Tableaux ---------- */
.rq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rq-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--rq-muted); font-weight: 600;
  padding: .5rem .55rem; border-bottom: 1px solid var(--rq-line); white-space: nowrap; text-align: left;
}
.rq-table td { padding: .55rem; border-bottom: 1px solid #1c1c1c; white-space: nowrap; }
.rq-table tbody tr:hover td { background: #141414; }
.rq-table .num { text-align: right; }
.rq-table .rq-mono { font-size: 15px; }
.rq-lap-best td { background: rgba(168, 85, 247, .10); }
.rq-cell-best { color: var(--rq-purple); font-weight: 600; }
.rq-cell-good { color: var(--rq-green); }
.rq-cell-slow { color: var(--rq-muted); }
.rq-cell-out { color: var(--rq-red); }
.rq-table-wrap { overflow-x: auto; margin: 0 -1rem; padding: 0 1rem; }

/* Barres de tours */
.rq-lapbar { height: 6px; background: #1d1d1d; border-radius: 1px; overflow: hidden; min-width: 70px; }
.rq-lapbar i { display: block; height: 100%; background: var(--rq-red); }

/* ---------- Badges / pastilles ---------- */
.rq-pill {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--rq-line); border-radius: 999px;
  padding: .2rem .6rem; font-size: 12px; font-weight: 600; background: var(--rq-surface-2); white-space: nowrap;
}
.rq-pill--ok { color: var(--rq-green); border-color: rgba(34, 197, 94, .35); }
.rq-pill--warn { color: var(--rq-yellow); border-color: rgba(250, 204, 21, .35); }
.rq-pill--red { color: var(--rq-red); border-color: rgba(227, 6, 19, .45); }
.rq-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.rq-live .rq-dot { animation: rqPulse 1.6s infinite; }
@keyframes rqPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- Carte (Leaflet) ---------- */
.rq-map { height: 52vh; min-height: 300px; border: 1px solid var(--rq-line); border-radius: var(--rq-radius); background: #0d0d0d; }
.rq-map--tall { height: 62vh; }
.leaflet-container { font-family: "Barlow", sans-serif; background: #0d0d0d; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--rq-surface); color: var(--rq-text); border-radius: var(--rq-radius); border: 1px solid var(--rq-line); }
.leaflet-popup-content { margin: .75rem .9rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--rq-muted); }
.leaflet-bar a { background: var(--rq-surface); color: var(--rq-text); border-bottom-color: var(--rq-line); }
.leaflet-bar a:hover { background: var(--rq-surface-2); color: var(--rq-red); }
.rq-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.3); }
.leaflet-control-layers { background: var(--rq-surface) !important; color: var(--rq-text); border: 1px solid var(--rq-line) !important; border-radius: var(--rq-radius) !important; }
.leaflet-control-layers-toggle { filter: invert(1); }
.leaflet-control-attribution { background: rgba(0, 0, 0, .6) !important; color: #777 !important; }
.leaflet-control-attribution a { color: #999 !important; }
.rq-marker {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--rq-red); border: 2px solid #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(227, 6, 19, .5);
}
.rq-marker i { transform: rotate(45deg); color: #fff; font-size: 15px; }
.rq-marker--small { width: 22px; height: 22px; border-width: 2px; box-shadow: none; }
.rq-marker--small i { font-size: 10px; }

/* ---------- Pilote ---------- */
.rq-rider { display: flex; align-items: center; gap: .9rem; }
.rq-rider__helmet {
  width: 64px; height: 64px; flex: none; border-radius: var(--rq-radius); background: linear-gradient(135deg, #1b1b1b, #0c0c0c);
  border: 1px solid var(--rq-line); display: grid; place-items: center; position: relative;
}
.rq-rider__helmet svg { width: 46px; height: 46px; }
.rq-rider__num {
  position: absolute; right: -6px; bottom: -6px; background: var(--rq-red); color: #fff; font-family: "Barlow Condensed", sans-serif;
  font-weight: 900; font-style: italic; font-size: 15px; padding: 0 .35rem; border-radius: var(--rq-radius); line-height: 1.35;
}
.rq-rider__name { font-family: "Barlow Condensed", sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1; }
.rq-rider__meta { color: var(--rq-muted); font-size: 13px; margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.rq-flag { width: 20px; height: 14px; display: inline-flex; border-radius: 1px; overflow: hidden; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.rq-flag i { flex: 1; }

/* Batterie */
.rq-battery { display: inline-flex; align-items: center; gap: .4rem; }
.rq-battery__body { width: 34px; height: 16px; border: 2px solid currentColor; border-radius: 3px; padding: 1px; position: relative; }
.rq-battery__body::after { content: ""; position: absolute; right: -5px; top: 3px; width: 3px; height: 6px; background: currentColor; border-radius: 0 1px 1px 0; }
.rq-battery__body i { display: block; height: 100%; background: currentColor; border-radius: 1px; }

/* Listes info clé / valeur */
.rq-kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: 14px; margin: 0; }
.rq-kv dt { color: var(--rq-muted); font-weight: 500; }
.rq-kv dd { margin: 0; text-align: right; }

/* ---------- Badge 100 h ---------- */
.rq-ring { position: relative; width: 132px; height: 132px; flex: none; }
.rq-ring svg { transform: rotate(-90deg); }
.rq-ring__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.rq-ring__label b { font-family: "Share Tech Mono", monospace; font-size: 28px; display: block; line-height: 1; }
.rq-ring__label span { font-size: 11px; color: var(--rq-muted); text-transform: uppercase; letter-spacing: .1em; }
.rq-badge100 {
  display: inline-flex; align-items: center; gap: .4rem; background: linear-gradient(90deg, var(--rq-red), #ff4b2b);
  color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase;
  padding: .25rem .7rem; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* Durée des manches (étoiles) */
.rq-stars { color: var(--rq-yellow); letter-spacing: 1px; font-size: 12px; }

/* ---------- Suivi mécanique ---------- */
.rq-task { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--rq-line); border-radius: var(--rq-radius); background: var(--rq-surface-2); }
.rq-task + .rq-task { margin-top: .5rem; }
.rq-task__check {
  width: 26px; height: 26px; flex: none; border: 2px solid #3a3a3a; border-radius: var(--rq-radius); background: transparent;
  color: transparent; display: grid; place-items: center;
}
.rq-task.is-done .rq-task__check { background: var(--rq-green); border-color: var(--rq-green); color: #04120a; }
.rq-task.is-done .rq-task__name { text-decoration: line-through; color: var(--rq-muted); }
.rq-task__name { font-weight: 600; }
.rq-task__due { font-size: 13px; color: var(--rq-muted); }
.rq-task.is-late { border-left: 3px solid var(--rq-red); }
.rq-task.is-soon { border-left: 3px solid var(--rq-yellow); }
.rq-progress { height: 6px; background: #1d1d1d; border-radius: 1px; overflow: hidden; margin-top: .4rem; }
.rq-progress i { display: block; height: 100%; background: var(--rq-green); }
.rq-task.is-soon .rq-progress i { background: var(--rq-yellow); }
.rq-task.is-late .rq-progress i { background: var(--rq-red); }

/* ---------- Circuits ---------- */
.rq-circuit { display: flex; gap: .75rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid #1c1c1c; cursor: pointer; }
.rq-circuit:hover .rq-circuit__name { color: var(--rq-red); }
.rq-circuit__logo { width: 42px; height: 42px; flex: none; border-radius: var(--rq-radius); background: var(--rq-surface-2); border: 1px solid var(--rq-line); display: grid; place-items: center; color: var(--rq-red); }
.rq-circuit__name { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 17px; line-height: 1.05; }
.rq-circuit__meta { font-size: 12px; color: var(--rq-muted); }

/* Graphiques */
.rq-chart { position: relative; height: 260px; }
.rq-chart--sm { height: 180px; }
@media (min-width: 992px) { .rq-chart { height: 320px; } }

/* Bandeau rayé « course » */
.rq-stripe { height: 4px; background: repeating-linear-gradient(-45deg, var(--rq-red) 0 10px, transparent 10px 20px); opacity: .8; }

/* Hors écran (aide lecteur d'écran) */
.rq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Écrans à venir dans les menus */
.rq-topnav a.is-soon, .rq-tabbar a.is-soon { opacity: .35; cursor: default; pointer-events: none; }

/* Pied de page */
.rq-footer { border-top: 1px solid var(--rq-line); margin-top: 2.5rem; padding: 1.1rem 0; font-size: 13px; color: var(--rq-muted); }
.rq-footer a { color: var(--rq-muted); text-decoration: none; }
.rq-footer a:hover { color: var(--rq-text); }

/* Connexion */
.rq-guest { padding-bottom: 0; }
.rq-login { max-width: 400px; margin: 2.5rem auto 0; }
.rq-login__logo { display: block; width: 150px; height: auto; margin: 0 auto 1.25rem; }
.rq-login h1 { font-size: 40px; }

/* Live : carte et dernière mise à jour */
.rq-ago { font-size: 12px; color: var(--rq-muted); }
.rq-stale { color: var(--rq-yellow) !important; }
.rq-old { color: var(--rq-red) !important; }

/* Ghost : rond du pilote (numéro de course) qui se déplace, ghost en transparence ; légende et infobulles des vitesses */
.rq-pilot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); border: 2px solid #fff;
  color: #fff; font: 900 italic 14px/1 "Barlow Condensed", sans-serif; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 2px 8px rgba(0, 0, 0, .6); }
.rq-pilot--ghost { color: #111; border-color: #2563eb; border-style: dashed; }
.rq-speed-legend { display: flex; align-items: center; gap: .4rem; background: rgba(0, 0, 0, .75); color: #f0f0f0; padding: .3rem .55rem; border-radius: 2px;
  font: 12px "Share Tech Mono", monospace; }
.rq-speed-legend i { display: block; width: 110px; height: 8px; border-radius: 4px; }
.leaflet-tooltip.rq-speed-tip { background: #000; color: #f0f0f0; border: 1px solid #333; border-radius: 2px; font: 12px "Share Tech Mono", monospace; padding: 3px 6px; }
.leaflet-tooltip.rq-speed-tip::before { border-top-color: #000; }

/* Circuits : groupes de marqueurs, circuit sélectionné dans la liste */
.rq-cluster { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--rq-red); color: #fff;
  font: 800 13px/1 "Barlow Condensed", sans-serif; border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(227, 6, 19, .3); }
.rq-circuit.is-active .rq-circuit__name { color: var(--rq-red); }
.rq-circuit .min-w-0 { min-width: 0; }

/* Circuits : radar pluie (bouton, lecture, curseur des 2 dernières heures, légende) */
.rq-radar { background: rgba(7, 7, 7, .88); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); padding: .4rem; color: var(--rq-text); width: 250px; }
.rq-radar__btn { display: flex; align-items: center; gap: .4rem; width: 100%; background: transparent; border: 1px solid #3a3a3a; color: var(--rq-text); border-radius: var(--rq-radius);
  padding: .35rem .6rem; font: 800 13px/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.rq-radar__btn i { color: #38bdf8; font-size: 15px; }
.rq-radar__btn.is-on { background: #0c4a6e; border-color: #38bdf8; }
.rq-radar__panel { margin-top: .45rem; }
.rq-radar__play { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; background: var(--rq-red); color: #fff; display: grid; place-items: center; }
.rq-radar .form-range { height: 1rem; }
.rq-radar .form-range::-webkit-slider-thumb { background: #38bdf8; }
.rq-radar .form-range::-moz-range-thumb { background: #38bdf8; }
/* heure sur une seule ligne et badge « maintenant » à place réservée : le bloc garde toujours la même taille */
.rq-radar__info { display: flex; align-items: center; gap: .4rem; height: 20px; margin: .3rem 0; }
.rq-radar__time { flex: 1; min-width: 0; display: flex; gap: .35rem; font: 13px "Share Tech Mono", monospace; white-space: nowrap; }
.rq-radar__day { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--rq-muted); }
.rq-radar__day::first-letter { text-transform: uppercase; }
.rq-radar__time b { flex: none; font-weight: 400; color: var(--rq-text); }
.rq-radar__now { flex: none; font: 700 10px/1 "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .35rem;
  border-radius: 2px; background: #0c4a6e; color: #7dd3fc; visibility: hidden; }
.rq-radar__now.is-on { visibility: visible; }
.rq-radar__legend { display: flex; align-items: center; gap: .4rem; font-size: 11px; color: var(--rq-muted); }
.rq-radar__legend i { flex: 1; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #88ddee, #0099cc, #0077aa, #00aa44, #ffee00, #ff9900, #dd2200, #ff00ff); }
.rq-radar-on .rq-cluster, .rq-radar-on .rq-marker { opacity: .55; }
.rq-radar-on .rq-cluster { box-shadow: none; }

/* Circuits : pluie sur le circuit (mm/h maintenant, cumul et barres des 2 dernières heures) */
.rq-rain { background: var(--rq-surface-2); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); padding: .6rem .7rem; margin-bottom: .6rem; --rain: #6b7280; }
.rq-rain__now { font: 15px "Share Tech Mono", monospace; margin-top: .15rem; }
.rq-rain__now b { font-size: 24px; font-weight: 400; color: var(--rain); }
.rq-rain__now span { font: 600 12px "Barlow", sans-serif; color: var(--rain); margin-left: .3rem; }
.rq-rain__bars { display: flex; align-items: flex-end; gap: 3px; height: 42px; margin: .5rem 0 .2rem; }
.rq-rain__bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--rain); min-height: 3px; }
.rq-rain--0 { --rain: #4b5563; }
.rq-rain--1 { --rain: #38bdf8; }
.rq-rain--2 { --rain: #22c55e; }
.rq-rain--3 { --rain: #facc15; }
.rq-rain--4 { --rain: #e30613; }
.rq-rain__bars i.rq-rain--0 { background: #374151; }
.rq-rain__bars i.rq-rain--1 { background: #38bdf8; }
.rq-rain__bars i.rq-rain--2 { background: #22c55e; }
.rq-rain__bars i.rq-rain--3 { background: #facc15; }
.rq-rain__bars i.rq-rain--4 { background: #e30613; }

/* Suivi mécanique : visuel de l'intervention, échéances, fenêtre « intervention réalisée » */
.rq-task__img { width: 46px; height: 46px; flex: none; object-fit: contain; border-radius: var(--rq-radius); background: #fff; padding: 3px; }
.rq-task__img--none { display: grid; place-items: center; background: var(--rq-surface); color: var(--rq-muted); font-size: 18px; }
.rq-task.is-ok .rq-progress i { background: var(--rq-green); }
.rq-task .min-w-0 { min-width: 0; }
.rq-stat--warn .rq-stat__value { color: var(--rq-yellow); }
.rq-modal { background: var(--rq-surface); color: var(--rq-text); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); }
.rq-modal .modal-header, .rq-modal .modal-footer { border-color: var(--rq-line); }
.input-group-text { background: var(--rq-surface-2); border-color: var(--rq-line); color: var(--rq-muted); }

/* Chronos : niveaux des indicateurs statistiques (écart type, tours propres, 5 derniers tours), bilan de la journée */
.rq-lvl-good { --lvl: var(--rq-green); }
.rq-lvl-mid { --lvl: var(--rq-yellow); }
.rq-lvl-bad { --lvl: var(--rq-red); }
b.rq-lvl-good, b.rq-lvl-mid, b.rq-lvl-bad, .rq-stat[class*="rq-lvl-"] .rq-stat__value, .rq-stat[class*="rq-lvl-"] .rq-note { color: var(--lvl); }
.rq-note { font-size: 11px; line-height: 1.25; margin-top: .15rem; }
.rq-daystats { background: var(--rq-surface); border: 1px solid var(--rq-line); border-left: 3px solid var(--rq-red); border-radius: var(--rq-radius); padding: .5rem .7rem; color: var(--rq-muted); }
.rq-daystats b { color: var(--rq-text); font-weight: 600; }
.rq-daystats b[class*="rq-lvl-"] { color: var(--lvl); }
/* Pluie sur le circuit : infobulle des barres (heure, mm/h) au survol ou au toucher */
.rq-rain__bars i { position: relative; cursor: pointer; transition: filter .1s; }
.rq-rain__bars i.is-tip { filter: brightness(1.35); outline: 1px solid rgba(255, 255, 255, .7); z-index: 10; } /* au-dessus des barres voisines, infobulle comprise */
.rq-rain__bars i.is-tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 3;
  white-space: nowrap; background: #000; color: #f0f0f0; border: 1px solid #333; border-radius: 2px; padding: 3px 6px; font: 12px "Share Tech Mono", monospace; pointer-events: none; }
.rq-rain__bars i.is-left::after { left: 0; transform: none; }
.rq-rain__bars i.is-right::after { left: auto; right: 0; transform: none; }
.rq-rain__bars { padding-top: 26px; height: 68px; } /* place pour l'infobulle au-dessus des barres les plus hautes */
.rq-rain__bars { touch-action: pan-y; } /* glissement horizontal sur les barres : défilement des valeurs */

/* ---------- Barre de défilement fine aux couleurs Racer (listes) ---------- */
.rq-scroll { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
@supports not selector(::-webkit-scrollbar) { .rq-scroll { scrollbar-width: thin; scrollbar-color: var(--rq-red) #161616; } } /* Firefox */
.rq-scroll::-webkit-scrollbar { width: 6px; }
.rq-scroll::-webkit-scrollbar-track { background: #161616; border-radius: 3px; }
.rq-scroll::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff2a36, var(--rq-red) 60%, #8c040c); border-radius: 3px; }
.rq-scroll::-webkit-scrollbar-thumb:hover { background: #ff3b46; box-shadow: 0 0 6px rgba(227, 6, 19, .6); }
