/* ══════════════════════════════════════════════════════════
   LE TABLEAU — la collection et le classement, côte à côte,
   sur un seul écran. La liste défile dans son cadre, pas la page.
   ══════════════════════════════════════════════════════════ */
.tableau { position: relative; padding: calc(var(--R) * 4) var(--g) calc(var(--R) * 4); }
.tableau__tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; margin-bottom: calc(var(--R) * 2); }
.tableau__titre { grid-column: 1 / -1; font-weight: 300; font-size: clamp(56px, 8.5vw, 140px); line-height: .92; letter-spacing: -.04em; font-variation-settings: 'opsz' 72; }
.tableau__intro { max-width: 32em; font-size: 18px; line-height: 1.55; color: var(--lumiere-2); }
.tableau__h3 { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--lumiere); }
.classement__moi { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 14.5px; }
.cls__in svg { width: 18px; height: 18px; }
.cls__lien { font-family: var(--sans); font-size: 14px; color: var(--lumiere-2); text-decoration: underline; text-underline-offset: .2em; }

.tableau__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.collection, .classement {
  border-radius: 22px;
  border: 1px solid var(--filet-nuit);
  background: linear-gradient(180deg, rgba(238, 241, 248, .035), rgba(238, 241, 248, .01));
  padding: clamp(18px, 2.2vw, 28px);
}

/* ─────────── la collection ─────────── */
.collection__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.collection__compte { font-family: var(--sans); font-size: 14px; color: var(--lumiere-2); font-variant-numeric: tabular-nums; }
.collection__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tuile {
  display: grid; justify-items: center; align-content: start; gap: 5px;
  padding: 16px 6px 14px; border-radius: 14px;
  background: rgba(238, 241, 248, .03);
  border: 1px solid transparent;
  text-align: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
}
.tuile:hover { background: rgba(238, 241, 248, .06); border-color: rgba(238, 241, 248, .16); transform: translateY(-3px); }
/* la médaille du jeu : sa couronne dit le palier atteint */
.tuile__ecu { width: 58px; height: 58px; margin-bottom: 6px; display: block; transition: transform .6s var(--ease); }
.tuile:hover .tuile__ecu { transform: translateY(-2px) rotate(-6deg) scale(1.05); }
.ico { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.ico--bronze { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)) drop-shadow(0 0 10px rgba(201, 138, 85, .3)); }
.ico--argent { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(200, 212, 230, .32)); }
.ico--or { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(231, 195, 93, .5)); }
.ico--platine { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 20px rgba(214, 228, 250, .55)); }
.ico--cache { opacity: .8; }
.tuile__nom { font-family: var(--serif); font-size: 16px; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.tuile__rec { font-family: var(--sans); font-size: 12px; color: var(--lumiere-2); line-height: 1.3; font-variant-numeric: tabular-nums; }
.tuile__pips { display: flex; gap: 3px; margin-top: 4px; }
.tuile__pips i { width: 12px; height: 3px; border-radius: 3px; background: rgba(238, 241, 248, .14); }
.tuile__pips i.bronze { background: var(--bronze); }
.tuile__pips i.argent { background: var(--argent); }
.tuile__pips i.or { background: var(--or); }
.tuile--cache .tuile__rec { color: var(--lumiere-3); }

.platine { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--filet-nuit); }
/* le platine : éteint et gravé tant qu'il n'est pas obtenu, puis il brille */
.platine__ecu { display: block; width: 64px; height: 64px; filter: grayscale(1) brightness(.55) contrast(.9); opacity: .7; transition: filter 1.2s var(--ease), opacity 1.2s var(--ease); }
.platine.est-obtenu .platine__ecu { filter: none; opacity: 1; animation: platine-eclat 3.6s var(--ease) infinite; }
@keyframes platine-eclat { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.04) rotate(-3deg); } }
.platine__nom { font-family: var(--serif); font-size: 20px; letter-spacing: -.01em; }
.platine__etat { margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--lumiere-2); }
.platine__jauge { margin-top: 10px; height: 4px; border-radius: 4px; background: rgba(238, 241, 248, .1); overflow: hidden; }
.platine__jauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #cfe0f2, #fff); transition: width 1s var(--ease); }

/* ─────────── le classement ─────────── */
.classement { display: flex; flex-direction: column; min-height: 0; }
.classement__onglets {
  display: flex; gap: 6px; flex: none;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--filet-nuit);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.classement__onglets::-webkit-scrollbar { display: none; }
.cls__o {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--filet-nuit); color: var(--lumiere-2);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.cls__o:hover { color: var(--lumiere); border-color: rgba(238, 241, 248, .3); }
.cls__o[aria-selected="true"] { background: var(--lumiere); color: var(--nuit); border-color: var(--lumiere); }

