/* ==========================================================================
   LOUIS-FÉLIX MASSON — PORTFOLIO v2
   Editorial luxury minimal · Deep navy + warm gold + cream
   ========================================================================== */

:root {
  /* Colors */
  --navy: #0A1F44;
  --navy-deep: #061330;
  --navy-soft: #1a2f5c;
  --gold: #C9A961;
  --gold-soft: #d6b876;
  --gold-deep: #a88a47;
  --cream: #FAFAF7;
  --cream-warm: #f5f1e8;
  --slate: #3A3A3A;
  --slate-soft: #6b6b6b;
  --line: rgba(10, 31, 68, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --max-w: 1280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ============================================================
     V5 — NAVY AUGMENTED · additions only, do not modify v4 vars
     Phase A.1 (palette) + A.2 (typo / spacing).
     Sémantique délibérée :
       --navy         = identité de marque, surface
       --text-primary = rôle texte (même valeur aujourd'hui, divergence possible plus tard)
     ============================================================ */

  /* V5 palette */
  --black:           #000000;
  --text-primary:    #0A1F44;
  --text-cream:      #FAFAF7;
  --text-secondary:  #4A4842;
  --red:             #FF3B1F;
  --red-deep:        #C8311A;
  --line-strong:     #0A1F44;

  /* V5 typographic scale (brutalist — application en Phase B) */
  --display-xxl: clamp(5rem,    12vw, 14rem);
  --display-xl:  clamp(3.5rem,   8vw,  9rem);
  --display-lg:  clamp(2.5rem,   5vw,  5rem);
  --display-md:  clamp(1.75rem,  3vw,  2.75rem);
  --body-lg:     1.125rem;
  --body:        1rem;
  --body-sm:     0.875rem;
  --caption:     0.75rem;

  /* V5 brutalist spacing (application en Phase B) */
  --space-section: clamp(8rem, 16vw, 16rem);
}

/* ==================== RESET & BASE ==================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--navy); }

/* ==================== V5 PHASE A.4 — ACCESSIBILITY ==================== */

/* Focus visible global — clavier seulement, n'affecte pas le mouse focus */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Skip link prep — l'ancre HTML viendra en Phase B */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.85rem 1.25rem;
  background: var(--navy);
  color: var(--text-cream);
  font-family: var(--font-sans);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease);
  z-index: 999;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ==================== V5 PHASE E.3 — MARQUEE REALISATIONS ==================== */
/* Marquee 25s RTL nerveux, decoratif (aria-hidden=true).
   Track duplique pour boucle infinie sans saut : translateX 0 -> -50%. */
.marquee {
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 1.5rem 0;
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  overflow: hidden;
  background: var(--cream);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-slide 25s linear infinite;
  will-change: transform;
}
.marquee__track:hover {
  animation-play-state: paused;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: var(--display-md);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
}
.marquee__sep {
  color: var(--red);
  font-size: calc(var(--display-md) * 0.7);
  flex-shrink: 0;
  user-select: none;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}
/* Audit lecture #6 : items marquee plus discrets sur mobile (display-md trop massif) */
@media (max-width: 767px) {
  .marquee__item { font-size: var(--body-lg); }
  .marquee__sep { font-size: calc(var(--body-lg) * 0.85); }
  .marquee__track { gap: 1.5rem; }
}

/* ==================== V5 PHASE E.2 — SCROLL PROGRESS BAR ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 200;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 100ms linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { opacity: 0; }
}

/* V5 — Curseur custom abandonne (decision Luc) : curseur natif systeme uniquement.
   Pas de .cursor-dot/.cursor-ring (Phase C original) ni .cursor-blend (v2 tente).
   Les autres effets Phase C restent actifs : pulse CTA, zoom photos, hovers
   generiques (nav underlines rouges, btn sweep, pillars translateY ombre noire). */

/* Champs de saisie : cursor: text natif (cohérent avec curseur OS) */
input,
textarea,
select { cursor: text; }

/* ==================== V5 PHASE B.1 — BRUTALIST UTILITIES ==================== */

/* Numéros géants en arrière-plan de section. Outline via text-stroke,
   fallback transparence pour navigateurs anciens. Décoratif uniquement. */
.giant-num {
  font-family: var(--font-display);
  font-size: var(--display-xxl);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  /* Fallback navigateurs sans -webkit-text-stroke (Firefox <49 par ex.) */
  color: rgba(10, 31, 68, 0.05);
  /* Outline moderne */
  -webkit-text-stroke: 1px rgba(10, 31, 68, 0.6);
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 0;
}
.giant-num--light {
  color: rgba(250, 250, 247, 0.05);
  -webkit-text-stroke: 1px rgba(250, 250, 247, 0.5);
}
.giant-num--red {
  color: rgba(255, 59, 31, 0.05);
  -webkit-text-stroke: 1px rgba(255, 59, 31, 0.6);
}

/* Outline texte standalone (sera utilisé par le numéro 01 du Hero) */
.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1px var(--navy);
  -webkit-text-fill-color: transparent;
}

