/*
 * TopTeams (/topteams/, inc/topteams.php) : accueil, exploration, fiche d'équipe, constructeur, noteurs.
 * Charte PF. : héros noir constant + jaune ; le corps suit les jetons (tokens.css / pf-brand.css), clair ou sombre.
 * Les couleurs de type viennent de --type-<slug> (tokens.css).
 */

.tt { --tt-noir: #0A0A0A; --tt-graphite: #1C1C1E; --tt-jaune: #FFCC00; --tt-S: #FF4F6D; --tt-A: #FF9A3C; --tt-B: #F7C531; --tt-C: #22C493;
    --tt-line: var(--pfb-ligne); --tt-fill: var(--pfb-surface-2); --tt-page: var(--pfb-surface-2);
    background: var(--tt-page); padding-bottom: 64px; color: var(--ink); }
/* Sombre : page noire, surfaces graphite (jetons), filets et aplats clairs translucides pour garder le contraste. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tt { --tt-line: rgba(255, 255, 255, .14); --tt-fill: rgba(255, 255, 255, .06); --tt-page: var(--pfb-fond); }
}
:root[data-theme="dark"] .tt { --tt-line: rgba(255, 255, 255, .14); --tt-fill: rgba(255, 255, 255, .06); --tt-page: var(--pfb-fond); }
.tt a { text-underline-offset: 3px; }
.tt :where(h1, h2, h3) { text-wrap: balance; }

/* ---------- En-tête ---------- */
.tt-hero { position: relative; overflow: hidden; padding: 22px 0 30px; color: #FFFFFF;
    background:
        radial-gradient(700px 320px at 92% -10%, rgba(255, 204, 0, .22), transparent 62%),
        repeating-linear-gradient(60deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 26px),
        repeating-linear-gradient(-60deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 26px),
        var(--tt-noir); }
