/* ============================================================
   WSWA — Page de test /classement-2/ (préfixe cl2-)
   Chargée uniquement par registre/classement.html (hors bundle main.min.css).
   Réutilise les titres de rubrique (.r2-section-title) et le héros (.wswa-pagehero).
   ============================================================ */

.cl2 {
  --cl2-ink: #1e293b;
  --cl2-muted: #64748b;
  --cl2-faint: #94a3b8;
  --cl2-orange: #f97316;
  --cl2-orange-soft: #fff4ea;
  --cl2-card: #fff;
  --cl2-tint: #f1f5f9;
  --cl2-radius: 20px;
  --cl2-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -14px rgba(15, 23, 42, .12);
}

.cl2 [hidden] { display: none !important; }

.cl2-sec { margin: 4.25rem 0 0; }
.cl2-strip { margin: 2.5rem 0 0; }
/* Bannière écosystème : navy du fil (.feed-promo-*), dupliqué ici car pages-feed.css n'est pas chargée sur cette page */
.cl2-sec--promo { margin-top: 5rem; margin-bottom: 1rem; }
.cl2-promo { display: flex; flex-direction: column; gap: .45rem; background: #0b1a44; border-radius: var(--cl2-radius); padding: 1.6rem 1.8rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.cl2-promo:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(11, 26, 68, .22); text-decoration: none; }
.cl2-promo .feed-promo-eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .55); }
.cl2-promo .feed-promo-title { font-size: 1.3rem; font-weight: 900; color: var(--cl2-orange); line-height: 1.3; }
.cl2-promo .feed-promo-body { font-size: .95rem; color: rgba(255, 255, 255, .85); line-height: 1.5; max-width: 62ch; }
.cl2-promo .feed-promo-cta { font-size: .88rem; font-weight: 700; color: #fff; margin-top: .6rem; }
@media (max-width: 720px) { .cl2-sec--promo { margin-top: 3.5rem; } .cl2-promo { padding: 1.3rem 1.25rem; } }
.cl2-sec .r2-section-head { margin-bottom: 1.5rem; }
.cl2-sec .r2-section-title { margin-top: 0; }

.cl2-empty { color: var(--cl2-muted); font-size: .92rem; padding: 1.25rem 0; list-style: none; }
.cl2-note { color: var(--cl2-muted); font-size: .85rem; margin: 0 0 1.1rem; }
.cl2-fine { color: var(--cl2-faint); font-size: .74rem; margin: 1.5rem 0 0; }
.cl2-flag { font-size: .95em; }

/* ── Avatars ── */
.cl2-av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; flex-shrink: 0; }
.cl2-av--sm { width: 30px; height: 30px; font-size: .78rem; }
.cl2-av--md { width: 44px; height: 44px; font-size: 1.05rem; }
.cl2-av--lg { width: 60px; height: 60px; font-size: 1.4rem; }
.cl2-av--xl { width: 84px; height: 84px; font-size: 2rem; }