/* Chiffres alignés monospace-like — à appliquer aux compteurs et tableaux */
.tabular { font-variant-numeric: tabular-nums; }

/* Lignes brutalistes — épaisseurs 2px / 3px, navy ou rouge */
.brutal-rule {
  display: block;
  height: 2px;
  background: var(--line-strong);
  border: 0;
  margin: 0;
}
.brutal-rule--thick { height: 3px; }
.brutal-rule--red { background: var(--red); }
.brutal-rule--vertical {
  display: inline-block;
  width: 2px;
  height: 100%;
  min-height: 1.5rem;
  background: var(--line-strong);
}
.brutal-rule--vertical.brutal-rule--red { background: var(--red); }

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

p { line-height: 1.7; }

.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.lead--light { color: var(--cream); }

/* ==================== NAVIGATION ==================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding: 0.75rem 0;
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  display: inline-block;
}
/* Audit final — underline LFM retire (nav + footer) per directive Luc */
.brand-mark--lg { font-size: 1.75rem; }

.nav__menu {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav__menu a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__menu a:hover { color: var(--navy); }
/* C.6 — Underline nav rouge brutaliste 2px (etait 1px gold) */
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 200ms var(--ease);
}
.nav__menu a:hover::after,
.nav__menu a.active::after { width: 100%; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
/* Audit Gemini C4 — contraste FR/EN
   Inactive : slate-soft #6b6b6b sur cream = 4.83:1 PASS AA (texte normal)
   Active   : #6B5530 (gold tres fonce) sur cream = 6.49:1 PASS AA large marge
              + border-bottom rouge 2px pour distinguer visuellement active/inactive
              (cf etait gold-deep #a88a47 = 3.25:1 FAIL AA flag par Gemini) */
.lang-btn {
  padding: 0.3rem 0.5rem 0.45rem;
  color: var(--slate-soft);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 2px solid transparent;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active {
  color: #6B5530;
  font-weight: 600;
  border-bottom-color: var(--red);
}
.lang-divider { color: var(--line); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease);
}

/* ==================== HERO ==================== */

.hero {
  min-height: 100vh;
  padding: 8rem var(--gutter) 4rem;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(201, 169, 97, 0.08), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  /* B.3 — photo gauche, content droite plus large (asymétrie brutaliste) */
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__content {
  animation: fadeUp 1.2s var(--ease) 0.2s both;
  /* B.3 — débordement léger à droite, neutralisé en mobile via media query */
  margin-right: clamp(0px, -1vw, 0px); /* placeholder, override en >=1280 */
  /* D.3 — preserve-3d permet au <h1> de tilter sans s'aplatir */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red); /* B.3 — eyebrow en rouge brutaliste (large + gras = lisible) */
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__eyebrow .line {
  width: 48px;
  height: 2px; /* B.3 — épaisseur brutaliste */
  background: var(--red);
}

/* B.3 — Hero title XXL brutaliste */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--display-xxl);
  font-weight: 400;
  line-height: 0.85;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  /* D.3 — Transition fluide pour le parallax 3D applique en JS.
     Will-change retire dynamiquement apres quelques secondes (cf script.js). */
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* D.3 — prefers-reduced-motion : pas de tilt, listener JS non attache */
@media (prefers-reduced-motion: reduce) {
  .hero__title { transform: none !important; }
}
/* Audit final — Louis-Felix tient sur 1 ligne (etait wrap a 'x' sur 2e ligne).
   Le splitting Phase D produit des .hero__letter inline-block ; nowrap empeche
   le break entre lettres. Sur tres petit viewport, l'overflow-x:hidden du body
   tronque proprement. */
.hero__name { display: block; white-space: nowrap; }
/* Audit final Masson — diagnostic Gemini : Fraunces est charge sans variant
   ital (link Google Fonts a opsz,wght seulement, pas ital). Le browser
   produisait du faux-italique synthetique = lettres deformees ('a' ventru,
   's' etires, 'o' ovale allonge — proportions incoherentes).
   Fix : font-family Cormorant Garamond qui est charge avec son VRAI italique
   (ital,wght@1,400 dans le link). Glyphs italiques natifs = proportions coherentes. */
.hero__name--italic {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;          /* Cormorant italic charge UNIQUEMENT en 400 (cf link Google Fonts) */
  color: var(--navy);
  margin-left: -2vw;
}

/* D.1+D.2 — Lettres splitees du nom Hero. Animation d'entree brutaliste.
   Etat initial : cachees par clip-path (revele depuis le bas) + decalage 20px.
   Stagger global continu via --i (0..16) calcule en JS. */
.hero__letter {
  display: inline-block;
  transform-origin: center;
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  animation: letter-reveal 350ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 50ms) forwards;
}

