/* ============================================
   ACCESS STUDIO — Style global
   Direction : tech / sombre / sobre
   ============================================ */

:root {
  /* Palette */
  --bg: #0a0a0c;
  --bg-soft: #131317;
  --bg-card: #18181d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --text-dim: #71717a;
  --accent: #ff4d4d;
  --accent-soft: #ff7a7a;
  --accent-glow: rgba(255, 77, 77, 0.18);
  --grid: rgba(255, 255, 255, 0.04);

  /* Typo */
  --font-display: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Rayons & ombres */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grille de fond subtile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .mark {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 5px;
  position: relative;
  display: inline-block;
}
.nav-logo .mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
}

@media (max-width: 820px) {
  .nav-inner { padding: 16px 22px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    padding: 22px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a.active::after { display: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 120px;
  padding: 60px 28px 32px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 320px;
  margin-top: 14px;
  line-height: 1.6;
}
.footer ul { list-style: none; }
.footer ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.footer ul li a { transition: color 0.15s; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 50px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
}
@media (max-width: 820px) {
  .footer { padding: 50px 22px 28px; margin-top: 80px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--text);
}
.btn .arrow {
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   PAGES CONTENU
   ============================================ */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 28px 30px;
}
.page-wrap .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-wrap .kicker::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.page-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.page-wrap .lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 50px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}
.page-wrap h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
}
.page-wrap h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
.page-wrap p {
  margin-bottom: 16px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 15px;
}
.page-wrap a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 122, 0.3);
  transition: border-color 0.15s;
}
.page-wrap a:hover { border-bottom-color: var(--accent-soft); }
.page-wrap ul { margin: 10px 0 22px 4px; list-style: none; }
.page-wrap ul li {
  margin-bottom: 8px;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
}
.page-wrap ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--accent);
}
.page-wrap strong { color: var(--text); font-weight: 600; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
