/* BASE : reset, typographie, conteneur, boutons, icônes, titres de section, apparition au scroll. */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); }
a:hover { color: var(--blue-link-hover); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

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

/* Icônes du sprite (voir <svg hidden> en haut de index.html).
   Taille et épaisseur de trait se règlent sur chaque <svg> via width/height/stroke-width. */
.i { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-fill { fill: currentColor; stroke: none; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Conteneur */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; min-width: 0; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29,95,209,.28); }
.btn-primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29,95,209,.34); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { color: var(--blue); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }

/* Sections */
.sec { padding: 96px 0; }
.sec-alt { background: var(--surface); }
.kicker { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.kicker.kicker-mint { color: var(--mint); }
.h2 { font-size: 42px; line-height: 1.08; margin: 0 0 14px; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 760px) { .h2 { font-size: 32px; } }
.sub { font-size: 18px; color: var(--text-2); line-height: 1.5; margin: 0; max-width: 640px; overflow-wrap: anywhere; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* Apparition au scroll : actif seulement si JS (classe .js posée dans <head>).
   reveal.js ajoute .in quand l'élément entre à l'écran. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .34s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Mouvement réduit : tout apparaît directement dans son état final */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