@keyframes letter-reveal {
  to {
    clip-path: inset(0);
    transform: translateY(0);
  }
}

/* D.2 — prefers-reduced-motion : etat final direct, aucun stagger */
@media (prefers-reduced-motion: reduce) {
  .hero__letter {
    animation: none !important;
    clip-path: inset(0) !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* B.3 — sub-line Inter 16px brutaliste : grand vs petit */
.hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--body);
  font-weight: 400;
  font-style: normal;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  max-width: 38ch;
}

/* Audit Luc — tags en colonne sans separateurs rouges (etaient border-top/bottom 2px red) */
.hero__tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
}
.hero__tag {
  padding: 0.4rem 0;
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* B.5.0 — .hero__num-corner retire : Hero hors numerotation,
   le 01 commence sur la section About (cohérent avec l'ordre du nav) */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 0;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* C.6 — Sweep horizontal background fill via linear-gradient + background-position
   (technique sans pseudo-element, pas d'overflow:hidden requis) */
.btn--primary {
  background: linear-gradient(to right, var(--navy-deep) 50%, var(--navy) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--cream);
  border-color: var(--navy);
  transition: background-position 300ms var(--ease), border-color 300ms var(--ease);
}
.btn--primary:hover {
  background-position: 0 0;
  border-color: var(--navy-deep);
}

.btn--ghost {
  background: linear-gradient(to right, var(--navy) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--navy);
  border-color: var(--navy);
  transition: background-position 300ms var(--ease), color 300ms var(--ease);
}
.btn--ghost:hover {
  background-position: 0 0;
  color: var(--cream);
}

/* B.3 — variante brutaliste exclusive au CTA Hero "VOIR PORTFOLIO".
   N'affecte PAS .btn--primary qui reste utilisé partout ailleurs (downloads, submit form). */
.btn--primary--brutal {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2rem;
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--text-cream);
  border: 0;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.btn--primary--brutal::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform-origin: bottom center;
  transition: transform 0.3s var(--ease);
  /* C.4 — Pulse animation : battement de coeur calme. Stop on hover. */
  animation: pulse-cta-underline 1.8s ease-in-out infinite;
}
.btn--primary--brutal:hover::after {
  animation: none;
  opacity: 1;
}
.btn--primary--brutal:hover { background: var(--navy-deep); }
.btn--primary--brutal:hover::after { transform: scaleY(1.7); }
.btn--primary--brutal svg { transition: transform 0.3s var(--ease); }
.btn--primary--brutal:hover svg { transform: translateX(4px); }

/* B.8 — Variante brutalist sur fond fonce (CV section navy) :
   cream bg + navy text + underline rouge 3px. Meme principe que --brutal mais inverse. */
.btn--brutal-light {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2rem;
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--text-primary);
  border: 0;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.btn--brutal-light::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform-origin: bottom center;
  transition: transform 0.3s var(--ease);
  /* C.4 — Pulse animation identique au variant primary--brutal */
  animation: pulse-cta-underline 1.8s ease-in-out infinite;
}
.btn--brutal-light:hover::after {
  animation: none;
  opacity: 1;
}
.btn--brutal-light:hover { background: var(--cream-warm); }
.btn--brutal-light:hover::after { transform: scaleY(1.7); }
.btn--brutal-light svg { transition: transform 0.3s var(--ease); }
.btn--brutal-light:hover svg { transform: translateX(4px); }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn--gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--gold-outline:hover { background: var(--gold); color: var(--navy); }

/* Hero Portrait */
.hero__portrait {
  position: relative;
  animation: fadeUp 1.2s var(--ease) 0.5s both;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin-left: auto;
  overflow: hidden;
}
/* C.5 — Photo portrait : full color (pas de filter), zoom hover scale 1.03 / 400ms */
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 400ms var(--ease);
}
@media (hover: hover) {
  .portrait-frame:hover img { transform: scale(1.03); }
}

.portrait-accent {
  position: absolute;
  top: -20px; left: -20px;
  width: 80px; height: 80px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  pointer-events: none;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  pointer-events: none;
}

.portrait-meta {
  margin-top: 1.25rem;
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--slate-soft);
  letter-spacing: 0.05em;
}
.portrait-meta__label {
  color: var(--navy);
  font-weight: 500;
  font-style: normal;
  margin-right: 0.5rem;
}


/* ==================== STATS BAR ==================== */

/* B.4 — Stats bar amplifiée brutaliste */
.stats-bar {
  background: var(--cream-warm);
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}
.stats-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
/* B.4 — Séparateurs verticaux rouges 3px (au lieu gris 1px) */
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--red);
}
/* B.4 — Numbers en --display-xl, tabular-nums pour alignement parfait */
.stat__number {
  font-family: var(--font-display);
  font-size: var(--display-xl);
  font-weight: 300;
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.stat__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-style: italic;
  color: var(--gold-deep);    /* Audit lecture #3 : gold-deep (8.74:1) au lieu de rouge (3.41:1 fail AA) */
  margin-left: 0.1em;
  vertical-align: top;
  line-height: 1;
}
/* B.4 — Labels Inter 11px ultra-spacé (0.3em) */
.stat__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;       /* 11px exact */
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: 22ch;
}

