/* =====================================================================
   donovanmercier.fr — Feuille de style principale
   Design 2026 : parallaxe multi-couches, thème clair/sombre, zéro framework.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Jetons de design
   --------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Palette claire — papier neutre, encre graphite, acier en accent */
  --paper:        #f4f4f2;
  --paper-2:      #fbfbfa;
  --paper-3:      #e9e9e6;
  --ink:          #17181a;
  --ink-soft:     #4b4d51;
  --ink-mute:     #85878c;
  --line:         #dadad6;
  --line-soft:    #e6e6e2;

  --accent:       #3c4650;   /* graphite */
  --accent-2:     #5f7688;   /* acier */
  --accent-3:     #9aa1a8;   /* gris clair */
  --accent-ink:   #ffffff;
  --accent-wash:  rgba(60, 70, 80, .08);
  --accent-2-wash:rgba(95, 118, 136, .10);
  --danger:       #33363b;
  --danger-wash:  rgba(51, 54, 59, .07);

  --glass:        rgba(251, 251, 250, .74);
  --glass-line:   rgba(23, 24, 26, .09);
  --shadow-sm:    0 1px 2px rgba(23, 24, 26, .06), 0 2px 8px rgba(23, 24, 26, .04);
  --shadow-md:    0 4px 12px rgba(23, 24, 26, .07), 0 16px 40px rgba(23, 24, 26, .07);
  --shadow-lg:    0 8px 24px rgba(23, 24, 26, .10), 0 32px 72px rgba(23, 24, 26, .12);

  --grain-opacity: .035;
  --blob-opacity:  1;

  /* Typographie */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;

  /* Rythme */
  --step--1: clamp(.82rem, .79rem + .15vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + .75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
  --step-4:  clamp(2.3rem, 1.7rem + 3vw, 4.4rem);
  --step-5:  clamp(3rem, 1.9rem + 5.4vw, 7rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --wrap:   min(1240px, 100% - var(--gutter) * 2);
  --radius:    18px;
  --radius-lg: 28px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 72px;
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --paper:        #101214;
  --paper-2:      #171a1d;
  --paper-3:      #1e2226;
  --ink:          #edeeef;
  --ink-soft:     #b6b9bd;
  --ink-mute:     #82868b;
  --line:         #2a2e33;
  --line-soft:    #23272b;

  --accent:       #c6d0da;
  --accent-2:     #8fa8bd;
  --accent-3:     #a8adb3;
  --accent-ink:   #14171a;
  --accent-wash:  rgba(198, 208, 218, .12);
  --accent-2-wash:rgba(143, 168, 189, .12);
  --danger:       #e2e5e8;
  --danger-wash:  rgba(226, 229, 232, .10);

  --glass:        rgba(23, 26, 29, .72);
  --glass-line:   rgba(237, 238, 239, .09);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md:    0 4px 14px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .4);
  --shadow-lg:    0 10px 30px rgba(0, 0, 0, .5), 0 36px 80px rgba(0, 0, 0, .55);

  --grain-opacity: .05;
  --blob-opacity:  .55;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #101214;  --paper-2: #171a1d; --paper-3: #1e2226;
    --ink: #edeeef;    --ink-soft: #b6b9bd; --ink-mute: #82868b;
    --line: #2a2e33;   --line-soft: #23272b;
    --accent: #c6d0da; --accent-2: #8fa8bd; --accent-3: #a8adb3;
    --accent-ink: #14171a;
    --accent-wash: rgba(198, 208, 218, .12);
    --accent-2-wash: rgba(143, 168, 189, .12);
    --danger: #e2e5e8; --danger-wash: rgba(226, 229, 232, .10);
    --glass: rgba(23, 26, 29, .72);
    --glass-line: rgba(237, 238, 239, .09);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
    --shadow-md: 0 4px 14px rgba(0,0,0,.45), 0 18px 44px rgba(0,0,0,.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.5), 0 36px 80px rgba(0,0,0,.55);
    --grain-opacity: .05;
    --blob-opacity: .55;
  }
}

/* ---------------------------------------------------------------------
   2. Réinitialisation
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------------------------------------------------------------------
   3. Décors de fond (parallaxe passive)
   --------------------------------------------------------------------- */
.decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.decor__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
  transition: opacity .6s var(--ease);
}

