/* Bertrand NKE, site vitrine. Charte : anthracite #1E232B, bleu roi #1D4FB8, bleu clair #8FAEEB, brume #EEF2F8. */
@font-face { font-family: "Spectral"; font-weight: 500; font-display: swap; src: url("fonts/Spectral-Medium.ttf") format("truetype"); }
@font-face { font-family: "Spectral SC"; font-weight: 500; font-display: swap; src: url("fonts/SpectralSC-Medium.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url("fonts/IBMPlexSans.ttf") format("truetype"); }

:root {
  --ink: #1E232B;
  --ink-deep: #15191F;
  --ink-soft: #262C36;
  --blue: #1D4FB8;
  --blue-hover: #2860D6;
  --sky: #8FAEEB;
  --mist: #EEF2F8;
  --paper: #F7F9FC;
  --muted: #5A6375;
  --muted-dark: #AEB8CA;
  --line: #D5DCE8;
  --line-dark: rgba(255, 255, 255, .1);
  --serif: "Spectral", Georgia, serif;
  --sc: "Spectral SC", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main { overflow-x: clip; }   /* le cadre du portrait déborde à droite sur mobile ; clip garde la scène 3D collante */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typographie */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sc); font-size: 15px; letter-spacing: .12em; color: var(--sky); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.light .eyebrow { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; margin-top: 18px; }
h3 { font-size: 26px; line-height: 1.2; }
.dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--blue); margin-left: .05em; vertical-align: baseline; }
.dark .dot, .hero .dot { background: var(--sky); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted-dark); max-width: 36em; }
.light .lead { color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; font: 500 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.light .btn--ghost { border-color: var(--line); color: var(--ink); }
.light .btn--ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Barre de progression et navigation */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(21, 25, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; padding: 10px 0; }
.brand__logo { display: block; width: 168px; height: auto; }   /* logotype Velnorys, comme sur l'accueil */
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; }
.nav__links a { text-decoration: none; color: var(--muted-dark); position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; letter-spacing: .08em; }
.lang a, .lang span { padding: 6px 10px; text-decoration: none; }
.lang span { background: #fff; color: var(--ink); }
.lang a { color: var(--muted-dark); }
.lang a:hover { color: #fff; }
.nav__cta { display: none; }

/* Scène 3D (ouverture + expertises) */
.scrolly { position: relative; background: radial-gradient(1200px 700px at 78% 30%, #263041 0%, var(--ink) 55%, var(--ink-deep) 100%); }
.stage { position: absolute; inset: 0; pointer-events: none; }
.stage__inner { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.is-ready canvas { opacity: 1; }
.stage .fallback { position: absolute; width: min(38vw, 440px); right: 10vw; top: 50%; transform: translateY(-50%); display: none; }
.stage.no-gl .fallback { display: block; }
/* Symbole de repli (piste G) : la gélule sort un peu plus du O à chaque domaine */
.fallback .ring { fill: #E9EDF4; }
.fallback .pill { transition: transform .9s var(--ease); }
.fallback[data-active="0"] .pill { transform: translateX(3px); }
.fallback[data-active="1"] .pill { transform: translateX(6px); }
.fallback[data-active="2"] .pill { transform: translateX(9px); }
.fallback[data-active="3"] .pill { transform: translateX(12px); }
.stage__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(60% 60% at 72% 45%, #000 0%, transparent 100%); -webkit-mask-image: radial-gradient(60% 60% at 72% 45%, #000 0%, transparent 100%); }

.hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 90px; }
.hero__copy { max-width: 600px; }
.hero__kicker { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; margin: 26px 0 30px; letter-spacing: -.02em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms + 200ms); }
.is-loaded .hero h1 .w > span { transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__meta { position: absolute; left: 0; right: 0; bottom: 34px; }
.hero__meta .wrap { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted-dark); letter-spacing: .03em; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--sky); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.intro, .step { position: relative; z-index: 1; }
.intro { min-height: 90vh; display: flex; align-items: center; }
.intro__copy { max-width: 560px; }
.intro .lead { margin-top: 26px; }
.step { min-height: 100vh; display: flex; align-items: center; padding: 80px 0; }
.step__card { max-width: 520px; }
.step__num { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: 18px; color: var(--sky); }
/* Position du domaine parmi les quatre : un point par domaine, celui en cours en bleu */
.mini { display: inline-flex; gap: 5px; }
.mini b { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mini b.on { background: var(--sky); }
.step h3 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; margin: 18px 0 8px; }
.step__sub { font-size: 18px; color: var(--muted-dark); margin: 0 0 30px; }
.step ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.step li { position: relative; padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line-dark); color: #DCE3F0; font-size: 16px; }
.step li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 6px; height: 6px; background: var(--blue); }

/* Sections claires */
.light { background: var(--paper); color: var(--ink); }
.section { padding: clamp(96px, 13vw, 170px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 84px); }
.section__head .lead { margin-top: 24px; }

/* Profil */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; }
.portrait__img { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.portrait.is-in .portrait__img img { transform: scale(1); }
.portrait3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.portrait__img.has-3d .portrait3d { opacity: 1; }
.portrait__frame { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line); z-index: -1; }
.portrait__tag { position: absolute; left: -1px; bottom: 28px; background: var(--ink); color: #fff; padding: 14px 20px; font-size: 13px; letter-spacing: .06em; display: flex; align-items: center; gap: 12px; }
.portrait__tag svg { width: 20px; height: 20px; }
.profile__text p { margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.profile__text p:first-of-type { color: var(--ink); font-size: 21px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.facts dd { margin: 6px 0 0; font-size: 16px; }

/* Indépendance */
.dark { background: var(--ink-deep); }
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.pledge { position: relative; background: var(--ink-deep); padding: 36px 32px 40px; transition: background .4s var(--ease); overflow: hidden; }
.pledge::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.pledge:hover { background: #1A1F27; }
.pledge:hover::after { transform: scaleX(1); }
.pledge span { font-family: var(--serif); color: var(--sky); font-size: 18px; }
.pledge p { margin: 16px 0 0; color: #DCE3F0; font-size: 16.5px; }
.declaration { margin: clamp(64px, 9vw, 110px) 0 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 30px; }
.declaration svg { width: 64px; height: 64px; }
.declaration blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 31px); line-height: 1.45; }
.declaration figcaption { margin-top: 22px; font-size: 14px; color: var(--muted-dark); letter-spacing: .04em; }

/* Parcours */
.timeline { position: relative; }
.timeline__rail { position: absolute; left: 210px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__rail i { position: absolute; inset: 0; background: var(--blue); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.job { display: grid; grid-template-columns: 210px minmax(0, 1fr); padding-bottom: 56px; }
.job:last-child { padding-bottom: 0; }
.job__date { font-size: 14px; letter-spacing: .06em; color: var(--muted); padding-top: 4px; padding-right: 30px; font-variant-numeric: tabular-nums; }
.job__body { position: relative; padding-left: 48px; }
.job__body::before { content: ""; position: absolute; left: -5px; top: 9px; width: 11px; height: 11px; background: var(--paper); border: 2px solid var(--blue); transition: background .5s var(--ease); }
.job.is-in .job__body::before { background: var(--blue); }
.job__co { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.job h3 { margin: 8px 0 14px; font-size: clamp(22px, 2.2vw, 28px); }
.job ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 16.5px; }
.job li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.job li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; background: var(--muted-dark); }

/* Formation */
.edu { background: var(--mist); }
.edu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.edu__col h3 { font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.edu__item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.edu__item b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; }
.edu__item span { display: block; color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.edu__item time { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--ink); }
.contact__mark { position: absolute; right: -9vw; bottom: -16vw; width: 40vw; max-width: 560px; opacity: .55; }
.contact__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: end; }
.contact__mail { display: inline-block; margin-top: 40px; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); text-decoration: none; background-image: linear-gradient(var(--sky), var(--sky)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--ease); overflow-wrap: anywhere; }
.contact__mail:hover { background-size: 100% 1px; }
.contact__list { margin: 0; display: grid; gap: 22px; }
.contact__list dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.contact__list dd { margin: 4px 0 0; font-size: 18px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--sky); }
.contact__cv { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.footer { background: var(--ink-deep); border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--muted-dark); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; }

/* Apparitions au défilement */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }
.gsap [data-reveal], .gsap .portrait__img img { opacity: 1; transform: none; filter: none; transition: none; }
.ln { padding-bottom: .06em; margin-bottom: -.06em; }

/* Bandeau des expertises (défilement horizontal lié au scroll) */
.band { overflow: hidden; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 3vw, 34px) 0; }
.band__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.band__track span { font-family: var(--serif); font-size: clamp(44px, 8vw, 120px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ink); padding-right: .5em; display: inline-flex; align-items: center; gap: .5em; }
.band__track span i { width: .18em; height: .18em; border-radius: 50%; background: var(--blue); display: inline-block; }
.band__track span b { font-weight: 500; color: var(--ink); -webkit-text-stroke: 0; }

.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero h1 .w > span, .portrait__img img { transition: none !important; opacity: 1; transform: none !important; filter: none; }
  .scroll-cue i::after { animation: none; }
}

/* Tablette et mobile */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: inline-flex; height: 40px; padding: 0 16px; font-size: 14px; }
  .nav__right { display: flex; align-items: center; gap: 12px; }
  .stage__grid { mask-image: radial-gradient(70% 45% at 50% 22%, #000 0%, transparent 100%); -webkit-mask-image: radial-gradient(70% 45% at 50% 22%, #000 0%, transparent 100%); }
  .stage .fallback { width: 52vw; right: 24vw; top: 12vh; transform: none; }
  .hero { justify-content: flex-start; padding-top: calc(76px + 32vh); padding-top: calc(76px + 32svh); padding-bottom: 120px; }
  .hero__copy, .intro__copy, .step__card { background: linear-gradient(180deg, rgba(30, 35, 43, 0) 0%, rgba(30, 35, 43, .9) 16%); padding-top: 40px; }
  .step { align-items: flex-end; }
  .step__card { background: rgba(21, 25, 31, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 28px 24px; border: 1px solid var(--line-dark); }
  .intro { align-items: flex-end; padding-bottom: 60px; }
  .profile, .contact__in, .edu__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .pledges { grid-template-columns: minmax(0, 1fr); }
  .timeline__rail { left: 5px; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .job__date { padding-left: 34px; margin-bottom: 6px; }
  .job__body { padding-left: 34px; }
  .job__body::before { left: 0; }
  .declaration { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__logo { width: 138px; }
  .hero__meta .wrap > span:first-child { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .edu__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
