/* Réinitialisation globale */
* {
  box-sizing: border-box;
  margin: auto;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0; 
  padding: 0;
  background-color: #f4faf4;
  color: #333;
  min-height: 100vh;
}

a {
  color: #009900; /* Couleur verte ARDAYE - adapte si besoin */
  text-decoration: none;
}

a:hover, a:focus {
  color: #000000; /* Vert foncé pour hover */
  text-decoration: none; /* Pas de soulignement */
}

/* Header */
header {
  background-color: #006600; /* Vert foncé ARDAYE */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0, 100, 0, 0.3);
}



header img {
  height: 100px;
}

nav a {
  margin-left: 20px;
  font-weight: bold;
  color: white;
}



/* Hero Section corrigé */
.hero-slider {
 background: linear-gradient(rgba(0,102,0,0.7), rgba(0,102,0,0.7));
    color: white;
    text-align: center;
    padding: 70px 15px 90px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 325px;
  background: #1a491b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-images {
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0; top: 0;
  transition: opacity 0.6s;
  border-radius: 0;
}

.slide.active {
  display: block;
  position: relative;
  opacity: 1;
  z-index: 1;
}



.slider-btn {
  background: rgba(0,102,0,0.7);
  color: #fff;
  border: none;
  font-size: 2em;
  width: 45px; height: 45px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  outline: none;
}
.slider-btn.prev { left: 12px;}
.slider-btn.next { right: 12px;}
.slider-btn:hover { background: #009900;}

.hero-caption {
  background: rgba(0, 102, 0, 0.84);
  color: #fff;
  text-align: center;
  padding: 32px 24px 18px 24px;
}

.hero-caption h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0 0 16px;
  text-shadow: 0 0 8px rgba(0,0,0,0.09);
}
.hero-caption p {
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.hero-caption .btn { margin-bottom: 7px;}




/* Boutons */
.btn {
  background-color: #009900; /* Vert clair */
  color: white;
  padding: 12px 25px;
  margin: 0 10px 10px 10px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #007700;
}

/* Sections principales */
main {
  max-width: 1500px;
  margin: 0 auto 10px;
  padding: 0 5px;
}

section {
  background-color: white;
  padding: 24px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px #cce5cc;
}

section h2 {
  color: #006600;
  border-bottom: 3px solid #009900;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

ul.project-list {
  list-style: none;
  padding-left: 0;
}

ul.project-list li {
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Footer
footer {
  flex-shrink: 0;
  background-color: #006600;
  color: white;
  text-align: center;
  padding: 18px 10px;
  font-size: 0.9em;
} */


.feature-grid {
  display: flex; 
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 12px #e5f2e5;
  padding: 28px;
}

.feature-text { flex: 1; }
.feature-image img { width: 380px; min-width:200px; max-width:100%; border-radius: 8px; }

.projects-section { margin-top: 40px; }
.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.project-item {
  background: #f8fff8;
  border-radius: 10px;
  box-shadow: 0 0 7px #e5f2e5;
  display: flex;
  align-items: start;
  flex: 1 1 42%;
  padding: 18px;
  gap: 18px;
}
.project-item img {
  width: 284px; height: 284px;
  border-radius: 7px;
  object-fit: cover;
}
.project-item h3 { margin-top: 0; color: #006600;}
.project-item p { margin-bottom: 0; }

.partners {
  margin: 60px 0 0 0;
  text-align: center;
  background-image: url("../img/ardaye-class.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 0 12px #e5f2e5;
  padding: 22px 0 18px;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}


.partners-logos img {
  height: 160px;
  max-width: 250px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,102,0,0.09);
}
.partners-logos img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(0,102,0,0.14);
}

/* Initial state - éléments cachés et déplacés */
.fade-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/****/
.baniere {
 background-image: url("../img/ardaye-class.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.media-columns {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  margin: 48px auto 60px auto;
  padding: 0 12px;
  background-image: url("../img/ardaye_pure_water.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center
}

.media-column {
  flex: 1 1 0px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 0 19px #e5f2e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 22px 22px;
  gap: 12px;
  min-width: 0;
  animation: fadeInUp 0.8s ease;
  
}

.media-column__media img,
.media-column__media video {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,102,0,0.12);
  margin-bottom: 10px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.media-column__media img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 28px rgba(0,120,0,0.23);
}

.media-column__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.media-column__content h2 { margin: 0 0 10px 0; color: #196925; }
.media-column__content p { margin: 0 0 8px 0; }
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
 position: fixed;
 top: 0;
 left: 0;
 width: 100vw;
 height: 100vh;
 background: rgba(0,0,0,0.6);
 display: flex;
 justify-content: center;
 align-items: center;
 z-index: 9999;
}

.modal-content {
 background: white;
 padding: 24px;
 border-radius: 12px;
 max-width: 60vw;
 max-height: 80vh;
 overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
 position: absolute;
 top: 10px;
 right: 16px;
 font-size: 28px;
 font-weight: bold;
 cursor: pointer;
}

.btn {
  background-color: #196925;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}


.fade-slide-up {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.15s;
}
.float-left-image {
  float: left;
  width: 260px;
  max-width: 40%;
  margin: 0 20px 15px 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 102, 0, 0.15);
}

.text-wrap-section {
  overflow: hidden; /* empêche le container de se casser à cause du float */
  max-width: 900px;
  margin: 48px auto;
  padding: 20px;
  background: white;
  border-radius: 13px;
  box-shadow: 0 0 18px #e5f2e5;
}

.text-wrap-section h2 {
  color: #196925;
  margin-top: 0;
}
.goals-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  background-image: url("../img/ardaye_education2.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 18px 0;
  flex-wrap: wrap;
}
.goal-item {
  flex: 1 1 150px;
  min-width: 130px;
  max-width: 220px;
  background: #f4faf4;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 8px #eee;
  padding: 28px 6px 13px 6px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.goal-item:hover {
  box-shadow: 0 2px 24px #f1e5cc;
  transform: translateY(-7px) scale(1.05);
}
.goal-item img {
  width: 84px;
  height: 84px;
  margin-bottom: 4px;
}
.goal-item p {
  margin: 0;
  font-weight: bold;
  color: #006600;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.goal-banner-image {
  display: block;
  max-width: 120px;
  margin: 0 auto 24px auto;
}
.banniere img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 32px;
}
.goal-detail-section {
  max-width: 900px;
  margin: 0 auto;
  background: #f5fbf4;
  border-radius: 12px;
  padding: 32px 24px;
}

.goal-detail-section img.goal-banner-image {
  display: inline-block;
  max-width: 160px;
  margin-right: 18px;
  vertical-align: middle;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,90,0,0.10);
}


/* Formulaire général */
form.volunteer-form, form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
}

label {
  font-weight: bold;
  color: #196925; /* Vert ARDAYE */
  margin-bottom: 0.3rem;
  display: block;
  margin: 0;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 1px solid #9cc88a;
  border-radius: 6px;
  background: #f4faf4;
  transition: border-color 0.25s ease;
  width: auto;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #196925;
  outline: none;
  background: #e6f3de;
}

select[multiple] {
  min-height: 4.5em;
  
}

button[type="submit"] {
  background: linear-gradient(45deg, #196925, #009900);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: linear-gradient(45deg, #005900, #007700);
}

/* Message de succès */
.success {
  background-color: #d5efd5;
  color: #245624;
  border: 1px solid #7cc27c;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Texte d’informations */
p.info {
  font-style: italic;
  color: #40602b;
  font-size: 0.9rem;
  margin-top: 1rem;
}
/** footer***/

.footer-ardaye {
  background: #006600;
  color: #fff;
  padding: 36px 0 0 0;
  margin: 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.footer-grid {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 26px;
}
.footer-block {
  flex: 1 1 220px;
  min-width: 190px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin-bottom: 1.2rem;
}
.footer-logo { font-size: 2rem; }
.footer-title { font-size: 1.3rem; font-weight: bold; letter-spacing: 2px;}
.footer-desc { color: #b4e3bf; font-size: 1rem; margin: 0 0 18px 0;}
.footer-contact a,
.footer-team-list p { color: #d9ffe4; text-decoration: none; }
.footer-contact, .footer-team-list { font-size: 1rem; }
.footer-contact > div { margin-bottom: 0.55em;}
.footer-contact span { margin-right: 0.28em;}
.footer-bottom {
  border-top: 1px solid #50a765;
  margin-top: 22px;
  padding: 16px 0 5px 0;
  color: #c1f5d7;
  text-align: center;
  font-size: 0.98em;
}

/* tableau ***/
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}
th, td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}
th {
  background-color: #196925;
  color: #fff;
}
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}
/** detail**/
.news-detail, .project-detail {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 0 15px;
}

.news-detail h1, .project-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #004d99;
}

.news-detail .meta, .project-detail .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.news-image, .project-detail img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content, .project-description {
  font-size: 1.1rem;
  font-weight: 400;
  color: #444;
  white-space: pre-line;
}

.project-detail video {
  display: block;
  margin: 20px 0;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.recent-news ul li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.recent-news ul li img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 4px; /* Réduit l’espace */
  background: #fff;
  border: 1px solid #eee;
}
.recent-news ul li div {
  flex: 1;
  min-width: 0;
}
#news-carousel li {
  min-width: 0;
  gap: 8px; /* pour garder l’espace juste */
}

section, .hero-caption, .projects-list, .partners-logos {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}

/* Délais différents selon l'ordre */
section:nth-of-type(1)    { animation-delay: 0.2s; }
section:nth-of-type(2)    { animation-delay: 0.4s; }
section:nth-of-type(3)    { animation-delay: 0.6s; }
section:nth-of-type(4)    { animation-delay: 0.8s; }

/* Boutons : transition douce */
.btn, .slider-btn {
  transition: background-color 0.3s, box-shadow 0.3s;
}
.btn:hover, .slider-btn:hover {
  background-color: #007700;
  box-shadow: 0 0 8px #009900cc;
}

/* Logos partenaires : scale + shadow on hover */
.partners-logos img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partners-logos img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 153, 0, 0.35);
  cursor: pointer;
}
/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bannière responsive */
.baniere {
  text-align: center;
  padding: 20px;
}