.tt-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tt-jaune); }
.tt-hero a { color: #FFFFFF; }
.tt-hero .breadcrumb, .tt-hero .pf-breadcrumb { color: rgba(255, 255, 255, .7); font-size: 13px; }
.tt-hero .breadcrumb a, .tt-hero .pf-breadcrumb a { color: rgba(255, 255, 255, .85); }
.tt-hero--compact { padding-bottom: 24px; }
.tt-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: center; }
.tt-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tt-kicker span { padding: 4px 11px; border-radius: var(--r-full); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tt-kicker span:first-child { background: var(--tt-jaune); border-color: var(--tt-jaune); color: var(--tt-noir); }
.tt-title { margin: 6px 0 0; max-width: 24ch; font-size: clamp(27px, 4vw, 44px); font-weight: 900; line-height: 1.06; letter-spacing: -.025em; color: #FFFFFF; }
.tt-lead { max-width: 68ch; margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.tt-lead .tt-pill { vertical-align: 2px; }
.tt-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

.tt-showcase { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: background .15s ease, transform .15s ease; }
.tt-showcase:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.tt-showcase__label { justify-self: start; padding: 3px 10px; border-radius: var(--r-full); background: var(--tt-jaune); color: var(--tt-noir); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tt-showcase__mons { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
.tt-showcase__mons img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.tt-showcase__name { font-size: 19px; font-weight: 800; }
.tt-showcase__by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

/* ---------- Boutons ---------- */
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: var(--r-full); border: 2px solid var(--ink); background: var(--ink); color: var(--white); font: inherit; font-size: 14.5px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.tt .tt-btn { color: var(--white); }
.tt-btn:hover { transform: translateY(-1px); }
.tt-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.tt .tt-btn--yellow, .tt-btn--yellow { background: var(--tt-jaune); border-color: var(--tt-jaune); color: var(--tt-noir); }
.tt .tt-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #FFFFFF; }
.tt .tt-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.tt .tt-btn--line { background: transparent; color: var(--ink); border-color: var(--tt-line); }
.tt .tt-btn--line:hover { border-color: var(--ink); }
.tt .tt-btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tt .tt-btn--danger { background: transparent; border-color: var(--red); color: var(--red); }
.tt-btn--big { min-height: 50px; font-size: 16px; }
.tt-btn--small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.tt-more { font-weight: 800; color: var(--ink); white-space: nowrap; }
.tt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }

/* ---------- Corps, onglets, sections ---------- */
.tt-body { padding-top: 18px; }
.tt-tabs { display: flex; gap: 6px; margin: 0 0 22px; padding: 0 0 2px; overflow-x: auto; scrollbar-width: thin; }
.tt-tabs a { flex: 0 0 auto; padding: 8px 15px; border-radius: var(--r-full); background: var(--white); border: 1px solid var(--tt-line); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tt-tabs a:hover { border-color: var(--ink); }
.tt-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tt-tabs a.is-cta:not([aria-current]) { background: var(--tt-jaune); border-color: var(--tt-jaune); color: var(--tt-noir); }
.tt-sec { margin: 0 0 38px; }
.tt-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 18px; margin-bottom: 14px; }
.tt-sec__head h2, .tt-box h2 { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.tt-sec__head p { grid-column: 1 / -1; margin: 0; max-width: 72ch; color: var(--ink-mid); font-size: 15px; }
.tt-box { padding: 18px 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); }
.tt-box h2 { font-size: 19px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-box h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 800; }
.tt-help { margin: 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-light); }
.tt-note { margin: -8px 0 18px; color: var(--ink-mid); }
.tt-prose { font-size: 15.5px; line-height: 1.65; color: var(--ink-mid); overflow-wrap: anywhere; }
.tt-prose p { margin: 0 0 .8em; }
.tt-prose h2 { margin: 1.4em 0 .5em; font-size: 21px; color: var(--ink); }
.tt-prose ul { padding-left: 1.2em; }
.tt-sign { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-light); }

/* ---------- Puces, étoiles, types ---------- */
.tt-pill { display: inline-block; padding: 2px 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.tt-pill.is-current { background: var(--tt-jaune); color: var(--tt-noir); }
.tt-pill.is-archive { background: var(--tt-fill); color: var(--ink-mid); border: 1px solid var(--tt-line); }
.tt-hero .tt-pill.is-archive { background: rgba(255, 255, 255, .12); color: #FFFFFF; border-color: rgba(255, 255, 255, .25); }
.tt-stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; letter-spacing: 0; }
.tt-stars i { font-style: normal; color: var(--tt-line); }
.tt-stars i.is-on { color: #F2A900; }
.tt-hero .tt-stars i { color: rgba(255, 255, 255, .25); }
.tt-hero .tt-stars i.is-on { color: var(--tt-jaune); }
.tt-chip { display: inline-block; padding: 2px 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tt-chip--pending { background: var(--tt-fill); color: var(--ink-mid); border: 1px dashed var(--ink-light); }
.tt-chip--off { background: var(--red); color: #FFFFFF; }
.tt-chip--feat { background: var(--tt-jaune); color: var(--tt-noir); }
.tt-hero .tt-chip--pending { background: transparent; color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .45); }
.tt-type { display: inline-block; padding: 2px 9px; border-radius: var(--r-full); background: var(--t); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1.5; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); white-space: nowrap; }
.tt-type--sm { padding: 0 7px; font-size: 11px; }

/* ---------- Cartes d'équipe ---------- */
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tt-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px 13px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-xs); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tt-card:hover, .tt-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-light); }
.tt-card.is-featured { border-top: 4px solid var(--tt-jaune); }
.tt-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tt-card__top .tt-stars, .tt-card__top .tt-chip--pending { margin-left: auto; }
.tt-card__feat { font-size: 11.5px; font-weight: 800; color: var(--ink-mid); }
.tt-card__mons { display: grid; grid-template-columns: repeat(6, 1fr); margin: 4px -4px 2px; }
.tt-card__mons img { width: 100%; max-width: 56px; height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; }
.tt-card__name { font-size: 16.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.tt-card__by { font-size: 13.5px; color: var(--ink-mid); }
.tt-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--ink-light); font-variant-numeric: tabular-nums; }

