/* ============================================================
   Le Saturne — style commun « Liquid Glass »
   Télé : faux verre (dégradés + reflets, AUCUN flou en temps réel).
   Téléphone : vrai flou (backdrop-filter), ils sont assez puissants.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('/fonts-interv/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-0: #07051a;
  --bg-1: #120b3a;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --blue: #4f7cff;
  --cyan: #5ee7ff;
  --pink: #ff6fd8;
  --gold: #ffd166;
  --ok: #4ade80;
  --bad: #ff5a6e;
  --text: #f4f1ff;
  --text-2: rgba(244, 241, 255, 0.7);
  --text-3: rgba(244, 241, 255, 0.45);
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-pill: 999px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { background: #000; }
html, body {
  margin: 0;
  height: 100%;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

/* ---------- Fond : noir, étoiles qui scintillent, halos bleu/violet (voir shared/backdrop.js) ---------- */
.backdrop { position: fixed; inset: 0; overflow: hidden; z-index: -1; background: #000; }
.backdrop .glow { position: absolute; inset: 0; }
.backdrop .stars {
  position: absolute; inset: 0; background: center / cover no-repeat;
  will-change: opacity; animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }

/* ---------- Verre ---------- */
.glass {
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.03) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px -24px rgba(5, 0, 30, 0.75);
}
/* reflet en haut de la carte */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}
.glass > * { position: relative; }

.glass.tint-violet { background: linear-gradient(155deg, rgba(167, 139, 250, 0.38), rgba(139, 92, 246, 0.12) 60%, rgba(79, 124, 255, 0.1)); }
.glass.tint-blue { background: linear-gradient(155deg, rgba(94, 231, 255, 0.28), rgba(79, 124, 255, 0.14) 60%, rgba(139, 92, 246, 0.08)); }

/* ---------- Avatars ---------- */
.avatar {
  --size: 96px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--av-bg, #2a1d5c) 60%, #fff 12%), var(--av-bg, #2a1d5c) 70%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 14px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.avatar svg { width: 92%; height: 92%; display: block; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Divers ---------- */
.logo-word {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #fff 10%, #d6c8ff 45%, #8fd8ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.9em;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.4) translateY(30px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Effets réduits : on coupe animations et décor ---------- */
/* (les animations restent : seuls le flou et les étoiles animées sont coupés) */
.reduced * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.reduced .backdrop .stars { animation: none; opacity: 0.8; }

/* ============================================================
   Thème « nuit d'encre » : noir, cartes gris très foncé, un seul accent violet
   ============================================================ */
:root {
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.16);
  /* toutes les anciennes couleurs pointent vers l'accent ou le blanc */
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --blue: #8b5cf6;
  --cyan: #c4b5fd;
  --pink: #8b5cf6;
  --gold: #ffffff;
  --ok: #a78bfa;
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.4);
}
.glass, .glass.tint-violet, .glass.tint-blue {
  background: rgba(24, 24, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -24px rgba(0, 0, 0, 0.9);
}
.glass::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%); }
.logo-word { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; filter: none; }
.pill { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.avatar { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -6px 14px rgba(0, 0, 0, 0.25), 0 0 0 max(2.5px, calc(var(--size) * 0.04)) var(--av-ring, rgba(255, 255, 255, 0.1)); }