.decor__blob--1 { width: 46vw; height: 46vw; top: -12vw;  left: -10vw;  background-color: var(--accent);   opacity: calc(var(--blob-opacity) * .16); }
.decor__blob--2 { width: 38vw; height: 38vw; top: 40vh;   right: -12vw; background-color: var(--accent-2); opacity: calc(var(--blob-opacity) * .20); }
.decor__blob--3 { width: 30vw; height: 30vw; bottom: -8vw; left: 25vw;  background-color: var(--accent-3); opacity: calc(var(--blob-opacity) * .22); }

.decor__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 75%);
  opacity: .5;
  will-change: transform;
}

.decor__grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------------
   4. Utilitaires
   --------------------------------------------------------------------- */
.wrap { width: var(--wrap); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .34em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: var(--step--1);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip--accent { border-color: transparent; background: var(--accent-wash); color: var(--accent); font-weight: 550; }
.chip--live   { border-color: transparent; background: var(--accent-2-wash); color: var(--accent-2); font-weight: 550; }

.chip--live::before {
  content: ''; width: .5em; height: .5em; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70%  { box-shadow: 0 0 0 .55em transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 550;
  font-size: var(--step-0);
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }

.btn--ghost { border-color: var(--line); background: var(--paper-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--soft { background: var(--accent-wash); color: var(--accent); }
.btn--soft:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.btn--sm { padding: .55em 1.05em; font-size: var(--step--1); }

.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon--shift { transform: translateX(3px); }

/* Cartes -------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { border-color: var(--line); box-shadow: var(--shadow-md); }

/* ---------------------------------------------------------------------
   5. En-tête
   --------------------------------------------------------------------- */
.progress {
  position: fixed; inset: 0 auto auto 0; z-index: 120;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  will-change: transform;
}

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: var(--glass);
  border-bottom-color: var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}

.header__inner { display: flex; align-items: center; gap: 1rem; width: var(--wrap); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: -.04em;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: 1.02rem; }
.brand__role { display: block; font-size: .72rem; color: var(--ink-mute); font-weight: 400; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .93rem;
  color: var(--ink-soft);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--accent-wash); }
.nav a.is-active { color: var(--accent); font-weight: 550; }
.nav a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: .18rem;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: currentColor;
}

.header__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  color: var(--ink-soft);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.theme-toggle .icon { transition: transform .5s var(--ease), opacity .3s var(--ease); }
.theme-toggle .icon--moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon--sun  { display: none; }
:root[data-theme='dark'] .theme-toggle .icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon--sun  { display: none; }
  :root:not([data-theme='light']) .theme-toggle .icon--moon { display: block; }
  :root[data-theme='dark'] .theme-toggle .icon--sun { display: none; }
}

.burger { display: none; }

/* Menu mobile --------------------------------------------------------- */
.drawer {
  position: fixed; inset: 0; z-index: 130;
  display: grid; place-items: center;
  background: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__close { position: absolute; top: 16px; right: var(--gutter); }
.drawer nav { display: grid; gap: .3rem; text-align: center; }
.drawer nav a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -.03em;
  padding: .3em .6em;
  color: var(--ink);
  opacity: 0; transform: translateY(14px);
  transition: color .3s, opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer nav a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------
   6. Structure des sections
   --------------------------------------------------------------------- */
main { position: relative; z-index: 1; }

.section { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); position: relative; }
.section--tint { background: color-mix(in srgb, var(--paper-3) 55%, transparent); }
.section--tint::before,
.section--tint::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section--tint::before { top: 0; }
.section--tint::after  { bottom: 0; }