.classement__corps {
  position: relative;
  height: 420px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(238, 241, 248, .2) transparent;
}
.cls__attente { padding: 36px 4px; color: var(--lumiere-2); font-family: var(--serif); font-style: italic; font-size: 18px; }
.cls__l {
  display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 11px 6px; border-bottom: 1px solid var(--filet-nuit);
  font-family: var(--sans);
}
.cls__r { font-weight: 800; font-variation-settings: 'wdth' 125; font-size: 18px; color: var(--lumiere-3); font-variant-numeric: tabular-nums; }
.cls__l:nth-child(1) .cls__r { color: var(--or); }
.cls__l:nth-child(2) .cls__r { color: var(--argent); }
.cls__l:nth-child(3) .cls__r { color: var(--bronze); }
.cls__av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--nuit-3); }
.cls__p { font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls__p em { font-style: normal; font-size: 12px; font-weight: 450; color: var(--bleu-pale); margin-left: 8px; }
.cls__m { display: flex; gap: 6px; }
.med { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--lumiere-2); font-variant-numeric: tabular-nums; }
.med i { width: 8px; height: 8px; border-radius: 50%; }
.med--or i { background: var(--or); }
.med--argent i { background: var(--argent); }
.med--bronze i { background: var(--bronze); }
.med--platine { padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #fff, #cfe0f2 45%, #8fa9c4); color: #1B2B40; }
.cls__s { font-weight: 800; font-variation-settings: 'wdth' 118; font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cls__s small { font-weight: 450; font-size: 12px; font-variation-settings: 'wdth' 100; color: var(--lumiere-2); margin-left: 4px; }
.cls__l.est-moi { background: linear-gradient(90deg, rgba(31, 69, 255, .18), transparent); }
.cls__l.cls__vous { position: sticky; bottom: 0; background: var(--nuit-2); border-top: 1px solid var(--filet-nuit); }

@media (max-width: 960px) {
  .tableau__grille { grid-template-columns: minmax(0, 1fr); }
  .tableau__tete { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .collection__grille { gap: 6px; }
  .tuile { padding: 12px 2px 10px; }
  .tuile__ecu { width: 48px; height: 48px; }
  .tuile__nom { font-size: 12.5px; }
  .tuile__rec { display: none; }
  .classement__corps { height: 56vh; height: 56svh; }
  .cls__l { grid-template-columns: 26px 30px minmax(0, 1fr) auto; gap: 10px; }
  .cls__m { display: none; }
  .cls__av { width: 30px; height: 30px; }
  .cls__p em { display: block; margin: 2px 0 0; }
  .cls__s { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════
   LES JEUX — l'accès direct. Une carte par jeu, à sa couleur ;
   les rangées se centrent, quel que soit le nombre de jeux.
   ══════════════════════════════════════════════════════════ */
.acces { position: relative; padding: calc(var(--R) * 1.5) var(--g) calc(var(--R) * 4); }
.acces__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; margin-bottom: calc(var(--R) * 1.25); }
.acces__titre { font-weight: 300; font-size: clamp(48px, 6.5vw, 104px); line-height: .92; letter-spacing: -.04em; font-variation-settings: 'opsz' 72; }
.acces__intro { font-style: italic; font-size: 20px; color: var(--lumiere-2); padding-bottom: .5em; }
.acces__grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.aj {
  --accent-rgb: 115, 144, 255;
  position: relative;
  flex: 1 1 150px; max-width: 220px; min-height: 236px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 14px 18px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb), .2), transparent 62%),
    rgba(238, 241, 248, .025);
  border: 1px solid rgba(var(--accent-rgb), .22);
  transition: transform .5s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.aj:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 30px 70px -36px rgba(var(--accent-rgb), .95); }
.aj:active { transform: scale(.98); }
.aj__ico { display: block; width: 68px; height: 68px; margin-bottom: 6px; transition: transform .6s var(--ease); }
.aj:hover .aj__ico { transform: translateY(-2px) rotate(-6deg) scale(1.05); }
.aj__nom { font-family: var(--sans); font-weight: 750; font-variation-settings: 'wdth' 112; font-size: 16.5px; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.aj__rec { font-family: var(--sans); font-size: 12.5px; line-height: 1.35; color: var(--lumiere-2); font-variant-numeric: tabular-nums; }
.aj__pips { display: flex; gap: 4px; }
.aj__pips i { width: 14px; height: 3px; border-radius: 3px; background: rgba(238, 241, 248, .14); }
.aj__pips i.bronze { background: var(--bronze); }
.aj__pips i.argent { background: var(--argent); }
.aj__pips i.or { background: var(--or); }
.aj__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: var(--accent); color: #07080E;
  font-family: var(--sans); font-weight: 700; font-size: 13.5px; font-variation-settings: 'wdth' 110;
}
.aj__go i { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.aj--cache { --accent: var(--lumiere-2); --accent-rgb: 163, 171, 192; }
.aj--cache .aj__go { background: transparent; color: var(--lumiere-2); box-shadow: inset 0 0 0 1px var(--filet-nuit); }
