/* =====================================================================
   Dashboard organisateur — V2
   Feuille de style unique pour toutes les pages owner (base.html).
   À placer dans static/css/owner_v2.css et charger APRÈS bootstrap.
   Toutes les classes sont préfixées "ov2-" pour cohabiter avec Bootstrap
   pendant la migration écran par écran.
   Les valeurs viennent des maquettes (docs/dashboard-v2/maquettes/*.dc.html).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* Marque (identique au site public v2, portal_v2.css) */
  --ov2-ink: #0a0a0c;          /* nav, boutons primaires, texte fort */
  --ov2-accent: #2fd66b;       /* vert marque : remplissage SOUS texte sombre uniquement */
  --ov2-accent-text: #127a3a;  /* vert lisible sur fond clair (liens) */

  /* Surfaces */
  --ov2-bg: #f4f3ef;           /* fond de page */
  --ov2-surface: #ffffff;      /* cartes */
  --ov2-surface-2: #f8f7f4;    /* en-têtes de tableau, zones secondaires */
  --ov2-surface-3: #f1f0eb;    /* pills neutres, fond de segmented */
  --ov2-border: #e4e2dc;       /* bord des cartes */
  --ov2-border-soft: #ecebe6;  /* séparateurs internes */
  --ov2-border-input: #d6d3cb; /* bord des champs */

  /* Texte */
  --ov2-text: #16161a;
  --ov2-text-2: #2a2a30;       /* labels */
  --ov2-text-muted: #45454d;   /* texte secondaire (>= 4.5:1) */
  --ov2-text-faint: #5d5d66;   /* descriptions (>= 4.5:1 sur blanc) */
  --ov2-nav-text: #b9b8b2;     /* onglets inactifs sur nav sombre */

  /* États */
  --ov2-ok: #1f9d55;      --ov2-ok-bg: #e6f6ec;    --ov2-ok-text: #1d5e36;
  --ov2-warn: #d9730d;    --ov2-warn-bg: #fff1de;  --ov2-warn-text: #8a4300;  --ov2-warn-border: #f0c98e;
  --ov2-danger: #b42318;  --ov2-danger-bg: #fdecea; --ov2-danger-text: #9f1d14;
  --ov2-info-bg: #eef4ff; --ov2-info-text: #1d3b72; --ov2-info-border: #c9d8f5;
  --ov2-dirty: #f5a524;   /* modifié non enregistré */
  --ov2-stripe: #635bff;  /* bouton Stripe */

  --ov2-radius: 12px;
  --ov2-radius-sm: 8px;
  --ov2-font: 'Archivo', system-ui, sans-serif;
  --ov2-display: 'Anton', sans-serif;
}

/* ---------- Base ---------- */
body.ov2-body {
  margin: 0;
  background: var(--ov2-bg);
  color: var(--ov2-text);
  font-family: var(--ov2-font);
  font-size: 15px;
  line-height: 1.45;
}
.ov2-body a { color: var(--ov2-accent-text); }
.ov2-body a:hover { color: #0c5a2a; }
.ov2-body :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--ov2-accent);
  outline-offset: 2px;
}
.ov2-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav bar (2 rangées) ---------- */
.ov2-header { background: var(--ov2-ink); color: #f5f4f0; position: sticky; top: 0; z-index: 1030; }
.ov2-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 32px; }
.ov2-brand { font-family: var(--ov2-display); font-size: 20px; letter-spacing: .5px; text-transform: uppercase; color: #f5f4f0; text-decoration: none; }
.ov2-brand span { color: var(--ov2-accent); }
.ov2-brand { display: inline-flex; align-items: center; }
.ov2-brand img { display: block; height: 40px; width: auto; }
.ov2-role-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ov2-nav-text); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px 8px; }
.ov2-vsep { width: 1px; height: 24px; background: rgba(255,255,255,.14); }
.ov2-compet-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--ov2-radius-sm); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #f5f4f0; font: inherit; font-weight: 600; }
.ov2-status-pill { font-size: 12px; font-weight: 600; color: var(--ov2-ink); background: var(--ov2-accent); border-radius: 999px; padding: 2px 8px; }
.ov2-status-pill--closed { background: #4a4a52; color: #f5f4f0; }
.ov2-spacer { flex: 1 1 0; }
.ov2-account { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ov2-account a, .ov2-account button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: #e6e5df; text-decoration: none; font-weight: 500; background: none; border: none; font: inherit; cursor: pointer; }
.ov2-account a:hover { color: #fff; }
.ov2-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2a2a30; color: #f5f4f0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

.ov2-tabs { display: flex; align-items: stretch; gap: 2px; padding: 0 24px; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.08); scrollbar-width: none; }
.ov2-tab { display: flex; align-items: center; padding: 14px 12px 12px; color: var(--ov2-nav-text); font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; cursor: pointer; }
.ov2-body .ov2-tab { color: var(--ov2-nav-text); }
.ov2-body .ov2-tab:hover { color: #fff; }
.ov2-body .ov2-tab[aria-current="page"] { color: #fff; font-weight: 600; border-bottom-color: var(--ov2-accent); }
.ov2-tab-sep { flex: none; width: 1px; height: 20px; align-self: center; margin: 0 10px; background: rgba(255,255,255,.14); }

/* ---------- Page ---------- */
.ov2-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.ov2-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ov2-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ov2-text-faint); }
.ov2-title { margin: 0; font-family: var(--ov2-display); font-weight: 400; font-size: 40px; line-height: 1.05; text-transform: uppercase; color: var(--ov2-ink); }
.ov2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--ov2-text-muted); font-size: 14px; }
.ov2-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ov2-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ov2-text-2) !important; text-decoration: none; font-weight: 600; align-self: flex-start; }

