:root {
  --bg: #07070a;
  --bg2: #0d0d12;
  --bg3: #11111a;
  --white: #f2f2f4;
  --blue: #3b82f6;
  --blue2: #1d4ed8;
  --blue-dim: rgba(59, 130, 246, 0.08);
  --blue-border: rgba(59, 130, 246, 0.18);
  --gray: #2a2a35;
  --gray2: #1a1a22;
  --muted: #fefefea7;
  --font: "Bricolage Grotesque", sans-serif;
  --mono: "DM Mono", monospace;
}

/* ── LIGHT MODE ── */
body.light {
  --bg: #f4f4f8;
  --bg2: #eaeaef;
  --bg3: #e0e0e8;
  --white: #0d0d14;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --blue-dim: rgba(37, 99, 235, 0.08);
  --blue-border: rgba(37, 99, 235, 0.22);
  --gray: #c8c8d4;
  --gray2: #d4d4de;
  --muted: #0d0d14b0;
}
body.light nav {
  background: rgba(234, 234, 239, 0.82);
  border-color: var(--gray);
}
body.light .mob-nav {
  background: rgba(244, 244, 248, 0.98);
}
body.light #cur {
  background: var(--white);
}
body.light .orb-icon {
  background: var(--bg2) !important;
}
body.light .hero-photo {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.18), inset 0 0 20px var(--blue-dim);
}
body.light .fc-bg-num {
  color: rgba(37, 99, 235, 0.06);
}

/* ── THEME TOGGLE BUTTON ── */
#theme-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--gray2);
  color: var(--white);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
#theme-toggle:hover {
  border-color: var(--blue-border);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
  transform: scale(1.08);
}
#theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s, transform 0.3s;
}
#theme-toggle .icon-sun { display: none; }
#theme-toggle .icon-moon { display: block; }
body.light #theme-toggle .icon-sun { display: block; }
body.light #theme-toggle .icon-moon { display: none; }

/* ── MOB THEME TOGGLE (inside menu) ── */
.mob-theme-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mob-theme-label {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  cursor: none;
  background: none;
  border: none;
  padding: 0;
}
.mob-theme-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.mob-theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.mob-theme-track {
  position: absolute;
  inset: 0;
  background: var(--gray2);
  border-radius: 100px;
  border: 1px solid var(--gray);
  transition: background 0.3s;
  cursor: none;
}
.mob-theme-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.3s, background 0.3s;
}
body.light .mob-theme-track {
  background: var(--blue2);
  border-color: var(--blue2);
}
body.light .mob-theme-track::after {
  transform: translateX(24px);
  background: #fff;
}

@media (max-width: 900px) {
  #theme-toggle {
    display: none;
  }
  #cur,
  #cur-ring {
    display: none !important;
  }
  body {
    cursor: auto;
  }
  a, button, [role="button"], label, input, textarea, select {
    cursor: auto;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CURSOR ── */
#cur {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.15s,
    height 0.15s,
    background 0.2s;
}
#cur-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s,
    height 0.25s,
    border-color 0.2s;
}
body.link-hover #cur {
  width: 6px;
  height: 6px;
  background: var(--blue);
}
body.link-hover #cur-ring {
  width: 52px;
  height: 52px;
  border-color: var(--blue);
}

