/* DMCC Fantasy — même langage visuel que dmcc-series.com (variables Elementor du site). */
:root {
  --fond: #0E0C0D;
  --carte: #161314;
  --carte-2: #1E1A1B;
  --carte-3: #26211F;
  --texte: #F4F1F2;
  --gris: #A9A5A7;
  --gris-2: #6E6A6B;
  --creme: #ECE9E4;
  --rouge: #FF0040;
  --bordeaux: #870929;
  --bordeaux-2: #3A101A;
  --lime: #C3FF00;
  --vert: #00E45D;
  --or: #D4AF37;
  --argent: #C4CAD3;
  --bronze: #CD7F32;
  --ligne: rgba(255, 255, 255, .09);
  --f-titre: "Barlow Condensed", sans-serif;
  --f-texte: "Barlow", sans-serif;
  --f-hud: "Chakra Petch", monospace;
  --biseau: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  --biseau-petit: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  --nav-h: 64px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--f-texte); font-size: 16px; line-height: 1.45;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typographie ---------- */
.hud { font-family: var(--f-hud); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.hud.rouge { color: var(--rouge); }
.hud.lime { color: var(--lime); }
.fin { font-family: var(--f-titre); font-weight: 300; text-transform: uppercase; line-height: .9; }
.gras { font-family: var(--f-titre); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .9; }
.titre { margin: 0; }
.titre .fin { display: block; font-size: 40px; }
.titre .gras { display: block; font-size: 52px; }
.titre .gras.rouge { color: var(--rouge); }
.chiffre { font-family: var(--f-titre); font-weight: 900; font-style: italic; line-height: 1; }
.chiffre.lime { color: var(--lime); }
.plus { color: var(--vert); }
.moins { color: var(--rouge); }
.neutre { color: var(--gris); }
.petit { font-size: 13px; color: var(--gris); }
.rouge-t { color: var(--rouge); }

/* ---------- Bandeau et en-tête ---------- */
.bandeau {
  background: var(--rouge); color: #fff; font-family: var(--f-hud); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; min-height: 34px;
}
.bandeau span { flex: 1; min-width: 0; }
.bandeau strong { font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 420px) { .bandeau { font-size: 10px; letter-spacing: .08em; } }
.entete {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #000; border-bottom: 1px solid var(--ligne);
  position: sticky; top: 0; z-index: 30;
}
.logo img { height: 40px; width: auto; }
.entete-titre { flex: 1; font-size: 26px; line-height: 1; }
.entete-titre .gras { color: var(--rouge); }
.langue { font-family: var(--f-hud); font-size: 12px; letter-spacing: .12em; border: 1px solid var(--ligne); padding: 6px 10px; color: var(--gris); }
.langue:hover { color: var(--texte); border-color: var(--gris); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #000; border-top: 1px solid var(--ligne);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gris); font-family: var(--f-hud); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .nav a { font-size: 8.5px; letter-spacing: .02em; } }
.nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nav a.actif { color: var(--texte); }
.nav a.actif svg { stroke: var(--rouge); }

/* ---------- Mise en page ---------- */
.vue { max-width: var(--max); margin: 0 auto; padding: 0 0 24px; }
.section { padding: 18px 16px; }
.section + .section { border-top: 1px solid var(--ligne); }
.ligne-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ligne-titre h2 { margin: 0; font-size: 26px; }

.hero {
  position: relative; padding: 28px 16px 24px; overflow: hidden; border-bottom: 2px solid var(--rouge);
  background:
    linear-gradient(180deg, rgba(14,12,13,0) 0%, rgba(14,12,13,.6) 70%, var(--fond) 100%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(120% 90% at 100% 0%, var(--bordeaux-2) 0%, var(--fond) 60%);
}
.hero .hud { margin-bottom: 10px; }
.hero p { margin: 14px 0 0; max-width: 40em; color: var(--creme); font-weight: 300; font-size: 18px; }

/* ---------- Boutons, onglets, pastilles de ronde ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--rouge); color: #fff; clip-path: var(--biseau); transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn.creme { background: var(--creme); color: #121212; }
.btn.sombre { background: var(--carte-3); color: var(--texte); }
.btn.lime { background: var(--lime); color: #121212; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.bloc { width: 100%; }
.btn.petit-btn { min-height: 34px; padding: 0 14px; font-size: 14px; clip-path: var(--biseau-petit); }

.onglets { display: flex; gap: 6px; margin: 0 0 14px; }
.onglets button {
  flex: 1; min-height: 42px; font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--carte-2); color: var(--gris); clip-path: var(--biseau);
}
.onglets button.actif { background: var(--rouge); color: #fff; }
.onglets.trois button { font-size: 14px; line-height: 1.05; padding: 4px 8px; letter-spacing: .03em; }

.rondes { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.rondes::-webkit-scrollbar { display: none; }
.rondes button {
  flex: 0 0 auto; min-width: 58px; padding: 8px 10px; font-family: var(--f-hud); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--carte-2); color: var(--gris); border: 1px solid transparent;
}
.rondes button.actif { color: var(--texte); border-color: var(--rouge); background: var(--carte); }
.rondes button small { display: block; font-size: 10px; color: var(--gris-2); letter-spacing: .06em; }

/* ---------- Cartes ---------- */
.carte { background: var(--carte); border: 1px solid var(--ligne); padding: 16px; }
.carte.accent { border-left: 4px solid var(--rouge); }
.carte .hud { margin-bottom: 6px; }
.grille-cartes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.stat { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.stat .chiffre { font-size: 44px; }
.stat .detail { text-align: right; color: var(--gris); font-size: 14px; line-height: 1.3; }
.note { background: var(--carte); border-left: 4px solid var(--rouge); padding: 14px 16px; font-weight: 300; font-size: 17px; }
.note.lime { border-left-color: var(--lime); }
.note.or { border-left-color: var(--or); }
.erreurs { background: rgba(255,0,64,.08); border: 1px solid rgba(255,0,64,.35); padding: 12px 14px; font-size: 15px; }
.erreurs div + div { margin-top: 4px; }

/* ---------- Cartes de pilote (comme la page Pilotes du site) ---------- */
.grille-pilotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pc { background: var(--carte); border: 1px solid var(--ligne); display: flex; flex-direction: column; position: relative; }
.pc.dans-garage { border-color: var(--lime); }
.pc-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(90% 80% at 50% 100%, var(--bordeaux) 0%, var(--bordeaux-2) 55%, var(--carte) 100%);
}
.pc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pc-num { position: absolute; right: 8px; bottom: 2px; font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 54px; line-height: 1; color: #fff; opacity: .9; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.pc-rookie { position: absolute; left: 0; top: 10px; background: var(--lime); color: #121212; font-family: var(--f-hud); font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 3px 10px 3px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.pc-corps { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-nom { line-height: 1; }
.pc-nom .fin { display: block; font-size: 15px; color: var(--creme); }
.pc-nom .gras { display: block; font-size: 20px; }
.pc-prix { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pc-prix .chiffre { font-size: 24px; }
.pc-var { font-family: var(--f-hud); font-size: 11px; letter-spacing: .06em; }
.pc-meta { display: flex; justify-content: space-between; font-family: var(--f-hud); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-2); }
.pc-action { margin-top: auto; }
.pc-action .btn { width: 100%; }

/* ---------- Garage ---------- */
.budget { background: var(--carte); border: 1px solid var(--ligne); padding: 14px 16px; }
.budget-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.budget .chiffre { font-size: 34px; }
.barre { height: 8px; background: var(--carte-3); margin-top: 10px; position: relative; overflow: hidden; }
.barre span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime); transition: width .25s; }
.barre.depasse span { background: var(--rouge); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  position: relative; min-height: 150px; background: var(--carte); border: 1px dashed var(--gris-2); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px; text-align: left; overflow: hidden;
}
.slot.rempli { border: 1px solid var(--ligne); }
.slot .pc-photo { position: absolute; inset: 0; aspect-ratio: auto; }
.slot .pc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,13,0) 35%, rgba(14,12,13,.92) 85%); }
.slot-texte { position: relative; }
.slot-texte .gras { display: block; font-size: 17px; }
.slot-texte .fin { display: block; font-size: 13px; color: var(--creme); }
.slot-prix { font-family: var(--f-hud); font-size: 10px; color: var(--lime); letter-spacing: .04em; margin-top: 4px; white-space: nowrap; }
.slot-pts { position: absolute; top: 6px; right: 8px; font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 22px; color: var(--lime); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.slot-vide { color: var(--gris); font-family: var(--f-hud); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: center; margin: auto; }
.slot-vide b { display: block; font-size: 28px; color: var(--gris-2); font-weight: 500; }
.slot-x { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 26px; text-align: center; }
.etiquette { display: inline-block; font-family: var(--f-hud); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ligne); color: var(--gris); }
.etiquette.lime { border-color: var(--lime); color: var(--lime); }
.etiquette.rouge { border-color: var(--rouge); color: var(--rouge); }
.etiquette.or { border-color: var(--or); color: var(--or); }

