/* HypeTracker — vitrine. Design system : dark gaming/esport, responsive mobile-first.
   Tokens et patterns : voir design/DESIGN-SYSTEM.md + design/exemple.html. */

/* ===== Fonts auto-hébergées (RGPD/DE + LCP) — aucun appel fonts.googleapis.com/gstatic =====
   Chakra Petch : 3 graisses (400/600/700) x 2 styles (normal/italic) x 2 subsets, fichiers statiques distincts.
   Saira : police variable — un seul fichier par subset couvre toute la plage 400-700 (font-weight en intervalle). */
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/chakra-petch-normal-400-latin-2_yGQR-.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/chakra-petch-normal-400-latin-ext-khasLbU.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/chakra-petch-normal-600-latin-wMdAHqB.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/chakra-petch-normal-600-latin-ext-zM8nyOv.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/chakra-petch-normal-700-latin-bQR2myt.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/chakra-petch-normal-700-latin-ext-3RXYeHJ.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/chakra-petch-italic-400-latin-uycYgxw.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/chakra-petch-italic-400-latin-ext-fZhs--G.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/chakra-petch-italic-600-latin--3MqI4D.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/chakra-petch-italic-600-latin-ext-657kv1t.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/chakra-petch-italic-700-latin-EhXicUV.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/chakra-petch-italic-700-latin-ext-bbukXmb.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/saira-normal-latin-jpIP6jY.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/saira-normal-latin-ext-75i1qnw.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* ---- Tokens HypeTracker (design/DESIGN-SYSTEM.md §2) ---- */
    --ht-bg:        #070B12;  /* Abyss — fond de page */
    --ht-surface:   #0E1621;  /* cartes, panneaux */
    --ht-surface-2: #121C29;  /* fond hover / 2e niveau d'élévation */
    --ht-border:    #1B2836;  /* bordures, séparateurs */
    --ht-blue:      #2E9BFF;  /* Volt Blue — liens, navigation, sélection, "HYPE" */
    --ht-green:     #00E871;  /* Hype Green — hausse, CTA, "TRACKER" */
    --ht-teal:      #16BCB4;  /* buzz — intermédiaire du dégradé */
    --ht-red:       #FF4D6A;  /* Drop Red — baisse uniquement */
    --ht-text:      #EDF5FE;  /* texte principal */
    --ht-text-2:    #C7D6E8;  /* texte secondaire */
    --ht-muted:     #7E93AB;  /* labels, meta, placeholders */
    --ht-gradient:  linear-gradient(135deg, #2E9BFF 0%, #00E871 100%);
    --ht-font-display: 'Chakra Petch', sans-serif;
    --ht-font-body: 'Saira', sans-serif;

    /* ---- Tokens structurels non colorés (conservés tels quels) ---- */
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1160px;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ht-bg);
    color: var(--ht-text);
    font-family: var(--ht-font-body);
    line-height: 1.5;
    font-size: clamp(15px, 0.5vw + 14px, 17px);
}

