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

:root {
  --bg: #080c10;
  --surface: #0d1117;
  --surface2: #131920;
  --border: rgba(255,255,255,0.07);
  --text: #e8edf2;
  --muted: #7a8899;
  --accent: #3fe8c0;
  --accent2: #4f7cff;
  --accent-dim: rgba(63,232,192,0.1);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px; /* base explicite */
}

/* ─── BOUTON CV ─── */
.btn-cv {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(63,232,192,0.35);
  background: var(--accent-dim);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-cv:hover { background: rgba(63,232,192,0.18); border-color: var(--accent); transform: translateY(-1px); }

/* ─── STELLA MOCK ─── */
.stella-placeholder { background: linear-gradient(135deg,#080c10,#0d1117); }
.stella-mock {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.stella-mock-bar {
  background: #131920;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
}
.smb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.smb-url {
  margin-left: 8px;
  font-size: 0.7rem; color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}
.stella-mock-body {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.stella-label { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.stella-sub { font-size: 0.7rem; color: var(--muted); text-align: center; padding: 0 12px; }

/* ─── NOISE 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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── GLOW ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent2); bottom: 10%; right: -100px; }

/* ─── SVG ICONS ─── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── LANG SWITCHER ─── */
#lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--accent);
  color: #080c10;
}
.lang-btn:hover:not(.active) { color: var(--text); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 48px 80px;
  position: relative; z-index: 1;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(63,232,192,0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
/* Static dot — pas d'animation clignotante */
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #080c10; }
.btn-primary:hover { background: #5ff0ce; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO CARD ─── */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(63,232,192,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.hc-dot.red { background: #ff5f56; }
.hc-dot.yellow { background: #ffbd2e; }
.hc-dot.green { background: #27c93f; }
.hc-title { font-size: 0.75rem; color: var(--muted); margin-left: auto; letter-spacing: 0.06em; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 0.75rem; color: var(--muted); }
.stat-item.full { grid-column: 1 / -1; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tech-tag {
  background: rgba(63,232,192,0.08);
  border: 1px solid rgba(63,232,192,0.15);
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 100px 48px; }
.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 16px; line-height: 1.1;
}
.section-desc { color: var(--muted); max-width: 520px; font-size: 1.05rem; line-height: 1.7; }

hr.divider { border: none; border-top: 1px solid var(--border); }

/* ─── ABOUT ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 64px; align-items: start; margin-top: 60px;
}
.about-tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(63,232,192,0.15);
  color: var(--accent); border-radius: 6px;
  padding: 4px 12px; font-size: 0.78rem; font-weight: 500;
  margin-bottom: 20px;
}
.about-name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.about-role { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; line-height: 1.5; }

.info-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; flex-direction: column; gap: 2px; }
.il-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.il-val { font-size: 0.93rem; color: var(--text); font-weight: 500; }
.il-val a { color: var(--accent); text-decoration: none; }

.about-bio { color: var(--muted); line-height: 1.8; font-size: 1rem; margin-bottom: 40px; }
.about-bio strong { color: var(--text); }

/* Timeline */
.timeline-header {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; color: #fff; margin-bottom: 24px;
}
.tl-items { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-date { font-size: 0.76rem; color: var(--muted); font-weight: 500; line-height: 1.5; padding-top: 3px; }
.tl-role { font-family: var(--font-head); font-size: 0.97rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.tl-company { font-size: 0.8rem; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.tl-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ─── SKILLS ─── */
#skills { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: rgba(63,232,192,0.3); transform: translateY(-3px); }
.skill-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(63,232,192,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.skill-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.skill-bars { display: flex; flex-direction: column; gap: 10px; }
.bar-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 5px; }
.bar-track { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* Tech bubbles */
.tech-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px; }
.tech-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.tech-bubble:hover { border-color: rgba(63,232,192,0.3); background: var(--accent-dim); }
.tech-bubble svg { width: 28px; height: 28px; }
.tech-bubble span { font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ─── PROJECTS ─── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.proj-card:hover { border-color: rgba(63,232,192,0.25); transform: translateY(-4px); }
.proj-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.proj-img { height: 220px; overflow: hidden; background: var(--surface2); }
.proj-card.featured .proj-img { height: 100%; min-height: 260px; }
.proj-img-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.proj-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.proj-type { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.proj-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.proj-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.proj-tag {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: 0.72rem; color: var(--muted);
}
.proj-links { display: flex; gap: 14px; }
.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none;
  font-size: 0.8rem; transition: color 0.2s;
}
.proj-link:hover { color: var(--accent); }
.proj-link svg { width: 14px; height: 14px; }

/* ─── CONTACT ─── */
#contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start; margin-top: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.ci-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ci-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.ci-val { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.ci-val a { color: var(--accent); text-decoration: none; }

.avail-card {
  background: var(--accent-dim);
  border: 1px solid rgba(63,232,192,0.2);
  border-radius: 12px; padding: 18px;
  display: flex; align-items: center; gap: 12px;
}
/* Static dot — no blink */
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.avail-text { font-size: 0.86rem; color: var(--accent); font-weight: 500; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 12px 16px; outline: none;
  transition: border-color 0.2s; resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
/* ─── VALIDATION FORMULAIRE ─── */
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #f87171;
}
.form-group input.valid,
.form-group textarea.valid {
  border-color: var(--accent);
}
.form-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 16px;
  display: block;
  margin-top: 2px;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(63,232,192,0.08);
  border: 1px solid rgba(63,232,192,0.25);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 4px;
}
.form-neterror {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 8px;
  padding: 14px 16px;
  color: #f87171;
  font-size: 0.9rem;
  margin-top: 4px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── FOOTER ─── */
footer {
  padding: 36px 48px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.footer-logo { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--muted); }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ─── MOBILE DRAWER ─── */
#mobile-drawer {
  display: none; position: fixed; inset: 0;
  background: rgba(8,12,16,0.97);
  z-index: 200; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
#mobile-drawer.open { display: flex; }
#mobile-drawer a {
  font-family: var(--font-head); font-size: 1.8rem;
  font-weight: 700; color: var(--text); text-decoration: none;
}
#mobile-drawer a:hover { color: var(--accent); }
#mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 4px;
}

/* ─── FADE-IN ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .section-inner { padding: 72px 24px; }
  #home { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .tech-row { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .proj-card.featured { grid-template-columns: 1fr; }
  .proj-card.featured .proj-img { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 28px 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-right { gap: 12px; }
}

.proj-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}