/* ── SCROLL BAR ── */
#sbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  z-index: 8999;
  width: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  transition: width 0.08s linear;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(13, 13, 18, 0.75);
  backdrop-filter: blur(18px);
  border: 1px solid var(--gray);
  border-radius: 100px;
  padding: 10px 24px;
  white-space: nowrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: dot-pulse 3s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--blue2);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 8px 18px;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.nav-cta:hover {
  background: #1e40af;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* burger */
#burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 2px;
}
#burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
/* Croix quand menu ouvert */
#burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.mob-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 7, 10, 0.97);
  z-index: 7900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mob-nav.open {
  display: flex;
}
.mob-nav a {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.mob-nav a:hover {
  color: var(--blue);
}
#mob-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: none;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6vw 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(59, 130, 246, 0.13) 0%,
    transparent 70%
  );
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* Photo ronde avec cercle pointillé tournant */
.hero-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 48px;
  animation: fadeIn 0.9s both 0.1s;
}
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.55);
  animation: spin-slow 18s linear infinite;
}
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed var(--blue-border);
  animation: spin-slow 28s linear infinite reverse;
}
@keyframes spin-slow {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.3),
    inset 0 0 30px var(--blue-dim);
}
.hero-photo img,
.hero-photo > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1025, #120a20);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Headline centré */
.hero-headline {
  overflow: hidden;
  margin-bottom: 28px;
}
.hero-line {
  display: block;
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -2px;
}
.hero-line:nth-child(1) {
  color: var(--white);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.25s;
}
.hero-line:nth-child(2) {
  color: var(--blue);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.4s;
  text-shadow: 0 0 60px rgba(59, 130, 246, 0.3);
}

/* Desc centrée */
.hero-desc {
  max-width: 540px;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.78;
  color: var(--muted);
  margin: 0 auto 32px;
  animation: fadeIn 1s both 0.65s;
}

/* KPIs */
.hero-kpis {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  animation: fadeIn 1s both 0.8s;
}
.kpi-item {
  padding: 18px 32px;
  border-right: 1px solid var(--gray2);
  text-align: center;
}
.kpi-item:last-child {
  border-right: none;
}
.kpi-n {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1;
}
.kpi-n span {
  color: var(--blue);
}
.kpi-l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
}

/* Boutons */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s both 0.95s;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue2);
  color: var(--white);
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  background: #1e40af;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray);
  color: var(--white);
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--blue-border);
  color: var(--blue);
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  animation: fadeIn 1s both 1.2s;
}
.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-arrow::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue);
  animation: scroll-flow 2s ease-in-out infinite;
}
@keyframes scroll-flow {
  0% {
    top: -100%;
  }
  100% {
    top: 200%;
  }
}

/* ── SECTION COMMON ── */
section {
  padding: 120px 6vw;
}
.s-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  opacity: 0;
  transition:
    opacity 0.7s,
    transform 0.7s;
  transform: translateY(12px);
}
.s-label::before {
  content: "•";
}
.s-label.vis {
  opacity: 1;
  transform: none;
}
.s-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 72px;
  opacity: 0;
  transition:
    opacity 0.7s 0.1s,
    transform 0.7s 0.1s;
  transform: translateY(16px);
}
.s-title.vis {
  opacity: 1;
  transform: none;
}
.s-title em {
  font-style: normal;
  color: var(--blue);
}

/* ── ABOUT ── */
#about {
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.about-body p.vis {
  opacity: 1;
  transform: none;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray2);
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.stat-row.vis {
  opacity: 1;
  transform: none;
}
.stat-row:first-child {
  border-top: 1px solid var(--gray2);
}
.stat-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-val {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.stat-val span {
  color: var(--blue);
}

/* ── SKILLS ── */
#skills {
  background: var(--bg2);
}
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.skills-arc {
  position: relative;
  width: 100%;
  aspect-ratio: 1/0.55;
  overflow: visible;
}
.arc-svg {
  width: 100%;
  height: 100%;
}
.skill-orb {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.skill-orb.vis {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.orb-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--blue-border);
}
.orb-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
}
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.skill-entry {
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.skill-entry.vis {
  opacity: 1;
  transform: none;
}
.sk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sk-name {
  font-size: 1.1rem;
  font-weight: 700;
}
.sk-pct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
}
.sk-bar {
  height: 1px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}
.sk-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue2), var(--blue));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  box-shadow: 0 0 8px var(--blue);
}
.skill-entry.vis .sk-fill {
  width: var(--w);
}
.sk-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sk-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 3px 10px;
  text-transform: uppercase;
}

