/* ============================================================
   THÈME — direction artistique de la chaîne (relevée sur le VPS)
   Base commune aux deux DA : anthracite #141414, bleu électrique
   de la chaîne, titres condensés en capitales (Anton / Oswald),
   texte en Inter, angles droits, onglets bleus sur les cadres.
   - Marathon Ciné (panneau) : bleu #0a52ff, rouge d'étiquette #ff3b3b,
     cadres à filet bleu en haut + onglet bleu pour le titre.
   - Trigger : l'« étincelle » ambre #ffb547 pour les points
     → reprise ici pour tout ce qui touche aux XP.
   Tout le style de la DA est dans ce fichier.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Anton&family=Oswald:wght@500;600;700&display=swap');

:root {
  /* Fonds */
  --bg: #141414;
  --surface: #1b1b1b;
  --surface-2: #232323;
  --surface-3: #2c2c2c;
  --border: #383838;

  /* Texte */
  --text: #f2f2f2;
  --muted: #9d9d9d;
  --faint: #6b6b6b;

  /* Accents */
  --accent: #0a52ff;          /* bleu de la chaîne */
  --accent-2: #6e9bff;        /* bleu clair (texte sur fond sombre, confettis) */
  --accent-contrast: #ffffff;
  --accent-soft: rgba(10, 82, 255, 0.18);
  --xp: #ffb547;              /* l'étincelle de Trigger : points / XP */
  --xp-contrast: #2a1a00;
  --success: #22c38e;
  --danger: #ff3b3b;          /* rouge de l'étiquette « live » */
  --warning: #ffb020;

  /* Formes : angles droits partout */
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);

  /* Typographie */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Anton', 'Oswald', Impact, sans-serif;     /* gros titres, niveau, LEVEL UP */
  --font-label: 'Oswald', 'Anton', 'Arial Narrow', sans-serif; /* onglets, boutons, petits intitulés */
  --display-transform: uppercase;
  --display-weight: 400;
  --display-spacing: .02em;
}

/* ---------- Habillage propre à la DA ---------- */
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(10, 82, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(10, 82, 255, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h2 { font-size: 30px; line-height: 1; }

/* Angles droits (les pastilles rondes restent rondes) */
*, *::before, *::after { border-radius: 0 !important; }
.dot, .cat-chip::before, .now-line::before, .toggle span, .toggle span::after { border-radius: 50% !important; }
.toggle span { border-radius: 99px !important; }

/* Cadres : filet fin, filet bleu en haut, titre dans un onglet bleu */
.card { border-top: 2px solid var(--accent); }
.card-head h3 {
  flex: 0 1 auto; margin-right: auto;
  background: var(--accent); color: #fff;
  font: 600 13px/1 var(--font-label); text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 10px 4px; margin: -16px 0 4px -15px;
}
.card-head h3.clickable:hover { color: #fff; background: #2f6bff; }
.project { border-top-color: var(--c); }
.project .card-head h3 { background: var(--c); color: #0b0b0b; }
.project .card-head h3 .dot { display: none; }
.goal .card-head h3 { font-size: 13px; }
.agenda-card { border-top: 2px solid var(--accent); }
.modal { border-top: 2px solid var(--accent); }
.modal-head { padding: 0 8px 0 0; }
.modal-head h3 { background: var(--accent); color: #fff; font: 600 15px/1 var(--font-label); text-transform: uppercase; letter-spacing: .08em; padding: 7px 12px 6px; }
.modal-backdrop { background: rgba(0, 0, 0, .7); }

/* Libellés, boutons, navigation en Oswald capitales */
.btn, .seg button, .nav a, .field-label, .fab-item, .day-tog, .cat-chip, .li-date, .pick-group, .rec-box legend, .pop-title, .lvl-badge span, .prio, .badge, .tg-dayhead span, .mo-wd {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em;
}
.btn { font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: #2f6bff; border-color: #2f6bff; }
.nav a { font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.field-label { font-weight: 500; font-size: 11.5px; letter-spacing: .06em; }
input, select, textarea { background: #101010; }

/* En-tête */
.hud-clock { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: .02em; }
.lvl-badge b { font-weight: 400; font-size: 28px; }
.lvl-bar { height: 10px; }
.wallet { border-color: color-mix(in srgb, var(--xp) 35%, var(--border)); }
.streak { font-family: var(--font-label); letter-spacing: .03em; }
.streak-main { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface-2)); }

/* Agenda et célébrations */
.tg-dayhead b, .mo-num { font-family: var(--font-display); font-weight: 400; }
.levelup-title { font-weight: 400; font-style: normal; letter-spacing: .02em; }
.float-xp { font-weight: 400; letter-spacing: .02em; }
.levelup-num { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; }
.levelup-num b { color: #fff; font-family: var(--font-display); font-weight: 400; }
.fab { font-family: var(--font-body); font-weight: 300; }
