/* Container général */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
}

/* Titre principal */
.main-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-primary);
  animation: fadeInUp 1s ease forwards;
}

/* Chaque section */
.about-section {
  margin-bottom: 60px;
  overflow: hidden; /* Pour cacher les éléments hors écran avant animation */
}

/* Flex container pour image + texte */
.about-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Texte et image prennent chacun la moitié de la largeur */
.pepe-image {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pepe-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.about-text {
  width: 55%;
  color: var(--color-text);
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Pour la section sans image (full width texte centré) */
.full-width-text {
  width: 100%;
}

/* Animations slide-in */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
  opacity: 0;
}
