/* EIQUS — compléments maison (menu mobile, déroulant, bandeau cookies).
 * Vient APRÈS le thème Kajabi ; ne touche qu'à nos comportements ajoutés. */

/* --- Header sticky ---
 * position: sticky est cassé par l'overflow posé sur body/html par le thème,
 * donc on réplique l'approche Kajabi : site.js ajoute .header--fixed au scroll
 * (position: fixed + ombre, déjà stylé par le thème) avec un spacer anti-saut. */

/* --- Menu mobile (construit par site.js en clonant la nav desktop) --- */
.header__content--mobile .eiqus-mobile-nav { display: none; }

/* Panneau en flux sous le header (comme l'original) : il pousse le contenu
 * vers le bas, la page reste visible en dessous — pas un overlay plein écran.
 * L'affichage (display) et le glissement sont pilotés par site.js (slideDown/Up). */
html.eiqus-nav-open .header__content--mobile {
  background: #eeece0;
}
html.eiqus-nav-open .header__content--mobile .eiqus-mobile-nav {
  display: block;
  padding: 8px 24px 24px;
}
html.eiqus-nav-open .header__content--mobile .eiqus-mobile-nav .link-list,
html.eiqus-nav-open .header__content--mobile .eiqus-mobile-nav .dropdown,
html.eiqus-nav-open .header__content--mobile .eiqus-mobile-nav .user {
  display: block !important;
  width: 100%;
  margin: 0 0 8px;
}
html.eiqus-nav-open .header__content--mobile .eiqus-mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 18px;
}
.hamburger { cursor: pointer; z-index: 1001; position: relative; }

/* --- Menu déroulant du header ---
 * L'ouverture est gérée par la classe « dropdown--open » du thème (ajoutée au
 * clic par site.js), qui applique transform: scale(1) + l'animation d'origine.
 * On ajoute juste la rotation du chevron. */
.dropdown.dropdown--open .dropdown__icon { transform: rotate(180deg); }

/* --- Carrousel (remplace slick, retiré avec le JS Kajabi) --- */
.eiqus-carousel-wrap { position: relative; }
.carousel.eiqus-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}
.carousel.eiqus-carousel::-webkit-scrollbar { display: none; }
.carousel.eiqus-carousel > * {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  scroll-snap-align: center;
}
.eiqus-car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #004763;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s ease;
  opacity: 0.85;
}
.eiqus-car-arrow:hover { opacity: 1; }
.eiqus-car-prev { left: -8px; }
.eiqus-car-next { right: -8px; }
@media (min-width: 768px) {
  .eiqus-car-prev { left: -48px; }
  .eiqus-car-next { right: -48px; }
}
.eiqus-car-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.eiqus-car-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 0;
  background: rgba(0, 71, 99, 0.3);
  cursor: pointer;
  padding: 0;
}
.eiqus-car-dot.is-active { background: #004763; }
.eiqus-car-arrow:focus-visible, .eiqus-car-dot:focus-visible { outline: 2px solid #004763; outline-offset: 2px; }

/* --- Embed Brevo (formulaire de candidature ORIGIN Aidants) ---
 * Iframe cross-origin : pas d'auto-redimensionnement possible, donc hauteur
 * généreuse par palier + scrolling auto en filet de sécurité (aucune coupe). */
.eiqus-brevo-embed {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border: 0;
  height: 1080px;
}
@media (max-width: 767px) {
  .eiqus-brevo-embed { height: 1320px; }
}

/* --- Vidéo YouTube d'article (remplace le lecteur Wistia retiré) ---
 * Remplit le conteneur responsive 16:9 du thème (.kjb-video-responsive). */
.kjb-video-responsive .eiqus-yt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Bandeau cookies --- */
.eiqus-cookie [hidden] { display: none !important; }
.eiqus-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: #eeece0; border-top: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  font-family: 'Libre Franklin', system-ui, sans-serif;
}
.eiqus-cookie__inner { max-width: 1040px; margin: 0 auto; padding: 18px 20px; }
.eiqus-cookie__text { margin: 0 0 12px; font-size: 14px; color: #1a1a1a; line-height: 1.5; }
.eiqus-cookie__cats { display: grid; gap: 8px; margin: 0 0 14px; }
.eiqus-cookie__cats label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1a1a1a; }
.eiqus-cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eiqus-btn {
  border: 1px solid #004763; background: #fff; color: #004763;
  padding: 9px 18px; border-radius: 9999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.eiqus-btn--primary { background: #004763; color: #fff; }
.eiqus-btn--primary:hover { background: #0a6a8f; }
.eiqus-btn--link { border: 0; background: transparent; text-decoration: underline; }
.eiqus-btn:focus-visible { outline: 2px solid #004763; outline-offset: 2px; }