/* ==================== SECTIONS ==================== */

.section {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* E.1 — Borders 3px brutalistes : compensation visuelle du sticky desactive (decision 4 Phase E).
   Sections sur fond cream/cream-warm : border-top 3px navy (contraste fort).
   Sections sur fond navy (TKD, CV) : pas de border — la transition de fond joue le role
   de separateur. Un trait cream/red sur navy a teste visuellement, mais a priori
   redondant avec le changement de fond.
   Hero : pas concerne (pas une section numerotee).
   .section--about : test optionnel d'accent rouge (a juger visuellement). */
.section--internships,
.section--work,
.section--achievements,
.section--contact {
  border-top: 3px solid var(--navy);
}
/* E.1 — Accent rouge optionnel sur la 1re section apres Hero pour marquer
   'le portfolio commence ici'. A juger visuellement — peut etre annule. */
.section--about {
  border-top: 3px solid var(--red);
}
/* E.1 — Section Assessment (fond cream-warm) : border egalement navy */
.section--assessment {
  border-top: 3px solid var(--navy);
}
/* E.1 — Sections sur fond navy (TKD, CV) : pas de border (transition cream→navy suffit) */

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--line-strong); /* B.2 brutalist 2px (était 1px gris) */
  position: relative;
  z-index: 1;
}
.section__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.section__title {
  /* B.2 — typo brutaliste, --display-xl */
  font-size: var(--display-xl);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* Audit Gemini C1 — Sous-titre 'Comprehensive Assessment — P.W. Sims 2026' */
.section__title-group { display: flex; flex-direction: column; gap: 0.5rem; }
.section__subtitle {
  font-family: var(--font-sans);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-top: 0.5rem;
  margin: 0;
}

.section__head--light { border-bottom-color: var(--cream); }
.section__head--light .section__title,
.section__head--light .section__num { color: var(--cream); }
.section__head--light .section__subtitle { color: var(--cream); opacity: 0.7; }

/* Numéro géant en arrière-plan de section — B.2 */
.section__num-giant {
  position: absolute;
  top: clamp(1rem, 2vw, 2.5rem);
  right: var(--gutter);
  font-family: var(--font-display);
  font-size: var(--display-xxl);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(10, 31, 68, 0.05);
  -webkit-text-stroke: 1px rgba(10, 31, 68, 0.55);
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section__num-giant--left {
  right: auto;
  left: var(--gutter);
}
.section__num-giant--light {
  color: rgba(250, 250, 247, 0.05);
  -webkit-text-stroke: 1px rgba(250, 250, 247, 0.4);
}

/* Le contenu de section reste au-dessus du numéro géant */
.section > .section__head,
.section > .section__lead,
.section > .pillars,
.section > .about__intro,
.section > .about__deep,
.section > .internship,
.section > .checklist,
.section > .reading-panel,
.section > .assessment-cta,
.section > .work-grid,
.section > .work-cta,
.section > .achievements,
.section > .cv__cta,
.section > .contact-wrap,
.section > .contact__lead {
  position: relative;
  z-index: 1;
}

.section__lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  max-width: 50ch;
  margin-bottom: 4rem;
}

/* ==================== ABOUT ==================== */

.section--about { background: var(--cream); }

.about__intro { max-width: 65ch; margin-bottom: 5rem; }
.about__intro .lead { margin-bottom: 1.5rem; }
.about__text { font-size: 1.0625rem; line-height: 1.75; color: var(--slate); max-width: 65ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  margin-bottom: 5rem;
}
/* C.6 — Pillars : translateY + ombre noire 4px brutaliste au hover */
.pillar {
  background: var(--cream);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.4s var(--ease),
              transform 250ms var(--ease),
              box-shadow 250ms var(--ease);
}
@media (hover: hover) {
  .pillar:hover {
    background: var(--cream-warm);
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 0 var(--black);
    z-index: 2;
  }
}
.pillar__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.pillar__title { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 500; }
.pillar p { font-size: 0.95rem; line-height: 1.7; color: var(--slate); }

.about__deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.about__deep h3 { font-size: 1.5rem; margin-bottom: 1.25rem; font-weight: 500; }
.about__deep p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; color: var(--slate); max-width: 65ch; }

/* ==================== INTERNSHIPS ==================== */

.section--internships { background: var(--cream); }

.internship {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.internship:last-child { border-bottom: 1px solid var(--line); }

.internship__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.internship__year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--navy);
}
.internship__status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 0.5rem 0.85rem;
  background: var(--cream-warm);
  color: var(--text-primary);
  border: 2px solid var(--line-strong);
  text-transform: uppercase;
}
/* B.5 — pastille EN COURS Stage II : rouge brutaliste (etait gold) */
.status--current {
  background: var(--red);
  color: var(--text-cream);
  border-color: var(--red);
}

