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

:root {
  --bg: #0d0d0f;
  --bg-card: #131316;
  --text: #e8e8ec;
  --text-muted: #7a7a8c;
  --accent: #4f8ef7;
  --border: rgba(255, 255, 255, 0.07);
}

[style*="color-scheme: light"],
meta[name="color-scheme"][content="light"]~* {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b6b80;
  --accent: #2563eb;
  --border: rgba(0, 0, 0, 0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

body.light {
  --bg: #f7f6f5;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b6b80;
  --accent: #2563eb;
  --border: rgba(0, 0, 0, 0.08);
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  z-index: 100;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

nav a:hover {
  color: #e8e8ec;
}

.hero {
  padding: 10px 0 10px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(79, 142, 247, 0.3);
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.25);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  margin-top: 30px;
}

/* Icônes dans le hero */
.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.hero-socials a {
  color: #7a7a8c;
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}

.hero-socials a:hover {
  color: #4f8ef7;
  transform: translateY(-2px);
}

.accent {
  color: #4f8ef7;
}

.hero-desc {
  color: #7a7a8c;
  font-size: 0.9rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
}

.stack-block {
  margin-top: 30px;
  margin-bottom: 50px;
}

.stack-label {
  font-size: 0.72rem;
  color: #7a7a8c;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent);
  padding: 5px 13px;
  border-radius: 6px;
}

.btn-primary {
  background: #4f8ef7;
  color: #fff;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e8e8ec;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.xp-item {
  padding: 28px 0;
  border-color: var(--border);
  border-bottom: 1px solid var(--border);
}

.xp-item:last-child {
  border-bottom: none;
} 

.xp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.xp-poste {
  font-weight: 600;
  font-size: 1rem;
}

.xp-company {
  font-size: 0.88rem;
  color: var(--accent);
  margin-top: 2px;
}

.xp-date {
  font-size: 0.78rem;
  color: #7a7a8c;
}

.xp-desc {
  font-size: 0.93rem;
  color: #7a7a8c;
  line-height: 1.75;
}

.projects-grid {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateY(-3px);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.project-link {
  font-size: 1.1rem;
  color: #7a7a8c;
  transition: color 0.2s;
}

.project-link:hover {
  color: #4f8ef7;
}

.project-desc {
  font-size: 0.88rem;
  color: #7a7a8c;
  line-height: 1.65;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.contact-intro {
  display: flex;
  justify-content: center;
  color: #7a7a8c;
  font-size: 0.95rem;
  margin-bottom: 20px;
  margin-top: 10px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #e8e8ec;
  background: #131316;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.contact-btn:hover {
  border-color: #4f8ef7;
  color: #4f8ef7;
  transform: translateY(-2px);
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-icon-btn {
  color: #7a7a8c;
  font-size: 2rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-icon-btn:hover {
  color: #4f8ef7;
  transform: translateY(-3px);
}

#contact {
  text-align: center;
}

.section {
  padding: 20px 0;
  border-color: var(--border);
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.footer {
  border-color: var(--border);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #7a7a8c;
}

.section,
.hero {
  scroll-margin-top: 80px;
}

nav a {
  display: inline-flex;
  align-items: center;
}

#themeToggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}
#themeToggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .hero-photo img {
    width: 180px;
    height: 180px;
  }

  .hero-title {
    font-size: 2rem;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.78rem;
  }

  .xp-header {
    flex-direction: column;
    gap: 4px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}