/* Police et styles de base */
body {
  font-family: 'Poppins Bold', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-weight: 600;
}

/* Style de la barre de navigation */
.navbar {
  background-color: #343a40; /* Fond sombre */
  z-index: 1000; /* Assurez-vous que la navbar soit toujours au-dessus du contenu */
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: rgb(255, 215, 0); /* Couleur personnalisée pour le nom */
}

.navbar-toggler {
  border-color: rgb(255, 215, 0); /* Couleur du bouton hamburger */
}

.navbar-toggler-icon {
  background-color: rgb(255, 215, 0); /* Couleur de l'icône hamburger */
}

.nav-link {
  color: #fff !important; /* Texte des liens en blanc */
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgb(255, 215, 0) !important; /* Couleur d'accent sur le survol */
}

/* Assurer que la navbar est toujours visible en haut de la page */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050; /* Positionner la navbar au-dessus des autres éléments */
}

.navbar-nav {
  margin-left: auto;
}

#don .btn-primary {
  background-color: rgba(0, 0, 255, 0.5);
  color: #eee;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.4s, color 0.4s, transform 0.3s ease;
  text-decoration: none;
}

#don .btn-primary:hover {
  background-color: #eee;
  color: #000;
  transform: scale(1.1);
}


/* Header (Banner) */
.banner {
  position: relative;
  height: 100vh;
  min-height: 300px;
  margin-top: 12vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrer parfaitement */
  width: 80%;
  height: 60%;
  background-color: rgba(0, 0, 255, 0.5); /* Fond bleu semi-transparent */
  color: white; /* Texte blanc */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 2; /* S'assurer qu'il est au-dessus des diapositives */
  border-radius: 10px; /* Optionnel, pour arrondir les bords */
}

.banner-overlay h1 {
  font-size: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.banner-overlay p {
  font-size: 1.2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.banner-overlay .btn {
  background-color: rgb(255, 215, 0);
  color: #eee;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.4s, color 0.4s, transform 0.3s ease;
  text-decoration: none;
}

.banner-overlay .btn:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.1);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

@media (min-width: 768px) {
  .banner-overlay h1 {
    font-size: 3rem; /* Ajustement sur tablettes */
  }
}

@media (min-width: 1200px) {
  .banner-overlay h1 {
    font-size: 4rem; /* Ajustement sur grands écrans */
  }
}

/* Section À propos */
#about {
  background: #f9f9f9;
  padding: 4rem 2rem;
}

#about h2 {
  text-align: center;
  margin-bottom: 2rem;
}

#about p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Section Vidéos */
/* Pour centrer les vidéos et ajuster leur largeur */
#videos .card {
  display: flex;
  flex-direction: column; /* Contenu vertical */
  justify-content: space-between; /* Espace entre le contenu */
  align-items: center; /* Centrer le contenu horizontalement */
  text-align: center; /* Centrer le texte */
  width: 500px; /* Largeur fixe pour uniformiser */
  min-height: 450px; /* Hauteur minimale */
  background: #ffffff; /* Fond blanc */
  border: 1px solid rgba(0, 0, 255, 0.2); /* Bordure bleue discrète */
  border-radius: 10px; /* Coins arrondis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
  overflow: hidden; /* Empêche le débordement */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#videos .card:hover {
  transform: translateY(-10px); /* Soulève légèrement la carte */
  box-shadow: 0 8px 16px rgba(0, 0, 255, 0.2); /* Ombre plus prononcée */
}

#videos .card-title {
  font-family: 'Poppins', sans-serif; /* Utilisation d'une police moderne */
  font-size: 1.1rem; /* Ajuste la taille du texte */
  font-weight: 800; /* Rend le titre plus gras */
  color: rgb(0, 0, 255); /* Bleu */
  text-transform: uppercase; /* Convertit le texte en majuscules */
  letter-spacing: 1px; /* Espacement entre les lettres */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2); /* Ombre pour donner de la profondeur */
  margin-bottom: 15px; /* Espacement sous le titre */
  border-bottom: 2px solid rgb(255, 215, 0); /* Ligne jaune sous le titre */
  padding-bottom: 5px; /* Espace entre le texte et la ligne */
  transition: color 0.3s ease-in-out; /* Animation sur le survol */
}

#videos .card .card-text {
  max-height: 100px; /* Limite la hauteur du texte */
  overflow: hidden; /* Cache l'excès de texte */
  text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse */
  font-size: 0.9rem; /* Taille adaptée pour le corps de texte */
  color: #333; /* Couleur grise pour un bon contraste */
  margin: 0 1rem; /* Espacement interne horizontal */
}