.baniere img {
  width: 90%;
  max-width: 1200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 102, 0, 0.25);
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease;
}

.baniere img:hover {
  transform: scale(1.03);
}

/* === Défilement vertical continu des drapeaux === */
.flag-marquee-container {
  height: 140px;
  overflow: hidden;
  position: relative;
  background: transparent;
  border-radius: 6px;
}

.flag-marquee-container ul {
  display: flex;
  flex-direction: column;
  animation: scrollFlags 10s linear infinite;
  margin: 0;
  padding: 0;
}

.flag-marquee-container li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  list-style: none;
  font-weight: bold;
  color: #006600;
  font-family: Arial, sans-serif;
  justify-content: flex-start;
  padding: 0 8px;
}

.flag-marquee-container img {
  width: 12px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.flag-count {
  color: #006600;
  font-weight: normal;
}

/* Animation infinie fluide */
@keyframes scrollFlags {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .flag-marquee-container {
    height: 100px;
  }

  .flag-marquee-container li {
    font-size: 0.9rem;
  }
}



/* Responsivité */
@media (max-width: 1024px) {
  .baniere img {
    width: 90%;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .baniere img {
    width: 95%;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .baniere img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .baniere h2 {
    font-size: 1.4rem;
    padding: 10px 0;
  }
}

/* ========================= */
/*  MEDIA QUERIES RESPONSIVE */
/* ========================= */

/* --- Tablettes horizontales et petits écrans (max 1200px) --- */
@media (max-width: 1200px) {
  header img {
    height: 80px;
  }

  nav a {
    margin-left: 15px;
    font-size: 0.95rem;
  }

  .feature-grid {
    flex-direction: column;
    text-align: center;
  }

  .feature-image img {
    width: 70%;
  }

  

  .project-item {
    flex: 1 1 48%;
  }

  .partners-logos img {
    height: 130px;
    max-width: 200px;
  }
}

/* --- Tablettes verticales et écrans moyens (max 768px) --- */
@media (max-width: 768px) {

  /* Header */
  header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
  }

  nav a {
    margin: 8px 10px;
    font-size: 1rem;
  }

  /* Hero */
  .hero-caption h1 {
    font-size: 1.8rem;
  }
  .hero-caption p {
    font-size: 1rem;
  }

  .slider-btn {
    font-size: 1.5em;
    width: 38px;
    height: 38px;
  }

  /* Sections */
  section {
    padding: 18px;
  }

  .feature-grid {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .feature-image img {
    width: 85%;
    max-width: 320px;
  }

  .projects-list {
    flex-direction: column;
    align-items: center;
  }

  .project-item {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }

  .project-item img {
    width: 100%;
    height: auto;
  }

  /* Colonnes média */
  .media-columns {
    flex-direction: column;
    gap: 20px;
    padding: 0 8px;
  }

  /* Objectifs */
  .goals-grid {
    flex-wrap: wrap;
    gap: 18px;
  }

  .goal-item {
    max-width: 180px;
  }

  /* Pied de page */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
}

/* --- Smartphones et petits écrans (max 480px) --- */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  header img {
    height: 65px;
  }

  .hero-caption {
    padding: 20px 10px;
  }

  .hero-caption h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .feature-image img,
  .media-column__media img,
  .media-column__media video {
    max-width: 100%;
  }

  .projects-list {
    flex-direction: column;
  }

  .project-item {
    flex: 1 1 100%;
  }

  .partners-logos img {
    height: 100px;
    max-width: 180px;
  }

  .goal-item {
    max-width: 140px;
    padding: 18px 5px;
  }

  .goal-item p {
    font-size: 1rem;
  }

  .footer-block {
    text-align: center;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-desc {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }
}