.section__head { max-width: 58ch; margin-bottom: clamp(2.2rem, 1.5rem + 2.5vw, 4rem); }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section__eyebrow::before {
  content: ''; width: 28px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.section__title { font-size: var(--step-3); margin-bottom: .7rem; }
.section__lead  { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; font-weight: 350; }

/* ---------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.hero__status {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .45em 1em .45em .75em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.hero__status .dot {
  width: .55em; height: .55em; border-radius: 50%; background: var(--accent-2);
  animation: pulse 2.4s var(--ease-in-out) infinite; color: var(--accent-2);
}

.hero__name {
  font-size: var(--step-5);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .92;
  margin-bottom: 1rem;
}
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line > span {
  display: block;
  transform: translateY(102%);
  animation: riseIn 1.05s var(--ease) forwards;
}
.hero__name .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes riseIn { to { transform: none; } }

.hero__name em {
  font-style: normal;
  background: linear-gradient(115deg, var(--ink) 5%, var(--accent) 45%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: 200% center; } }

.hero__typed {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 450;
  color: var(--ink-soft);
  min-height: 1.4em;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}
.hero__typed b { font-weight: 600; color: var(--ink); }
.hero__caret {
  display: inline-block; width: 2px; height: .95em;
  margin-left: .1em; vertical-align: -.1em;
  background: var(--accent);
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 48ch;
  font-weight: 350;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--ink-mute); font-size: var(--step--1); }
.hero__meta span { display: inline-flex; align-items: center; gap: .45em; }

/* Portrait ------------------------------------------------------------ */
.hero__figure { position: relative; justify-self: center; width: min(100%, 460px); }

.hero__halo {
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  filter: blur(55px);
  opacity: .30;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.hero__ring {
  position: absolute; inset: 2%;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: spin 60s linear infinite reverse;
}

.hero__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  width: 100%;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, .22));
  will-change: transform;
}

.hero__badge {
  position: absolute;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: var(--step--1);
  will-change: transform;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; }
.hero__badge small  { display: block; color: var(--ink-mute); line-height: 1.35; margin-top: .15rem; }
/* Placés dans les zones vides de l'illustration : jamais sur le visage ni le corps. */
.hero__badge--1 { top: 4%;  left: 64%; width: 225px; }
.hero__badge--2 { top: 60%; right: 70%; white-space: nowrap; }
.hero__figure { z-index: 1; }
.hero__badge .icon { color: var(--accent); width: 1.5em; height: 1.5em; }

/* Chiffres ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__item { background: var(--paper); padding: 1.5rem 1.4rem; transition: background-color .4s var(--ease); }
.stats__item:hover { background: var(--paper-2); }
.stats__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 650;
  letter-spacing: -.04em;
  color: var(--accent);
  line-height: 1;
}
.stats__value small { font-size: .45em; font-weight: 500; margin-left: .15em; color: var(--ink-mute); }
.stats__label { font-size: var(--step--1); color: var(--ink-mute); margin-top: .5rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: grid; justify-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
  animation: bob 2.6s var(--ease-in-out) infinite;
}
@keyframes bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% 8px; } }

/* ---------------------------------------------------------------------
   8. À propos
   --------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: start;
}
.about__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.about__intro .section__title { font-size: var(--step-4); margin-bottom: 1.2rem; }

.about__quote {
  font-family: var(--font-display);
  font-size: var(--step-1); font-weight: 450; line-height: 1.45;
  letter-spacing: -.015em; color: var(--ink);
  padding-left: 1.1rem; border-left: 3px solid var(--accent-2);
  margin-bottom: 1.8rem;
}

.about__card {
  display: grid; gap: 0;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--paper-2); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.about__row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  padding: .85rem 1.1rem; border-top: 1px solid var(--line-soft);
  font-size: var(--step--1);
}
.about__row:first-child { border-top: 0; }
.about__row dt { display: flex; align-items: center; gap: .5rem; color: var(--ink-mute); }
.about__row dt .icon { width: 1.05em; height: 1.05em; color: var(--accent-2); }
.about__row dd { margin: 0; color: var(--ink); font-weight: 550; }

.about__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.about__text { font-size: var(--step-0); padding-top: .4rem; }
.about__text p:first-child {
  font-size: var(--step-1); line-height: 1.55; color: var(--ink); font-weight: 400;
}
.about__text p:last-child {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  padding-top: 1rem; border-top: 1px solid var(--line-soft);
}

.qualites--about { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .qualites--about { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .qualites--about { grid-template-columns: 1fr; } }

.meter { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  width: 0;
  transition: width 1.2s var(--ease);
}

.prose { font-size: var(--step-0); color: var(--ink-soft); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead { font-size: var(--step-1); color: var(--ink); font-weight: 350; }

.qualites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.qualite { padding: 1.3rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line-soft); transition: transform .45s var(--ease), border-color .45s var(--ease); }
.qualite:hover { transform: translateY(-4px); border-color: var(--accent); }
.qualite__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-wash); color: var(--accent);
  margin-bottom: .9rem;
}
.qualite h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.qualite p  { font-size: var(--step--1); color: var(--ink-mute); line-height: 1.55; }

/* ---------------------------------------------------------------------
   8 bis. Univers : cartes de l'accueil et page dédiée
   --------------------------------------------------------------------- */
