/* ══════════════════════════════════════════════
   INTER - Google Fonts
══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.cls-1 {
  opacity: .85;
}

.cls-2, .cls-3 {
  opacity: .75;
}

.cls-3 {
  fill: none;
  stroke: #fff;
  stroke-width: 5.37px;
}

.cls-3, .cls-4 {
  stroke-miterlimit: 10;
}

.cls-5 {
  opacity: .65;
}

.cls-4 {
  fill: #1a1a1a;
  stroke: #000;
  stroke-width: 1.12px;
}

.cls-6 {
  fill: #2c2c2e;
}


/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
  /* Surfaces */
  --bg-page:       #f5f5f7;
  --bg-white:      #ffffff;
  --bg-frost:      rgba(255, 255, 255, 0.82);
  --bg-subtle:     #f5f5f7;
  --bg-hover:      rgba(0, 0, 0, 0.04);
  --bg-card:       #ffffff;
  --bg-hover-card: #ebebed;

  /* Nav */
  --nav-bg:        rgba(22, 22, 23, 0.88);
  --nav-text:      rgba(255, 255, 255, 0.92);
  --nav-muted:     rgba(255, 255, 255, 0.80);

  /* Borders */
  --border:        #d2d2d7;
  --border-light:  rgba(0, 0, 0, 0.08);
  --border-hover:  #c7c7cc;

  /* Labels */
  --l1: #1d1d1f;
  --l2: #6e6e73;
  --l3: #86868b;
  --l4: #aeaeb2;

  /* Accent */
  --blue:     #2997ff;
  --blue-dark: #0066cc;
  --blue-lo:  rgba(41, 151, 255, 0.08);
  --blue-mid: rgba(41, 151, 255, 0.14);
  --blue-hi:  rgba(41, 151, 255, 0.92);

  /* Typography — Inter */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font:         var(--font-text);

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-pill: 980px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 28px rgba(0, 0, 0, 0.1);

  /* Easing */
  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav height */
  --nav-h: 44px;
}


/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  color: var(--l1);
  background: var(--bg-white);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }
ul { list-style: none; }
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}


/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.32s var(--ease);
}

.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--nav-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.88;
  transition: opacity 0.2s var(--ease);
}

.nav-logo:hover { opacity: 1; }

.nav-logo span {
  color: var(--nav-text);
  opacity: 0.65;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
}

.nav-links li { display: flex; }

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--nav-muted);
  padding: 0 12px;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--nav-text);
  text-decoration: none;
}

.nav-cta {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--nav-muted) !important;
  background: none !important;
  padding: 0 12px !important;
  border-radius: 0 !important;
}

.nav-cta:hover {
  color: var(--nav-text) !important;
  background: none !important;
}


/* ── Switch de langue (FR / EN) ── */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-left: 14px;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.32),
    inset 0 0.5px 0 rgba(0, 0, 0, 0.20);
}

.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.16) 100%
  );
  border-radius: var(--r-pill);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.40),
    0 0.5px 1px rgba(0, 0, 0, 0.25),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.30);
  transition: transform 0.38s cubic-bezier(0.34, 1.12, 0.64, 1);
  pointer-events: none;
}

.lang-switch[data-active="en"] .lang-thumb {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  font-family: var(--font-text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  min-width: 30px;
  text-align: center;
  transition: color 0.2s var(--ease);
}

.lang-btn:hover { color: rgba(255, 255, 255, 0.70); }

.lang-btn[aria-pressed="true"] {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.30);
}

.lang-switch:focus-within {
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.32),
    inset 0 0.5px 0 rgba(0, 0, 0, 0.20),
    0 0 0 2px rgba(255, 255, 255, 0.22);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
  border-radius: var(--r-pill);
}


/* ── Bouton conteneur ── */
.nav-mobile-toggle {
  display: none;
  position: absolute;
  right: 22px;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--nav-text);
  opacity: 0.88;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
  transform: scale(1);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.2s  var(--ease);
  will-change: transform;
}

.nav-mobile-toggle:hover { opacity: 1; }

.nav-mobile-toggle:active {
  transform: scale(0.84);
  transition-duration: 0.08s;
  transition-timing-function: ease-out;
}

