/* ==================================================================
   Stratège Duo — « Ombre d'Amakna »
   Design system complet — dark fantasy MMORPG premium
   ------------------------------------------------------------------
   Frontend 100% custom : CSS variables, Grid, Flexbox.
   Aucun framework, aucune dépendance (Tailwind/FontAwesome retirés).
   La structure HTML et toutes les fonctionnalités PHP restent
   identiques — ce fichier ne s'occupe que de l'apparence.
   ================================================================== */

/* ---------- Palette ---------- */
:root {
    --bg-0: #07070d;              /* fond page */
    --bg-1: #0c0b15;
    --panel: #141124;             /* panneaux violet sombre */
    --panel-2: #1a1530;
    --panel-solid: #0e0c18;
    --navy: #101a33;
    --violet: #9a7fe8;
    --violet-2: #6d4fc4;
    --blue: #5b7cfa;
    --gold: #c9a227;
    --gold-2: #e8c96a;
    --gold-3: #8a6d1d;
    --text: #ece7f8;
    --text-soft: #c9c2de;
    --muted: #a29ab8;
    --faint: #7a7194;
    --good: #4ade80;
    --bad: #f87171;
    --warn: #fbbf24;
    --line: rgba(154, 127, 232, 0.15);
    --line-strong: rgba(154, 127, 232, 0.3);
    --line-gold: rgba(201, 162, 39, 0.3);
    --radius: 0.9rem;
    --shadow-1: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 22px 48px rgba(0, 0, 0, 0.45);
    --font-display: 'Cinzel', 'Marcellus', serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--bg-0);
    /* Illustration du launcher : voile progressif pour garder le texte lisible
       tout en laissant l'image reconnaissable. */
    background-image:
        radial-gradient(1100px 520px at 85% -10%, rgba(109, 79, 196, 0.18), transparent 60%),
        radial-gradient(900px 480px at -12% 108%, rgba(16, 26, 51, 0.45), transparent 55%),
        url('/images/stratege-background.webp?v=150');
    background-size: cover, cover, cover;
    background-position: center, center, center 32%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; }
a { color: inherit; }

