body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

header {
  background: #005b3f;
  color: white;
  /* text-align: center; */
  padding: 20px 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeDown 1s ease-out;
}


header h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
}

header h2 {
  margin-top: 10px;
  font-weight: normal;
  font-size: 20px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* ← centrage vertical des deux colonnes */
  max-width: 1100px;
  margin: 00px auto;
  gap: 40px;
  padding: 0 0px;
}


.profile {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 650px; /* ← augmente la hauteur */
  animation: fadeInUp 4s ease-out;
}


.profile img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.735);
  transition: transform 0.3s ease;
  animation: float 4s ease-in-out infinite;
}




.profile img:hover {
  transform: scale(1.05);
}

.profile h3 {
  margin-top: 15px;
  font-size: 20px;
  color: #005b3f;
}

.message {
  flex: 2 1 600px;
  background-color: white;
  padding: 20px 25px; /* ← réduit le padding */
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.071);
  animation: slideInFade 1.3s ease-in;
}

.message p {
  line-height: 1.5; /* ← était à 1.7 */
  font-size: 15.5px; /* ↓ facultatif : plus compact */
  text-align: justify;
}


.vision-mission {
  display: flex;
  gap: 20px;
  margin-top: 0px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0px;
  background: linear-gradient(to bottom right, #f2fef8, #e8f9f1);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: zoomInCards 1s ease-out;
}


.card {
  flex: 1 1 220px;
  padding: 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  cursor: pointer;
  opacity: 0;
  animation: bounceCard 0.7s forwards;
}

.card:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  background: #dffcef;
}

.card:nth-child(1) {
  animation-delay: 1.2s;  /* Vision : apparaîtra après 1,2 seconde */
}

.card:nth-child(2) {
  animation-delay: 1.4s;  /* Mission : apparaîtra après 1,4 seconde */
}


.vision h4 {
  color: #0074cc;
}

.mission h4 {
  color: #28a745;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .message {
    width: 100%;
  }


  .card {
    width: 100%;
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceCard {
  0% {
    transform: scale(0.9) translateY(40px);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-8px);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes zoomInCards {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.card.vision {
  border-left: 5px solid #0074cc;
}
.card.mission {
  border-left: 5px solid #28a745;
}



