:root {
  --rcse-green-dark: #005a24;
  --radius: 6px; 
}

footer {
  margin-top: auto;
  background: linear-gradient(
    0deg, 
    rgba(4, 100, 43, 0.95) 5%,   
    rgba(4, 100, 43, 0.6) 50%,  
    rgba(234, 248, 234, 0.4) 90%,
    rgba(234, 248, 234, 0) 100%  
  );
  padding: 60px 20px 30px; 
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; 
  gap: 30px;
  width: 100%;
}

.footer-section h3 {
  color: #04642b;
  text-transform: uppercase;
  font-size: 0.9rem; 
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--rcse-green-dark);
  display: inline-block;
  padding-bottom: 2px;
}

/* NEWSLETTER EN BLANC PAR DÉFAUT (MOBILE) */
.footer-section.newsletter h3 {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.footer-section h4 {
  color: #005a24;
  text-transform: uppercase;
  font-size: 0.65rem; 
  margin-bottom: 8px;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-section p, 
.footer-section ul li,
.footer-section a {
  font-size: 0.85rem; 
  margin-bottom: 6px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-logo {
  height: 75px;
  width: auto;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  height: 24px;
  width: auto;
}

.partenaires-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  max-width: 280px; 
  margin-left: auto;
  margin-right: auto;
}

.partenaires-grid img {
  height: 40px; 
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.newsletter-form input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  width: 100%;
  max-width: 200px;
}


/* --- VERSION TABLETTE & PC --- */
@media (min-width: 768px) {
  footer {
    text-align: left;
    padding: 40px 20px 20px;
  }

  .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-section {
    flex: 1;
    padding: 0 10px;
  }

  /* NEWSLETTER REPASSE EN VERT SUR PC */
  .footer-section.newsletter h3 {
    color: #04642b;
    border-bottom-color: var(--rcse-green-dark);
  }

  .brand, .social-icons {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .partenaires-grid {
    justify-content: center;
    margin-left: 0;
    max-width: 300px;
  }

  .partenaires-grid a {
    display: inline-block;
  }

  .partenaires-grid img {
    height: 45px; 
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-form input {
    border-radius: var(--radius) 0 0 var(--radius);
  }


  .footer-section h3 { font-size: 0.85rem; }
  .footer-section p, .footer-section li { font-size: 0.75rem; }
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.65rem;
}

.footer-bottom p {
    color: #ffffff;
}