/* Colonnes : sous-menu + contenu / contenu + aside. Empile sur mobile. */
.ov2-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.ov2-split > .ov2-col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ov2-split > .ov2-col-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }

/* Sous-menu (onglet Compétition) */
.ov2-sidenav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 20px; }
.ov2-sidenav-group { display: flex; flex-direction: column; gap: 2px; }
.ov2-sidenav-title { padding: 0 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ov2-text-faint); }
.ov2-sidenav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: none; border-radius: var(--ov2-radius-sm); text-align: left; font: inherit; color: var(--ov2-text-2); font-weight: 500; background: transparent; cursor: pointer; text-decoration: none; }
.ov2-sidenav-item[aria-current="page"] { background: var(--ov2-surface); color: var(--ov2-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(10,10,12,.08), 0 0 0 1px var(--ov2-border); }
.ov2-sidenav-item .ov2-grow { flex: 1 1 auto; }

/* ---------- Cartes ---------- */
.ov2-card { background: var(--ov2-surface); border: 1px solid var(--ov2-border); border-radius: var(--ov2-radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ov2-card--flush { padding: 0; gap: 0; }
.ov2-card--list { padding: 8px 24px; gap: 0; }
.ov2-card--emphasis { border: 2px solid var(--ov2-ink); }
.ov2-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ov2-card h2, .ov2-card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.ov2-desc { margin: 4px 0 0; font-size: 14px; color: var(--ov2-text-faint); }
.ov2-divider { height: 1px; background: var(--ov2-border-soft); border: 0; margin: 0; }
.ov2-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--ov2-border-soft); background: #fbfaf8; border-radius: 0 0 var(--ov2-radius) var(--ov2-radius); }

/* Ligne réglage : libellé + description à gauche, contrôle à droite */
.ov2-setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--ov2-border-soft); }
.ov2-setting:last-child { border-bottom: 0; }
.ov2-setting > :first-child { flex: 1 1 260px; min-width: 0; }
.ov2-setting > :not(:first-child) { flex: none; }
.ov2-setting-label { font-weight: 600; }
.ov2-setting-desc { font-size: 14px; color: var(--ov2-text-faint); }