/* ---------- Tableaux et classements ---------- */
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { font-family: var(--f-hud); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-2); font-weight: 500; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 10px 8px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau td.num, .tableau th.num { text-align: right; font-family: var(--f-hud); font-size: 13px; white-space: nowrap; }
.tableau tr.moi td { background: rgba(195,255,0,.07); }
.tableau .pos { font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 22px; width: 44px; }
.tableau .pos.p1 { color: var(--or); } .tableau .pos.p2 { color: var(--argent); } .tableau .pos.p3 { color: var(--bronze); }
.tableau .nom-j { font-family: var(--f-titre); font-weight: 700; text-transform: uppercase; font-size: 17px; line-height: 1; }
.tableau .nom-j small { display: block; font-family: var(--f-hud); font-size: 10px; letter-spacing: .1em; color: var(--gris-2); text-transform: uppercase; margin-top: 3px; }
.detail-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.detail-points .carte { padding: 10px 12px; }
.detail-points .gras { font-size: 16px; display: block; }
.detail-points .pts { font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 26px; color: var(--lime); }
.detail-points .petit { display: block; margin-top: 2px; }

/* ---------- Bracket ---------- */
.etape { margin-top: 18px; }
.etape .hud { margin-bottom: 8px; display: flex; justify-content: space-between; }
.battle { background: var(--carte); border: 1px solid var(--ligne); display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; margin-bottom: 8px; }
.battle.bonne { border-color: var(--vert); }
.battle.mauvaise { border-color: rgba(255,0,64,.5); }
.battle .vs { display: flex; align-items: center; justify-content: center; font-family: var(--f-hud); font-size: 11px; color: var(--gris-2); border-left: 1px solid var(--ligne); border-right: 1px solid var(--ligne); }
.bp { display: flex; align-items: center; gap: 8px; padding: 8px; text-align: left; position: relative; min-height: 64px; }
.bp.choisi { background: rgba(255,0,64,.12); box-shadow: inset 0 0 0 2px var(--rouge); }
.bp.gagnant::after { content: "✓"; position: absolute; right: 8px; top: 6px; color: var(--vert); font-weight: 700; font-size: 14px; }
.bp.perdu { opacity: .55; }
.bp.inconnu { color: var(--gris-2); font-family: var(--f-hud); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; justify-content: center; cursor: default; }
.bp .mini { width: 42px; height: 52px; object-fit: cover; object-position: center top; background: var(--carte-3); flex: 0 0 auto; }
.bp .bp-nom .gras { display: block; font-size: 15px; }
.bp .bp-nom .fin { display: block; font-size: 12px; color: var(--creme); }
.bp .bp-q { font-family: var(--f-hud); font-size: 10px; letter-spacing: .08em; color: var(--gris); }
.bp .bp-pts { position: absolute; right: 8px; bottom: 6px; font-family: var(--f-hud); font-size: 11px; color: var(--lime); }
.resume-bracket { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.resume-bracket .carte { padding: 10px; text-align: center; }
.resume-bracket .chiffre { font-size: 30px; display: block; }

/* ---------- Formulaires ---------- */
.champ { display: block; margin-bottom: 14px; }
.champ span { display: block; font-family: var(--f-hud); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.champ input, .champ select {
  width: 100%; background: var(--carte-2); border: 1px solid var(--ligne); color: var(--texte); font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 0;
}
.champ input:focus, .champ select:focus { outline: none; border-color: var(--rouge); }
.barre-outils { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.barre-outils select { background: var(--carte-2); border: 1px solid var(--ligne); color: var(--texte); font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 0; }
.barre-outils input[type=search] { flex: 1; min-width: 140px; background: var(--carte-2); border: 1px solid var(--ligne); color: var(--texte); font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 0; }

/* ---------- Modale (sélecteur de pilote) ---------- */
.modale { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.75); display: flex; align-items: flex-end; justify-content: center; }
.modale-boite { width: 100%; max-width: 720px; max-height: 88vh; background: var(--fond); border-top: 2px solid var(--rouge); display: flex; flex-direction: column; }
.modale-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ligne); }
.modale-tete h3 { margin: 0; font-size: 22px; }
.modale-fermer { width: 36px; height: 36px; font-size: 22px; color: var(--gris); }
.modale-corps { overflow: auto; padding: 12px 16px 24px; }
.choix-pilote { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border-bottom: 1px solid var(--ligne); text-align: left; }
.choix-pilote:disabled { opacity: .4; }
.choix-pilote .mini { width: 46px; height: 56px; object-fit: cover; object-position: center top; background: var(--carte-3); flex: 0 0 auto; }
.choix-pilote .cp-nom { flex: 1; line-height: 1; }
.choix-pilote .cp-nom .gras { display: block; font-size: 17px; }
.choix-pilote .cp-nom .fin { display: block; font-size: 13px; color: var(--creme); }
.choix-pilote .cp-nom .petit { display: block; margin-top: 3px; font-size: 11px; }
.choix-pilote .chiffre { font-size: 20px; }
.choix-pilote .cp-droite { text-align: right; }

