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

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* ========================= */
/* PALETTE */
/* ========================= */
:root {
  --bg: #0f172a;
  --bg-secondary: #111827;
  --border: #1f2937;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.25);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --max-width: 1080px;
}

/* ========================= */
/* HEADER / NAVBAR */
/* ========================= */

.site-header {
  background: #0f172ad9;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
}

.hero-title span {
  color: var(--accent);
}

.hero-role {
  color: var(--text-muted);
}

.hero-description {
  max-width: 32rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* HERO IMAGE */
.hero-image img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid var(--accent-soft);
  box-shadow: var(--shadow);
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px var(--accent-soft); }
  50% { box-shadow: 0 0 24px var(--accent-soft); }
  100% { box-shadow: 0 0 8px var(--accent-soft); }
}

/* ========================= */
/* BOUTONS */
/* ========================= */

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.primary-btn {
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-soft);
}

.secondary-btn {
  border: 1px solid var(--border);
  color: var(--text);
}

.secondary-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* BOUTON DE TÉLÉCHARGEMENT (CV + fiche) */
.cv-btn {
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--accent);
  background: rgba(56, 189, 248, 0.15);
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent);
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: 0.25s ease;
}

.cv-btn:hover {
  background: var(--accent);
  color: #0f172a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

/* ========================= */
/* SECTIONS */
/* ========================= */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.4rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================= */
/* ABOUT */
/* ========================= */

.about-content {
  padding: 1.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content p + p {
  margin-top: 1rem;
}

/* ========================= */
/* SKILLS */
/* ========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.skill-card {
  background: var(--bg-secondary);
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.4);
}

.skill-card h3 {
  margin-bottom: 0.7rem;
}

.skill-card ul {
  list-style: none;
  color: var(--text-muted);
}

.skill-card li + li {
  margin-top: 0.3rem;
}

/* ========================= */
/* TIMELINE */
/* ========================= */

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  padding: 1.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.9rem;
}

.timeline-location {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ========================= */
/* PROJECTS */
/* ========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(0,0,0,0.4);
}

.project-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.project-content {
  padding: 1.4rem;
}

.project-tags {
  margin-top: 0.5rem;
  color: var(--accent);
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-content {
  padding: 1.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-list {
  list-style: none;
}

.contact-list li + li {
  margin-top: 0.5rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
  padding: 1.8rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ========================= */
/* ANIMATIONS SCROLL */
/* ========================= */

.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.9s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image img {
    margin: 0 auto;
  }

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

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }
}

