/* Surcharges propres au portage Next.js (le CSS Avada d'origine n'est pas modifié). */
/* Lightbox des images */
.lightbox-site {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-site img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.lightbox-site button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: 12px 18px;
  opacity: 0.85;
}
.lightbox-site button:hover {
  opacity: 1;
}
.lightbox-site .lb-fermer {
  top: 8px;
  right: 12px;
}
.lightbox-site .lb-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-site .lb-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-site .lb-legende {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* Bandeau de consentement aux cookies (components/Consentement.tsx), aux couleurs du site : bleu nuit #001d4f,
   bleu #0763e3, Roboto. Refuser et Accepter : même taille, même couleur, même place (CNIL). */
.consentement {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 100001;
  width: min(720px, calc(100% - 32px));
  padding: 22px 24px;
  border-top: 4px solid #0763e3;
  border-radius: 4px;
  background: #001d4f;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  color: #e6ecf5;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  transform: translateX(-50%);
}
.consentement-titre {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}
.consentement-texte {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 22px;
}
.consentement-texte a {
  color: #ffffff;
  text-decoration: underline;
}
.consentement-boutons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.consentement-bouton {
  padding: 12px 23px;
  border: 0;
  border-radius: 4px;
  background: #0763e3;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.consentement-bouton:hover,
.consentement-bouton:focus-visible {
  background: #5a5cf9;
}
/* Lien « Gestion des cookies » (barre de copyright, mentions légales) : bouton à l'allure d'un lien */
.gestion-cookies {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.fusion-footer .gestion-cookies,
.fusion-tb-footer .gestion-cookies {
  color: #ffffff;
  text-decoration: none;
}
@media (max-width: 640px) {
  .consentement {
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 18px 16px;
  }
}