.internship__company {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.internship__role {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.internship__detail {
  font-size: 0.875rem;
  color: var(--slate-soft);
  margin-bottom: 1.75rem;
}
.internship__detail .dot { color: var(--gold); margin: 0 0.5rem; }

.internship__bullets { margin-bottom: 2rem; }
.internship__bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 65ch;
}
.internship__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* B.5 + Audit lecture #2 : citation Valerie Cote en --body-lg italique
   (etait --display-md, trop massif sur mobile). Border-left rouge 3px conserve. */
.internship__quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--cream-warm);
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-style: italic;
  max-width: 65ch;
}
.internship__quote p {
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.internship__quote cite {
  display: block;
  font-size: var(--caption);
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--slate-soft);
}

/* ==================== WORK SAMPLES ==================== */

.section--work { background: var(--cream); }

/* B.7 — Travaux bento brutaliste hybride
   4 colonnes desktop avec :
   - Pitou-Minou en 2x2 (.work-card--bento-hero, mise en avant)
   - SAGE Phase 2 en 2x1 (.work-card--bento-wide)
   - 6 autres cards en 1x1 reguliere
   Layout auto-place naturellement dans l'ordre HTML.
   Sur mobile <768px : 1 colonne single. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 2px;
  background: var(--line);
  margin-bottom: 4rem;
}

.work-card {
  background: var(--cream);
  padding: 2.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  transition: transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              background 0.25s var(--ease);
  min-height: 220px;
  position: relative;
}
/* B.7 — Hover brutalist : translation 4px + ombre noire 8x8 epaisse */
.work-card:hover {
  background: var(--cream-warm);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 0 var(--black);
  z-index: 2;
}

/* B.7 — Variants bento */
.work-card--bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  /* Amplification visuelle pour remplir 2x2 sans vide demesure */
  padding: clamp(2.5rem, 4vw, 4rem);
}
.work-card--bento-hero .work-card__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.work-card--bento-hero .work-card__body p {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
}
.work-card--bento-hero .work-card__category {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
}

.work-card--bento-wide {
  grid-column: span 2;
}
.work-card--bento-wide .work-card__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.work-card--featured { background: var(--cream-warm); }
.work-card--featured:hover { background: #f0ead8; }

/* Audit Luc 11 mai — Fix C : ameliorer la lisibilite Pitou-Minou.
   Specificite augmentee via .work-card.work-card--gold pour battre
   la regle generique .work-card p (slate) qui venait apres dans le CSS. */
.work-card.work-card--gold { background: var(--navy); }
.work-card.work-card--gold .work-card__num { color: var(--gold-soft); }
.work-card.work-card--gold .work-card__category { color: var(--gold-soft); }
.work-card.work-card--gold .work-card__title { color: var(--cream); }
.work-card.work-card--gold p { color: var(--cream); }
.work-card.work-card--gold:hover { background: var(--navy-deep); }
.work-card.work-card--gold .work-card__download {
  color: var(--cream);
  border-top-color: rgba(250, 250, 247, 0.25);
}
.work-card.work-card--gold .work-card__download:hover {
  color: var(--gold-soft);
}

.work-card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
}
.work-card__category {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.work-card__title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.work-card p { font-size: 0.9rem; line-height: 1.65; color: var(--slate); }

.work-card__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  width: fit-content;
  transition: gap 0.3s var(--ease);
}
.work-card__download::after {
  content: '↓';
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}
.work-card__download:hover { gap: 0.85rem; }
.work-card__download:hover::after { transform: translateY(2px); }

.work-cta {
  background: var(--navy);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.work-cta::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15), transparent 70%);
  pointer-events: none;
}
.work-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.work-cta h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.work-cta p {
  color: rgba(250, 250, 247, 0.75);
  font-size: 1rem;
}
.work-cta .btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.work-cta .btn--primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* ==================== EVALUATION CARDS (within Stages) ==================== */

.evaluation-card {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}
.evaluation-card--pending {
  background: var(--cream-warm);
  border-left-color: var(--slate-soft);
  opacity: 0.95;
}
.evaluation-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.evaluation-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.evaluation-card__status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--slate);
}
.evaluation-card__status--gold { color: var(--gold-deep); font-weight: 500; }
.evaluation-card__body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 1rem;
}
.evaluation-card--pending .evaluation-card__body { margin-bottom: 0; }
.evaluation-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.25rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.evaluation-card__cta:hover { gap: 0.75rem; color: var(--gold-deep); }

/* ==================== ASSESSMENT SECTION ==================== */

.section--assessment { background: var(--cream-warm); }