/* ── EXPERIENCE ── */
#experience {
  background: var(--bg);
}
.tl-list {
  display: flex;
  flex-direction: column;
}
.tl-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--gray2);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.tl-row.vis {
  opacity: 1;
  transform: none;
}
.tl-row:last-child {
  border-bottom: 1px solid var(--gray2);
}
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.tl-dot-line {
  position: relative;
  padding-left: 20px;
}
.tl-dot-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}
.tl-type {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tl-role {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.1;
}
.tl-company {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.tl-desc {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 560px;
}

/* ── FORMATION ── */
#formation {
  background: var(--bg2);
}
.formation-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fc {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--gray2);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s,
    transform 0.7s,
    border-color 0.3s;
}
.fc.vis {
  opacity: 1;
  transform: none;
}
.fc:hover {
  border-color: var(--blue-border);
}
.fc-bg-num {
  position: absolute;
  bottom: -20px;
  right: 16px;
  font-size: 8rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
}
.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.fc-pill {
  background: var(--blue2);
  color: var(--white);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}
.fc-type {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.fc-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}
.fc-school {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.fc-desc {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--muted);
}
.fc-line {
  height: 2px;
  background: linear-gradient(90deg, var(--blue2), transparent);
  margin: 20px 0;
  border-radius: 2px;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 100%,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.contact-eyebrow.vis {
  opacity: 1;
  transform: none;
}
.contact-eyebrow::before {
  content: "•";
}
.contact-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s 0.1s,
    transform 0.7s 0.1s;
}
.contact-title.vis {
  opacity: 1;
  transform: none;
}
.contact-title em {
  font-style: normal;
  color: var(--blue);
}
.contact-sub {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s 0.2s,
    transform 0.7s 0.2s;
}
.contact-sub.vis {
  opacity: 1;
  transform: none;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s 0.3s,
    transform 0.7s 0.3s;
}
.contact-form.vis {
  opacity: 1;
  transform: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  background: var(--bg2);
  border: 1px solid var(--gray2);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
.form-field::placeholder {
  color: var(--muted);
}
.form-field:focus {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
textarea.form-field {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font);
}
.form-submit {
  background: var(--blue2);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 16px 36px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: none;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  align-self: center;
  min-width: 200px;
}
.form-submit:hover {
  background: #1e40af;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}
.contact-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}
.contact-or::before,
.contact-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray2);
}
.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray2);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.contact-link:hover {
  border-color: var(--blue-border);
  color: var(--blue);
}

/* ── FORM VALIDATION & FEEDBACK ── */
.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-field.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.form-field.valid {
  border-color: #34d399;
}
.field-error {
  font-family: var(--mono);
  font-size: 10px;
  color: #f87171;
  letter-spacing: 0.3px;
  min-height: 14px;
}
.form-feedback {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
  min-height: 20px;
  transition: opacity 0.3s;
}
.form-feedback.success {
  color: #34d399;
}
.form-feedback.error-msg {
  color: #f87171;
}
.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--gray2);
  padding: 40px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.foot-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .formation-cards {
    grid-template-columns: 1fr;
  }
  .skills-arc {
    display: none;
  }
  nav .nav-links,
  .nav-cta {
    display: none;
  }
  #burger {
    display: flex;
  }
  .tl-row {
    grid-template-columns: 90px 1fr;
    gap: 20px;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .tl-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tl-year {
    font-size: 10px;
  }
  .hero-line {
    letter-spacing: -1px;
  }
  .hero-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--gray2);
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
  }
  .kpi-item {
    border: none;
    border-radius: 0;
    padding: 18px 16px;
    border-right: 1px solid var(--gray2);
    border-bottom: 1px solid var(--gray2);
  }
  .kpi-item:nth-child(2) {
    border-right: none;
  }
  .kpi-item:nth-child(3) {
    border-bottom: none;
  }
  .kpi-item:nth-child(4) {
    border-right: none;
    border-bottom: none;
  }
}