/* ===== Menalt — éditorial sombre, aurora ===== */

:root {
    --bg: #060709;
    --text: #e9eaee;
    --text-strong: #ffffff;
    --muted: #8b93a3;
    --faint: #5c6372;
    --accent: #8b9aff;
    --accent-soft: rgba(139, 154, 255, 0.14);
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.14);
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.055);
    --success: #4ade80;
    --danger: #f0705d;
    --container: 1060px;
    --font-body: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

/* Aurora — une seule nappe continue, pas de blobs répétés */
body::before {
    content: "";
    position: fixed;
    inset: -20% -10%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(52% 38% at 72% 6%, rgba(99, 112, 255, 0.16), transparent 64%),
        radial-gradient(44% 34% at 22% 24%, rgba(150, 104, 255, 0.08), transparent 66%),
        radial-gradient(60% 46% at 85% 82%, rgba(70, 130, 255, 0.05), transparent 62%);
    animation: aurora 46s ease-in-out infinite alternate;
}

/* Poussière d'étoiles, à peine perceptible */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%23aeb8d8'%3E%3Ccircle cx='24' cy='44' r='1' opacity='.7'/%3E%3Ccircle cx='118' cy='16' r='.7' opacity='.4'/%3E%3Ccircle cx='188' cy='76' r='1.1' opacity='.8'/%3E%3Ccircle cx='282' cy='40' r='.6' opacity='.4'/%3E%3Ccircle cx='72' cy='128' r='.8' opacity='.5'/%3E%3Ccircle cx='244' cy='132' r='.9' opacity='.6'/%3E%3Ccircle cx='152' cy='188' r='.6' opacity='.35'/%3E%3Ccircle cx='38' cy='232' r='1' opacity='.7'/%3E%3Ccircle cx='296' cy='218' r='.8' opacity='.5'/%3E%3Ccircle cx='108' cy='278' r='.9' opacity='.6'/%3E%3Ccircle cx='206' cy='302' r='.7' opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes aurora {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

main.container {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 96px;
}

h1, h2, h3 {
    color: var(--text-strong);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 12px; }

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover { color: var(--text-strong); }

.muted { color: var(--muted); }

/* Micro-label éditorial */
.kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Lien avec flèche qui glisse */
.link-arrow {
    color: var(--muted);
    font-size: 0.95rem;
}

.link-arrow::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s;
}

.link-arrow:hover { color: var(--text-strong); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ===== Header ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(6, 7, 9, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 52px;
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 40px;
    line-height: 0;
    overflow: visible;
}

.brand img {
    display: block;
    height: 96px;
    width: auto;
    transform: translateY(6px);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-strong);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    z-index: 2;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.is-nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

body.is-nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.is-nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.header-panel {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    min-width: 0;
}

.main-nav {
    display: flex;
    gap: 22px;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 0.25s ease;
}

.main-nav a:hover { color: var(--text-strong); }
.main-nav a:hover::after { right: 0; }

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.main-nav-link {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
}

.main-nav-link:hover { color: var(--text-strong); }

.header-cta {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow:
        0 0 10px rgba(236, 238, 252, 0.55),
        0 0 22px rgba(139, 154, 255, 0.35);
    transition: color 0.15s, text-shadow 0.2s;
}

.header-cta:hover {
    color: #ffffff;
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.75),
        0 0 28px rgba(139, 154, 255, 0.5);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-online { color: var(--success); }
.status-online::before { box-shadow: 0 0 9px var(--success); animation: pulse 2.6s ease-in-out infinite; }
.status-offline { color: var(--danger); }

.text-online { color: var(--success); }
.text-offline { color: var(--danger); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ===== Boutons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, opacity 0.18s;
}

/* Primaire : clair sur sombre — sobre et premium */
.btn-primary {
    background: #eceefc;
    color: #0b0c10;
    box-shadow: 0 0 0 0 rgba(139, 154, 255, 0);
}

.btn-primary:hover {
    background: #ffffff;
    color: #0b0c10;
    box-shadow: 0 0 32px rgba(139, 154, 255, 0.28);
}

.btn-accent {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(139, 154, 255, 0.28);
}

.btn-accent:hover {
    background: rgba(139, 154, 255, 0.22);
    color: #b9c3ff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--hairline-strong);
}

.btn-ghost:hover {
    border-color: rgba(139, 154, 255, 0.5);
    color: var(--text-strong);
}

.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); padding-left: 10px; padding-right: 10px; }
.btn-quiet:hover { color: var(--danger); }

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(240, 112, 93, 0.35);
}