/* ---------- Accueil ---------- */
.tt-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin: 0 0 34px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); border-left: 6px solid var(--tt-jaune); }
.tt-now__k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-light); }
.tt-now h2 { margin: 2px 0 4px; font-size: 21px; font-weight: 800; }
.tt-now p { margin: 0; color: var(--ink-mid); font-size: 15px; line-height: 1.5; }
.tt-now__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tt-usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tt-usage a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 12px 8px 10px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--tt-line); color: var(--ink); text-decoration: none; text-align: center; }
.tt-usage a:hover { border-color: var(--ink-light); }
.tt-usage b { position: absolute; top: 8px; left: 10px; font-size: 13px; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.tt-usage img { width: 56px; height: 56px; object-fit: contain; }
.tt-usage__name { font-weight: 800; font-size: 14.5px; }
.tt-usage__types { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.tt-usage small { font-size: 12px; color: var(--ink-light); }
.tt-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tt-formats__group { padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--tt-line); }
.tt-formats__group h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink-mid); }
.tt-formats__group p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tt-chipl { padding: 5px 12px; border-radius: var(--r-full); border: 1px solid var(--tt-line); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.tt-chipl:hover { border-color: var(--ink); }
.tt-chipl.is-current { background: var(--tt-jaune); border-color: var(--tt-jaune); color: var(--tt-noir); }
.tt-archives__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; }
.tt-archives__list a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--tt-line); color: var(--ink); text-decoration: none; }
.tt-archives__list a:hover { border-color: var(--ink-light); }
.tt-archives__list b { font-size: 18px; font-weight: 900; }
.tt-archives__list span { font-size: 14px; color: var(--ink-mid); }
.tt-archives__list small { font-size: 12.5px; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.tt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tt-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--tt-line); font-size: 15px; line-height: 1.5; color: var(--ink-mid); }
.tt-steps b { flex: 0 0 34px; display: grid; place-items: center; height: 34px; border-radius: 50%; background: var(--tt-jaune); color: var(--tt-noir); font-weight: 900; }
.tt-steps strong { color: var(--ink); }
.tt-faq details { padding: 12px 0; border-bottom: 1px solid var(--tt-line); }
.tt-faq summary { cursor: pointer; font-weight: 800; font-size: 16px; color: var(--ink); }
.tt-faq p { margin: 8px 0 0; max-width: 75ch; color: var(--ink-mid); line-height: 1.6; }

/* ---------- Exploration ---------- */
.tt-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 22px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); }
.tt-filters .tt-field { flex: 1 1 170px; min-width: 0; }
.tt-field { display: grid; gap: 5px; min-width: 0; }
.tt-field > span { font-size: 13px; font-weight: 800; color: var(--ink-mid); }
.tt-field small { font-weight: 500; color: var(--ink-light); }
.tt-field input, .tt-field select, .tt-field textarea, .tt-input { width: 100%; min-height: 40px; padding: 8px 11px; border-radius: var(--r-sm); border: 1px solid var(--tt-line); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; box-sizing: border-box; }
.tt-field textarea { min-height: 80px; line-height: 1.5; resize: vertical; }
.tt-field :focus-visible, .tt-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.tt-check, .tt-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tt-check input, .tt-radio input { width: 18px; height: 18px; accent-color: var(--ink); }
.tt-reset { align-self: center; font-size: 14px; font-weight: 700; color: var(--ink-mid); }
.tt-empty { padding: 30px 20px; border-radius: var(--r-lg); background: var(--white); border: 1px dashed var(--tt-line); text-align: center; color: var(--ink-mid); }
.tt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 0; }
.tt-pager a, .tt-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--tt-line); color: var(--ink); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.tt-pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Alertes ---------- */
.tt-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--tt-line); background: var(--white); color: var(--ink); font-size: 15px; line-height: 1.5; }
.tt-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.tt-alert--info { border-left: 5px solid var(--ink-light); }
.tt-alert--ok { border-left: 5px solid var(--green); }
.tt-alert--error { border-left: 5px solid var(--red); }

