/* ==========================================================================
   Portfolio - design system "Aurore"
   Palette pastel douce, titres en serif, verre dépoli, animations discrètes.
   Toutes les animations sont coupées si l'utilisateur préfère moins de mouvement.
   ========================================================================== */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #fbf7f1;
  --bg-2: #f3eee5;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #1d2b36;
  --ink-2: #51636f;
  --ink-3: #82919c;
  --line: rgba(29, 43, 54, 0.1);

  --teal: #6fb3a8;
  --teal-rgb: 111, 179, 168;
  --teal-ink: #2f6b64;
  --lav: #b9a9ea;
  --lav-rgb: 185, 169, 234;
  --lav-ink: #5e4cae;
  --peach: #f4b59d;
  --peach-rgb: 244, 181, 157;
  --peach-ink: #a85a3a;
  --sky: #a8d4ea;
  --sky-rgb: 168, 212, 234;
  --sky-ink: #2f6a8c;

  --grad: linear-gradient(120deg, #6fb3a8 0%, #b9a9ea 52%, #f4b59d 100%);
  --shadow: 0 12px 40px -14px rgba(52, 80, 100, 0.2);
  --shadow-lg: 0 30px 80px -24px rgba(52, 80, 100, 0.28);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dark {
  --bg: #0e1620;
  --bg-2: #121d29;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --ink: #e9eff4;
  --ink-2: #a5b5c2;
  --ink-3: #71838f;
  --line: rgba(255, 255, 255, 0.09);

  --teal: #7fc9bd;
  --teal-rgb: 127, 201, 189;
  --teal-ink: #92d8cc;
  --lav: #a99be0;
  --lav-rgb: 169, 155, 224;
  --lav-ink: #c0b5f2;
  --peach: #f2a98f;
  --peach-rgb: 242, 169, 143;
  --peach-ink: #f7bda6;
  --sky: #86bedb;
  --sky-rgb: 134, 190, 219;
  --sky-ink: #a3d3ec;

  --shadow: 0 14px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 34px 90px -28px rgba(0, 0, 0, 0.75);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-variation-settings: "SOFT" 100;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(var(--lav-rgb), 0.35); }
:focus-visible { outline: 2px solid var(--lav-ink); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: 0.6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--bg);
  transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Ambiance (aurore + progression) ---------- */
.ambient { position: fixed; inset: -40px; z-index: -1; overflow: hidden; pointer-events: none; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s ease-out; }
.ambient i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.42;
  will-change: transform;
}
.ambient i:nth-child(1) {
  width: 52vmax; height: 52vmax; left: -16vmax; top: -18vmax;
  background: radial-gradient(circle, var(--teal), transparent 66%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) {
  width: 48vmax; height: 48vmax; right: -18vmax; top: 6vh;
  background: radial-gradient(circle, var(--lav), transparent 66%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.ambient i:nth-child(3) {
  width: 44vmax; height: 44vmax; left: 22%; bottom: -24vmax;
  background: radial-gradient(circle, var(--peach), transparent 66%);
  animation: drift-c 40s ease-in-out infinite alternate;
}
.dark .ambient i { opacity: 0.2; }
@keyframes drift-a { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, 9vmax, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(7vmax, -8vmax, 0) scale(1.1); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Navigation ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0.9rem 0; transition: padding 0.4s var(--ease); }
.site-header.is-scrolled { padding: 0.5rem 0; }
.nav {
  width: min(1120px, 100% - 1.5rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow); transition: background 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled .nav { background: var(--surface-strong); }
.brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; font-weight: 700; font-size: 0.95rem; }
.brand-mark {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px rgba(var(--lav-rgb), 0.9);
}
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 15rem; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  position: relative; padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--ink); background: rgba(var(--lav-rgb), 0.14); }
.nav-links a[aria-current="true"] { color: var(--ink); background: rgba(var(--teal-rgb), 0.2); }
.nav-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 0.78rem; font-weight: 700;
  transition: background 0.3s, transform 0.4s var(--ease), border-color 0.3s;
}
.icon-btn:hover { background: rgba(var(--lav-rgb), 0.2); transform: rotate(8deg) scale(1.06); border-color: rgba(var(--lav-rgb), 0.6); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .i-sun { display: none; }
.dark .theme-toggle .i-sun { display: block; }
.dark .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; }
.mobile-menu {
  width: min(1120px, 100% - 1.5rem); margin: 0.5rem auto 0; padding: 0.6rem; border-radius: 24px;
  display: none; flex-direction: column; background: var(--surface-strong); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.mobile-menu a { padding: 0.8rem 1rem; border-radius: 14px; font-weight: 600; }
.mobile-menu a:hover { background: rgba(var(--teal-rgb), 0.15); }
.site-header.menu-open .mobile-menu { display: flex; animation: pop-in 0.35s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(var(--lav-rgb), 1); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(var(--lav-rgb), 1), 0 0 0 6px rgba(var(--lav-rgb), 0.18); }
.btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform 0.9s var(--ease); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-strong); border-color: rgba(var(--teal-rgb), 0.7); }

