/* ═════════════════ TAILWIND ═════════════════ */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ═════════════════ VARIABLES ═════════════════ */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #141414;
  --surface: #1c1c1c;
  --border: #262626;
  --border-light: #404040;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --accent: #2563eb; /* Blue */
  --accent-dim: #1d4ed8;
}

/* ═════════════════ BASE STYLES ═════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Confort PWA */
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Interdire la sélection sur les éléments d'interface */
header, footer, button, .btn {
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═════════════════ COMPONENTS ═════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem; font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s ease;
  cursor: pointer; text-decoration: none; border-radius: 0; 
}

.btn-primary {
  background: var(--accent); color: white; border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: white; color: black; border-color: white;
}
.btn-primary:active { 
  transform: scale(0.96) translateY(2px); 
}

.btn-outline {
  background: transparent; border: 1px solid var(--border-light); color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--text-primary); background: var(--bg-tertiary);
}
.btn-outline:active { 
  transform: scale(0.96) translateY(2px); 
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.75rem; }

.card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 0; padding: 1.5rem; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px); border-color: var(--border-light);
}

.section-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent);
  border: 1px solid var(--border); padding: 0.25rem 0.75rem; margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--text-primary);
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

/* ═════════════════ ANIMATIONS ═════════════════ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

#mobile-nav {
  max-height: 0; opacity: 0; transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}
