/* Quintessence — thème Alliance (bleu nuit, or) — responsive ordinateur / mobile */

:root {
    --bg: #080b13;
    --bg-2: #0e1420;
    --panel: #121a28;
    --panel-2: #172133;
    --border: #232f47;
    --border-strong: #33425f;
    --text: #e8ebf2;
    --muted: #97a1b6;
    --gold: #d9b45a;
    --gold-2: #f3d98b;
    --gold-ink: #1f1606;
    --blue: #3f7be0;
    --blue-2: #2457b8;
    --discord: #5865f2;
    --green: #3fb950;
    --red: #e5484d;
    --orange: #e8a33d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Titres condensés en capitales, façon bannière (polices système : rien à charger) */
    --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(63, 123, 224, .14), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(217, 180, 90, .06), transparent 60%),
        var(--bg);
    color: var(--text);
    font: 16px/1.55 var(--font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; padding-bottom: 48px; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; font-stretch: condensed; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .45em; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: .1em .4em; font-size: .88em; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }
.mt-sm { margin-top: .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.icon-xl { width: 2.4rem; height: 2.4rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }

/* ---------- Barre de navigation ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 23, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; }
.brand:hover { text-decoration: none; }
.brand img { filter: drop-shadow(0 2px 6px rgba(63, 123, 224, .4)); }
.main-nav { display: flex; align-items: center; gap: 16px; flex: 1; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links a {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-links a.active { color: var(--gold-2); background: rgba(217, 180, 90, .1); }
.nav-lock .icon { width: .8em; height: .8em; opacity: .6; }
.pill { background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 6px; line-height: 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; display: block; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--panel-2); }
.user-name { font-weight: 600; font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { border-radius: 50%; background: var(--panel-2); flex: none; }
.avatar-lg { width: 72px; height: 72px; }
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
    background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column;
}
.user-dropdown-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; }
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px;
    color: var(--text); background: none; border: 0; font: inherit; font-size: .93rem; cursor: pointer; text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--panel-2); text-decoration: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
    background: var(--panel-2); color: var(--text); font: 600 .95rem/1.2 var(--font);
    cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s;
    min-height: 42px;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: #b8923c; }
.btn-gold:hover { border-color: var(--gold-2); filter: brightness(1.05); }
.btn-discord { background: var(--discord); border-color: #4752c4; color: #fff; }
.btn-discord:hover { background: #4f5bdc; border-color: #fff3; }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(229, 72, 77, .14); border-color: rgba(229, 72, 77, .5); color: #ff9c9f; }
.btn-success { background: rgba(63, 185, 80, .16); border-color: rgba(63, 185, 80, .55); color: #8be29a; }
.btn-danger-text { color: #ff9c9f; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: .86rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; min-height: 50px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--gold-2); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.link-more { font-size: .9rem; }

/* ---------- Blocs ---------- */
.panel, .card {
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.panel { margin-bottom: 20px; }
.card { display: block; color: var(--text); }
a.card:hover { border-color: var(--border-strong); text-decoration: none; transform: translateY(-1px); }
a.card { transition: transform .12s, border-color .15s; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.highlight { border-color: rgba(217, 180, 90, .45); background: linear-gradient(180deg, rgba(217, 180, 90, .1), var(--bg-2)); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 22px; }
.page-head p { margin: 0; max-width: 720px; }
.back { display: inline-block; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.section-title { font-family: var(--font-display); color: var(--gold-2); font-size: 1.1rem; letter-spacing: .05em; margin: 28px 0 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 20px; }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.grid-2 > .panel, .grid-sidebar > .panel { margin-bottom: 0; }
.grid-2 { margin-bottom: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Étiquettes, badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tag .icon { width: .9em; height: .9em; }
.tag-lg { font-size: .9rem; padding: 6px 14px; }
.tag-gold { color: var(--gold-2); border-color: rgba(217, 180, 90, .45); background: rgba(217, 180, 90, .1); }
.tag-blue { color: #9cc0ff; border-color: rgba(63, 123, 224, .5); background: rgba(63, 123, 224, .12); }
.tag-green, .status-accepted { color: #8be29a; border-color: rgba(63, 185, 80, .5); background: rgba(63, 185, 80, .12); }
.tag-red, .status-refused { color: #ff9c9f; border-color: rgba(229, 72, 77, .5); background: rgba(229, 72, 77, .12); }
.status-pending { color: #ffd38a; border-color: rgba(232, 163, 61, .5); background: rgba(232, 163, 61, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge-present { background: rgba(63, 185, 80, .15); color: #8be29a; border-color: rgba(63, 185, 80, .4); }
.badge-late { background: rgba(232, 163, 61, .15); color: #ffd38a; border-color: rgba(232, 163, 61, .4); }
.badge-tentative { background: rgba(63, 123, 224, .15); color: #9cc0ff; border-color: rgba(63, 123, 224, .4); }
.badge-absent { background: rgba(229, 72, 77, .14); color: #ff9c9f; border-color: rgba(229, 72, 77, .4); }
.badge-bench { background: rgba(151, 161, 182, .14); color: var(--text); border-color: var(--border-strong); }
.badge-none { background: transparent; color: var(--muted); border-color: var(--border); }

.char { font-weight: 700; }
.cls-warrior { color: #c69b6d; } .cls-paladin { color: #f48cba; } .cls-hunter { color: #aad372; }
.cls-rogue { color: #fff468; } .cls-priest { color: #ffffff; } .cls-mage { color: #3fc7eb; }
.cls-warlock { color: #8788ee; } .cls-druid { color: #ff7c0a; } .cls-shaman { color: #0070dd; }
[class*="cls-border-"] { border-left: 3px solid var(--cls, var(--border-strong)) !important; }
.cls-border-warrior { --cls: #c69b6d; } .cls-border-paladin { --cls: #f48cba; } .cls-border-hunter { --cls: #aad372; }
.cls-border-rogue { --cls: #fff468; } .cls-border-priest { --cls: #ffffff; } .cls-border-mage { --cls: #3fc7eb; }
.cls-border-warlock { --cls: #8788ee; } .cls-border-druid { --cls: #ff7c0a; } .cls-border-shaman { --cls: #0070dd; }

.role { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; flex: none; }
.role .icon { width: 14px; height: 14px; }
.role-tank { background: rgba(63, 123, 224, .18); color: #9cc0ff; }
.role-heal { background: rgba(63, 185, 80, .18); color: #8be29a; }
.role-dps { background: rgba(229, 72, 77, .18); color: #ff9c9f; }
.role-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.role-tag .icon { width: 14px; height: 14px; }

/* ---------- Messages ---------- */
.flashes { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); margin-bottom: 12px; }
.flashes .flash { margin: 0; }
.flash-success { border-color: rgba(63, 185, 80, .5); background: rgba(63, 185, 80, .1); }
.flash-error { border-color: rgba(229, 72, 77, .55); background: rgba(229, 72, 77, .1); }
.flash-warning { border-color: rgba(232, 163, 61, .55); background: rgba(232, 163, 61, .1); }
.flash-info { border-color: rgba(63, 123, 224, .5); background: rgba(63, 123, 224, .1); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); margin-bottom: 20px; }
.empty .icon { width: 36px; height: 36px; opacity: .6; margin-bottom: 8px; }
.empty p { margin: 0; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin-bottom: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], select, textarea {
    width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
    background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font); min-height: 44px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 90, .2); }
input[type="file"] { color: var(--muted); font: inherit; max-width: 100%; }
.form label.checkbox, label.choice { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.choice-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.choice-group legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; width: 100%; }
label.choice { padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
label.choice:has(input:checked) { border-color: var(--gold); background: rgba(217, 180, 90, .08); }
label.choice:has(input:disabled) { opacity: .35; cursor: not-allowed; }

.searchbar { display: flex; gap: 10px; align-items: center; position: relative; margin-bottom: 16px; }
.searchbar input { padding-left: 40px; }
.searchbar-icon { position: absolute; left: 13px; color: var(--muted); display: flex; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; font-weight: 600; font-size: .9rem; background: var(--panel); }
.tab:hover { color: var(--text); text-decoration: none; border-color: var(--border-strong); }
.tab.active { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.tab.active .muted { color: var(--gold-ink); opacity: .7; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.chip:hover { text-decoration: none; color: var(--text); }
.chip.active { border-color: var(--gold); color: var(--text); background: rgba(217, 180, 90, .1); }

/* ---------- Listes ---------- */
.list { list-style: none; margin: 0 0 12px; padding: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.list li:last-child .list-row, .list li.list-row:last-child { border-bottom: 0; }
a.list-row:hover { text-decoration: none; color: var(--gold-2); }
.list.compact .list-row { padding: 6px 0; }
.char-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist .icon { color: var(--green); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--panel-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.crafters { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background:
    radial-gradient(600px 300px at 20% 30%, rgba(63, 123, 224, .25), transparent 70%),
    radial-gradient(500px 260px at 85% 70%, rgba(217, 180, 90, .14), transparent 70%),
    linear-gradient(180deg, #0d1424, var(--bg)); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 14px); pointer-events: none; }
.hero-inner { display: flex; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.hero-crest { width: 150px; height: auto; flex: none; filter: drop-shadow(0 12px 30px rgba(63, 123, 224, .45)); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: .15em; background: linear-gradient(180deg, #fff6d8, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .06em; }
.lead { font-size: 1.15rem; color: #c9d1e2; max-width: 560px; }
.launch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(63, 123, 224, .14); border: 1px solid rgba(63, 123, 224, .4); color: #c5d8ff; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -28px 0 24px; position: relative; z-index: 2; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-2); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.intro p { font-size: 1.05rem; margin: 0; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(217, 180, 90, .12); color: var(--gold-2); margin-bottom: 12px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature p { margin: 0; }
.class-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.class-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.need { font-size: .74rem; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.need-high { background: rgba(63, 185, 80, .18); color: #8be29a; }
.need-medium { background: rgba(232, 163, 61, .18); color: #ffd38a; }
.need-low { background: rgba(151, 161, 182, .16); color: var(--muted); }
.need-closed { background: rgba(229, 72, 77, .14); color: #ff9c9f; }

/* ---------- Raids ---------- */
.raid-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; }
.raid-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(63, 123, 224, .14); border: 1px solid rgba(63, 123, 224, .35); border-radius: 10px; height: 64px; }
.raid-day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.raid-month { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; color: #9cc0ff; }
.raid-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.raid-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; font-weight: 600; font-size: .9rem; }
.raid-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.progress { width: 110px; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; display: inline-block !important; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.past .raid-card { opacity: .65; }
.raid-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.signup-form { position: sticky; top: 84px; }
.roster-summary { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; font-weight: 600; }
.roster-summary span { display: inline-flex; align-items: center; gap: 6px; }
.roster-summary strong { margin-left: auto; font-family: var(--font-display); color: var(--gold-2); font-size: 1.2rem; }
.roster-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.roster-col { margin: 0; padding: 14px; }
.roster-col h3, .roster-extra h3 { display: flex; align-items: center; gap: 8px; }
.signups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.signup { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.signup-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.signup-comment { font-style: italic; }
.signup-admin select { min-height: 32px; padding: 4px 8px; font-size: .82rem; margin-top: 4px; }
.roster-extra .signups { flex-direction: row; flex-wrap: wrap; }
.roster-extra .signup { min-width: 200px; }

/* ---------- Personnages ---------- */
.char-card { padding: 14px 18px; }
.char-card-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.char-card h3 { margin-bottom: 2px; display: flex; gap: 8px; align-items: center; }
.char-card p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.profile { display: flex; gap: 20px; align-items: flex-start; }
.profile h2 { margin-bottom: 0; }
.token-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; background: var(--bg); border: 1px dashed var(--gold); border-radius: var(--radius-sm); margin-bottom: 12px; }
.token-box code { font-size: .95rem; background: none; border: 0; }

/* ---------- Craft ---------- */
.prof-card { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Group finder ---------- */
.grid-sidebar.reverse aside { order: 2; }
.activity { padding: 16px 18px; margin: 0; }
.activity-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.activity-head h2 { margin: 0; font-size: 1.08rem; }
.activity-roles { display: flex; gap: 10px; font-weight: 700; }
.activity-roles span { display: inline-flex; align-items: center; gap: 4px; }
.activity-roles .dim { opacity: .35; }
.requests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.request { padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.request-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.request-roles { display: inline-flex; gap: 4px; }
.request-note { margin: 4px 0; font-style: italic; color: #c9d1e2; }
.request-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.request-meta span { display: inline-flex; align-items: center; gap: 4px; }
.request-meta form { margin: 0 0 0 auto; }

/* ---------- Addons ---------- */
.addon { display: flex; flex-direction: column; gap: 10px; }
.addon-head { display: flex; gap: 12px; align-items: flex-start; }
.addon-head > div:nth-child(2) { flex: 1; min-width: 0; }
.addon-head h3 { margin: 0; overflow-wrap: anywhere; }
.addon-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(63, 123, 224, .15); color: #9cc0ff; flex: none; }
.addon-desc { margin: 0; font-size: .92rem; }
.addon-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }

.dropzone { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px !important; text-align: center; padding: 36px 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg); cursor: pointer; color: var(--muted); }
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); color: var(--text); }
.dropzone strong { color: var(--text); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Recrutement ---------- */
.needs, .needs-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.need-row { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.need-row select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.apply-card { display: flex; flex-direction: column; align-items: flex-start; }
.apply-card p { flex: 1; }
.gate-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gate-inline p { margin: 0; }
.gate { text-align: center; padding: 40px 24px; margin-top: 40px; }
.gate img { margin-bottom: 12px; }
.application summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.application summary::-webkit-details-marker { display: none; }
.application-who { display: flex; align-items: center; gap: 12px; }
.details { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; margin: 18px 0; }
.details dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.decision { border-top: 1px solid var(--border); padding-top: 14px; }

/* ---------- Objets, recettes et composants (infobulles Wowhead) ---------- */
.item, .recipe { font-weight: 600; }
.item.q0 { color: #9d9d9d; } .item.q1 { color: #ffffff; } .item.q2 { color: #1eff00; } .item.q3 { color: #0070dd; }
.item.q4 { color: #a335ee; } .item.q5 { color: #ff8000; } .item.q6 { color: #e6cc80; } .item.q7, .item.q8 { color: #00ccff; }
a.char:hover, a.item:hover, a.recipe:hover { text-decoration: underline; }
.reagents { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .84rem; }
.reagent { display: inline-flex; align-items: center; gap: 4px; }
.reagent-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-upload { border-color: rgba(217, 180, 90, .55); color: var(--gold-2); }
.btn-upload.active, .btn-upload:hover { background: rgba(217, 180, 90, .12); }
.nav-user { display: flex; align-items: center; gap: 10px; }

/* ---------- Rapport d'import ---------- */
.stats-inline { margin: 14px 0; box-shadow: none; }
.stats-inline .stat { box-shadow: none; background: var(--bg); }

/* ---------- Fiche personnage ---------- */
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
    margin: 18px 0 20px; padding: 18px 20px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); }
.sheet-head h1 { margin-bottom: .2em; }
.sheet-head p { margin: 0 0 6px; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.sheet-grid > .panel, .sheet-side > .panel { margin-bottom: 20px; }
.gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.gear-col { list-style: none; margin: 0; padding: 0; }
.gear-slot { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.gear-slot a { overflow-wrap: anywhere; }
.gear-slot.is-empty { opacity: .55; }
.gear-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.resists { display: flex; flex-wrap: wrap; gap: 6px; }
.resist { padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: .85rem; }
.resist-fire strong { color: #ff7a45; } .resist-frost strong { color: #69c0ff; } .resist-nature strong { color: #73d13d; }
.resist-shadow strong { color: #b37feb; } .resist-arcane strong { color: #f759ab; }
.talents code { word-break: break-all; }
.prof-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.prof-block summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.prof-block summary::-webkit-details-marker { display: none; }
.recipe-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.recipe-list li { padding-top: 8px; border-top: 1px solid var(--border); }
@media (max-width: 980px) {
    .sheet-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .gear { grid-template-columns: minmax(0, 1fr); }
    .gear-slot.is-empty { display: none; }
    .nav-user { flex-direction: column; align-items: stretch; }
    .stats-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { width: 100%; margin: 0; }

/* ---------- Tablette ---------- */
@media (max-width: 980px) {
    .grid-sidebar, .raid-layout { grid-template-columns: minmax(0, 1fr); }
    .grid-sidebar.reverse aside { order: -1; }
    .signup-form { position: static; }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Menu resserré (écrans moyens : neuf liens tiennent sans toucher le logo) ---------- */
.brand { flex-shrink: 0; }
@media (min-width: 1121px) and (max-width: 1380px) {
    .topbar-inner { gap: 14px; }
    .main-nav { gap: 10px; }
    .nav-links a { padding: 8px 8px; font-size: .9rem; }
    .user-name { display: none; }
}

/* ---------- Menu mobile ---------- */
@media (max-width: 1120px) {
    /* backdrop-filter servirait de référence au menu en position fixe : on le retire sur mobile */
    .topbar { backdrop-filter: none; background: var(--bg); }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); padding: 12px 16px 24px; overflow-y: auto;
        transform: translateX(100%); transition: transform .22s ease; visibility: hidden;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .main-nav { transform: none; visibility: visible; }
    .nav-links { flex-direction: column; flex: none; gap: 2px; }
    .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .nav-user { padding-top: 16px; }
    .nav-user .btn { width: 100%; min-height: 48px; }
    .user-menu summary { border-radius: var(--radius); padding: 8px 12px; }
    .user-name { max-width: none; }
    .user-dropdown { position: static; margin-top: 8px; box-shadow: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .panel, .card { padding: 16px; }
    .page-head { margin: 22px 0 16px; align-items: flex-start; }
    .page-head > .btn, .page-head > .btn-row { width: 100%; }
    .page-head > .btn { justify-content: center; }
    .hero-inner { flex-direction: column; text-align: center; gap: 18px; padding-top: 36px; padding-bottom: 56px; }
    .hero-crest { width: 96px; }
    .hero .btn-row { justify-content: center; }
    .hero .btn-lg { width: 100%; }
    .lead { margin-left: auto; margin-right: auto; }
    .stats { margin-top: -26px; gap: 8px; }
    .stat { padding: 12px; }
    .stat strong { font-size: 1.45rem; }
    .raid-card { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .raid-date { height: 52px; }
    .raid-day { font-size: 1.3rem; }
    .raid-status { grid-column: 1 / -1; }
    .progress { width: 70px; }
    .roster-cols { grid-template-columns: minmax(0, 1fr); }
    .roster-extra .signup { min-width: 0; width: 100%; }
    .searchbar { flex-wrap: wrap; }
    .searchbar .btn { width: 100%; }
    .searchbar-icon { top: 13px; }
    .details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .details dd { margin-bottom: 10px; }
    .profile { flex-direction: column; align-items: center; text-align: center; }
    .profile .tags { justify-content: center; }
    .btn-row > .btn, .btn-row > form > .btn { flex: 1 1 auto; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
    .table td { border: 0; padding: 3px 0; }
    .table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
    .table td[data-label="Recette"]::before { display: none; }
    .table td[data-label="Recette"] { font-weight: 600; }
    .request-meta form { margin-left: 0; }
}

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

/* Besoins par donjon (listes BiS de quinte-bis) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip .dot { background: currentColor; }
.gold { color: var(--gold-2); }
.bis-card { display: flex; flex-direction: column; }
.bis-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bis-card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.bis-card h2 a { color: var(--text); }
.bis-card.is-mine { border-color: rgba(217, 180, 90, .45); }
.bis-card .crafters { margin: 10px 0 14px; flex: 1; align-content: flex-start; }
.bis-more { align-self: flex-start; }
.bis-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bis-table tr.is-mine td { background: rgba(217, 180, 90, .06); }
.bis-obtained { opacity: .55; }

/* =====================================================================================================
   Thème « Hurlevent » : l'interface de World of Warcraft (bordures des fenêtres, boutons rouges, or, parchemin),
   les mêmes textures que l'écran de jeu de l'accueil (assets/img/wow/), en plus sobre pour lire et utiliser le site.
   ===================================================================================================== */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("../fonts/archivo-narrow.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
    --bg: #0b0a10; --bg-2: #08070c; --panel: rgba(12, 11, 18, .88); --panel-2: rgba(0, 0, 0, .45);
    --border: rgba(160, 132, 70, .32); --border-strong: #a08446; --line: rgba(160, 132, 70, .2);
    --text: #efe9dc; --muted: #a59d8c; --gold: #ffd100; --gold-2: #f8e4a4; --gold-ink: #2b1a08;
    --radius: 3px; --radius-sm: 3px; --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    --font: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --font-display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
}
body { background: var(--bg); font-size: 16px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 70vh; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 10, 16, .55), var(--bg)), url("../img/wow/bg-hurlevent.jpg") center 35% / cover no-repeat; opacity: .35; }
h1 { font-family: var(--font-display); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: .01em; color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .6); }
h2 { font-family: var(--font-display); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.3rem; color: var(--gold); }
h3 { font-family: var(--font-display); font-weight: 400; color: var(--gold-2); }
a { color: var(--gold); }
a:hover { color: #fff1a8; }
.muted { color: var(--muted); }

/* En-tête : barre sombre à filet doré, comme une barre d'interface */
.topbar { background: rgba(6, 6, 10, .92); border-bottom: 1px solid #5c4a24; box-shadow: 0 2px 0 #000, 0 6px 18px rgba(0, 0, 0, .5); backdrop-filter: none; }
.brand span { font-family: var(--font-display); font-weight: 400; color: var(--gold); text-transform: none; letter-spacing: .02em; font-size: 1.25rem; }
.nav-links a { font-family: var(--font); font-weight: 600; text-transform: none; letter-spacing: 0; color: #d9d1bf; font-size: .98rem; }
.nav-links a:hover { color: var(--gold); background: rgba(255, 209, 0, .06); }
.nav-links a.active { color: var(--gold); background: none; box-shadow: inset 0 -2px 0 var(--gold); }
.nav-links a.active::before { display: none; }

/* Fenêtres : bordure en pierre du jeu (9 morceaux, voir .tools/wow_assets.py) */
.panel, .plate { position: relative; border: 11px solid transparent; border-image: url("../img/wow/cadre.png") 32 / 32px / 3px round;
    background: url("../img/wow/fond-cadre.png"), var(--panel); background-clip: padding-box; border-radius: 0; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); padding: 16px 18px; }
.panel::before, .panel::after, .plate::before, .plate::after { display: none; }
.card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 3px; box-shadow: none; }
a.card:hover { transform: none; border-color: var(--border-strong); background: rgba(80, 60, 20, .3); box-shadow: none; }
.panel-head { border-bottom: 1px solid var(--line); }
.page-head h1::before { display: none; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.highlight { border-image-source: url("../img/wow/cadre-or.png"); }
.stat { background: rgba(0, 0, 0, .5); border: 1px solid var(--border); border-radius: 3px; box-shadow: none; }
.stat strong { font-family: var(--font-display); font-weight: 400; color: var(--gold); text-shadow: none; }
.stat span { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.empty { color: var(--muted); }

/* Boutons rouges du jeu */
.btn { border: 8px solid transparent; border-width: 2px 10px 3px; border-image: url("../img/wow/bouton-up.png") 2 10 3 10 fill / 2px 10px 3px 10px stretch;
    background: none; box-shadow: none; border-radius: 0; color: var(--gold); text-transform: none; letter-spacing: 0; font: 700 14px var(--font); text-shadow: 0 1px 0 #000; padding: 5px 16px; min-height: 32px; }
.btn:hover { filter: brightness(1.2); color: var(--gold); }
.btn:active { border-image-source: url("../img/wow/bouton-down.png"); transform: none; box-shadow: none; }
.btn-gold, .btn-discord, .btn-success, .btn-danger, .btn-ghost, .btn-upload, .btn-sm { background: none; color: var(--gold); box-shadow: none; }
.btn-lg { min-height: 40px; padding: 7px 26px; font-size: 16px; }
.btn-sm { min-height: 26px; padding: 2px 10px; font-size: 13px; }

/* Champs, onglets, puces, étiquettes, tableaux */
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], select, textarea {
    background: rgba(0, 0, 0, .65); color: var(--text); border: 1px solid #5c4a24; border-radius: 2px; font-family: var(--font); font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 209, 0, .18); }
.tab { background: rgba(0, 0, 0, .5); border: 1px solid #5c4a24; border-radius: 4px 4px 0 0; color: var(--muted); font: 700 14px var(--font); text-transform: none; letter-spacing: 0; }
.tab.active { background: rgba(60, 45, 15, .7); color: var(--gold); border-color: #a08446; }
.chip { background: rgba(0, 0, 0, .45); border-color: #5c4a24; border-radius: 3px; }
.chip.active { border-color: var(--gold); color: var(--gold); background: rgba(60, 45, 15, .6); }
.tag { background: rgba(0, 0, 0, .5); border-color: #5c4a24; color: var(--text); border-radius: 3px; font-family: var(--font); }
.table-wrap { border-color: var(--border); border-radius: 2px; background: rgba(0, 0, 0, .35); }
.table th { background: rgba(0, 0, 0, .6); color: var(--gold); text-transform: none; letter-spacing: 0; font: 700 .88rem var(--font); }
.table th, .table td { border-bottom-color: var(--line); }
.flash { border-radius: 2px; }
.pill { background: #b80000; }
.user-dropdown { background: rgba(8, 8, 12, .97); border: 1px solid #5c4a24; border-radius: 3px; }

/* Accueil du site normal (aussi l'accueil sur téléphone) */
.w-hero { position: relative; isolation: isolate; border-bottom: 1px solid #5c4a24; background: #000 url("../img/wow/bg-hurlevent.jpg") center 42% / cover no-repeat; }
.w-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 6, 10, .35), rgba(6, 6, 10, .55) 55%, var(--bg)); }
.w-hero-inner { display: grid; justify-items: center; text-align: center; gap: 12px; padding-top: clamp(48px, 10vw, 110px); padding-bottom: clamp(36px, 7vw, 70px); }
.w-hero img.crest { width: clamp(70px, 14vw, 110px); height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)); }
.w-hero h1 { margin: 0; font-size: clamp(2.6rem, 9vw, 4.6rem); }
.w-hero .lead { margin: 0; color: var(--gold-2); font: 400 clamp(1.05rem, 3vw, 1.35rem) var(--font-display); text-shadow: 0 1px 0 #000, 0 0 8px #000; max-width: 34ch; }
.w-hero .btn-row { justify-content: center; margin-top: 6px; }
.w-count { display: inline-flex; gap: 10px; align-items: baseline; padding: 8px 16px; background: rgba(0, 0, 0, .6); border: 1px solid #5c4a24; color: var(--text); }
.w-count b { font: 400 1.5rem var(--font-display); color: var(--gold); }
.w-count small { color: var(--muted); margin-right: 6px; }
.w-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 26px; }
.w-col { display: grid; gap: 22px; min-width: 0; }
.w-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.w-event { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 9px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.w-event:hover { border-color: var(--border-strong); background: rgba(80, 60, 20, .3); color: var(--text); }
.w-event img { width: 40px; height: 40px; border: 1px solid #000; border-radius: 3px; }
.w-event b { color: var(--gold); display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-event small { color: var(--muted); }
.w-event .count { font-weight: 700; }
.w-news article + article { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.w-news h3 { margin: 0 0 4px; font-size: 1.15rem; }
.w-news p { margin: 0; }
.w-news .by { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.w-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 12px; }
.w-needs span { display: flex; align-items: center; gap: 8px; padding: 5px 7px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.w-needs img { width: 26px; height: 26px; border: 1px solid #000; border-radius: 3px; }
.w-needs small { margin-left: auto; font-weight: 700; }
.w-needs .high { color: #4ae063; } .w-needs .medium { color: #ffd100; } .w-needs .low { color: var(--muted); }
.w-about p { margin: 0 0 10px; }
.w-about .pillar b { color: var(--gold-2); }
.w-game { display: none; }
@media (min-width: 761px) { .w-game { display: inline-flex; } }
@media (max-width: 860px) { .w-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pied de page */
.footer { background: rgba(4, 4, 8, .95); border-top: 1px solid #5c4a24; }
.footer h4 { font-family: var(--font-display); font-weight: 400; color: var(--gold); text-transform: none; letter-spacing: 0; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols h4 { margin: 0 0 8px; }
.footer-cols a { color: #d9d1bf; }
.footer-cols a:hover { color: var(--gold); }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------------
   Recrutement (avis, discussion), loots, roster
   --------------------------------------------------------------------------- */
.application-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.application-votes { display: grid; gap: 6px; margin: 4px 0 16px; }
.application-votes p { margin: 0; }
.application-thread { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 16px; }
.application-thread h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 1rem; }
.comments { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.comments li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.comment-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment-body { overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { flex: 1; min-height: 0; }

.loots-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.loot-night header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.loot-night h2 { margin: 0; font-size: 1.1rem; }
.loot-table td { vertical-align: middle; }
.loot-table td:first-child { width: 64px; white-space: nowrap; }
.loot-table td[data-label="Objet"] { min-width: 230px; }
.loot-table td[data-label="Boss"], .loot-table td[data-label="Où"] { white-space: nowrap; }
.loot-note input { width: 100%; min-width: 90px; padding: 4px 8px; font-size: .85rem; background: transparent; border-color: transparent; }
.loot-note input:hover, .loot-note input:focus { background: var(--bg); border-color: var(--border); }
.loot-actions { width: 40px; text-align: right; }
.top-looters { counter-reset: looter; padding: 0; }
.searchbar select { width: auto; max-width: 220px; }

.roster-comp { display: grid; gap: 16px; }
.roster-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.roster-roles span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.roster-classes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.roster-class { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; border: 1px solid transparent; }
.roster-class:hover, .roster-class.active { border-color: var(--border-strong); background: var(--bg); }
.roster-class small { font-size: .78rem; font-weight: 600; }
.roster-bar { display: flex; align-items: flex-end; width: 22px; height: 56px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.roster-bar > span { display: block; width: 100%; min-height: 2px; }
.bg-warrior { background: #c69b6d; } .bg-paladin { background: #f48cba; } .bg-hunter { background: #aad372; } .bg-rogue { background: #fff468; }
.bg-priest { background: #ffffff; } .bg-mage { background: #3fc7eb; } .bg-warlock { background: #8788ee; } .bg-druid { background: #ff7c0a; }
.roster-player { display: inline-flex; align-items: center; gap: 8px; }
.roster-players .alt { display: inline-block; margin-right: 10px; white-space: nowrap; }
.presence { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.presence .progress { width: 60px; }

@media (max-width: 1000px) {
    .loots-layout { grid-template-columns: minmax(0, 1fr); }
    .roster-classes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .comment-form { flex-direction: column; align-items: stretch; }
    .searchbar { flex-wrap: wrap; }
}

/* Bouton d'action écrit comme un lien (ex. « Relire la liste des salons ») */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.mb { margin-bottom: 18px; }
