
:root {
  --primary-color: #2E7D32; 
  --secondary-color: #81C784; 
  --accent-color: #8D6E63; 
  --text-color: #2C3E50;
  --light-bg: #F5F6FA;
  --footer-bg: #E8F5E9;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pattern-color: rgba(46, 125, 50, 0.08);
  --gradient-1: rgba(129, 199, 132, 0.2);
  --gradient-2: rgba(141, 110, 99, 0.2);
  --card-bg: rgba(255, 255, 255, 0.95);
  --hover-shadow: 0 8px 30px rgba(46, 125, 50, 0.15);
  --focus-ring: 0 0 0 3px rgba(46, 125, 50, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('background-nature.jpg') top left/cover repeat fixed, var(--light-bg);
  line-height: 1.6;
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
}


body::before {
  content: '';
  display: none;
}
body::after {
  content: '';
  display: none;
}


.particle {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.05;
  filter: blur(2px);
  animation: float 30s infinite ease-in-out;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-100px) translateX(100px);
  }
  50% {
    transform: translateY(-200px) translateX(0);
  }
  75% {
    transform: translateY(-100px) translateX(-100px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}


header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.logo {
  display: block;
  margin: 20px auto;
  width: 100px;
  height: auto;
  position: relative;
  cursor: pointer;
  transition: transform 0.5s ease;
}



.logo:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}


.logo {
  position: relative;
  cursor: pointer;
  transition: transform 0.5s ease;
}



.logo:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Easter Egg sur les titres */
section h2 {
  position: relative;
  cursor: pointer;
}

section h2:hover::before {
  content: '🌟';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: spin 1s linear infinite;
}

/* Easter Egg sur les cartes */
.objectif-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.objectif-card:hover .secret-message {
  opacity: 1;
  transform: translateY(0);
}

.secret-message {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(46, 125, 50, 0.9);
  color: white;
  padding: 10px;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition);
}


.footer-bottom p {
  position: relative;
  cursor: pointer;
}

.footer-bottom p:hover::after {
  content: '👋';
  position: absolute;
  right: -30px;
  animation: wave 1s infinite;
}


@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-20deg); }
  75% { transform: rotate(20deg); }
}


.navbar {
  background-color: transparent;
  padding: 15px 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 20px;
}

.navbar a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar a:hover::before,
.navbar a.active::before {
  width: 80%;
}

.navbar a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar a.active {
  color: var(--primary-color);
}


.navbar a:active {
  transform: scale(0.95);
}


.navbar a:hover::before {
  content: '✨';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  opacity: 0;
  animation: float 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}


section {
  padding: 120px 20px 80px;
  max-width: 1200px;
  margin: 40px auto;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section.active {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out;
}

section h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

section h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 20px 0 15px;
}

/* Contenu de la maladie */
.maladie-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.maladie-section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.maladie-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.maladie-section ul {
  list-style: none;
  padding-left: 20px;
}

.maladie-section ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.maladie-section ul li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

/* Section Soutenir */
.soutenir-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.don-button {
  margin: 40px 0 20px 0;
  display: flex;
  justify-content: center;
}

.btn-don {
  margin: 0 auto;
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-don:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.btn-don:active {
  transform: translateY(-1px);
}

/* Section Contact */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-message {
  margin-top: 30px;
  font-style: italic;
  color: var(--accent-color);
}

/* Footer amélioré */
footer {
  background: var(--footer-bg);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-section p,
.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  line-height: 1.8;
  display: block;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.social-links a:hover::before {
  width: 40px;
  height: 40px;
}

.social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: var(--text-color);
}

/* Footer contact alignement */
.footer-section .contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.footer-section .contact-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-section .contact-info i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.footer-section .contact-info p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .logo {
    width: 80px;
  }

  section {
    padding: 100px 15px 60px;
    margin: 20px auto;
  }

  section h2 {
    font-size: 2.1rem;
  }

  .maladie-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .contact-info {
    justify-content: center;
  }
}

/* Section Présentation */
.presentation-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.presentation-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 30px;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.9),
    rgba(129, 199, 132, 0.1));
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.presentation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.presentation-header i {
  font-size: 2rem;
  color: var(--primary-color);
}

.presentation-header h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0;
}

.presentation-text p {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--text-color);
}

.objectifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.objectif-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.objectif-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.objectif-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.objectif-card:hover i {
  transform: scale(1.2);
  color: var(--accent-color);
}

.objectif-card h4 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.objectif-card p {
  font-size: 1.08rem;
  color: var(--text-color);
  line-height: 1.6;
}

.presentation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  background: linear-gradient(145deg,
    var(--card-bg),
    rgba(129, 199, 132, 0.15));
  border: 1px solid rgba(46, 125, 50, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.stat-number {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
  color: var(--accent-color);
}

.stat-label {
  color: var(--text-color);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .presentation-text {
    padding: 20px;
  }

  .objectifs-grid {
    grid-template-columns: 1fr;
  }

  .presentation-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}


.objectif-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(45deg);
  transition: var(--transition);
  opacity: 0;
}

.objectif-card:hover::after {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}





 
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}



html {
  scroll-behavior: smooth;
}

.interactive {
  cursor: pointer;
  transition: var(--transition);
}

.interactive:hover {
  transform: scale(1.05);
}


a:focus,
button:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}


main {
  padding-top: 140px;
}

body, section, .presentation-text p, .maladie-section p, .maladie-section ul, .soutenir-content, .contact-content, .footer-section p {
  font-size: 1.18rem;
}

@media (max-width: 768px) {
  main {
    padding-top: 110px;
  }
  section h2 {
    font-size: 2.1rem;
  }
  section h3 {
    font-size: 1.3rem;
  }
  body, section, .presentation-text p, .maladie-section p, .maladie-section ul, .soutenir-content, .contact-content, .footer-section p {
    font-size: 1rem;
  }
}

#presentation {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 60px 30px 40px;
  margin-bottom: 40px;
  border: none;
}

#presentation h2, #presentation h3, #presentation p, #presentation .objectif-card, #presentation .presentation-stats {
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  #presentation {
    padding: 40px 10px 20px;
    border-radius: 14px;
  }
}
  