/* ── Chips certification / score ── */
.cl2-cert { display: inline-block; font-size: .72rem; font-weight: 700; padding: .18rem .6rem; border-radius: 99px; color: var(--cert); background: color-mix(in srgb, var(--cert) 13%, #fff); }
.cl2-score { display: inline-block; font-size: .8rem; font-weight: 800; color: #c2410c; background: var(--cl2-orange-soft); border-radius: 99px; padding: .2rem .65rem; white-space: nowrap; }
.cl2-score--prov { color: var(--cl2-muted); background: var(--cl2-tint); }

/* ══ 1. Aujourd'hui ═════════════════════════════════════════════════════════ */
.cl2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.cl2-kpi { background: var(--cl2-card); border-radius: var(--cl2-radius); padding: 1.4rem 1.5rem; box-shadow: var(--cl2-shadow); }
.cl2-kpi--accent { background: linear-gradient(160deg, #fff 0%, var(--cl2-orange-soft) 100%); }
.cl2-kpi__val { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 900; line-height: 1; color: var(--cl2-ink); letter-spacing: -.02em; }
.cl2-kpi--accent .cl2-kpi__val { color: var(--cl2-orange); }
.cl2-kpi__val small, .cl2-stat__val small { font-size: .42em; font-weight: 700; color: var(--cl2-muted); letter-spacing: 0; }
.cl2-kpi__lbl { margin-top: .55rem; font-size: .85rem; color: var(--cl2-muted); line-height: 1.35; }

.cl2-today { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.cl2-today__item { display: flex; align-items: center; gap: .8rem; background: var(--cl2-card); border-radius: 16px; padding: .75rem 1rem; box-shadow: var(--cl2-shadow); text-decoration: none; transition: transform .15s; }
.cl2-today__item:hover { transform: translateY(-2px); text-decoration: none; }
.cl2-today__body { min-width: 0; display: flex; flex-direction: column; }
.cl2-today__name { font-weight: 700; color: var(--cl2-ink); font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl2-today__meta { font-size: .78rem; color: var(--cl2-muted); }
.cl2-today__more { display: flex; align-items: center; justify-content: center; color: var(--cl2-muted); font-size: .85rem; }
.cl2-strava { color: #FC4C02; font-weight: 700; }
.cl2-nudge { margin-top: 1.25rem; font-size: .88rem; color: #92400e; background: var(--cl2-orange-soft); border-radius: 14px; padding: .8rem 1.1rem; }

/* ══ 2. Podium ══════════════════════════════════════════════════════════════ */
.cl2-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: end; padding-top: 1rem; }
.cl2-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; background: var(--cl2-card); border-radius: 24px; padding: 2.4rem 1.5rem 1.8rem; box-shadow: var(--cl2-shadow); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.cl2-pod:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 36px -16px rgba(15, 23, 42, .2); }
.cl2-pod__medal { position: absolute; top: -.95rem; left: 50%; transform: translateX(-50%); font-size: 2.1rem; line-height: 1; }
.cl2-pod .cl2-av { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--ring, #e2e8f0); }
.cl2-pod--1 { --ring: #f5b82e; padding-top: 3.1rem; padding-bottom: 2.4rem; background: linear-gradient(180deg, #fffaeb 0%, #fff 70%); }
.cl2-pod--2 { --ring: #b8c4d4; }
.cl2-pod--3 { --ring: #d9955c; }
.cl2-pod--1 .cl2-av--xl { width: 100px; height: 100px; font-size: 2.4rem; }
.cl2-pod__name { font-weight: 800; font-size: 1.08rem; color: var(--cl2-ink); line-height: 1.25; overflow-wrap: anywhere; }
.cl2-pod__days { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--cl2-ink); margin-top: .35rem; }
.cl2-pod--1 .cl2-pod__days { font-size: 3.6rem; color: var(--cl2-orange); }
.cl2-pod__days small { font-size: .3em; font-weight: 700; color: var(--cl2-muted); letter-spacing: 0; }
.cl2-pod__facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .9rem; font-size: .85rem; color: var(--cl2-muted); }
.cl2-pod__facts b { color: var(--cl2-ink); }

/* ══ 3. Marcheurs ═══════════════════════════════════════════════════════════ */
.cl2-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cl2-tabs { display: inline-flex; gap: .25rem; background: var(--cl2-tint); padding: .25rem; border-radius: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cl2-tabs--wide { margin-bottom: 1.5rem; }
.cl2-tab { appearance: none; border: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 700; color: var(--cl2-muted); padding: .6rem 1.1rem; border-radius: 11px; cursor: pointer; white-space: nowrap; min-height: 44px; transition: background .15s, color .15s; }
.cl2-tab:hover { color: var(--cl2-ink); }
.cl2-tab.is-active { background: #fff; color: var(--cl2-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.cl2-tab__n { margin-left: .3rem; font-size: .72rem; font-weight: 800; color: var(--cl2-orange); }

.cl2-search { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 12px; padding: 0 .9rem; min-height: 44px; box-shadow: var(--cl2-shadow); color: var(--cl2-muted); flex: 0 1 280px; }
.cl2-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--cl2-ink); width: 100%; }
.cl2-search:focus-within { box-shadow: 0 0 0 2px var(--cl2-orange); }

.cl2-chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.cl2-chip { appearance: none; border: 0; font: inherit; font-size: .8rem; font-weight: 700; color: var(--cl2-muted); background: var(--cl2-tint); border-radius: 99px; padding: .45rem .95rem; min-height: 36px; cursor: pointer; transition: background .15s, color .15s; }
.cl2-chip:hover { color: var(--cl2-ink); }
.cl2-chip.is-active { background: var(--cl2-ink); color: #fff; }

.cl2-list, .cl2-rlist { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.cl2-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1.5fr) minmax(0, 1.1fr) 4.6rem; align-items: center; gap: 1rem; background: var(--cl2-card); border-radius: 18px; padding: .9rem 1.25rem; box-shadow: var(--cl2-shadow); }
.cl2-row--free { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
.cl2-row__rank { font-weight: 800; font-size: .95rem; color: var(--cl2-faint); text-align: center; font-variant-numeric: tabular-nums; }
.cl2-row__who { display: flex; align-items: center; gap: .85rem; min-width: 0; text-decoration: none; color: inherit; }
.cl2-row__who:hover { text-decoration: none; }
.cl2-row__who:hover .cl2-row__name { color: var(--cl2-orange); }
.cl2-row__id { display: flex; flex-direction: column; min-width: 0; }
.cl2-row__name { font-weight: 700; color: var(--cl2-ink); font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl2-row__meta { font-size: .8rem; color: var(--cl2-muted); }
.cl2-ok { color: #15803d; font-weight: 600; }
.cl2-today-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: .45rem; vertical-align: middle; }
.cl2-row__next { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.cl2-next__lbl { font-size: .78rem; color: var(--cl2-muted); }
.cl2-next__lbl b { color: var(--cl2-ink); }
.cl2-bar { display: block; height: 6px; border-radius: 99px; background: var(--cl2-tint); overflow: hidden; }
.cl2-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fdba74, var(--cl2-orange)); }
.cl2-row__score { justify-self: end; }

.cl2-more-btn { appearance: none; display: block; margin: 1.25rem auto 0; border: 0; font: inherit; font-size: .88rem; font-weight: 700; color: var(--cl2-ink); background: #fff; border-radius: 99px; padding: .75rem 1.6rem; min-height: 44px; box-shadow: var(--cl2-shadow); cursor: pointer; }
.cl2-more-btn:hover { color: var(--cl2-orange); }

/* ══ 4. Classements ═════════════════════════════════════════════════════════ */
.cl2-mine { font-size: .88rem; color: #92400e; background: var(--cl2-orange-soft); border-radius: 12px; padding: .65rem 1rem; margin: 0 0 1.25rem; }
.cl2-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.5rem; align-items: end; }
.cl2-trio__card { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; background: var(--cl2-card); border-radius: 20px; padding: 1.3rem 1rem 1.2rem; box-shadow: var(--cl2-shadow); text-decoration: none; color: inherit; }
.cl2-trio__card:hover { text-decoration: none; }
.cl2-trio__card--1 { padding-top: 1.7rem; padding-bottom: 1.6rem; background: linear-gradient(180deg, #fffaeb 0%, #fff 75%); }
.cl2-trio__medal { font-size: 1.6rem; line-height: 1; }
.cl2-trio__name { font-weight: 800; font-size: .98rem; color: var(--cl2-ink); overflow-wrap: anywhere; }
.cl2-trio__val { font-size: 1.5rem; font-weight: 900; color: var(--cl2-ink); letter-spacing: -.02em; }
.cl2-trio__card--1 .cl2-trio__val { color: var(--cl2-orange); font-size: 1.75rem; }
.cl2-trio__val small { font-size: .5em; font-weight: 700; color: var(--cl2-muted); }
.cl2-trio__meta { font-size: .76rem; color: var(--cl2-muted); }

.cl2-rrow { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; background: var(--cl2-card); border-radius: 14px; padding: .6rem 1.1rem; box-shadow: var(--cl2-shadow); }
.cl2-rrow__val { font-weight: 800; color: var(--cl2-ink); font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl2-rlist + .cl2-full, .cl2-full[open] .cl2-rlist { margin-top: .6rem; }
.cl2-full { margin-top: 1rem; }
.cl2-full summary { list-style: none; cursor: pointer; text-align: center; font-size: .88rem; font-weight: 700; color: var(--cl2-ink); background: #fff; border-radius: 99px; padding: .75rem 1.6rem; min-height: 44px; width: fit-content; margin: 0 auto; box-shadow: var(--cl2-shadow); }
.cl2-full summary::-webkit-details-marker { display: none; }
.cl2-full summary:hover { color: var(--cl2-orange); }
.cl2-full__close { display: none; }
.cl2-full[open] .cl2-full__open { display: none; }
.cl2-full[open] .cl2-full__close { display: inline; }
.cl2-full[open] summary { margin-bottom: 1rem; }

/* ══ 5. Chiffres ════════════════════════════════════════════════════════════ */
.cl2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem 2rem; padding: 1rem 0 0; }
.cl2-stat__val { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--cl2-ink); }
.cl2-stat--hero .cl2-stat__val { color: var(--cl2-orange); }
.cl2-stat__lbl { margin-top: .5rem; font-size: .88rem; color: var(--cl2-muted); line-height: 1.35; }
.cl2-countries { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem; font-size: .9rem; color: var(--cl2-muted); }
.cl2-countries b { color: var(--cl2-ink); }
.cl2-countries__item { white-space: nowrap; }
.cl2-countries i { font-style: normal; font-size: .78rem; margin-left: .15rem; }

/* ══ Responsive ═════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .cl2-row { grid-template-columns: 1.8rem minmax(0, 1fr) auto; row-gap: .7rem; }
  .cl2-row__next { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  .cl2-sec { margin-top: 3.25rem; }
  .cl2-today { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .cl2-today__item { flex-direction: column; align-items: flex-start; gap: .45rem; padding: .8rem .9rem; width: 100%; }
  .cl2-today__item .cl2-av--md { width: 36px; height: 36px; font-size: .92rem; }
  .cl2-today__body { width: 100%; }
  .cl2-today__more { grid-column: 1 / -1; }
  .cl2-podium { grid-template-columns: 1fr; gap: 1.6rem; }
  .cl2-pod { padding: 2.2rem 1.25rem 1.5rem; }
  .cl2-pod--1 { order: -1; }
  .cl2-pod__days, .cl2-pod--1 .cl2-pod__days { font-size: 2.6rem; }
  .cl2-trio { grid-template-columns: 1fr; gap: .75rem; }
  .cl2-trio__card, .cl2-trio__card--1 { display: grid; grid-template-columns: 1.9rem 44px minmax(0, 1fr); column-gap: .75rem; row-gap: .1rem; align-items: center; text-align: left; padding: .9rem 1.1rem; }
  .cl2-trio__card--1 { order: -1; }
  .cl2-trio__medal, .cl2-trio__card .cl2-av { grid-row: 1 / span 3; }
  .cl2-trio__card .cl2-av--lg { width: 44px; height: 44px; font-size: 1.05rem; }
  .cl2-trio__name, .cl2-trio__val, .cl2-trio__meta { grid-column: 3; }
  .cl2-trio__val, .cl2-trio__card--1 .cl2-trio__val { font-size: 1.15rem; }
  .cl2-row__meta .cl2-ok { display: none; }
  .cl2-rrow .cl2-row__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cl2-toolbar { flex-direction: column; align-items: stretch; }
  .cl2-tabs { display: flex; }
  .cl2-tab { flex: 1; padding: .6rem .5rem; }
  .cl2-search { flex-basis: auto; }
  .cl2-row { padding: .8rem 1rem; gap: .75rem; }
  .cl2-row--free { grid-template-columns: 1.8rem minmax(0, 1fr) auto; }
  .cl2-row__score { align-self: start; }
  .cl2-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
}
@media (max-width: 420px) {
  .cl2-kpis { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .cl2-kpi { padding: 1.1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cl2-pod, .cl2-today__item { transition: none; }
  .cl2-pod:hover, .cl2-today__item:hover { transform: none; }
}
