.btn {
  border-radius: 10px;
}

.badge {
  font-size: 0.75rem;
}
/* ===============================
   🔥 BADGE PROMO ANIMÉ
   =============================== */

.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;

  background: #e53935;
  color: #fff;
  font-size: 13px;
  font-weight: 700;

  padding: 6px 10px;
  border-radius: 20px;

  z-index: 5;

  animation: promoPulse 1.6s infinite ease-in-out;
}

/* Animation pulse */
@keyframes promoPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(229,57,53,0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(229,57,53,0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(229,57,53,0.6);
  }
}
/* =====================================
   📱 PAGE AUTH (LOGIN / REGISTER)
   ===================================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d9f08c, #f7ffd9);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
  animation: slideUp .5s ease;
}

/* LOGO */
.auth-logo {
  max-width: 120px;
  display: block;
  margin: 0 auto 12px;
}

/* TITRES */
.auth-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* FORM */
.auth-form .form-group {
  position: relative;
  margin-bottom: 20px;
}

.auth-form input {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.auth-form label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 6px;
  color: #888;
  pointer-events: none;
  transition: .3s;
  font-size: 14px;
}

.auth-form input:focus + label,
.auth-form input:valid + label {
  top: -7px;
  font-size: 12px;
  color: #0d6efd;
}

/* BOUTON */
.btn-auth {
  width: 100%;
  padding: 12px;
  background: #0d6efd;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-auth:active {
  transform: scale(.98);
}

/* FOOTER */
.auth-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.auth-footer a {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}

/* ANIMATION */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* 👁️ TOGGLE PASSWORD */
.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  font-size: 18px;
}

.toggle-password:hover {
  color: #0d6efd;
}
/* 🔐 Force mot de passe */
.password-strength {
  margin-top: 6px;
}

.strength-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 5px;
}

#strengthText {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}
/* 📸 Galerie formations */
.gallery-img {
  cursor: pointer;
  transition: transform .25s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.object-fit-cover {
  object-fit: cover;
}
/* ===============================
   📷 LIGHTBOX GALERIE
================================ */

.gallery-img {
  cursor: zoom-in;
  transition: transform .2s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* image lightbox */
#galleryModalImg {
  max-height: 85vh;
  object-fit: contain;
}

/* boutons navigation */
#galleryModal .btn-dark {
  opacity: .75;
}
#galleryModal .btn-dark:hover {
  opacity: 1;
}

/* 📷 Galerie Lightbox */
.gallery-img-wrapper {
  aspect-ratio: 3 / 2;
  background: #000;
  overflow: hidden;
}

.gallery-zoom {
  transition: transform .3s ease;
  touch-action: pan-x pan-y pinch-zoom;
}

.gallery-zoom.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}
.video-card video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

.formation-video {
  cursor: pointer;
}
.video-short {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.video-short img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.video-short .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,.35);
}
/* 🎥 Shorts – aperçu mobile maîtrisé */
.video-short {
  max-height: 360px;      /* 👈 limite hauteur mobile */
}

.video-short iframe,
.video-short img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* 📱 Mobile uniquement */
@media (max-width: 576px) {
  .video-short {
    max-height: 300px;
  }
.video-short {
  border-radius: 16px;
  overflow: hidden;
}
}
.video-short + .text-center a {
  width: 100%;
}