/* ---------- Pied ---------- */
.pied { text-align: center; padding: 24px 16px 8px; font-family: var(--f-hud); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-2); }

/* ---------- Bureau ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 24px; }
  .entete { padding: 14px 24px; }
  .logo img { height: 48px; }
  .nav { position: sticky; top: 73px; bottom: auto; height: auto; max-width: var(--max); margin: 0 auto; border: 0; border-bottom: 1px solid var(--ligne); background: var(--fond); display: flex; justify-content: flex-start; gap: 4px; padding: 0 16px; }
  .nav a { flex-direction: row; gap: 8px; padding: 14px 16px; font-size: 12px; border-bottom: 2px solid transparent; }
  .nav a.actif { border-bottom-color: var(--rouge); }
  .nav a svg { width: 18px; height: 18px; }
  .section { padding: 24px; }
  .hero { padding: 48px 24px 40px; }
  .titre .fin { font-size: 56px; }
  .titre .gras { font-size: 78px; }
  .grille-cartes { grid-template-columns: repeat(3, 1fr); }
  .grille-pilotes { grid-template-columns: repeat(4, 1fr); }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .slot { min-height: 200px; }
  .deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .battles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .battles .battle { margin-bottom: 0; }
  .modale { align-items: center; }
  .modale-boite { border: 1px solid var(--ligne); border-top: 2px solid var(--rouge); }
}
@media (min-width: 1100px) {
  .grille-pilotes { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Compte, connexion, admin (déc. 2026) ---------- */
.bandeau.live { background: var(--rouge); color: #fff; }
#compte { display: flex; align-items: center; margin-right: 8px; }
#compte .langue { text-decoration: none; }
.chip { display: inline-flex; width: 34px; height: 34px; border: 1px solid var(--ligne); align-items: center; justify-content: center; overflow: hidden; background: var(--carte-2, var(--carte)); font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 18px; color: var(--texte); text-decoration: none; clip-path: var(--biseau-petit); }
.chip img { width: 100%; height: 100%; object-fit: cover; }
.intro { font-weight: 300; font-size: 18px; color: var(--gris); margin: 6px 0 14px; max-width: 60ch; }
.connexion { max-width: 440px; }
.connexion .btn svg { margin-right: 10px; vertical-align: -3px; }
.ou { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-family: var(--f-hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.lien { background: none; border: 0; color: var(--gris); font-family: var(--f-texte, inherit); font-size: 15px; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.lien:hover { color: var(--texte); }
.case { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-weight: 300; font-size: 16px; }
.case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rouge); flex: none; }
.rondes button:disabled { opacity: .35; cursor: not-allowed; }
.slot:not(.rempli):not(button) { background: var(--carte); border: 1px dashed var(--ligne); }
.admin .defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin .tableau input[type=text], .admin .tableau input:not([type]), .admin .tableau input[type=date], .admin .tableau input[type=datetime-local], .admin .tableau input[type=number] { background: var(--fond); border: 1px solid var(--ligne); color: var(--texte); padding: 6px 8px; font: inherit; font-size: 14px; min-width: 90px; }
.admin .tableau input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--rouge); }
.admin .barre-outils .champ { margin: 0; }
.admin .tableau td, .admin .tableau th { white-space: nowrap; }