h1, h2, h3 { font-family: var(--ht-font-display); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--ht-blue);
    outline-offset: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.muted { color: var(--ht-muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---- header / nav ---- */
.site-header {
    border-bottom: 1px solid var(--ht-border);
    background: rgba(7,11,18,.82);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; padding: .85rem 0; }
.brand, .lockup { display: flex; align-items: center; gap: .65rem; }
.wordmark { font-family: var(--ht-font-display); font-style: italic; font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.wordmark .hype { color: var(--ht-blue); }
.wordmark .tracker { color: var(--ht-green); }
.site-nav { display: flex; gap: 1.4rem; font-size: .88rem; }
.site-nav a { color: var(--ht-muted); font-family: var(--ht-font-display); font-weight: 600; }
.site-nav a:hover { color: var(--ht-text); }

/* ---- hero ---- */
.hero { padding: clamp(2rem, 6vw, 3.6rem) 0 1.6rem; }
.hero__title { font-family: var(--ht-font-display); font-style: italic; font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.05; margin: 0 0 .5rem; color: var(--ht-text); }
.hero__pitch { color: var(--ht-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 56ch; margin: 0 0 1rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .9rem; color: var(--ht-muted); }
.hero__meta b { color: var(--ht-text); }

/* ---- bench strip ---- */
.bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1.4rem 0 .4rem; }
.bench__item { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); padding: .75rem .9rem; }
.bench__k { font-size: .78rem; color: var(--ht-muted); text-transform: uppercase; letter-spacing: .04em; }
.bench__v { font-size: 1.25rem; font-weight: 750; margin-top: .15rem; }

/* ---- ranking grid + cards ---- */
.section-title { font-family: var(--ht-font-display); font-weight: 600; font-size: 1.15rem; margin: 2rem 0 1rem; }
.ranking { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--ht-surface); border: 1px solid var(--ht-border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 150ms, background 150ms;
}
.card:hover { border-color: rgba(46,155,255,.4); background: var(--ht-surface-2); text-decoration: none; }
.card__thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--ht-surface-2); display: block; }
.card__rank {
    position: absolute; top: .6rem; left: .6rem; z-index: 2;
    background: rgba(7,11,18,.72); color: var(--ht-blue);
    font-family: var(--ht-font-display); font-style: italic; font-weight: 700; font-size: 1rem;
    border-radius: 999px; min-width: 2.1rem; height: 2.1rem; display: grid; place-items: center; padding: 0 .5rem;
}
.card__rank.is-top {
    background: none; min-width: 0; height: auto; padding: 0; font-size: 1.35rem;
    background-image: var(--ht-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
.card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.card__title-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card__title { font-family: var(--ht-font-display); font-weight: 600; font-size: 1.05rem; }
.card__platforms { font-size: .82rem; color: var(--ht-muted); }
.card__total { font-size: 1.5rem; font-weight: 700; }
.card__total small { font-size: .8rem; font-weight: 500; color: var(--ht-muted); }
.card__spark { height: 40px; }

/* trailer/gameplay split bar */
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--ht-surface-2); }
.split__trailer { background: var(--ht-blue); }
.split__gameplay { background: var(--ht-teal); }
.split-legend { display: flex; gap: .9rem; font-size: .76rem; color: var(--ht-muted); }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; vertical-align: middle; margin-right: .3rem; }
.dot--trailer { background: var(--ht-blue); }
.dot--gameplay { background: var(--ht-teal); }

/* curé / sauvage ratio */
.mix { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--ht-surface-2); }
.mix__cure { background: var(--ht-blue); }
.mix__sauvage { background: var(--ht-teal); }
.mix-legend { font-size: .76rem; color: var(--ht-muted); }

/* ---- chart / sparkline ---- */
.chart { width: 100%; height: 100%; display: block; }
.chart__line { fill: none; stroke: var(--ht-blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: rgba(46,155,255,.14); stroke: none; }
.chart--empty { display: grid; place-items: center; height: 100%; color: var(--ht-muted); font-size: .8rem; border: 1px dashed var(--ht-border); border-radius: var(--radius-sm); }

/* ---- badges ---- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--ht-border); white-space: nowrap; }
.badge--officiel { color: var(--ht-bg); background: var(--ht-blue); border-color: transparent; }
.badge--cure { color: var(--ht-blue); border-color: var(--ht-blue); }
.badge--sauvage { color: var(--ht-teal); border-color: var(--ht-teal); }
.badge--reaction { color: var(--ht-muted); }

/* ---- work detail ---- */
.work-header { padding: clamp(1.6rem, 5vw, 2.6rem) 0 1rem; }
.work-header h1 { font-family: var(--ht-font-display); font-style: italic; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .2rem 0 .4rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: .8rem; }
.stat__k { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ht-muted); }
.stat__v { font-size: 1.35rem; font-weight: 780; }
.curve { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.curve__frame { height: clamp(160px, 26vw, 240px); }
.curve__axis { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ht-muted); margin-top: .4rem; }

.cols { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 1.6rem; }
@media (min-width: 820px) { .cols--2 { grid-template-columns: 1fr 1fr; } }

.videos { display: flex; flex-direction: column; gap: .6rem; }
.video { display: grid; grid-template-columns: 104px 1fr auto; gap: .8rem; align-items: center;
    background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); padding: .5rem; }
