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

footer {
  background-color: #d2d3d6;
  color: #1a252f;
  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;
}

.footer-bottom p.footer-cookie,
.footer-bottom p.footer-credit {
  color: #e5e1d7 !important;
}

.footer-bottom a {
  color: #f7d6bc !important;
  text-decoration: underline;
}
.footer-credit a {
  color: #ffffff !important;
}
.footer-cookie-controls {
  margin: 6px 0;
  display: flex;
  justify-content: center;
}
.tac-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3c3c3c;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.tac-badge:hover {
  background: #2c2c2c;
}
.tac-label {
  font-size: 12px;
}

/* === 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;
}

/* --- Masquer les widgets flottants par défaut de TarteAuCitron --- */
#tarteaucitronAlertSmall,
.tarteaucitronOpenPanel,
#tarteaucitronRoot .tarteaucitronAlertSmall,
#tarteaucitronRoot .tarteaucitronOpenPanel {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#tarteaucitronIconWrapper,
#tarteaucitronRoot .tarteaucitronIconTop,
#tarteaucitronRoot .tarteaucitronIcon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: 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;
  }
}