/* B.6 — Override titre Assessment sur mobile : "Comprehensive Assessment" (22 chars)
   debordait a 375px sous --display-xl (min 3.5rem = 56px). Re-clamp specifique. */
@media (max-width: 600px) {
  .section--assessment .section__title {
    font-size: clamp(2.25rem, 9vw, 4rem);
  }
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  margin-bottom: 5rem;
  border: 1px solid var(--line);
}
.checklist__item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem;
  background: var(--cream);
  transition: background 0.3s var(--ease);
}
.checklist__item:hover { background: #fff; }

/* Audit lecture #4 : icones validees navy plein + cream (15.5:1)
   au lieu de gold sur cream-warm (peu contraste). Pending reste rouge dashed. */
.checklist__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--text-primary);
  color: var(--text-cream);
  flex-shrink: 0;
}
/* B.6 — status pending : icône passe en rouge brutaliste (était slate-soft gris) */
.checklist__item--pending .checklist__icon {
  background: transparent;
  border: 2px dashed var(--red);
  color: var(--red);
}

.checklist__content { min-width: 0; }
.checklist__title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.checklist__content p {
  font-size: 0.85rem;
  color: var(--slate-soft);
  line-height: 1.55;
}

.checklist__cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  align-self: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--gold);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.checklist__cta:hover {
  background: var(--gold);
  color: var(--navy);
}
/* B.6 — CTA muted (Stage II "15 mai") : passe en rouge — même règle 4.56:1 OK sur cream
   pour bouton large bold (texte 12px+ uppercase letter-spaced gras compte comme texte large) */
.checklist__cta--muted {
  border-color: var(--red);
  color: var(--red);
  cursor: default;
}
.checklist__cta--muted:hover {
  background: transparent;
  color: var(--red);
}

/* ==================== READING PANELS ==================== */

.reading-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  scroll-margin-top: 6rem;
}

.reading-panel__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.25rem 2.25rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.reading-panel__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.reading-panel__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}
.reading-panel__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--slate);
  max-width: 60ch;
  line-height: 1.45;
}

.reading-panel__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  align-self: start;
}
.reading-panel__download:hover {
  background: var(--navy);
  color: var(--cream);
}

.reading-panel__details { padding: 0; }
.reading-panel__details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.reading-panel__details > summary::-webkit-details-marker { display: none; }
.reading-panel__details > summary:hover {
  background: var(--cream-warm);
  color: var(--navy);
}
.reading-panel__chevron {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
  display: inline-block;
}
.reading-panel__details[open] > summary { border-bottom: 1px solid var(--line); }
.reading-panel__details[open] .reading-panel__chevron { transform: rotate(45deg); }

.reading-panel__prose {
  padding: 2rem 2.25rem 2.5rem;
  max-width: 70ch;
}
.reading-panel__prose--inline { padding-top: 2rem; }
.reading-panel__prose h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold-deep);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}
.reading-panel__prose h4:first-child { margin-top: 0; }
.reading-panel__prose p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 1rem;
}
.reading-panel__prose p:last-child { margin-bottom: 0; }

/* Assessment CTA (full portfolio download) */
.assessment-cta {
  margin-top: 4rem;
  background: var(--navy);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.assessment-cta::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15), transparent 70%);
  pointer-events: none;
}
.assessment-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.assessment-cta h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.assessment-cta p {
  color: rgba(250, 250, 247, 0.75);
  font-size: 1rem;
}

/* ==================== TAEKWON-DO ==================== */

.section--taekwondo {
  background: var(--navy);
  color: var(--cream);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.section--taekwondo::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.08), transparent 60%);
  pointer-events: none;
}
.section--taekwondo .section__head,
.section--taekwondo .tkd__intro,
.section--taekwondo .tkd__main,
.section--taekwondo .tkd__grid,
.section--taekwondo .tkd__timeline {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section--taekwondo .section__head { padding-top: clamp(5rem, 10vw, 9rem); }

.tkd__intro { margin-bottom: 5rem; position: relative; z-index: 2; }
/* B.8 — Citation TKD amplifiee XXL editorial brutaliste */
.tkd__quote {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 22ch;
  position: relative;
}
.quote-mark {
  font-size: 4em;
  color: var(--gold);
  position: absolute;
  top: -0.4em;
  left: -0.5em;
  font-style: normal;
  line-height: 1;
  opacity: 0.6;
}

.tkd__main {
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.tkd__main-text {
  max-width: 70ch;
}
.tkd__main h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.tkd__main p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(250, 250, 247, 0.85);
}

.tkd__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* B.8 — Bordure rouge brutaliste 2px sur les photos TKD */
.tkd__photo {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--red);
}
/* Audit lecture #5 : bordure reduite a 1px sur mobile (mange moins de largeur photo) */
@media (max-width: 767px) {
  .tkd__photo { border-width: 1px; }
}
/* C.5 — Photos TKD : zoom hover scale 1.03 / 400ms (etait 1.04 / 1.2s) */
.tkd__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms var(--ease);
  display: block;
}
@media (hover: hover) {
  .tkd__photo:hover img { transform: scale(1.03); }
}