.video:hover { border-color: rgba(46,155,255,.4); text-decoration: none; }
.video__thumb { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--ht-surface-2); }
.video__title { font-weight: 650; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video__sub { font-size: .78rem; color: var(--ht-muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }
.video__views { font-weight: 750; text-align: right; white-space: nowrap; }
.video__views small { display: block; font-weight: 500; font-size: .72rem; color: var(--ht-muted); }

.fakes-note { margin-top: .9rem; font-size: .86rem; color: var(--ht-red); }

.sourcemix { display: flex; flex-direction: column; gap: .5rem; }
.sourcemix__row { display: grid; grid-template-columns: 120px 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; }
.sourcemix__track { height: 8px; border-radius: 999px; background: var(--ht-surface-2); overflow: hidden; }
.sourcemix__fill { height: 100%; background: var(--ht-blue); }
.sourcemix__fill--sauvage { background: var(--ht-teal); }

.back-link { display: inline-block; margin: 1.4rem 0 0; color: var(--ht-muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--ht-border); margin-top: 3rem; padding: 1.6rem 0; color: var(--ht-muted); font-size: .85rem; }

@media (max-width: 520px) {
    .video { grid-template-columns: 80px 1fr; }
    .video__views { grid-column: 2; text-align: left; }
    .video__thumb { width: 80px; }
}

/* ============================================================================
   ADMIN (back-office propriétaire) — scopé .admin, réutilise les tokens vitrine.
   Mobile-first, dark, zones de tap ≥44px. CSS du swipe (ADM2) ajouté plus bas.
   ============================================================================ */
.admin { color: var(--ht-text); }
.admin-header { position: sticky; top: 0; z-index: 10; background: rgba(14,17,22,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ht-border); }
.admin-header__inner { max-width: var(--maxw); margin: 0 auto; padding: .7rem clamp(12px, 4vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-brand { font-size: 1.05rem; font-weight: 700; color: var(--ht-text); text-decoration: none; }
.admin-brand b { color: var(--ht-blue); }
.admin-nav { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.admin-nav a { color: var(--ht-muted); text-decoration: none; padding: .55rem .7rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.admin-nav a:hover { color: var(--ht-text); background: var(--ht-surface); }
.admin-nav a.is-active { color: var(--ht-text); background: var(--ht-surface-2); }
.admin-nav__logout { color: var(--ht-teal) !important; }
.admin-main { max-width: var(--maxw); margin: 0 auto; padding: clamp(16px, 4vw, 28px); }
.admin-title { font-size: 1.3rem; font-weight: 750; margin: 0 0 .6rem; }

.admin-btn { appearance: none; border: 1px solid var(--ht-border); background: var(--ht-surface); color: var(--ht-text); font: inherit; font-weight: 650; padding: .7rem 1rem; border-radius: var(--radius-sm); cursor: pointer; min-height: 44px; }
.admin-btn:hover { background: var(--ht-surface-2); }
.admin-btn--primary { background: var(--ht-blue); color: var(--ht-bg); border-color: transparent; }
.admin-btn--primary:hover { filter: brightness(1.08); }
.admin-btn--danger { color: var(--ht-red); border-color: var(--ht-red); background: rgba(255,77,106,.08); }
.admin-btn--danger:hover { background: rgba(255,77,106,.18); }
.work-card__actions, .work-detail-head__actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.admin-field { display: flex; flex-direction: column; gap: .35rem; }
.admin-field > span { font-size: .82rem; color: var(--ht-muted); font-weight: 600; }
.admin-field input, .admin-select { background: var(--ht-bg); border: 1px solid var(--ht-border); color: var(--ht-text); border-radius: var(--radius-sm); padding: .7rem .8rem; font: inherit; min-height: 44px; }
.admin-field input:focus, .admin-select:focus { outline: 2px solid var(--ht-blue); outline-offset: 1px; }

.admin-login { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; }
.admin-login__card { width: 100%; max-width: 360px; background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-login__brand { font-size: 1.2rem; font-weight: 750; margin: 0; text-align: center; }
.admin-login__brand b { color: var(--ht-blue); }
.admin-login__error { background: rgba(255,77,106,.12); border: 1px solid var(--ht-red); color: var(--ht-red); padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .88rem; margin: 0; }

/* ---- ADM2 : sélecteur de revue ---- */
.admin-works { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1.2rem; }
.admin-work-card { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); text-decoration: none; color: var(--ht-text); }
.admin-work-card:hover { border-color: var(--ht-blue); }
.admin-work-card__name { font-weight: 700; }
.admin-work-card__filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.admin-chip { font-size: .72rem; padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--ht-border); color: var(--ht-muted); text-decoration: none; }
.admin-chip--on { background: var(--ht-blue); color: var(--ht-bg); border-color: transparent; font-weight: 700; }

/* ---- ADM2 : revue en LISTE scrollable + swipe ---- */
.review { max-width: 620px; margin: 0 auto; }
.review-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.review-back { color: var(--ht-muted); text-decoration: none; font-size: .9rem; }
.review-title { font-weight: 750; flex: 1; }
.review-progress { color: var(--ht-muted); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.review-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.review-filters a { text-decoration: none; }
.review-hint { font-size: .82rem; margin: 0 0 1rem; }
.review-hint kbd { background: var(--ht-surface-2); border: 1px solid var(--ht-border); border-radius: 4px; padding: 0 .3rem; font-size: .78rem; }

.review-list { display: flex; flex-direction: column; gap: .55rem; }
.review-tag { font-size: .72rem; padding: .1rem .4rem; border-radius: 999px; border: 1px solid var(--ht-border); }
.review-tag--cure { color: var(--ht-blue); border-color: var(--ht-blue); }
.review-tag--sauvage { color: var(--ht-teal); border-color: var(--ht-teal); }

.review-row { position: relative; display: grid; grid-template-columns: 104px 1fr auto; gap: .7rem; align-items: center; background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: .55rem; touch-action: pan-y; user-select: none; }
.review-row.is-excluded { opacity: .58; }
.review-row.drag-exclude { border-color: var(--ht-red); box-shadow: -6px 0 0 -2px var(--ht-red); }
.review-row.drag-include { border-color: var(--ht-blue); box-shadow: 6px 0 0 -2px var(--ht-blue); }
@keyframes flashIn { from { background: rgba(46,155,255,.28); } to { background: var(--ht-surface); } }
@keyframes flashOut { from { background: rgba(255,77,106,.28); } to { background: var(--ht-surface); } }
.review-row.flash-in { animation: flashIn .5s ease-out; }
.review-row.flash-out { animation: flashOut .5s ease-out; }
.review-row__thumb { position: relative; display: block; width: 104px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--ht-surface-2); }
.review-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-row__anchor { position: absolute; top: .2rem; left: .2rem; background: var(--ht-blue); color: var(--ht-bg); font-size: .7rem; padding: 0 .25rem; border-radius: 999px; }
.review-row__body { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.review-row__title { font-weight: 650; font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-row__sub { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; font-size: .76rem; color: var(--ht-muted); }
.review-row__state { font-size: .78rem; font-weight: 650; }
.review-row__actions { display: flex; flex-direction: column; gap: .3rem; }
.review-mini { appearance: none; background: var(--ht-surface-2); border: 1px solid var(--ht-border); color: var(--ht-text); font-size: .9rem; line-height: 1; width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.review-mini:hover { background: var(--ht-border); }
.review-mini--exclude:hover { border-color: var(--ht-red); }
.review-mini--include:hover { border-color: var(--ht-blue); }
.review-mini--anchor.is-on { background: var(--ht-blue); border-color: transparent; }

@media (max-width: 520px) {
    .review-row { grid-template-columns: 88px 1fr; grid-template-areas: 'thumb body' 'actions actions'; }
    .review-row__thumb { width: 88px; grid-area: thumb; }
    .review-row__body { grid-area: body; }
    .review-row__actions { grid-area: actions; flex-direction: row; justify-content: space-between; }
    .review-mini { flex: 1; height: 44px; }
}

.review-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--ht-surface-2); border: 1px solid var(--ht-border); color: var(--ht-text); padding: .7rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .88rem; z-index: 50; }

/* ---- ADM-doc : guide /admin/guide ---- */
.guide-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.6rem; }
.guide-toc a { text-decoration: none; color: var(--ht-muted); font-size: .85rem; padding: .45rem .7rem; border: 1px solid var(--ht-border); border-radius: 999px; }
.guide-toc a:hover { color: var(--ht-text); background: var(--ht-surface); }
.guide-section { margin: 2rem 0; scroll-margin-top: 5rem; }
.guide-h3 { font-size: .95rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.guide-cards { display: grid; gap: .7rem; margin: 1rem 0; }
.guide-card { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem; }
.guide-card--in { border-left: 4px solid var(--ht-blue); }
.guide-card p { margin: .5rem 0 0; font-size: .9rem; }
.guide-badge { font-weight: 750; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .5rem 0; }
.guide-table th, .guide-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--ht-border); vertical-align: top; }
.guide-table th { color: var(--ht-muted); font-weight: 650; }
.guide-table code { background: var(--ht-surface-2); padding: .1rem .35rem; border-radius: 4px; font-size: .82rem; white-space: nowrap; }
.guide-list { margin: .6rem 0; padding-left: 1.2rem; }
.guide-list li { margin: .4rem 0; font-size: .9rem; }
.guide-note { font-size: .82rem; margin-top: 1rem; }
.guide-dl { margin: 1rem 0; }
.guide-dl dt { font-weight: 700; margin-top: 1rem; }
.guide-dl dd { margin: .3rem 0 0; padding-left: 0; font-size: .9rem; color: var(--ht-text); }
.guide-steps { margin: 1rem 0; padding-left: 1.3rem; }
.guide-steps li { margin: .6rem 0; font-size: .9rem; }
.guide-section code { background: var(--ht-surface-2); padding: .1rem .35rem; border-radius: 4px; font-size: .84rem; }
.guide-section kbd { background: var(--ht-surface-2); border: 1px solid var(--ht-border); border-radius: 4px; padding: 0 .3rem; font-size: .82rem; }

/* ---- ADM3 : /admin/works ---- */
.works { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.2rem; }
.work-card { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.work-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.work-card__name { font-size: 1.1rem; font-weight: 750; margin: 0; }
.work-card__meta { margin: .2rem 0 0; font-size: .84rem; }
.work-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .9rem 0; }
.work-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem; background: var(--ht-bg); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); text-decoration: none; color: var(--ht-text); }
.work-stat:hover { border-color: var(--ht-blue); }
.work-stat__v { font-size: 1.25rem; font-weight: 750; }
.work-stat__k { font-size: .72rem; color: var(--ht-muted); }
.work-stat--warn .work-stat__v { color: var(--ht-teal); }
.work-anchors__title { font-size: .92rem; font-weight: 700; margin: .6rem 0 .5rem; }
.work-anchors__empty { font-size: .85rem; margin: 0; }
.anchor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.anchor-row { display: grid; grid-template-columns: 68px 1fr auto; gap: .6rem; align-items: center; background: var(--ht-bg); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); padding: .4rem; }
.anchor-row.is-anchor { border-color: var(--ht-blue); }
.anchor-row__thumb { display: block; width: 68px; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--ht-surface-2); }
.anchor-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anchor-row__body { min-width: 0; }
.anchor-row__title { font-size: .84rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anchor-row__sub { font-size: .74rem; margin-top: .15rem; }
.anchor-row__flag { color: var(--ht-blue); font-weight: 650; }

@media (max-width: 520px) {
    .work-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ADM4 : dashboard monitoring ---- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.dash-card { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.dash-card__k { font-size: .8rem; color: var(--ht-muted); font-weight: 600; }
.dash-card__v { font-size: 1.7rem; font-weight: 750; margin: .3rem 0 .2rem; }
.dash-card__sub { font-size: .78rem; }
.dash-warn { color: var(--ht-teal); }
.dash-section { margin-top: 1.8rem; }
.dash-cov { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 420px; }
.dash-table th, .dash-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--ht-border); }
.dash-table th.num, .dash-table td.num { text-align: right; }
.dash-table th { color: var(--ht-muted); font-weight: 650; }
.dash-table a { color: var(--ht-text); text-decoration: none; }
.dash-table a:hover { color: var(--ht-blue); }

/* ---- ADM5 : pilotage pipeline ---- */
.pipe-form { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem; margin: 1.2rem 0; }
.pipe-works { margin-bottom: .9rem; max-width: 360px; }
.pipe-commands { display: flex; flex-wrap: wrap; gap: .5rem; }
.pipe-cmd { flex: 1 1 auto; min-width: 46%; }
.pipe-cmd--wild { border-color: var(--ht-teal); }
.pipe-cmd:disabled { opacity: .5; cursor: not-allowed; }
.pipe-live { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.pipe-live__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.pipe-live__label { font-weight: 700; }
.pipe-log { background: var(--ht-bg); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); padding: .7rem; max-height: 300px; overflow: auto; font-size: .8rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; margin: 0; }
.pipe-progress { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.pipe-progress__track { flex: 1 1 auto; height: 8px; background: var(--ht-bg); border: 1px solid var(--ht-border); border-radius: 999px; overflow: hidden; }
.pipe-progress__bar { height: 100%; width: 0; background: var(--ht-blue); border-radius: 999px; transition: width .4s ease; }
.pipe-progress__pct { font-weight: 700; font-size: .82rem; white-space: nowrap; }
.pipe-progress__eta { font-size: .8rem; white-space: nowrap; }
.pipe-heartbeat { display: flex; align-items: center; gap: .6rem; font-size: .78rem; margin-bottom: .6rem; }
.pipe-stuck { color: var(--ht-red); font-weight: 700; }
.pipe-section { margin-top: 1.8rem; }
.pipe-runs { overflow-x: auto; }
.pipe-badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--ht-border); color: var(--ht-muted); }
.pipe-badge--running { color: var(--ht-blue); border-color: var(--ht-blue); }
.pipe-badge--done { color: var(--ht-blue); border-color: var(--ht-blue); }
.pipe-badge--failed { color: var(--ht-red); border-color: var(--ht-red); }

