/*
 * 8s-6s (DA2) : même langage que « Choisis ton mode » sur la page Jouer.
 * Grandes cartes, image en plein fond, badge du format, places de la file en points, barre d'action en bas.
 */
html.da2 .tete-e { display: grid; gap: 4px; margin-bottom: 16px; }
html.da2 .tete-e h1 { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--f-titre); }
html.da2 .sous-titre-e { margin: 0; color: var(--gris); font-size: 14px; }

html.da2 .formats-e { gap: 14px; }
html.da2 .format-e {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding: 0;
  min-height: 0; height: max(320px, calc(100dvh - var(--haut-entete) - 300px));
  background: var(--plaque); isolation: isolate;
}
html.da2 .format-e::after {
  content: ""; position: absolute; z-index: -1; inset: 35% 0 0;
  background: linear-gradient(to top, rgb(9 14 25 / .97) 18%, rgb(9 14 25 / .72) 55%, transparent);
}
.fond-format-e { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
html.da2 .format-e:hover:not(:disabled) .fond-format-e { transform: scale(1.04); }

.badge-format-e {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: baseline; gap: 7px;
  padding: 6px 12px 6px 10px; background: rgb(9 14 25 / .78); backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / .12); border-radius: 12px;
  color: rgb(255 255 255 / .75); font: 700 13px/1 var(--f-titre);
}
.badge-format-e b { color: #fff; font: 900 24px/1 var(--f-titre); }
html.da2 .format-e[aria-pressed="true"] .badge-format-e { background: var(--rouge); border-color: transparent; color: rgb(255 255 255 / .85); }

.coche-format-e { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border: 2px solid rgb(255 255 255 / .45); border-radius: 50%; background: rgb(9 14 25 / .4); }
html.da2 .format-e[aria-pressed="true"] .coche-format-e { border-color: var(--rouge); background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }

html.da2 .titre-format-e { padding: 0 16px; }
html.da2 .titre-format-e span { font: 800 clamp(20px, 1.8vw, 26px)/1.1 var(--f-titre); text-shadow: 0 2px 8px rgb(0 0 0 / .6); }
html.da2 .infos-format-e { gap: 9px; padding: 8px 16px 16px; font-weight: 500; }
.rang-format-e { display: flex; justify-content: space-between; align-items: baseline; color: var(--c, var(--gris)); font: 700 14px/1.2 var(--f-titre); }
.rang-format-e b { color: #fff; font: 800 18px/1 var(--f-chiffre, var(--f-titre)); }
.places-format-e { display: flex; gap: 4px; }
.places-format-e i { flex: 1; height: 5px; background: rgb(255 255 255 / .16); border-radius: 99px; }
.places-format-e i.prise { background: var(--ok); box-shadow: 0 0 8px rgb(52 211 153 / .5); }
.file-format-e { color: rgb(255 255 255 / .72); font-size: 12px; }
.file-format-e b { color: #fff; }

/* Barre d'action : même panneau que « Lancer » sur la page Jouer. */
html.da2 .action-e {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 16px;
  margin-top: 16px; padding: 12px 16px; text-align: left;
  background: rgb(18 27 42 / .86); backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .07); border-radius: 18px;
}
html.da2 .action-e .note-e { grid-column: 1; justify-self: end; text-align: right; }
html.da2 .action-e .lancer-e { grid-column: 2; }

/* Classement du format : un panneau, comme les autres listes. */
html.da2 .classement-e { padding: 18px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 18px; }
html.da2 .classement-e h2 { font: 800 22px/1.2 var(--f-titre); }

@media (max-width: 1100px) {
  html.da2 .format-e { height: 300px; }
}
@media (max-width: 767px) {
  html.da2 .formats-e { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html.da2 .format-e { height: 210px; }
  .badge-format-e { top: 10px; left: 10px; padding: 5px 9px; }
  .badge-format-e b { font-size: 19px; }
  .coche-format-e { top: 10px; right: 10px; width: 22px; height: 22px; }
  html.da2 .titre-format-e { padding: 0 12px; }
  html.da2 .infos-format-e { padding: 6px 12px 12px; gap: 7px; }
  .rang-format-e { font-size: 12px; }
  .rang-format-e b { font-size: 15px; }
  html.da2 .action-e { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  html.da2 .action-e .note-e, html.da2 .action-e .lancer-e { grid-column: 1; }
  html.da2 .action-e .lancer-e { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fond-format-e { transition: none; } html.da2 .format-e:hover .fond-format-e { transform: none; } }
