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

:root {
  --bg:      #0a0a0a;
  --surface: #141414;
  --border:  rgba(255,255,255,0.08);
  --text:    #f0f0f0;
  --muted:   rgba(240,240,240,0.38);
  --accent:  #f0f0f0;
  --radius:  12px;
  --max:     760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
section + section { border-top: 0.5px solid var(--border); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; color: var(--text);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem; color: var(--muted); text-decoration: none;
  transition: color 0.15s; font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 0.2rem 0.65rem; border-radius: 999px; border: none;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--muted);
  font-family: 'Inter', sans-serif; transition: all 0.15s;
  letter-spacing: 0.04em;
}
.lang-btn.active { background: #f0f0f0; color: #0a0a0a; }

/* ── HERO ── */
.hero {
  padding: 7rem 0 5rem;
  border-top: none;
}
.hero-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.hero-tag::before {
  content: ''; width: 24px; height: 1px; background: var(--muted);
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--muted); }
.hero-desc {
  font-size: 1rem; color: var(--muted); max-width: 520px;
  margin-bottom: 2.5rem; font-weight: 400;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #f0f0f0; color: #0a0a0a;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; color: var(--text);
  padding: 0.7rem 1.5rem; border-radius: 999px;
  border: 0.5px solid var(--border);
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--surface); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2rem; border-top: 0.5px solid var(--border);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 1.6rem;
  font-weight: 800; letter-spacing: -0.02em;
}
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }

/* ── SECTION TITLES ── */
.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--muted); }

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-text p:last-child { margin-bottom: 0; }

.skills-group { margin-bottom: 1.5rem; }
.skills-group:last-child { margin-bottom: 0; }
.skills-group-title {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.6rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.75rem; padding: 0.25rem 0.7rem;
  background: #1a1a1a; border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 999px; color: var(--text); font-weight: 500;
}

/* ── PROJECTS ── */
.projects-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.project-card {
  background: var(--bg); padding: 1.75rem 0;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 2rem;
  cursor: pointer; transition: background 0.15s, padding 0.2s;
  text-decoration: none; color: inherit;
}
.project-card:hover { background: #111; padding-left: 0.75rem; }
.project-card:hover .project-arrow { opacity: 1; transform: translate(2px, -2px); }
.project-num {
  font-size: 0.7rem; color: var(--muted); font-weight: 500;
  margin-bottom: 0.5rem; font-family: 'Syne', sans-serif;
}
.project-title {
  font-family: 'Syne', sans-serif; font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.project-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.85rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stack-tag {
  font-size: 0.68rem; padding: 0.15rem 0.55rem;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 999px; color: var(--muted); font-weight: 500;
}
.project-arrow {
  font-size: 1.2rem; color: var(--muted); opacity: 0;
  transition: all 0.2s; flex-shrink: 0; margin-top: 0.25rem;
}

/* ── EXPERIENCE ── */
.exp-list { display: flex; flex-direction: column; gap: 2rem; }
.exp-item { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; }
.exp-date { font-size: 0.75rem; color: var(--muted); padding-top: 0.15rem; line-height: 1.5; }
.exp-role { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.15rem; }
.exp-company { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.exp-desc { font-size: 0.82rem; color: var(--muted); }

/* ── CONTACT ── */
.contact-intro {
  font-size: 0.95rem; color: var(--muted);
  max-width: 480px; margin-bottom: 2rem;
}
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text); text-decoration: none;
  padding: 0.85rem 1.25rem;
  border: 0.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); transition: background 0.15s, border-color 0.15s;
  font-weight: 500;
}
.contact-link:hover { background: var(--surface); border-color: rgba(255,255,255,0.3); }
.contact-link span { font-size: 1.1rem; }

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-back {
  font-size: 0.75rem; color: var(--muted); text-decoration: none;
  transition: color 0.15s;
}
.footer-back:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .exp-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.5rem; }
  .project-card { grid-template-columns: 1fr; }
  .project-arrow { display: none; }
}

/* ── LANG SWITCH ── */
[data-fr], [data-en] { }
body.lang-en [data-fr] { display: none; }
body.lang-fr [data-en] { display: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero { animation: fadeUp 0.5s ease both; }