/* ---- ADM6 : registre de chaînes ---- */
.chan-form { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem; margin: 1.2rem 0; }
.chan-form .admin-field { flex: 1 1 260px; }
.chan-cat { flex: 0 0 auto; }
.chan-result { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--ht-border); font-size: .9rem; line-height: 1.5; }
.chan-result--ok { border-color: var(--ht-blue); background: rgba(46,155,255,.1); }
.chan-result--warn { border-color: var(--ht-teal); background: rgba(22,188,180,.1); }
.chan-result--info { color: var(--ht-muted); }
.chan-result code { background: var(--ht-surface-2); padding: 0 .3rem; border-radius: 4px; font-size: .82rem; }
.chan-section { margin-top: 1.8rem; }
.chan-list { overflow-x: auto; }
.chan-list code { font-size: .78rem; color: var(--ht-muted); }

/* ---- Mod2 : actions chaîne (voir / supprimer) ---- */
.chan-actions { display: flex; gap: .4rem; }
.chan-actions .review-mini { width: 36px; height: 36px; text-decoration: none; }

/* ---- Mod3 : panneau d'explication pipeline ---- */
.pipe-help { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0 1.4rem; font-size: .88rem; }
.pipe-help > summary { cursor: pointer; font-weight: 700; color: var(--ht-blue); }
.pipe-help p { margin: .6rem 0; line-height: 1.5; }
.pipe-help__steps { margin: .6rem 0; padding-left: 1.3rem; }
.pipe-help__steps li { margin: .45rem 0; line-height: 1.45; }

