/* ===================================================================
   REZO FORMATION PRO — Base styles
   =================================================================== */

@import url('variables.css');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--color-night);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Texture de fond subtile : grain + lueur ambiante */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 18% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(45% 40% at 100% 10%, rgba(245, 166, 35, 0.08), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { margin: 0; color: var(--color-text-dim); }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Focus visible — accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-blue-soft);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-xl); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-soft);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-amber);
  box-shadow: 0 0 8px var(--color-amber);
}

.section {
  padding: var(--space-12) 0;
}

@media (max-width: 640px) {
  .section { padding: var(--space-10) 0; }
}

.section-head {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-8);
}

.section-head p {
  margin-top: var(--space-3);
  font-size: var(--fs-md);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: transform var(--speed-base) var(--ease), box-shadow var(--speed-base) var(--ease), background var(--speed-base) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover { background: var(--color-blue-soft); transform: translateY(-2px); }

.btn-amber {
  background: var(--color-amber);
  color: #1A1304;
  box-shadow: var(--shadow-glow-amber);
}
.btn-amber:hover { background: var(--color-amber-soft); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}
.btn-ghost:hover { border-color: var(--color-blue-soft); color: var(--color-blue-soft); }

.btn-block { width: 100%; }

/* Cartes */
.card {
  background: var(--color-night-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: transform var(--speed-base) var(--ease), border-color var(--speed-base) var(--ease), box-shadow var(--speed-base) var(--ease);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue { background: var(--color-blue-dim); color: var(--color-blue-soft); }
.badge-amber { background: var(--color-amber-dim); color: var(--color-amber-soft); }

/* Utilitaires */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
