/* ============================================================================
 *  DESIGN 3 — style.css  « Le Défilé »
 * ============================================================================
 *  FR : Héro plein écran, sections généreuses, révélation douce au défilement.
 *       Palette neutre claire, beaucoup d'espace blanc (sensation premium).
 *  EN : Full-screen hero, generous sections, gentle scroll reveal.
 *       Light neutral palette, lots of whitespace (premium feel).
 * ========================================================================== */

:root {
  --ink:    #161616;
  --paper:  #ffffff;
  --muted:  #777777;
  --line:   #ececec;
  --accent: #b5462f;   /* FR: terre cuite sobre, en touche EN: restrained terracotta accent */
  --max:    1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* ----- BOUTON LANGUE (fixe) / LANGUAGE BUTTON (fixed) -------------------- */
.lang-btn {
  position: fixed; top: 1.2rem; right: 1.2rem; z-index: 10;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; transition: all 0.15s;
}
.lang-btn:hover { background: var(--ink); color: var(--paper); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- HÉRO / HERO -------------------------------------------------------- */
.hero {
  min-height: 88vh; display: flex; flex-direction: column; justify-content: center;
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.5rem;
}
.hero-name {
  font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02;
}
.hero-role { color: var(--accent); font-size: clamp(1rem, 2.5vw, 1.3rem); margin-top: 1rem; font-weight: 500; }
.hero-tagline { color: var(--muted); font-size: 1.1rem; margin-top: 1.2rem; max-width: 46ch; }
.scroll-hint { color: var(--muted); font-size: 0.85rem; margin-top: 3rem; letter-spacing: 0.05em; }

/* ----- SECTIONS / STORY --------------------------------------------------- */
.story {
  max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}
.story-head { display: flex; gap: 1.5rem; align-items: baseline; margin-bottom: 2.5rem; }
.story-num {
  font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.story-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; }
.story-desc { color: var(--muted); margin-top: 0.4rem; max-width: 55ch; }

.story-projects {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.story-proj img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 6px; background: var(--line);
}
.story-proj figcaption { margin-top: 0.8rem; display: flex; flex-direction: column; }
.story-proj strong { font-weight: 600; }
.story-proj span { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* ----- RÉVÉLATION / REVEAL ------------------------------------------------ */
/* FR : état caché : légèrement décalé + transparent.
   EN : hidden state: slightly offset + transparent. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ----- PIED DE PAGE / FOOTER ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 3rem 1.5rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
