/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #FAF3E0;
  color: #333;
  line-height: 1.6;
}

/* Hero interactif */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(120deg, #e07a5f, #f2cc8f);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  transition: transform 0.2s ease-out;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
  transition: transform 0.2s ease-out;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

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

/* Contenu principal */
main {
  padding: 4rem 2rem;
  max-width: 960px;
  margin: auto;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #E07A5F;
}

p, li {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

p:nth-child(1) { animation-delay: 0.1s; }
p:nth-child(2) { animation-delay: 0.3s; }
li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Listes de contacts */
ul {
  list-style: none;
  padding-left: 0;
}

ul li a {
  color: #E07A5F;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul li a:hover {
  color: #9A3B3B;
  text-decoration: underline;
}

/* Skills & projets */
.skills, .projects, .stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill, .project, .stage {
  background: white;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.skill:hover, .project:hover, .stage:hover {
  transform: translateY(-5px);
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.project {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    max-width: 300px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
}

.project-thumbnail {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-thumbnail:hover {
  transform: scale(1.03);
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.modal-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.modal-image:hover {
  transform: scale(1.05);
}

.modal-description {
  color: #333;
  font-size: 1rem;
  text-align: justify;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: #e74c3c;
}


/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #3D405B;
  color: white;
}
