/* CDL Pronos, version PC. Se charge après styles.css (l'appli mobile) et ne fait que l'adapter :
   barre de navigation en haut, pages larges en grilles, accueil avec match à la une et colonne latérale. */
.desk {
  --r-lg: 20px;
  --top-h: 68px;
}
.desk body {
  padding: 0 0 0;
  font-size: 15px;
  background:
    radial-gradient(900px 480px at 18% -80px, rgba(245, 196, 81, .10), transparent 70%),
    radial-gradient(1000px 560px at 88% -120px, rgba(92, 120, 220, .20), transparent 70%),
    linear-gradient(180deg, #080b12, #06080d 60%);
  background-attachment: fixed;
  display: flex; flex-direction: column; min-height: 100dvh;
}
.desk body::before { content: none; }
.desk .wrap { max-width: none; width: 100%; flex: 1; padding: 28px 32px 72px; }
.desk #view { max-width: 1240px; margin: 0 auto; }
.desk #installBar { display: none !important; }

/* ---------- barre du haut ---------- */
.desk header.top {
  position: sticky; top: 0; z-index: 40; margin: 0; padding: 0 32px; display: block;
  background: rgba(7, 9, 14, .78); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.desk .top-in { max-width: 1240px; height: var(--top-h); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.desk .brand { font-size: 27px; color: var(--fg); text-decoration: none; justify-self: start; font-weight: 900; }
.desk .top-r { justify-self: end; gap: 12px; }
.desk .coin-pill { height: 38px; padding: 0 14px; font-size: 18px; }
.desk .coin-pill:hover, .desk #meBtn:hover { filter: brightness(1.15); }
.desk #meBtn { width: 40px; height: 40px; }

.desk nav.dock {
  position: static; transform: none; width: auto; height: auto; padding: 4px; bottom: auto;
  display: flex; gap: 2px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.desk nav.dock .ind { display: none; }
.desk nav.dock button {
  flex-direction: row; gap: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; letter-spacing: 0;
  transition: color .2s, background-color .2s;
}
.desk nav.dock button svg { width: 18px; height: 18px; }
.desk nav.dock button:hover { color: var(--fg); background: var(--glass); }
.desk nav.dock button[aria-selected="true"] { background: var(--glass-hi); color: var(--fg); }
.desk nav.dock button[aria-selected="true"] svg { transform: none; }
.desk nav.dock button[data-badge]::after { top: 2px; right: 4px; }

/* ---------- titres, survols ---------- */
.desk .sec { margin: 34px 2px 14px; }
.desk .sec h2 { font-size: 27px; font-weight: 800; }
.desk .sec .aside { font-size: 13px; }
.desk .day { margin: 22px 4px 10px; font-size: 12.5px; }
.desk .tap:hover, .desk article.mc.tap:hover { transform: translateY(-2px); border-color: var(--line-2); }
.desk .mc { transition: transform .22s var(--spring), border-color .2s, box-shadow .2s; }
.desk .mc:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.desk .btn:hover:not(:disabled) { filter: brightness(1.08); }
.desk .btn.ghost:hover:not(:disabled) { background: var(--glass-hi); filter: none; }
.desk .chip:hover, .desk .seg button:hover, .desk .pick button:hover, .desk .scores button:hover { border-color: var(--fg-2); color: var(--fg); }
.desk .toast { bottom: 36px; }
.desk ::-webkit-scrollbar { width: 10px; height: 10px; }
.desk ::-webkit-scrollbar-thumb { background: var(--glass-hi); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }

/* ---------- accueil ---------- */
.hm { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.hm-main { min-width: 0; }
.hm-side { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }

.hm-hero {
  --c1: #5c78c8; --c2: #c8a65c;
  position: relative; overflow: hidden; padding: 26px 34px 30px; border-radius: 28px; display: grid; gap: 22px;
  border-color: var(--line-2);
  background:
    radial-gradient(60% 120% at 0% 50%, color-mix(in oklab, var(--c1) 34%, transparent), transparent 70%),
    radial-gradient(60% 120% at 100% 50%, color-mix(in oklab, var(--c2) 34%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 40%),
    var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hm-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px);
  -webkit-mask: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
}
.hm-hero.live { border-color: color-mix(in oklab, var(--live) 60%, transparent); }
.hm-hero > * { position: relative; z-index: 1; }
.hm-top { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--fg-2); }
.hm-top .tag { font-size: 12px; padding: 6px 12px; }
.hm-ev { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-when { margin-left: auto; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 6px 0; }
.hm-team { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hm-team.r { flex-direction: row-reverse; text-align: right; }
.hm-team .logo, .hm-team .logo-ph { width: 104px; height: 104px; border-radius: 22px; font-size: 34px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.hm-team b { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 3.2vw, 46px); line-height: .95; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; text-wrap: balance; }
.hm-team b { overflow-wrap: break-word; }
.hm-team.tbd b { font-size: 26px; color: var(--muted); }
.hm-team .logo-ph.tbd { filter: none; }
.hm-wait { margin: 0 auto; max-width: 520px; text-align: center; color: var(--fg-2); font-size: 14px; padding: 12px 18px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.hm-score { font-family: var(--f-display); font-weight: 900; font-size: 104px; line-height: .9; display: flex; align-items: center; gap: 18px; font-variant-numeric: tabular-nums; }
.hm-score i { font-style: normal; font-weight: 500; font-size: 50px; color: var(--muted); }
.hm-score.vs { flex-direction: column; gap: 6px; font-size: 58px; color: var(--fg-2); letter-spacing: .06em; }
.hm-score.vs small { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .3); }
.hm-hero .bet { max-width: 620px; width: 100%; margin: 0 auto; border-top-color: var(--line-2); padding-top: 18px; }
.hm-hero .pick button { padding: 13px; font-size: 15px; background: rgba(0, 0, 0, .22); }
.hm-hero .pick button[aria-pressed="true"] { background: var(--tc, var(--gold)); }
.hm-cta { display: flex; justify-content: center; }
.hm-cta .btn { padding: 13px 26px; font-size: 15px; }

/* colonne latérale */
.wd { padding: 18px 18px 16px; display: grid; gap: 10px; }
.wd h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.wd .note { margin: 0; line-height: 1.5; }
.wd .note strong { color: var(--fg); font-weight: 600; }
.wd-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.wd-more { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; }
.wd-more svg { width: 14px; height: 14px; }
.wd-more:hover { color: var(--gold); }
.wd-row { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 12px; }
.wd-row.me { background: color-mix(in oklab, var(--gold) 9%, transparent); }
.wd-row .rk { font-family: var(--f-display); font-weight: 800; font-size: 17px; color: var(--muted); text-align: center; }
.wd-row .logo, .wd-row .logo-ph { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.wd-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.wd-row b { font-family: var(--f-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.wd-row b small { font-family: var(--f-body); font-size: 11px; font-weight: 500; color: var(--muted); }
.wd-row.ev { grid-template-columns: 34px minmax(0, 1fr) auto; }
.wd-row.ev .logo { width: 34px; height: 34px; object-fit: contain; background: rgba(0, 0, 0, .25); padding: 4px; border-radius: 9px; }
.wd-row.ev .nm { white-space: normal; line-height: 1.25; }
.wd-row.ev .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wd-hi { border-color: color-mix(in oklab, var(--gold) 45%, transparent); background: linear-gradient(160deg, rgba(245, 196, 81, .13), var(--glass) 60%); }
.wd-cards { background: linear-gradient(160deg, rgba(180, 107, 255, .14), rgba(74, 163, 255, .08) 55%, var(--glass)); }

/* ---------- pages ---------- */
/* Résultats : les matchs les uns sous les autres, en colonne centrée */
.desk body[data-tab="resultats"] #view { max-width: 860px; }
.desk body[data-tab="resultats"] .mc { padding: 16px 22px; }
.desk body[data-tab="resultats"] .mc .side .nm { font-size: 16.5px; }
.desk body[data-tab="resultats"] .mc .logo, .desk body[data-tab="resultats"] .mc .logo-ph { width: 44px; height: 44px; }
.desk body[data-tab="resultats"] .mc .mid { font-size: 42px; }

/* Connexion / inscription */
.auth-btns { display: flex; gap: 8px; }
.auth-btns .btn { padding: 10px 18px; font-size: 14px; }
.desk body[data-tab="connexion"] #view, .desk body[data-tab="inscription"] #view { max-width: 460px; }
.auth { margin-top: 28px; padding: 32px 30px 26px; border-radius: 26px; display: grid; gap: 14px; border-radius: 26px; border-color: var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.auth h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 36px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.auth > .note { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .desk .card label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.auth input[type="password"], .desk input[type="password"] {
  font: inherit; font-size: 16px; color: var(--fg); background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 12px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.auth-form .btn { margin-top: 6px; padding: 13px 18px; font-size: 15px; }
.auth-link { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: var(--gold); }
.auth-link.inline { display: inline; color: var(--gold); font-weight: 600; font-size: inherit; padding: 0; }
.auth-alt { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Événements cliquables dans la colonne de l'accueil */
button.wd-row { border: 0; background: none; cursor: pointer; text-align: left; width: calc(100% + 16px); color: inherit; font: inherit; transition: background-color .2s; }
button.wd-row:hover { background: var(--glass-2); }
.wd-go { color: var(--muted); display: grid; }
.wd-go svg { width: 16px; height: 16px; }
button.wd-row:hover .wd-go { color: var(--gold); }
.desk details.std-ev { scroll-margin-top: calc(var(--top-h) + 16px); }
.wd .btn + .btn { margin-top: -2px; }
/* Pages « formulaire » : colonne centrée, plus lisible qu'une pleine largeur */
.desk body[data-tab="profil"] #view, .desk body[data-tab="league"] #view { max-width: 780px; }
.desk body[data-tab="detail"] #view { max-width: 980px; }
.desk body[data-tab="classement"] #view { max-width: 1040px; }
.desk body[data-tab="cartes"] #view { max-width: 1160px; }

/* Détail d'un match */
.desk .dhero { padding: 30px 28px 24px; border-radius: 26px; }
.desk .dhero .logo, .desk .dhero .logo-ph { width: 88px; height: 88px; }
.desk .dhero .side .nm { font-size: 19px; }
.desk .dhero .mid { font-size: 96px; }
.desk .dhead .t b { font-size: 17px; }
.desk .ps { font-size: 14px; }

/* Classements et brackets : plus d'air, colonnes plus larges */
.desk table.ps.st td { font-size: 14.5px; padding-block: 11px; }
.desk table.ps.st td:nth-child(2) { max-width: none; }
.desk .st-team .logo, .desk .st-team .logo-ph { width: 28px; height: 28px; }
.desk details.std-ev summary { padding: 16px 20px; }
.desk .std-id b { font-size: 16px; }
.desk .brk-col { width: 190px; }
.desk .brk-cols { gap: 16px; }
.desk .brk-t .nm { font-size: 14px; }
.desk .brk-m { padding: 8px 10px; }
.desk .brk-m:hover { background: var(--glass-hi); }
.desk .brk-scroll { margin: 0; padding: 0 0 6px; scrollbar-width: thin; }

/* Cartes à collectionner */
.desk .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 172px)); gap: 18px 16px; }
.desk .grid.pick { max-height: 520px; }
.desk .tc[role="button"]:hover { transform: translateY(-4px) scale(1.02); }
.desk .pack { width: 240px; }
.desk .pack:hover:not(:disabled) { filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 40px rgba(245, 196, 81, .28)); }
.desk .pack-stage .btn.wide { width: auto; min-width: 320px; }
.desk body[data-tab="cartes"] .wallet, .desk body[data-tab="cartes"] .ad-row, .desk body[data-tab="cartes"] .prog,
.desk body[data-tab="cartes"] #view > .card.note { max-width: 720px; margin-inline: auto; }
.desk body[data-tab="cartes"] #view > .seg { max-width: 520px; margin-inline: auto; }
.desk .sum-grid { grid-template-columns: repeat(5, minmax(0, 150px)); width: auto; gap: 16px; }
.desk .rv-deck { width: min(300px, calc((100dvh - 300px) * 63 / 88)); }
.desk .tc.big { width: 300px; }
.desk .chips { margin: 0; padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; }

/* ---------- pied de page ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 32px 34px; color: var(--muted); font-size: 13px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot .brand { font-size: 20px; color: var(--fg-2); }
.foot a { color: var(--fg-2); }
.foot a:hover { color: var(--gold); }
.foot-in > span:last-child { margin-left: auto; }

/* ---------- fenêtres plus étroites ---------- */
@media (max-width: 1100px) {
  .hm { grid-template-columns: minmax(0, 1fr); }
  .hm-side { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .desk nav.dock button { padding: 9px 11px; }
  .desk nav.dock button svg { display: none; }
}
@media (max-width: 760px) {
  .desk .wrap { padding: 18px 16px 56px; }
  .desk header.top { padding: 0 16px; }
  .desk .top-in { grid-template-columns: auto 1fr; height: auto; padding: 10px 0; row-gap: 8px; }
  .desk nav.dock { grid-column: 1 / -1; order: 3; overflow-x: auto; }
  .hm-hero { padding: 20px 18px 22px; }
  .hm-row { gap: 12px; }
  .hm-team { flex-direction: column; gap: 10px; text-align: center; }
  .hm-team.r { flex-direction: column; text-align: center; }
  .hm-team .logo, .hm-team .logo-ph { width: 64px; height: 64px; }
  .hm-team b { font-size: 22px; }
  .hm-score { font-size: 64px; }
  .hm-score.vs { font-size: 36px; }
  .hm-top { flex-wrap: wrap; }
  .hm-when { margin-left: 0; }
  .mgrid, .desk body[data-tab="resultats"] #view > .stack { grid-template-columns: minmax(0, 1fr); }
  .foot-in > span:last-child { margin-left: 0; }
}