.universes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.3rem;
}

.universe {
  position: relative;
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.8rem 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
  will-change: transform;
}
.universe::after {
  content: ''; position: absolute; right: -30%; bottom: -45%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-2-wash); filter: blur(30px);
  opacity: 0; transition: opacity .6s var(--ease);
}
.universe:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.universe:hover::after { opacity: 1; }

.universe__index {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--ink-mute);
}
.universe__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-wash); color: var(--accent);
  margin-bottom: .3rem;
}
.universe__icon .icon { width: 1.6rem; height: 1.6rem; }
.universe__title { font-size: var(--step-2); }
.universe__text  { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

.universe__latest {
  font-size: .9rem; font-weight: 550; color: var(--ink);
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line-soft);
}
.universe__latest small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .15rem;
}

.universe__stats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .4rem; }
.universe__stats li {
  font-size: .74rem; padding: .25em .65em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}

.universe__cta {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .92rem; color: var(--accent);
  margin-top: .3rem; position: relative; z-index: 1;
}
.universe:hover .icon--shift { transform: translateX(4px); }
.universe__cta .icon { transition: transform .35s var(--ease); }

.universes--compact .universe { padding: 1.4rem; }
.universes--compact .universe__title { font-size: var(--step-1); }
.universe--contact { border-style: dashed; }

/* Hero d'une page d'univers */
.uhero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  overflow: hidden;
}
.uhero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem; align-items: center;
}
.uhero__grid > div { min-width: 0; }
.uhero__title {
  font-size: var(--step-4); font-weight: 650; letter-spacing: -.04em;
  line-height: 1; margin-bottom: 1.2rem;
}
.uhero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.uhero__title .line > span { display: block; transform: translateY(102%); animation: riseIn 1s var(--ease) forwards; }
.uhero__lead { font-size: var(--step-1); color: var(--ink-soft); font-weight: 350; max-width: 58ch; }
.uhero__mark {
  display: grid; place-items: center;
  width: clamp(140px, 18vw, 240px); aspect-ratio: 1;
  border-radius: 36%;
  background: var(--accent-wash);
  border: 1px solid var(--line-soft);
  color: var(--accent);
}
.uhero__icon { width: 45%; height: 45%; stroke-width: 1.2; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--step--1); color: var(--ink-mute); margin-bottom: 2rem;
}
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-soft); }

.subnav {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.subnav a {
  padding: .45em 1em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: var(--step--1); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

.nav a { white-space: nowrap; }
.nav a[data-univers] { color: var(--ink); }
@media (max-width: 1280px) { .brand__role { display: none; } }

@media (max-width: 860px) {
  .uhero__grid { grid-template-columns: 1fr; }
  .uhero__mark { display: none; }
  .uhero__title { font-size: clamp(2rem, 8.5vw, 3.2rem); overflow-wrap: anywhere; }
}

/* ---------------------------------------------------------------------
   Parallaxe générée de l'accueil
   --------------------------------------------------------------------- */
.home { position: relative; }
.home > section, .home > .band { position: relative; z-index: 1; }

.pfx-layer {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.pfx {
  position: absolute; display: block;
  color: var(--accent-3);
  opacity: var(--o, .5);
  will-change: transform;
}
.pfx svg { width: 100%; height: 100%; display: block; }
.pfx--ring   { border: 1.5px solid var(--accent-3); border-radius: 50%; }
.pfx--dot    { background: var(--accent-2); border-radius: 50%; opacity: calc(var(--o) * .8); }
.pfx--square { border: 1.5px solid var(--accent-3); border-radius: 22%; }
.pfx--plus::before, .pfx--plus::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--accent-3); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.pfx--plus::before { width: 100%; height: 1.5px; }
.pfx--plus::after  { width: 1.5px; height: 100%; }
.pfx--plus { width: 26px !important; height: 26px !important; }
.pfx--icon { color: var(--accent-2); }
.pfx--grid {
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--accent-3);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}
.pfx--wave, .pfx--arc { color: var(--accent-3); }
:root[data-theme='dark'] .pfx { opacity: calc(var(--o, .5) * .7); }

/* Bandeaux de mots géants */
.band {
  overflow: hidden;
  padding-block: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  border-block: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.band__track {
  display: flex; align-items: center; gap: clamp(1.2rem, .8rem + 2vw, 2.6rem);
  white-space: nowrap; width: max-content;
  margin-left: -20vw;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.4rem + 6vw, 7.5rem);
  font-weight: 700; letter-spacing: -.045em; line-height: 1;
}
.band__track span { color: transparent; -webkit-text-stroke: 1.4px var(--accent-3); }
.band__track span:nth-of-type(3n+2) { color: var(--ink); -webkit-text-stroke: 0; }
.band__track i { font-style: normal; font-size: .35em; color: var(--accent-2); }

/* Décor du hero */
.hero__deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero__giant {
  position: absolute; right: -4vw; bottom: 4%;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(8rem, 5rem + 16vw, 22rem); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.2px var(--line);
  will-change: transform; user-select: none;
}
.hero__orb {
  position: absolute; border-radius: 50%;
  will-change: transform;
}
.hero__orb--1 {
  width: 34vw; aspect-ratio: 1; left: -8vw; top: 10%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, var(--accent-2-wash), transparent 65%);
}
.hero__orb--2 {
  width: 110px; aspect-ratio: 1; left: 44%; top: 18%;
  background: var(--accent-wash); border: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}
