/* ============================ */
/*        GLOBAL STYLES         */
/* ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #d4edda, #f0fff4);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  padding: 20px;
}

/* ============================ */
/*            HEADER            */
/* ============================ */
header {
  width: 100%;
  max-width: 1200px;
  background: linear-gradient(90deg, #4caf50, #81c784);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 20px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-bottom: 30px;
}

/* ============================ */
/*            MAIN              */
/* ============================ */
main {
  width: 100%;
  max-width: 1000px;
  background: #ffffffd9;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease-in-out;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2e7d32;
  font-size: 1.8rem;
}

/* ============================ */
/*       SELECT & BUTTON        */
/* ============================ */
label {
  font-weight: bold;
  margin-top: 15px;
  display: block;
}

select {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid #4caf50;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

select:hover {
  border-color: #2e7d32;
}

button {
  width: 100%;
  background: linear-gradient(90deg, #43a047, #66bb6a);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:hover {
  background: linear-gradient(90deg, #2e7d32, #4caf50);
  transform: scale(1.05);
}

/* ============================ */
/*           RESULT             */
/* ============================ */
#result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================ */
/*           CARD STYLE         */
/* ============================ */
.card {
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
  border-left: 6px solid #4caf50;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.card h3 {
  margin-bottom: 15px;
  color: #2e7d32;
}

.card p {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ============================ */
/*          HIGHLIGHTS          */
/* ============================ */
.card p strong {
  display: inline-block;
  min-width: 120px;
  color: #1b5e20;
  font-weight: 700;
}

/* ============================ */
/*         ANIMATION            */
/* ============================ */
@keyframes fadeIn {
  0% {opacity:0; transform: translateY(20px);}
  100% {opacity:1; transform: translateY(0);}
}

.animate {
  animation: fadeIn 0.7s ease-in-out;
}

/* ============================ */
/*          ERROR MESSAGE       */
/* ============================ */
.error {
  color: #d32f2f;
  font-weight: bold;
  text-align: center;
  background: #ffdada;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ============================ */
/*         RESPONSIVE           */
/* ============================ */
@media (max-width: 768px) {
  header {
    font-size: 1.5rem;
  }

  main {
    padding: 20px;
  }

  button {
    font-size: 1rem;
  }
}


/* ============================ */
/*            FOOTER            */
/* ============================ */
footer {
  width: 100%;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  padding: 30px 20px;
  margin-top: 40px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  text-align: center;
}

.footer-container h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #e8f5e9;
}

.footer-container p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 8px auto;
  color: #f1f8e9;
}

.footer-container p strong {
  font-weight: 700;
  color: #a5d6a7;
}

footer .copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #c8e6c9;
}

/* Animation légère pour le footer */
footer {
  animation: fadeInFooter 1s ease-in-out;
}

@keyframes fadeInFooter {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}



/* ============================ */
/*     SECTION DONATION         */
/* ============================ */
.donation-container {
  background: linear-gradient(135deg, #ffecb3, #ffe082);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  max-width: 900px;
  margin: 30px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: fadeIn 1s ease-in-out;
}

.donation-container h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #f57c00;
}

.donation-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #6d4c41;
}

.donate-button {
  background: linear-gradient(90deg, #f57c00, #ffb74d);
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.donate-button:hover {
  background: linear-gradient(90deg, #ef6c00, #ffa726);
  transform: scale(1.05);
}
