/* ==========================================================================
   🖼️ SECTION : LES SALONS ALENTOURS (GRILLE D'AFFICHES)
   ========================================================================== */

.apce-salons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Style commun des cartes (Images et PDF) */
.apce-salon-card {
    background-color: var(--apce-bg-card);
    border-radius: var(--apce-radius-card);
    overflow: hidden;
    box-shadow: var(--apce-shadow-card);
    border: var(--apce-border-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.apce-salon-card:hover {
    transform: translateY(-4px);
    border-color: var(--apce-yellow);
}

/* Force les images et les canvas PDF à adopter exactement la même proportion A4 */
.apce-salon-card img, 
.apce-salon-card canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.414; /* Ratio magique géométrique du format A4 */
    object-fit: cover; /* Recadre proprement si l'image originale n'est pas tout à fait droite */
    background-color: #1e1e24;
    display: block;
}

/* Bandeau d'information sous l'affiche */
.apce-salon-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1; /* Aligne les bandeaux du bas même si le titre est long */
}

.apce-salon-info h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
}

/* Petit macaron jaune exclusif aux pages de PDF */
.pdf-page-badge {
    background: rgba(229, 230, 66, 0.15);
    color: var(--apce-yellow);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid rgba(229, 230, 66, 0.2);
    margin-left: 10px;
}

/* Adaptation mobiles */
@media screen and (max-width: 600px) {
    .apce-salons-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}