.btn-danger:hover { background: rgba(240, 112, 93, 0.1); }

.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-sm { padding: 4px 14px; font-size: 0.84rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row-right { justify-content: flex-end; }
.inline-form { display: inline-flex; margin: 0; }

/* ===== Hero ===== */

/* Le héros déborde du conteneur pour occuper toute la largeur de l'écran. */
.hero {
    position: relative;
    margin: -24px calc(50% - 50vw) 0;
    padding: 120px calc(50vw - 50%) 108px;
    /* Bornée : reste généreuse sur portable, sans s'étirer sur un grand écran. */
    min-height: clamp(500px, 74vh, 660px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Fond uni : aucune image derrière la vidéo (sinon les deux se superposent). */
    background: #05070d;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Opaque : seule la vidéo est visible, la lisibilité vient du voile ci-dessous. */
    opacity: 1;
}

/* Voile dégradé : garantit la lisibilité du texte par-dessus l'image. */
.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 6, 12, 0.96) 0%, rgba(4, 6, 12, 0.82) 42%, rgba(4, 6, 12, 0.35) 75%, rgba(4, 6, 12, 0.55) 100%),
        linear-gradient(180deg, rgba(4, 6, 12, 0.75) 0%, transparent 30%, rgba(4, 6, 12, 0.9) 100%);
}

.hero h1 {
    font-size: clamp(2.9rem, 7vw, 4.4rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 22px;
    animation: rise 0.8s ease both;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero .kicker { animation: rise 0.8s ease both; }

.hero-tagline {
    color: var(--muted);
    font-size: 1.14rem;
    font-weight: 350;
    max-width: 540px;
    margin: 0 0 34px;
    animation: rise 0.8s 0.08s ease both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    animation: rise 0.8s 0.16s ease both;
}

.hero-facts {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    list-style: none;
    padding: 26px 0 0;
    margin: 44px 0 0;
    border-top: 1px solid var(--hairline);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
    animation: rise 0.8s 0.24s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Stats — bandeau hairline, pas de cartes ===== */

.stats-strip {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    margin: 8px 0 72px;
}

.stat-card {
    flex: 1 1 160px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-card + .stat-card { border-left: 1px solid var(--hairline); }

.stat-value {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--faint);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ===== Sections ===== */

.section { padding: 40px 0; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.section-head h2,
.section-center h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    letter-spacing: -0.03em;
}

.section-center { margin: 10px 0 8px; }

.section-sub {
    color: var(--muted);
    font-weight: 350;
    max-width: 560px;
    margin: -6px 0 30px;
}

.link-more { font-size: 0.95rem; color: var(--muted); }
.link-more:hover { color: var(--text-strong); }
.link-back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 0.92rem; }
.link-back:hover { color: var(--text-strong); }
.footnote { font-size: 0.84rem; margin-top: 18px; color: var(--faint); }

/* ===== Features — liste éditoriale numérotée, sans boîtes ===== */

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    margin-top: 8px;
}

.feature-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0 18px;
    padding: 30px 0 26px;
    border-top: 1px solid var(--hairline);
}

.feature-num {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
}

.feature-item h3 {
    margin-bottom: 6px;
    font-weight: 650;
}

.feature-item p {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 350;
    margin: 0;
}

/* ===== News — liste éditoriale ===== */

.news-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.news-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: baseline;
    gap: 20px;
    padding: 26px 0;
    border-top: 1px solid var(--hairline);
    color: var(--text);
}

.news-row:last-child { border-bottom: 1px solid var(--hairline); }

.news-row .news-date { padding-top: 3px; }

.news-row h2 {
    font-size: 1.12rem;
    font-weight: 650;
    margin-bottom: 4px;
    transition: color 0.15s;
}

.news-row p {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 350;
    margin: 0;
}

.news-row::after {
    content: "→";
    color: var(--faint);
    transition: transform 0.2s, color 0.2s;
}

.news-row:hover { color: var(--text); }
.news-row:hover h2 { color: var(--accent); }
.news-row:hover::after { transform: translateX(5px); color: var(--accent); }

.news-date {
    color: var(--faint);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Cartes news de l'accueil = mêmes lignes éditoriales */
.news-grid { display: flex; flex-direction: column; }

.news-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 24px 0;
    border-top: 1px solid var(--hairline);
    color: var(--text);
}