.hero__line {
  position: absolute; left: 36%; bottom: 14%;
  width: 22vw; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
  will-change: transform;
}

/* ---------------------------------------------------------------------
   Menus déroulants
   --------------------------------------------------------------------- */
.accs { display: grid; gap: 1rem; }

.acc { border-radius: var(--radius-lg); }
.acc__head {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 1rem;
  color: inherit;
}
.acc__titles { display: grid; gap: .25rem; flex: 1; min-width: 0; }
.acc__chevron {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.acc.is-open > .acc__head .acc__chevron { transform: rotate(180deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__body > .acc__inner { overflow: hidden; min-height: 0; }
.acc.is-open > .acc__body { grid-template-rows: 1fr; }

/* Niveau 1 : un univers */
.acc--univers {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.acc--univers.is-open { border-color: var(--line); box-shadow: var(--shadow-md); }
.acc--univers > .acc__head { padding: 1.4rem 1.6rem; }
.acc--univers > .acc__head:hover .acc__chevron { border-color: var(--accent); }
.acc--univers > .acc__body > .acc__inner { padding: 0 1.6rem; }
.acc--univers.is-open > .acc__body > .acc__inner { padding-bottom: 1.8rem; }
.acc__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-wash); color: var(--accent);
}
.acc__icon .icon { width: 1.5rem; height: 1.5rem; }
.acc__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.acc__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; color: var(--ink-mute); font-family: var(--font-mono); }
.acc__intro { color: var(--ink-soft); max-width: 70ch; padding-top: .4rem; border-top: 1px solid var(--line-soft); padding-top: 1.2rem; }

.acc__group {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
  margin: 2rem 0 .9rem; display: flex; align-items: center; gap: .8rem;
}
.acc__group::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.acc__sub { font-weight: 600; font-size: .95rem; margin: 1rem 0 .6rem; }
.acc__inner .skillset__head h4, .acc__inner .watchcat h4 { font-size: 1.05rem; }
.acc__inner .watchitem h5 { font-size: .96rem; margin-bottom: .3rem; font-family: var(--font-display); }

/* Niveau 2 : une expérience / formation */
.acc-list { display: grid; gap: .55rem; }
.acc--item {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  transition: border-color .3s var(--ease), background-color .3s;
}
.acc--item:hover { border-color: var(--line); }
.acc--item.is-open { border-color: var(--accent); background: var(--paper-2); }
.acc--item > .acc__head { padding: .95rem 1.1rem; }
.acc--item > .acc__head .acc__chevron { width: 32px; height: 32px; }
.acc--item > .acc__body > .acc__inner { padding: 0 1.1rem 0 calc(1.1rem + 170px + 1rem); }
.acc--item.is-open > .acc__body > .acc__inner { padding-bottom: 1.2rem; }
.acc-item__date {
  flex: none; width: 170px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink-mute);
  display: grid; gap: .15rem;
}
.acc-item__date small { font-size: .7rem; color: var(--accent-2); }
.acc-item__title { font-weight: 600; font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.acc-item__org { font-size: var(--step--1); color: var(--ink-soft); }
.acc-item__place { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--ink-mute); margin-bottom: .6rem; }
.acc-item__desc { margin-top: 1rem; font-size: var(--step--1); max-width: 70ch; }
.acc--item .tl-resume { margin-top: 0; }

