/**
 * STYLES POUR LA SECTION GRILLE D'ÉVÉNEMENTS DE LA PAGE ÉVÉNEMENTS
 * Ce fichier adapte les styles de events-grid-front.css pour la page événements
 * Date: 8 septembre 2025
 */

/*
  section-evenements-grille-events.css
  Styles de la section Grille Événements.
  Factorisation, optimisation, documentation complète.
*/

/* Import des styles de base de la grille d'événements de l'accueil */
@import url('/styles/components/events-grid-front.css');

/* CSS SECTION  EVENEMENTS */
/* Définition de la séparation violette */
.header-separation-purple {
  height: 5px;
  background: var(--gradient-secondary-purple);
  width: 100%;
  display: block;
  margin: 0; /* Pas d'espacement vertical */
}

.section-events-grid {
  background: var(--gradient-principal-grey);
  display: var(--base-display);
  flex-direction: var(--base-flex-direction);
  align-items: center;
  justify-content: center;
  width: var(--base-width);
  height: var(--base-height);
  gap : 25px;
  padding: var(--base-padding);
  margin: var(--base-margin);
}

/* BLOC2  EVENEMENTS GRID */
.bloc-events-grid{
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 50px 20px;
  width: 100%;
  max-width: 1190px;
  border-radius: 25px;
  background: var(--gradient-principal-grey);
  color: #000;
  box-sizing: border-box;
  height: auto;
    box-shadow: var(--neomorphic-shadow-purple);
  border: var(--neomorphic-border-purple);
}

/* SECTION/BLOC GRILLE EVENEMENTS */
.grille-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px; /* espace entre le bord du bloc et les cartes */
  box-sizing: border-box;
  border: 2px solid var(--color-purple); /* Ajout de la bordure violette */
}
@media (max-width: 900px) {
  .grille-events {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .custom-select {
    position: relative;
    z-index: 999;
    width: 100%;
    min-width: 0;
    max-width: 420px;
    margin: 12px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
    box-sizing: border-box;
  }
  .custom-select__selected {
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 8px;
  }
  .custom-select__dropdown {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 8px 0;
    box-sizing: border-box;
  }
  .custom-select__option {
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-bottom: 4px;
  }
  .custom-select__dropdown {
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    background: #fff;
    box-shadow: 0 8px 32px rgba(31,38,135,0.18);
    pointer-events: auto !important;
  }
}
.event-card {
  aspect-ratio: 16/9;
  background: #eee;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.event-card img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  display: block;
}
.event-card-content {
  padding: 16px 24px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}
.event-card p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}