.news-card h3 { margin: 0 0 4px; transition: color 0.15s; }
.news-card p { color: var(--muted); font-size: 0.93rem; font-weight: 350; margin: 0; }
.news-card:hover h3 { color: var(--accent); }

.discord-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.discord-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discord-news-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%),
        rgba(255, 255, 255, 0.015);
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.discord-news-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline));
    transform: translateY(-1px);
}

.discord-news-media {
    overflow: hidden;
    border-radius: 10px;
    min-height: 110px;
    background: #12141a;
}

.discord-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discord-news-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 4px 2px;
}

.discord-news-body h2,
.discord-news-body h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    transition: color 0.15s;
}

.discord-news-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 350;
}

.discord-news-body p.news-excerpt {
    white-space: pre-line;
}

.discord-news-card:hover h2,
.discord-news-card:hover h3 {
    color: var(--accent);
}

.discord-news-card:not(:has(.discord-news-media)) {
    grid-template-columns: 1fr;
}

.article-cover {
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.article-discord {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
}

/* ===== Article ===== */

.article { max-width: 680px; }

.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }

.article-meta {
    color: var(--faint);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hairline);
}

.article-body p { margin-bottom: 18px; font-weight: 350; color: #c6cad4; }

/* ===== Contenu Markdown rendu ===== */

.markdown { color: #c6cad4; font-weight: 350; }

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
    color: var(--text-strong);
    margin: 34px 0 12px;
    letter-spacing: -0.02em;
}

.markdown h1 { font-size: 1.7rem; }
.markdown h2 { font-size: 1.35rem; }
.markdown h3 { font-size: 1.12rem; }
.markdown h4 { font-size: 1rem; }
.markdown > :first-child { margin-top: 0; }

.markdown strong { color: var(--text-strong); font-weight: 650; }
.markdown em { font-style: italic; }

.markdown a { color: var(--accent); }
.markdown a:hover { text-decoration: underline; }

.markdown ul,
.markdown ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.markdown li { margin-bottom: 6px; }
.markdown li::marker { color: var(--accent); }

/* Citation : filet coloré, sans boîte */
.markdown blockquote {
    margin: 22px 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}

.markdown blockquote p:last-child { margin-bottom: 0; }

.markdown hr {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 32px 0;
}

.markdown code {
    background: var(--surface-2);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 0.88em;
    font-family: "Cascadia Mono", Consolas, monospace;
    color: #d9def0;
}

.markdown pre {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 0 0 18px;
}

.markdown pre code { background: none; padding: 0; }

.markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 0.94rem;
}

.markdown th,
.markdown td {
    text-align: left;
    padding: 9px 14px 9px 0;
    border-bottom: 1px solid var(--hairline);
}

.markdown th { color: var(--faint); font-weight: 600; }

/* ===== Tabs — soulignés, minimal ===== */

.tabs {
    display: flex;
    gap: 30px;
    margin: 10px 0 0;
    border-bottom: 1px solid var(--hairline);
}

.tab {
    padding: 10px 2px 14px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.97rem;
    position: relative;
    margin-bottom: -1px;
}

.tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transition: right 0.25s ease;
}

.tab:hover { color: var(--text-strong); }
.tab-active { color: var(--text-strong); }
.tab-active::after { right: 0; }

/* ===== Bandeau illustré des pages internes (Ladders, News) ===== */

.page-hero {
    position: relative;
    margin: -24px calc(50% - 50vw) 34px;
    padding: 56px calc(50vw - 50%) 0;
    overflow: hidden;
}

.page-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #05070d url("/img/hero.jpg") center 28% / cover no-repeat;
}

/* Voile : l'artwork reste un décor, le texte prime. */
.page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 6, 12, 0.95) 0%, rgba(4, 6, 12, 0.86) 45%, rgba(4, 6, 12, 0.6) 100%),
        linear-gradient(180deg, rgba(4, 6, 12, 0.8) 0%, transparent 32%, var(--bg) 97%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    letter-spacing: -0.03em;
}

.page-hero .section-sub { margin-bottom: 18px; }
.page-hero .tabs { margin-bottom: 0; border-bottom-color: transparent; }

/* ===== Ladders ===== */

/* Titre de personnage, sous le pseudo */
.player-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.player-cell-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.title-line {
    display: block;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
}

