/* css/footer.css - All footer-related styles */

/* =========================
   FOOTER
========================= */
footer{
  background: var(--ink);
  padding: 2.3rem 1.5rem;
  margin-top: 2.2rem;
  border-top: 2px solid rgba(184,124,255,.35);
  position: relative;
}

.footer-content{
  max-width: 1120px;
  margin: 0 auto;
}

.footer-info{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.6rem;
  align-items: center;
  text-align: left !important;
}

.footer-contact {
    margin-top: -25px; /* ajuste la valeur si besoin */
}

.footer-contact h3{
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color:#fff;
  font-weight: 900;
}

.footer-contact p{
  color:#fff;
  font-size: .92rem;
}

.footer-contact a{
  color:#fff;
  font-size: .92rem;
  font-weight: normal;
  text-decoration: none;
  display: block;
}

.footer-socials{
  margin-top: 0.5rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.footer-social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.footer-social-link svg{
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.footer-social-link:hover{
  color: var(--brand-violet);
}

footer a:hover{
  color: var(--brand-violet);
}

.footer-center{
  text-align: center;
  width: 100%;
}

.footer-center p{
  color:#fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-copyright{
  margin-top: 1rem;
  text-align: center;
}

.footer-copyright p{
  color:#fff;
  font-weight: 700;
  margin: 0;
}

.footer-feedback{
  color:#fff;
  font-size: .92rem;
  font-weight: normal;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.6rem;
}

.footer-logo{
  margin-left: auto;
  display: inline-block;
  position: relative;
  left: 150%;
}

.footer-logo img{
  height: 70px;
  width:auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
  cursor: pointer;
}

.footer-right{
  text-align: center;
}

.footer-site-name{
  font-size: .9rem;
  color: #fff;
  opacity:.78;
}

/* =========================
   RESPONSIVE FOOTER
========================= */
@media (max-width: 1200px){
  .footer-center{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 6px;
    margin-bottom: 0.6rem;
  }

  .footer-logo{
    margin-left: 0;
    left: 0;
  }
}

/* =========================
   FOOTER TYPOGRAPHY OVERRIDES
========================= */
footer{
  font-family: inherit;
}

.footer-contact a,
.footer-feedback{
  font-size: .92rem;
}

#footer-privacy{
  color:#fff;
  font-size: .92rem;
  font-weight: normal;
  line-height: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

#footer-privacy:hover{
  color: var(--brand-violet);
}

.footer-feedback,
#footer-email{
  font-weight: normal;
}

.footer-feedback,
.footer-feedback *{
  font-weight: normal !important;
}

@media (max-width: 768px){
  /* Mobile footer: strict vertical flow, no overlap */
  footer{
    padding: 2.6rem 1.1rem 2.3rem;
  }

  .footer-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .footer-info{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.05rem;
    text-align: center !important;
  }

  .footer-contact{
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
  }

  .footer-contact h3{
    font-size: 1.12rem;
    margin-bottom: 0.65rem;
  }

  .footer-contact p,
  .footer-contact a,
  .footer-feedback,
  #footer-privacy{
    font-size: 1rem;
    line-height: 1.6;
  }

  .footer-socials{
    margin-top: 0.75rem;
    gap: 0.85rem;
    justify-content: center;
  }

  .footer-social-link svg{
    width: 26px;
    height: 26px;
  }

  .footer-center{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.3rem;
    padding-right: 0;
    order: 1;
  }

  .footer-logo{
    margin: 0;
    left: 0;
  }

  .footer-logo img{
    height: 50px;
    width: auto;
  }

  .footer-copyright{
    width: 100%;
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-top: 1.25rem;
    text-align: center;
  }

  #footer-privacy{
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0;
    display: inline-block;
  }

  .footer-copyright p{
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
  }
}
