html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: black;
  color: white;
  font-family: 'Inter', sans-serif;
}

/* 🧭 Fond animé */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* 🎯 Conteneur principal scrollable (ex: portfolio) */
.page-wrapper.scrollable {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem 4rem 1rem;
  overflow-y: auto;
}

/* 🎯 Conteneur principal static (ex: accueil, contact) */
.page-wrapper.static {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
  overflow: hidden;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;
}

.content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* 🧾 Titres */
h1, h2 {
  font-weight: 700;
  color: white;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  color: #e5e7eb; /* gray-200 */
  letter-spacing: 0.05em;
}

.section-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #eee;
  text-align: left;
  margin-bottom: 0.5rem;
}

.description {
  text-align: justify;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.task {
  margin-bottom: 1.25rem;
}

.task b {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
}

.task-desc {
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
  color: #94a3b8; /* lighter gray */
}

/* 🖼 Galerie */
#gallery-container {
  margin-top: 1rem;
}

/* ⬇️ Flèche animée */
a svg {
  cursor: pointer;
  color: #9ca3af; /* gray-400 */
}

a svg.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10%);
  }
}

/* 📨 Overlay copie email */
#copy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* un peu plus transparent */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem; /* même rayon que le bouton */
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}
