/* Gallery Coach (isolé) : ampoule fixe + pulse + safe z-index */
.gallery-coach-trigger{
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 96px;
  height: 96px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent; 
  backdrop-filter: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10050; /* > share-modal(9999) et au-dessus des bandeaux */
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translate(10px, 10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.gallery-coach-trigger.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translate(10px, 10px) scale(1);
}

.gallery-coach-trigger img{
  width: 100%;
  height: 100%;
  display:block;
  image-rendering: pixelated;
  user-select:none;
  -webkit-user-drag:none;
  transform: translateY(-2px);
}

.gallery-coach-trigger.is-pulsing{
  /* animation: galleryCoachPulse var(--coach-pulse, 1600ms) ease-in-out infinite; */
  animation: none !important;
}
/* ✅ Animation sur l'image (Safari: beaucoup plus smooth) */
.gallery-coach-trigger.is-pulsing img{
  animation: galleryCoachPulseImg var(--coach-pulse, 1600ms) ease-in-out infinite;
  will-change: transform, opacity;
  transform: translate3d(0, -2px, 0); /* garde ton petit offset */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@keyframes galleryCoachPulseImg{
  0%   { transform: translate3d(0, -2px, 0) scale(1);   opacity: 1; }
  40%  { transform: translate3d(0, -6px, 0) scale(1.10); opacity: 1; }
  70%  { transform: translate3d(0, -4px, 0) scale(1.04); opacity: .96; }
  100% { transform: translate3d(0, -2px, 0) scale(1);   opacity: 1; }
}
@supports (-webkit-touch-callout: none){
  .gallery-coach-trigger img{
    image-rendering: auto;
  }
}

@keyframes galleryCoachPulse{
  0%{
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(255,0,168,0));
  }
  40%{
    transform: translateY(-3px) scale(1.10);
    filter:
      drop-shadow(0 6px 14px rgba(255,0,168,.35))
      drop-shadow(0 0 12px rgba(255,0,168,.45));
  }
  70%{
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 3px 8px rgba(255,0,168,.22));
  }
  100%{
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(255,0,168,0));
  }
}

/* Disparition sans reflow */
.gallery-coach-trigger.is-gone{
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Optionnel : sur très petit écran, remonte un peu pour éviter footer/UI */
@media (max-width: 520px){
  .gallery-coach-trigger{ right: 12px; bottom: 12px; width: 52px; height: 52px; }
}

.coach-stage{
  position: relative;
}

/* Slides */
.coach-slide{
  display: none;
  padding: 12px;
  gap: 10px;
}
.coach-slide.is-active{
  display: grid;
}

/* Flèches : centrées verticalement, dans le stage */
.coach-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: #111827;

  text-shadow:
    0 2px 6px rgba(0,0,0,.45),
    0 0 12px rgba(255,0,168,.35);

  cursor: pointer;
  display: grid;
  place-items: center;

  transition: transform .15s ease, filter .15s ease, opacity .15s ease;

}

.coach-nav.prev{ left: 14px; }
.coach-nav.next{ right: 14px; }

/* Sur mobile, on les remonte un peu pour éviter de masquer l’image */
@media (max-width: 520px){
  .coach-nav{ top: 46%; }
}

/* Hover (desktop) */
@media (hover:hover){
  .coach-nav:hover{
    transform: translateY(-50%) scale(1.12);
    filter: drop-shadow(0 6px 14px rgba(255,0,168,.45));
  }
}

/* Active (tap / click) */
.coach-nav:active{
  transform: translateY(-50%) scale(0.95);
  opacity: .85;
}

/* Mobile : encore plus gros */
@media (max-width:520px){
  .coach-nav{
    width: 72px;
    height: 72px;
    font-size: 48px;
  }
}

/* Slide layout: image (zone “stage”) + texte dessous */
.coach-slide{
  grid-template-rows: auto auto;
  align-content: start;
}

/* Images du coach : taille maîtrisée */
/* .coach-slide img{
  width: min(520px, 100%);  
  max-height: 280px;        
  object-fit: contain;       
  display: block;
  margin: 0 auto;            
  border-radius: 12px;
  border: 1px solid #e5e7eb;
} */
.coach-slide img{
  width: min(740px, 100%);
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

@media (max-width:520px){
  /* .coach-slide img{ max-height: 220px; } */
  .coach-slide img{ max-height: 320px; }

}

.coach-copy{
  padding-top: 6px;
}

/* Stage: réserve une zone visuelle pour que les flèches ne se centrent pas sur le texte */
.coach-stage{
  /* min-height: 260px; */
  min-height: 400px;
  display: grid;
  align-content: start;
}
@media (max-width:520px){
  /* .coach-stage{ min-height: 220px; } */
  .coach-stage{ min-height: 320px; }

}