/* ── Barres ── */
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-mobile-toggle.open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 22, 23, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 8px 48px 48px;
  z-index: 99;
  gap: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s linear 0.4s;
}

.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s linear 0s;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--nav-text);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  letter-spacing: 0.007em;
  opacity: 0;
  transform: translateY(16px);
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.2s var(--ease);
}

.nav-drawer.open a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.nav-drawer.open a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.nav-drawer.open a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.nav-drawer.open a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
.nav-drawer.open a:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }

.nav-drawer a:hover {
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
}

.nav-drawer a:last-child { border-bottom: none; }


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 22px 96px;
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
}

.hero::before { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  color: var(--l2);
  letter-spacing: -0.01em;
  text-transform: none;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.05s forwards;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--l1);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  color: var(--l2);
  letter-spacing: -0.015em;
  line-height: 1.14286;
  max-width: 640px;
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.28s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 400;
  color: var(--blue);
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.btn-primary:hover,
.btn-secondary:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  transform: none;
  background: none;
  box-shadow: none;
}

.btn-primary svg,
.btn-secondary svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 0.9s forwards;
}

.hero-scroll-hint span {
  font-size: 12px;
  color: var(--l3);
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero-scroll-hint svg {
  width: 14px;
  height: 14px;
  color: var(--l3);
  animation: bounce 2.4s ease-in-out infinite;
}

.hero-profile-image {
  max-width: clamp(200px, 45vw, 400px);
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  object-fit: cover;
  margin: 28px 0 24px 0;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.8s var(--ease-in-out) 0.2s both;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}


/* ══════════════════════════════════════════════
   SECTION LAYOUT
══════════════════════════════════════════════ */
.section {
  padding: 88px 22px;
}

.section-alt { background: var(--bg-page); }
.section-page { background: var(--bg-white); }

.container {
  max-width: 980px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--l2);
  letter-spacing: -0.022em;
  text-transform: none;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--l1);
  line-height: 1.08349;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 21px;
  font-weight: 400;
  color: var(--l2);
  line-height: 1.381;
  letter-spacing: -0.015em;
  max-width: 640px;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  color: var(--l2);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fact-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1),
    box-shadow 0.28s var(--ease);
  will-change: transform;
}

.fact-card:hover {
  background: var(--bg-hover-card);
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.04);
}

.fact-card:hover .fact-icon {
  transform: scale(1.18);
}

.fact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  color: var(--l1);
  margin-bottom: 10px;
  transition: transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1);
}

.fact-icon svg { width: 20px; height: 20px; }

.fact-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--l3);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 2px;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--l1);
  letter-spacing: -0.022em;
}


/* ══════════════════════════════════════════════
   TECH STACK
══════════════════════════════════════════════ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  scale: 0.97;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1),
    box-shadow 0.28s var(--ease);
  cursor: default;
  will-change: transform;
}

/* ── Stagger apparition ── */
@keyframes stack-item-appear {
  from { opacity: 0; scale: 0.97; }
  to   { opacity: 1; scale: 1;    }
}

.stack-section.visible .stack-item {
  animation: stack-item-appear 0.5s cubic-bezier(0.34, 1.42, 0.64, 1) forwards;
}

.stack-section.visible .stack-item:nth-child(1)  { animation-delay: 0.04s; }
.stack-section.visible .stack-item:nth-child(2)  { animation-delay: 0.08s; }
.stack-section.visible .stack-item:nth-child(3)  { animation-delay: 0.12s; }
.stack-section.visible .stack-item:nth-child(4)  { animation-delay: 0.16s; }
.stack-section.visible .stack-item:nth-child(5)  { animation-delay: 0.20s; }
.stack-section.visible .stack-item:nth-child(6)  { animation-delay: 0.24s; }
.stack-section.visible .stack-item:nth-child(7)  { animation-delay: 0.28s; }
.stack-section.visible .stack-item:nth-child(8)  { animation-delay: 0.32s; }
.stack-section.visible .stack-item:nth-child(9)  { animation-delay: 0.36s; }
.stack-section.visible .stack-item:nth-child(10) { animation-delay: 0.40s; }
.stack-section.visible .stack-item:nth-child(11) { animation-delay: 0.44s; }
.stack-section.visible .stack-item:nth-child(12) { animation-delay: 0.48s; }

