/* ═══════════════════════════════════════════════════════════════
   Les Chroniques de Sylvania — Thème Mists of Pandaria
   Glassmorphism · Or impérial & Jade de Pandarie
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:        #0c0f0a;          /* nuit de Pandarie (vert-noir) */
    --bg-card:   rgba(12, 16, 12, 0.72);
    --gold:      #c5a059;          /* or impérial mogu */
    --gold-lt:   #eaba28;          /* or vif (titres) */
    --gold-soft: rgba(197, 160, 89, 0.18);
    --jade:      #34d399;          /* jade / serpent de jade */
    --jade-dk:   #0f766e;
    --mist:      #7fd4c1;          /* brume turquoise */
    --crimson:   #c0392b;          /* sceau impérial */
    --text:      #f3ead7;          /* parchemin clair */
    --text-mut:  rgba(243, 234, 215, 0.62);
    --radius:    14px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--gold-lt); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: #f7d469; }

.container { max-width: 1180px; margin: 0 auto; padding: 20px; position: relative; z-index: 10; }

/* ── Fond vidéo MoP ────────────────────────────────────────────── */
#video-background {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: 1; pointer-events: none;
}
#video-overlay {
    position: fixed; inset: 0;
    z-index: 2; pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(12,16,12,0.30), rgba(12,16,12,0.78)),
        linear-gradient(180deg, rgba(12,16,12,0.45), rgba(12,16,12,0.85));
}

/* ── En-tête / Navigation ──────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 13, 10, 0.78);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-soft);
}
.site-header .bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; max-width: 1720px; margin: 0 auto; padding: 8px 40px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 82px; width: auto; filter: drop-shadow(0 0 12px rgba(197,160,89,.4)); }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-title {
    font-weight: 800; font-size: 1.4rem; letter-spacing: .3px; white-space: nowrap;
    color: var(--gold-lt); /* or plein garanti — pas de clip-texte transparent (rendu noir si GPU off) */
}

.nav { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; }
.nav-item {
    color: var(--text-mut); padding: 6px 8px; border-radius: 8px;
    font-weight: 600; font-size: .75rem; position: relative;
    transition: all .25s var(--ease); white-space: nowrap;
}
.nav-item::after {
    content: ''; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
    width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width .3s var(--ease);
}
.nav-item:hover { color: var(--text); background: var(--gold-soft); }
.nav-item:hover::after { width: 65%; }
.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(197,160,89,.22), rgba(52,211,153,.16));
    border: 1px solid var(--gold-soft);
}
.nav-item.active::after { width: 65%; }

.nav-cta {
    margin-left: 4px;
    background: linear-gradient(135deg, var(--gold), #a8823f);
    color: #1a160b !important; font-weight: 800; padding: 8px 12px; border-radius: 8px;
    box-shadow: 0 6px 18px rgba(197,160,89,.25); transition: transform .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); color: #1a160b !important; }

.menu-toggle { display: none; background: none; border: 0; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* ── Boutons ───────────────────────────────────────────────────── */
.btn-x {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; transition: all .25s var(--ease);
    text-decoration: none;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-lt), #b8862c); color: #1a160b; box-shadow: 0 8px 22px rgba(197,160,89,.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(197,160,89,.4); color: #1a160b; }
.btn-jade { background: linear-gradient(135deg, var(--jade), var(--jade-dk)); color: #03120e; }
.btn-jade:hover { transform: translateY(-2px); color: #03120e; }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--gold-soft); color: var(--text); }
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold); color: #fff; }

/* ── Cartes verre ──────────────────────────────────────────────── */
.card-x {
    background: var(--bg-card);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-soft); border-radius: var(--radius);
    box-shadow: 0 10px 34px rgba(0,0,0,.45);
    padding: 26px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card-x:hover { transform: translateY(-4px); border-color: rgba(197,160,89,.4); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 70px 20px 50px; }
.hero .eyebrow {
    display: inline-block; font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--jade); border: 1px solid rgba(52,211,153,.3); border-radius: 30px;
    padding: 6px 16px; margin-bottom: 22px; background: rgba(52,211,153,.06);
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; margin: 0 0 18px; line-height: 1.05;
    color: var(--gold-lt); /* or plein garanti — pas de clip-texte transparent (rendu noir si GPU off) */
    text-shadow: 0 4px 30px rgba(197,160,89,.25); letter-spacing: 1px;
}
.hero .lead { font-size: 1.15rem; color: var(--text-mut); max-width: 640px; margin: 0 auto 34px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Bandeau statut serveur ────────────────────────────────────── */
.status-strip {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 8px auto 30px;
}
.status-pill {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border: 1px solid var(--gold-soft);
    border-radius: 12px; padding: 12px 20px; backdrop-filter: blur(10px); min-width: 210px;
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.status-dot.up   { background: var(--jade); box-shadow: 0 0 0 4px rgba(52,211,153,.18), 0 0 14px var(--jade); animation: pulse 2.4s infinite; }
.status-dot.down { background: var(--crimson); box-shadow: 0 0 0 4px rgba(192,57,43,.18); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }
.status-pill .s-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mut); }
.status-pill .s-value { font-weight: 700; font-size: .98rem; }

/* ── Grilles & sections ────────────────────────────────────────── */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 10px; color: var(--gold-lt);
    text-shadow: 0 0 18px rgba(197,160,89,.2);
}
.section-head p { color: var(--text-mut); max-width: 560px; margin: 0 auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.4rem; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold-soft), rgba(52,211,153,.12));
    border: 1px solid var(--gold-soft); color: var(--gold-lt);
}
.card-x h3 { margin: 0 0 8px; color: var(--gold-lt); font-size: 1.18rem; }
.card-x p  { margin: 0; color: var(--text-mut); line-height: 1.65; font-size: .95rem; }

