/* ============================================================
   CYBERTOUR 2026 — main.css
   DA professionnelle : monochrome + accent unique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette — noir, blanc, un seul accent */
  --bg:          #09090b;
  --surface:     #0f1014;
  --surface-2:   #18191f;
  --border:      rgba(255, 255, 255, 0.07);
  --border-mid:  rgba(255, 255, 255, 0.12);

  --accent:      #2563eb;          /* bleu institutionnel */
  --accent-pale: rgba(37,99,235,.12);
  --accent-glow: 0 0 24px rgba(37,99,235,.4);

  --white:       #f8fafc;
  --muted:       rgba(248,250,252,.45);
  --danger:      #ef4444;
  --success:     #10b981;

  /* Typographie */
  --font-h:    'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Échelle */
  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.625rem;
  --text-3xl:  2.125rem;
  --text-4xl:  3rem;
  --text-5xl:  4.25rem;

  /* Espacements */
  --s1: .25rem;  --s2: .5rem;  --s3: .75rem;  --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;    --s10: 2.5rem;
  --s12: 3rem;   --s16: 4rem;  --s20: 5rem;   --s24: 6rem;

  /* Rayons */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-full: 9999px;

  /* Transitions */
  --t-fast:   120ms ease;
  --t-normal: 220ms ease;
  --t-slow:   380ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--font-body); }
p { max-width: 64ch; }

/* ── Typographie ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}
h1 { font-size: clamp(2.5rem, 7vw, var(--text-5xl)); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--text-3xl)); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 700; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  border-radius: var(--r-md);
  font-family: var(--font-h);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #1d51d4;
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-mid);
  color: var(--white);
}

.btn-lg {
  padding: var(--s4) var(--s8);
  font-size: var(--text-base);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Tag / Pill ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border-mid);
  color: var(--muted);
}
.tag--live {
  border-color: rgba(239,68,68,.35);
  color: #f87171;
}
.tag--live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #f87171;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Ligne séparatrice ────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s16) 0;
}

/* ── Utilitaires ──────────────────────────────────────────── */
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.text-sm      { font-size: var(--text-sm); }

/* ── Focus ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--surface-2); border-radius: 2px; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
