/* ============================================================================
   Base : reset, typographie, primitives de mise en page
   ========================================================================= */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               /* filet de securite : jamais de scroll horizontal */
}

img, video, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;               /* evite les titres orphelins d'un mot */
}
h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: var(--step-4); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 var(--space-md); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--text); }

strong { color: var(--text); font-weight: 600; }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.15em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }

/* --- focus : visible partout, jamais supprime --- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --- primitives --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 6vw, 6rem); position: relative; }
.section--raised { background: var(--bg-raised); }

.kicker {
  position: relative;
  display: inline-block;
  padding: .1em .6em;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-md);
}

/* Reperes de cadrage : deux angles de viseur, en haut a gauche et en bas a
   droite. Ils encadrent sans enfermer, et renvoient a la visee optique —
   le metier du studio. Dessines en bordures, donc aucun caractere lu par
   les lecteurs decran. */
.kicker::before,
.kicker::after {
  content: '';
  position: absolute;
  width: 1.62em;
  height: .82em;
  border: 1px solid currentColor;
  opacity: .75;
}
.kicker::before { top: 0;    left: 0;  border-right: 0; border-bottom: 0; }
.kicker::after  { bottom: 0; right: 0; border-left: 0;  border-top: 0; }

.lead { font-size: var(--step-1); color: var(--text-soft); max-width: 62ch; }

.skip-link {
  position: absolute; left: var(--space-md); top: -100px;
  z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: .7em 1.2em; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--space-md); color: var(--accent-ink); }

/* --- boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;                 /* cible tactile confortable */
  padding: .8em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font: inherit;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hot); color: var(--accent-ink); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--text); }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* --- carte --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease-out);
}

/* --- reveal au scroll : pilote par IntersectionObserver, zero dependance --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay:  80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* Sans JS ou avec mouvement reduit, tout doit rester lisible. */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- halo qui suit le curseur -------------------------------------------
   Purement decoratif : pointer-events:none, invisible au clavier et aux
   lecteurs d'ecran, desactive si le pointeur est grossier ou si
   l'utilisateur a demande moins de mouvement.                            */
.glow {
  position: fixed;
  inset: 0;
  z-index: 50;                 /* au-dessus du contenu, sous l'en-tete (60) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
  mix-blend-mode: screen;      /* n'ajoute que de la lumiere, jamais d'ombre */
  background: radial-gradient(
    var(--glow-size) var(--glow-size) at var(--mx, 50%) var(--my, 50%),
    rgba(var(--glow-rgb), .17),
    rgba(var(--glow-rgb), .07) 42%,
    transparent 72%);
}
.glow.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .glow { display: none; } }
@media (pointer: coarse)                { .glow { display: none; } }
