/* HURES SARL — compléments : bouton WhatsApp flottant et bouton « Appeler » (mobile) */

.hures-wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hures-wa-float:hover,
.hures-wa-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  color: #fff;
}
.hures-wa-float:focus-visible {
  outline: 3px solid #0b3d91;
  outline-offset: 3px;
}
.hures-wa-float svg {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Sur téléphone : rond, sans texte, pour ne rien masquer */
@media (max-width: 640px) {
  .hures-wa-float {
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }
  .hures-wa-float span {
    display: none;
  }
}

/* Page programme : au-dessus de la barre « Recevoir le programme » fixée en bas sur mobile */
@media (max-width: 1023px) {
  body.has-sticky-cta .hures-wa-float {
    bottom: 86px;
  }
}

/* Masqué à l'impression */
@media print {
  .hures-wa-float {
    display: none;
  }
}

/* Carrousel photos des formations : une photo à la fois, on glisse vers la droite */
.hures-carrousel {
  position: relative;
  max-width: 920px;
}
.hures-galerie {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #0f2a40;
  box-shadow: 0 6px 24px rgba(8, 36, 63, 0.16);
  scrollbar-width: none;
}
.hures-galerie::-webkit-scrollbar { display: none; }
.hures-galerie a {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .hures-galerie a { aspect-ratio: 3 / 2; }
}
.hures-galerie img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hures-galerie a:focus-visible { outline: 3px solid #f0b400; outline-offset: -3px; }

.hures-carrousel__fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #08243f;
  font: 400 30px/1 system-ui, sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.hures-carrousel__fleche[data-prec] { left: 10px; }
.hures-carrousel__fleche[data-suiv] { right: 10px; }
.hures-carrousel__fleche:disabled { opacity: 0; pointer-events: none; }
.hures-carrousel__fleche:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
@media (hover: none) and (max-width: 640px) {
  .hures-carrousel__fleche { width: 38px; height: 38px; font-size: 24px; }
}
.hures-carrousel__compteur {
  margin-top: 12px;
  text-align: center;
  font: 600 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #08243f;
  letter-spacing: 0.04em;
}
.hures-carrousel__legende {
  margin-top: 2px;
  text-align: center;
  font: 400 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #5b6b7a;
}

/* Visionneuse plein écran */
.hures-visionneuse {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 18, 32, 0.94);
  color: #fff;
}
.hures-visionneuse::backdrop { background: rgba(5, 18, 32, 0.94); }
.hures-visionneuse figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 16px 24px;
}
.hures-visionneuse img {
  max-width: min(100%, 1040px);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 6px;
}
.hures-visionneuse figcaption { font: 500 15px/1.4 system-ui, sans-serif; text-align: center; max-width: 720px; }
.hures-visionneuse button {
  position: absolute;
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 400 28px/1 system-ui, sans-serif;
  cursor: pointer;
}
.hures-visionneuse button:hover,
.hures-visionneuse button:focus-visible { background: rgba(255, 255, 255, 0.28); outline: none; }
.hures-visionneuse [data-fermer] { top: 12px; right: 12px; }
.hures-visionneuse [data-prec] { left: 12px; top: 50%; transform: translateY(-50%); }
.hures-visionneuse [data-suiv] { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .hures-visionneuse [data-prec], .hures-visionneuse [data-suiv] { top: auto; bottom: 16px; transform: none; }
}
