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

:root {
  --bg: #0d0d14;
  --bg-card: #16162a;
  --bg-card-hover: #1e1e35;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #00d2ff;
  --accent-alt: #7c3aed;
  --text: #e2e2f0;
  --text-muted: #8888aa;
  --font: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 210, 255, 0.12) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              var(--bg);
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 640px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.5rem;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===========================
   BADGES (compétences)
   =========================== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.badge:hover {
  background: rgba(0, 210, 255, 0.18);
}

/* ===========================
   TIMELINE (expériences)
   =========================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
}

.timeline-content:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.2);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.55rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.company {
  color: var(--accent);
  font-weight: 400;
}

.period {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-content ul li {
  font-size: 0.92rem;
  color: #c0c0d8;
  padding-left: 1rem;
  position: relative;
}

.timeline-content ul li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-badges span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ===========================
   CARDS (formation, certifs, bénévolat)
   =========================== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.2);
}

.card-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-school {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.cert-card .card-date {
  color: #a78bfa;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 1rem; }
  .timeline { padding-left: 1rem; }
  .timeline-dot { left: -1.5rem; }
}