.stack-item:hover {
  background: var(--bg-hover-card);
  border-color: var(--border-hover);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
}

.stack-item:hover .stack-icon {
  transform: scale(1.22);
}

.stack-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  color: var(--l1);
  transition: transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1);
}

.stack-icon img,
.stack-icon .stack-brand-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.stack-icon svg {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.stack-text-icon {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--l1);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stack-name {
  transition: transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1);
  transform-origin: center bottom;
}
.stack-item:hover .stack-name {
  transform: scale(1.07);
}

.stack-level {
  transition: transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1) 0.03s;
  transform-origin: center top;
}
.stack-item:hover .stack-level {
  transform: scale(1.04);
}

.stack-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--l1);
  text-align: center;
  letter-spacing: -0.016em;
}

.stack-level {
  font-size: 12px;
  font-weight: 400;
  color: var(--l3);
  text-align: center;
}

.stack-section {
  margin-bottom: 40px;
}

.stack-section:last-of-type {
  margin-bottom: 0;
}

.stack-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--l3);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: block;
}


/* ══════════════════════════════════════════════
   COMPETENCES
══════════════════════════════════════════════ */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1),
    box-shadow 0.28s var(--ease);
  will-change: transform;
}

.comp-card:hover {
  background: var(--bg-hover-card);
  border-color: var(--border-hover);
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 12px 28px rgba(0,0,0,0.09), 0 3px 8px rgba(0,0,0,0.04);
}

.comp-card.developing::after {
  content: 'En développement';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 400;
  color: var(--l3);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: -0.01em;
}

.comp-number {
  font-size: 12px;
  font-weight: 400;
  color: var(--l3);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 6px;
}

.comp-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--l1);
  letter-spacing: -0.025em;
  line-height: 1.16667;
  margin-bottom: 4px;
}

.comp-level {
  font-size: 14px;
  font-weight: 400;
  color: var(--l3);
  margin-bottom: 16px;
}

.comp-desc {
  font-size: 17px;
  color: var(--l2);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  margin-bottom: 20px;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--l2);
  line-height: 1.42857;
  letter-spacing: -0.016em;
}

.comp-list li svg {
  width: 12px;
  height: 12px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.comp-divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: 20px;
}


/* ══════════════════════════════════════════════
   PROJETS
══════════════════════════════════════════════ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.project-card:hover {
  transform: none;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.project-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  border-bottom: none;
}

.project-visual .project-banner {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-banner {
  transform: scale(1.02);
}

.project-visual-icon {
  position: absolute;
  left: 28px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: #000;
  transition: transform 0.3s var(--ease);
  z-index: 2;
}

.project-visual-icon svg,
.project-visual-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-visual .project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-visual-icon {
  transform: scale(1.04) translateY(-1px);
}

.project-header.has-visual {
  padding-top: 40px;
}

.project-context p {
  margin-bottom: 16px;
}
.project-context p:last-child {
  margin-bottom: 0;
}

.soft-skills-block {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1),
    box-shadow 0.28s var(--ease);
  will-change: transform;
}

.soft-skills-block:hover {
  background: var(--bg-hover-card);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.soft-skills-block h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16667;
  margin-bottom: 8px;
}

.soft-skills-block p {
  font-size: 17px;
  color: var(--l2);
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

.interest-pill {
  font-size: 14px;
  font-weight: 400;
  color: var(--l2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition:
    background 0.28s var(--ease),
    color 0.2s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  display: inline-block;
}

.interest-pill:hover {
  background: var(--bg-hover-card);
  border-color: var(--border-hover);
  color: var(--l1);
  transform: translateY(-2px) scale(1.06);
}

.project-header {
  padding: 28px 32px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}

.project-meta { flex: 1; }

.project-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  background: transparent;
  color: var(--l3);
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 6px;
  white-space: nowrap;
}

.project-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--l1);
  letter-spacing: -0.03em;
  line-height: 1.14286;
  margin-bottom: 4px;
}

.project-tagline {
  font-size: 17px;
  color: var(--l2);
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

.project-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  align-items: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 400;
  color: var(--blue);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s var(--ease);
}

.project-link:hover {
  color: var(--blue-dark);
  border-color: transparent;
  background: none;
  text-decoration: underline;
}

.project-link svg { width: 12px; height: 12px; }

.project-body {
  padding: 24px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  background: var(--bg-card);
}

.project-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--l3);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 8px;
}

.project-context {
  font-size: 14px;
  color: var(--l2);
  line-height: 1.42857;
  letter-spacing: -0.016em;
}

.project-skills-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-skills-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 14px;
  color: var(--l2);
  line-height: 1.42857;
}

.project-skills-list li svg {
  width: 11px;
  height: 11px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--l2);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.project-reflection {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  grid-column: 1 / -1;
}

.reflection-text {
  font-size: 17px;
  color: var(--l2);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-style: normal;
  padding-left: 0;
  border-left: none;
}


/* ══════════════════════════════════════════════
   PARCOURS / CV
══════════════════════════════════════════════ */
.cv-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cv-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--l3);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 16px;
  padding-bottom: 28px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--l3);
  border: none;
  box-shadow: none;
  flex-shrink: 0;
  margin-top: 6px;
}