/* ---------- Verre ---------- */
.glass {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s;
}
.glass > * { position: relative; z-index: 1; }
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--c, var(--teal-rgb)), 0.2), transparent 62%);
}
.glass:hover::before { opacity: 1; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(var(--c, var(--teal-rgb)), 0.5); }

.c-teal { --c: var(--teal-rgb); --c-ink: var(--teal-ink); }
.c-lav { --c: var(--lav-rgb); --c-ink: var(--lav-ink); }
.c-peach { --c: var(--peach-rgb); --c-ink: var(--peach-ink); }
.c-sky { --c: var(--sky-rgb); --c-ink: var(--sky-ink); }

/* ---------- Révélations au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-left { transform: translateX(-34px); }
.js .reveal-right { transform: translateX(34px); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; scroll-margin-top: 4rem; }
.section-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 1.8rem; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head h2 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { margin-top: 1rem; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 7.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-dots {
  position: absolute; inset: 0; z-index: -1; color: rgba(var(--teal-rgb), 0.5);
  background-image: radial-gradient(currentColor 1.2px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); opacity: 0.55;
}
.hero-chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; z-index: -1; pointer-events: none; opacity: 0.9; }
.hero-chart .line { fill: none; stroke: url(#chart-grad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s 0.6s var(--ease) forwards; }
.hero-chart .area { fill: url(#chart-fill); opacity: 0; animation: fade-in 2s 2.4s ease forwards; }
.hero-chart .pt { fill: var(--bg); stroke: var(--lav); stroke-width: 2.5; opacity: 0; animation: fade-in 0.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.particles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.particles span {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: rgba(var(--c), 0.8); box-shadow: 0 0 14px rgba(var(--c), 0.8); animation: rise var(--d) var(--delay) linear infinite;
}
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translateY(-105vh) translateX(var(--x)); opacity: 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem 0.45rem 0.8rem; margin-bottom: 1.6rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 700; color: var(--teal-ink);
  backdrop-filter: blur(10px); animation: rise-in 0.9s 0.1s var(--ease) both;
}
.badge i { position: relative; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--teal); }
.badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 2.2s ease-out infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 600; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-right: 0.22em; }
.hero h1 .word > span { display: inline-block; animation: word-up 1.1s calc(0.25s + var(--i) * 0.09s) var(--ease) both; }
@keyframes word-up { from { transform: translateY(110%) rotate(3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-title {
  margin-top: 1.1rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 500; font-style: italic;
  background: linear-gradient(100deg, var(--teal-ink), var(--lav-ink), var(--peach-ink), var(--teal-ink)); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite, rise-in 1s 0.8s var(--ease) both;
}
@keyframes shimmer { to { background-position: 250% 0; } }
.hero-tagline { margin-top: 1.4rem; max-width: 34rem; font-size: 1.15rem; color: var(--ink-2); animation: rise-in 1s 1s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; animation: rise-in 1s 1.15s var(--ease) both; }

.portrait { position: relative; width: min(100%, 25rem); margin-inline: auto; aspect-ratio: 1; animation: rise-in 1.2s 0.5s var(--ease) both; }
.portrait .ring {
  position: absolute; inset: -9%; border-radius: 50%; filter: blur(34px); opacity: 0.85;
  background: conic-gradient(from 0deg, var(--teal), var(--lav), var(--peach), var(--sky), var(--teal)); animation: spin 22s linear infinite;
}
.portrait .frame {
  position: absolute; inset: 0; overflow: hidden; border: 7px solid var(--surface-strong); box-shadow: var(--shadow-lg);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; animation: morph 16s ease-in-out infinite; background: var(--bg-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.05); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  33% { border-radius: 56% 44% 46% 54% / 55% 55% 45% 45%; }
  66% { border-radius: 47% 53% 58% 42% / 42% 56% 44% 58%; }
}
.float-chip {
  position: absolute; z-index: 2; padding: 0.55rem 1.05rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--c-ink);
  background: var(--surface-strong); border: 1px solid rgba(var(--c), 0.5); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); animation: float 7s ease-in-out infinite;
}
.float-chip:nth-of-type(1) { top: 6%; left: -4%; }
.float-chip:nth-of-type(2) { top: 44%; right: -3%; animation-delay: -2.4s; }
.float-chip:nth-of-type(3) { bottom: 5%; left: 2%; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.scroll-hint i { width: 1.4rem; height: 2.3rem; border: 2px solid var(--ink-3); border-radius: 999px; position: relative; opacity: 0.7; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 0.4rem; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink-3); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.9rem); } }

/* ---------- Bandeau d'outils ---------- */
.marquee { padding: 1.3rem 0; border-block: 1px solid var(--line); background: var(--surface); 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 { display: flex; width: max-content; animation: scroll-x 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 0.8rem; color: var(--lav); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-text { font-size: 1.12rem; color: var(--ink-2); }
.about-text p + p { margin-top: 1.1rem; }
.about-text p:first-child { font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.45; color: var(--ink); font-variation-settings: "SOFT" 100; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { padding: 1.5rem 1.3rem; text-align: left; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--c-ink); font-weight: 600; }
.stat span { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- Compétences ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.3rem; }
.skill-card { padding: 1.7rem 1.6rem 1.8rem; }
.skill-card::after { content: ""; position: absolute; left: 1.6rem; top: 0; width: 3.2rem; height: 4px; border-radius: 0 0 6px 6px; background: rgb(var(--c)); }
.skill-card h3 { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1.2rem; font-size: 1.25rem; }
.skill-card h3 small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--c-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.35; font-weight: 600;
  background: rgba(var(--c), 0.14); border: 1px solid rgba(var(--c), 0.32); color: var(--ink);
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.3s;
}
.chip:hover { transform: translateY(-3px) scale(1.03); background: rgba(var(--c), 0.28); box-shadow: 0 8px 18px -8px rgba(var(--c), 1); }
.chip em { font-style: normal; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-ink); }