.projects--compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.projects--compact .project__media { aspect-ratio: 16 / 9; }
.projects--compact .project__body { padding: 1.1rem; }
.projects--compact .project__title { font-size: 1.08rem; }

@media (max-width: 760px) {
  .acc--univers > .acc__head { padding: 1.1rem; gap: .8rem; }
  .acc--univers > .acc__body > .acc__inner { padding: 0 1.1rem; }
  .acc__icon { width: 42px; height: 42px; }
  .acc--item > .acc__head { flex-wrap: wrap; }
  .acc-item__date { width: 100%; order: -1; }
  .acc--item > .acc__body > .acc__inner { padding-left: 1.1rem; }
  .hero__giant { display: none; }
}

/* ---------------------------------------------------------------------
   9. Frise du parcours
   --------------------------------------------------------------------- */
.timeline {
  --tl-gutter: clamp(1.4rem, .8rem + 2vw, 2.6rem);
  position: relative;
  padding-left: var(--tl-gutter);
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: .6rem; bottom: .6rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-3) 40%, var(--line) 100%);
}

.tl-item { position: relative; padding-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.2rem); }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: ''; position: absolute;
  left: calc(var(--tl-gutter) * -1 - 6px);
  top: .55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 5px var(--paper);
  transition: transform .45s var(--ease), background-color .45s var(--ease);
}

/* Deux colonnes sur grand écran : dates à gauche, contenu à droite. */
@media (min-width: 1100px) {
  .timeline { --tl-gutter: 230px; }
  .timeline::before { left: 200px; }
  .tl-item::before { left: -37px; }
  .tl-date {
    position: absolute; left: calc(var(--tl-gutter) * -1); top: .35rem;
    width: 170px; margin: 0;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .22rem; text-align: right;
  }
  .tl-date .sep { display: none; }
  .tl-resume, .tl-missions, .tl-detail .prose { max-width: 66ch; }
}
.tl-item:hover::before { background: var(--accent); transform: scale(1.15); }
.tl-item--live::before { animation: pulse 2.6s var(--ease-in-out) infinite; color: var(--accent); }

.tl-date {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem;
  margin-bottom: .55rem;
}
.tl-date .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.tl-title { font-size: var(--step-1); margin-bottom: .25rem; }
.tl-org { color: var(--accent); font-weight: 550; font-size: .98rem; }
.tl-place { color: var(--ink-mute); font-size: var(--step--1); }
.tl-resume { color: var(--ink-soft); margin-top: .7rem; max-width: 62ch; }

.tl-missions { margin-top: .9rem; display: grid; gap: .45rem; max-width: 62ch; }
.tl-missions li { position: relative; padding-left: 1.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.tl-missions li::before {
  content: ''; position: absolute; left: .25rem; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent-2); rotate: 45deg;
}

.tl-more { margin-top: .9rem; }
.tl-detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.tl-detail > div { overflow: hidden; }
.tl-item.is-open .tl-detail { grid-template-rows: 1fr; }
.tl-detail .prose { padding-top: .9rem; max-width: 62ch; }

.tl-toggle {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--step--1); font-weight: 550; color: var(--accent);
}
.tl-toggle .icon { transition: transform .4s var(--ease); width: 1.1em; height: 1.1em; }
.tl-item.is-open .tl-toggle .icon { transform: rotate(180deg); }

.tl-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }

/* Filtres ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  padding: .45em 1em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: var(--step--1); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 550; }

/* ---------------------------------------------------------------------
   10. Formations
   --------------------------------------------------------------------- */
.formations { display: grid; gap: 1rem; }

