/* ═══════════════════════════════════════════
   RADARLOCAL — Bleu Nuit × Violet Luxueux
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&display=swap');

:root {
  /* ── Backgrounds deep navy ── */
  --bg:          #07091a;
  --bg2:         #090c1e;
  --surface:     #0c1028;
  --surface2:    #101432;
  --card:        #0d1130;
  --card2:       #111538;

  /* ── Borders ── */
  --border:      rgba(110,90,210,0.14);
  --border2:     rgba(130,100,230,0.26);

  /* ── VIOLET accent — l'identité luxueuse ── */
  --violet:        #8b5cf6;
  --violet-light:  #a78bfa;
  --violet-bright: #c4b5fd;
  --violet-deep:   #6d28d9;
  --violet-dim:    rgba(139,92,246,0.14);
  --violet-glow:   rgba(139,92,246,0.28);

  /* ── BLEU secondaire ── */
  --blue:        #3b82f6;
  --blue-light:  #60a5fa;
  --blue-dim:    rgba(59,130,246,0.12);

  /* ── GRADIENT signature ── */
  --grad:          linear-gradient(135deg, #6d28d9 0%, #7c3aed 40%, #4f46e5 100%);
  --grad-text:     linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #60a5fa 100%);
  --grad-border:   linear-gradient(135deg, rgba(139,92,246,0.5), rgba(79,70,229,0.5));
  --grad-glow:     linear-gradient(135deg, rgba(109,40,217,0.2), rgba(79,70,229,0.15));
  --grad-card-top: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent);

  /* ── Status ── */
  --pos:         #34d399;
  --pos-dim:     rgba(52,211,153,0.1);
  --neg:         #f87171;
  --neg-dim:     rgba(248,113,113,0.1);
  --warn:        #fb923c;
  --warn-dim:    rgba(251,146,60,0.1);

  /* ── Text ── */
  --text:        #eaedf8;
  --text2:       #a0a8c8;
  --muted:       #56618a;
  --muted2:      #3a4267;

  /* ── Shadows ── */
  --shadow-card:  0 4px 32px rgba(0,0,0,0.45), 0 1px 0 rgba(110,90,210,0.1) inset;
  --shadow-violet: 0 0 40px rgba(139,92,246,0.2);
  --shadow-btn:    0 4px 24px rgba(109,40,217,0.45), 0 1px 0 rgba(196,181,253,0.15) inset;

  /* ── Typography ── */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Geist', system-ui, sans-serif;

  /* ── Radii ── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── MESH BACKGROUND ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,0.07) 0%, transparent 65%);
  top: -300px; right: -200px;
}

.mesh-bg::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 65%);
  bottom: -200px; left: -100px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

/* Gradient text utility */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  border-radius: inherit;
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(109,40,217,0.55), 0 1px 0 rgba(196,181,253,0.2) inset;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
}

.btn-outline:hover {
  border-color: rgba(139,92,246,0.45);
  color: var(--violet-light);
  background: var(--violet-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover { color: var(--text2); }

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
}

/* ── LOGO ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad);
  border: 1px solid rgba(139,92,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(109,40,217,0.4);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-card-top);
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-violet {
  background: var(--violet-dim);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--violet-light);
}

.badge-blue {
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-light);
}

.badge-green {
  background: var(--pos-dim);
  border: 1px solid rgba(52,211,153,0.25);
  color: var(--pos);
}

.badge-red {
  background: var(--neg-dim);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--neg);
}

/* ── NAV ── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3.5rem;
  background: rgba(7,9,26,0.8);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--text2); }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--violet);
  opacity: 0.7;
}

/* ── FORMS ── */
.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select {
  width: 100%;
  background: rgba(9,12,28,0.8);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder { color: var(--muted2); }

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(139,92,246,0.55);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted2);
  font-size: 0.78rem;
  margin: 1.25rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .main-nav { padding: 1rem 1.5rem; } }
@media (max-width: 640px) { .main-nav ul { display: none; } }