/* Two portrait photos side by side, both 4:5 ratio */
.tkd__photo--medal {
  aspect-ratio: 4/5;
}
.tkd__photo--team {
  aspect-ratio: 4/5;
}

.tkd__photo-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: linear-gradient(to top, rgba(6, 19, 48, 0.85) 0%, transparent 100%);
  padding: 1.5rem 1.25rem 0.5rem;
  margin: -1.25rem;
  font-size: 0.875rem;
  color: var(--cream);
}
.caption-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

.tkd__timeline {
  padding-bottom: clamp(5rem, 10vw, 9rem);
  position: relative;
  z-index: 2;
}
.tkd__timeline > h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-light);
}

.timeline { display: grid; gap: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
  transition: padding-left 0.3s var(--ease);
}
.timeline__item:hover { padding-left: 0.75rem; }
.timeline__item:last-child { border-bottom: none; }

.timeline__year {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.timeline__body h4 {
  font-size: 1.25rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.timeline__body p {
  font-size: 0.95rem;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 0.5rem;
}
.timeline__note {
  display: inline-block;
  font-size: 0.85rem;
  color: rgba(250, 250, 247, 0.6);
  font-style: italic;
}
.timeline__note--gold { color: var(--gold); font-weight: 500; }
.timeline__item--highlight .timeline__year { color: var(--gold-soft); }
.timeline__item--upcoming { opacity: 0.6; }
.timeline__item--upcoming .timeline__year { color: rgba(201, 169, 97, 0.5); }

/* ==================== ACHIEVEMENTS ==================== */

.section--achievements { background: var(--cream); }

.achievements {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.achievement-col {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
}
.achievement-col:last-child { border-right: none; }

/* B.8 — Titres sous-categories Realisations amplifies (--display-md, brutaliste) */
.achievement-col h3 {
  font-family: var(--font-display);
  font-size: var(--display-md);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--line-strong);
  line-height: 1.05;
}

.achievement-col ul li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.achievement-col ul li:last-child { border-bottom: none; }

.ach__year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}
.achievement-col li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
/* Audit Luc 11 mai — Fix D : '1er Prix — « Propulse ton idée »' sur 1 ligne
   Sur mobile <600px : retour au wrap normal (NBSP de Bug 4 garde le » colle) */
@media (min-width: 600px) {
  .achievement-col--featured li strong {
    white-space: nowrap;
  }
}
.achievement-col li p {
  font-size: 0.875rem;
  color: var(--slate-soft);
  line-height: 1.5;
}

.achievement-col--featured {
  background: var(--cream-warm);
  border-right-color: var(--line);
}
.achievement-photo {
  margin-bottom: 1.5rem;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.achievement-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.4;
}
/* C.5 — Photo Propulse award : zoom hover scale 1.03 / 400ms (etait 1.05 / 1.2s) */
.achievement-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms var(--ease);
}
@media (hover: hover) {
  .achievement-col--featured:hover .achievement-photo img { transform: scale(1.03); }
}

/* ==================== CV ==================== */

.section--cv {
  background: var(--navy);
  color: var(--cream);
  max-width: none;
  margin: 0;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  overflow: hidden;
}
.section--cv > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.section--cv::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40%; height: 100%;
  background: radial-gradient(ellipse at bottom left, rgba(201, 169, 97, 0.1), transparent 60%);
  pointer-events: none;
}

.cv__cta {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.cv__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==================== CONTACT ==================== */

.section--contact { background: var(--cream); }

.contact__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  max-width: 50ch;
  margin-bottom: 4rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--cream-warm);
  padding: 2.5rem;
  border: 1px solid var(--line);
}

