/* ===== Tokens ===== */
:root {
  --bg: #f6f8fc;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e2e8f0;
  --brand: #004aac;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --accent-soft: rgba(37, 99, 235, .1);
  --live: #16a34a;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0e1729;
    --surface: #111b2e;
    --text: #e6ebf5;
    --muted: #94a0b8;
    --line: #1f2b43;
    --brand: #6d9bff;
    --accent: #5b8cff;
    --accent-2: #22d3ee;
    --accent-soft: rgba(91, 140, 255, .14);
    --live: #22c55e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}

/* ===== Langue : n'afficher que la langue active ===== */
html[lang="fr"] [lang="en"],
html[lang="en"] [lang="fr"] { display: none !important; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { opacity: .7; font-weight: 500; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 34px; height: 34px; background: var(--brand);
  -webkit-mask: url(../img/logo.png) center / contain no-repeat;
  mask: url(../img/logo.png) center / contain no-repeat;
}
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }

.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 12.5px/1 inherit; font-family: inherit; padding: 7px 11px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent); }

h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; letter-spacing: -.03em; }
.hero__role {
  margin: 10px 0 0; font-size: clamp(18px, 2.4vw, 22px); font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 20px 0 0; max-width: 560px; color: var(--muted); font-size: 17.5px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta--center { justify-content: center; }
.hero__alt { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
svg.icon-fill { fill: currentColor; stroke: none; }

.hero__photo { position: relative; justify-self: center; width: min(380px, 100%); }
.hero__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2)); opacity: .9;
}
.hero__photo picture { position: relative; display: block; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; background: var(--surface); }
.stats strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 40px; }
.section__title::after {
  content: ""; display: block; width: 48px; height: 4px; margin-top: 14px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ===== Timeline ===== */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 200px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 0 40px; position: relative; }
.job + .job { margin-top: 28px; }
.job::before {
  content: ""; position: absolute; left: 194px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.job__meta { padding-top: 22px; padding-right: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.job__date { font-size: 14px; font-weight: 600; color: var(--muted); }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge--live { color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }

.job__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.job__card h3 { font-size: 21px; font-weight: 700; }
.job__company { margin: 4px 0 18px; color: var(--accent); font-weight: 600; font-size: 15px; }
.job__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.job__card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 10px; }
.job__card ul:not(.tags) { list-style: none; display: grid; gap: 8px; }
.job__card ul:not(.tags) li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.job__card ul:not(.tags) li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: .7;
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
}

/* ===== Cards ===== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tags { margin-top: auto; padding-top: 18px; }

/* ===== Education & languages ===== */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.edu { list-style: none; display: grid; gap: 18px; }
.edu li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.edu__year { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.edu h3 { font-size: 17.5px; font-weight: 700; }
.edu p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.langs { list-style: none; display: grid; gap: 20px; }
.langs li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-weight: 600; }
.langs .level { color: var(--muted); font-weight: 500; font-size: 14px; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ===== Contact ===== */
.section--contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact { text-align: center; }
.contact .section__title::after { margin-inline: auto; }
.contact__lead { max-width: 560px; margin: -16px auto 36px; color: var(--muted); font-size: 17px; }
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.contact__item {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
  overflow-wrap: anywhere;
}
a.contact__item:hover { text-decoration: none; border-color: var(--accent); }
.contact__item > svg { width: 22px; height: 22px; color: var(--accent); }
.contact__item small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.contact .hero__cta { margin-top: 32px; }

/* ===== Footer ===== */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: var(--muted); }

/* ===== Utilitaires ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ===== Barre de progression ===== */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ===== Navigation (état au défilement, lien actif, menu mobile) ===== */
.nav { transition: box-shadow .3s, background .3s; }
.nav.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, .08); }
.nav__brand .nav__logo { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.08); }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--text); }
.lang-switch button { transition: background .25s, color .25s; }

.nav__toggle {
  display: none; position: relative; width: 42px; height: 42px; margin-left: 4px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.nav__toggle i {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), top .35s;
}
.nav__toggle i:nth-of-type(1) { top: 16px; }
.nav__toggle i:nth-of-type(2) { top: 24px; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__links { display: grid; gap: 4px; }
.mobile-menu__links a {
  display: block; padding: 14px 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease;
}
.mobile-menu__links a:hover { text-decoration: none; color: var(--accent); }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .15s; }
.mobile-menu__actions { display: grid; gap: 10px; }
.mobile-menu__actions .btn { justify-content: center; }
body.menu-open { overflow: hidden; }
body.menu-open .dock { transform: translate(-50%, 140%); }

/* ===== Hero : fond animé ===== */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: blob 18s ease-in-out infinite alternate;
}
.blob--1 { width: 520px; height: 520px; top: -180px; right: -120px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.blob--2 { width: 420px; height: 420px; bottom: -160px; left: -140px; background: color-mix(in srgb, var(--accent-2) 35%, transparent); animation-duration: 22s; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; top: 35%; left: 45%; background: color-mix(in srgb, var(--brand) 25%, transparent); animation-duration: 26s; animation-delay: -12s; }
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-30px, 25px) scale(.95); }
  100% { transform: translate(20px, 10px) scale(1.04); }
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* ===== Hero : entrée en cascade ===== */
.hero__text > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero__text > :nth-child(1) { animation-delay: .05s; }
.hero__text > :nth-child(2) { animation-delay: .15s; }
.hero__text > :nth-child(3) { animation-delay: .25s; }
.hero__text > :nth-child(4) { animation-delay: .35s; }
.hero__text > :nth-child(5) { animation-delay: .45s; }
.hero__text > :nth-child(6) { animation-delay: .55s; }
.hero__photo { animation: pop 1s cubic-bezier(.2, .8, .2, 1) .2s both; }
.stats { animation: rise .8s cubic-bezier(.2, .8, .2, 1) .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }

.hero__text > .hero__role { background-size: 200% 100%; animation: rise .8s cubic-bezier(.2, .8, .2, 1) .25s both, shimmer 6s linear 1s infinite; }
.hero__role { background-image: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); }
@keyframes shimmer { to { background-position: -200% 0; } }

.dot { position: relative; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live);
  animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Photo : légère flottaison + inclinaison au survol */
.hero__photo { perspective: 900px; }
.hero__photo picture {
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.hero__photo::before { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-6px, -8px); } }

.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  animation: float 6s ease-in-out infinite;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.chip--1 { top: 12%; left: -14%; animation-delay: -1s; }
.chip--2 { bottom: 16%; left: -18%; animation-delay: -3s; }
.chip--3 { top: 40%; right: -12%; animation-delay: -2s; }

/* ===== Boutons ===== */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background .2s, border-color .2s; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn--primary:hover::after { transform: translateX(120%); }

/* ===== Stats ===== */
.stats li { transition: background .3s; }
.stats li:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.stats strong { font-variant-numeric: tabular-nums; }

/* ===== Bandeau défilant ===== */
.marquee {
  position: relative; margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { list-style: none; display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ===== Titres de section numérotés ===== */
main { counter-reset: section; }
.section .section__title { counter-increment: section; }
.section .section__title::before {
  content: counter(section, decimal-leading-zero); display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--accent);
}
.section__title::after { transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .2s; }
.section__title.reveal::after { transform: scaleX(0); }
.section__title.reveal.is-visible::after { transform: none; }
.contact .section__title.reveal::after { transform-origin: center; }

/* ===== Frise : remplissage au défilement ===== */
.timeline::before { background: var(--line); }
.timeline__fill {
  list-style: none; position: absolute; left: 200px; top: 8px; bottom: 8px; width: 2px; z-index: 0;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform-origin: top; transform: scaleY(var(--fill, 0));
}
.job::before { z-index: 1; transition: background .4s, box-shadow .4s, transform .4s; }
.job.is-visible::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.job__card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.job__card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 20px 50px rgba(15, 23, 42, .12); }
.tags li { transition: transform .2s, background .2s; }
.tags li:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* ===== Cartes : halo qui suit le curseur ===== */
.card, .contact__item, .edu li { position: relative; overflow: hidden; }
.card::before, .contact__item::before, .edu li::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.card:hover::before, .contact__item:hover::before, .edu li:hover::before { opacity: 1; }
.card > *, .contact__item > *, .edu li > * { position: relative; }
.card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(15, 23, 42, .12); }
.card__icon { transition: transform .5s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.1); background: var(--accent); color: #fff; }
.edu li, .contact__item { transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.edu li:hover, a.contact__item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .1); }

/* ===== Barres de langue ===== */
.bar i { transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .langs li:not(.is-visible) .bar i { transform: scaleX(0); }

/* ===== Apparition au défilement ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.job.reveal.is-visible, .card.reveal.is-visible { transition-delay: var(--d, 0s), var(--d, 0s); }

/* ===== Dock mobile & retour en haut ===== */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; gap: 8px; padding: 8px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 23, 42, .2);
  transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.dock.is-shown { transform: translate(-50%, 0); }
.dock__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 14px;
  border-radius: 14px; color: var(--text); background: var(--bg); font-weight: 700; font-size: 15px;
}
.dock__btn:hover { text-decoration: none; }
.dock__btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); padding: 0 20px; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; color: #fff; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ===== Mouvement réduit ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .bar i { transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track li:nth-child(n+17) { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .job__groups { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .lang-switch { margin-left: auto; }
  .nav__toggle { display: block; }
  .dock { display: flex; }
  .to-top { display: none; }
  .footer { padding-bottom: 100px; }
  .timeline__fill { left: 6px; }
  .chip { font-size: 12px; padding: 6px 11px; }
  .chip--1 { left: -22%; top: 8%; }
  .chip--2 { left: -26%; bottom: 12%; }
  .chip--3 { right: -24%; }
  .blob--1 { width: 340px; height: 340px; }
  .blob--2 { width: 300px; height: 300px; }
  .blob--3 { display: none; }
  .hero { padding-top: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__photo { order: -1; width: min(240px, 66%); margin-right: 18px; }
  .timeline::before { left: 6px; }
  .job { grid-template-columns: 1fr; padding-left: 30px; }
  .job::before { left: 0; top: 4px; }
  .job__meta { padding: 0 0 12px; flex-direction: row; align-items: center; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .contact__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .job__card { padding: 20px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .nav__name { display: none; }
  h1 { font-size: 44px; }
  .hero__lead { font-size: 16.5px; }
  .stats li { padding: 16px 18px; }
  .stats strong { font-size: 20px; }
  .section__title { margin-bottom: 32px; }
  .card, .edu li { padding: 22px; }
  .mobile-menu__links a { font-size: 26px; }
}
@media (hover: none) {
  .card:hover, .job__card:hover, .edu li:hover, a.contact__item:hover { transform: none; }
}

@media print {
  .nav, .hero__cta, .hero__alt, .footer, .lang-switch, .dock, .to-top, .progress, .marquee, .hero__bg, .chip { display: none !important; }
  .section, .hero { padding: 24px 0; }
  .reveal { opacity: 1; transform: none; }
  .bar i { transform: none; }
}
