/* Page Format & classement — mise en page dédiée (chargée uniquement par format.html). */

.fmt-eyebrow {
  font-family: "Oxanium", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem; color: var(--accent-2); margin-bottom: 10px;
}

/* ============ Chiffres clés ============ */
.fmt-stats {
  list-style: none; margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.fmt-stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px 26px;
}
.fmt-stat::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.18), transparent 70%); pointer-events: none;
}
.fmt-stat-value {
  display: block;
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 2.8rem; line-height: 1;
  background: linear-gradient(120deg, var(--accent), #ffb066);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fmt-stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

/* ============ Points : trois tuiles ============ */
.fmt-points {
  list-style: none; margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.fmt-point {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fmt-point:hover { transform: translateY(-4px); }
.fmt-point::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone, var(--accent)); }
.fmt-point--0 { --tone: var(--bad); }
.fmt-point--1 { --tone: #f2c94c; }
.fmt-point--3 { --tone: var(--ok); }
.fmt-point:hover { border-color: var(--tone); }
.fmt-point-pts {
  display: flex; align-items: baseline; gap: 6px;
  font-family: "Oxanium", sans-serif; font-weight: 800; line-height: 1;
  color: var(--tone);
}
.fmt-point-pts b { font-size: 3.4rem; }
.fmt-point-pts span { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.fmt-point-desc { margin-top: 14px; color: var(--text); font-weight: 600; }
.fmt-point-note { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }

/* ============ Qualification : étapes ============ */
.fmt-steps { list-style: none; margin-top: 36px; display: grid; gap: 16px; counter-reset: fmt-step; }
.fmt-step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px;
}
.fmt-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 1.3rem;
  background: rgba(34, 211, 238, 0.12); color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.fmt-step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.fmt-step p { color: var(--muted); }
.fmt-step:not(:last-child)::after {
  content: ""; position: absolute; left: 51px; bottom: -18px; width: 2px; height: 16px;
  background: linear-gradient(var(--accent-2), transparent);
}

/* ============ Finale : BO3 ============ */
.fmt-bo3 {
  list-style: none; margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.fmt-bo3 li {
  position: relative; text-align: center;
  background: var(--bg); border: 1px dashed var(--border); border-radius: 16px;
  padding: 22px 12px;
  font-family: "Oxanium", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.88rem; color: var(--muted);
}
.fmt-bo3 li b { display: block; font-size: 1.5rem; color: var(--text); margin-bottom: 4px; }
.fmt-bo3 li:first-child, .fmt-bo3 li:nth-child(2) { border-style: solid; border-color: rgba(255, 90, 31, 0.4); }
.fmt-bo3-win { margin-top: 18px; text-align: center; color: var(--muted); }
.fmt-bo3-win strong { color: var(--accent); font-family: "Oxanium", sans-serif; }

/* ============ Gagner une manche : deux cartes ============ */
.fmt-ways {
  list-style: none; margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.fmt-way {
  background: linear-gradient(160deg, rgba(255, 90, 31, 0.08), transparent 60%), var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 26px 26px 24px;
}
.fmt-way-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(255, 90, 31, 0.14); color: var(--accent);
}
.fmt-way-ic svg { width: 22px; height: 22px; }
.fmt-way h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fmt-way p { color: var(--muted); }

@media (max-width: 720px) {
  .fmt-bo3 { grid-template-columns: 1fr; }
  .fmt-step { grid-template-columns: 46px 1fr; padding: 18px; }
  .fmt-step-num { width: 46px; height: 46px; font-size: 1.1rem; }
  .fmt-step:not(:last-child)::after { left: 41px; }
}