/* ---------- Formulaires ---------- */
.ov2-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ov2-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ov2-label { font-size: 13px; font-weight: 600; color: var(--ov2-text-2); }
.ov2-input, .ov2-select, .ov2-textarea {
  height: 44px; width: 100%; box-sizing: border-box;
  border: 1px solid var(--ov2-border-input); border-radius: var(--ov2-radius-sm);
  padding: 0 12px; font: inherit; color: var(--ov2-text); background: #fff;
}
.ov2-textarea { height: auto; min-height: 120px; padding: 12px; resize: vertical; }
.ov2-input--sm { height: 40px; }
.ov2-input--num { text-align: right; font-variant-numeric: tabular-nums; }
.ov2-input:disabled { background: var(--ov2-surface-3); color: #9a978e; cursor: not-allowed; }

/* ---------- Boutons ---------- */
.ov2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--ov2-radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ov2-btn--primary { background: var(--ov2-ink); color: #fff !important; }
.ov2-btn--accent { background: var(--ov2-accent); color: var(--ov2-ink) !important; font-weight: 700; }
.ov2-btn--secondary { background: #fff; color: var(--ov2-text) !important; border-color: var(--ov2-border-input); }
.ov2-btn--ghost-dark { background: transparent; color: #f5f4f0 !important; border-color: rgba(255,255,255,.2); }
.ov2-btn--link { background: none; border: none; padding: 0 8px; color: var(--ov2-text); text-decoration: underline; }
.ov2-btn--danger-text { background: none; border: none; padding: 0 4px; color: var(--ov2-danger); }
.ov2-btn--stripe { background: var(--ov2-stripe); color: #fff !important; }
.ov2-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ov2-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: none; background: none; border-radius: var(--ov2-radius-sm); color: var(--ov2-text-muted); cursor: pointer; }
.ov2-icon-btn:hover { background: var(--ov2-surface-3); }
.ov2-icon-btn--danger { color: var(--ov2-danger); }

/* ---------- Interrupteur : <button class="ov2-switch" aria-pressed="true|false"> ---------- */
.ov2-switch { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: #b9b6ad; transition: background .15s; }
.ov2-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.ov2-switch[aria-pressed="true"] { background: var(--ov2-ok); }
.ov2-switch[aria-pressed="true"]::after { left: 23px; }
.ov2-switch[data-partial="true"] { background: #8fd3a9; }
.ov2-switch[data-partial="true"]::after { left: 13px; }
.ov2-switch--danger[aria-pressed="true"] { background: var(--ov2-danger); }
.ov2-switch--sm { width: 44px; height: 26px; }
.ov2-switch--sm::after { width: 20px; height: 20px; }
.ov2-switch--sm[aria-pressed="true"]::after { left: 21px; }

/* ---------- Segmented control : role="group" + boutons aria-pressed ---------- */
.ov2-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--ov2-surface-3); border-radius: 10px; max-width: 100%; overflow-x: auto; }
.ov2-seg--on-bg { background: #e9e7e0; }
.ov2-seg > button { min-height: 36px; padding: 0 14px; border: none; border-radius: 7px; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; background: transparent; color: var(--ov2-text-muted); font-weight: 500; }
.ov2-seg > button[aria-pressed="true"], .ov2-seg > button[aria-selected="true"] { background: #fff; color: var(--ov2-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(10,10,12,.12); }

/* Cartes-radio (calcul des points, type de remboursement…) */
.ov2-radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ov2-radio-card { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 16px; margin: 1px; border-radius: 10px; border: 1px solid var(--ov2-border-input); background: #fff; font: inherit; cursor: pointer; }
.ov2-radio-card[aria-checked="true"] { border: 2px solid var(--ov2-ink); margin: 0; background: var(--ov2-surface-2); }
.ov2-radio-dot { flex: none; margin-top: 2px; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 2px solid #9a978e; display: inline-flex; align-items: center; justify-content: center; }
[aria-checked="true"] > .ov2-radio-dot { border-color: var(--ov2-ink); }
[aria-checked="true"] > .ov2-radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ov2-ink); }

/* ---------- Pills / badges ---------- */
.ov2-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: var(--ov2-surface-3); color: var(--ov2-text-muted); }
.ov2-pill--ok { background: var(--ov2-ok-bg); color: var(--ov2-ok-text); }
.ov2-pill--warn { background: var(--ov2-warn-bg); color: var(--ov2-warn-text); }
.ov2-pill--danger { background: var(--ov2-danger-bg); color: var(--ov2-danger-text); }
.ov2-pill--info { background: var(--ov2-info-bg); color: var(--ov2-info-text); }
.ov2-pill--accent { background: var(--ov2-accent); color: var(--ov2-ink); }
.ov2-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }

/* Point d'état (saisi / manquant / modifié / éliminé) */
.ov2-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #c9c6be; }
.ov2-dot--ok { background: var(--ov2-ok); }
.ov2-dot--warn { background: var(--ov2-warn); }
.ov2-dot--dirty { background: var(--ov2-dirty); }
.ov2-dot--danger { background: var(--ov2-danger); }
.ov2-dot--optional { background: transparent; border: 2px solid #b5b3ab; width: 4px; height: 4px; }

/* ---------- Alertes ---------- */
.ov2-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; border-radius: var(--ov2-radius); padding: 14px 18px; font-size: 14px; }
.ov2-alert--warn { background: #fff8ee; border: 1px solid var(--ov2-warn-border); color: #6b3400; }
.ov2-alert--info { background: var(--ov2-info-bg); border: 1px solid var(--ov2-info-border); color: var(--ov2-info-text); }
.ov2-banner-dark { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--ov2-radius); background: var(--ov2-ink); color: #f5f4f0; }
.ov2-banner-dark p { margin: 0; font-size: 14px; color: #c9c8c2; }

/* ---------- Indicateurs ---------- */
.ov2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ov2-stat { background: #fff; border: 1px solid var(--ov2-border); border-radius: var(--ov2-radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; }
button.ov2-stat { cursor: pointer; margin: 1px; }
button.ov2-stat[aria-pressed="true"] { border: 2px solid var(--ov2-ink); margin: 0; }
.ov2-stat-label { font-size: 13px; color: var(--ov2-text-faint); }
.ov2-stat-value { font-family: var(--ov2-display); font-size: 32px; line-height: 1.1; }
.ov2-progress { height: 8px; border-radius: 999px; background: #ecebe6; overflow: hidden; }
.ov2-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--ov2-ok); }

/* Checklist de mise en route */
.ov2-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.ov2-step { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; background: #f3faf5; border: 1px solid #cfe9d8; color: #1d4d2f !important; font-weight: 500; }
.ov2-step--todo { background: var(--ov2-warn-bg); border-color: var(--ov2-warn-border); color: #6b3400 !important; font-weight: 700; }

/* ---------- Tableaux ---------- */
.ov2-table-wrap { overflow-x: auto; }
.ov2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ov2-table thead tr { background: var(--ov2-surface-2); text-align: left; }
.ov2-table th { padding: 10px 16px; font-weight: 600; color: var(--ov2-text-muted); white-space: nowrap; }
.ov2-table td { padding: 10px 16px; border-top: 1px solid var(--ov2-border-soft); vertical-align: middle; }
.ov2-table .ov2-num { text-align: right; font-variant-numeric: tabular-nums; }
.ov2-table tr.is-missing td { background: #fbfaf8; }
.ov2-table tr.is-dirty td { background: #fffbea; }
.ov2-table tr.is-cut td { background: #f6f5f2; color: #77767e; }
.ov2-table tr.is-tie td { background: #f5f8ff; }
.ov2-table tr.ov2-group-row td { padding: 8px 16px; background: var(--ov2-surface-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ov2-text-muted); }
/* Ligne CUT du classement général */
.ov2-table tr.ov2-cut-line td { padding: 6px 16px; background: var(--ov2-danger-bg); }
.ov2-cut-line-inner { display: flex; align-items: center; gap: 12px; color: var(--ov2-danger-text); font-size: 13px; font-weight: 600; }
.ov2-cut-line-inner strong { font-family: var(--ov2-display); font-weight: 400; font-size: 15px; letter-spacing: .06em; }
.ov2-cut-line-inner::before { content: none; }
.ov2-cut-line-rule { flex: 1 1 auto; border-top: 2px dashed #e3a39c; }
.ov2-rank { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-weight: 700; background: var(--ov2-surface-3); }
.ov2-rank--top { background: var(--ov2-ink); color: var(--ov2-accent); font-family: var(--ov2-display); font-weight: 400; font-size: 16px; }

/* ---------- Barre d'enregistrement unique (collante en bas) ---------- */
.ov2-savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: var(--ov2-radius); background: var(--ov2-ink); color: #f5f4f0; box-shadow: 0 8px 24px rgba(10,10,12,.25); }
.ov2-savebar[hidden] { display: none; }
.ov2-savebar-msg { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .ov2-topbar { padding: 10px 16px; }
  .ov2-tabs { padding: 0 8px; }
  .ov2-main { padding: 20px 16px 40px; }
  .ov2-title { font-size: 32px; }
  .ov2-vsep { display: none; }
}

/* ---------- Menu du compte (nav) ---------- */
.ov2-menu-wrap { position: relative; }
.ov2-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 180px; padding: 6px; background: #fff; border-radius: var(--ov2-radius-sm); box-shadow: 0 8px 24px rgba(10,10,12,.25); z-index: 1040; }
.ov2-menu.is-open { display: block; }
.ov2-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ov2-text) !important; text-decoration: none; border-radius: 6px; }
.ov2-menu a:hover { background: var(--ov2-surface-3); }

/* ---------- Écran Compétition ---------- */
.ov2-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ov2-tile { border: 1px solid var(--ov2-border); border-radius: var(--ov2-radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--ov2-surface-2); }
.ov2-tile-label { font-size: 13px; color: var(--ov2-text-faint); }
.ov2-tile-value { font-family: var(--ov2-display); font-size: 28px; line-height: 1.1; }
.ov2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov2-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--ov2-surface-3); font-weight: 600; }
.ov2-chip button { width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ov2-text-muted); }
.ov2-chip button:hover { background: #e4e2dc; }
.ov2-input--error { border-color: var(--ov2-danger); }
.ov2-error { color: var(--ov2-danger-text); font-size: 13px; }
.ov2-section[hidden] { display: none; }
.ov2-section { display: flex; flex-direction: column; gap: 20px; }
.ov2-section-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.ov2-table td.ov2-center, .ov2-table th.ov2-center { text-align: center; }

/* L'attribut hidden l'emporte sur les display des composants */
.ov2-body [hidden] { display: none !important; }

/* ---------- Équipes / Détail équipe ---------- */
.ov2-subtabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--ov2-border-soft); overflow-x: auto; }
.ov2-subtab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: none; background: none; font: inherit; cursor: pointer; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--ov2-text-muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.ov2-body a.ov2-subtab { color: var(--ov2-text-muted); }
.ov2-subtab[aria-selected="true"], .ov2-body a.ov2-subtab[aria-current="page"] { border-bottom-color: var(--ov2-ink); color: var(--ov2-ink); font-weight: 700; }
.ov2-initials { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ov2-surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ov2-dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; margin: 0; }
.ov2-dl dt { color: var(--ov2-text-muted); }
.ov2-dl dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov2-score-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ov2-score-tile { border: 1px solid var(--ov2-border-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: #fbfaf8; }
.ov2-stat-value--warn { color: var(--ov2-warn-text); }
.ov2-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: none; background: none; font: inherit; text-align: left; color: var(--ov2-text); border-radius: 6px; cursor: pointer; }
.ov2-menu button:hover { background: var(--ov2-surface-3); }
.ov2-subpanel { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--ov2-surface-2); border-radius: 10px; }

.ov2-athletes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ov2-athlete { gap: 14px; }

.ov2-athlete { padding: 20px; box-shadow: 0 1px 2px rgba(10,10,12,.04); }
.ov2-athlete:has([data-ath-form]:not([hidden])) { border: 2px solid var(--ov2-ink); padding: 19px; }
.ov2-collapse { border-top: 1px solid var(--ov2-border-soft); padding-top: 10px; }
.ov2-collapse summary { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ov2-text-faint); }
.ov2-collapse summary::-webkit-details-marker { display: none; }
.ov2-collapse summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.ov2-collapse[open] summary::after { transform: rotate(-135deg); }
.ov2-contact { list-style: none; margin: 8px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ov2-contact li { display: flex; align-items: center; gap: 10px; min-width: 0; word-break: break-word; }
.ov2-contact svg { flex: none; color: var(--ov2-text-faint); }

.ov2-input--dirty { border-color: var(--ov2-dirty) !important; box-shadow: 0 0 0 3px rgba(245,165,36,.25); background: #fffbea; }
.ov2-card--dirty { border-color: var(--ov2-dirty); box-shadow: 0 0 0 1px var(--ov2-dirty); }

.ov2-label--tagged { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; white-space: nowrap; }
.ov2-label--tagged [data-dirty-tag] { margin-left: auto; width: 10px; height: 10px; }
.ov2-team-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.ov2-team-dirty-msg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ov2-warn-text); }

.ov2-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ov2spin .7s linear infinite; }
@keyframes ov2spin { to { transform: rotate(360deg); } }
.ov2-btn--saved { background: var(--ov2-ok) !important; }
.ov2-check { font-weight: 700; }

/* Apparition animée : la place reste réservée, rien ne se décale */
.ov2-reveal { opacity: 0; transform: translateY(6px); visibility: hidden; pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
.ov2-reveal.is-in { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
#ov2-team-save.is-in:not(.ov2-btn--saved):not(:disabled) { animation: ov2attn 1s ease-out 1; }
@keyframes ov2attn { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.65); } 100% { box-shadow: 0 0 0 12px rgba(245,165,36,0); } }
#ov2-team-info [data-team-field] { transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ov2-label--tagged [data-dirty-tag]:not([hidden]) { animation: ov2pop .25s ease-out; }
@keyframes ov2pop { 0% { transform: scale(0); } 70% { transform: scale(1.4); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .ov2-reveal, #ov2-team-info [data-team-field] { transition: none; }
  #ov2-team-save.is-in, .ov2-label--tagged [data-dirty-tag] { animation: none !important; }
}

/* ---------- Workouts ---------- */
.ov2-wod-card { display: flex; align-items: center; gap: 4px; padding-right: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ov2-border); margin: 1px; }
.ov2-wod-card.is-current { border: 2px solid var(--ov2-ink); margin: 0; }
.ov2-wod-card-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 16px; background: none; border: none; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.ov2-wod-num { flex: none; min-width: 34px; font-family: var(--ov2-display); font-size: 28px; line-height: 1; text-align: center; }
.ov2-wod-form { display: flex; flex-direction: column; gap: 20px; }

/* Ligne 1 : N° et coefficient ; ligne 2 : titre pleine largeur */
.ov2-wod-general { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ov2-wod-general .ov2-label { white-space: nowrap; }
.ov2-wod-general-name { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .ov2-wod-general { grid-template-columns: 1fr 1fr; }
}

/* ---------- Planification ---------- */
.ov2-alert--danger { background: var(--ov2-danger-bg); border: 1px solid #f0b8b2; color: var(--ov2-danger-text); }
.ov2-alert--ok { background: var(--ov2-ok-bg); border: 1px solid #bfe3cc; color: var(--ov2-ok-text); }
.ov2-menu--up { top: auto; bottom: 100%; left: 0; right: auto; margin-bottom: 6px; }

.ov2-timeline { min-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.ov2-tl-hours { display: flex; margin-left: 120px; font-size: 12px; color: var(--ov2-text-faint); }
.ov2-tl-hours span { flex: 1 1 0; border-left: 1px solid var(--ov2-border); padding-left: 4px; }
.ov2-tl-row { display: flex; align-items: center; height: 40px; }
.ov2-tl-label { width: 120px; flex: none; font-size: 14px; font-weight: 600; }
.ov2-tl-track { position: relative; flex: 1 1 auto; height: 32px; background: var(--ov2-surface-2); border-radius: 6px; }
.ov2-tl-bar { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; background: var(--ov2-ink); color: #fff; }
.ov2-tl-bar--stale { background: var(--ov2-dirty); color: var(--ov2-ink); }
.ov2-tl-bar--sim { background: #8fb0ea; color: var(--ov2-ink); }
.ov2-tl-bar--imported { background: #c9c6be; color: var(--ov2-ink); }
.ov2-tl-bar--dirty { background: repeating-linear-gradient(45deg, #fff1de, #fff1de 6px, #fbd9a5 6px, #fbd9a5 12px); color: var(--ov2-warn-text); outline: 2px solid var(--ov2-dirty); }

.ov2-heats-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.ov2-heats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ov2-heat { background: #fff; border: 1px solid var(--ov2-border); border-radius: 12px; overflow: hidden; break-inside: avoid; }
.ov2-heat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ov2-ink); color: #f5f4f0; }
.ov2-heat-head strong { font-family: var(--ov2-display); font-weight: 400; font-size: 18px; text-transform: uppercase; letter-spacing: .3px; }
.ov2-heat-head span { font-weight: 600; color: var(--ov2-accent); }
.ov2-heat ol { list-style: none; margin: 0; padding: 4px 0; }
.ov2-heat li { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 14px; }
.ov2-lane { flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--ov2-surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* Impression des vagues : seul le bloc des vagues reste visible */
@media print {
  body.ov2-print-heats * { visibility: hidden; }
  body.ov2-print-heats #ov2-heats-print, body.ov2-print-heats #ov2-heats-print * { visibility: visible; }
  body.ov2-print-heats #ov2-heats-print { position: absolute; left: 0; top: 0; width: 100%; }
  body.ov2-print-heats [data-no-print] { display: none !important; }
  .ov2-heat-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Réglages du planning (modal) et vue avancée ---------- */
.ov2-switch:disabled { opacity: .5; cursor: not-allowed; }
.ov2-modal-section h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.ov2-body .modal-content { border-radius: var(--ov2-radius); border: 1px solid var(--ov2-border); font-family: var(--ov2-font); }
.ov2-body .modal-header { border-bottom: 1px solid var(--ov2-border-soft); align-items: flex-start; }
.ov2-body .modal-footer { border-top: 1px solid var(--ov2-border-soft); }

.ov2-adv .drag-container-wrapper { max-height: 560px; overflow: auto; position: relative; padding: 4px; }
.ov2-adv-table { border-collapse: separate; border-spacing: 8px; width: max-content; min-width: 100%; }
.ov2-adv-table thead th { position: sticky; top: 0; z-index: 2; background: #fff; font-size: 13px; font-weight: 600; color: var(--ov2-text-muted); text-align: center; padding: 8px; }
.ov2-adv-table th.sticky-col { position: sticky; left: 0; z-index: 1; background: #fff; }
.ov2-adv-table thead th.sticky-col { z-index: 3; }
.ov2-adv-table tbody th { background: #fff; border: 1px solid var(--ov2-border); border-radius: 8px; padding: 10px 12px; text-align: left; font-weight: 400; vertical-align: top; }
.ov2-wave-label { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.ov2-adv-table td.droppable { vertical-align: top; min-width: 220px; height: 120px; padding: 8px; background: var(--ov2-surface-2); border: 1px dashed var(--ov2-border-input); border-radius: 10px; transition: background-color .15s, border-color .15s; }
.ov2-adv-table td.droppable.is-over { background: var(--ov2-ok-bg); border-color: var(--ov2-ok); }
.ov2-adv-table .drag-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 100px; padding: 10px; background: #fff; border: 1px solid var(--ov2-border); border-radius: 8px; cursor: grab; user-select: none; transition: box-shadow .15s, opacity .15s; }
.ov2-adv-table .drag-item:empty { background: transparent; border: 0; }
.ov2-adv-table .drag-item:not(:empty):hover { box-shadow: 0 2px 8px rgba(10,10,12,.12); }
.ov2-adv-table .drag-item.is-dragging, .ov2-adv-table .drag-item.dragging { opacity: .6; box-shadow: 0 6px 16px rgba(10,10,12,.2); cursor: grabbing; }
.ov2-adv-table .judge-placeholder { width: 100%; margin-top: 2px; }

.ov2-seq > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; min-height: 44px; }
.ov2-seq > summary::-webkit-details-marker { display: none; }
.ov2-seq > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ov2-text-muted); border-bottom: 2px solid var(--ov2-text-muted); transform: rotate(45deg); transition: transform .15s; }
.ov2-seq[open] > summary::after { transform: rotate(-135deg); }
.ov2-seq-title { display: flex; flex-direction: column; gap: 2px; }
.ov2-seq-title strong { font-size: 17px; }

/* Le contenu d'un <details> n'est pas un conteneur flex : l'espacement est porté par ce bloc */
.ov2-seq-body { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }

/* ---------- Volontaires ---------- */
.ov2-rolecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ov2-rolecard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px 16px; margin: 1px; border-radius: 12px; border: 1px solid var(--ov2-border); background: #fff; font: inherit; color: inherit; cursor: pointer; }
.ov2-rolecard[aria-pressed="true"] { border: 2px solid var(--ov2-ink); margin: 0; }
.ov2-rolecard-label { font-size: 13px; font-weight: 600; }
.ov2-rolecard-count { font-family: var(--ov2-display); font-size: 28px; line-height: 1.1; }
.ov2-rolecard-track { display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--ov2-surface-3); overflow: hidden; }
.ov2-rolecard-bar { display: block; height: 100%; border-radius: 999px; background: var(--rc, var(--ov2-ink)); transition: width .25s; }

.ov2-role-select { height: 36px; border: none; border-radius: 999px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ov2-role-juge { background: #eaf1fb; color: #1d3b72; }
.ov2-role-logistique { background: #e6f6ec; color: #1d5e36; }
.ov2-role-buvette { background: #fff1de; color: #8a4300; }
.ov2-role-none { background: var(--ov2-surface-3); color: var(--ov2-text-muted); }
.ov2-role-select:disabled { opacity: .6; cursor: progress; }

.ov2-vol-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ov2-vol-product { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--ov2-border); border-radius: 10px; background: #fff; }
.ov2-vol-product-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ov2-input.invalid, .ov2-select.invalid { border-color: var(--ov2-danger); box-shadow: 0 0 0 3px rgba(180,35,24,.15); }

/* ---------- Apparence ---------- */
.ov2-logo-box { width: 96px; height: 96px; flex: none; border-radius: 16px; border: 1px dashed #c9c6be; background: var(--ov2-surface-2); display: flex; align-items: center; justify-content: center; color: var(--ov2-text-faint); font-size: 12px; overflow: hidden; }
.ov2-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.ov2-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ov2-color { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ov2-border-input); border-radius: 10px; cursor: pointer; }
.ov2-color input[type="color"] { width: 44px; height: 44px; flex: none; border: none; padding: 0; background: none; cursor: pointer; }
.ov2-hex { font-size: 13px; color: var(--ov2-text-faint); font-family: ui-monospace, monospace; }
.ov2-rowlist { display: flex; flex-direction: column; border: 1px solid var(--ov2-border-soft); border-radius: 10px; }
.ov2-rowitem { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--ov2-border-soft); }
.ov2-rowitem:last-child { border-bottom: 0; }
.ov2-rowitem-text { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ov2-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov2-rowitem-html { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ov2-link-thumb { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--ov2-surface-3); }
.ov2-docbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px dashed #c9c6be; border-radius: 10px; background: var(--ov2-surface-2); }

/* Aperçu mobile */
.ov2-phone { border-radius: 28px; background: var(--ov2-ink); padding: 10px; box-shadow: 0 12px 32px rgba(10,10,12,.18); }
.ov2-phone-screen { border-radius: 20px; overflow: hidden; background: #111115; color: #f5f4f0; }
.ov2-pv-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 13px; font-weight: 700; background: #646EA0; color: #fff; }
.ov2-pv-link { font-weight: 500; opacity: .85; }
.ov2-pv-hero { padding: 24px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ov2-pv-logo { width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #45454d; overflow: hidden; }
.ov2-pv-logo img { width: 100%; height: 100%; object-fit: contain; }
.ov2-pv-title { font-family: var(--ov2-display); font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.ov2-pv-meta { font-size: 13px; color: rgba(255,255,255,.75); }
.ov2-pv-cta { margin-top: 6px; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 700; font-size: 14px; background: #646EA0; color: #fff; }
.ov2-pv-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.ov2-pv-intro { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.8); text-align: center; }
.ov2-pv-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; }
.ov2-pv-gradient { height: 10px; border-radius: 999px; background: linear-gradient(to right, #646EA0, #9595A9, #C6BBB1); }

/* Sélecteur de compétition (compétitions de l'organisateur) */
button.ov2-compet-switch { cursor: pointer; }
button.ov2-compet-switch:hover { background: rgba(255,255,255,.1); }
.ov2-menu--left { left: 0; right: auto; min-width: 280px; max-height: 60vh; overflow-y: auto; }
.ov2-compet-menu a { justify-content: space-between; gap: 12px; }
.ov2-compet-menu a[aria-current="true"] { background: var(--ov2-surface-3); font-weight: 700; }
.ov2-compet-menu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Écrans publics organisateur (connexion, inscription, choix de compétition) ---------- */
.ov2-auth-body { min-height: 100vh; }
.ov2-auth-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 32px; background: var(--ov2-ink); }
.ov2-auth-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ov2-auth-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--ov2-radius-sm); color: var(--ov2-nav-text); text-decoration: none; font-weight: 600; }
.ov2-auth-nav a:hover, .ov2-auth-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.ov2-auth-main { padding: 40px 16px 64px; }
.ov2-auth-wrap { max-width: 440px; margin: 0 auto; }
.ov2-auth-wrap--wide { max-width: 720px; }
.ov2-auth-wrap.is-list { max-width: 960px; }
.ov2-auth-card { padding: 32px; }
.ov2-auth-card--center { text-align: center; }
.ov2-auth-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ov2-accent-text); }
.ov2-auth-title { margin: 0 0 8px; font-family: var(--ov2-display); font-size: 34px; line-height: 1.05; font-weight: 400; text-transform: uppercase; letter-spacing: .3px; color: var(--ov2-text); }
.ov2-auth-lead { margin: 0 0 20px; color: var(--ov2-text-muted); }
.ov2-auth-pass { position: relative; }
.ov2-auth-pass .ov2-input { padding-right: 96px; }
.ov2-auth-eye { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ov2-text-muted); cursor: pointer; }
.ov2-auth-eye:hover { background: var(--ov2-surface-3); }
.ov2-auth-submit { width: 100%; margin-top: 20px; }
.ov2-auth-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 16px; }
.ov2-auth-links a { font-weight: 600; }
.ov2-auth-forgot { margin-top: 16px; }
.ov2-auth-forgot p { margin: 4px 0 0; }
.ov2-auth-section { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.ov2-auth-section legend { float: none; display: block; width: auto; margin: 0 0 12px; padding: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ov2-text-faint); border-bottom: 1px solid var(--ov2-border-soft); }
.ov2-auth-opt { font-weight: 400; color: var(--ov2-text-faint); }
.ov2-auth-cgu { margin: 4px 0 16px; }
.ov2-auth-cgu label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.ov2-auth-cgu input { width: 20px; height: 20px; accent-color: var(--ov2-ink); }
.ov2-auth-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ov2-auth-steps { display: inline-block; text-align: left; margin: 0 0 24px; padding-left: 20px; color: var(--ov2-text-muted); }
.ov2-auth-listhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ov2-auth-listhead .ov2-auth-lead { margin-bottom: 0; }
.ov2-auth-group { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ov2-text-faint); }
.ov2-auth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ov2-auth-compet { display: flex; align-items: center; gap: 16px; padding: 16px; color: var(--ov2-text) !important; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ov2-auth-compet:hover { border-color: var(--ov2-ink); box-shadow: 0 6px 18px rgba(10,10,12,.1); transform: translateY(-1px); }
.ov2-auth-compet-logo { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--ov2-surface-2); border: 1px solid var(--ov2-border-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ov2-auth-compet-logo img { width: 100%; height: 100%; object-fit: contain; }
.ov2-auth-compet-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ov2-auth-compet-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov2-auth-compet-meta { font-size: 13px; color: var(--ov2-text-faint); }
.ov2-auth-compet-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ov2-auth-empty p { margin: 4px 0 0; }
.ov2-auth-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 14px 18px; border-radius: var(--ov2-radius); background: var(--ov2-danger-bg); color: var(--ov2-danger-text); border: 1px solid #f3c0bb; box-shadow: 0 8px 24px rgba(10,10,12,.2); z-index: 1100; }
.ov2-input--error { border-color: var(--ov2-danger); }
@media (max-width: 600px) {
  .ov2-auth-top { padding: 8px 16px; }
  .ov2-auth-main { padding: 24px 16px 48px; }
  .ov2-auth-card { padding: 24px 20px; }
  .ov2-auth-title { font-size: 28px; }
}

/* ---------- Ajout manuel d'une équipe ---------- */
.ov2-add-sub { margin: 20px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ov2-text-faint); }
.ov2-add-athlete .ov2-card-head h2 { display: flex; align-items: center; gap: 8px; }

/* Workout dont le planning est déjà passé */
.ov2-pill--past { background: var(--ov2-surface-3); color: var(--ov2-text-muted); }
.ov2-tl-bar--past { background: #dcdad3; color: var(--ov2-text-muted); }

/* Séquence de passage : aide et erreurs de saisie */
.ov2-order-help { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ov2-text-faint); }
.ov2-order-help--error { color: var(--ov2-danger-text); font-weight: 600; }
.ov2-order-help--ok { color: var(--ov2-ok-text); }

/* Export en cours (fenêtres d'inventaire) */
.ov2-export-status { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--ov2-radius-sm); background: var(--ov2-info-bg); color: var(--ov2-info-text); font-size: 14px; line-height: 1.4; }
.ov2-export-status--error { background: var(--ov2-danger-bg); color: var(--ov2-danger-text); }
.ov2-btn .spinner-border-sm { width: 1em; height: 1em; border-width: .15em; }
.modal-footer .ov2-btn:disabled { cursor: progress; opacity: .85; }