/* ---- Mod4 : works liste/détail/création ---- */
.works-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.work-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.work-form { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1.2rem; margin-top: 1rem; }
.work-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.work-form__actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.work-form__msg { font-size: .88rem; color: var(--ht-muted); }
.work-videos { margin-top: 2rem; }
.work-video-add { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .8rem 0 1rem; }
.work-video-add input { flex: 1 1 280px; background: var(--ht-bg); border: 1px solid var(--ht-border); color: var(--ht-text); border-radius: var(--radius-sm); padding: .7rem .8rem; font: inherit; min-height: 44px; }
.work-videos__table { overflow-x: auto; }

/* ---- Mod5 : config scrap ---- */
.config-form { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1.2rem; margin: 1rem 0 1.4rem; }
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.config-form input, .config-form textarea { background: var(--ht-bg); border: 1px solid var(--ht-border); color: var(--ht-text); border-radius: var(--radius-sm); padding: .7rem .8rem; font: inherit; }
.config-form input { min-height: 44px; }
.config-cookies { margin-top: 1rem; }
.config-cookies textarea { font-family: ui-monospace, monospace; font-size: .82rem; resize: vertical; }
.config-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.config-cron { margin-top: 1.5rem; }

/* ---- Modèle deux scores : tags trailer/buzz + courbes superposées ---- */
.card__scores { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0; }
.score-tag { font-size: .72rem; font-weight: 650; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--ht-border); }
.score-tag--trailer { color: var(--ht-blue); border-color: var(--ht-blue); }
.score-tag--buzz { color: var(--ht-teal); border-color: var(--ht-teal); }
.split__buzz { background: var(--ht-teal); }
.curve__legend { display: flex; gap: .5rem; margin-bottom: .4rem; }
.curve__frame--overlay { position: relative; }
.curve__frame--overlay .chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart--trailer .chart__line { stroke: var(--ht-blue); }
.chart--trailer .chart__area { fill: color-mix(in srgb, var(--ht-blue) 18%, transparent); }
.chart--buzz .chart__line { stroke: var(--ht-teal); }
.chart--buzz .chart__area { fill: color-mix(in srgb, var(--ht-teal) 14%, transparent); }