/* ---------- Frise du parcours ---------- */
.timeline { position: relative; max-width: 62rem; margin-inline: auto; }
.t-rail, .t-progress { position: absolute; left: 50%; top: 0.5rem; bottom: 0.5rem; width: 2px; margin-left: -1px; border-radius: 2px; }
.t-rail { background: var(--line); }
.t-progress { bottom: auto; height: calc(var(--progress, 0) * 1%); max-height: calc(100% - 1rem); background: var(--grad); box-shadow: 0 0 14px rgba(var(--lav-rgb), 0.7); }
.t-item { position: relative; width: 50%; padding: 0 3.2rem 2.8rem 0; }
.t-item:nth-of-type(even) { margin-left: 50%; padding: 0 0 2.8rem 3.2rem; }
.t-item::before {
  content: ""; position: absolute; top: 1.6rem; right: -0.6rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; z-index: 2;
  background: var(--bg); border: 3px solid var(--line); transition: background 0.6s, border-color 0.6s, box-shadow 0.6s, transform 0.6s var(--ease);
}
.t-item:nth-of-type(even)::before { right: auto; left: -0.6rem; }
.t-item.in::before { background: rgb(var(--c)); border-color: var(--bg); box-shadow: 0 0 0 5px rgba(var(--c), 0.28); transform: scale(1.08); }
.t-card { padding: 1.6rem 1.7rem 1.7rem; }
.t-period { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.85rem; margin-bottom: 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; background: rgba(var(--c), 0.18); color: var(--c-ink); }
.t-now { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(var(--c)); }
.t-now::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgb(var(--c)); animation: ping 2s ease-out infinite; }
.t-card h3 { font-size: 1.28rem; line-height: 1.25; }
.t-company { margin-top: 0.35rem; font-weight: 700; color: var(--c-ink); }
.t-place { font-size: 0.88rem; color: var(--ink-3); }
.t-desc { margin-top: 0.9rem; font-size: 0.97rem; color: var(--ink-2); }
.t-list { margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.t-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.t-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(var(--c), 0.3); box-shadow: inset 0 0 0 3px rgb(var(--c)); transform: scale(0.7); }

