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

:root {
  --bg: #0d0f14;
  --surface: #161920;
  --surface2: #1e2229;
  --border: #2a2f3a;
  --accent: #3b9eff;
  --accent2: #ff6b35;
  --text: #e8eaf0;
  --muted: #7a8196;
  --white: #ffffff;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 20, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1rem;
  color: var(--white); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s;
 
  
}
.nav-links a.btn-teal { color: var(--accent-teal); border: 1px solid rgba(8, 241, 194, 0.657); background: rgba(0,212,170,0.07); }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(59,158,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,107,53,0.05) 0%, transparent 60%);
  pointer-events: none;
}
/* grid lines */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,158,255,0.1);
  border: 1px solid rgba(59,158,255,0.25);
  border-radius: 999px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent); margin-bottom: 20px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-tag::before { content: '●'; font-size: 8px; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white); line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  color: var(--muted); font-size: 1rem;
  line-height: 1.7; margin-bottom: 32px;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 8px;
  padding: 11px 22px; font-weight: 600; font-size: 0.88rem;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  text-decoration: none; border-radius: 8px;
  padding: 11px 22px; font-weight: 500; font-size: 0.88rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }

/* hero right — site preview mockup */
.hero-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.mockup-bar {
  background: var(--surface2);
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-url {
  flex: 1; background: var(--bg); border-radius: 5px;
  padding: 4px 12px; font-size: 0.73rem; color: var(--muted);
  margin-left: 8px;
}
.mockup-content { padding: 20px; }
.mockup-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.mockup-logo-box {
  width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, #3b9eff, #0066cc);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mockup-site-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--accent);
}
.mockup-site-sub { font-size: 0.72rem; color: var(--muted); }
.mockup-nav-bar {
  display: flex; gap: 16px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.mockup-nav-item { font-size: 0.72rem; color: var(--muted); }
.mockup-formations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mockup-card {
  background: var(--bg); border-radius: 8px;
  border: 1px solid var(--border); overflow: hidden;
}
.mockup-thumb {
  height: 52px; background: #1a1f2e;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--accent); font-weight: 700;
  letter-spacing: 0.1em;
}
.mockup-card-body { padding: 8px; }
.mockup-card-title { font-size: 0.68rem; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.mockup-card-meta { font-size: 0.6rem; color: var(--muted); }

/* ── Sections layout ── */
section { padding: 80px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white); letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-desc { color: var(--muted); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Context ── */
#contexte { background: var(--surface); }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.context-text { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.context-text p { margin-bottom: 16px; }
.context-text p:last-child { margin-bottom: 0; }
.context-highlight {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 20px 22px;
  font-size: 0.88rem; color: var(--text);
  line-height: 1.7;
}
.context-highlight strong { color: var(--accent); }

/* ── Stack ── */
.stack-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.stack-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stack-icon { font-size: 26px; margin-bottom: 10px; }
.stack-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.88rem; color: var(--white); margin-bottom: 3px;
}
.stack-role { font-size: 0.76rem; color: var(--muted); }
.stack-tag {
  display: inline-block; margin-top: 8px;
  background: rgba(59,158,255,0.1);
  border: 1px solid rgba(59,158,255,0.2);
  border-radius: 4px; padding: 2px 8px;
  font-size: 0.67rem; color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── Ressources ── */
#ressources { background: var(--surface); }
.res-row1 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px;
}
.res-row2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.res-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.res-card:hover { border-color: rgba(59,158,255,0.4); transform: translateY(-4px); }
.res-icon-area {
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px 24px; min-height: 150px;
}
.pdf-icon { position: relative; width: 72px; height: 90px; }
.pdf-icon .pg {
  width: 64px; height: 82px;
  background: #fff; border: 2.5px solid #e0e0e0;
  border-radius: 3px 12px 3px 3px;
  position: absolute; left: 4px; top: 4px;
}
.pdf-icon .pg::before {
  content: '';
  position: absolute; top: -2px; right: -2px;
  width: 17px; height: 17px;
  background: var(--surface2);
  border-left: 2.5px solid #e0e0e0;
  border-bottom: 2.5px solid #e0e0e0;
  border-radius: 0 0 0 3px;
}
.pdf-icon .badge {
  position: absolute; left: -3px; top: 17px;
  background: #e03e2d; color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 11px;
  padding: 3px 7px; border-radius: 3px; z-index: 1;
}
.pdf-icon .lines {
  position: absolute; bottom: 11px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.pdf-icon .lines span {
  display: block; height: 2.5px; background: #d0d0d0; border-radius: 2px;
}
.pdf-icon .lines span:nth-child(1) { width: 36px; }
.pdf-icon .lines span:nth-child(2) { width: 28px; }
.pdf-icon .lines span:nth-child(3) { width: 32px; }
.github-icon {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
}
.github-icon svg { width: 56px; height: 56px; }
.res-body {
  padding: 15px 14px 17px;
  display: flex; flex-direction: column; flex: 1;
}
.res-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: var(--white); margin-bottom: 4px;
}
.res-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.res-btn {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid var(--border); border-radius: 7px;
  padding: 8px 12px; font-size: 0.78rem; font-weight: 500;
  color: var(--text); background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.res-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Compétences ── */
.blocs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bloc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.bloc-header {
  background: var(--surface2);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.bloc-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(59,158,255,0.15);
  border: 1px solid rgba(59,158,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 0.8rem; color: var(--accent); flex-shrink: 0;
}
.bloc-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.88rem; color: var(--white);
}
.bloc-body { padding: 18px 20px; }
.competence-group { margin-bottom: 18px; }
.competence-group:last-child { margin-bottom: 0; }
.comp-group-title {
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 8px; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.comp-group-title::before {
  content: ''; display: block; width: 16px; height: 1.5px; background: var(--accent);
}
.comp-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.comp-list li {
  font-size: 0.78rem; color: var(--muted); padding-left: 14px;
  position: relative; line-height: 1.5;
}
.comp-list li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: var(--white);
}
.footer-left span { color: var(--accent); }
.footer-right { font-size: 0.78rem; color: var(--muted); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { animation: fadeUp 0.6s ease both; }
.hero-left > *:nth-child(1) { animation-delay: 0.1s; }
.hero-left > *:nth-child(2) { animation-delay: 0.2s; }
.hero-left > *:nth-child(3) { animation-delay: 0.3s; }
.hero-left > *:nth-child(4) { animation-delay: 0.4s; }
.hero-mockup { animation: fadeUp 0.7s 0.3s ease both; }

/* ── Demo section inline styles ── */
.demo-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 820px;
}
.demo-bar {
  background: var(--surface2);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.red   { background: #ff5f57; }
.demo-dot.yellow{ background: #febc2e; }
.demo-dot.green { background: #28c840; }
.demo-url {
  flex: 1; background: var(--bg); border-radius: 5px;
  padding: 4px 12px; font-size: 0.73rem; color: var(--muted);
  margin-left: 8px;
}
.demo-body {
  background: #0a0c10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 32px; text-align: center;
  min-height: 320px;
  position: relative;
}
.demo-play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(59,158,255,0.15);
  border: 2px solid rgba(59,158,255,0.4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  cursor: pointer;
}
.demo-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: #fff; margin-bottom: 8px;
}
.demo-desc {
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 28px; max-width: 420px; line-height: 1.6;
}
.demo-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 8px;
  padding: 12px 26px; font-weight: 600; font-size: 0.9rem;
  transition: opacity 0.2s;
}
.demo-link:hover { opacity: 0.85; }
.demo-badge {
  position: absolute; bottom: 18px; right: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 4px 10px;
  font-size: 0.72rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}

/* ── Context ── */
#contexte { background: var(--surface); }
.ctx-intro { color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 560px; margin-bottom: 40px; }
.ctx-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.ctx-text { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 28px; }
.ctx-text p { margin-bottom: 14px; }
.ctx-text p:last-child { margin-bottom: 0; }
.ctx-text strong { color: var(--text); font-weight: 500; }
.ctx-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.ctx-stat { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; flex: 1; min-width: 120px; }
.ctx-stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.ctx-stat-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.ctx-cards { display: flex; flex-direction: column; gap: 10px; }
.ctx-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 14px; transition: border-color 0.2s, transform 0.2s; }
.ctx-card:hover { border-color: rgba(59,158,255,0.35); transform: translateX(4px); }
.ctx-card-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ctx-card-icon svg { width: 18px; height: 18px; }
.ctx-card-icon.blue   { background: rgba(59,158,255,0.12); }
.ctx-card-icon.orange { background: rgba(255,107,53,0.12); }
.ctx-card-icon.green  { background: rgba(52,199,89,0.12); }
.ctx-card-icon.purple { background: rgba(175,82,222,0.12); }
.ctx-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--white); margin-bottom: 3px; }
.ctx-card-desc { font-size: 0.77rem; color: var(--muted); line-height: 1.55; }
/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .context-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .res-row1 { grid-template-columns: 1fr 1fr; }
  .res-row2 { grid-template-columns: 1fr 1fr; }
  .blocs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  section { padding: 60px 20px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .res-row1 { grid-template-columns: 1fr; }
  .res-row2 { grid-template-columns: 1fr 1fr; }
}