.formation {
  display: grid;
  grid-template-columns: minmax(130px, .2fr) minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.formation:hover { transform: translateX(5px); border-color: var(--accent); box-shadow: var(--shadow-sm); }

.formation__when {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em;
  padding-top: .2rem;
}
.formation__title { font-size: var(--step-1); margin-bottom: .2rem; }
.formation__where { color: var(--accent); font-weight: 550; font-size: .95rem; }
.formation__desc  { color: var(--ink-soft); font-size: var(--step--1); margin-top: .6rem; max-width: 65ch; }
.formation__extra { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.formation__aside { display: grid; gap: .5rem; justify-items: end; }

/* ---------------------------------------------------------------------
   11. Compétences
   --------------------------------------------------------------------- */
.skills:has(> :only-child) { max-width: 680px; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }

.skillset {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  transition: border-color .45s var(--ease), transform .45s var(--ease);
}
.skillset::after {
  content: ''; position: absolute; inset: auto -30% -60% auto;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--accent-wash); filter: blur(40px);
  opacity: 0; transition: opacity .5s var(--ease);
}
.skillset:hover { border-color: var(--accent); transform: translateY(-4px); }
.skillset:hover::after { opacity: 1; }

.skillset__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; position: relative; }
.skillset__icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: var(--accent-wash); color: var(--accent);
}
.skillset__head h3 { font-size: 1.08rem; }
.skillset__desc { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: 1.3rem; position: relative; }

.skill { margin-bottom: 1rem; position: relative; }
.skill:last-child { margin-bottom: 0; }
.skill__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .4rem; }
.skill__name { font-size: .95rem; font-weight: 500; }
.skill__pct  { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-mute); }
.skill__desc { font-size: .82rem; color: var(--ink-mute); margin-top: .35rem; line-height: 1.5; }

/* ---------------------------------------------------------------------
   12. Projets
   --------------------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }

.project {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
  will-change: transform;
}
.project:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.project--wide { grid-column: span 2; }

.project__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--paper-3), var(--paper-2));
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.project:hover .project__media img { transform: scale(1.06); }

.project__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-mute);
}
.project__placeholder .icon { width: 3rem; height: 3rem; opacity: .35; }

.project__flag {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  padding: .3em .8em; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  font-size: .74rem; font-weight: 550; letter-spacing: .02em;
}

.project__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.project__title { font-size: var(--step-1); }
.project__resume { color: var(--ink-soft); font-size: var(--step--1); flex: 1; }
.project__tech { display: flex; flex-wrap: wrap; gap: .35rem; }
.tech {
  font-family: var(--font-mono); font-size: .72rem;
  padding: .25em .65em; border-radius: 6px;
  background: var(--paper-3); color: var(--ink-soft);
  border-left: 2px solid var(--tech-color, var(--accent));
}
.project__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }

/* ---------------------------------------------------------------------
   13. Documents
   --------------------------------------------------------------------- */
.docgroup + .docgroup { margin-top: 2.8rem; }
.docgroup__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.docgroup__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-2-wash); color: var(--accent-2); }
.docgroup__head h3 { font-size: var(--step-1); }
.docgroup__head p  { font-size: var(--step--1); color: var(--ink-mute); }

.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }

.doc {
  display: flex; gap: .9rem; align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.doc:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }

.doc__ext {
  display: grid; place-items: center;
  width: 44px; height: 52px; flex: none;
  border-radius: 8px;
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  position: relative;
}
.doc__ext::before {
  content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 10px 10px 0; border-style: solid;
  border-color: var(--paper-2) var(--paper) transparent transparent;
}
.doc__body { min-width: 0; flex: 1; display: grid; gap: .18rem; }
.doc__title { display: block; font-weight: 550; font-size: .97rem; line-height: 1.3; }
.doc__desc  { display: block; font-size: .82rem; color: var(--ink-mute); line-height: 1.45; }
.doc__meta  {
  display: block; font-size: .74rem; color: var(--ink-mute);
  font-family: var(--font-mono); letter-spacing: .02em;
}
.doc .icon-btn { width: 36px; height: 36px; }

/* ---------------------------------------------------------------------
   14. Veille
   --------------------------------------------------------------------- */
.watch { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }

