*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #020b16;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #020816;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 10;
  border-bottom: 1px solid #0f172a;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0ea5e9;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #22c55e;
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cv {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.nav-cv span.icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #22c55e;
  display: inline-block;
}

/* ===== MAIN ===== */
main {
  padding: 100px 24px 60px;
  display: flex;
  justify-content: center;
}

.content {
  width: 100%;
  max-width: 900px;
}

/* ===== WELCOME / HERO ===== */
.welcome {
  text-align: center;
  margin-bottom: 60px;
}

.welcome-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
}

.welcome-avatar {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
}

.welcome-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0ea5e9;
  display: block;
}

.welcome-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #0ea5e9;
  border: 3px solid #0ea5e9;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #020b16;
  letter-spacing: 1px;
}

/* ===== BLOCS GÉNÉRIQUES ===== */
section.block {
  margin-bottom: 40px;
  border: 2px solid #0f172a;
  border-radius: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
}

section.block h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #e5e7eb;
  margin-bottom: 16px;
}

h3 {
  text-align: center;
}

/* ===== DIVIDER ===== */
.divider {
  width: 100%;
  height: 3px;
  background: #0f172a;
  margin: 32px 0;
}

/* ===== BOUTON CV ===== */
.btn-cv {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-cv:hover {
  background: #0ea5e9;
  color: #020b16;
}

/* ===== PRÉSENTATION ===== */
.presentation-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e5e7eb;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 36px;
}

.presentation-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.presentation-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.presentation-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid #0f172a;
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  text-align: center;
  line-height: 1.7;
  transition: border-color 0.2s ease;
}

.presentation-card:hover {
  border-color: #0ea5e9;
}

.presentation-card p {
  text-align: center;
  color: #e5e7eb;
  font-weight: 600;
}

.presentation-cv {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.cv-preview {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #0f172a;
}

/* ===== STAGES ===== */
.stages-title {
  text-align: center;
  font-size: 1.8rem;
  color: #e5e7eb;
  margin-bottom: 40px;
}

.stages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stage-badge {
  background: #0ea5e9;
  color: #020b16;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: 999px;
  text-align: center;
  width: 100%;
}

.stage-pill {
  border: 2px solid #0ea5e9;
  color: #0ea5e9;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 20px;
  border-radius: 999px;
  text-align: center;
}

.stage-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid #0f172a;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.stage-card:hover {
  border-color: #0ea5e9;
}

.stage-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0ea5e9;
  margin-bottom: 10px;
  text-align: left;
}

.stage-card p {
  font-size: 0.88rem;
  color: #9ca3af;
  text-align: left;
  margin-bottom: 10px;
}

.stage-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-list li {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: left;
}

.stage-list li span {
  color: #22c55e;
  font-weight: 600;
}

/* ===== COMPÉTENCES ===== */
.skills-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  color: #111;
}

.skills-section {
  text-align: center;
  margin-bottom: 16px;
}

.skills-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #111;
}

.skill-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ===== FOOTER ===== */
.footer {
  background: #020816;
  border-top: 1px solid #0f172a;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 20px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.github-link:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

.github-icon {
  width: 24px;
  height: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  header {
    padding: 0 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
  }

  main {
    padding-top: 120px;
  }

  .presentation-inner {
    grid-template-columns: 1fr;
  }

  .stages-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== PROJETS ===== */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.project-card h3 {
  text-align: center;
}

.project-card p {
  text-align: center;
  color: #0ea5e9;
  font-size: 0.85rem;
}
section.block p {
  text-align: center;
  color: #9ca3af;
}

section.block a {
  color: #0ea5e9;
  transition: color 0.2s ease;
}

section.block a:hover {
  color: #22c55e;
}
.btn-mentions {
  font-size: 0.8rem;
  color: #4b5563;
  border: 1px solid #1e293b;
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn-mentions:hover {
  color: #e5e7eb;
  border-color: #e5e7eb;
}