/* =========================================================
   Fabrice Vallès — CV en ligne
   Layout éditorial / magazine — duotone photo
   ========================================================= */

:root {
  --bg: #0b0f14;
  --bg-alt: #0f141b;
  --surface: #131a23;
  --surface-2: #1a222d;
  --border: #233040;
  --border-soft: #18222e;
  --text: #e6edf3;
  --text-dim: #9aa7b5;
  --text-mute: #6b7886;
  --accent: #eab308;
  --accent-2: #f59e0b;
  --accent-grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --border: #dde4ec;
  --border-soft: #e6ecf2;
  --text: #0f1620;
  --text-dim: #4a5765;
  --text-mute: #7a8794;
  --accent: #ca8a04;
  --accent-2: #d97706;
  --accent-grad: linear-gradient(135deg, #ca8a04 0%, #d97706 100%);
  --shadow: 0 20px 50px -20px rgba(15, 22, 32, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-grad);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--accent-grad);
  color: #1a1206;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--mono);
}
.nav__brand-name { font-size: 15px; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.is-active { color: var(--accent); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* Lang switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch__btn {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang-switch__btn.is-active {
  background: var(--accent-grad);
  color: #1a1206;
}
.lang-switch__sep { width: 1px; height: 14px; background: var(--border); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.theme-toggle:hover { transform: rotate(-15deg); border-color: var(--accent); }
.theme-toggle .icon { width: 18px; height: 18px; fill: currentColor; }

.nav__linkedin {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.nav__linkedin svg { width: 17px; height: 17px; fill: currentColor; }
.nav__linkedin:hover { color: #0a66c2; border-color: #0a66c2; transform: translateY(-2px); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — éditorial asymétrique
   ========================================================= */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 85% 15%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(40% 40% at 5% 85%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 30% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black, transparent 75%);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero__text { position: relative; }

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.hero__status .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.hero__title-accent {
  font-style: italic;
  font-weight: 600;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 10px;
}
.hero__role-sep { color: var(--text-mute); margin: 0 10px; font-family: var(--mono); }

.hero__location {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__chips li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ----- Photo duotone ----- */
.hero__photo {
  position: relative;
  margin: 0;
}
.hero__photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.hero__photo-frame:hover img {
  transform: scale(1.03);
  filter: grayscale(60%) contrast(1.05) brightness(1);
}
/* Calque duotone : dégradé accent en blend */
.hero__photo-duotone {
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.hero__photo-frame:hover .hero__photo-duotone { opacity: 0.25; }
/* Voile sombre bas pour lisibilité caption */
.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 45%);
  pointer-events: none;
}

.hero__photo-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.hero__photo-num {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrolldown 1.6s infinite;
}
@keyframes scrolldown {
  0% { transform: translateY(-6px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ----- Hero work strip (réalisations compact) ----- */
.hero__work {
  width: 100%;
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 0 32px;
}
.hero__work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hero__work-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__work-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  transition: color 0.2s;
}
.hero__work-link:hover { color: var(--accent); }

.hero__work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hero__work-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.hero__work-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.hero__work-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.hero__work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.4s;
  filter: grayscale(100%);
}
.hero__work-card:hover .hero__work-shot img {
  transform: scale(1.04);
  filter: grayscale(0);
}
.hero__work-open {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.hero__work-card:hover .hero__work-open {
  opacity: 1;
  transform: translateY(0);
}
.hero__work-name {
  display: block;
  padding: 14px 16px 2px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__work-url {
  display: block;
  padding: 0 16px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  word-break: break-all;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--accent-grad);
  color: #1a1206;
  box-shadow: 0 8px 24px -10px var(--accent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* =========================================================
   SECTIONS — en-têtes éditoriales
   ========================================================= */
.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.section--alt { background: var(--bg-alt); }

.section__head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.section__num-big {
  position: absolute;
  right: 0;
  top: -28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--surface-2);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   PROFIL — pull-quote
   ========================================================= */
.lead {
  position: relative;
  max-width: 880px;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
}
.lead p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.lead p:last-child { margin-bottom: 0; color: var(--text-dim); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 28px 20px;
  text-align: left;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--surface); }
.stat__num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--mono);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   COMPÉTENCES — lignes définition
   ========================================================= */
.skill-rows { display: flex; flex-direction: column; }
.skill-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
  transition: padding-left 0.3s var(--ease);
}
.skill-row:first-child { border-top: 1px solid var(--border-soft); }
.skill-row:hover { padding-left: 12px; }
.skill-row dt {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 6px;
}
.skill-row dd { min-width: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tags li:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }

/* =========================================================
   EXPÉRIENCE — marqueurs annuels oversize
   ========================================================= */
.xp { list-style: none; }
.xp__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  transition: padding-left 0.3s var(--ease);
}
.xp__item:first-child { border-top: 1px solid var(--border-soft); }
.xp__item:hover { padding-left: 12px; }

.xp__year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.xp__year-end {
  font-size: 0.5em;
  font-style: normal;
  font-weight: 600;
  color: var(--text-mute);
  -webkit-text-fill-color: var(--text-mute);
  margin-left: 2px;
}

.xp__body { min-width: 0; }
.xp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
  align-items: center;
}
.xp__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.xp__loc {
  font-size: 12px;
  color: var(--text-mute);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.xp__role {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.xp__desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.xp__list { list-style: none; margin-bottom: 16px; }
.xp__list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 7px;
}
.xp__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.xp__stack {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  letter-spacing: 0.02em;
}

/* =========================================================
   RÉALISATIONS — galerie
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.gallery__card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.gallery__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.gallery__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.gallery__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.4s;
  filter: grayscale(100%);
}
.gallery__card:hover .gallery__shot img {
  transform: scale(1.04);
  filter: grayscale(0);
}
.gallery__open {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gallery__card:hover .gallery__open {
  opacity: 1;
  transform: translateY(0);
}
.gallery__meta {
  padding: 22px 24px 26px;
}
.gallery__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.gallery__url {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  word-break: break-all;
}
.gallery__desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   FORMATION
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.block-title {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 22px;
}
.edu { list-style: none; }
.edu li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.edu li:last-child { border-bottom: 0; }
.edu__year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  min-width: 60px;
}
.edu__label { color: var(--text-dim); padding-top: 2px; }

.lang { list-style: none; }
.lang li {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}
.lang__name { font-weight: 600; }
.lang__level { font-size: 12px; color: var(--text-mute); }
.lang__bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.lang__bar span {
  display: block;
  height: 100%;
  background: var(--accent-grad);
  border-radius: 999px;
  transform-origin: left;
  animation: grow 1.2s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.info { list-style: none; }
.info li {
  padding: 12px 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft);
}
.info li:last-child { border-bottom: 0; }

/* =========================================================
   CONTACT — éditorial asymétrique
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__lead { padding-top: 8px; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.contact__sub { color: var(--text-dim); margin-bottom: 32px; font-size: 1.05rem; max-width: 460px; }
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.contact__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas: "ico key" "ico value";
  gap: 2px 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: padding-left 0.3s var(--ease);
}
.contact__list li:hover { padding-left: 10px; }
.contact__ico {
  grid-area: ico;
  align-self: start;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--accent);
  font-size: 14px;
  font-family: var(--mono);
}
.contact__key {
  grid-area: key;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.contact__link {
  grid-area: value;
  color: var(--text);
  font-size: 1.02rem;
  transition: color 0.2s;
}
.contact__link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-mute);
  font-size: 13px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__photo { max-width: 420px; }
  .hero__work-grid { grid-template-columns: 1fr 1fr; }
  .hero__work-card:nth-child(3) { grid-column: 1 / -1; max-width: 50%; }
  .skill-row { grid-template-columns: 160px 1fr; gap: 20px; }
  .xp__item { grid-template-columns: 120px 1fr; gap: 24px; }
  .xp__year { position: static; font-size: 2.4rem; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 88px 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav__inner { padding: 0 22px; }
  .hero__grid { padding: 0 22px; }
  .hero__work { padding: 0 22px; }
  .hero__work-grid { grid-template-columns: 1fr; }
  .hero__work-card:nth-child(3) { grid-column: auto; max-width: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    z-index: 99;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 12px 14px; }
  .nav__burger { display: flex; }
  .nav__brand-name { display: none; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 44px; }
  .skill-row { grid-template-columns: 1fr; gap: 10px; }
  .skill-row dt { padding-top: 0; }
  .xp__item { grid-template-columns: 1fr; gap: 12px; }
  .xp__year { font-size: 2rem; }
  .contact__list li { grid-template-columns: 36px 1fr; }
  .lead { padding-left: 20px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .hero__cta .btn { flex: 1; justify-content: center; }
  .section__num-big { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .hero__scroll, .scroll-progress, .contact__cta .btn--ghost { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  .reveal { opacity: 1; transform: none; }
  .hero__photo-duotone { opacity: 0.2; }
  .xp__year { position: static; }
}

/* ---------- Hidden helper ---------- */
[hidden] { display: none !important; }