/* Rates */
.rate-tile { text-align: center; }
.rate-tile .rate-val { font-size: 2.2rem; font-weight: 800; color: var(--jade); line-height: 1; }
.rate-tile .rate-lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mut); margin-top: 8px; }

/* ── Realmlist box ─────────────────────────────────────────────── */
.realm-box {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(0,0,0,.45); border: 1px dashed var(--gold-soft); border-radius: 10px;
    padding: 14px 18px; font-family: 'Consolas', monospace; color: var(--mist); flex-wrap: wrap;
}
.realm-box code { color: var(--gold-lt); font-size: 1rem; }

/* ── Formulaires ───────────────────────────────────────────────── */
.form-x { max-width: 440px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mut); margin-bottom: 7px; }
/* Tous les champs de formulaire (partout) héritent du thème sombre. */
.field input, .field select, .field textarea,
.form-x input, .form-x select, .form-x textarea {
    width: 100%; padding: 12px 14px; border-radius: 9px; color: var(--text);
    background: rgba(0,0,0,.4); border: 1px solid var(--gold-soft); font-size: .95rem;
    font-family: inherit; transition: border-color .2s var(--ease);
}
.field select option { background: #14180f; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus,
.form-x input:focus, .form-x textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,160,89,.15); }
.field input::placeholder, .form-x input::placeholder, .field textarea::placeholder { color: rgba(243,234,215,.4); }
.form-x > .btn-x { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { text-align: center; color: var(--text-mut); font-size: .88rem; margin-top: 16px; }

/* ── Tableaux (classement) ─────────────────────────────────────── */
.table-x { width: 100%; border-collapse: collapse; }
.table-x th, .table-x td { padding: 13px 16px; text-align: left; }
.table-x thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mut);
    border-bottom: 1px solid var(--gold-soft);
}
.table-x tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); transition: background .2s; }
.table-x tbody tr:hover { background: var(--gold-soft); }
.table-x .rank { font-weight: 800; color: var(--gold-lt); width: 60px; }
.table-x .rank-1 { color: #ffd700; } .table-x .rank-2 { color: #c0c0c0; } .table-x .rank-3 { color: #cd7f32; }

/* ── Boutique ──────────────────────────────────────────────────── */
.shop-card { text-align: center; }
.shop-card .price { font-size: 1.8rem; font-weight: 800; color: var(--gold-lt); margin: 10px 0; }
.shop-card .price small { font-size: .9rem; color: var(--text-mut); }

/* ── Pied de page ──────────────────────────────────────────────── */
.site-footer {
    margin-top: 60px; border-top: 1px solid var(--gold-soft);
    background: rgba(8, 11, 8, 0.85); backdrop-filter: blur(12px);
    position: relative; z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 46px 22px 30px; max-width: 1180px; margin: 0 auto; }
.site-footer h4 { color: var(--gold-lt); font-size: .95rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 16px; }
.site-footer a { display: block; color: var(--text-mut); padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-lt); }
.footer-brand p { color: var(--text-mut); line-height: 1.7; font-size: .92rem; max-width: 340px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; padding: 0;
    background: var(--gold-soft); border: 1px solid var(--gold-soft); color: var(--gold-lt); font-size: 1.1rem;
    transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: #1a160b; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid rgba(255,255,255,.05); color: var(--text-mut); font-size: .84rem; }

/* ── Animations d'apparition ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 1600px) {
    .menu-toggle { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
        flex-direction: column; align-items: stretch; gap: 6px;
        background: rgba(8,11,8,.97); backdrop-filter: blur(20px);
        padding: 80px 20px 20px; transform: translateX(100%); transition: transform .35s var(--ease);
        border-left: 1px solid var(--gold-soft); z-index: 120;
    }
    .nav.open { transform: none; }
    .nav-item, .nav-cta { width: 100%; text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 48px 16px 32px; }
}
