/* ── SHARED — Mr Sounds Good ── */

:root {
  --bg:    #08090f;
  --blue1: #9b30e0;
  --blue2: #4a0080;
  --cream: #e8dfc8;
  --border: rgba(160,50,230,0.2);
  --grad:  linear-gradient(120deg, #1a44ff, #5522ee, #9b30e0, #6a0dad, #4a0080, #b033ee);
}

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  overflow-x: hidden;
}

/* ── BACKGROUND ── */
#bg-anim { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#bg-anim svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── THEME SWITCH — masqué temporairement (light mode en stand-by) ── */
.theme-switch { display: none !important; }
.lang-mode-label { display: none !important; }

.theme-switch-off {
  position: relative; display: inline-block;
  width: 36px; height: 20px; cursor: pointer; flex-shrink: 0;
}
.theme-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.theme-slider {
  position: absolute; inset: 0;
  background: rgba(160,50,230,0.15); border-radius: 10px;
  border: 1px solid var(--border); transition: background 0.3s;
}
.theme-slider::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; left: 2px; top: 2px;
  background: var(--blue1); border-radius: 50%; transition: transform 0.3s;
}
.theme-switch input:checked + .theme-slider { background: rgba(155,48,224,0.28); }
.theme-switch input:checked + .theme-slider::before { transform: translateX(16px); }

/* ── LANG SWITCHER ── */
.lang-switcher { display: flex; align-items: center; gap: 0.4rem; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); opacity: 0.45; padding: 0.15rem 0.1rem;
  transition: opacity 0.25s, color 0.25s;
}
.lang-btn:hover { opacity: 0.85; }
.lang-btn[aria-pressed="true"] { opacity: 1; color: var(--blue1); }
.lang-sep { font-size: 0.55rem; opacity: 0.25; color: var(--cream); line-height: 1; }
.lang-mode-label { opacity: 0.45; cursor: default; }

/* ── LIGHT MODE — base ── */
body.light {
  --bg: #f4f0f8;
  --cream: #1a0a2e;
  --border: rgba(100,30,180,0.18);
}
body.light #bg-anim { opacity: 0.22; }
body.light .lang-btn { opacity: 0.65; }
body.light .lang-btn[aria-pressed="true"] { opacity: 1; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  #bg-anim { display: none; }
}
