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

:root {
  --bg:   #ecfbff;
  --ink:  #16121f;
  --muted: #0094d6;
  --fluo: #f5e642;
  --link: #00356d;
  --forrest: #00ad77;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 48px;
  align-items: start;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-name {
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
}

.hero-name .line2 {
  display: block;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
}

.mark {
  background: linear-gradient(120deg, var(--fluo) 0%, var(--fluo) 100%);
  background-repeat: no-repeat;
  background-size: 100% 52%;
  background-position: 0 80%;
  padding: 0 4px;
}

.hero-bio {
  max-width: 520px;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── GHOST LINKS ── */
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.ghost-link {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}
.ghost-link:hover { opacity: 1; }

.hero-links .cta {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s;
}
.hero-links .cta:hover { background: var(--link); }

/* ── AVATAR ── */
.hero-avatar {
  flex-shrink: 0;
  margin-top: 40px;
  position: relative;
  width: 220px;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-avatar::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  background: linear-gradient(135deg,#00d4f9 0%, #0abaff 100%);
  border-radius: 6px;
  z-index: 0;
}

.hero-avatar::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10px;
  right: -10px;
  height: 6px;
  border-radius: 2px;
  z-index: 2;
}

.hero-avatar img {
  display: block;
  border-radius: 4px;
  filter: saturate(0.85);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════ */
.lang-switcher {
  position: fixed;
  top: 24px;
  right: 48px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: rgba(236,233,247,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75,63,160,0.15);
  border-radius: 100px;
  padding: 4px;
}

.lang-btn {
  font-family: 'Rubik', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
}

/* ═══════════════════════════════════════════
   SECTION TITLES
═══════════════════════════════════════════ */
.section { padding: 80px 0 0; }

.section-label {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 56px;
}

.section-label span {
  display: block;
  font-weight: 300;
  font-style: italic;
  font-size: 0.52em;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════
   EXPERTISE — marquee ticker
═══════════════════════════════════════════ */
.expertise-track-wrapper {
  overflow: hidden;
  margin: 0 -48px;
  padding: 8px 0;
  position: relative;
}

.expertise-track-wrapper::before,
.expertise-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.expertise-track-wrapper::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.expertise-track-wrapper::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.expertise-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}


@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.expertise-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  white-space: nowrap;
}

.expertise-item .tech-name {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--muted);
  opacity: 0.6;
  transition: all 0.2s;
  cursor: default;
}
.expertise-item:hover .tech-name {
  text-shadow: 0px 10px 3px var(--fluo);
  opacity: 0.8;
}

.expertise-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fluo);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   JOBS
═══════════════════════════════════════════ */
.jobs { display: flex; flex-direction: column; gap: 72px; }

