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

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #21262d;
  --border:    #30363d;
  --accent:    #58a6ff;
  --accent2:   #3fb950;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --tag-bg:    #1f3a5f;
  --tag-text:  #58a6ff;
  --radius:    10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700; font-size: 1.05rem;
  color: var(--accent); letter-spacing: 0.5px;
}

.nav-links {
  display: flex; gap: 1.25rem; list-style: none;
}

.nav-links a {
  color: var(--muted); font-size: 0.88rem;
  padding: 4px 8px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg3);
  text-decoration: none;
}

.burger-toggle { display: none; }
.burger { display: none; cursor: pointer; font-size: 1.4rem; color: var(--muted); }

/* ── Layout ── */
.container { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }

main { flex: 1; padding: 4rem 0; }

.page-header { margin-bottom: 2.5rem; }
.page-header h1 {
  font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.6rem;
}
.page-header h1 span { color: var(--accent); }
.page-header p { color: var(--muted); margin-top: 0.5rem; font-size: 1rem; }
.page-header .divider {
  height: 2px; background: linear-gradient(to right, var(--accent), transparent);
  margin-top: 1rem; border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { background: #79bfff; text-decoration: none; color: #0d1117; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── HERO (index) ── */
#hero {
  min-height: 88vh;
  display: flex; flex-direction: column;
  justify-content: center; gap: 4rem;
  padding: 4rem 0;
}

.hero-tag {
  display: inline-block;
  background: var(--tag-bg); color: var(--tag-text);
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 1.25rem; letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
}
.hero-title .highlight { color: var(--accent); }

.hero-subtitle {
  font-size: 1.1rem; color: var(--muted);
  max-width: 560px; margin-bottom: 2rem;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.quick-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  padding: 1.25rem 1rem;
  color: var(--muted); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.quick-card:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px); text-decoration: none;
}
.qc-icon { font-size: 1.8rem; }
.qc-label { font-size: 0.85rem; font-weight: 600; }

/* ── Cards génériques ── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.tag {
  background: var(--tag-bg); color: var(--tag-text);
  font-size: 0.75rem; padding: 3px 10px;
  border-radius: 20px; font-weight: 500;
}
.tag.green { background: #1a3a2a; color: var(--accent2); }
.tag.orange { background: #3a2a10; color: #e3b341; }

/* ── Grilles ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2.38rem; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.timeline-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.timeline-title { font-weight: 600; font-size: 1rem; }
.timeline-date {
  font-size: 0.78rem; color: var(--accent);
  background: var(--tag-bg); padding: 3px 10px; border-radius: 20px;
}
.timeline-company { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.9rem; color: var(--muted); }

/* ── Skill bars ── */
.skill-item { margin-bottom: 0.9rem; }
.skill-label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; margin-bottom: 5px; color: var(--muted);
}
.skill-bar { height: 7px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 4px; background: var(--accent); }
.skill-fill.green { background: var(--accent2); }
.skill-fill.orange { background: #e3b341; }

/* ── Cert card ── */
.cert-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--accent2); }
.cert-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.cert-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.cert-org { font-size: 0.82rem; color: var(--muted); }
.cert-date { font-size: 0.78rem; color: var(--accent2); margin-top: 4px; }

/* ── Contact ── */
.contact-link {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.contact-link-icon { font-size: 1.4rem; }
.contact-link-text strong { display: block; font-size: 0.95rem; }
.contact-link-text span { font-size: 0.82rem; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--text); font-size: 0.95rem;
  font-family: inherit; outline: none; width: 100%;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  text-align: center; padding: 1.5rem;
  color: var(--muted); font-size: 0.82rem;
  display: flex; flex-direction: column; gap: 4px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .burger { display: block; }
  .burger-toggle:checked ~ .nav-links {
    display: flex; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-links li a { padding: 10px 12px; display: block; }
  .hero-title { font-size: 2rem; }
}