/* ---------- Bracket en arbre (comme Race Control) ---------- */
.arbre-aide { margin: 4px 0 8px; color: var(--gris); }
.arbre { display: flex; gap: 24px; align-items: stretch; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 2px 16px; scroll-snap-type: x proximity; }
.ab-col { display: flex; flex-direction: column; flex: 0 0 196px; min-width: 196px; position: relative; scroll-snap-align: start; }
.ab-col > .hud { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-bottom: 10px; color: var(--texte); }
.ab-col > .hud small { font-size: 10px; letter-spacing: .1em; color: var(--rouge); }
.ab-corps { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.ab-carte { position: relative; background: var(--carte); border: 1px solid var(--ligne); }
.ab-carte.choisie { border-color: rgba(255,0,64,.45); }
.ab-carte.bonne { border-color: var(--vert); }
.ab-carte.mauvaise { border-color: rgba(255,0,64,.7); }
.ab-carte.finale { border-color: var(--rouge); background: var(--carte-2); }
.ab-carte.troisieme { border-style: dashed; }
.ab-slot { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 5px 8px; background: none; border: 0; color: var(--texte); text-align: left; cursor: pointer; font: inherit; position: relative; }
.ab-slot .seed { font-family: var(--f-hud); font-size: 10px; letter-spacing: .06em; color: var(--gris); min-width: 24px; flex: none; }
.ab-slot img.mini { width: 28px; height: 28px; object-fit: cover; flex: none; border-radius: 2px; }
.ab-slot .nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-titre); font-size: 17px; line-height: 1; }
.ab-slot .nom .fin { font-weight: 300; }
.ab-slot .nom .gras { font-weight: 800; font-style: italic; text-transform: uppercase; }
.ab-slot .coche { font-family: var(--f-hud); font-size: 12px; color: var(--rouge); flex: none; }
.ab-slot:hover:not(:disabled) { background: rgba(255,255,255,.04); }
.ab-slot.choisi { background: rgba(255,0,64,.14); box-shadow: inset 3px 0 0 var(--rouge); }
.ab-slot.gagnant { background: rgba(0,228,93,.14); box-shadow: inset 3px 0 0 var(--vert); }
.ab-slot.gagnant .coche { color: var(--vert); }
.ab-slot.perdu { opacity: .5; }
.ab-slot.perdu .nom { text-decoration: line-through; }
.ab-slot:disabled { cursor: default; }
.ab-slot.vide { color: var(--gris); cursor: default; }
.ab-slot.vide .nom { font-family: var(--f-texte); font-size: 13px; font-style: italic; }
.ab-vs { height: 1px; background: var(--ligne); margin: 0 8px; position: relative; }
.ab-vs::after { content: "VS"; position: absolute; right: 2px; top: -6px; font-family: var(--f-hud); font-size: 8px; letter-spacing: .1em; color: var(--gris); background: var(--carte); padding: 0 3px; line-height: 12px; }
.ab-carte.finale .ab-vs::after { background: var(--carte-2); }
.ab-pts { position: absolute; top: -9px; right: 8px; background: var(--lime); color: #121212; font-family: var(--f-hud); font-size: 11px; font-weight: 700; padding: 1px 6px; }
.ab-conn { position: absolute; right: -24px; width: 24px; }
.ab-conn.paire { border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); border-right: 1px solid rgba(255,255,255,.25); }
.ab-conn.simple { height: 1px; background: rgba(255,255,255,.25); transform: translateY(-50%); }
.ab-centre { flex-basis: 210px; min-width: 210px; }
.ab-centre .ab-corps { display: block; min-height: 320px; }
.ab-finale-wrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.ab-finale-wrap .ab-carte::before { content: ""; position: absolute; left: -25px; top: 50%; width: 24px; height: 1px; background: rgba(255,255,255,.25); }
.ab-third-wrap { position: absolute; left: 0; right: 0; top: 50%; margin-top: 78px; }
.ab-third-wrap .hud, .ab-finale-wrap .hud { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-bottom: 6px; color: var(--texte); }
.ab-third-wrap .hud small, .ab-finale-wrap .hud small { font-size: 10px; letter-spacing: .1em; color: var(--rouge); }
.ab-fantome { visibility: hidden; }
.ab-finale-wrap { transform: translateY(calc(-50% - 14px)); }
.ab-slot .nom .ini { display: none; }
@media (max-width: 480px) { .ab-col { flex-basis: 184px; min-width: 184px; } .ab-slot .nom .fin { display: none; } .ab-slot .nom .ini { display: inline; font-weight: 300; } }
@media (min-width: 1100px) { .ab-col { flex-basis: 220px; min-width: 220px; } .ab-slot .nom { font-size: 18px; } }