/* ---- Phase 3 : tags source + état actif/inactif ultra-visible (revue) ---- */
.src-tag { font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--ht-border); }
.src-tag--officiel { color: var(--ht-blue); border-color: var(--ht-blue); }
.src-tag--cure { color: var(--ht-blue); border-color: var(--ht-blue); }
.src-tag--sauvage { color: var(--ht-teal); border-color: var(--ht-teal); }

.review-row { position: relative; overflow: hidden; }
.review-row__flag { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ht-border); }
.review-row.is-active { opacity: 1; }
.review-row.is-active .review-row__flag { background: var(--ht-blue); }
.review-row.is-excluded { opacity: .62; }
.review-row.is-excluded .review-row__flag { background: var(--ht-red); }
.review-row.is-excluded .review-row__title { text-decoration: line-through; text-decoration-color: var(--ht-red); }
.review-row__state { font-weight: 750; }
.review-row.is-active .review-row__state { color: var(--ht-blue); }
.review-row.is-excluded .review-row__state { color: var(--ht-red); }
.review-row__thumb { margin-left: .3rem; }

/* ---- Phase 3 : tableaux triables ---- */
.dash-table th[role="button"] { user-select: none; }
.dash-table th[data-sort-dir="asc"]::after { content: ' ▲'; color: var(--ht-blue); }
.dash-table th[data-sort-dir="desc"]::after { content: ' ▼'; color: var(--ht-blue); }

