/* Sessions Eureka Grid Styles - Version Responsive */

/* Reset et base */
.sessions-eureka-grid-container {
    position: relative;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

/* Titre principal */
.grid-header {
    text-align: center;
    margin-bottom: 30px;
}

.grid-title {
    font-weight: 900;
    font-size: 2.5rem;
    color: #CC9922;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Grille responsive */
.grid-layout {
    display: grid;
    width: 100%;
    align-content: start;
}

/* Grille responsive simple */
.grid-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    height: auto;
}

/* Tablet : 2 colonnes */
@media (max-width: 1023px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 767px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Cartes de la grille */
.grid-card {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Images des cartes */
.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-card:hover .card-hero-image {
    transform: scale(1.05);
}

/* Placeholder pour les images manquantes */
.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #CC9922 0%, #B8860B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.card-placeholder .dashicons {
    font-size: 4rem;
    width: auto;
    height: auto;
}




/* État vide */
.grid-layout:empty::after {
    content: "Aucune session Eureka disponible pour le moment.";
    display: block;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}
