/* ============================================================
   FredWav theme — Stoat (hub.fredwav.com)
   Charte récupérée de fredwav.com : noir #0F0F0F + or hsl(43 61% 58%)
   Polices : Inter (déjà présente) + Playfair Display (titres)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

/* ---- Accent OR (remplace le violet Revolt, via tokens Material 3) ---- */
:root{
  --md-sys-color-primary:#d5b053!important;
  --md-sys-color-on-primary:#0f0f0f!important;
  --md-sys-color-primary-container:#574716!important;
  --md-sys-color-on-primary-container:#f4e4b6!important;
  --md-sys-color-inverse-primary:#d5b053!important;
  --md-sys-color-secondary:#c9a14e!important;
  --md-sys-color-on-secondary:#0f0f0f!important;
  --md-sys-color-secondary-container:#4a3d1c!important;
  --md-sys-color-on-secondary-container:#f0dca8!important;
  --md-sys-color-tertiary:#e0c074!important;
  --md-sys-color-primary-fixed:#d5b053!important;
  --md-sys-color-primary-fixed-dim:#c9a14e!important;
  --accent:#d5b053!important;
  --accent-contrast:#0f0f0f!important;
}

/* ---- Fond premium FredWav : noir profond + halo doré ---- */
body,#app,#root,[id="app"]{
  background:
    radial-gradient(1100px 520px at 75% -8%, rgba(213,176,83,.12), transparent 60%),
    linear-gradient(180deg,#0f0f0f 0%,#141414 60%,#0f0f0f 100%)!important;
  background-attachment:fixed!important;
}

/* ---- Titres en Playfair Display doré (typewriter de login inclus) ---- */
h1{
  font-family:'Playfair Display',Georgia,serif!important;
  color:#e7cf8e!important;
  letter-spacing:.4px!important;
  text-shadow:0 2px 24px rgba(213,176,83,.18);
}

/* ---- Boutons primaires : dégradé or, texte noir (fallback si var insuffisante) ---- */
button[class*="primary"],a[class*="primary"],
button[class*="Primary"],a[class*="Primary"]{
  background:linear-gradient(135deg,#e3c478,#d5b053)!important;
  color:#0f0f0f!important;
  border:none!important;
  font-weight:600!important;
  box-shadow:0 6px 20px rgba(213,176,83,.25)!important;
}
button[class*="primary"]:hover,a[class*="primary"]:hover,
button[class*="Primary"]:hover,a[class*="Primary"]:hover{
  background:linear-gradient(135deg,#ecd193,#dcb85f)!important;
  filter:brightness(1.04);
}

/* ---- Liens & sélection en or ---- */
a{color:#d5b053}
::selection{background:rgba(213,176,83,.30);color:#fff}

/* ---- Scrollbar dorée discrète ---- */
*::-webkit-scrollbar-thumb{background:#3a3320!important}
*::-webkit-scrollbar-thumb:hover{background:#d5b053!important}

/* ============================================================
   Discord-lock : mono-serveur
   Masque le bouton « + » Créer/rejoindre un serveur dans le rail
   gauche (le serveur unique FredWav Community + Accueil + DMs +
   réglages restent visibles). Couvre les libellés EN et FR.
   ============================================================ */
[aria-label="Create or join a server"],
[aria-label="Créer ou rejoindre un serveur"]{
  display:none!important;
}

/* ============================================================
   Page d'accueil : le grand logo Revolt (SVG wordmark) est
   remplacé par le wordmark « FredWav Community » (Playfair or).
   Sélecteur vérifié unique (1 seul SVG w_160px sur la page).
   ============================================================ */
svg[class~="w_160px"][class~="fill_var(--md-sys-color-on-surface)"]{
  display:none!important;
}
div:has(> svg[class~="w_160px"][class~="fill_var(--md-sys-color-on-surface)"])::after{
  content:"FredWav Community";
  font-family:'Playfair Display',Georgia,serif;
  font-weight:800;
  font-size:46px;
  line-height:1.05;
  color:#e7cf8e;
  text-shadow:0 2px 24px rgba(213,176,83,.18);
  letter-spacing:.5px;
  white-space:nowrap;
  text-align:center;
}

/* ============================================================
   Accueil : les cartes natives (Create / Donate / Feedback /
   Settings) sont remplacées par les cartes personnalisées
   « Discute avec d'autres membres » + « Découvre le VIP »,
   injectées par /fredwav-home.js (qui masque la grille native).
   ============================================================ */