/* ---- Phase 3 : boutons pipeline avec sous-titre ---- */
.pipe-cmd { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; }
.pipe-cmd__name { font-weight: 750; }
.pipe-cmd__desc { font-size: .74rem; color: var(--ht-muted); font-weight: 500; }

/* ---- Config : suffixe d'unité ---- */
.config-unit { display: flex; align-items: center; gap: .4rem; }
.config-unit input { flex: 1; }
.config-unit__suffix { color: var(--ht-muted); font-weight: 700; }

/* --- Refonte publique : logo + sélecteur de langue --- */
.brand__logo { height: 34px; width: 34px; display: block; }
.lang-switch { display: flex; gap: .25rem; margin-left: auto; font-size: .78rem; }
.lang-switch__item { color: var(--ht-muted); font-family: var(--ht-font-display); font-weight: 600; padding: .15rem .35rem; border-radius: var(--radius-sm); }
.lang-switch__item:hover { color: var(--ht-text); background: var(--ht-surface-2); }
.lang-switch__item.is-active { color: var(--ht-bg); background: var(--ht-blue); font-weight: 700; }

/* --- Top jeux : toggle + tableau --- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.view-toggle { display: inline-flex; border: 1px solid var(--ht-border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle__btn { background: var(--ht-surface); color: var(--ht-muted); font-family: var(--ht-font-display); font-weight: 600; border: 0; padding: .5rem .9rem; font-size: .85rem; cursor: pointer; }
.view-toggle__btn:hover { color: var(--ht-text); }
.view-toggle__btn.is-active { background: var(--ht-blue); color: var(--ht-bg); font-weight: 700; }
.games-table-wrap { overflow-x: auto; }
.games-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.games-table th, .games-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--ht-border); text-align: left; }
.games-table th { font-family: var(--ht-font-display); font-weight: 600; color: var(--ht-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.games-table th.num, .games-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.games-table td.num { font-weight: 600; }
.games-table tbody tr { cursor: pointer; }
.games-table tbody tr:hover { background: var(--ht-surface-2); }

/* --- Graphiques survolables --- */
.chart-wrap { position: relative; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: var(--ht-surface-2); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); padding: .35rem .55rem; font-size: .74rem; line-height: 1.35; white-space: nowrap; pointer-events: none; z-index: 6; }
.chart-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ht-text); border: 2px solid var(--ht-bg); transform: translate(-50%, -50%); pointer-events: none; z-index: 5; }