::selection { background: rgba(201, 162, 39, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2a2440; border-radius: 6px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #3d3558; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 620px; margin: 0 auto; padding: 0 1.25rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

.site-main {
    flex: 1;
    width: 100%;
    padding: 2.6rem 0 1rem;
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.section { margin-bottom: 4.5rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-overline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.65rem;
}
.section-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-desc { color: var(--muted); margin-top: 0.85rem; font-size: 1rem; }

.text-gold { color: var(--gold-2); }
.text-muted { color: var(--muted); }
.text-violet { color: var(--violet); }
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.72em 1.35em;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { font-size: 1.02rem; padding: 0.9em 1.9em; border-radius: 0.75rem; }
.btn-sm { font-size: 0.85rem; padding: 0.5em 0.95em; border-radius: 0.5rem; }
.btn-block { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #a07d1f);
    color: #171002;
    border-color: rgba(232, 201, 106, 0.45);
    box-shadow: 0 6px 18px rgba(138, 109, 29, 0.25);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #e0bb4e, #b78d26);
    box-shadow: 0 10px 24px rgba(138, 109, 29, 0.35);
}

.btn-violet {
    background: linear-gradient(135deg, #6d4fc4, #4a3194);
    color: #f4f0ff;
    border-color: rgba(154, 127, 232, 0.35);
}
.btn-violet:hover { background: linear-gradient(135deg, #7c5fd4, #5638a6); }

.btn-outline {
    background: rgba(154, 127, 232, 0.06);
    color: var(--text-soft);
    border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-2); }

.btn-danger {
    background: linear-gradient(135deg, #b04a5c, #7e2f3f);
    color: #fff;
    border-color: rgba(248, 113, 113, 0.3);
}
.btn-danger:hover { background: linear-gradient(135deg, #c25a6c, #8f3a4a); }

.btn-success {
    background: linear-gradient(135deg, #2f9e6e, #1d6e4c);
    color: #f2fbf7;
    border-color: rgba(52, 211, 153, 0.35);
}
.btn-success:hover { background: linear-gradient(135deg, #3cb583, #23865c); }

/* ---------- Chips & badges ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(13, 11, 22, 0.8);
    color: var(--text-soft);
    white-space: nowrap;
}
.chip-gold { border-color: rgba(201, 162, 39, 0.45); color: var(--gold-2); background: rgba(201, 162, 39, 0.1); }
.chip img { width: 1em; height: 1em; }
.ogrine-icon { width: 1.05em; height: 1.05em; vertical-align: middle; flex: none; display: inline-block; }

/* ---------- Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 6, 12, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 1.05rem;
    min-height: 68px;
    max-width: none; /* header en pleine largeur : le menu à gauche ne déborde plus */
}
.brand { grid-area: brand; justify-self: start; }
.nav-links { grid-area: nav; }
.nav-actions { grid-area: actions; justify-self: end; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: -1.25rem; /* colle le logo au bord gauche de la page */
}
.brand-lockup {
    display: block;
    height: 36px;
    width: auto;
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.nav-link {
    position: relative;
    /* Taille fluide : ~12.5px à 768px → ~18.4px sur grand écran */
    font-size: clamp(0.78rem, 0.32rem + 0.95vw, 1.15rem);
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0;
    white-space: nowrap; /* « Nous rejoindre » ne doit jamais passer sur 2 lignes */
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: right 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { right: 0; }

/* Bouton « Boutique » mis en avant dans la nav : pilule dorée qui attire l'œil */
.nav-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    font-size: clamp(0.8rem, 0.32rem + 0.85vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #171002;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #f0d488, #c9a227 60%, #a07d1f);
    border: 1px solid rgba(232, 201, 106, 0.65);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.nav-shop-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(201, 162, 39, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-decoration: none;
}
.nav-shop-btn.active {
    outline: 2px solid rgba(232, 201, 106, 0.7);
    outline-offset: 2px;
}
.nav-shop-btn.active::after { content: none; }


.nav-actions { display: flex; align-items: center; gap: 0.4rem; }

/* Menu compte (seule action du header, connecté) */
.account-menu { display: none; position: relative; }
.account-toggle { gap: 0.5em; }
/* Ogrines toujours visibles sur le bouton, menu ouvert ou non */
.account-toggle .chip { display: inline-flex !important; visibility: visible; opacity: 1; }
.account-toggle .chip .ogrine-icon { display: inline-block !important; }
.account-toggle .account-caret { width: 0.95em; height: 0.95em; transition: transform 0.2s ease; }
.account-toggle[aria-expanded="true"] .account-caret { transform: rotate(180deg); }
.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    z-index: 60;
    display: none;
    flex-direction: column;
    min-width: 230px;
    padding: 0.4rem;
    border-radius: 0.7rem;
    background: rgba(12, 10, 20, 0.98);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}
.account-dropdown.open { display: flex; animation: fadeUp 0.18s ease both; }
.account-dropdown a {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    white-space: nowrap;
}
.account-dropdown a:hover { color: var(--gold-2); background: rgba(154, 127, 232, 0.08); }

/* ---------- Sélecteur de langue (header) ---------- */
.lang-switcher { position: relative; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.42em 0.6em;
    border-radius: 0.6rem;
    border: 1px solid var(--line-strong);
    background: rgba(154, 127, 232, 0.06);
    color: var(--text-soft);
    font-size: clamp(0.78rem, 0.45rem + 0.5vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-toggle::-webkit-details-marker { display: none; }
.lang-toggle svg { width: 1.05em; height: 1.05em; }
.lang-toggle:hover { color: var(--gold-2); border-color: rgba(201, 162, 39, 0.45); }
.lang-switcher[open] > .lang-toggle { color: var(--gold-2); border-color: rgba(201, 162, 39, 0.5); }
.lang-caret { transition: transform 0.2s ease; }
.lang-switcher[open] .lang-caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    z-index: 60;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    border-radius: 0.7rem;
    background: rgba(12, 10, 20, 0.98);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
    animation: fadeUp 0.18s ease both;
}
.lang-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.lang-item:hover { color: var(--gold-2); background: rgba(154, 127, 232, 0.08); }
.lang-item.is-active { color: var(--gold-2); }
.lang-item-code { font-size: 0.82em; font-weight: 800; letter-spacing: 0.05em; opacity: 0.75; }
.lang-check { width: 1em; height: 1em; margin-left: auto; }

/* ---------- Sélecteur de langue (drawer mobile) ---------- */
.drawer-label {
    display: block;
    padding: 0.5rem 0.4rem 0.1rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.drawer .lang-row { display: flex; gap: 0.45rem; padding: 0.3rem 0.4rem 0.4rem; }
.drawer .lang-pill {
    flex: 1 1 0;
    justify-content: center;
    gap: 0.45em;
    padding: 0.6em 0.5em;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid var(--line-strong);
}
.drawer .lang-pill-label { font-size: 0.82em; font-weight: 600; opacity: 0.78; }
.drawer .lang-pill.is-active {
    color: var(--gold-2);
    border-color: rgba(201, 162, 39, 0.5);
    background: rgba(201, 162, 39, 0.1);
}

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    border: 1px solid var(--line-strong);
    background: rgba(154, 127, 232, 0.06);
    color: var(--text-soft);
    cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

.drawer {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(9, 8, 15, 0.98);
    padding: 0.6rem 1rem 1.2rem;
}
.drawer.open { display: block; animation: fadeUp 0.25s ease both; }
.drawer-group { padding: 0.5rem 0; }
.drawer-group + .drawer-group { border-top: 1px solid var(--line); margin-top: 0.4rem; }
.drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 0.4rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 0.5rem;
}
.drawer a:hover { color: var(--gold-2); background: rgba(154, 127, 232, 0.06); }
.drawer .btn { justify-content: center; margin-top: 0.5rem; }

@media (max-width: 1240px) {
    .nav-inner { gap: 0.9rem; }
    .nav-links { gap: 0.7rem; }
    .nav-actions .btn { padding: 0.5em 0.7em; font-size: 0.84rem; }
}

/* Mode mobile (≤ 767px) : menu burger pour tout le monde */
@media (max-width: 767px) {
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .burger { display: inline-flex; }
    .brand-lockup { height: 32px; }
}

/* Le menu « Mon compte » est la seule action du header sur desktop (≥768px).
   La version mobile (burger + drawer) ne s'applique qu'à ≤767px. */
@media (min-width: 768px) {
    .account-menu { display: block; }
}
@media (min-width: 768px) and (max-width: 1167px) {
    body.is-logged .brand-lockup { height: 30px; }
    .nav-link-parrainage { display: none; }
}

/* Boutons Connexion / Inscription (visiteur) : agrandis, taille fluide.
   Placé après les media queries du header pour primer sur leurs tailles fixes. */
.nav-actions .nav-auth {
    font-size: clamp(0.84rem, 0.5rem + 0.66vw, 1.1rem);
    padding: 0.6em 1.05em;
    border-radius: 0.6rem;
}

/* Desktop étroit (768-1040px) : nav compacte pour tenir sans overflow */
@media (min-width: 768px) and (max-width: 1040px) {
    .nav-inner { gap: 0.5rem; }
    .nav-links { gap: 0.5rem; }
    .nav-actions { gap: 0.35rem; }
    .nav-actions .btn { font-size: 0.8rem; padding: 0.5em 0.7em; }
    .brand { gap: 0.5rem; }
}
@media (min-width: 768px) and (max-width: 1040px) {
    .brand-lockup { height: 30px; }
}


/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(1.1rem, 2.5vw, 1.9rem) clamp(0.9rem, 2vw, 1.7rem);
    margin-bottom: 1.4rem;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 1.4rem;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(109, 79, 196, 0.26), transparent 60%),
        radial-gradient(760px 320px at 8% 112%, rgba(16, 26, 51, 0.55), transparent 55%),
        linear-gradient(160deg, rgba(23, 18, 40, 0.88), rgba(8, 8, 14, 0.93));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero::before {
    content: '✦';
    position: absolute;
    right: 3%;
    top: 3%;
    color: rgba(201, 162, 39, 0.3);
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 1;
    text-shadow: 0 0 44px rgba(201, 162, 39, 0.25);
    pointer-events: none;
}
.hero-rule {
    width: 55px;
    height: 1px;
    margin: 0 auto 0.45rem;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-title {
    position: relative;
    font-size: clamp(1.3rem, 3.1vw, 1.95rem);
    line-height: 1.08;
    text-wrap: balance;
}
.hero-title .text-gold {
    color: var(--gold-2);
    text-shadow: 0 0 32px rgba(201, 162, 39, 0.32);
}
.hero-sub {
    margin: 0.4rem auto 0.3rem;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    font-weight: 600;
    color: var(--text);
}
.hero-text {
    max-width: 460px;
    margin: 0 auto 0.8rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.hero-text strong { color: var(--gold-2); font-weight: 600; }
.hero-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.hero-actions .btn { font-size: 0.92rem; padding: 0.75em 1.5em; border-radius: 0.65rem; min-width: 210px; }
.hero-actions .btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Cartes ---------- */
.panel {
    background: linear-gradient(180deg, rgba(20, 17, 36, 0.90), rgba(10, 9, 17, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}
.panel-pad { padding: 1.6rem; }

.feature-card {
    text-align: center;
    padding: 1.7rem 1.4rem 1.6rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: var(--shadow-2);
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.feature-card strong { color: var(--gold-2); font-weight: 600; }

.icon-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 1.1rem;
    border-radius: 0.9rem;
    color: var(--gold-2);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.22);
}
.icon-chip svg { width: 26px; height: 26px; }

.grid-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}
@media (min-width: 640px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-features { grid-template-columns: repeat(4, 1fr); } }

.grid-feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 768px) { .grid-feature-row { grid-template-columns: repeat(3, 1fr); } }

.feature-row-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature-row-item:hover { border-color: rgba(201, 162, 39, 0.4); transform: translateY(-2px); }
.feature-row-item .icon-chip { margin: 0; flex-shrink: 0; width: 46px; height: 46px; }
.feature-row-item .icon-chip svg { width: 22px; height: 22px; }
.feature-row-item h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.feature-row-item p { font-size: 0.87rem; color: var(--muted); line-height: 1.55; }

.lore-panel {
    padding: 2rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 1rem;
}
.lore-panel h2 { text-align: center; font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-bottom: 1.4rem; }
.lore-panel p { color: var(--text-soft); font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; }
.lore-panel p:last-child { margin-bottom: 0; }
.lore-panel strong { color: var(--gold-2); font-weight: 600; }

/* ---------- Formulaires ---------- */
.form-card {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--panel), rgba(9, 8, 15, 0.96));
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.form-head {
    padding: 1.7rem 1.8rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(201, 162, 39, 0.14);
    background: linear-gradient(180deg, rgba(27, 21, 41, 0.9), transparent);
}
.form-title { font-size: 1.5rem; }
.form-sub { margin-top: 0.3rem; font-size: 0.92rem; color: var(--muted); }
.form-body { padding: 1.6rem 1.8rem; }
.form-foot {
    text-align: center;
    padding: 0 1.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.field { margin-bottom: 1.1rem; }
.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
}
.input {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border-radius: 0.6rem;
    background: rgba(13, 11, 22, 0.9);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.65);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.input::placeholder { color: rgba(162, 154, 184, 0.5); }
textarea.input { resize: vertical; min-height: 90px; }

.field-hint { display: block; text-align: right; margin-top: 0.45rem; font-size: 0.85rem; }
.field-error { color: var(--bad); font-size: 0.85rem; margin-top: 0.35rem; display: block; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}
.checkbox-row input { accent-color: var(--gold); width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; flex-shrink: 0; }

.link { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Alertes ---------- */
.alert {
    padding: 0.85rem 1.05rem;
    border-radius: 0.65rem;
    border: 1px solid;
    font-size: 0.93rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.alert-error { background: rgba(58, 16, 26, 0.8); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.alert-success { background: rgba(10, 40, 26, 0.8); border-color: rgba(52, 211, 153, 0.35); color: #bbf7d0; }
.alert-warn { background: rgba(54, 38, 10, 0.8); border-color: rgba(251, 191, 36, 0.35); color: #fef3c7; }
.alert-info { background: rgba(20, 29, 51, 0.8); border-color: rgba(96, 128, 216, 0.4); color: #c7d6ec; }
.alert b { font-weight: 700; }
.alert .center { text-align: center; }

/* Flash hérités (échos PHP login/register) */
.bg-red-100 { background: rgba(58, 16, 26, 0.85) !important; }
.border-red-400 { border-color: rgba(248, 113, 113, 0.4) !important; }
.text-red-700 { color: #fca5a5 !important; }
.bg-green-100 { background: rgba(10, 40, 26, 0.85) !important; }
.border-green-400 { border-color: rgba(52, 211, 153, 0.4) !important; }
.text-green-700 { color: #86efac !important; }
.max-w-md { max-width: 480px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-5 { margin-top: 1.25rem; }
.rounded { border-radius: 0.65rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* ---------- Tableaux ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(8, 7, 14, 0.6);
    -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table th {
    text-align: left;
    padding: 0.85rem 1.1rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-2);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(34, 27, 56, 0.95), rgba(19, 16, 31, 0.95));
    border-bottom: 1px solid var(--line);
}
.table td {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    color: var(--text-soft);
    border-bottom: 1px solid rgba(154, 127, 232, 0.09);
}
.table tbody tr { transition: background-color 0.2s ease; }
.table tbody tr:hover { background: rgba(109, 79, 196, 0.08); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-weight: 700; color: var(--text); }
.table .center-td { text-align: center; }

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.4rem;
    border-radius: 0.55rem;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text);
    background: rgba(154, 127, 232, 0.1);
    border: 1px solid var(--line);
}
.rank-1 { color: var(--gold-2); border-color: rgba(201, 162, 39, 0.5); background: rgba(201, 162, 39, 0.1); }
.rank-2 { color: #c9c2de; border-color: rgba(201, 200, 222, 0.35); }
.rank-3 { color: #d9a05b; border-color: rgba(217, 160, 91, 0.4); }

.table-avatar {
    width: 34px;
    height: 34px;
    border-radius: 0.45rem;
    padding: 2px;
    background: rgba(154, 127, 232, 0.12);
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.player-cell { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--text); }
.player-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.player-link:hover { color: var(--gold, #e8b34b); border-bottom-color: rgba(232, 179, 75, .5); }

/* Classes de rang (échos PHP) */
.text-yellow-400 { color: var(--gold-2) !important; }
.text-yellow-600 { color: #b8952e !important; }
.text-gray-400 { color: var(--muted) !important; }
.text-white { color: var(--text) !important; }
.text-black { color: #171002 !important; }

/* ---------- Cartes Ladder / Vote ---------- */
.grid-ladders {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}
@media (min-width: 768px) { .grid-ladders { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-ladders.grid-ladders-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-ladders.grid-ladders-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-ladders.grid-ladders-4 { grid-template-columns: repeat(4, 1fr); max-width: 1180px; } }
@media (min-width: 1024px) { .grid-ladders.grid-ladders-4 .ladder-card { padding: 2.4rem 1rem; } }

.ladder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 2.9rem 1.5rem;
    text-align: center;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ladder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}
.ladder-card.tone-gold:hover { border-color: rgba(201, 162, 39, 0.55); }
.ladder-card.tone-violet:hover { border-color: rgba(160, 108, 224, 0.55); }
.ladder-card h2 { font-size: 1.5rem; }
.ladder-card p { max-width: 300px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Récompenses (ladder vote) ---------- */
.grid-rewards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (min-width: 640px) { .grid-rewards { grid-template-columns: repeat(3, 1fr); } }

.reward {
    border-radius: 0.95rem;
    padding: 1.35rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, var(--panel-2), rgba(11, 10, 18, 0.95));
    border: 1px solid var(--line);
}
.reward-medal { font-size: 2rem; line-height: 1; margin-bottom: 0.55rem; }
.reward-rank { font-weight: 800; font-size: 1rem; letter-spacing: 0.05em; color: var(--muted); }
.reward-value { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-top: 0.15rem; }
.reward-label { font-size: 0.82rem; color: var(--faint); margin-top: 0.1rem; }
.reward.reward-1 { border-color: rgba(201, 162, 39, 0.55); }
.reward.reward-2 { border-color: rgba(160, 158, 180, 0.35); }
.reward.reward-3 { border-color: rgba(201, 162, 39, 0.28); }
.reward-1 .reward-rank { color: var(--gold-2); }
.reward-2 .reward-rank { color: #c9c2de; }
.reward-3 .reward-rank { color: #d9a05b; }

/* Ladder vote : en-tête et récompenses compactés (le classement visible sans scroll) */
.ladder-head { margin-bottom: 1.1rem; }
.rewards-panel { padding: 1rem 1.2rem; }
.rewards-panel .grid-rewards { margin-top: 0.7rem; gap: 0.7rem; }
.rewards-panel .reward { padding: 0.75rem 0.8rem; }
.rewards-panel .reward-medal { font-size: 1.4rem; margin-bottom: 0.3rem; }
.rewards-panel .reward-rank { font-size: 0.85rem; }
.rewards-panel .reward-value { font-size: 1.15rem; }
.rewards-panel .reward-label { font-size: 0.75rem; }
.rewards-panel .text-muted { margin-top: 0.8rem !important; }

/* Bordures héritées (récompenses) */
.border-yellow-400 { border-color: rgba(201, 162, 39, 0.55) !important; }
.border-gray-500 { border-color: rgba(160, 158, 180, 0.35) !important; }
.border-yellow-700 { border-color: rgba(201, 162, 39, 0.28) !important; }

/* ---------- Pages Vote ---------- */
.vote-panel {
    max-width: 840px;
    margin: 0 auto;
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    box-shadow: var(--shadow-1);
}
.vote-title {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
}
.vote-intro { text-align: center; color: var(--text-soft); font-size: 1rem; }
.vote-intro b { color: var(--gold-2); font-weight: 700; }
.vote-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.vote-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.7rem;
}
@media (min-width: 640px) { .vote-stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.95rem 0.8rem;
    text-align: center;
    background: rgba(13, 11, 22, 0.6);
}
.stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.stat-value { font-size: 1.3rem; font-weight: 800; color: var(--gold-2); margin-top: 0.25rem; }
.stat-value.good { color: var(--good); }
.stat-value.violet { color: var(--violet); }

.progress {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(19, 16, 31, 0.95);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-top: 0.9rem;
}
.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7e2f3f, #c94f66);
    transition: width 0.5s ease;
}

.vote-sub { margin-top: 1.7rem; }
.vote-sub h2 {
    text-align: center;
    font-size: clamp(1.1rem, 2.6vw, 1.45rem);
    margin-bottom: 1.1rem;
}

/* ---------- Boutique ---------- */
.shop-head { text-align: center; margin-bottom: 2.4rem; }
.shop-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    background: linear-gradient(90deg, #f0d488, #c9a227 70%, #8a6d1d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.shop-head p { margin-top: 0.6rem; color: var(--muted); font-size: 1.02rem; }

.banner-gift {
    max-width: 760px;
    margin: 0 auto 2.6rem;
    border-radius: 1rem;
    padding: 1.15rem 1.4rem;
    text-align: center;
    background: linear-gradient(90deg, #4d3a10, #6b5117 55%, #57400f);
    color: #f3e3b3;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.banner-gift p:first-child { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.banner-gift p:last-child { font-size: 0.92rem; opacity: 0.9; margin-top: 0.25rem; }

.pay-row { display: flex; justify-content: center; margin-bottom: 2.2rem; }

.grid-packs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 560px) { .grid-packs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-packs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-packs { grid-template-columns: repeat(5, 1fr); } }

.pack {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    padding: 1.5rem 1.15rem 1.2rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-top: 2px solid var(--line-strong);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pack:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}
.pack .points {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--gold-2);
    margin-top: 1.2rem;
}
.pack .points img { width: 22px; height: 22px; }
.pack .points .old {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--faint);
    text-decoration: line-through;
}
.pack .bonus {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 0.4rem;
}
.pack .price { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--text); margin-top: 0.6rem; }
.pack .pack-label { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 0.2rem; }
.pack .pack-btn { margin-top: auto; padding-top: 1.1rem; }
.pack .pack-btn .btn { width: 100%; }

.badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.45em 0.85em;
    border-radius: 0 0.95rem 0 0.75rem;
    background: linear-gradient(90deg, #e8c96a, #c9a227);
    color: #171002;
}
.badge-left {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.45em 0.85em;
    border-radius: 0 0 0.75rem 0;
    background: linear-gradient(90deg, #a87e20, #d4af37);
    color: #171002;
}

/* Classes héritées des packs (échos PHP) */
.pack.border-blue-500 { border-top-color: #5b7cfa; }
.pack.border-cyan-500 { border-top-color: #3dd6d0; }
.pack.border-yellow-400 { border-top-color: #c9a227; }
.pack.border-indigo-400 { border-top-color: #8f6fe0; }
.pack.border-purple-400 { border-top-color: #a06ce0; }

.bg-blue-500, .bg-indigo-400 {
    background: linear-gradient(135deg, #5b7cfa, #3b52b8) !important;
    color: #fff !important;
}
.bg-yellow-400 {
    background: linear-gradient(135deg, #e0bb4e, #b78d26) !important;
    color: #171002 !important;
}
.bg-purple-400 {
    background: linear-gradient(135deg, #8f6fe0, #5f43b0) !important;
    color: #f4f0ff !important;
}
.hover\:bg-blue-600:hover, .hover\:bg-indigo-500:hover {
    background: linear-gradient(135deg, #6f8cff, #445cc9) !important;
}
.hover\:bg-yellow-500:hover { background: linear-gradient(135deg, #ecc966, #c69a2e) !important; }
.hover\:bg-purple-500:hover { background: linear-gradient(135deg, #a487ea, #6f51c4) !important; }

.bg-gradient-to-r { background-image: linear-gradient(90deg, var(--gold), #c9a227); }
.from-yellow-400.to-orange-500 { background: linear-gradient(90deg, #e8c96a, #c98d2b); color: #171002; }
.from-purple-500.to-fuchsia-600 { background: linear-gradient(90deg, #8f6fe0, #a04fc4); color: #f4f0ff; }
.from-pink-500.to-yellow-400 { background: linear-gradient(90deg, #a87e20, #d4af37); color: #171002; }

/* ---------- Dashboard (mes comptes) ---------- */
.dash { max-width: 980px; margin: 0 auto; }
.dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.7rem;
}
.dash-title { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.dash-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    background: rgba(13, 11, 22, 0.7);
}
.dash-actions { text-align: center; margin-bottom: 2.2rem; }

.grid-accounts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .grid-accounts { grid-template-columns: repeat(2, 1fr); } }

.account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.account-card:hover { border-color: rgba(201, 162, 39, 0.35); }
.account-name { font-weight: 700; color: var(--text); }
.account-guid { font-size: 0.78rem; color: var(--faint); margin-top: 0.15rem; }

.form-panel {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    margin-bottom: 1.7rem;
}
.form-panel h2 { font-size: 1.2rem; color: var(--violet); margin-bottom: 1.2rem; }

/* Panneau repliable (profil : modifier mot de passe) */
.toggle summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--violet);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary::after {
    content: '▾';
    font-size: 0.9em;
    color: var(--gold-2);
    transition: transform 0.25s ease;
}
.toggle[open] summary::after { transform: rotate(180deg); }
.toggle:not([open]) > :not(summary) { display: none !important; }
.toggle form { margin-top: 1.2rem; }

/* ---------- Profil ---------- */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.7rem;
}
@media (min-width: 640px) { .profile-stats { grid-template-columns: repeat(3, 1fr); } }
.grid-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
}
@media (min-width: 900px) { .grid-profile { grid-template-columns: 1fr 1.15fr; } }
.grid-profile .profile-card,
.grid-profile .form-panel { margin-bottom: 0; }
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding: 1.9rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    margin-bottom: 1.7rem;
}
@media (min-width: 768px) {
    .profile-card { flex-direction: row; align-items: center; }
}
.avatar-ring {
    flex-shrink: 0;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #e8c96a, #6d4fc4);
    box-shadow: 0 0 24px rgba(109, 79, 196, 0.25);
}
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #0c0b15; }
.profile-info { flex: 1; min-width: 0; }
.profile-info h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.profile-info ul { list-style: none; display: grid; gap: 0.6rem; }
.profile-info li { font-size: 0.95rem; color: var(--text-soft); }
.info-key { color: var(--violet); font-weight: 600; }

/* ---------- Annuaire des personnages ---------- */
.annuaire-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
}
.annuaire-search { flex: 1 1 240px; max-width: 420px; }
.annuaire-search .input { width: 100%; }
.annuaire-select { width: auto; min-width: 170px; }
.annuaire-count { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.1rem; }

.grid-annuaire {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px)  { .grid-annuaire { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-annuaire { grid-template-columns: repeat(3, 1fr); } }

.perso-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(20, 17, 36, 0.75);
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.perso-card:hover {
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(26, 21, 48, 0.9);
    transform: translateY(-2px);
}
.perso-avatar {
    width: 3.6rem;
    height: 3.6rem;
    object-fit: contain;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, var(--navy), var(--panel-solid));
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.perso-body { flex: 1; min-width: 0; }
.perso-name { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.perso-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; font-size: 0.82rem; color: var(--muted); }
.perso-class { color: var(--violet); font-weight: 600; }
.perso-level { color: var(--gold-2); font-weight: 600; }
.perso-guild { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.perso-guild.none { color: var(--faint); }
.perso-arrow { color: var(--faint); font-size: 1.1rem; transition: transform 0.2s ease, color 0.2s ease; }
.perso-card:hover .perso-arrow { transform: translateX(3px); color: var(--gold-2); }

.annuaire-empty { text-align: center; padding: 3rem 1rem; }
.annuaire-empty p { color: var(--muted); margin-bottom: 1.2rem; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
}
.page-link { color: var(--gold-2); font-weight: 600; font-size: 0.92rem; }
.page-link:hover { text-decoration: underline; }
.page-info { color: var(--muted); font-size: 0.85rem; }

/* ---------- Fiche personnage ---------- */
.perso-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    padding: 1.6rem;
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.9), rgba(16, 26, 51, 0.75));
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    margin-bottom: 1.4rem;
}
.perso-hero-avatar {
    width: 6.5rem;
    height: 6.5rem;
    object-fit: contain;
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--navy), var(--panel-solid));
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}
.perso-hero-info { flex: 1; min-width: 260px; }
.perso-hero-name { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; color: var(--text); margin: 0.25rem 0 0.5rem; }
.perso-hero-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.badge-perso {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    background: rgba(109, 79, 196, 0.18);
    border: 1px solid rgba(154, 127, 232, 0.25);
}
.badge-perso.gold { color: #171002; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-color: transparent; }
.badge-perso.violet { border-color: rgba(154, 127, 232, 0.5); color: var(--violet); }
.perso-hero-sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; }
.perso-hero-sub strong { color: var(--text-soft); }
.perso-visibility { margin-top: 0.9rem; }

.xp-bar-wrap { margin-bottom: 1.4rem; padding: 0.9rem 1.2rem; background: rgba(14, 12, 24, 0.7); border: 1px solid var(--line); border-radius: 1rem; }
.xp-bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.45rem; }
.xp-bar { height: 0.55rem; border-radius: 999px; background: rgba(154, 127, 232, 0.12); overflow: hidden; }
.xp-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet-2), var(--violet)); }

.perso-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
@media (min-width: 900px) { .perso-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}
@media (min-width: 520px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

.rank-rows { display: flex; flex-direction: column; gap: 0.7rem; }
.rank-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.9rem;
    background: rgba(13, 11, 22, 0.7);
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    font-size: 0.9rem;
}
.rank-row-label { color: var(--muted); }
.rank-row-value { color: var(--gold-2); font-weight: 700; }

/* Panneau d'équipement style Dofus : personnage au centre, objets autour */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        ". coiffe ."
        "amulette avatar arme"
        "anneaux avatar cape"
        "familier ceinture dofus"
        ". bottes .";
    gap: 0.7rem;
    align-items: center;
    justify-items: stretch;
}
.equip-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 5.6rem;
    padding: 0.55rem 0.45rem 0.6rem;
    background: rgba(13, 11, 22, 0.6);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.equip-slot.empty {
    border-style: dashed;
    background: rgba(13, 11, 22, 0.3);
}
.equip-slot.filled {
    border-color: rgba(201, 162, 39, 0.3);
    background: linear-gradient(180deg, rgba(26, 21, 48, 0.75), rgba(13, 11, 22, 0.65));
}
.equip-slot.filled:hover {
    border-color: rgba(201, 162, 39, 0.6);
    background: linear-gradient(180deg, rgba(34, 27, 56, 0.9), rgba(13, 11, 22, 0.75));
    transform: translateY(-1px);
}
.equip-slot .equip-label {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.15rem;
}
.equip-slot.filled .equip-label { color: var(--gold-3); }
.equip-slot.coiffe    { grid-area: coiffe; }
.equip-slot.amulette  { grid-area: amulette; }
.equip-slot.arme      { grid-area: arme; }
.equip-slot.anneaux   { grid-area: anneaux; }
.equip-slot.cape      { grid-area: cape; }
.equip-slot.familier  { grid-area: familier; }
.equip-slot.ceinture  { grid-area: ceinture; }
.equip-slot.dofus     { grid-area: dofus; }
.equip-slot.bottes    { grid-area: bottes; }
.equip-label {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.equip-avatar {
    grid-area: avatar;
    display: flex;
    align-items: center;
    justify-content: center;
}
.equip-avatar img {
    width: clamp(6rem, 85%, 11rem);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55));
}
.equip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
}
.equip-item-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.15;
    max-width: 8.5rem;
}
.equip-item-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
}
.equip-more { font-size: 0.62rem; color: var(--faint); align-self: center; }
.equip-slot .item-tile { width: 2.2rem; height: 2.2rem; font-size: 0.95rem; }
.equip-slot .item-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.18rem;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 0.6rem;
    background: linear-gradient(180deg, var(--navy), var(--panel-solid));
}
.equip-slot .item-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 480px) {
    .equip-grid { gap: 0.45rem; }
    .equip-slot { min-height: 4.2rem; padding: 0.4rem 0.25rem; }
    .equip-item-name { font-size: 0.62rem; max-width: 6rem; }
    .equip-slot .item-tile { width: 1.9rem; height: 1.9rem; font-size: 0.8rem; }
    .equip-slot .item-icon { width: 1.9rem; height: 1.9rem; }
}

.slot-group { margin-bottom: 1.2rem; }
.slot-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-2);
    font-weight: 700;
    margin-bottom: 0.55rem;
}
.slot-items { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 640px) { .slot-items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .slot-items { grid-template-columns: repeat(3, 1fr); } }

.item-card {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.65rem 0.8rem;
    background: rgba(13, 11, 22, 0.65);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    transition: border-color 0.2s ease;
}
.item-card:hover { border-color: rgba(201, 162, 39, 0.35); }
.item-tile, .spell-tile {
    width: 2.7rem;
    height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--gold-2);
    background: linear-gradient(180deg, var(--navy), var(--panel-solid));
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 0.6rem;
    flex-shrink: 0;
}
.item-body { min-width: 0; }
.item-name { font-size: 0.9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 0.75rem; color: var(--faint); margin-top: 0.1rem; }
.item-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.chip-chip {
    padding: 0.08rem 0.45rem;
    font-size: 0.68rem;
    color: var(--gold-2);
    background: rgba(201, 162, 39, 0.12);
    border-radius: 999px;
}

.spell-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
@media (min-width: 640px) { .spell-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .spell-grid { grid-template-columns: repeat(3, 1fr); } }

.spell-card {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.65rem 0.8rem;
    background: rgba(13, 11, 22, 0.65);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}
.spell-tile { color: var(--violet); border-color: rgba(154, 127, 232, 0.35); }
.spell-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.spell-level { font-size: 0.75rem; color: var(--faint); }

.guild-card { display: flex; gap: 1rem; align-items: center; }
.guild-emblem {
    width: 3.4rem;
    height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-2);
    background: linear-gradient(180deg, var(--navy), var(--panel-solid));
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 0.8rem;
}
.guild-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.guild-meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

.perso-foot { text-align: center; margin-top: 1.6rem; }

/* ---------- Parrainage ---------- */
.gains-panel { margin-top: 1.6rem; }
.gains-panel .table-wrap { margin-top: 0.4rem; }
.gains-empty {
    padding: 1.2rem 1.3rem;
    border: 1px dashed var(--line);
    border-radius: 0.8rem;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}
.panel-title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.panel-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.grid-parrainage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}
@media (min-width: 900px) { .grid-parrainage { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.copy-row { display: flex; gap: 0.6rem; margin-top: 0.7rem; }
.copy-input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    background: rgba(13, 11, 22, 0.9);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.9rem;
}
.copy-input:focus { outline: none; border-color: rgba(201, 162, 39, 0.6); }
.copy-msg { color: var(--good); font-size: 0.85rem; margin-top: 0.55rem; }

.rewards-box {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1.15rem 1.25rem;
    background: rgba(13, 11, 22, 0.55);
}
.rewards-box h3 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.rewards-box ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--muted); }
.rewards-box strong { color: var(--gold-2); font-weight: 700; }
.rewards-box small { display: block; margin-top: 0.8rem; font-size: 0.78rem; color: var(--faint); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0.9rem; }
.steps li {
    counter-increment: step;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-soft);
}
.steps li::before {
    content: counter(step);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gold-2);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
}
.steps strong { color: var(--gold-2); }

.legal-note { max-width: 860px; margin: 1.8rem auto 0; font-size: 0.8rem; color: var(--faint); }

/* ---------- Règlement ---------- */
.rules-panel {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
}
.rules-panel > h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.8rem; }
.rule {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(154, 127, 232, 0.09);
}
.rule:last-child { border-bottom: none; }
.rule-num {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--gold-2);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
}
.rule h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.rule p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ---------- Téléchargement ---------- */
.download-panel {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(1.8rem, 4vw, 2.6rem) 1.8rem;
}
.download-panel .icon-chip { width: 64px; height: 64px; }
.download-panel .icon-chip svg { width: 30px; height: 30px; }
.download-panel h3 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.download-panel > p { color: var(--muted); margin-bottom: 1.5rem; }
.download-list { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.9rem; }
.download-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}
.download-list svg { width: 17px; height: 17px; color: var(--good); flex-shrink: 0; }
.download-note { margin-top: 1.3rem; font-size: 0.92rem; color: var(--text); }
.download-note a { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.download-note a:hover { text-decoration: underline; }

/* ---------- Paiement (shop confirmé / erreurs) ---------- */
.state-panel {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 2.4rem 1.8rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
}
.state-panel.success { border-color: rgba(52, 211, 153, 0.35); }
.state-panel.error { border-color: rgba(248, 113, 113, 0.4); }
.state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
}
.state-panel.success .state-icon { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: var(--good); }
.state-panel.error .state-icon { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); color: var(--bad); }
.state-icon svg { width: 30px; height: 30px; }
.state-panel h2 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.state-panel.success h2 { color: var(--good); }
.state-panel.error h2 { color: var(--bad); }
.state-panel p { color: var(--text-soft); font-size: 1rem; }
.state-count {
    margin: 1.4rem auto 0;
    max-width: 220px;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.9rem;
    background: rgba(13, 11, 22, 0.7);
}
.state-count small { display: block; font-size: 0.8rem; color: var(--muted); }
.state-count strong { display: block; font-size: 1.7rem; color: var(--good); margin-top: 0.15rem; }
.state-count em { font-style: normal; font-size: 0.75rem; color: var(--faint); }

/* ---------- Pied de page ---------- */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    padding: 2.2rem 1rem 2.6rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}
.site-footer strong { color: var(--text-soft); font-weight: 600; }

/* ---------- Accessibilité & préférences ---------- */
@media (max-width: 767px) {
    body {
        background-attachment: scroll;
        background-image:
            url('/images/stratege-background-mobile.webp?v=150');
        background-size: cover;
        background-position: center 30%;
        background-repeat: no-repeat;
    }
    .hero::before { right: -2%; opacity: 0.22; }
    .btn-lg { width: 100%; }
    .hero-actions .btn { flex: 1 1 auto; min-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================================================================
   Refonte 2026 — composants premium
   ================================================================== */

/* ---------- Skip link (accessibilité) ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.7rem 1.2rem;
    border-radius: 0.6rem;
    background: var(--gold);
    color: #171002;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- État actif de navigation ---------- */
.nav-link.active { color: var(--gold-2); }
.nav-link.active::after { right: 0; }
.drawer a.active { color: var(--gold-2); }

/* ---------- Étapes « Comment ça marche » ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 2.2rem;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
    position: relative;
    padding: 1.6rem 1.3rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: var(--shadow-2);
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.05rem;
    color: #171002;
    background: linear-gradient(135deg, #e8c96a, #c9a227);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.step-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.step-card .btn { margin-top: 0.9rem; }

/* ---------- Communauté (cartes liens) ---------- */
.grid-community {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 2.2rem;
}
@media (min-width: 640px) { .grid-community { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-community { grid-template-columns: repeat(3, 1fr); } }

.community-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.community-card:hover {
    transform: translateY(-3px);
    border-color: rgba(109, 79, 196, 0.5);
    box-shadow: var(--shadow-2);
}
.community-card .icon-chip { margin: 0; }
.community-card h3 { font-size: 1.08rem; }
.community-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.community-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-2);
}
.community-card:hover .card-cta { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 2.2rem auto 0; display: grid; gap: 0.85rem; }
.faq details {
    background: linear-gradient(180deg, var(--panel), rgba(10, 9, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    overflow: hidden;
    transition: border-color 0.25s ease;
}
.faq details[open] { border-color: rgba(201, 162, 39, 0.35); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    user-select: none;
    transition: color 0.2s ease;
}
.faq summary:hover { color: var(--gold-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '▾';
    flex-shrink: 0;
    font-size: 0.9em;
    color: var(--gold-2);
    transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq-body { padding: 0 1.3rem 1.15rem; font-size: 0.94rem; color: var(--muted); line-height: 1.7; }
.faq-body a { color: var(--gold-2); font-weight: 600; text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }

/* ---------- Bannière CTA finale ---------- */
.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(2.6rem, 7vw, 4.6rem) 1.5rem;
    margin: 4rem 0 1rem;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 1.4rem;
    background:
        radial-gradient(700px 300px at 50% -20%, rgba(201, 162, 39, 0.16), transparent 60%),
        radial-gradient(800px 380px at 90% 120%, rgba(109, 79, 196, 0.2), transparent 55%),
        linear-gradient(160deg, rgba(24, 18, 42, 0.97), rgba(8, 8, 14, 0.97));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta-banner h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); text-wrap: balance; }
.cta-banner p { max-width: 560px; margin: 0.8rem auto 1.7rem; color: var(--muted); font-size: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- Pied de page complet ---------- */
.site-footer { margin-top: 5rem; padding: 3.4rem 1rem 1.6rem; text-align: left; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(154, 127, 232, 0.1);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; } }
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-left: 0; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.6rem;
    border: 1px solid var(--line-strong);
    color: var(--text-soft);
    background: rgba(154, 127, 232, 0.06);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { color: var(--gold-2); border-color: rgba(201, 162, 39, 0.5); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }
.footer-col h3 {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.65rem; }
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 1.4rem;
    font-size: 0.82rem;
    color: var(--faint);
    text-align: center;
}
.footer-bottom strong { color: var(--text-soft); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal a { color: var(--faint); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-2); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive : ajustements refonte ---------- */
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .footer-bottom { justify-content: center; }
    .footer-legal { justify-content: center; }
}

/* ===== Bannière annonce coupon (fermable, compacte) ===== */
.coupon-announce {
    background: rgba(10, 8, 16, .92);
    border-bottom: 1px solid rgba(212,160,23,.35);
}
.coupon-announce-inner {
    max-width: 1200px; margin: 0 auto; padding: 10px 48px 10px 20px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.coupon-announce-label {
    font-family: 'Cinzel', serif; font-weight: 600; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: #d4a017;
    white-space: nowrap;
}
.coupon-announce-desc { font-size: .85rem; color: rgba(255,255,255,.75); white-space: nowrap; }
.coupon-announce-code {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Courier New', monospace; font-weight: 700; font-size: .85rem;
    letter-spacing: .08em; color: #ffd76a;
    background: rgba(212,160,23,.08);
    border: 1px solid rgba(212,160,23,.4);
    padding: 5px 12px; border-radius: 6px; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.coupon-announce-code:hover { background: rgba(212,160,23,.16); border-color: rgba(212,160,23,.7); }
.coupon-announce-code svg { width: 13px; height: 13px; opacity: .7; }
.coupon-announce-code.copied { border-color: #4ade80; color: #4ade80; }
.coupon-announce-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; font-weight: 600; color: #d4a017;
    text-decoration: none; white-space: nowrap; padding: 5px 10px; border-radius: 6px;
    transition: background .2s;
}
.coupon-announce-cta:hover { background: rgba(212,160,23,.1); }
.coupon-announce-cta svg { width: 13px; height: 13px; }
.coupon-announce-close {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,.45);
    font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.coupon-announce-close:hover { color: #fff; }
.coupon-announce { position: relative; }
@media (max-width: 760px) {
    .coupon-announce-inner { flex-direction: column; gap: 8px; padding: 12px 44px 12px 16px; text-align: center; }
    .coupon-announce-label, .coupon-announce-desc { white-space: normal; }
}

/* ---------- Statut serveur en direct (accueil) ---------- */
.hero-live {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-top: 1.1rem; padding: .45rem .9rem;
    border: 1px solid rgba(232, 179, 75, .35);
    border-radius: 999px;
    background: rgba(232, 179, 75, .08);
    color: var(--gold, #e8b34b);
    font-size: .9rem; font-weight: 600;
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
}

/* ---------- Bandeau actualités (accueil, sous le hero) ---------- */
.news-strip {
    margin-top: 0;
    margin-bottom: 3.5rem;
}
.news-strip .grid-features { margin-top: 1.4rem; }
.news-strip-date {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: .45rem;
}
.news-strip .feature-card h3 { font-size: 1.05rem; line-height: 1.35; }
.news-strip .feature-card {
    display: flex;
    flex-direction: column;
}
.news-strip .feature-card .card-cta {
    margin-top: auto;
    padding-top: .6rem;
}
.news-thumb {
    display: block;
    width: calc(100% + 2.8rem);
    height: auto;
    margin: -1.7rem -1.4rem 1.1rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}
.news-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .8rem;
    margin-bottom: 1.1rem;
}

/* ---------- stratege-depth : profondeur des cartes sur l'illustration ---------- */
@media (min-width: 768px) {
    .hero,
    .panel,
    .feature-card {
        backdrop-filter: blur(10px) saturate(1.08);
        -webkit-backdrop-filter: blur(10px) saturate(1.08);
    }
}
/* ---------- stratege-contrast : lisibilité sur l'illustration ---------- */
.section-title,
.section-desc,
.section-overline,
.hero-title,
.hero-sub,
.hero-text {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================================================================
   LISIBILITE SUR L ILLUSTRATION
   Le voile sombre a ete retire : les textes poses directement sur le
   fond recoivent une ombre portee pour rester lisibles sans assombrir
   l'image.
   ================================================================== */
.section-title,
.section-overline,
.section-desc,
.hero-title,
.hero-sub,
.hero-text,
.page-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.80), 0 0 26px rgba(0, 0, 0, 0.60);
}
.section-desc { color: #E8E2F5; }
.section-title::after { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }


/* ==================================================================
   PIED DE PAGE SUR PANNEAU SOMBRE
   Le pied de page etait transparent : il passe sur un panneau sombre
   pour que les liens et le copyright restent lisibles au-dessus de
   l'illustration.
   ================================================================== */
.site-footer {
    background: linear-gradient(180deg, rgba(24, 18, 42, 0.97) 0%, rgba(8, 8, 14, 0.99) 100%);
    border-top: 1px solid rgba(201, 162, 39, 0.32);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.38);
    margin-top: 4.5rem;
}
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .footer-title { color: var(--gold-2); }


/* ==================================================================
   LISIBILITE DES TABLEAUX SUR L ILLUSTRATION
   Le voile global de page a ete retire : les tableaux passent sur un
   fond plus opaque pour rester lisibles au-dessus de l'image.
   ================================================================== */
.table-wrap {
    background: rgba(10, 9, 17, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}


/* ==================================================================
   SURFACES OPAQUES SUR L ILLUSTRATION
   Le voile global de page a ete retire : les cartes de statistiques
   et les listes translucides passent sur un fond quasi opaque pour
   rester lisibles au-dessus de l'image de fond.
   ================================================================== */
.stat,
.dash-count,
.rank-row,
.equip-slot {
    background: rgba(13, 11, 22, 0.95);
}

/* ==================================================================
   PANNEAU DES RARETES (home)
   Reprend la presentation « un meme objet, cinq raretes » : cinq
   vignettes colorees sur un panneau sombre, au-dessus de la section
   « Pourquoi choisir Stratège Duo ? ».
   ================================================================== */
.rarity-panel{
    background:linear-gradient(180deg,rgba(20,17,36,.94),rgba(10,9,17,.97));
    border:1px solid rgba(201,162,39,.22);
    border-radius:.8rem;
    padding:clamp(.65rem,1.2vw,1rem);
    box-shadow:0 24px 60px rgba(0,0,0,.45);
    margin-bottom:1.2rem;
    text-align:center;
}
.rarity-head{margin-bottom:.65rem;}
.rarity-overline{
    display:inline-block;
    font-size:.6rem;
    font-weight:700;
    letter-spacing:.28em;
    text-transform:uppercase;
    color:var(--gold-2);
}
.rarity-title{
    margin-top:.25rem;
    font-size:clamp(.92rem,1.7vw,1.2rem);
    line-height:1.15;
    color:#fff;
}
.rarity-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:clamp(.3rem,.8vw,.55rem);
    justify-items:center;
}
.rarity-card{display:flex;flex-direction:column;align-items:center;gap:.3rem;min-width:0;}
.rarity-tile{
    width:clamp(34px,4.6vw,52px);
    height:clamp(34px,4.6vw,52px);
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:.8rem;
    border:2px solid currentColor;
    background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.06),rgba(0,0,0,0) 70%),#15122a;
    box-shadow:0 0 22px -6px currentColor, inset 0 1px 0 rgba(255,255,255,.06);
    transition:transform .22s ease, box-shadow .22s ease;
}
.rarity-tile svg{width:52%;height:52%;opacity:.95;}
.rarity-tile img{width:70%;height:auto;display:block;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45));}
.rarity-card:hover .rarity-tile{
    transform:translateY(-3px);
    box-shadow:0 0 30px -4px currentColor, inset 0 1px 0 rgba(255,255,255,.12);
}
.rarity-name{font-size:clamp(.6rem,.72vw,.68rem);font-weight:600;color:currentColor;}
.rarity-card.r-normal{color:#9aa3b2;}
.rarity-card.r-rare{color:#33c46a;}
.rarity-card.r-epic{color:#a86bf0;}
.rarity-card.r-legend{color:#e08a2e;}
.rarity-card.r-divine{color:#e0483f;}
.rarity-foot{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:.6rem 1.2rem;
    margin-top:.7rem;
    padding-top:.6rem;
    border-top:1px solid rgba(255,255,255,.08);
    font-size:clamp(.66rem,.76vw,.74rem);
}
.rarity-foot-left{color:var(--muted);}
.rarity-foot-right{color:var(--gold-2);font-weight:600;}
@media (max-width:560px){
    .rarity-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:1rem;}
    .rarity-foot{justify-content:center;text-align:center;}
}