/* ============================================================
   MUSIC2FOLLOW — Design system
   Aesthetic: editorial music-magazine × dark vinyl × neon accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,400&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Palette */
  --bg:        #0a0a0f;
  --bg-elev:  #13131a;
  --bg-card:  #181822;
  --line:     #22222e;
  --line-2:   #2c2c3a;

  --text:     #f5f5f7;
  --text-2:   #b4b4c0;
  --text-3:   #6e6e7e;
  --text-4:   #45454f;

  /* Accents — vinyle + néon */
  --accent:   #ff2e63;   /* rose néon */
  --accent-2: #ffb400;   /* jaune vinyle */
  --accent-3: #00f5d4;   /* cyan */
  --spotify:  #1DB954;
  --youtube:  #FF0033;

  /* Gradient signature */
  --grad: linear-gradient(110deg, #ff2e63 0%, #ff6b35 45%, #ffb400 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,46,99,.1), rgba(255,180,0,.05));

  /* Typo */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Effets */
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 40px rgba(0,0,0,.4);
  --radius:      16px;
  --radius-sm:   10px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== Body ===== */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ===== Typography ===== */
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; }
.serif   { font-family: var(--font-display); }
.mono    { font-family: var(--font-mono); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Layout helpers ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

@media (max-width: 640px) {
  .container, .container-sm { padding: 0 18px; }
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #0a0a0f;
  box-shadow: 0 4px 24px rgba(255, 46, 99, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(255, 46, 99, 0.5); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover { background: var(--bg-card); border-color: #444; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }

.btn-white {
  background: var(--text);
  color: #0a0a0f;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.card-elev { background: var(--bg-elev); box-shadow: var(--shadow-card); }

/* ===== Forms ===== */
.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,46,99,.12);
}
.input::placeholder { color: var(--text-4); }

label.field {
  display: block;
  margin-bottom: 18px;
}
label.field > span {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}

/* ===== Toggle ===== */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 26px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--line-2);
  border-radius: 999px;
  transition: background .2s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 4px; top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(18px); }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-spotify { background: var(--spotify); color: #000; }
.badge-youtube { background: var(--youtube); color: #fff; }
.badge-news    { background: var(--accent-2); color: #000; }
.badge-soft    { background: rgba(255,255,255,.06); color: var(--text-2); }
.badge-premium { background: var(--grad); color: #000; }

/* ===== Marquee animation pour landing ===== */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 5rem;
  color: var(--text-3);
  letter-spacing: -0.02em;
}
.marquee span { display: inline-block; }
.marquee .dot { color: var(--accent); }

/* ===== Toast / notifs UI ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  z-index: 1000;
  animation: toastIn .3s ease, toastOut .3s ease 4s forwards;
  max-width: 360px;
}
.toast.success { border-left: 3px solid var(--accent-3); }
.toast.error   { border-left: 3px solid var(--accent); }

@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* ===== Loader ===== */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

/* ===== Selection ===== */
::selection { background: var(--accent); color: #000; }