/* ---------- Fiche d'équipe ---------- */
.tt-hero--team { padding-bottom: 26px; }
.tt-team__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 2px; }
.tt-team__meta { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, .82); }
.tt-team__format { margin: 6px 0 0; max-width: 75ch; font-size: 14px; color: rgba(255, 255, 255, .66); }
.tt-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 640px; margin: 18px 0 0; }
.tt-strip a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--r-md); text-decoration: none; font-size: 12.5px; font-weight: 700; text-align: center; }
.tt-strip a:hover { background: rgba(255, 255, 255, .08); }
.tt-strip img { width: 100%; max-width: 72px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .45)); }
.tt-strip span { overflow-wrap: anywhere; }
.tt-team__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tt-like { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: var(--r-full); border: 2px solid rgba(255, 255, 255, .55); background: transparent; color: #FFFFFF; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.tt-like span { color: #FF6B8A; font-size: 17px; }
.tt-like.is-on { background: #FFFFFF; color: var(--tt-noir); border-color: #FFFFFF; }
.tt-like.is-on span { color: #E0245E; }
.tt-like:disabled { opacity: .6; cursor: default; }

.tt-team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 22px; align-items: start; }
.tt-team__main { display: grid; gap: 18px; min-width: 0; }
.tt-team__side { display: grid; gap: 16px; position: sticky; top: calc(var(--pfb-tetiere-h, 64px) + 16px); min-width: 0; }
.tt-box--eval { border-left: 6px solid var(--tt-jaune); }
.tt-review { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tt-line); }
.tt-review__head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.tt-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.tt-set { scroll-margin-top: 96px; display: grid; gap: 10px; align-content: start; padding: 16px 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); min-width: 0; }
.tt-set:target { box-shadow: 0 0 0 3px var(--tt-jaune); }
.tt-set__head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; }
.tt-set__head img { width: 88px; height: 88px; object-fit: contain; }
.tt-set h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.tt-set h3 a { color: var(--ink); text-decoration: none; }
.tt-set h3 a:hover { text-decoration: underline; }
.tt-shiny { color: #E6A700; }
.tt-set__sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-light); }
.tt-set__types { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.tt-set__tiers { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.tt-tier { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: var(--r-full); border: 1px solid var(--tt-line); font-size: 11.5px; font-weight: 700; color: var(--ink-mid); text-decoration: none; }
.tt-tier b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; color: #FFFFFF; font-size: 11px; background: var(--tt-C); }
.tt-tier--S b { background: var(--tt-S); } .tt-tier--A b { background: var(--tt-A); } .tt-tier--B b { background: var(--tt-B); color: var(--tt-noir); }
.tt-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; }
.tt-specs div { min-width: 0; }
.tt-specs dt { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-light); }
.tt-specs dd { margin: 1px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tt-specs small { font-weight: 500; color: var(--ink-light); }
.tt-moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.tt-moves li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--tt-fill); font-size: 14px; font-weight: 700; min-width: 0; }
.tt-moves li span:first-child { flex: 1 1 100%; overflow-wrap: anywhere; }
.tt-moves small { font-size: 11.5px; font-weight: 600; color: var(--ink-light); }
.tt-evs { display: grid; gap: 4px; }
.tt-ev { display: grid; grid-template-columns: 74px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-mid); }
.tt-ev i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink-light) var(--w), var(--tt-fill) var(--w)); }
.tt-ev.is-up span { color: var(--green); } .tt-ev.is-down span { color: var(--red); }
.tt-ev b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.tt-set__strat { font-size: 14.5px; line-height: 1.6; color: var(--ink-mid); overflow-wrap: anywhere; }
.tt-set__strat p { margin: 0 0 .6em; }
.tt-set__eval { padding: 10px 12px; border-radius: var(--r-sm); background: var(--tt-fill); border-left: 4px solid var(--tt-jaune); font-size: 14px; line-height: 1.55; color: var(--ink-mid); }
.tt-code { width: 100%; box-sizing: border-box; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--tt-line); background: var(--tt-fill); color: var(--ink); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.tt-copied { font-weight: 800; color: var(--green); }
.tt-def { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tt-def th, .tt-def td { padding: 4px 6px; border-bottom: 1px solid var(--tt-line); text-align: center; }
.tt-def thead th { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-light); }
.tt-def tbody th { text-align: left; }
.tt-def tr.is-bad td:nth-child(2) { color: var(--red); font-weight: 900; }
.tt-def tr.is-good td:nth-child(3) { color: var(--green); font-weight: 900; }
.tt-box--mod { border-top: 4px solid var(--ink); }
.tt-box--mod details { margin: 10px 0 0; }
.tt-box--mod summary { cursor: pointer; font-weight: 800; font-size: 14.5px; }
.tt-box--mod details > * + * { margin-top: 8px; }
.tt-mod__msg { margin: 10px 0 0; font-size: 14px; color: var(--red); }
.tt-mini { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.tt-mini a { font-weight: 700; color: var(--ink); }

/* ---------- Mes équipes, noteurs ---------- */
.tt-mine { display: grid; gap: 6px; align-content: start; }
.tt-mine__note { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--white); border-left: 4px solid var(--red); font-size: 13.5px; color: var(--ink-mid); }
.tt-mine__act { margin: 0; font-size: 14px; font-weight: 800; }
.tt-settings { margin-bottom: 26px; }
.tt-queue { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--tt-line); border-radius: var(--r-md); overflow: hidden; font-size: 14.5px; }
.tt-queue th, .tt-queue td { padding: 10px 12px; border-bottom: 1px solid var(--tt-line); text-align: left; vertical-align: middle; }
.tt-queue thead th { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-light); }
.tt-queue td a { font-weight: 800; color: var(--ink); }
.tt-queue__mons { display: flex; margin-top: 2px; }
.tt-eval { display: grid; gap: 16px; max-width: 900px; }
.tt-eval__set { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); }
.tt-eval__mon { display: flex; gap: 12px; align-items: center; }
.tt-eval__mon div { display: grid; gap: 2px; }
.tt-eval__mon small { color: var(--ink-light); font-size: 13px; }
.tt-eval__strat { margin: 0; font-size: 14px; color: var(--ink-mid); font-style: italic; }
.tt-eval__note { display: grid; gap: 4px; margin: 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); }
.tt-eval__note legend { padding: 0 6px; font-weight: 800; }

