/* =========================================================
   base.css — Typography, layout container, buttons, utilities
   ========================================================= */

/* ----- Typographie ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
p  { color: #CBCBCB; }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ----- Eyebrow (libellé pré-titre) ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

/* ----- Section ----- */
.section {
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
}
.section-title { margin-bottom: 18px; }
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
}

/* ----- Boutons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .25s var(--ease),
              box-shadow .25s var(--ease),
              background .25s var(--ease),
              color .25s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--grad);
  color: #0A0A0A;
  box-shadow: 0 10px 30px -10px rgba(255, 107, 0, .55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(255, 107, 0, .7);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: #444;
  background: rgba(255, 255, 255, .03);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ----- Focus accessibility ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----- Reveal animations (déclenchées par main.js) ----- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .55s; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .word > span { transform: none; opacity: 1; }
}

/* ----- Safe-area iOS ----- */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .footer-bottom {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}
