/* MANATAI RACE — direction de course : même univers que l'espace coach (océan sombre), pensé pour un grand écran à terre. */
.mr-race { --vd: #22d3e6; --vd-soleil: #ffb627; --vd-txt: #f3fafb; --vd-txt2: #93b9c1; --vd-bord: rgba(255,255,255,.1); --vd-verre: rgba(255,255,255,.055);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; max-width: 1500px; margin: 1em auto; color: var(--vd-txt);
  background: radial-gradient(900px 500px at -10% -20%, rgba(34,211,230,.22), transparent 60%), radial-gradient(700px 500px at 110% 10%, rgba(255,182,39,.10), transparent 60%), linear-gradient(180deg, #05222a, #031519 70%);
  border-radius: 26px; padding: clamp(12px, 2.4vw, 26px); box-shadow: 0 24px 60px rgba(3,21,25,.35); line-height: 1.45; }
.mr-race * { box-sizing: border-box; }
.mr-race h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 900; letter-spacing: -.02em; }
.mr-race h2::before { display: none; }
.mr-race h3 { margin: 0 0 12px; font-size: .78rem; color: var(--vd-txt2); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.mr-race a { color: var(--vd); }
.vd-sur { color: var(--vd); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; display: block; }
.vd-carte { background: var(--vd-verre); border: 1px solid var(--vd-bord); border-radius: 20px; padding: 16px; margin: 0 0 14px; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.vd-connexion { max-width: 420px; margin: 2em auto; }
.mr-race label { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; color: var(--vd-txt2); margin: 0 0 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mr-race input, .mr-race select, .mr-race textarea { padding: 10px 12px; border: 1px solid var(--vd-bord); border-radius: 12px; font: inherit; font-size: .95rem; color: var(--vd-txt); background: rgba(0,0,0,.28); outline: none; text-transform: none; letter-spacing: 0; }
.mr-race textarea { width: 100%; resize: vertical; margin: 8px 0; }
.mr-race input:focus, .mr-race select:focus, .mr-race textarea:focus { border-color: var(--vd); box-shadow: 0 0 0 3px rgba(34,211,230,.2); }
.mr-race select option { background: #062a33; color: #fff; }
.mr-race input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--vd); }
.vd-connexion input { width: 100%; font-size: 1.1rem; letter-spacing: .1em; }
.vd-entree .vd-btn { display: block; width: 100%; text-align: center; text-decoration: none; margin-top: 14px; }
.vd-entree a.vd-btn, .vd-entree a.vd-btn:visited { color: #022127; }
.vd-btn { background: linear-gradient(135deg, #22d3e6, #0fa3b8 60%, #0b7a8a); color: #022127; border: 0; border-radius: 12px; padding: 11px 17px; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(34,211,230,.25); }
.vd-btn:disabled { opacity: .5; cursor: default; }
.vd-btn.vd-sec { background: rgba(255,255,255,.07); color: var(--vd-txt); border: 1px solid var(--vd-bord); box-shadow: none; }
.vd-btn.vd-danger { background: rgba(255,90,95,.1); color: #ff8a80; border: 1px solid rgba(255,90,95,.5); box-shadow: none; }
.vd-btn.vd-question { background: rgba(34,211,230,.14); color: #9fe9f2; border: 1px solid rgba(34,211,230,.6); box-shadow: none; }
.vd-btn.vd-petit { padding: 7px 12px; font-size: .84em; border-radius: 10px; }
.vd-mini { background: rgba(255,255,255,.08); border: 1px solid var(--vd-bord); color: var(--vd-txt); border-radius: 8px; padding: 4px 8px; margin: 0 2px; cursor: pointer; font: inherit; font-size: .85em; }
.vd-mini.vd-rouge { color: #ff8a80; } .vd-mini.vd-vert { background: rgba(46,204,113,.18); border-color: rgba(46,204,113,.6); }
.vd-msg { color: #ff8a80; font-size: .9em; }
.vd-note { color: var(--vd-txt2); font-size: .85em; margin: 4px 0 10px; }
.vd-aide { color: var(--vd-soleil); font-weight: 700; min-height: 1.4em; margin: 6px 0; }
.vd-rouge-txt { color: #ff6b6b; } .vd-vert-txt { color: #7ee2a8; }
.vd-nowrap { white-space: nowrap; }
.vd-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.vd-qui { display: flex; align-items: center; gap: 10px; font-size: .85em; color: var(--vd-txt2); flex-wrap: wrap; }
.vd-ev { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.vd-ev h3 { margin: 0; }
.vd-course { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 8px; }
.vd-course > div { flex: 1 1 260px; }
.vd-course small { display: block; color: var(--vd-txt2); font-size: .82em; }
.vd-statut { padding: 3px 10px; border-radius: 999px; font-size: .75em; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.1); }
.vd-statut.vd-partie { background: #e0262b; color: #fff; } .vd-statut.vd-terminee { background: rgba(46,204,113,.25); color: #7ee2a8; }
.vd-code { font-family: ui-monospace, Menlo, monospace; font-weight: 900; letter-spacing: .14em; background: rgba(255,182,39,.15); color: var(--vd-soleil); padding: 3px 9px; border-radius: 8px; }
.vd-nb { color: var(--vd-txt2); font-size: .85em; }
.vd-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.vd-form input, .vd-form select { width: 100%; }
.vd-outils { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.vd-outil { border: 1px solid var(--vd-bord); background: rgba(255,255,255,.06); color: var(--vd-txt); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.vd-outil.actif { background: var(--vd-soleil); color: #2a1a00; border-color: transparent; }
.vd-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vd-pts { margin-top: 10px; }
.vd-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; font-size: .9em; }
.vd-table th, .vd-table td { text-align: left; padding: 8px 8px; vertical-align: middle; border: 0; }
.vd-table td { background: rgba(255,255,255,.045); }
.vd-table td:first-child { border-radius: 12px 0 0 12px; } .vd-table td:last-child { border-radius: 0 12px 12px 0; }
.vd-table th { font-size: .68em; color: var(--vd-txt2); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; background: none; }
.vd-table small { display: block; color: var(--vd-txt2); font-size: .78em; }
.vd-table select { padding: 4px 6px; font-size: .82em; border-radius: 8px; }
.vd-table select.vd-res { width: 38px; padding: 4px 2px; text-align: center; }
.vd-class td { padding: 7px 6px; }
.vd-clic { cursor: pointer; } .vd-clic:hover td { background: rgba(34,211,230,.12); }
.vd-suivi td { background: rgba(34,211,230,.22) !important; }
.vd-vieux { opacity: .55; }
.vd-rang { font-weight: 900; font-size: 1.15em; color: var(--vd-soleil); text-align: center !important; }
.vd-etat { font-size: .82em; font-weight: 800; color: var(--vd-txt2); }
.vd-etat.vd-abd, .vd-etat.vd-dsq { color: #ff8a80; }
.vd-alerte-ligne td { background: rgba(224,38,43,.22) !important; }

/* Carte */
.vd-carte-zone { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--vd-bord); background: #0b2a3a; margin: 0 0 12px; touch-action: none; }
.vd-carte-zone canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.vd-ctrl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.vd-ctrl button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(3,21,25,.82); color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.vd-carte-zone.vd-plein, .vd-carte-zone:fullscreen { position: fixed; inset: 0; z-index: 100000; height: 100% !important; border-radius: 0; margin: 0; }
.vd-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82em; font-weight: 700; margin-bottom: 14px; }
.vd-legende i, .vd-onglets i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.vd-legende .vd-note { font-weight: 400; margin: 0; }
i.vd-carre { border-radius: 3px !important; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }

/* Direct */
.vd-onglets { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.vd-onglets button, .vd-cats button { border: 1px solid var(--vd-bord); background: rgba(255,255,255,.06); color: var(--vd-txt); border-radius: 999px; padding: 8px 15px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.vd-onglets button small { color: var(--vd-txt2); font-weight: 600; }
.vd-onglets button.actif, .vd-cats button.actif { background: linear-gradient(135deg, #22d3e6, #0fa3b8); border-color: transparent; color: #022127; }
.vd-onglets button.actif small { color: #04343c; }
.vd-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.vd-cats button { padding: 5px 11px; font-size: .78rem; }
.vd-direct { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); gap: 14px; align-items: start; }
.vd-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .vd-direct, .vd-bas { grid-template-columns: 1fr; } }
.vd-depart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.vd-dep-info small { display: block; color: var(--vd-txt2); font-size: .82em; }
.vd-codebig { display: inline-block; margin-top: 6px; font-size: .8em; color: var(--vd-txt2); }
.vd-codebig b { font-family: ui-monospace, Menlo, monospace; font-size: 1.5em; color: var(--vd-soleil); letter-spacing: .18em; margin-left: 4px; }
.vd-chrono { text-align: center; }
.vd-chrono span, .vd-chrono small { display: block; font-size: .72em; color: var(--vd-txt2); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.vd-chrono b { display: block; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.05; }
.vd-dep-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.vd-go { background: linear-gradient(135deg, #22e06b, #12a24a); color: #02200d; border: 0; border-radius: 16px; padding: 18px 30px; font: inherit; font-size: 1.35rem; font-weight: 900; letter-spacing: .04em; cursor: pointer; box-shadow: 0 10px 30px rgba(34,224,107,.35); }
.vd-go:active { transform: scale(.97); }
.vd-fiche { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vd-nom { font-size: 1.35rem !important; color: #fff !important; text-transform: none !important; letter-spacing: -.01em !important; margin: 2px 0 !important; }
.vd-nom span { display: inline-block; background: var(--vd-soleil); color: #2a1a00; border-radius: 8px; padding: 0 8px; margin-right: 8px; }
.vd-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.vd-stats div { background: rgba(255,255,255,.05); border: 1px solid var(--vd-bord); border-radius: 14px; padding: 10px; }
.vd-stats b { display: block; font-size: 1.15em; font-weight: 900; font-variant-numeric: tabular-nums; }
.vd-stats span { font-size: .68em; color: var(--vd-txt2); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.vd-types { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-check { flex-direction: row !important; align-items: center; text-transform: none !important; letter-spacing: 0 !important; font-size: .88em !important; color: var(--vd-txt) !important; }
.vd-envoi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vd-envoi input, .vd-envoi select { flex: 1 1 200px; }
.vd-sos { background: linear-gradient(135deg, #e0262b, #a5161b); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; animation: vd-pulse 1.4s infinite; }
@keyframes vd-pulse { 50% { box-shadow: 0 0 0 6px rgba(224,38,43,.35); } }
@media (max-width: 640px) { .vd-table { font-size: .8em; } .vd-carte { padding: 12px; } .vd-go { width: 100%; } }

/* 1.15 : postes de l'organisation, météo et marée, annuaire, classement final */
.vd-outil-poste i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
i.vd-h { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e00000; color: #e00000; font-style: normal; font-weight: 900; font-size: 10px; margin-right: 6px; vertical-align: -3px; }
.vd-h3 { margin-top: 16px !important; }
.vd-postes input { padding: 6px 8px; font-size: .86rem; width: 100%; min-width: 90px; }
.vd-postes input[type=time] { min-width: 96px; }
.vd-postes td { white-space: normal; }
.vd-coord { display: block; width: 100%; min-width: 15em; margin-top: 4px; padding: 6px 8px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.vd-postes input.vd-coord { min-width: 15em; }
.vd-coord.vd-faux { border-color: #ff5a5f; box-shadow: 0 0 0 2px rgba(255,90,95,.35); }
.vd-coord:disabled { opacity: .6; }
.vd-form-infos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
.vd-form-infos textarea { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.vd-ecran-lien { display: inline-block; margin-top: 8px; text-decoration: none; }
.vd-final { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.vd-final p { flex-basis: 100%; margin: 0; }
.vd-officiel { color: #7ee081; font-weight: 800; }
span.vd-officiel { background: rgba(46,204,113,.16); border: 1px solid rgba(46,204,113,.6); border-radius: 999px; padding: 4px 12px; font-size: .85em; }
.vd-go.vd-go-petit { padding: 10px 18px; font-size: 1rem; border-radius: 12px; }
.vd-meteo { display: flex; flex-direction: column; gap: 10px; }
.vd-vent { display: flex; align-items: center; gap: 14px; }
.vd-vent b { display: block; font-size: 1.6rem; font-weight: 900; color: #fff; }
.vd-vent span { display: block; font-weight: 800; color: #bff3ff; }
.vd-vent small { display: block; color: var(--vd-txt2); font-size: .78em; }
.vd-vent .vd-fl { font-size: 2.2rem; width: 52px; height: 52px; }
i.vd-fl { display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; color: #8fe6ff; width: 1.4em; height: 1.4em; border-radius: 50%; background: rgba(34,211,230,.12); }
.vd-gfs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.vd-gfs div { flex: 0 0 auto; min-width: 42px; text-align: center; background: rgba(255,255,255,.045); border-radius: 10px; padding: 5px 2px; }
.vd-gfs small { display: block; color: var(--vd-txt2); font-size: .7em; }
.vd-gfs b { display: block; font-size: .95em; }
.vd-mar { display: inline-block; margin: 0 14px 4px 0; }
.vd-mar b { color: var(--vd-txt2); font-size: .78em; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
#vd-maree-cv { width: 100%; height: 70px; display: block; }
.vd-saisie { border-top: 1px solid var(--vd-bord); padding-top: 8px; }
.vd-saisie summary { cursor: pointer; font-weight: 800; color: var(--vd); font-size: .9em; }
.vd-saisie input { width: 110px; }
.vd-info { background: rgba(255,182,39,.08); border-left: 3px solid var(--vd-soleil); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.vd-info b { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--vd-soleil); }
.vd-info p { margin: 4px 0 0; }
.vd-annuaire a { color: #9fe9f2; font-weight: 800; text-decoration: none; }
.vd-alerte-moi { border-color: rgba(255,182,39,.6); background: rgba(255,182,39,.1); }

/* Écran public (grand écran à terre) */
body.vd-ecran-page { margin: 0; background: #031519; }
.mr-race.vd-public { box-sizing: border-box; max-width: none; height: 100vh; margin: 0; border-radius: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.vd-pub-tete { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.vd-pub-tete h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.vd-pub-tete .vd-onglets { margin: 8px 0 0; }
.vd-pub-chrono { text-align: center; }
.vd-pub-chrono span { display: block; color: var(--vd-txt2); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8em; }
.vd-pub-chrono b { display: block; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; }
.vd-pub-chrono small { color: var(--vd-txt2); }
.vd-pub-vent { display: flex; gap: 20px; }
.vd-pub-vent small { display: block; color: var(--vd-txt2); font-size: .75em; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.vd-pub-vent b { font-size: 1.25rem; }
.vd-pub { flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); grid-template-rows: minmax(0, 1fr); gap: 14px; min-height: 0; }
.vd-pub .vd-carte-zone { height: 100%; min-height: 0; margin: 0; }
.vd-pub-class { display: flex; flex-direction: column; min-height: 0; }
.vd-pub-class > div:first-child { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.vd-pub-nom { border-left: 5px solid; padding-left: 10px; font-weight: 900; font-size: 1.15rem; }
.vd-pub-defil { overflow: hidden; flex: 1; min-height: 0; }
.vd-pub-table { font-size: 1.12em; }
.vd-ticker { display: flex; align-items: center; overflow: hidden; white-space: nowrap; background: rgba(0,0,0,.35); border: 1px solid var(--vd-bord); border-radius: 14px; padding: 10px 0; font-size: 1.15rem; }
.vd-tick-l { flex: none; padding: 0 14px; border-right: 1px solid var(--vd-bord); color: var(--vd-txt2); font-size: .62em; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1.3; }
#pb-tick { flex: 1; overflow: hidden; }
.vd-tick-in { display: inline-block; animation: vd-defile linear infinite; }
.vd-tick-in span { margin: 0 28px; }
.vd-tick-in em { font-style: normal; font-weight: 900; color: var(--vd-soleil); }
.vd-tick-vide { padding: 0 16px; color: var(--vd-txt2); }
@keyframes vd-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px) { .mr-race.vd-public { height: auto; min-height: 100vh; overflow: visible; } .vd-pub { grid-template-columns: 1fr; grid-template-rows: auto; } .vd-pub .vd-carte-zone { height: 55vh; } .vd-pub-defil { flex: none; } }
@media (prefers-reduced-motion: reduce) { .vd-tick-in { animation-duration: 120s !important; } }

/* 1.16 : carte dévoilée, documents, résultats par catégorie */
.vd-devoile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: .85em; color: var(--vd-txt2); font-weight: 700; }
.vd-bascule { border: 1px solid rgba(255,90,95,.5); background: rgba(255,90,95,.1); color: #ffb3ae; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; cursor: pointer; }
.vd-bascule.on { border-color: rgba(46,204,113,.6); background: rgba(46,204,113,.15); color: #9ff0b8; }
.vd-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vd-liens a { text-decoration: none; }
.vd-podiums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.vd-podium { background: rgba(255,255,255,.045); border: 1px solid var(--vd-bord); border-radius: 14px; padding: 10px 12px; }
.vd-podium > b { display: block; color: var(--vd-soleil); font-size: .8em; text-transform: uppercase; letter-spacing: .08em; }
.vd-podium > small { color: var(--vd-txt2); font-size: .75em; }
.vd-podium p { margin: 5px 0; display: flex; justify-content: space-between; gap: 6px; font-weight: 700; font-size: .9em; }
.vd-podium p span { color: var(--vd-txt2); font-variant-numeric: tabular-nums; font-weight: 600; }
.vd-podium .vd-mini { margin: 6px 0 0; }

.vd-pub-cache { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(3,21,25,.94); font-size: 1.4rem; font-weight: 800; color: var(--vd-txt2); }
.vd-pub-cache[hidden] { display: none; }
.vd-updown { display: inline-flex; flex-direction: column; gap: 2px; vertical-align: middle; margin-right: 4px; }
.vd-updown .vd-mini { margin: 0; padding: 0 7px; line-height: 1.3; }