/* ---------- Driver Market en liste compacte ---------- */
.liste-pilotes { display: grid; grid-template-columns: 1fr; gap: 6px; }
.lp { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 38px; gap: 10px; align-items: center; background: var(--carte); border: 1px solid var(--ligne); padding: 6px 8px 6px 6px; min-height: 60px; }
.lp.dans-garage { border-color: var(--lime); }
.lp-photo { width: 46px; height: 46px; overflow: hidden; background: var(--carte-2); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lp-nom { min-width: 0; line-height: 1; font-family: var(--f-titre); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.lp-nom .lp-num { font-family: var(--f-hud); font-size: 10px; color: var(--gris); letter-spacing: .06em; }
.lp-nom .fin { font-size: 15px; font-weight: 300; color: var(--creme); }
.lp-nom .gras { font-size: 19px; font-weight: 800; font-style: italic; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lp-nom .etiquette { padding: 1px 6px; font-size: 9px; }
.lp-meta { flex-basis: 100%; font-family: var(--f-hud); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-prix { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lp-prix .chiffre { font-size: 20px; line-height: 1; }
.lp-btn { width: 38px; height: 38px; border: 1px solid var(--ligne); background: var(--carte-3, #222); color: var(--texte); font-family: var(--f-titre); font-weight: 800; font-size: 22px; line-height: 1; cursor: pointer; clip-path: var(--biseau-petit); }
.lp-btn:hover { border-color: var(--gris); }
.lp-btn.lime { background: var(--lime); color: #121212; border-color: var(--lime); }
.lp:not(:has(.lp-btn)) { grid-template-columns: 46px minmax(0, 1fr) auto; }
/* Une seule colonne, même sur bureau (demande du 3 déc. 2026). */

/* ---------- Fiche pilote (accordéon du Marché) ---------- */
.lp { cursor: pointer; }
.lp.ouvert { border-color: var(--rouge); }
.lp-detail { grid-column: 1 / -1; border-top: 1px solid var(--ligne); padding: 10px 2px 4px; cursor: default; }
.lp-infos { font-weight: 300; font-size: 15px; color: var(--creme); margin-bottom: 10px; }
.lp-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.lp-chips > div { background: var(--carte-2); padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.lp-chips .chiffre { font-size: 22px; line-height: 1; }
.lp-chips .hud { font-size: 9px; letter-spacing: .1em; }
.tableau.fiche { font-size: 14px; }
.tableau.fiche th, .tableau.fiche td { padding: 6px 6px; }
.tableau.fiche small { font-family: var(--f-hud); font-size: 9px; letter-spacing: .06em; color: var(--gris); text-transform: uppercase; }
.tableau.fiche small.plus { color: var(--vert); } .tableau.fiche small.moins { color: var(--rouge); }
.tableau.fiche tr.moi td { background: rgba(255,0,64,.08); }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau.fiche td:first-child { white-space: nowrap; }
@media (max-width: 480px) { .tableau.fiche td:first-child small { display: none; } .tableau.fiche th, .tableau.fiche td { padding: 6px 4px; } .lp-chips .chiffre { font-size: 18px; } }
.lp-carriere { font-size: 14px; color: var(--gris); }
.lp-insta { color: var(--creme); text-decoration: none; border-bottom: 1px solid var(--ligne); }
.lp-insta:hover { color: var(--texte); border-color: var(--gris); }
.lime-t { color: var(--lime); }
.tableau.fiche th.lime-t { color: var(--lime); }
.etiquette.creme { border-color: var(--creme); color: var(--creme); }

/* ---------- Contrat ---------- */
.slot.sous-contrat { outline: 1px solid var(--creme); outline-offset: -1px; }
.slot-contrat { color: var(--creme); font-family: var(--f-hud); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.slot-prix s { color: var(--gris); font-size: 12px; }
.slot-signer { margin-top: 6px; background: none; border: 1px solid var(--ligne); color: var(--gris); font-family: var(--f-hud); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; cursor: pointer; }
.slot-signer:hover { color: var(--texte); border-color: var(--gris); }
.slot-signer.actif { border-color: var(--creme); color: var(--creme); }
.chiffre.moins { color: var(--rouge); }

/* =================== Refonte déc. 2026 : menu en haut, accueil, garage + marché intégré =================== */
body { padding-bottom: 24px; }
.nav { display: none !important; }
.entete { position: sticky; top: 0; z-index: 25; }
.entete .menu { display: flex; gap: 2px; margin-left: 10px; align-self: stretch; }
.entete .menu a { display: inline-flex; align-items: center; padding: 0 14px; font-family: var(--f-titre); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); border-bottom: 3px solid transparent; }
.entete .menu a.actif { color: var(--texte); border-bottom-color: var(--rouge); }
.entete .menu a:hover { color: var(--texte); }
.entete-titre { flex: 0 0 auto; }
#compte { margin-left: auto; }
.onglets-mobile { display: none; }
@media (max-width: 760px) {
  .entete { padding: 8px 12px; gap: 10px; }
  .entete .logo img { height: 30px; }
  .entete-titre { display: none; }
  .entete .menu { display: none; }
  .onglets-mobile { display: flex; position: sticky; top: 50px; z-index: 24; background: #000; border-bottom: 1px solid var(--ligne); overflow-x: auto; scrollbar-width: none; }
  .onglets-mobile a { flex: 1 0 auto; text-align: center; font-family: var(--f-titre); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); padding: 10px 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
  .onglets-mobile a.actif { color: var(--texte); border-bottom-color: var(--rouge); }
}
.chiffre.neutre { color: var(--gris-2); }
.chiffre.petit-chiffre { font-size: 22px; }
.vert-t { color: var(--vert); }
.tag { display: inline-block; font-family: var(--f-hud); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; margin-left: 6px; vertical-align: middle; background: var(--carte-3); color: var(--texte); }
.tag.lime { background: var(--lime); color: #121212; }
.tag.creme { background: var(--creme); color: #121212; }
.tag.contrat { background: rgba(0,228,93,.16); color: var(--vert); border: 1px solid rgba(0,228,93,.5); }
.chip-var { display: inline-block; font-family: var(--f-hud); font-size: 10px; letter-spacing: .04em; padding: 2px 6px; margin-top: 3px; }
.chip-var.plus { background: rgba(0,228,93,.14); color: var(--vert); }
.chip-var.moins { background: rgba(255,0,64,.14); color: var(--rouge); }
.chip-var.neutre { color: var(--gris-2); }
.rang { font-family: var(--f-hud); font-weight: 700; padding: 1px 6px; background: var(--carte-3); color: var(--texte); }
.rang.or { background: var(--or); color: #121212; } .rang.argent { background: var(--argent); color: #121212; } .rang.bronze { background: var(--bronze); color: #121212; }
.rang.nouveau { background: rgba(255,0,64,.16); color: var(--rouge); }

/* ---- Accueil ---- */
.hero { position: relative; margin: 12px 16px 0; min-height: 420px; display: flex; align-items: flex-end; background-color: #000; background-position: center 35%; background-size: cover; background-repeat: no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,13,.05) 0%, rgba(14,12,13,.55) 45%, rgba(14,12,13,.96) 100%); }
.hero-contenu { position: relative; z-index: 1; width: 100%; padding: 26px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.hero .titre { margin: 8px 0 0; }
.hero p { margin: 12px 0 0; font-weight: 300; font-size: 18px; color: var(--creme); max-width: 52ch; }
.hero .sur-photo { display: inline-block; background: rgba(0,0,0,.55); padding: 3px 8px; }
.cta2 { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.compte { background: rgba(0,0,0,.55); border: 1px solid var(--ligne); padding: 14px 18px; min-width: 260px; backdrop-filter: blur(6px); }
.compte .nums { display: flex; gap: 14px; align-items: baseline; margin-top: 6px; }
.compte .nums span { font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; }
.compte .nums small { font-family: var(--f-hud); font-size: 10px; letter-spacing: .12em; color: var(--gris); margin-left: 3px; font-style: normal; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.kpi { background: var(--carte); border-left: 4px solid var(--rouge); padding: 14px 16px; min-width: 0; }
.kpi .chiffre { margin: 6px 0 4px; font-size: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.comment > div { background: var(--carte); padding: 16px; border-top: 3px solid var(--lime); }
.comment b { display: block; font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.comment p { margin: 0; font-weight: 300; font-size: 15px; color: var(--gris); }
@media (max-width: 760px) {
  .hero { margin: 0; min-height: 380px; }
  .hero-contenu { grid-template-columns: 1fr; padding: 18px 16px; }
  .hero .titre .fin, .hero .titre .gras { font-size: 44px; }
  .hero p { font-size: 16px; }
  .compte { min-width: 0; } .compte .nums span { font-size: 38px; }
  .kpis { grid-template-columns: repeat(2, 1fr); } .kpi .chiffre { font-size: 26px; }
  .comment { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Garage : tableau de bord ---- */
.tdb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); margin-bottom: 12px; }
.tdb > div { background: var(--carte); padding: 10px 14px; min-width: 0; }
.tdb .chiffre { font-size: 28px; margin-top: 4px; white-space: nowrap; }
.tdb .barre-tdb { grid-column: 1 / -1; height: 5px; padding: 0; background: var(--carte-3); }
.tdb .barre-tdb span { display: block; height: 100%; background: var(--lime); transition: width .2s; }
.tdb .barre-tdb span.depasse { background: var(--rouge); }
.garage .notes > * { margin-bottom: 10px; }
.colonnes { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 10px; align-items: start; }
@media (min-width: 900px) { .colonnes { grid-template-columns: 1.1fr .9fr; gap: 20px; } .panneau { position: sticky; top: 86px; max-height: calc(100vh - 100px); overflow: auto; } }
.gs-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.gs { position: relative; background: var(--carte); border: 1px solid var(--ligne); aspect-ratio: 3 / 4; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; color: var(--texte); text-align: left; min-width: 0; }
.gs > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gs .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.92) 100%); }
.gs .num { position: absolute; right: 8px; top: 2px; font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 40px; line-height: 1; color: #fff; opacity: .85; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.gs .x { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.gs .pts { position: absolute; right: 8px; bottom: 8px; background: var(--lime); color: #121212; font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 20px; padding: 2px 8px; }
.gs .tags { position: absolute; left: 0; top: 42px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gs .tags .tag { margin: 0; }
.gs .txt { position: relative; padding: 10px; }
.gs .txt .n1 { font-family: var(--f-titre); font-weight: 300; font-size: 15px; line-height: 1; color: var(--creme); }
.gs .txt .n2 { font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 22px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs .txt .px { font-family: var(--f-hud); font-size: 12px; margin-top: 6px; color: var(--lime); }
.gs .txt .px s { color: var(--gris); }
.gs.sous-contrat { outline: 2px solid var(--vert); outline-offset: -2px; }
.gs-signer { margin-top: 6px; background: none; border: 1px solid var(--ligne); color: var(--gris); font-family: var(--f-hud); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; cursor: pointer; }
.gs-signer:hover { color: var(--texte); border-color: var(--gris); }
.gs-signer.actif { border-color: var(--vert); color: var(--vert); }
.gs.vide { border: 1px dashed rgba(255,255,255,.28); align-items: center; justify-content: center; text-align: center; cursor: pointer; font: inherit; }
.gs.vide.cible { border-color: var(--rouge); background: rgba(255,0,64,.06); }
.gs.vide .plus { width: 52px; height: 52px; border-radius: 50%; background: var(--rouge); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; line-height: 1; font-weight: 300; margin-bottom: 10px; }
.gs.vide .cat { font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 18px; text-transform: uppercase; padding: 0 8px; }
.gs.vide .cat small { display: block; font-family: var(--f-hud); font-size: 10px; letter-spacing: .1em; color: var(--gris); margin-top: 4px; font-style: normal; font-weight: 500; }
.actions-garage { margin-top: 12px; }
.contrat-carte { margin-top: 14px; background: var(--carte); border: 1px solid rgba(0,228,93,.35); padding: 14px 16px; }
.contrat-carte.en-attente { border-style: dashed; }
.contrat-carte.vide { display: flex; gap: 12px; align-items: center; border-color: var(--ligne); }
.cc-tete { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--ligne); padding-bottom: 10px; }
.cc-nom { font-family: var(--f-titre); font-size: 22px; line-height: 1.1; }
.cc-tete .tag { margin: 6px 0 0; }
.cc-icone { font-size: 26px; opacity: .8; }
.cc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.cc-grille .chiffre { font-size: 26px; margin: 4px 0 2px; }
.cc-eco { padding-top: 10px; }
.cc-eco .chiffre { font-size: 34px; margin-top: 4px; }
.sticky-bas { display: none; }
@media (max-width: 899px) {
  .sticky-bas { display: block; position: sticky; bottom: 0; z-index: 10; padding: 10px 0 12px; background: linear-gradient(180deg, rgba(14,12,13,0), var(--fond) 30%); }
  .actions-garage { display: none; }
}
@media (max-width: 480px) {
  .tdb { grid-template-columns: repeat(2, 1fr); } .tdb > div { padding: 8px 10px; } .tdb .chiffre { font-size: 22px; } .tdb .hud { font-size: 9px; }
  .gs-grille { gap: 6px; } .gs .txt { padding: 8px; } .gs .txt .n1 { font-size: 12px; } .gs .txt .n2 { font-size: 15px; } .gs .txt .px { font-size: 10px; margin-top: 3px; }
  .gs .num { font-size: 26px; } .gs .x { width: 22px; height: 22px; font-size: 13px; } .gs .tags { top: 34px; } .gs .tags .tag { font-size: 8px; padding: 2px 5px; }
  .gs.vide .plus { width: 38px; height: 38px; font-size: 26px; } .gs.vide .cat { font-size: 13px; } .gs.vide .cat small { font-size: 8px; }
  .cc-grille .chiffre { font-size: 22px; } .cc-eco .chiffre { font-size: 28px; }
}

/* ---- Panneau du marché (dans la page Garage) ---- */
.panneau { background: var(--carte); border: 1px solid var(--ligne); }
.panneau-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 12px 8px; border-bottom: 1px solid var(--ligne); }
.panneau-tete h3 { margin: 0; flex: 1; font-size: 22px; line-height: 1; text-transform: uppercase; }
.filtre { display: flex; border: 1px solid var(--ligne); }
.filtre button { background: none; border: 0; color: var(--gris); font-family: var(--f-hud); font-size: 11px; letter-spacing: .12em; padding: 6px 12px; cursor: pointer; }
.filtre button.actif { background: var(--rouge); color: #fff; }
.panneau-outils { display: flex; gap: 8px; padding: 10px 12px; }
.panneau-outils input { flex: 1; min-width: 0; }
.panneau .liste-pilotes { gap: 0; }
.panneau .lp { border: 0; border-bottom: 1px solid var(--ligne); border-left: 4px solid var(--rouge); padding: 7px 10px 7px 8px; cursor: pointer; }
.panneau .lp.proam { border-left-color: var(--creme); }
.panneau .lp.dans-garage { background: rgba(195,255,0,.06); border-left-color: var(--lime); }
.panneau .lp.trop { opacity: .5; }
.panneau .lp.ouvert { background: var(--carte-2); opacity: 1; }
.panneau .lp-photo { width: 44px; height: 44px; }
.panneau .lp-prix { align-items: flex-end; }
.panneau .lp-btn:disabled { opacity: .35; cursor: not-allowed; }
.lp-nom .tag { font-size: 8px; padding: 1px 5px; margin-left: 4px; }
.panneau-outils input, .panneau-outils select { background: var(--fond); border: 1px solid var(--ligne); color: var(--texte); padding: 8px 10px; font: inherit; font-size: 15px; }
.panneau-outils input:focus, .panneau-outils select:focus { outline: none; border-color: var(--rouge); }

/* ---- Retours du 3 déc. (soir) : compacité, en-tête, honneur, bracket ---- */
.rondes button small { display: none; }
.lp-detail .defile { overflow: visible; }
.tableau.fiche { table-layout: auto; font-size: 13px; }
.tableau.fiche th, .tableau.fiche td { padding: 5px 4px; white-space: nowrap; }
.panneau .lp-detail { padding-right: 0; }
.chip.chip-profil { width: auto; padding: 0 10px 0 8px; gap: 6px; font-family: var(--f-titre); font-weight: 700; font-style: normal; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.chip.chip-profil img { width: 22px; height: 22px; border-radius: 50%; }
@media (max-width: 480px) { .chip.chip-profil span { display: none; } .chip.chip-profil { padding: 0 8px; } }
@media (min-width: 900px) { .colonnes { grid-template-columns: .88fr 1.12fr; gap: 18px; } .gs-grille { gap: 8px; } .gs { aspect-ratio: 4 / 5; } .gs .txt .n2 { font-size: 19px; } .gs .num { font-size: 34px; } .gs.vide .plus { width: 44px; height: 44px; font-size: 30px; } .gs.vide .cat { font-size: 15px; } }
.regles-rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.rr { background: var(--carte); border-left: 3px solid var(--ligne); padding: 8px 10px; font-size: 13px; color: var(--gris); line-height: 1.3; }
.rr b { display: block; font-family: var(--f-titre); font-weight: 800; font-style: italic; font-size: 15px; text-transform: uppercase; color: var(--texte); margin-bottom: 2px; }
.rr:nth-child(1) { border-left-color: var(--vert); } .rr:nth-child(2) { border-left-color: var(--creme); } .rr:nth-child(3) { border-left-color: var(--gris-2); }
.rr.actif { background: rgba(0,228,93,.08); color: var(--texte); }
@media (max-width: 760px) { .regles-rapides { grid-template-columns: 1fr; gap: 6px; } .rr { padding: 7px 10px; font-size: 12px; } .rr b { display: inline; margin-right: 6px; font-size: 13px; } }
.lp-chev { color: var(--gris-2); font-family: var(--f-hud); }
.movers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mover { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--carte); border-left: 4px solid var(--vert); padding: 8px 10px; }
.mover.moins { border-left-color: var(--rouge); }
.mover-photo { width: 44px; height: 44px; overflow: hidden; background: var(--carte-2); }
.mover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mover-nom { font-family: var(--f-titre); font-size: 17px; line-height: 1; min-width: 0; }
.mover-nom .fin { font-weight: 300; } .mover-nom .gras { font-weight: 800; font-style: italic; text-transform: uppercase; }
.mover-nom small { display: block; font-family: var(--f-hud); font-size: 9px; letter-spacing: .08em; color: var(--gris); margin-top: 4px; text-transform: uppercase; }
.mover-var { font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 20px; color: var(--vert); white-space: nowrap; }
.mover.moins .mover-var { color: var(--rouge); }
@media (max-width: 760px) { .movers { grid-template-columns: 1fr 1fr; } .mover { grid-template-columns: 36px 1fr; } .mover-var { grid-column: 2; font-size: 16px; } .mover-photo { width: 36px; height: 36px; } }
.honneur { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.hon { background: var(--carte); border-top: 3px solid var(--or); padding: 10px 12px; }
.hon.saison { border-top-color: var(--lime); }
.hon.moi { outline: 1px solid var(--lime); }
.hon-nom { font-family: var(--f-titre); font-size: 20px; line-height: 1.1; margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jeu-bande { display: inline-block; font-family: var(--f-hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #121212; background: var(--creme); padding: 4px 10px; margin-bottom: 10px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.vue.jeu-bracket .titre .gras.rouge { color: var(--creme); }
.vue.jeu-bracket .onglets button.actif { background: var(--creme); color: #121212; }
.vue.jeu-bracket .ab-slot.choisi { background: rgba(236,233,228,.14); box-shadow: inset 3px 0 0 var(--creme); }
.vue.jeu-bracket .ab-slot .coche { color: var(--creme); }
.vue.jeu-bracket .ab-carte.choisie { border-color: rgba(236,233,228,.5); }
.vue.jeu-bracket .btn:not(.sombre):not(.creme) { background: var(--creme); color: #121212; }
.vue.jeu-bracket .ab-col > .hud small, .vue.jeu-bracket .ab-third-wrap .hud small, .vue.jeu-bracket .ab-finale-wrap .hud small { color: var(--creme); }
.lp-btn.contrat { background: rgba(0,228,93,.16); border-color: var(--vert); color: var(--vert); font-size: 16px; }
.ab-slot .ab-pts { position: static; margin-left: auto; flex: none; }
.ab-slot .coche { margin-left: 6px; }
/* Contours bonne / mauvaise battle : 2 px, lisibles à tout zoom */
.ab-carte.bonne { border-color: var(--vert); box-shadow: 0 0 0 1px var(--vert); }
.ab-carte.mauvaise { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.ab-slot.gagnant { background: rgba(0,228,93,.22); }

/* ---- Grands écrans : pleine largeur utile (1920 px = standard) ---- */
@media (min-width: 1400px) {
  :root { --max: 1640px; }
  .colonnes { grid-template-columns: 1fr 1fr .8fr; gap: 20px; }
  .col-extra { grid-column: 3; }
  .col-extra .contrat-carte { margin-top: 0; }
  .col-extra .section { padding-top: 0; }
  .gs .txt .n2 { font-size: 22px; } .gs .num { font-size: 40px; }
  .tdb .chiffre { font-size: 34px; }
  .hero { min-height: 480px; }
  .kpi .chiffre { font-size: 34px; }
}
@media (min-width: 900px) and (max-width: 1399px) { .col-extra { grid-column: 1 / -1; } }
@media (min-width: 1400px) { .colonnes > .panneau:last-child { grid-column: 2 / -1; } .colonnes > .panneau:last-child .liste-pilotes { grid-template-columns: 1fr 1fr; gap: 0 12px; } }

/* Étiquettes en bas de la carte ; unités « pts » ; panneau à hauteur de fenêtre */
.gs .tags { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.gs .tags .tag { margin: 0; font-size: 8px; padding: 2px 5px; }
.gs .pts { font-size: 15px; padding: 2px 7px; top: 8px; right: 8px; bottom: auto; }
.gs .num { right: 8px; top: 30px; }
.chiffre small, .pts small { font-family: var(--f-hud); font-size: 11px; font-weight: 500; font-style: normal; letter-spacing: .1em; color: var(--gris); }
.tdb .chiffre small { font-size: 10px; }
@media (min-width: 900px) { .panneau { max-height: calc(100vh - 120px); } .tdb > div { padding: 8px 14px; } .tdb .chiffre { font-size: 26px; } .regles-rapides { margin: 8px 0 2px; } .rr { padding: 6px 10px; font-size: 12px; } .rr b { font-size: 14px; } .gs { aspect-ratio: 4 / 4.6; } }
@media (min-width: 1400px) { .tdb .chiffre { font-size: 28px; } .gs .txt .n2 { font-size: 20px; } .gs .num { font-size: 32px; } }

/* Numéro en bas à droite, points en haut à droite ; total de la ronde dans l'en-tête des résultats */
.gs .num { top: auto; bottom: 8px; right: 8px; font-size: 34px; }
.gs .pts { top: 8px; right: 8px; bottom: auto; }
.gs .txt { padding-right: 64px; }
.resultats-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.resultats-tete .chiffre { font-size: 30px; }
@media (max-width: 480px) { .gs .num { font-size: 24px; bottom: 6px; right: 6px; } .gs .txt { padding-right: 44px; } }

/* Barème, libération de contrat, 4 cases de règles */
.regles-rapides.quatre { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .regles-rapides.quatre { grid-template-columns: 1fr; } }
.rr.cliquable { cursor: pointer; }
.rr.cliquable:hover { background: var(--carte-2); }
.rr:nth-child(3) { border-left-color: var(--lime); } .rr:nth-child(4) { border-left-color: var(--gris-2); }
.rr.libere { background: rgba(255,0,64,.08); }
.rr .lien { font-size: 12px; padding: 0 0 0 6px; color: var(--texte); }
.comment > div.cliquable { cursor: pointer; } .comment > div.cliquable:hover { background: var(--carte-2); }
.cc-eco { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.modale-boite.bareme .tableau td { padding: 7px 8px; font-size: 15px; }
.modale-boite.bareme .tableau td.num b { font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 20px; color: var(--lime); }
.lien.hud { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; padding: 0; color: var(--creme); text-decoration: none; border-bottom: 1px solid var(--creme); }

/* Cartes du garage sur téléphone : contenu court */
.court { display: none; }
@media (max-width: 600px) {
  .gs .long { display: none; } .gs .court { display: inline; }
  .gs { aspect-ratio: 3 / 4.2; }
  .gs .txt { padding: 6px 6px 6px; padding-right: 6px; }
  .gs .txt .n1 { display: none; }
  .gs .txt .n2 { font-size: 13px; white-space: normal; line-height: 1; max-height: 26px; overflow: hidden; }
  .gs .txt .px { font-size: 10px; margin-top: 3px; } .gs .txt .px s { display: none; }
  .gs .tags { gap: 3px; margin-bottom: 4px; } .gs .tags .tag { font-size: 8px; padding: 1px 4px; letter-spacing: .04em; }
  .gs .pts { font-size: 12px; padding: 1px 5px; top: 6px; right: 6px; }
  .gs .num { font-size: 20px; bottom: 4px; right: 6px; }
  .gs .x { width: 20px; height: 20px; font-size: 12px; left: 6px; top: 6px; }
  .gs-signer { margin-top: 4px; padding: 2px 6px; font-size: 10px; letter-spacing: 0; }
  .gs.vide .plus { width: 34px; height: 34px; font-size: 24px; margin-bottom: 6px; } .gs.vide .cat { font-size: 12px; } .gs.vide .cat small { font-size: 8px; }
}
/* « Fantasy » visible à côté du logo, aussi sur téléphone */
@media (max-width: 760px) { .entete-titre { display: block; font-size: 22px; } }
@media (min-width: 900px) { .panneau { display: flex; flex-direction: column; } .panneau .liste-pilotes { flex: 1; min-height: 0; overflow-y: auto; } .panneau { overflow: hidden; } }

/* Comptes à rebours vivants */
.cr { font-family: var(--f-hud); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tdb .chiffre .cr { font-family: var(--f-titre); font-weight: 900; font-style: italic; font-size: 22px; }
.bandeau .cr { font-weight: 700; }
.compte .nums.cr-grand .sec { opacity: .7; } .compte .nums.cr-grand .sec { font-size: 28px; }
.cr-note { margin: 0 0 10px; font-size: 15px; }
/* Bande du haut : rouge = avertissement d'entraînement ; en saison, sobre avec le décompte en lime */
.bandeau.live { background: #1A1516; color: var(--gris); border-bottom: 1px solid var(--ligne); }
.bandeau.live strong { color: var(--texte); }
.bandeau.live .cr { color: var(--lime); font-weight: 700; }
/* Fiche ouverte dans la liste : la rangée doit grandir au lieu de déborder sur les suivantes */
.liste-pilotes { grid-auto-rows: max-content; align-content: start; }
.lp { align-self: start; height: auto; }