/* --- Top tendance : onglets de période --- */
.period-tabs { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.period-tab { padding: .5rem .9rem; border: 1px solid var(--ht-border); border-radius: var(--radius-sm); text-decoration: none; color: var(--ht-muted); background: var(--ht-surface); font-family: var(--ht-font-display); font-weight: 600; font-size: .85rem; }
.period-tab:hover { color: var(--ht-text); }
.period-tab.is-active { background: var(--ht-blue); color: var(--ht-bg); border-color: var(--ht-blue); font-weight: 700; }
/* Le design system ne définit pas de couleur "avertissement" (seuls bleu/vert/rouge sont sémantiques) :
   traitement neutre volontaire ici — cf. concern rapporté dans H0-report.md. */
.notice { color: var(--ht-muted); margin: 2rem 0; padding: .8rem 1rem; border: 1px solid var(--ht-border); border-radius: var(--radius-sm); background: var(--ht-surface); }
.notice--warn { color: var(--ht-text); font-weight: 600; }

/* --- Prose (méthodologie) --- */
.prose { max-width: 70ch; }
.prose h1 { font-family: var(--ht-font-display); font-style: italic; font-weight: 700; margin-bottom: .5rem; }
.prose__lead { font-size: 1.1rem; color: var(--ht-text); }
.prose p { color: var(--ht-muted); line-height: 1.7; margin: .9rem 0; }
.prose a { color: var(--ht-blue); }

/* --- Fiche jeu : badge de rang --- */
.work-header__top { display: flex; align-items: center; gap: .8rem; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem; border-radius: 999px; background: var(--ht-blue); color: var(--ht-bg); font-family: var(--ht-font-display); font-style: italic; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-badge.is-top { background: var(--ht-gradient); }

/* --- Hit targets mobile (design system §5 : ≥ 44 px) --- */
@media (max-width: 700px) {
    .site-nav a, .lang-switch__item { min-height: 44px; display: inline-flex; align-items: center; padding-top: .3rem; padding-bottom: .3rem; }
    .view-toggle__btn, .period-tab { min-height: 44px; }
}

/* --- Méthodologie : FAQ --- */
.faq { max-width: 70ch; margin-top: 2.5rem; }
.faq__q { font-family: var(--ht-font-display); font-weight: 600; font-size: 1rem; margin: 1.4rem 0 .3rem; }
.faq__a { color: var(--ht-muted); line-height: 1.7; margin: 0; }

/* --- Fiche jeu : tendance 7 j --- */
.trend-badge { font-family: var(--ht-font-display); font-weight: 700; font-style: italic; border-radius: 6px; padding: .12rem .5rem; font-size: .85rem; }
.trend-badge--up { color: var(--ht-green); background: rgba(0, 232, 113, .1); }
.trend-badge--down { color: var(--ht-red); background: rgba(255, 77, 106, .1); }
.trend-badge--flat { color: var(--ht-muted); }
.stat__v--up { color: var(--ht-green); }
.video__delta { display: inline-block; color: var(--ht-green); background: rgba(0, 232, 113, .1); font-family: var(--ht-font-display); font-weight: 700; font-style: italic; border-radius: 6px; padding: .05rem .4rem; font-size: .74rem; margin-top: .2rem; }
.hype-summary { max-width: 70ch; color: var(--ht-text-2); margin: 1rem 0; }

/* --- Home : gagnants de la semaine --- */
.winners { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.winners__title { font-family: var(--ht-font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 .2rem; }
.winners__sub { color: var(--ht-muted); font-size: .88rem; margin: 0 0 .9rem; }
.winners__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.winners__item { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .85rem; background: var(--ht-surface-2); border: 1px solid var(--ht-border); border-radius: var(--radius-sm); text-decoration: none; }
.winners__item:hover { border-color: rgba(46,155,255,.4); text-decoration: none; }
.winners__name { font-family: var(--ht-font-display); font-weight: 600; color: var(--ht-text); font-size: .95rem; }
.winners__delta { color: var(--ht-green); font-family: var(--ht-font-display); font-weight: 700; font-style: italic; font-size: 1.1rem; }
.winners__label { font-size: .76rem; }
.winners__all { display: inline-block; margin-top: .9rem; color: var(--ht-blue); font-weight: 600; font-size: .9rem; }