/* ---------- Projets / blog / témoignages ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; overflow: hidden; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; gap: 0.8rem; }
.card-body h3 { font-size: 1.25rem; }
.card-body p { color: var(--ink-2); font-size: 0.97rem; }
.card-meta { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: var(--c-ink); }
.card details summary { cursor: pointer; font-weight: 700; color: var(--c-ink); }
.card details p { margin-top: 0.6rem; white-space: pre-line; }
.card-links { margin-top: auto; display: flex; gap: 1.2rem; font-weight: 700; font-size: 0.92rem; }
.card-links a { color: var(--c-ink); }
.card-links a:hover { text-decoration: underline; }
.quote { padding: 2rem 1.9rem; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.55; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; color: rgb(var(--c)); }
.quote figcaption { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); }

/* ---------- Formation ---------- */
.edu-group + .edu-group { margin-top: 3rem; }
.edu-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.3rem; }
.edu-head h3 { font-size: 1.45rem; }
.edu-head .count { min-width: 1.8rem; padding: 0.1rem 0.55rem; border-radius: 999px; text-align: center; font-size: 0.8rem; font-weight: 800; background: rgba(var(--c), 0.2); color: var(--c-ink); }
.edu-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.1rem; }
.edu-card { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.edu-year { align-self: flex-start; padding: 0.22rem 0.7rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; background: rgba(var(--c), 0.18); color: var(--c-ink); }
.edu-card h4 { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; font-weight: 600; font-variation-settings: "SOFT" 100; }
.edu-card p { font-size: 0.9rem; color: var(--ink-2); }
.edu-card a.verify { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--c-ink); }

/* ---------- Centres d'intérêt ---------- */
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; max-width: 46rem; margin-inline: auto; }
.bubble { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.5rem 0.8rem 1.1rem; border-radius: 999px; font-weight: 700; animation: float 8s calc(var(--i) * -1.3s) ease-in-out infinite; }
.bubble span { font-size: 1.5rem; line-height: 1; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; border-radius: 40px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.contact-card::before, .contact-card::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; }
.contact-card::before { width: 22rem; height: 22rem; left: -7rem; top: -8rem; background: var(--teal); animation: drift-a 20s ease-in-out infinite alternate; }
.contact-card::after { width: 20rem; height: 20rem; right: -6rem; bottom: -8rem; background: var(--peach); animation: drift-b 24s ease-in-out infinite alternate; }
.dark .contact-card::before, .dark .contact-card::after { opacity: 0.22; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card .section-head { margin-bottom: 2rem; }
.contact-email { display: block; margin-top: 1.1rem; font-size: 0.95rem; color: var(--ink-2); }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.social-row a { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-strong); transition: transform 0.45s var(--ease), background 0.3s; }
.social-row a:hover { transform: translateY(-5px) rotate(-6deg); background: rgba(var(--lav-rgb), 0.3); }
.social-row svg { width: 1.2rem; height: 1.2rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; max-width: 40rem; margin: 0 auto; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 700; }
.form input, .form textarea { width: 100%; padding: 0.85rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid rgba(var(--lav-rgb), 0.8); border-color: transparent; }
.form-status { margin-top: 1rem; min-height: 1.4em; font-size: 0.95rem; font-weight: 600; }
.form-status.ok { color: var(--teal-ink); }
.form-status.err { color: var(--peach-ink); }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.flash { max-width: 40rem; margin: 0 auto 1rem; padding: 0.8rem 1.1rem; border-radius: 16px; font-size: 0.92rem; background: rgba(var(--teal-rgb), 0.2); }
.flash.error { background: rgba(var(--peach-rgb), 0.3); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--ink-3); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink-2); }
.to-top:hover { color: var(--ink); }
.to-top svg { width: 1rem; height: 1rem; transition: transform 0.4s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- Article / erreurs ---------- */
.page-top { padding-top: 8.5rem; }
.prose { max-width: 42rem; margin-inline: auto; font-size: 1.08rem; color: var(--ink-2); }
.prose h2, .prose h3 { margin: 2.2rem 0 0.8rem; color: var(--ink); }
.prose p { margin: 1rem 0; }
.prose a { color: var(--teal-ink); text-decoration: underline; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.3rem; list-style: revert; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--lav); font-style: italic; }
.post-meta { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-3); }
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.error-page .big { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .brand-name { display: none; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(70%, 19rem); }
  .hero { padding-top: 6.5rem; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-tagline, .hero-copy .hero-actions { margin-inline: auto; justify-content: center; }
  .scroll-hint { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .t-rail, .t-progress { left: 0.65rem; }
  .t-item, .t-item:nth-of-type(even) { width: 100%; margin-left: 0; padding: 0 0 2.2rem 2.4rem; }
  .t-item::before, .t-item:nth-of-type(even)::before { left: 0; right: auto; top: 1.5rem; }
  .js .reveal-right { transform: translateX(-34px); }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .float-chip { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.2rem 1rem; }
}

/* ---------- Accessibilité : moins de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-chart .line { stroke-dashoffset: 0; }
  .hero-chart .area, .hero-chart .pt { opacity: 1; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .particles { display: none; }
}

/* Cartes de même hauteur dans les grilles (le wrapper porte la révélation) */
.reveal > .glass, .reveal > .card { height: 100%; }