.job {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 48px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.job.visible { opacity: 1; transform: translateY(0); }
.job:nth-child(1) { transition-delay: 0.00s; }
.job:nth-child(2) { transition-delay: 0.08s; }
.job:nth-child(3) { transition-delay: 0.16s; }
.job:nth-child(4) { transition-delay: 0.24s; }
.job:nth-child(5) { transition-delay: 0.32s; }

.job-period { font-size: 0.73rem; color: var(--muted); line-height: 1.5; margin-bottom: 8px; padding-top: 5px; }

.job-contract {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--fluo);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 2px;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.job-title-inner {
  display: inline;
  background: linear-gradient(var(--fluo), var(--fluo)) no-repeat bottom left;
  background-size: 0% 3px;
  transition: background-size 0.3s ease;
  padding-bottom: 1px;
}
.job:hover .job-title-inner { background-size: 100% 3px; }

.job-company-line { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.job-company-line a { color: var(--link); text-decoration: none; font-weight: 500; }
.job-company-line a:hover { text-decoration: underline; }

.job-desc {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.job:hover .job-desc,
.job.open  .job-desc { max-height: 300px; opacity: 0.85; }

.job-expand-hint {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.job:hover .job-expand-hint { opacity: 0; }

/* ═══════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════ */
.edu-list { display: flex; flex-direction: column; gap: 48px; }

.edu-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 48px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.edu-entry.visible { opacity: 1; transform: translateX(0); }
.edu-entry:nth-child(1) { transition-delay: 0.00s; }
.edu-entry:nth-child(2) { transition-delay: 0.07s; }
.edu-entry:nth-child(3) { transition-delay: 0.14s; }
.edu-entry:nth-child(4) { transition-delay: 0.21s; }
.edu-entry:nth-child(5) { transition-delay: 0.28s; }

.edu-years { font-size: 0.73rem; color: var(--muted); padding-top: 5px; }
.edu-degree { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 3px; }
.edu-field  { font-size: 0.87rem; font-weight: 300; opacity: 0.7; margin-bottom: 4px; }
.edu-school {
  font-size: 0.78rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: letter-spacing 0.2s;
}
.edu-school:hover { letter-spacing: 0.03em; }
.edu-mention { font-size: 0.73rem; color: var(--muted); font-style: italic; margin-top: 2px; }

/* ═══════════════════════════════════════════
   PUBLICATIONS
═══════════════════════════════════════════ */
.pub-list { display: flex; flex-direction: column; gap: 48px; }

.pub-entry {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pub-entry.visible { opacity: 1; transform: translateY(0); }
.pub-entry:nth-child(1) { transition-delay: 0.00s; }
.pub-entry:nth-child(2) { transition-delay: 0.08s; }
.pub-entry:nth-child(3) { transition-delay: 0.16s; }
.pub-entry:nth-child(4) { transition-delay: 0.24s; }

.pub-date { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pub-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 6px; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--link); }
.pub-venue { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.pub-desc  { font-size: 0.84rem; font-weight: 300; opacity: 0.72; line-height: 1.7; max-width: 640px; }

/* ═══════════════════════════════════════════
   PUBLICATIONS — show more
═══════════════════════════════════════════ */
.pub-entry--hidden {
  display: none;
}
.pub-entry--hidden.pub-entry--visible {
  display: block;
}

.pub-more-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
}

.pub-more-label {
  font-size: 1.30rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.66;
  transition: opacity 0.2s;
}

.pub-more-arrow {
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 900;
  color: var(--fluo);
  opacity: 0.44;
  transition: opacity 0.2s, transform 0.3s ease;
  display: inline-block;
}

.pub-more-btn:hover .pub-more-label,
.pub-more-btn:hover .pub-more-arrow {
  opacity: 1;
}

.pub-more-btn:has(+ *) .pub-more-arrow,
.pub-more-btn[aria-expanded="true"] .pub-more-arrow {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════
   LANGUAGES
═══════════════════════════════════════════ */
.lang-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lang-entry {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}

/* drapeau en fond, flou + assombri */
.lang-entry::before {
  content: attr(data-flag);
  position: absolute;
  inset: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  filter: blur(12px) saturate(0.7);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.lang-entry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 135deg, transparent 0%, transparent 20%, var(--bg) 65%;
  z-index: 1;
}

.lang-code {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg,#0abaff 0%, #7587e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

.lang-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.lang-level {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink);
  position: relative;
  z-index: 2;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .lang-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   ACTIVITIES
═══════════════════════════════════════════ */
.act-list { display: flex; flex-direction: column; gap: 40px; }

.act-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 48px;
}

.act-pos  { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); padding-top: 4px; line-height: 1.6; white-space: pre-line; }
.act-name { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.act-name a { color: var(--ink); text-decoration: none; }
.act-name a:hover { color: var(--link); }
.act-desc { font-size: 0.82rem; font-weight: 300; color: var(--muted); }

/* ═══════════════════════════════════════════
   HOBBIES
═══════════════════════════════════════════ */
.hobby-list { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; }

.hobby {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  opacity: 0.1;
  cursor: default;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(0);
  display: inline-block;
  color: var(--muted);
}

.hobby.hobby--lit {
  opacity: 1;
  transform: translateY(-4px);
  text-shadow: 0px 10px 3px var(--fluo);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  margin-top: 120px;
  padding: 40px 0;
  border-top: 1px solid rgba(75,63,160,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
footer a {
  transition: letter-spacing 0.2s;
  text-decoration: none;
  color: var(--link);
}
footer a:hover { letter-spacing: 0.03em; }

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

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 700px) {
  .page { padding: 0 24px 80px; }
  .hero { grid-template-columns: 1fr; }
  .hero-avatar { order: -1; margin-top: 32px; }
  .lang-switcher { top: 16px; right: 24px; }
  .job, .edu-entry, .lang-entry, .act-entry { grid-template-columns: 1fr; gap: 8px; }
  .expertise-track-wrapper { margin: 0 -24px; }
}
