/* Palette & base */
:root {
  --syn-primary: #4f46e5;
  --syn-primary-soft: rgba(79, 70, 229, 0.12);
  --syn-accent: #f97316;
  --syn-bg: #050816;
  --syn-surface: #0b1120;
  --syn-surface-soft: #0f172a;
  --syn-border-subtle: rgba(148, 163, 184, 0.4);
  --syn-text-main: #e5e7eb;
  --syn-text-muted: #9ca3af;
}

body {
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--syn-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Hero / "slider" */
.hero {
  background: radial-gradient(circle at 10% 0, rgba(79, 70, 229, 0.35) 0, transparent 55%),
              radial-gradient(circle at 80% 0, rgba(249, 115, 22, 0.26) 0, transparent 50%),
              linear-gradient(145deg, #020617 0%, #020617 55%, #020617 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(79, 70, 229, 0.35), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  letter-spacing: -0.03em;
}

.hero .lead {
  color: var(--syn-text-muted);
}

.hero .btn-warning {
  background: linear-gradient(135deg, #f97316, #facc15);
  border: none;
  box-shadow: 0 18px 45px rgba(234, 179, 8, 0.3);
}

.hero .btn-warning:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hero .btn-outline-light {
  border-color: rgba(229, 231, 235, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.5);
}

.hero .btn-outline-light:hover {
  background: rgba(148, 163, 184, 0.25);
}

/* Cartes & surfaces */
.card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 55%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.96));
  color: var(--syn-text-main);
}

.card .text-muted {
  color: var(--syn-text-muted) !important;
}

.glass {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hover-card {
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out, background 0.2s ease-out;
}

.hover-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.7);
  border-color: rgba(129, 140, 248, 0.8);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 60%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.86) !important;
  backdrop-filter: blur(18px);
}

.navbar-brand {
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #e5e7eb;
}

.navbar-brand:hover {
  color: #ffffff;
}

.nav-link {
  color: var(--syn-text-muted) !important;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: #ffffff !important;
}

.nav-link.active {
  color: #ffffff !important;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--syn-primary), var(--syn-accent));
}

/* Sections & typographie */
section {
  scroll-margin-top: 80px;
}

h1, h2, h3, h4, h5 {
  color: #f9fafb;
}

p {
  color: var(--syn-text-main);
}

.bg-light {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1)) !important;
}

/* Liens */
a {
  text-decoration: none;
  color: var(--syn-primary);
}

a:hover {
  text-decoration: underline;
  color: #818cf8;
}

.link-secondary {
  color: var(--syn-text-muted) !important;
}

.link-secondary:hover {
  color: #e5e7eb !important;
}

/* Listes de navigation (sidebars) */
.list-group-item {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--syn-text-main);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
}

.list-group-item-action {
  transition: background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

/* Footer */
footer {
  background: #020617 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.45) !important;
}

footer p {
  color: var(--syn-text-muted);
}