.podium-card .title-line {
    margin: 0 0 4px;
    text-align: center;
    width: 100%;
}

.guild-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.guild-emblem {
    flex-shrink: 0;
    display: block;
}

.guild-emblem--sm { width: 28px; height: 28px; }
.guild-emblem--md { width: 40px; height: 40px; }
.guild-emblem--lg { width: 56px; height: 56px; }

.podium-card .guild-emblem {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
}

.dev-flag { color: var(--accent); font-weight: 600; }

/* Podium du top 3 — en flex : reste centré même avec 1 ou 2 classés. */
.podium {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin: 30px 0 22px;
}

.podium-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 340px;
}

.podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 26px 20px 22px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.podium-card:hover { transform: translateY(-3px); }

.podium-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
}

/* Or / argent / bronze — la 1re place est surélevée. */
.podium-1 { border-color: rgba(245, 200, 110, 0.35); transform: translateY(-10px); }
.podium-1:hover { transform: translateY(-13px); }
.podium-1::before { background: linear-gradient(90deg, transparent, #f5c86e, transparent); }
.podium-1 .podium-rank { color: #f5c86e; }

.podium-2 { border-color: rgba(201, 209, 224, 0.25); }
.podium-2::before { background: linear-gradient(90deg, transparent, #c9d1e0, transparent); }
.podium-2 .podium-rank { color: #c9d1e0; }

.podium-3 { border-color: rgba(217, 158, 112, 0.25); }
.podium-3::before { background: linear-gradient(90deg, transparent, #d99e70, transparent); }
.podium-3 .podium-rank { color: #d99e70; }

.podium-medal {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
}

.podium-rank {
    font-size: 2.4rem;
    font-weight: 200;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.podium-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    margin: 6px 0 2px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.podium-name {
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.01em;
}

.podium-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}

.podium-value {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    width: 100%;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.podium-value small {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.ladder-name { font-weight: 600; }

.ladder-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 8px;
    flex-wrap: wrap;
}

.ladder-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.ladder-picker {
    position: relative;
    min-width: min(100%, 320px);
    max-width: min(100%, 420px);
}

.ladder-picker > summary {
    list-style: none;
    position: relative;
    cursor: pointer;
    background: #12141a;
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 36px 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    user-select: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ladder-picker > summary::-webkit-details-marker { display: none; }

.ladder-picker > summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s;
}

.ladder-picker[open] > summary {
    border-color: rgba(139, 154, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(139, 154, 255, 0.14);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ladder-picker[open] > summary::after {
    transform: translateY(-20%) rotate(225deg);
}

.ladder-picker-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    background: #12141a;
    border: 1px solid rgba(139, 154, 255, 0.55);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ladder-picker-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
}

.ladder-picker-list a:hover {
    background: var(--surface-2);
    color: var(--text-strong);
}

.ladder-picker-list a.is-active {
    background: var(--accent-soft);
    color: var(--text-strong);
}

.ladder-picker-list a .muted {
    color: var(--muted);
    font-size: 0.85em;
}

/* État vide, à la place d'une ligne triste */
.empty-state {
    text-align: center;
    padding: 54px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.empty-state h3 { margin: 0; }
.empty-state p { margin: 0 0 10px; }

/* ===== Tables / ladders ===== */

.table-wrap { overflow-x: auto; }

.ladder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ladder-table th,
.ladder-table td {
    padding: 14px 18px 14px 0;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}

.ladder-table th {
    color: var(--faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.ladder-table tbody tr { transition: background 0.12s; }
.ladder-table tbody tr:hover { background: var(--surface); }
.ladder-table tbody td:first-child { padding-left: 8px; }

.col-rank { width: 64px; font-weight: 600; font-variant-numeric: tabular-nums; }
.col-num { text-align: right; font-variant-numeric: tabular-nums; }
.col-level { vertical-align: middle; }
.col-num.col-level { text-align: center; }

.omega-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 23px;
    vertical-align: middle;
}

.omega-badge-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.omega-badge-rank {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    font-variant-numeric: tabular-nums;
}

.level-plain {
    font-variant-numeric: tabular-nums;
}

.podium-meta .omega-badge {
    margin: 0 2px;
}

/* Emblème de classe dans les tableaux */
.breed-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breed-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.rank-1 { color: #f5c86e; }
.rank-2 { color: #c9d1e0; }
.rank-3 { color: #d99e70; }
.rank-n { color: var(--faint); }

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 1px 8px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* ===== Vote ===== */

.vote-stage {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
    padding: 40px 0 8px;
    animation: vote-rise 0.55s ease both;
}

.vote-intro h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin-bottom: 18px;
}

.vote-intro h1 em {
    font-style: normal;
    color: var(--accent);
}

.vote-intro .hero-tagline {
    max-width: 36ch;
    margin-bottom: 28px;
}

.vote-meter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.vote-meter > div {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vote-meter > div + div {
    padding-left: 18px;
    margin-left: 18px;
    border-left: 1px solid var(--hairline);
}

.vote-meter dt {
    margin: 0;
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vote-meter dd {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.vote-meter-reward dd { color: #c4cbff; }

.vote-ladder-link { margin: 0; }

.vote-flow {
    animation: vote-rise 0.65s ease 0.06s both;
}

.vote-flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vote-flow-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 22px 0;
    position: relative;
}

.vote-flow-step + .vote-flow-step { border-top: 1px solid var(--hairline); }

.vote-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(139, 154, 255, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.vote-flow-step.is-ready .vote-flow-num {
    border-color: rgba(236, 238, 252, 0.55);
    background: #eceefc;
    color: #0b0c10;
}

.vote-flow-step.is-waiting .vote-flow-num {
    border-color: var(--hairline-strong);
    background: transparent;
    color: var(--muted);
}

.vote-flow-body h2 {
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.vote-flow-body p {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 350;
    margin-bottom: 14px;
    max-width: 42ch;
}

.vote-flow-body p strong { color: var(--text-strong); font-weight: 600; }

.vote-clock {
    margin-top: 4px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(139, 154, 255, 0.22);
    background:
        radial-gradient(70% 120% at 50% 0%, rgba(139, 154, 255, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.02);
}

.vote-clock-face {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}

.vote-clock:not(.has-hours) .vote-clock-unit:first-child,
.vote-clock:not(.has-hours) .vote-clock-sep:first-of-type {
    display: none;
}

.vote-clock-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 3.2rem;
}

.vote-clock-unit span {
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.vote-clock-unit small {
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-clock-sep {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    padding-bottom: 1.15rem;
    opacity: 0.7;
    animation: vote-blink 1.2s steps(1) infinite;
}

.vote-clock-done {
    margin: 0;
    text-align: center;
    color: var(--success);
    font-weight: 600;
}

.vote-clock-done a { color: var(--success); text-decoration: underline; }

.vote-tiers-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--hairline);
    animation: vote-rise 0.7s ease 0.12s both;
}

.vote-tiers-section .section-head {
    align-items: baseline;
    margin-bottom: 22px;
}

.vote-tiers-section .section-head p {
    margin: 0;
    font-size: 0.92rem;
}

.vote-tiers-section .section-head strong { color: var(--text-strong); }

.vote-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.vote-track-item {
    position: relative;
    padding: 18px 16px 16px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.vote-track-item.is-reached {
    border-color: rgba(139, 154, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(139, 154, 255, 0.08), transparent 70%),
        var(--surface);
}

.vote-track-item.is-current {
    border-color: rgba(139, 154, 255, 0.45);
    background:
        linear-gradient(180deg, rgba(139, 154, 255, 0.16), transparent 72%),
        var(--surface);
    transform: translateY(-3px);
}

.vote-track-item.is-current::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #aeb8ff, transparent);
}

.vote-track-reward {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.vote-track-item.is-current .vote-track-reward { color: #c4cbff; }

.vote-track-range {
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vote-track-item.is-current .vote-track-range { color: var(--muted); }

@keyframes vote-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vote-blink {
    50% { opacity: 0.25; }
}

@media (max-width: 860px) {
    .vote-stage {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 24px;
    }

    .vote-intro .hero-tagline { max-width: none; }

    .vote-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .vote-meter {
        grid-template-columns: 1fr;
    }

    .vote-meter > div + div {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        border-top: 1px solid var(--hairline);
        padding-top: 14px;
    }

    .vote-track { grid-template-columns: 1fr 1fr; }

    .vote-clock-unit { min-width: 2.6rem; }
}

/* ===== Formulaires ===== */

.auth-stage {
    position: relative;
    margin: -24px calc(50% - 50vw) -96px;
    padding: 48px 24px 72px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-stage--register {
    background:
        linear-gradient(180deg, rgba(6, 7, 9, 0.55) 0%, rgba(6, 7, 9, 0.35) 40%, rgba(6, 7, 9, 0.72) 100%),
        #05070d url("/img/bg_register.jpg") center / cover no-repeat;
}

.auth-stage .auth-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 32px 28px 28px;
    background: rgba(6, 7, 9, 0.72);
    border: 1px solid var(--hairline-strong);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-stage .auth-panel--wide {
    max-width: 640px;
}

.auth-panel {
    max-width: 430px;
    margin: 56px auto;
}

.auth-panel h1 {
    font-size: 1.9rem;
    letter-spacing: -0.03em;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 26px 0;
}

.form--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: start;
}

.form--grid .form-span {
    grid-column: 1 / -1;
}

.form--grid .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form--grid .field label {
    margin-top: 0;
}

.form label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #c6cad4;
    margin-top: 14px;
}

.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form textarea {
    background: var(--surface);
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    color: var(--text);
    padding: 11px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 154, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(139, 154, 255, 0.14);
}

.form button[type="submit"] { margin-top: 20px; align-self: flex-start; }
.auth-panel .form button[type="submit"] { align-self: stretch; }

.field-error { color: var(--danger); font-size: 0.82rem; }
.field-error:empty { display: none; }
.field-hint { color: var(--faint); font-size: 0.8rem; font-weight: 350; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.92rem;
    font-weight: 400;
    color: #c6cad4;
}

.checkbox-row input { accent-color: var(--accent); }

.cf-turnstile {
    margin: 16px 0 4px;
}

.flash {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.92rem;
    margin: 14px 0;
    border: 1px solid transparent;
}

.flash:empty { display: none; }

.flash-success {
    background: rgba(74, 222, 128, 0.07);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--success);
}

.flash-error {
    background: rgba(240, 112, 93, 0.07);
    border-color: rgba(240, 112, 93, 0.3);
    color: var(--danger);
}

.flash-error ul { margin: 0; padding-left: 18px; }

/* ===== Navigation admin ===== */

.admin-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 14px 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--hairline);
}

.admin-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    padding-right: 6px;
}

.admin-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 4px 0;
}

.admin-nav a:hover { color: var(--text-strong); }
.admin-nav a.is-current { color: var(--text-strong); }

.admin-stats { margin-top: 18px; margin-bottom: 28px; }

/* Liste de vérification (configuration) */
.checklist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.checklist li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.94rem;
    border-bottom: 1px solid var(--hairline);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.checklist .is-ok { color: var(--text); }
.checklist .is-ok::before { content: "✓"; color: var(--success); }

.checklist .is-todo { color: var(--muted); }
.checklist .is-todo::before { content: "•"; color: var(--faint); }

/* ===== Compte / admin ===== */

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.panel {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px;
}

.panel-wide { grid-column: 1 / -1; }

.panel h2 {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 28px;
    margin: 0;
}

.info-list dt { color: var(--faint); font-size: 0.9rem; }
.info-list dd { margin: 0; font-weight: 500; }

/* Solde de points de vote */
.points-balance {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--hairline);
}

.points-value {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.points-label {
    color: var(--muted);
    font-size: 0.86rem;
}

/* ===== Téléchargement ===== */

.dl-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0 40px;
}

.dl-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.dl-hero h1 em { font-style: normal; color: var(--accent); }

.dl-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.dl-note { margin-top: 16px; font-size: 0.9rem; }

.btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Étapes : une colonne verticale reliée par un filet */
.dl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.dl-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 22px 0;
    position: relative;
}

.dl-step + .dl-step { border-top: 1px solid var(--hairline); }

.dl-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(139, 154, 255, 0.4);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dl-step h2 {
    font-size: 1.06rem;
    margin-bottom: 4px;
}

.dl-step p {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 350;
    margin-bottom: 6px;
}

.dl-done {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--success);
}

.dl-done::before { content: "✓ "; }

/* FAQ */
.dl-faq { padding-top: 20px; }

.faq-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.faq-item {
    border-top: 1px solid var(--hairline);
    padding: 18px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--faint);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }

.faq-item p {
    color: var(--muted);
    font-weight: 350;
    font-size: 0.94rem;
    margin: 12px 0 0;
    max-width: 68ch;
}

/* ===== CTA — typographique, sans boîte ===== */

.cta-band {
    position: relative;
    text-align: center;
    padding: 96px 20px 88px;
    margin: 30px 0 0;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(46% 62% at 50% 44%, rgba(120, 134, 255, 0.13), transparent 72%);
}

.cta-band h2 {
    font-size: clamp(1.9rem, 4.6vw, 2.8rem);
    letter-spacing: -0.035em;
    margin-bottom: 10px;
}

.cta-band p {
    color: var(--muted);
    font-weight: 350;
    margin-bottom: 30px;
}

.cta-band .hero-actions {
    animation: none;
    justify-content: center;
}

/* Variante illustrée : artwork en pleine largeur derrière l'appel à l'action. */
.cta-art {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.cta-art::before {
    background:
        linear-gradient(180deg, rgba(4, 6, 12, 0.92) 0%, rgba(4, 6, 12, 0.72) 50%, rgba(4, 6, 12, 0.95) 100%),
        url("/img/cta.jpg") center 35% / cover no-repeat;
}

/* ===== Erreur ===== */

.error-panel { text-align: center; padding: 120px 0; }

/* ===== Footer ===== */

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 26px 0;
    color: var(--faint);
    font-size: 0.84rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text-strong); }

/* ===== Accessibilité / responsive ===== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-video { display: none; }
    .hero-media { background: #05070d url("/img/hero.jpg") center/cover no-repeat; }
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }

    .brand {
        height: 44px;
    }

    .brand img {
        height: 48px;
        transform: none;
    }

    .header-inner {
        gap: 12px;
        min-height: 56px;
        flex-wrap: wrap;
    }

    .header-panel {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: 1 1 100%;
        width: 100%;
        margin: 0 -24px;
        padding: 8px 24px 20px;
        border-top: 1px solid var(--hairline);
        background: rgba(6, 7, 9, 0.96);
        backdrop-filter: blur(14px);
    }

    body.is-nav-open .header-panel {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        gap: 0;
        flex-shrink: 0;
    }

    .main-nav a {
        padding: 14px 0;
        font-size: 1rem;
    }

    .main-nav a::after { display: none; }

    .header-right {
        margin-left: 0;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--hairline);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        flex-wrap: wrap;
    }

    .header-right .main-nav-link,
    .header-right .header-cta {
        padding: 14px 0;
        font-size: 1rem;
    }

    .header-right .inline-form {
        display: block;
        margin-top: 4px;
    }

    .header-right .btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 0;
    }

    .status-pill { display: none; }
}

@media (max-width: 880px) {
    .features-list { grid-template-columns: 1fr; }
    .dl-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
}

@media (max-width: 760px) {
    .podium { display: none; }
}

@media (max-width: 720px) {
    .container { padding-left: 16px; padding-right: 16px; }
    main.container { padding-bottom: 72px; }

    h1 { font-size: 1.75rem; }

    .hero {
        min-height: clamp(360px, 62vh, 520px);
        padding: 72px calc(50vw - 50%) 64px;
    }

    .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .hero-tagline { font-size: 1.02rem; margin-bottom: 26px; }
    .hero-facts { gap: 16px; }

    .page-hero {
        padding-top: 40px;
        margin-bottom: 28px;
    }

    .stats-strip {
        margin-bottom: 48px;
    }

    .stat-card {
        flex: 1 1 46%;
        padding: 22px 16px;
    }

    .stat-card + .stat-card { border-left: none; }

    .stat-card:nth-child(2n) {
        border-left: 1px solid var(--hairline);
    }

    .stat-card:nth-child(n + 3) {
        border-top: 1px solid var(--hairline);
    }

    .stat-value { font-size: 1.65rem; }

    .tabs {
        gap: 20px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar { display: none; }

    .tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .account-grid { grid-template-columns: 1fr; }

    .news-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .news-row .news-date {
        grid-column: 1 / -1;
        order: -1;
    }

    .news-card { grid-template-columns: 1fr; gap: 4px; }

    .discord-news-grid {
        grid-template-columns: 1fr;
    }

    .discord-news-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .discord-news-media {
        min-height: 160px;
        max-height: 200px;
    }

    .cta-band { padding: 64px 8px; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-panel {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-stage {
        padding: 32px 16px 56px;
        min-height: calc(100vh - 100px);
    }
}

@media (max-width: 620px) {
    .form--grid { grid-template-columns: 1fr; }
    .auth-stage .auth-panel--wide { max-width: 460px; }
}
