/* ============================= */
/* CSS dédié About AgroDocteur+  */
/* ============================= */

/* Reset général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Body */
body {
  background: linear-gradient(120deg, #e0f7fa, #f1f8e9);
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #2e7d32;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #ffeb3b;
}

/* Menu toggle pour mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin-bottom: 5px;
  border-radius: 3px;
}

/* Header page */
.about-header {
  background: linear-gradient(to right, #81c784, #4caf50);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-header::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.2;
}

.about-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  animation: fadeInDown 1s ease forwards;
}

.about-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1s ease forwards;
}

/* Main content */
.about-main {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Sections */
.about-main section {
  background: #ffffffcc;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-main section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.about-main h2 {
  color: #2e7d32;
  margin-bottom: 15px;
  font-size: 2rem;
  position: relative;
}

.about-main h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #81c784;
  display: block;
  margin-top: 5px;
  border-radius: 2px;
}

/* Lists */
.about-main ul {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
}

.about-main ul li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  font-size: 1.1rem;
}

.about-main ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4caf50;
}

/* Donate button */
.donate-button {
  display: inline-block;
  padding: 15px 30px;
  margin-top: 20px;
  background: linear-gradient(45deg, #66bb6a, #43a047);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.donate-button:hover {
  background: linear-gradient(45deg, #81c784, #2e7d32);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* Footer */
footer {
  background: #2e7d32;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 50px;
}

footer h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

footer p {
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 900px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #2e7d32;
    position: absolute;
    right: 0;
    top: 60px;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
  }

  .navbar ul.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .about-header h1 {
    font-size: 2rem;
  }

  .about-main section {
    padding: 20px;
  }
}
