*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c0e;
  --bg2: #131316;
  --bg3: #1a1a1f;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0ede8;
  --muted: #8a8792;
  --accent: #c8f080;
  --accent2: #7dd4fc;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ===== MENU MOBILE ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  nav {
    flex-wrap: wrap;
    padding: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.active {
    max-height: 300px;
    margin-top: 20px;
  }
}

/* ——— HERO ——— */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid rgba(200,240,128,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0c0c0e;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}

.hero-cta:hover { opacity: 0.88; transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
}

/* ——— SECTIONS ——— */
section {
  padding: 7rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* ——— À PROPOS ——— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  background: var(--bg2);
}

.info-card .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.info-card .value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* ——— COMPÉTENCES ——— */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.skill-block:hover { border-color: var(--border2); }

.skill-block h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ——— PROJETS / EXPÉRIENCES ——— */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:first-child { border-top: 1px solid var(--border); }

.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.15rem;
  letter-spacing: 0.04em;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.timeline-content .org {
  font-size: 0.85rem;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ——— DOCUMENTS ——— */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.doc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.doc-card:hover {
  border-color: rgba(200,240,128,0.35);
  transform: translateY(-3px);
}

.doc-icon {
  width: 42px;
  height: 42px;
  background: rgba(200,240,128,0.08);
  border: 1px solid rgba(200,240,128,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.doc-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.doc-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.doc-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ——— CONTACT ——— */
.contact-inner {
  max-width: 680px;
}

.contact-inner .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  background: var(--bg2);
  transition: border-color 0.2s;
}

.contact-row:hover { border-color: var(--border2); }

.contact-row .ct-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 80px;
  letter-spacing: 0.06em;
}

/* ——— FOOTER ——— */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ——— ANIMATIONS ——— */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  #hero { padding: 0 1.5rem; }
  section { padding: 5rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* Glow subtil derrière le titre */
.hero-glow {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(200,240,128,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
