/* ============================================================
   AFFICHE WEBINAIRE GRATUIT — Design moderne, no-image, propre.
   Pilotée par events.json + js/events-loader.js
   ============================================================ */

.fa-poster {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(5,10,25,0.55) 0%, rgba(5,10,25,0.85) 65%, rgba(2,6,15,0.95) 100%),
    url('../images/poster-bg-coach.jpg') center / cover no-repeat,
    #050a14;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: #ffffff;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,166,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.05);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
}
.fa-poster[data-fallback="true"] {
  background:
    linear-gradient(180deg, rgba(5,10,25,0.55) 0%, rgba(5,10,25,0.85) 65%, rgba(2,6,15,0.95) 100%),
    url('../images/poster-bg-coach.jpg') center / cover no-repeat,
    #050a14;
}

/* ===== BANDEAU "WEBINAIRE GRATUIT" en haut ===== */
.fa-poster__banner {
  position: relative;
  z-index: 2;
  background: #00A6FF;
  color: #0a0a0a;
  padding: 10px 18px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 3px;
  align-self: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0,166,255,0.25);
}

/* ===== CADRE NÉON BLEU AVEC TITRE — Centré dans la card ===== */
.fa-poster__frame {
  position: relative;
  z-index: 2;
  flex: 1;
  border: 1.5px solid rgba(0,166,255,0.7);
  box-shadow:
    0 0 18px rgba(0,166,255,0.35),
    inset 0 0 22px rgba(0,166,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  background: rgba(0,0,0,0.20);
  border-radius: 6px;
  margin-bottom: 22px;
}

.fa-poster__title {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.fa-poster__title .l1,
.fa-poster__title .l2,
.fa-poster__title .l3 {
  display: block;
  font-size: clamp(15px, 2.4vw, 22px);
}
.fa-poster__title .yellow { color: #FFD60A; }
.fa-poster__title .white { color: #ffffff; }

/* ===== "REJOINS-NOUS" — petit label italique au-dessus de la date ===== */
.fa-poster__cta-label {
  position: relative;
  z-index: 2;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

/* ===== ENCADRÉ DATE + HEURE (en bas de la card) ===== */
.fa-poster__datebar {
  position: relative;
  z-index: 2;
  border: 1.5px solid rgba(0,166,255,0.6);
  background: rgba(0,8,30,0.5);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.fa-poster__day {
  font-size: 38px;
  font-weight: 900;
  color: #FFD60A;
  line-height: 1;
}
.fa-poster__monthyear {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: #FFD60A;
  text-transform: uppercase;
  line-height: 1.2;
}
.fa-poster__clock {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #FFD60A;
  position: relative;
  flex-shrink: 0;
}
.fa-poster__clock::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 9px;
  background: #FFD60A;
  transform-origin: top center;
  transform: translate(-50%, 0);
}
.fa-poster__clock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 6px;
  background: #FFD60A;
  transform-origin: top center;
  transform: translate(-50%, 0) rotate(90deg);
}
.fa-poster__time {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===== MENTION REDIFFUSION ===== */
.fa-poster__replay {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== CTA AU-DESSOUS DE L'AFFICHE ===== */
.fa-poster-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.fa-poster-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #DFFF00 0%, #B8DD00 100%);
  color: #0A0A0A;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #E8FF33;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 0 0 1px rgba(223,255,0,0.6),
    0 0 24px rgba(223,255,0,0.6),
    0 0 48px rgba(223,255,0,0.3),
    0 6px 20px rgba(223,255,0,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.fa-poster-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 0 0 1px rgba(223,255,0,0.8),
    0 0 32px rgba(223,255,0,0.7),
    0 10px 30px rgba(223,255,0,0.5);
}
.fa-poster-cta.disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

/* ===== GRILLE D'AFFICHES — Max 2 par ligne ===== */
.fa-posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  max-width: 1000px;
  gap: 40px;
  margin: 0 auto;
}
/* Force 2 cartes max par ligne au-delà de 720px */
@media (min-width: 720px) {
  .fa-posters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .fa-posters-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
