/* ===== Variables ===== */
:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #12121a;
  --color-bg-card: #1a1a24;
  --color-primary: #14b8a6;
  --color-primary-light: #2dd4bf;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #2a2a3a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cv {
  background-color: var(--color-primary);
  color: var(--color-bg) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
}

.nav-cv:hover {
  background-color: var(--color-primary-light);
}

.nav-cv::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  position: relative;
}

/* Chemin simple vers l'image à la racine du projet */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: url("./hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(10, 10, 15, 0.85) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-bg);
  transform: translateY(-2px);
}

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

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-image {
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
}

.image-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-bg);
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Experience Timeline ===== */
.timeline {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 3px solid var(--color-bg);
}

.timeline-content {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--color-primary);
}

.timeline-date {
  display: inline-block;
  background-color: rgba(20, 184, 166, 0.1);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-place {
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline-content p:last-child {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-info-centered {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.contact-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 700px;
  width: 100%;
}

.contact-card .contact-item:nth-child(5) {
  grid-column: 1 / -1;
  justify-self: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

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

.footer-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card .contact-item:nth-child(5) {
    grid-column: auto;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .hamburger.active {
    background-color: transparent;
  }

  .hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
  }

  .hamburger.active::after {
    top: 0;
    transform: rotate(-45deg);
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-marker {
    left: 0;
  }

  .timeline-item {
    padding-left: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-cv {
    margin-top: 0.5rem;
  }
}
