/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Dec 04 2025 | 16:44:59 */
/* ===========================
   Carte film Distribution (boucle)
   =========================== */

/* Colonne qui contient la carte */
.film-card {
  position: relative;
  overflow: hidden;
}

/* Pour que l’overlay se cale sur l’image */
.film-card .elementor-widget-wrap {
  position: relative;
}

/* --- Taille visuelle identique pour toutes les affiches --- */
.film-card .elementor-widget-image {
  aspect-ratio: 2 / 3;      /* ratio poster 2:3 */
  overflow: hidden;
}

/* L'image remplit le bloc sans se déformer (recadrage si besoin) */
.film-card .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* On enlève la marge sous l’image pour que l’overlay colle bien */
.film-card .elementor-widget-image {
  margin-bottom: 0 !important;
}

/* ===========================
   Overlay (hover)
   =========================== */

.film-card-overlay {
  position: absolute;
  inset: 0; /* top/right/bottom/left: 0 */
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

/* Contenu interne : date en haut, titre/real au centre, bouton en bas */
.film-card-overlay .elementor-container,
.film-card-overlay .elementor-column,
.film-card-overlay .elementor-widget-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* haut / milieu / bas */
  align-items: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

/* Petit espace entre les widgets */
.film-card-overlay .elementor-widget {
  margin: 6px 0 !important;
}

/* ===========================
   Textes
   =========================== */

/* Date de sortie ou texte alternatif */
.film-card-overlay .aihee-heading-title .elementor-heading-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* Titre du film */
.film-card-overlay .aihee-description h2,
.film-card-overlay .aihee-description .elementor-heading-title {
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  margin: 0;
}

/* Réalisateur */
.film-card-overlay .aihee-icon.aihee-icon-first {
  text-align: center;
  font-size: 14px;
  margin: 4px 0 10px;
}

/* ===========================
   Bouton "Voir la fiche"
   =========================== */

.film-card-overlay .elementor-widget-button .elementor-button,
.film-card-overlay .aihee-icon.aihee-icon-third {
  color: #000000 !important;
  background-color: #FFFFFF;
  border-radius: 0;
  text-align: center;
  padding: 10px 22px !important;
  font-size: 14px;
  font-weight: 600;
}

/* ===========================
   Effet hover
   =========================== */

.film-card:hover .film-card-overlay {
  opacity: 1;
}

.film-card:hover img {
  transform: scale(1.03);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 772px) {
  .film-card-overlay .elementor-container,
  .film-card-overlay .elementor-column,
  .film-card-overlay .elementor-widget-wrap {
    padding: 16px 12px 16px;
  }

  .film-card-overlay .aihee-description h2,
  .film-card-overlay .aihee-description .elementor-heading-title {
    font-size: 18px;
  }

  .film-card-overlay .elementor-widget-button .elementor-button {
    padding: 8px 16px !important;
  }
}
