/* === FOOTER STYLES === */

footer {
  background-color: #d2d3d6;
  color: rgb(235, 32, 32);
  padding: 2px 0; /* Réduction du padding pour diminuer la hauteur */
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
  padding: 5px 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 55px;
}

/* --- Logo Madcap --- */

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left img {
  width: 80px;
  margin-left: 0px;
  border-radius: 50%;
}

/* --- Texte contact à droite --- */
.footer-right p {
  font-size: 12px;
  color: #5f5a5a !important;
  margin: 3px 0;
}

.footer-left p {
  color: #5f5a5a !important;
  font-weight: bold;
  opacity: 1 !important;
}

/* --- Liens sociaux alignés horizontalement --- */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons a img {
  width: 25px;
  height: 25px;
  transition: transform 0.5s ease, filter 0.5s ease;
  border-radius: 20px;
}

.social-icons a:hover img {
  transform: scale(1.5);
}

/* --- Liens de navigation horizontaux --- */
.footer-middle ul {
  list-style: none;
  padding: 0;
  margin: 5px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.footer-middle ul li {
  display: inline-block;
}

.footer-middle ul li a {
  color: rgb(31, 29, 29);
  text-decoration: none;
  font-size: 12px;
  font-weight: normal !important;
}

.footer-middle ul li a:hover {
  text-decoration: underline;
}

/* --- Partie tout en bas du footer --- */
.footer-bottom {
  background-color: #1A252F;
  padding: 3px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgb(238, 232, 232) !important;
  font-size: 12px;
  opacity: 1 !important;
  font-weight: normal !important;
}

/* === Suppression des fonds clairs autour du texte SEULEMENT dans le footer === */
footer p, footer a, footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Spécifiquement pour les liens dans le footer */
footer a {
  display: inline;
  padding: 0;
}

/* Spécifiquement pour les champs de texte dans le footer */
footer input, footer button, footer textarea {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ========== MEDIA QUERIES ========== */

/* Écrans ≤ 768px */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px;
  }

  .footer-left,
  .footer-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .footer-left img {
    margin-bottom: 10px;
  }

  .footer-middle ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-middle ul li a {
    font-size: 13px;
  }
}

/* Écrans ≤ 480px */
@media screen and (max-width: 480px) {
  .footer-middle ul {
    flex-direction: column;
    align-items: center;
  }

  .footer-middle ul li {
    margin: 5px 0;
  }

  .footer-middle ul li a {
    font-size: 14px;
    display: inline-block;
    text-align: center;
  }

  .footer-container {
    padding: 10px 5px;
  }
}