.watchcat {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.watchcat > h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.watchcat > p  { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: 1.2rem; }

.watchitem { padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.watchitem:first-of-type { border-top: 0; padding-top: 0; }
.watchitem + .watchitem { margin-top: 1rem; }
.watchitem h4 { font-size: .98rem; margin-bottom: .3rem; }
.watchitem p  { font-size: var(--step--1); color: var(--ink-soft); }
.watchitem .doc { margin-top: .7rem; padding: .6rem .8rem; }
.watchitem .doc__ext { width: 34px; height: 40px; font-size: .56rem; }

/* ---------------------------------------------------------------------
   15. Contact
   --------------------------------------------------------------------- */
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.contact__cards { display: grid; gap: .8rem; }
.contact__card {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.contact__card:hover { transform: translateX(4px); border-color: var(--accent); }
.contact__card .icon-btn { pointer-events: none; }
.contact__card small { display: block; color: var(--ink-mute); font-size: .78rem; }
.contact__card b { font-weight: 550; font-size: .97rem; word-break: break-word; }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 550; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: .85em 1em;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .75; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.field .error { font-size: .8rem; font-weight: 550; color: var(--danger); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 4px var(--danger-wash);
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .95rem 1.1rem;
  border-radius: 12px;
  font-size: var(--step--1);
  border: 1px solid;
}
.alert--ok    { background: var(--accent-2-wash); border-color: var(--accent-2); color: var(--accent-2); }
.alert--error { background: var(--danger-wash); border-color: var(--danger); color: var(--ink); border-left-width: 3px; }
.alert--info  { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------------
   16. Pied de page
   --------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-3) 45%, transparent);
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.footer__word {
  font-family: var(--font-display); font-size: var(--step-2);
  font-weight: 650; letter-spacing: -.04em; margin-bottom: .5rem;
}
.footer p { color: var(--ink-mute); font-size: var(--step--1); max-width: 40ch; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .9rem; font-family: var(--font-mono); font-weight: 500; }
.footer nav { display: grid; gap: .5rem; }
.footer nav a { font-size: var(--step--1); color: var(--ink-soft); transition: color .3s, padding-left .3s var(--ease); }
.footer nav a:hover { color: var(--accent); padding-left: .3rem; }

.footer__socials { display: flex; gap: .55rem; margin-top: 1.2rem; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-mute);
}

.to-top {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: all .45s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------------------
   17. Animations d'apparition
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal='left']  { transform: translateX(-30px); }
[data-reveal='right'] { transform: translateX(30px); }
[data-reveal='scale'] { transform: scale(.94); }
[data-reveal='left'].is-in,
[data-reveal='right'].is-in,
[data-reveal='scale'].is-in { transform: none; }

[data-parallax] { will-change: transform; }

/* ---------------------------------------------------------------------
   18. Pages secondaires
   --------------------------------------------------------------------- */
.page { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: 5rem; }
.page__title { font-size: var(--step-4); margin-bottom: 1rem; }
.page .prose { max-width: 70ch; }
.page .prose h2 { font-size: var(--step-2); margin: 2rem 0 .7rem; color: var(--ink); }
.page .prose h3 { font-size: var(--step-1); margin: 1.6rem 0 .5rem; color: var(--ink); }
.page .prose ul { display: grid; gap: .4rem; margin: .8rem 0; }
.page .prose li { position: relative; padding-left: 1.3rem; }
.page .prose li::before { content: ''; position: absolute; left: .2rem; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.error-page { min-height: 70svh; display: grid; place-content: center; text-align: center; gap: 1.2rem; }
.error-page__code {
  font-family: var(--font-display); font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700; line-height: .85; letter-spacing: -.06em;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Bandeau cookies ----------------------------------------------------- */
.cookiebar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  z-index: 140; max-width: 520px;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  display: grid; gap: .9rem;
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.cookiebar.is-visible { transform: none; }
.cookiebar p { font-size: var(--step--1); color: var(--ink-soft); }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------------------------------------------------------------------
   19. Adaptatif
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__figure { order: -1; width: min(100%, 340px); }
  .hero__badge { display: none; }
  .about, .contact__grid { grid-template-columns: 1fr; }
  .about__intro { position: static; }
  .project--wide { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .formation { grid-template-columns: 1fr; gap: .7rem; }
  .formation__aside { justify-items: start; }
  .hero__name { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4rem; }
  .hero__figure { width: min(78%, 280px); }
  .scroll-cue { display: none; }
}

@media (max-width: 760px) {
  .brand__role { display: none; }
  .brand__name { font-size: .95rem; }
  .brand { min-width: 0; }
  .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .about__row { grid-template-columns: 1fr; gap: .2rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .decor__blob { filter: blur(60px); }
}

/* ---------------------------------------------------------------------
   20. Accessibilité : mouvement réduit
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
  .hero__name .line > span { transform: none; }
}

/* ---------------------------------------------------------------------
   21. Impression
   --------------------------------------------------------------------- */
@media print {
  .header, .decor, .to-top, .cookiebar, .scroll-cue, .progress, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; break-inside: avoid; }
}