/* ---------- Règlement ---------- */
.tt-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: start; }
.tt-rules .tt-prose { padding: 4px 24px 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); }
.tt-rules__stars { list-style: none; padding-left: 0 !important; }
.tt-rules__stars li { margin: 4px 0; }

/* ---------- Constructeur ---------- */
.tt-builder { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.tt-builder__meta { display: grid; gap: 14px; position: sticky; top: calc(var(--pfb-tetiere-h, 64px) + 16px); }
.tt-editor { display: grid; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--tt-line); min-width: 0; }
.tt-editor > summary { cursor: pointer; font-weight: 800; }
details.tt-editor:not([open]) { gap: 0; }
.tt-builder__errors.tt-alert { margin: 0; }
.tt-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tt-slot { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border-radius: var(--r-md); border: 2px dashed var(--tt-line); background: var(--tt-fill); color: var(--ink-light); font-size: 22px; font-weight: 800; cursor: pointer; }
.tt-slot img { width: 100%; height: 100%; object-fit: contain; }
.tt-slot.is-filled { border-style: solid; background: var(--white); }
.tt-slot.is-active { border-color: var(--ink); box-shadow: 0 0 0 3px var(--tt-jaune); }
.tt-editor__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.tt-editor__mon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: var(--r-lg); background: var(--tt-fill); font-size: 32px; font-weight: 900; color: var(--ink-light); }
.tt-editor__mon img { width: 92px; height: 92px; object-fit: contain; }
.tt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tt-ac { position: relative; }
.tt-ac__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--tt-line); box-shadow: var(--shadow-lg); }
.tt-ac__list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.tt-ac__list li span { flex: 1 1 auto; min-width: 0; }
.tt-ac__list li small { font-size: 12px; color: var(--ink-light); white-space: nowrap; }
.tt-ac__list li.is-hl { background: var(--tt-fill); }
.tt-ac__list li.is-off { opacity: .6; }
.tt-ac__list img { width: 34px; height: 34px; object-fit: contain; }
.tt-moves-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tt-evsum { font-variant-numeric: tabular-nums; }
.tt-evsum.is-over { color: var(--red); }
.tt-builder .tt-formats { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-builder .tt-formats a { padding: 4px 10px; border-radius: var(--r-full); border: 1px solid var(--tt-line); font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tt-evgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tt-evgrid label { display: grid; gap: 3px; font-size: 12px; font-weight: 800; color: var(--ink-mid); }
.tt-evgrid .tt-input { padding: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.tt-builder .tt-evs .tt-ev { grid-template-columns: 74px minmax(0, 1fr) 38px; }
.tt-builder .tt-ev__bar { display: block; height: 8px; border-radius: 4px; background: var(--tt-fill); overflow: hidden; }
.tt-builder .tt-ev__bar i { display: block; height: 100%; background: var(--ink-light); }
.tt-builder .tt-ev__value { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-builder details summary { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .tt-hero__grid, .tt-team, .tt-rules, .tt-builder { grid-template-columns: minmax(0, 1fr); }
    .tt-team__side, .tt-builder__meta { position: static; }
    .tt-showcase { max-width: 460px; }
}
@media (max-width: 640px) {
    .tt-hero { padding-top: 14px; }
    .tt-lead { font-size: 15.5px; }
    .tt-now { grid-template-columns: minmax(0, 1fr); }
    .tt-now__actions { justify-content: flex-start; }
    .tt-strip span { display: none; }
    .tt-moves, .tt-moves-edit { grid-template-columns: minmax(0, 1fr); }
    .tt-evgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tt-editor__head { grid-template-columns: 72px minmax(0, 1fr); }
    .tt-editor__mon { width: 72px; height: 72px; }
    .tt-editor__mon img { width: 68px; height: 68px; }
    .tt-queue thead { display: none; }
    .tt-queue tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .tt-queue td { border-bottom: 0; padding: 6px 12px; }
    .tt-queue td:first-child { grid-column: 1 / -1; padding-top: 12px; }
    .tt-queue tr { border-bottom: 1px solid var(--tt-line); }
    .tt-filters .tt-field { flex-basis: 100%; }
}