#videos .card .btn-primary {
  margin-top: 1rem; /* Ajoute de l'espace au-dessus du bouton */
  padding: 0.5rem 1rem; /* Taille du bouton */
  background-color: rgba(0, 0, 255, 0.8); /* Bleu foncé */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

#videos .card .btn-primary:hover {
  background-color: rgba(0, 0, 255, 1); /* Change le bleu au survol */
}

#videos .embed-responsive {
  width: 100%; /* Vidéo occupe toute la largeur */
  aspect-ratio: 16 / 9; /* Maintient le ratio de la vidéo */
  margin-bottom: 1rem; /* Espacement avec le texte */
}

/* Améliorer l'espacement et l'apparence du bouton */
#videos .btn {
  background-color: rgba(0, 0, 255, 0.5);
  color: #eee;
  transition: background-color 0.3s ease;
}

#videos .btn:hover {
  background-color: #fff;
  color: rgb(0, 0, 255);
}

/* Pour rendre l'iframe responsive et occuper tout le cadre */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive-16by9::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.embed-responsive-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
footer {
  background-color: #343a40;
  color: white;
  padding: 2rem 1rem;
  text-align: center !important;
}

footer p {
  margin: 0;
}

footer .social-links a {
  font-size: 1.5rem !important;
  color: rgb(255, 215, 0) !important;
  transition: color 0.3s;
}

footer .social-links a:hover {
  color: #fff !important;
}

footer .social-links a:not(:last-child) {
  margin-right: 1rem;
}

footer .btn-success {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  background-color: rgba(0, 0, 255, 0.5); /* Couleur verte WhatsApp */
  border: none;
  color: #fff; 
  transition: background-color 0.3s;
}

footer .btn-success:hover {
  background-color: rgb(255, 255, 255); /* Couleur verte légèrement plus sombre */
}

footer .separation {
  border: none;
  border-top: 4px solid rgb(255, 215, 0); /* Couleur et épaisseur du trait */
  margin: 20px 0; /* Marge pour espacer le trait du contenu */
  width: 100%; /* Largeur du trait */
  margin-left: auto;
  margin-right: auto; /* Centrer le trait */
}

.separation {
  border: none;
  border-top: 4px solid rgb(255, 215, 0); /* Couleur et épaisseur du trait */
  margin: 20px 0; /* Marge pour espacer le trait du contenu */
  width: 100%; /* Largeur du trait */
  margin-left: auto;
  margin-right: auto; /* Centrer le trait */
}

/* --- Formulaire de Don --- */

/* Wrapper principal qui englobe les deux sections */
.form-wrapper {
  display: flex;
  background: white;
  width: 70%;
  max-width: 1000px;
  height: auto;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

/* Left Section */
.form-left {
  background: linear-gradient(rgba(0, 0, 255, 0.5), rgba(0, 0, 255, 0.5)), 
              url('Images/IMG_2.jpg'); /* Couleur + image de fond */
  background-size: cover; /* Ajuste l'image pour couvrir toute la zone */
  background-position: center; /* Centre l'image */
  background-repeat: no-repeat; /* Empêche la répétition */
  color: white;
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px 0 0 10px; /* Coins arrondis à gauche */
}

.form-left h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.form-left p {
  font-size: 16px;
  line-height: 1.5;
}

/* Right Section */
.form-right {
  flex: 1.5;
  padding: 40px;
}

/* Form */
.styled-form {
  max-width: 100%;
}

.py-5 .section-title {
  font-size: 40px;
  color: #000080;
  margin-bottom: 20px;
  text-align: center;
}

.styled-form .form-group {
  margin-bottom: 20px;
}

.styled-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.styled-form .form-group input,
.styled-form .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0, 0, 255, 0.5);
  border-radius: 5px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.styled-form .form-group input:focus,
.styled-form .form-group select:focus {
  border-color: rgba(0, 0, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 255, 0.2);
  outline: none;
}

/* Submit Button */
.btn-submit {
  background: rgba(0, 0, 255, 0.8);
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
  background: rgba(0, 0, 255, 1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-wrapper {
    flex-direction: column;
  }

  .form-left {
    text-align: center;
    padding: 20px;
  }

  .form-right {
    padding: 20px;
  }
}

/* Contact Section */
.contact-section {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 1200px;
}

.contact-info {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.contact-info i {
  margin-right: 10px;
  color: rgba(0, 0, 255, 0.8);
}

.contact-form {
  flex: 1;
  padding: 1rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form button {
  padding: 0.8rem;
  background-color: rgba(0, 0, 255, 0.8);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  background-color: rgba(0, 0, 255, 0.8);
}

