/* Correctifs Play-Event, en complément de la feuille Tailwind exportée par Figma.
   Contient uniquement les styles absents de cette feuille. */

/* ---------- Slideshow de l'accueil ---------- */
[data-slideshow] [data-icon],
[data-slideshow] [data-title],
[data-slideshow] [data-text] {
  transition: opacity .3s ease, transform .3s ease;
}

[data-slideshow].fade-out [data-icon],
[data-slideshow].fade-out [data-title],
[data-slideshow].fade-out [data-text] {
  opacity: 0;
  transform: translateY(6px);
}

/* Zone de clic des points agrandie sans changer leur apparence */
[data-slideshow] [data-dots] button {
  position: relative;
  width: 10px;
  height: 10px;
}

[data-slideshow] [data-dots] button::after {
  content: "";
  position: absolute;
  inset: -14px -4px;
}

[data-slideshow] [data-prev]:focus-visible,
[data-slideshow] [data-next]:focus-visible,
[data-slideshow] [data-dots] button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Menu mobile ---------- */
#mobile-menu a:focus-visible,
#menu-toggle:focus-visible {
  outline: 2px solid #ff6900;
  outline-offset: 2px;
}

/* ---------- Popup vidéo (page Modules) ---------- */
#video-modal {
  background-color: rgba(0, 0, 0, .8);
}

/* Module videos are vertical (9:16): the box takes the largest size
   that fits the screen without distorting the video */
.video-modal-box {
  aspect-ratio: 9 / 16;
  height: min(85vh, calc(90vw * 16 / 9));
  overflow: hidden;
}

#close-modal {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, .5);
}

#close-modal:focus-visible,
[data-video]:focus-visible {
  outline: 3px solid #ff6900;
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Pied de page ---------- */
.site-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  font-size: .875rem;
}

/* ---------- Pictogrammes des modules (accueil) ---------- */
.picto-label {
  line-height: 1.2;
  /* deux lignes réservées : les icônes restent alignées même si un nom passe à la ligne */
  min-height: 2.4em;
}

.site-footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-bottom a:hover {
  color: #ff6900;
}

/* ---------- Pages légales ---------- */
.legal {
  color: #101828;
  line-height: 1.7;
}

.legal h2 {
  color: #ff6900;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  margin-bottom: 1rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.legal a {
  color: #0e9aa2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mention RGPD sous le formulaire de contact */
.form-privacy {
  margin-top: 1rem;
  color: #6b7280;
  font-size: .8125rem;
  line-height: 1.5;
}

.form-privacy a {
  color: #0e9aa2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.picto-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
