/* WCV V5-F.5B — Programmes, Projets, Actualités */

.wcv-f5-empty {
    width: 100%;
    padding: clamp(30px, 5vw, 62px);
    border-radius: 24px;
    border: 1px solid #FFFFFF;
    background: linear-gradient(
        145deg,
        #FFFFFF 0%,
        #ffffff 75%
    );
    box-shadow: 0 12px 38px rgba(10, 55, 37, .05);
}

.wcv-f5-kicker {
    display: block;
    color: #50121F;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 18px;
}

.wcv-f5-empty h2 {
    color: #50121F;
    font-size: clamp(28px, 3.5vw, 43px);
    letter-spacing: -.035em;
    line-height: 1.15;
    max-width: 760px;
    margin: 0 0 20px;
}

.wcv-f5-intro {
    max-width: 780px;
    color: #12B9C1;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 32px;
}

.wcv-f5-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 34px 0;
}

.wcv-f5-card {
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(12, 60, 40, .04);
    transition: transform .2s ease;
}

.wcv-f5-card:hover {
    transform: translateY(-4px);
}

.wcv-f5-card > span {
    color: #12B9C1;
    font-size: 13px;
    font-weight: 800;
}

.wcv-f5-card h3 {
    color: #50121F;
    font-size: 21px;
    line-height: 1.3;
    margin: 15px 0;
}

.wcv-f5-card p {
    color: #12B9C1;
    font-size: 15px;
    line-height: 1.75;
}

.wcv-f5-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #50121F;
    font-weight: 800;
    text-decoration: none;
}

.wcv-f5-link:hover {
    text-decoration: underline;
}

.wcv-f5-news-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 30px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.wcv-f5-news-panel strong {
    color: #50121F;
    font-size: 20px;
}

.wcv-f5-news-panel p {
    color: #12B9C1;
    max-width: 580px;
}

@media (max-width: 850px) {
    .wcv-f5-cards {
        grid-template-columns: 1fr;
    }

    .wcv-f5-news-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .wcv-f5-empty {
        padding: 24px;
        border-radius: 18px;
    }

    .wcv-f5-card {
        padding: 22px;
    }

    .wcv-f5-intro {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcv-f5-card {
        transition: none;
    }
}

/* =====================================================
   WCV V5-F.5C — Correction de la grille des listes
   ===================================================== */

/*
 * Le modèle partagé utilise une grille existante.
 * Le bloc institutionnel doit occuper toutes ses
 * colonnes et non une seule cellule.
 */

.wcv-f5-empty {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/*
 * Si le bloc est enveloppé dans un élément de grille,
 * cet élément doit également occuper toute la largeur.
 */

.wcv-v3-grid:has(> .wcv-f5-empty),
.wcv-v3-grid:has(.wcv-f5-empty) {
    grid-template-columns: minmax(0, 1fr) !important;
}

/*
 * Présentation équilibrée des cartes.
 */

.wcv-f5-cards {
    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100%;
}

.wcv-f5-card {
    min-width: 0;
    overflow-wrap: break-word;
}

.wcv-f5-card h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.wcv-f5-card p {
    overflow-wrap: normal;
    word-break: normal;
}

/* Tablette */

@media (max-width: 1000px) {
    .wcv-f5-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Smartphone */

@media (max-width: 700px) {
    .wcv-f5-cards {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    .wcv-f5-empty {
        padding: 24px !important;
    }

    .wcv-f5-card {
        padding: 22px;
    }
}

