/* Paddock Race : jetons du monde (neutres chauds, rouge brique de course) et mise en page de l'écran. Le reste vient du socle. */
:root {
  --papier: #f4f2ef; --carte: #ffffff; --creux: #ebe8e4;
  --marque: #9a2b1f; --marque-fort: #7c2118;
  --mono: var(--sans);
  --c-piste: var(--marque); --c-air: var(--encre-3); --c-eau: #2b6ca3;
  --colonne: 1120px;
}
[data-theme="dark"] {
  --papier: #151312; --carte: #1e1b19; --creux: #100e0d;
  --marque: #f0a393; --marque-fort: #f5b9ac;
  --c-eau: #8db6e3;
}
[hidden] { display: none !important; }
.page { max-width: var(--colonne); margin: 0 auto; padding: 24px 24px 64px; }
.barre { padding-inline: max(24px, calc((100% - var(--colonne)) / 2 + 24px)); flex-wrap: wrap; padding-block: 8px; }
.barre .nom { font-weight: 600; margin-right: 8px; }
.barre select { width: 240px; }
.barre input[type="date"] { width: 148px; }
.soleil, [data-theme="dark"] .lune { display: none; }
[data-theme="dark"] .soleil { display: block; }

.porte { display: grid; gap: 16px; max-width: 360px; margin: 12vh auto 0; }
.porte p { margin: 0; text-wrap: pretty; }
.porte .champ input { height: 40px; font-size: 16px; }
.porte .btn { height: 40px; }
.rang { display: flex; gap: 8px; align-items: center; }

.entete { margin: 8px 0 24px; display: grid; gap: 4px; }
.entete p { margin: 0; text-wrap: pretty; }
.heure { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.heure label { font-size: 12px; font-weight: 500; color: var(--encre-2); white-space: nowrap; }
.heure input { flex: 1; min-width: 0; height: 32px; accent-color: var(--accent); cursor: pointer; }
.heure output { font-size: 20px; font-weight: 500; min-width: 64px; text-align: right; }
.chiffres { margin-bottom: 32px; gap: 16px 32px; }
.chiffre small { min-height: 16px; line-height: 16px; white-space: nowrap; }

.bloc { margin-bottom: 32px; }
.tete { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.zone { position: relative; min-height: 320px; }
.zone.petite { min-height: 132px; margin-bottom: 20px; }
.zone svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.zone .attente { position: absolute; inset: 0; display: grid; align-content: center; gap: 16px; padding: 24px; }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 820px) { .deux { grid-template-columns: minmax(0, 1fr); gap: 0; } .barre select { width: 100%; } }

/* Graphiques : texte en 12, filets à l'encre, deux séries au plus par graphique, libellés posés au bout des courbes. */
svg text { font-size: 12px; fill: var(--encre-3); font-variant-numeric: tabular-nums; }
svg .grille { stroke: var(--filet); stroke-width: 1; }
svg .l-piste { fill: none; stroke: var(--c-piste); stroke-width: 2; stroke-linejoin: round; }
svg .l-air, svg .l-2 { fill: none; stroke: var(--c-air); stroke-width: 1.5; stroke-linejoin: round; }
svg .l-1 { fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; }
svg .bande { fill: var(--c-piste); opacity: .14; }
svg .eau { fill: var(--c-eau); opacity: .16; }
svg .pluie { fill: var(--c-eau); }
svg .repere { stroke: var(--encre); stroke-width: 1; }
svg .pt-piste { fill: var(--c-piste); stroke: var(--carte); stroke-width: 2; }
svg .pt-air { fill: var(--c-air); stroke: var(--carte); stroke-width: 2; }
svg .pt-mesure { fill: var(--papier); stroke: var(--encre); stroke-width: 2; }
svg .t-piste { fill: var(--c-piste); font-weight: 500; }
svg .t-fort { fill: var(--encre); font-weight: 500; }
svg .t-eau { fill: var(--c-eau); }
svg .piste-plan { fill: none; stroke: var(--encre-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
svg .stand-plan { fill: none; stroke: var(--encre-3); stroke-width: 1.5; opacity: .6; stroke-linecap: round; }
svg .droite-plan { fill: none; stroke: var(--c-piste); stroke-width: 5; stroke-linecap: round; }
svg .fleche { fill: var(--c-eau); }
svg .fleche-trait { stroke: var(--c-eau); stroke-width: 3; stroke-linecap: round; }

.recalage { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.recalage .champ input { width: 120px; }
.recalage .champ .erreur { position: absolute; margin-top: 56px; }
.recalage .champ { position: relative; }
.recalage > p { margin: 0 0 8px 8px; }
#officiels { margin-top: 24px; display: grid; gap: 8px; }
#officiels .ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.methode p { margin: 8px 0 0; max-width: 92ch; text-wrap: pretty; }
