/* ============================================================
   ADMIN SELECTION GRID
   Grilles de cartes pour sélectionner un contenu à modifier
   (Films, Séries, Personnages, Entreprises, etc.)
   ============================================================ */

/* Hero section moderne pour pages de sélection */
.selection-hero {
  background: linear-gradient(135deg, #1e88e5 0%, #7e57c2 100%);
  border-radius: 16px;
  padding: 48px 32px;
  margin-bottom: 32px;
  box-shadow: 0 12px 32px rgba(30, 136, 229, 0.25);
}

.selection-hero-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 32px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Barre de filtres / recherche */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.filter-bar input[type="text"],
.filter-bar select {
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  flex: 1;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.filter-bar input[type="text"]:focus,
.filter-bar select:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.2);
  transform: translateY(-1px);
}

.filter-bar button,
.filter-bar .btn-etape {
  padding: 14px 32px;
  background: #fff;
  color: #1e88e5;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.filter-bar button:hover,
.filter-bar .btn-etape:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.filter-bar .per-page-select {
  flex: 0 0 auto;
  min-width: 120px;
}

/* Grille de cartes */
.film-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 0;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Carte individuelle */
.film-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.film-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.2);
}

.film-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: #f3f4f6;
}

.film-card-title {
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 12px;
  color: #1e293b;
  background: #fff;
  line-height: 1.4;
}

/* Message vide */
.selection-empty {
  background: #fff;
  padding: 48px 32px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.selection-empty p {
  font-size: 1.2rem;
  color: #64748b;
  margin: 0;
}

/* Conteneur principal pour pages de sélection */
.etape-container.selection-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.etape-main:has(.selection-page) {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 40px 20px 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .selection-hero {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .selection-hero-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar input[type="text"],
  .filter-bar select,
  .filter-bar button,
  .filter-bar .btn-etape {
    width: 100%;
    min-width: unset;
  }

  .film-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 24px;
  }

  .film-card img {
    height: 220px;
  }

  .selection-empty {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .selection-hero {
    padding: 24px 16px;
    border-radius: 8px;
  }

  .selection-hero-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .filter-bar input[type="text"],
  .filter-bar select,
  .filter-bar button,
  .filter-bar .btn-etape {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .film-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .film-card img {
    height: 190px;
  }

  .film-card-title {
    font-size: 0.85rem;
    padding: 8px 6px;
  }

  .selection-empty {
    padding: 24px 16px;
  }

  .selection-empty p {
    font-size: 1rem;
  }
}
