/* public/assets/css/style.css */
.vmpc-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 14px 16px;
    margin-bottom: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;      /* empêche tout contenu de sortir de la carte */
    min-width: 0;          /* autorise la carte à rétrécir proprement dans un conteneur flex */
    box-sizing: border-box;
}
.vmpc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.vmpc-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;       /* la "Journée X" passe à la ligne au lieu de déborder */
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #004AAD;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    border-bottom: 1.5px solid #F0F2F5;
    padding-bottom: 6px;
    min-width: 0;
}
.vmpc-card-header img {
    height: 16px !important;
    width: auto !important;
    flex-shrink: 0;
    display: block;
}
.vmpc-card-header .competition-name {
    display: inline-block;
    line-height: 1.2;
    min-width: 0;
    flex: 1 1 auto;
}
.vmpc-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.vmpc-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.vmpc-team-left {
    justify-content: flex-start;
}
.vmpc-team-right {
    justify-content: flex-end;
}
.vmpc-team img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.vmpc-team-left img {
    order: 0;
}
.vmpc-team-left .vmpc-team-name {
    order: 1;
}
.vmpc-team-right img {
    order: 1;
}
.vmpc-team-right .vmpc-team-name {
    order: 0;
}
.vmpc-team-name {
    font-weight: 500;
    font-size: 13px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vmpc-score {
    font-size: 20px;
    font-weight: 700;
    color: #004AAD;
    background: #F5F7FA;
    padding: 4px 14px;
    border-radius: 8px;
    min-width: 50px;
    flex-shrink: 0;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.4;
}
.vmpc-card-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1.5px solid #F0F2F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 11px;
    color: #555;
}
.vmpc-card-footer .footer-left,
.vmpc-card-footer .footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.vmpc-card-footer .date,
.vmpc-card-footer .lieu {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;   /* évite l'empilement mot par mot de la date/heure */
}
.vmpc-card-footer .statut {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.3s ease;
}
.vmpc-card-footer .lieu-type {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0f0f0;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: #333;
}

/* --- COULEURS DYNAMIQUES PAR STATUT --- */
.vmpc-card-statut-termine {
    border-top: 3px solid #46b450 !important;
}
.vmpc-card-statut-termine .vmpc-score {
    color: #46b450;
    background: #eaf9ea;
}
.vmpc-card-statut-termine .statut {
    background: #46b450;
}

.vmpc-card-statut-prochain {
    border-top: 3px solid #007cba !important;
}
.vmpc-card-statut-prochain .vmpc-score {
    color: #007cba;
    background: #e5f3fd;
}
.vmpc-card-statut-prochain .statut {
    background: #007cba;
}

.vmpc-card-statut-reporte {
    border-top: 3px solid #ffb900 !important;
}
.vmpc-card-statut-reporte .vmpc-score {
    color: #b8860b;
    background: #fdf5e6;
}
.vmpc-card-statut-reporte .statut {
    background: #ffb900;
}

.vmpc-card-statut-annule {
    border-top: 3px solid #dc3232 !important;
}
.vmpc-card-statut-annule .vmpc-score {
    color: #dc3232;
    background: #fde5e5;
}
.vmpc-card-statut-annule .statut {
    background: #dc3232;
}

.journee {
    font-size: 10px;
    color: #999;
    text-transform: none;
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive */

/* ============================================================
   TABLETTE / MOBILE (<= 1024px) :
   Force la colonne Elementor qui contient les cartes à occuper
   toute la largeur (Elementor conserve les largeurs de colonnes
   personnalisées sur tablette et ne les empile qu'en mobile).
   ============================================================ */
@media (max-width: 1024px) {
    /* Anciennes sections/colonnes Elementor */
    .elementor-column:has(.vmpc-flex-container) {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    /* Nouveaux conteneurs flex Elementor (e-con) */
    .e-con:has(.vmpc-flex-container),
    .e-con-inner:has(.vmpc-flex-container) {
        width: 100% !important;
        max-width: 100% !important;
        flex-grow: 1 !important;
    }
}

/* Tablettes : 601px – 1024px (iPad Air, iPad Pro, Surface Pro, Nest Hub...) */
@media (min-width: 601px) and (max-width: 1024px) {
    .vmpc-card {
        padding: 12px 14px;
    }
    .vmpc-card-body {
        gap: 8px;
    }
    .vmpc-team img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    .vmpc-team-name {
        font-size: 12px;
    }
    .vmpc-score {
        font-size: 18px;
        padding: 3px 10px;
        min-width: 44px;
    }
    .vmpc-card-footer {
        font-size: 10px;
    }
    .vmpc-card-header {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .vmpc-card {
        padding: 10px 12px;
    }
    .vmpc-card-body {
        gap: 6px;
    }
    .vmpc-team img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    .vmpc-team-name {
        font-size: 11px;
    }
    .vmpc-score {
        font-size: 17px;
        padding: 3px 10px;
        min-width: 40px;
    }
    .vmpc-card-footer {
        font-size: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .vmpc-card-footer .footer-left,
    .vmpc-card-footer .footer-right {
        justify-content: center;
        gap: 6px;
    }
    .vmpc-card-header {
        font-size: 10px;
    }
    .vmpc-card-header img {
        height: 14px !important;
    }
}