/* monswim · Event card canonical (composant global)
 * Chargé via frame_view.php avant theme.css.
 * Aligné sur le visuel de la liste événements (sidebar /event).
 *
 * Markup attendu :
 *   <a class="ev-card" href="/e,123/..." style="--c:#004b58;">
 *     <div class="ev-card__pill">
 *       <span class="ev-card__day">05</span>
 *       <span class="ev-card__month">JUIN</span>
 *     </div>
 *     <div class="ev-card__body">
 *       <span class="ev-card__date">5 juin 2026</span>          (optionnel)
 *       <span class="ev-card__cat">Compét. FFN</span>
 *       <span class="ev-card__title">Titre de l'événement</span>
 *       <span class="ev-card__loc"><i class="fa fa-map-marker-alt"></i>Ville</span>
 *     </div>
 *     <div class="ev-card__photo">                               (optionnel)
 *       <img src="..." alt="" />
 *     </div>
 *   </a>
 *
 * Custom property --c sur la racine = couleur de la catégorie (pill + cat + hover).
 */

.ev-card {
    --c: var(--color-primary, #004b58);
    display: flex;
    align-items: stretch;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e4e8eb);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ev-card:hover,
.ev-card:focus-visible {
    border-color: var(--c);
    box-shadow: var(--shadow-md, 0 2px 6px rgba(0, 75, 88, 0.08), 0 4px 12px rgba(0, 75, 88, 0.06));
    transform: translateY(-2px);
    outline: none;
}

.ev-card__pill {
    flex: 0 0 auto;
    width: 76px;
    padding: 14px 0;
    background: var(--c);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ev-card__day {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.ev-card__month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 5px;
    opacity: 0.9;
}

.ev-card__body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ev-card__date {
    font-size: 11px;
    color: var(--color-text-muted, #8a9499);
    font-weight: 600;
}
.ev-card__cat {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill, 999px);
    background: color-mix(in srgb, var(--c) 16%, white);
    color: var(--c);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ev-card__cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
}
.ev-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary, #1a2329);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-card__loc {
    font-size: 12px;
    color: var(--color-text-muted, #8a9499);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ev-card__loc .fa,
.ev-card__loc .fas,
.ev-card__loc i { color: var(--color-accent, #e77c31); }

.ev-card__photo {
    flex: 0 0 auto;
    width: 96px;
    overflow: hidden;
    background: var(--color-surface-alt, #f6f8f9);
}
.ev-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575px) {
    .ev-card__photo { width: 72px; }
    .ev-card__pill { width: 64px; }
}
