/* ── Section événements (index.php) ───────────────────────────────────────── */

#evenements { padding: 0 1rem 1rem; max-width: 900px; margin: 0 auto; }
#evenements > h2 { text-align: center; margin-bottom: 2rem; }

/* Carte événement */
.ev-card {
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(61,40,112,0.08);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

/* Mise en page image + texte côte à côte */
.ev-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 600px) { .ev-layout { grid-template-columns: 1fr; } }

/* Image clicable */
.ev-img {
    width: 100%;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ev-img:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* Texte */
.ev-text-col h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.ev-description { line-height: 1.7; font-size: 0.97rem; }
.ev-description p { margin: 0 0 0.6rem; }

/* Alerte places restantes */
.ev-places-warning {
    display: inline-block;
    margin: 0.85rem 0 0;
    padding: 0.35rem 0.85rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Complet */
.ev-complet {
    margin-top: 1rem;
    font-weight: 700;
    color: #991b1b;
}

/* Zone inscription */
.ev-register-area { margin-top: 1.25rem; }

.ev-btn-inscr {
    display: inline-block !important;
    width: auto !important;
    padding: 0.65rem 1.75rem !important;
    border-radius: 30px !important;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Formulaire inline */
.ev-form {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #F5EEE2;
    border-radius: 12px;
    border: 1px solid #E8D5C0;
}

.ev-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
@media (max-width: 480px) { .ev-form-grid { grid-template-columns: 1fr; } }

.ev-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3D2870;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ev-input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid #D9C5E8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    color: #3D2870;
}
.ev-input:focus {
    outline: none;
    border-color: #3D2870;
    box-shadow: 0 0 0 3px rgba(61,40,112,0.1);
}

.ev-captcha-row { margin: 1rem 0; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.ev-form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.ev-btn-cancel { background: none; border: none; color: #888; cursor: pointer; font-size: 0.9rem; text-decoration: underline; }
.ev-btn-cancel:hover { color: #3D2870; }

/* Messages flash */
.ev-flash-ok {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}
.ev-flash-err {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 0.75rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.ev-flash-err p { margin: 0.2rem 0; }

/* Lightbox */
#lightbox-ev {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#lightbox-ev.open { display: flex; }
#lightbox-ev img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