.timeline-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 4px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--l3);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--l1);
  letter-spacing: -0.022em;
  line-height: 1.23536;
  margin-bottom: 2px;
}

.timeline-sub {
  font-size: 14px;
  color: var(--l3);
  margin-bottom: 6px;
  letter-spacing: -0.016em;
}

.timeline-desc {
  font-size: 14px;
  color: var(--l2);
  line-height: 1.42857;
  letter-spacing: -0.016em;
}

.interests-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}


/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before { display: none; }

.contact-card .section-eyebrow {
  color: var(--l3);
}

.contact-card .section-title {
  color: var(--l1);
  margin-bottom: 12px;
}

.contact-card .section-lead {
  color: var(--l2);
  margin: 0 auto 32px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 21px;
  font-weight: 400;
  color: var(--blue);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s var(--ease);
}

.contact-link:hover {
  color: var(--blue-dark);
  transform: none;
  text-decoration: underline;
}

.contact-link svg { width: 16px; height: 16px; }

.contact-link-primary {
  background: none;
  border: none;
  color: var(--blue);
}

.contact-link-primary:hover {
  background: none;
  border: none;
  color: var(--blue-dark);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  padding: 18px 22px 24px;
  text-align: left;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--l3);
  line-height: 1.33337;
  letter-spacing: -0.01em;
  max-width: 520px;
}

.footer-legal {
  font-size: 12px;
  color: var(--l3);
  line-height: 1.33337;
  letter-spacing: -0.01em;
}


/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }


/* ══════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ══════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-frost);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  color: var(--l1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s cubic-bezier(0.34, 1.42, 0.64, 1);
  box-shadow: var(--shadow-sm);
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: var(--shadow-md);
}

.back-top:active { transform: scale(0.94); }


/* ══════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page:      #000000;
    --bg-white:     #1c1c1e;
    --bg-frost:     rgba(58, 58, 60, 0.88);
    --bg-subtle:    #000000;
    --bg-card:      #2c2c2e;
    --bg-hover:     rgba(255, 255, 255, 0.06);
    --bg-hover-card:#3a3a3c;

    --nav-bg:       rgba(28, 28, 30, 0.88);
    --nav-muted:    rgba(255, 255, 255, 0.56);

    --border:        rgba(255, 255, 255, 0.12);
    --border-light:  rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(255, 255, 255, 0.24);

    --l1: #ffffff;
    --l2: rgba(235, 235, 245, 0.72);
    --l3: rgba(235, 235, 245, 0.48);
    --l4: rgba(235, 235, 245, 0.28);

    --blue:      #0a84ff;
    --blue-dark: #409cff;
    --blue-lo:   rgba(10, 132, 255, 0.14);
    --blue-mid:  rgba(10, 132, 255, 0.20);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.50);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.55);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.60);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.70);
  }

  .hero-eyebrow {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(235, 235, 245, 0.72);
  }

  .stack-item {
    background: var(--bg-card);
  }

  .stack-item:hover {
    background: var(--bg-hover-card);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.30);
  }

  .fact-card {
    background: var(--bg-card);
  }

  .fact-card:hover {
    background: var(--bg-hover-card);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.30);
  }

  .comp-card {
    background: var(--bg-card);
  }

  .comp-card:hover {
    background: var(--bg-hover-card);
    border-color: var(--border-hover);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 3px 8px rgba(0,0,0,0.3);
  }

  .comp-card.developing::after {
    background: #3a3a3c;
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(235, 235, 245, 0.55);
  }

  .project-card {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .project-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 16px rgba(0,0,0,0.55);
  }

  .project-header,
  .project-body {
    background: var(--bg-card);
  }

  .project-visual {
    background: #1c1c1e;
  }

  .project-visual-icon {
    border-color: #2c2c2e;
  }

  .project-tag {
    background: #3a3a3c;
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(235, 235, 245, 0.72);
  }

  .contact-card {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .soft-skills-block {
    background: var(--bg-card);
  }

  .soft-skills-block:hover {
    background: var(--bg-hover-card);
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  }

  .interest-pill {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(235, 235, 245, 0.72);
  }

  .interest-pill:hover {
    background: var(--bg-hover-card);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
  }

  .footer-copy,
  .footer-legal {
    color: rgba(235, 235, 245, 0.48);
  }

  .back-top {
    background: rgba(58, 58, 60, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .invert-on-dark {
    filter: brightness(0) invert(1) opacity(0.85);
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1068px) {
  .nav-links a { padding: 0 8px; font-size: 11px; }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .comp-grid { grid-template-columns: 1fr; }
  .cv-cols { grid-template-columns: 1fr; gap: 40px; }
  .project-body { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 56px 32px; }
}

@media (max-width: 734px) {
  :root { --nav-h: 48px; }
  .section { padding: 64px 28px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { padding-right: 78px; }
  .lang-switch { margin-left: 0; }
  .hero h1 { font-size: 40px; text-wrap: balance; }
  .hero-subtitle { font-size: 19px; text-wrap: balance; }
  .hero-actions { gap: 20px; }
  .btn-primary, .btn-secondary { font-size: 17px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .project-header { flex-direction: column; gap: 12px; }
  .project-body { grid-template-columns: 1fr; gap: 24px; }
  .project-reflection { grid-column: 1; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .contact-card {
    padding: 48px 28px;
    max-width: 640px;
    margin: 0 auto;
  }
  .contact-card .section-title { text-wrap: balance; }
  .contact-card .section-lead {
    text-wrap: balance;
    max-width: 90%;
    margin: 0 auto 28px;
  }
  .contact-link { font-size: 17px; }
  .footer-inner { flex-direction: column; }
  .project-links { flex-wrap: wrap; gap: 12px; }
  .project-title { font-size: 24px; text-wrap: balance; }
  .nav-drawer { padding: 8px 24px 48px; }
  .stack-section { margin-bottom: 32px; }
  .project-badge {
    white-space: normal;
  }
  .section-title { text-wrap: balance; }
  .section-lead { text-wrap: balance; }
  .about-text p { text-wrap: balance; }
  .project-tagline { text-wrap: balance; }
}

@media (max-width: 420px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-thumb {
    transition: none;
  }

  .nav-mobile-toggle,
  .nav-toggle-bar {
    transition: none;
    animation: none;
  }
  .nav-mobile-toggle:active {
    transform: none;
  }
  .nav-drawer,
  .nav-drawer a {
    transition: none;
    transform: none;
  }
  .nav-drawer { opacity: 1; visibility: hidden; }
  .nav-drawer.open { visibility: visible; }
  .nav-drawer.open a { opacity: 1; transform: none; }

  .stack-item:hover,
  .project-card:hover .project-banner,
  .project-card:hover .project-visual-icon,
  .fact-card:hover,
  .soft-skills-block:hover,
  .interest-pill:hover,
  .comp-card:hover,
  .reveal,
  .hero-eyebrow,
  .hero h1,
  .hero-subtitle,
  .hero-actions,
  .hero-scroll-hint {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .stack-item:hover,
  .fact-card:hover,
  .comp-card:hook,
  .soft-skills-block:hover,
  .interest-pill:hover {
    transform: none;
    box-shadow: none;
  }
  .stack-item:hover .stack-icon,
  .fact-card:hover .fact-icon {
    transform: none;
  }

  .stack-item { opacity: 1; scale: 1; animation: none; }
  .stack-section.visible .stack-item { animation: none; }

  .reveal { opacity: 1; }
}