/* ============================================================
   Nia - Page d'accueil (refonte 14/09/2026) + pied de page commun.
   Prefixe .nh- pour ne pas entrer en collision avec nia-theme.css.
   ============================================================ */

.nh { --nh-line: var(--nia-line, #322a4d); --nh-panel: var(--nia-panel, #1c1730); --nh-deep: var(--nia-deep, #14101f); }
.nh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.nh-kicker { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--nia-amber); font-weight: 600; }
.nh-link { color: var(--nia-amber-bright); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nh-link:hover { color: #ffd98a; }
.nh-note { color: var(--nia-text-dim); font-size: 13px; }
.nh-ok { color: var(--nia-ok) !important; }

.nh-chip { display: inline-flex; align-items: center; white-space: nowrap; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nh-chip--online { background: rgba(79,209,165,.12); color: var(--nia-ok); border: 1px solid rgba(79,209,165,.3); }
.nh-chip--update { background: rgba(232,163,61,.14); color: var(--nia-amber-bright); }
.nh-chip--info { background: rgba(79,209,165,.14); color: var(--nia-ok); }
.nh-chip--event { background: rgba(143,111,240,.18); color: var(--nia-violet-bright); }
.nh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nia-ok); margin-right: 7px; box-shadow: 0 0 8px rgba(79,209,165,.8); }

/* ---------- Hero ---------- */
.nh-hero {
    position: relative;
    padding: 72px 0 56px;
    background:
        radial-gradient(900px 420px at 30% 0%, rgba(98,74,168,.28), transparent 70%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--nia-void);
    background-size: auto, 48px 48px, 48px 48px, auto;
    border-bottom: 1px solid #1f1936;
}
.nh-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.nh-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.nh-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nh-hero-meta .nh-kicker { display: inline; }
.nh-title { margin: 0; font-family: var(--nia-font-display); font-size: 56px; line-height: 1.08; font-weight: 700; color: var(--nia-text); text-wrap: balance; }
.nh-title span { color: var(--nia-amber-bright); }
.nh-lead { margin: 0; font-size: 18px; line-height: 1.6; color: #b8b0d0; max-width: 560px; text-wrap: pretty; }
.nh-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.nh-cta { height: 52px; padding: 0 26px; font-size: 15px; }
.nh-cta--discord { border-color: #5865f2; color: #c7cbff; }
.nh-cta--discord:hover { border-color: #7a86ff; }
.nh-hero-notes { display: flex; align-items: center; gap: 14px; margin-top: 4px; font-size: 13px; color: var(--nia-text-dim); flex-wrap: wrap; }

.nh-signature { position: relative; overflow: hidden; padding: 28px 28px 24px; border-radius: 16px; border: 1px solid var(--nh-line); background: linear-gradient(180deg, #1f1936, #15112a); }
.nh-signature-glow { position: absolute; left: -20%; right: -20%; top: -40%; height: 260px; background: radial-gradient(closest-side, rgba(232,163,61,.18), transparent); pointer-events: none; }
.nh-signature-title { font-family: var(--nia-font-display); font-size: 22px; font-weight: 700; margin: 6px 0 18px; }
.nh-rarities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.nh-rarity { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nh-rarity span { font-size: 12px; font-weight: 600; color: var(--nia-text-dim); }
.nh-rarity-box { width: 92px; height: 92px; border-radius: 14px; background: var(--nh-deep); border: 2px solid #3a3352; display: flex; align-items: center; justify-content: center; }
.nh-rarity-box img { width: 72px; height: 72px; }
.nh-rarity--rare .nh-rarity-box { border-color: #00b341; box-shadow: 0 0 22px rgba(0,179,65,.4); } .nh-rarity--rare span { color: #2fd66a; }
.nh-rarity--epique .nh-rarity-box { border-color: #ae00ff; box-shadow: 0 0 22px rgba(174,0,255,.4); } .nh-rarity--epique span { color: #c85cff; }
.nh-rarity--legendaire .nh-rarity-box { border-color: #e10032; box-shadow: 0 0 22px rgba(225,0,50,.4); } .nh-rarity--legendaire span { color: #ff4d6d; }
.nh-rarity--divin .nh-rarity-box { border-color: #d4af37; box-shadow: 0 0 26px rgba(212,175,55,.5); } .nh-rarity--divin span { color: #e8c65a; }
.nh-signature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nh-line); font-size: 13px; color: var(--nia-text-dim); flex-wrap: wrap; }
.nh-signature-foot b { color: var(--nia-amber-bright); font-weight: 600; }

/* ---------- Bandeau de statut ---------- */
.nh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.nh-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 16px; background: var(--nh-panel); border: 1px solid var(--nh-line); }
.nh-stat-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--nia-text-dim); }
.nh-stat-value { font-family: var(--nia-font-display); font-size: 26px; font-weight: 700; color: var(--nia-text); }
.nh-stat-value--gold { color: var(--nia-amber-bright); }
.nh-stat-value--ok { color: var(--nia-ok); }
.nh-stat-note { font-size: 13px; color: var(--nia-text-dim); }

/* ---------- Sections ---------- */
.nh-section { padding: 72px 0; border-top: 1px solid #1f1936; }
.nh-section--alt { background: #0d0a1a; }
.nh-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.nh-h2 { margin: 6px 0 0; font-family: var(--nia-font-display); font-size: 31px; font-weight: 700; line-height: 1.15; }
.nh-h2--sm { font-size: 28px; }
.nh-section-aside { margin: 0 0 4px; color: var(--nia-text-dim); font-size: 14px; max-width: 320px; text-align: right; }

.nh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nh-feature { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 16px; background: var(--nh-panel); border: 1px solid var(--nh-line); transition: transform .18s ease, border-color .18s ease; }
.nh-feature:hover { transform: translateY(-3px); border-color: var(--nia-line-bright); }
.nh-feature-icon { width: 64px; height: 64px; border-radius: 14px; background: var(--nh-deep); border: 1px solid var(--nh-line); display: flex; align-items: center; justify-content: center; }
.nh-feature-icon img { width: 52px; height: 52px; }
.nh-feature-icon--svg { color: var(--nia-amber-bright); }
.nh-feature h3 { margin: 0; font-family: var(--nia-font-display); font-size: 19px; font-weight: 700; }
.nh-feature p { margin: 0; color: var(--nia-text-dim); font-size: 14px; line-height: 1.6; }

.nh-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nh-news-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: var(--nh-panel); border: 1px solid var(--nh-line); }
.nh-news-meta { display: flex; align-items: center; gap: 10px; }
.nh-news-date { font-size: 12.5px; color: var(--nia-text-dim); }
.nh-news-card h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.nh-news-card p { margin: 0; color: var(--nia-text-dim); font-size: 14px; line-height: 1.6; }
.nh-empty { color: var(--nia-text-dim); }

.nh-join-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.nh-panel { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 16px; background: var(--nh-panel); border: 1px solid var(--nh-line); }
.nh-join .nh-h2 { margin-top: -10px; }
.nh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nh-step { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; background: var(--nh-deep); border: 1px solid var(--nh-line); }
.nh-step-num { font-family: var(--nia-font-display); font-size: 26px; color: var(--nia-amber-bright); font-weight: 700; }
.nh-step b { font-size: 15px; }
.nh-step span:not(.nh-step-num) { color: var(--nia-text-dim); font-size: 13px; line-height: 1.55; }

.nh-discord { background: linear-gradient(180deg, #1c1730, #171330); }
.nh-discord-head { display: flex; align-items: center; gap: 12px; }
.nh-discord-logo { width: 44px; height: 44px; border-radius: 12px; background: #5865f2; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nh-discord-title { font-family: var(--nia-font-display); font-size: 20px; font-weight: 700; }
.nh-discord-stats { display: flex; align-items: center; gap: 24px; padding: 14px 16px; border-radius: 12px; background: var(--nh-deep); border: 1px solid var(--nh-line); }
.nh-discord-stats > div { display: flex; flex-direction: column; }
.nh-discord-stats b { font-size: 22px; font-weight: 700; }
.nh-discord-stats span { font-size: 12px; color: var(--nia-text-dim); }
.nh-discord-right { margin-left: auto; text-align: right; }
.nh-discord-right b { font-size: 13px !important; }
.nh-discord p { margin: 0; color: var(--nia-text-dim); font-size: 14px; line-height: 1.6; }
.nh-discord .nh-cta { align-self: flex-start; }

/* ---------- Pied de page (commun a tout le site) ---------- */
.nh-footer { border-top: 1px solid #1f1936; background: #07060f; padding: 44px 0 28px; margin-top: 40px; font-family: var(--nia-font-body); color: var(--nia-text); }
.nh-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.nh-footer-brand { display: flex; align-items: center; gap: 10px; }
.nh-footer-brand .nia-rift { width: 28px; height: 28px; }
.nh-footer-brand .nia-rift-glyph { font-size: 10px; }
.nh-footer-name { font-family: var(--nia-font-display); font-size: 18px; font-weight: 700; letter-spacing: .18em; }
.nh-footer-tag { color: var(--nia-text-dim); font-size: 12px; }
.nh-footer-blurb { margin: 12px 0 0; color: var(--nia-text-dim); font-size: 13px; line-height: 1.6; max-width: 380px; }
.nh-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.nh-footer-col b { margin-bottom: 4px; }
.nh-footer-col a { color: #b8b0d0; text-decoration: none; }
.nh-footer-col a:hover { color: var(--nia-amber-bright); }
.nh-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #1f1936; font-size: 12.5px; color: #6f678a; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .nh-title { font-size: 46px; }
    .nh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nh-join-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nh-wrap { padding: 0 18px; }
    .nh-hero { padding: 44px 0 40px; }
    .nh-title { font-size: 36px; }
    .nh-lead { font-size: 16px; }
    .nh-cta { width: 100%; justify-content: center; }
    .nh-rarities { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .nh-rarity-box { width: 100%; height: auto; aspect-ratio: 1; }
    .nh-rarity-box img { width: 70%; height: auto; }
    .nh-rarity span { font-size: 10.5px; }
    .nh-stats { grid-template-columns: 1fr; margin-top: 36px; }
    .nh-section { padding: 48px 0; }
    .nh-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nh-section-aside { text-align: left; }
    .nh-h2 { font-size: 26px; }
    .nh-features, .nh-news, .nh-steps { grid-template-columns: 1fr; }
    .nh-panel { padding: 22px; }
    .nh-discord-stats { flex-wrap: wrap; gap: 14px; }
    .nh-discord-right { margin-left: 0; text-align: left; flex-basis: 100%; }
    .nh-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Bouton "Creer un compte" du header (visiteur non connecte) */
.nia-btn-signup { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin-right: 8px; border-radius: 9px; border: 1px solid var(--nia-line-bright); color: var(--nia-text); font-size: 12.5px; font-weight: 600; text-decoration: none; background: rgba(28,23,48,.6); }
.nia-btn-signup:hover { border-color: var(--nia-violet); }
@media (max-width: 720px) { .nia-btn-signup { display: none; } }

/* ---------- Page Telecharger ---------- */
.nh-hero--page { padding: 56px 0 48px; }
.nh-title--page { font-size: 46px; }
.nh-dl-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.nh-dl-main { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 16px; border: 1px solid var(--nh-line); background: linear-gradient(180deg, #1f1936, #15112a); }
.nh-dl-os { display: flex; align-items: center; gap: 14px; color: var(--nia-amber-bright); }
.nh-dl-os > div { color: var(--nia-text); }
.nh-dl-title { font-family: var(--nia-font-display); font-size: 19px; font-weight: 700; margin-bottom: 3px; }
.nh-cta--wide { width: 100%; justify-content: center; }
.nh-dl-fine { font-size: 12.5px; color: var(--nia-text-dim); line-height: 1.5; }
.nh-dl-fine code { font-size: 12px; background: var(--nh-deep); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--nh-line); }
.nh-steps--wide .nh-step { padding: 22px; }
.nh-steps--wide .nh-step b { font-size: 16px; }
.nh-dl-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nh-dl-alt .nh-panel { gap: 14px; }
.nh-dl-alt .nh-cta { align-self: flex-start; }
.nh-dl-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.nh-spec-list { display: flex; flex-direction: column; }
.nh-spec-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--nh-line); font-size: 14px; }
.nh-spec-list > div:last-child { border-bottom: 0; }
.nh-spec-list span { color: var(--nia-text-dim); }
.nh-faq { display: flex; flex-direction: column; gap: 8px; }
.nh-faq details { border: 1px solid var(--nh-line); border-radius: 12px; background: var(--nh-deep); padding: 0 16px; }
.nh-faq summary { cursor: pointer; padding: 13px 0; font-size: 14.5px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nh-faq summary::-webkit-details-marker { display: none; }
.nh-faq summary::after { content: '+'; color: var(--nia-amber-bright); font-size: 18px; font-weight: 400; flex-shrink: 0; }
.nh-faq details[open] summary::after { content: '–'; }
.nh-faq p { margin: 0 0 14px; color: var(--nia-text-dim); font-size: 14px; line-height: 1.6; }
@media (max-width: 1100px) { .nh-dl-grid, .nh-dl-bottom { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .nh-title--page { font-size: 34px; } .nh-dl-alt { grid-template-columns: 1fr; } .nh-spec-list > div { flex-direction: column; gap: 2px; } }

/* ---------- Page Nous rejoindre ---------- */
.nh-join-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.nh-join-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.nh-join-step { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(28,23,48,.6); border: 1px solid var(--nh-line); }
.nh-join-step .nh-step-num { font-size: 22px; line-height: 1; margin-top: 2px; }
.nh-join-step > div { display: flex; flex-direction: column; gap: 3px; }
.nh-join-step b { font-size: 15px; }
.nh-join-step span:not(.nh-step-num) { color: var(--nia-text-dim); font-size: 13px; line-height: 1.5; }
.nh-signup { gap: 14px; background: linear-gradient(180deg, #1f1936, #15112a); }
.nh-signup-head { display: flex; flex-direction: column; gap: 4px; }
.nh-form { display: flex; flex-direction: column; gap: 12px; }
.nh-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nh-field label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--nia-text-dim); font-weight: 600; }
.nh-field-row { display: flex; gap: 12px; }
.nh-input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--nh-line); background: var(--nia-void); color: var(--nia-text); font-family: var(--nia-font-body); font-size: 14px; outline: none; transition: border-color .15s; }
.nh-input:focus { border-color: var(--nia-amber); box-shadow: 0 0 0 3px rgba(232,163,61,.15); }
.nh-input::placeholder { color: #5f5878; }
.nh-field-hint { font-size: 12px; color: var(--nia-text-dim); line-height: 1.5; margin-top: -4px; }
.nh-field-hint--center { text-align: center; margin-top: 4px; }
.nh-signup .nh-cta { margin-top: 4px; }
.nh-signup #inscrip_error:not(:empty) { margin-bottom: 4px; }
@media (max-width: 1100px) { .nh-join-page { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) { .nh-field-row { flex-direction: column; } }

/* ---------- Page Classement ---------- */
.nh-hero--center { text-align: center; }
.nh-hero--center .nh-kicker { display: block; }
.nh-lead--center { margin: 14px auto 0; }
.nh-hero--center .nh-title { margin-top: 10px; }
.nh-tabs { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.nh-tab { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--nh-line); background: rgba(28,23,48,.6); color: var(--nia-text-dim); font-size: 14px; font-weight: 600; text-decoration: none; }
.nh-tab:hover { color: var(--nia-text); border-color: var(--nia-line-bright); }
.nh-tab--active { color: #241705; background: linear-gradient(180deg, var(--nia-amber-bright), var(--nia-amber)); border-color: transparent; font-family: var(--nia-font-display); }
.nh-section--tight { padding: 40px 0 64px; border-top: 0; }
.nh-wrap--narrow { max-width: 980px; }
.nh-table-wrap { border: 1px solid var(--nh-line); border-radius: 16px; background: var(--nh-panel); overflow-x: auto; }
.nh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nh-table th { text-align: left; padding: 14px 16px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--nia-text-dim); border-bottom: 1px solid var(--nh-line); font-weight: 600; }
.nh-table td { padding: 11px 16px; border: 0; border-bottom: 1px solid rgba(50,42,77,.55); vertical-align: middle; background: transparent; }
.nh-table th { border-left: 0; border-right: 0; background: transparent; }
.nh-table tbody tr:last-child td { border-bottom: 0; }
.nh-table tbody tr:hover td { background: rgba(255,255,255,.025); }
.nh-col-rank { width: 56px; }
.nh-col-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nh-col-wide { width: 160px; }
.nh-muted { color: var(--nia-text-dim); }
.nh-rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--nh-deep); border: 1px solid var(--nh-line); font-family: var(--nia-font-display); font-weight: 700; font-size: 13px; color: var(--nia-text-dim); }
.nh-rank--1 .nh-rank { color: #241705; background: linear-gradient(180deg, #f6c667, #e8a33d); border-color: transparent; }
.nh-rank--2 .nh-rank { color: #1a1a24; background: linear-gradient(180deg, #e6e8f2, #b9bdd0); border-color: transparent; }
.nh-rank--3 .nh-rank { color: #2a1608; background: linear-gradient(180deg, #d9a071, #b5713f); border-color: transparent; }
.nh-rank--1 td b { color: var(--nia-amber-bright); }
.nh-player { display: flex; align-items: center; gap: 12px; }
.nh-player > div { display: flex; flex-direction: column; line-height: 1.25; }
.nh-player span { font-size: 12px; color: var(--nia-text-dim); }
.nh-class-icon { width: 35px; height: 35px; border-radius: 9px; background: var(--nh-deep); border: 1px solid var(--nh-line); flex-shrink: 0; }
.nh-prestige { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(143,111,240,.18); color: var(--nia-violet-bright); font-weight: 700; font-size: 13px; }
@media (max-width: 720px) { .nh-col-hide { display: none; } .nh-table th, .nh-table td { padding: 10px 10px; } .nh-tab { height: 36px; padding: 0 14px; font-size: 13px; } }

/* ---------- Page Voter ---------- */
.nh-vote-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.nh-vote-rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nh-vote-reward { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(28,23,48,.6); border: 1px solid var(--nh-line); }
.nh-vote-reward b { font-family: var(--nia-font-display); font-size: 24px; color: var(--nia-amber-bright); }
.nh-vote-reward span { font-size: 12.5px; color: var(--nia-text-dim); line-height: 1.4; }
.nh-vote-panel { gap: 16px; background: linear-gradient(180deg, #1f1936, #15112a); }
.nh-vote-text { margin: 0; color: var(--nia-text-dim); font-size: 14px; line-height: 1.6; }
.nh-vote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nh-vote-big { font-family: var(--nia-font-display); font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--nia-amber-bright); }
.nh-vote-big small { font-size: 16px; color: var(--nia-text-dim); font-family: var(--nia-font-body); font-weight: 600; }
.nh-vote-progress { display: flex; flex-direction: column; gap: 8px; }
.nh-vote-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--nia-text-dim); }
.nh-bar { height: 8px; border-radius: 999px; background: var(--nia-void); border: 1px solid var(--nh-line); overflow: hidden; }
.nh-bar-fill { height: 100%; background: linear-gradient(90deg, var(--nia-violet), var(--nia-amber-bright)); border-radius: 999px; }
.nh-vote-form { margin: 0; }
.nh-cta--pulse { animation: nh-pulse 1.6s ease-in-out infinite; }
@keyframes nh-pulse { 0%, 100% { box-shadow: 0 6px 22px rgba(232,163,61,.35); } 50% { box-shadow: 0 6px 34px rgba(232,163,61,.7); } }
@media (max-width: 1100px) { .nh-vote-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) { .nh-vote-rewards { grid-template-columns: 1fr; } }

/* ---------- Mon compte ---------- */
.nh-hero--account { padding: 44px 0 40px; }
.nh-account-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.nh-profile { display: flex; align-items: center; gap: 20px; }
.nh-profile-avatar { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; border: 2px solid var(--nia-amber); box-shadow: 0 0 24px rgba(232,163,61,.25); flex-shrink: 0; display: block; }
.nh-profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nh-profile-text { display: flex; flex-direction: column; gap: 4px; }
.nh-title--account { font-size: 34px; margin: 0; }
.nh-balance { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--nh-line); background: linear-gradient(180deg, #1f1936, #15112a); min-width: 280px; }
.nh-balance-value { font-family: var(--nia-font-display); font-size: 30px; font-weight: 700; color: var(--nia-amber-bright); line-height: 1.1; }
.nh-balance-value small { font-size: 14px; color: var(--nia-text-dim); font-family: var(--nia-font-body); font-weight: 600; }
.nh-balance .nh-actions { margin-top: 6px; gap: 10px; }
.nh-cta--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.nh-stats--account { margin-top: 32px; }
.nh-gold { color: var(--nia-amber-bright) !important; }
.nh-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.nh-account-col { display: flex; flex-direction: column; gap: 24px; }
.nh-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nh-h2--xs { font-size: 21px; margin-top: 4px; }
.nh-empty-box { padding: 18px; border: 1px dashed var(--nh-line); border-radius: 12px; color: var(--nia-text-dim); font-size: 14px; line-height: 1.55; }
.nh-list { display: flex; flex-direction: column; }
.nh-list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(50,42,77,.55); }
.nh-list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.nh-list-row:first-child { padding-top: 0; }
.nh-list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nh-list-main b { font-size: 14.5px; }
.nh-list-main span { font-size: 12.5px; color: var(--nia-text-dim); }
.nh-list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex-shrink: 0; }
.nh-list-side b { font-size: 14.5px; }
.nh-status { font-size: 11.5px; font-weight: 600; }
.nh-status--ok { color: var(--nia-ok); } .nh-status--warn { color: var(--nia-amber); } .nh-status--err { color: var(--nia-err); }
.nh-chars { display: flex; flex-direction: column; gap: 10px; }
.nh-char { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--nh-deep); border: 1px solid var(--nh-line); }
.nh-char-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nh-char-text span { font-size: 12.5px; color: var(--nia-text-dim); }
.nh-chip--off { background: rgba(148,140,175,.14); color: var(--nia-text-dim); }
.nh-avatars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.nh-avatar { aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--nh-line); background: var(--nia-void); cursor: pointer; transition: transform .12s, border-color .12s; }
.nh-avatar:hover { transform: scale(1.05); border-color: var(--nia-line-bright); }
.nh-avatar--selected { border-color: var(--nia-amber); box-shadow: 0 0 14px rgba(232,163,61,.35); }
.nh-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1100px) { .nh-account-grid { grid-template-columns: 1fr; } .nh-stats--account { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .nh-title--account { font-size: 26px; } .nh-balance { min-width: 0; width: 100%; } .nh-avatars { grid-template-columns: repeat(5, minmax(0, 1fr)); } .nh-stats--account { grid-template-columns: 1fr; } }

/* ---------- Support / tickets ---------- */
.nh-tab--new { color: var(--nia-amber-bright); border-color: rgba(232,163,61,.4); }
.nh-wrap--form { max-width: 640px; }
.nh-textarea { height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.nh-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--nia-text-dim) 50%), linear-gradient(135deg, var(--nia-text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.nh-tickets #support_list_open { width: 100%; border-collapse: collapse; background: var(--nh-panel); border: 1px solid var(--nh-line); border-radius: 16px; overflow: hidden; font-size: 14px; }
.nh-tickets #support_list_open tr { line-height: 1.4 !important; background: transparent !important; }
.nh-tickets #support_list_open th { padding: 13px 16px; text-align: left; border: 0 !important; border-bottom: 1px solid rgba(50,42,77,.55) !important; color: var(--nia-text) !important; font-weight: 500 !important; }
.nh-tickets #support_list_open tr:first-child th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--nia-text-dim) !important; font-weight: 600 !important; }
.nh-tickets #support_list_open tr:last-child th { border-bottom: 0 !important; }
.nh-tickets #support_list_open a img { filter: invert(1) opacity(.7); }
.nh-tickets #support_no, .nh-tickets #support_no_in { background: transparent !important; border: 0 !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
.nh-tickets #support_no_in { padding: 26px !important; border: 1px dashed var(--nh-line) !important; border-radius: 14px !important; color: var(--nia-text-dim) !important; text-align: center; font-size: 14px !important; font-family: var(--nia-font-body) !important; }

/* ---------- Boutique / Mes achats ---------- */
.nh-shop-warn { border-color: rgba(240,115,107,.5); }
.nh-shop-important { display: flex; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(232,163,61,.55); background: linear-gradient(180deg, rgba(232,163,61,.12), rgba(232,163,61,.05)); }
.nh-shop-important-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(232,163,61,.18); color: var(--nia-amber-bright); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nh-shop-important-title { font-family: var(--nia-font-display); font-size: 17px; font-weight: 700; color: var(--nia-amber-bright); margin-bottom: 4px; }
.nh-shop-important p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--nia-text); }
.nh-shop-important p b { color: var(--nia-amber-bright); }
.nh-shop-login { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--nia-void); border: 1px solid var(--nia-amber); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: #fff; letter-spacing: .02em; }
.nh-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nh-packs--items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nh-pack { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 16px; background: var(--nh-panel); border: 1px solid var(--nh-line); transition: transform .18s, border-color .18s; }
.nh-pack:hover { transform: translateY(-3px); border-color: var(--nia-line-bright); }
.nh-pack--featured { border-color: var(--nia-amber); box-shadow: 0 0 0 1px rgba(232,163,61,.25), 0 14px 40px rgba(232,163,61,.12); background: linear-gradient(180deg, #211a3c, #17122b); }
.nh-pack-badge { position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px; background: rgba(79,209,165,.15); color: var(--nia-ok); font-size: 12px; font-weight: 700; }
.nh-pack-name { font-family: var(--nia-font-display); font-size: 17px; font-weight: 700; }
.nh-pack-blurb { font-size: 13px; color: var(--nia-text-dim); line-height: 1.5; }
.nh-pack-points { font-family: var(--nia-font-display); font-size: 30px; font-weight: 700; color: var(--nia-amber-bright); line-height: 1.1; margin-top: 8px; }
.nh-pack-points small { font-size: 13px; color: var(--nia-text-dim); font-family: var(--nia-font-body); font-weight: 600; }
.nh-pack-detail { font-size: 12.5px; color: var(--nia-text-dim); }
.nh-pack-detail b { color: var(--nia-ok); }
.nh-pack-price { font-size: 22px; font-weight: 700; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nh-line); }
.nh-pack-price small { font-size: 12px; color: var(--nia-text-dim); font-weight: 600; }
.nh-pack .nh-cta { margin-top: 8px; }
.nh-pack-pay { display: flex; gap: 8px; margin-top: 8px; }
.nh-pack-pay form { flex: 1; display: flex; }
.nh-pack .nh-pack-contents { margin: 6px 0 0; }
.nh-shop-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--nh-line); font-size: 13px; color: var(--nia-text-dim); line-height: 1.6; }
.nh-shop-foot b { color: var(--nia-text); }
.nh-stats--purchases { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; }
@media (max-width: 1100px) { .nh-packs, .nh-packs--items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .nh-packs, .nh-packs--items, .nh-stats--purchases { grid-template-columns: 1fr; } .nh-shop-important { flex-direction: column; } }

/* ---------- Bloc "Contenu du Coffre de Nia" (repris de nia.css pour les pages sans nia.css) ---------- */


/* ---------- Bloc "Contenu du Coffre de Nia" (repris de nia.css) ---------- */


/* ---------- Bloc "Contenu du Coffre de Nia" + contenu des packs (repris de nia.css, prefixe nh-) ---------- */
.nh-pack-contents { margin: 2px 0 12px; }
.nh-pack-line {
    font-size: 13px;
    font-weight: 600;
    color: var(--nia-text);
    padding: 7px 10px;
    margin-bottom: 6px;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
    border-left: 2px solid var(--nia-accent);
}
.nh-lots {
    border: 1px solid var(--nia-border);
    border-radius: 9px;
    padding: 10px 11px 11px;
    margin-bottom: 12px;
    background: rgba(0,0,0,.16);
}
.nh-lots-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--nia-muted);
    margin-bottom: 8px;
}
.nh-lot { margin-bottom: 9px; }
.nh-lot:last-of-type { margin-bottom: 0; }
.nh-lot-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.nh-lot-name { font-size: 12.5px; font-weight: 700; }
.nh-lot-pct {
    float: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--nia-text);
    opacity: .75;
}
.nh-lot-text {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--nia-muted);
    margin: 1px 0 0 13px;
}
.nh-lots-guarantee {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--nia-border);
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--nia-accent-2);
}
.nh-pack-delivery {
    font-size: 11px;
    color: var(--nia-muted);
    margin-bottom: 14px;
}
.nh-lots-block {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--nia-border);
    border-radius: 12px;
    background: rgba(0,0,0,.18);
}
.nh-lots-block h3 { margin: 0 0 8px; font-size: 16px; }
.nh-lots-block p { margin: 0 0 14px; font-size: 13px; color: var(--nia-muted); line-height: 1.5; }
.nh-lots-block p b { color: var(--nia-text); }
.nh-lots-block .nh-lot { margin-bottom: 11px; max-width: 760px; }
.nh-lots-block .nh-lot-name { font-size: 13.5px; }
.nh-lots-block .nh-lot-text { font-size: 12.5px; }
.nh-lots-block .nh-lot-pct { float: none; margin-left: 8px; opacity: .6; font-weight: 600; }
.nh-lots-foot {
    margin: 14px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid var(--nia-border);
    font-size: 12px !important;
}