.hidden-field { position: absolute; left: -10000px; visibility: hidden; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* B.8 — Labels uppercase ultra-spaced (0.3em au lieu 0.2em) */
.form-label {
  font-size: var(--caption);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* B.8 — Bordures noires brutalistes 2px (etaient 1px line gris) */
.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.95rem 1.1rem;
  border: 2px solid var(--line-strong);
  background: var(--cream);
  color: var(--text-primary);
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
}

/* B.8 — submit avec variant brutalist : largeur full + centrage */
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-alt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-alt h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.contact-card-mini {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.contact-card-mini:not(.contact-card-mini--static):hover {
  background: var(--cream);
  border-color: var(--gold);
}

.contact-card-mini__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

/* C.6 — Underline rouge dessine sur les valeurs des contact cards */
.contact-card-mini__value {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
}
.contact-card-mini__value::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 200ms var(--ease);
}
@media (hover: hover) {
  .contact-card-mini:not(.contact-card-mini--static):hover .contact-card-mini__value::after {
    width: 100%;
  }
}

.contact-card-mini svg {
  color: var(--gold);
  opacity: 0.5;
  transition: all 0.3s var(--ease);
}

.contact-card-mini:not(.contact-card-mini--static):hover svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ==================== FOOTER ==================== */

/* B.8 — Footer fond noir brutaliste, brand mark rouge */
.footer {
  background: var(--black);
  color: var(--text-cream);
  padding: 3rem var(--gutter);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer__brand .brand-mark { color: var(--red); }
.footer__brand p { font-size: 0.875rem; line-height: 1.5; }
.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--cream);
}
.footer__brand p span { color: rgba(250, 250, 247, 0.6); font-size: 0.85rem; }
.footer__copy {
  font-size: 0.8rem;
  color: rgba(250, 250, 247, 0.5);
  letter-spacing: 0.05em;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* C.4 — Pulse CTA underlines : battement de coeur calme.
   Hooks prefers-reduced-motion deja en place via Phase A.3
   (animation-duration: 0.01ms et iteration-count: 1 forcent l'arret). */
@keyframes pulse-cta-underline {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  /* Hero : 1024px exclu — passe en 50/50 tablet ci-dessous, ou 1col mobile encore plus bas */
  .pillars { grid-template-columns: 1fr; }
  .achievements { grid-template-columns: 1fr; }
  .achievement-col { border-right: none; border-bottom: 1px solid var(--line); }
  .achievement-col:last-child { border-bottom: none; }
  /* .work-grid : geree par les breakpoints B.7 ci-dessous */
  .about__deep { grid-template-columns: 1fr; }
  .tkd__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tkd__photo--medal { aspect-ratio: 4/5; }
  .tkd__photo--team { aspect-ratio: 4/5; }
  .checklist { grid-template-columns: 1fr; }
  .reading-panel__head { grid-template-columns: 1fr; gap: 1.25rem; }
  .reading-panel__download { align-self: start; }
}

/* B.7 — Travaux bento responsive (3 paliers) */
@media (min-width: 768px) and (max-width: 1279px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  /* En 2 cols, Pitou et SAGE prennent toute la largeur.
     Pitou garde span 2 rows (effet vertical), SAGE reste 1 row. */
  .work-card--bento-hero {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
  .work-card--bento-wide {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}
@media (max-width: 767px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card--bento-hero,
  .work-card--bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  /* Hover ombre reduite sur mobile (mois agressive) */
  .work-card:hover {
    transform: none;
    box-shadow: 4px 4px 0 0 var(--black);
  }
}

/* B.3 — Hero responsive en 3 paliers brutalistes mais propres */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero__title { font-size: clamp(3rem, 8vw, 6rem); }
  .hero__name--italic { margin-left: 0; }
}
@media (max-width: 767px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__portrait { max-width: 360px; margin: 0 auto; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 4.25rem); }
  .hero__name--italic { margin-left: 0; }
}

@media (max-width: 900px) {
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .stat:nth-child(2)::after { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__menu { display: none; }
  .nav__lang { display: none; }
  .nav__toggle { display: flex; }
  .nav.menu-open .nav__menu {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem var(--gutter);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav__lang {
    display: flex;
    position: fixed;
    top: 64px; right: var(--gutter);
    z-index: 101;
    background: var(--cream);
    padding: 0.5rem 0;
  }
  .internship { grid-template-columns: 1fr; gap: 1.5rem; }
  .internship__meta { flex-direction: row; align-items: center; gap: 1.5rem; }
  .internship__year { font-size: 2rem; }
  .timeline__item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .timeline__year { font-size: 1.75rem; }
  .work-cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; text-align: left; }
  /* .hero__title font-size géré par les nouveaux breakpoints B.3 ci-dessus */
  .section__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: 6rem; }
  .hero__tags { gap: 0.5rem; font-size: 0.8rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .work-card { padding: 1.75rem; min-height: 240px; }
  .pillar { padding: 2rem 1.5rem; }
  .stats-bar__inner { grid-template-columns: 1fr; gap: 2rem; }
  .stat::after { display: none !important; }
  .contact-form { padding: 1.75rem; }
  .checklist__item { grid-template-columns: 28px 1fr; padding: 1.4rem 1.25rem; gap: 0.9rem; }
  .checklist__cta { grid-column: 2; justify-self: start; margin-top: 0.5rem; }
  .reading-panel__head { padding: 1.5rem 1.5rem 1.25rem; }
  .reading-panel__details > summary { padding: 1rem 1.5rem; }
  .reading-panel__prose { padding: 1.5rem 1.5rem 2rem; }
  .assessment-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   V5 PHASE A.3 — REDUCED MOTION (extended)
   Hook les classes futures (curseur custom, marquee, parallax)
   pour qu'elles dégradent proprement quand elles arriveront.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }

  /* V5 effect hooks pour reduced-motion */
  .marquee,
  .marquee__track     { animation: none !important; transform: none !important; }
  .parallax-num       { transform: none !important; }
}
