/* =========================================
   EAFPS — Liste des procédures (shortcode)
   Style aligné sur card-resource / palette EAFPS
   ========================================= */

.eafps-proc-grid {
    display: grid;
    grid-template-columns: repeat(var(--proc-cols, 3), 1fr);
    gap: 30px;
    font-family: "Inter", sans-serif;
    align-items: stretch;
    /* toutes les cartes à la même hauteur */
}

.eafps-proc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* la carte remplit toute la cellule du grid */
    background: #fff;
    border: 1px solid var(--nectar-extra-color-7, #e3e9f6);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0.5px 0.5px 2px 0 rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.eafps-proc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px 0 rgba(39, 46, 71, 0.12);
    border-color: var(--nectar-accent-color, #4bc1d0);
}

/* Image (si featured image) */
.eafps-proc-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--nectar-extra-color-5, #f6f7ff);
}

.eafps-proc-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    transition: transform 0.5s ease;
}

.eafps-proc-card:hover .eafps-proc-card__media img {
    transform: scale(1.05);
}

/* Corps */
.eafps-proc-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* le corps occupe toute la hauteur restante */
    gap: 10px;
    padding: 28px 30px 30px;
    position: relative;
}

.eafps-proc-card__title {
    font-family: "Butler", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--nectar-extra-color-2, #272e47);
}

.eafps-proc-card__excerpt {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--nectar-page-text-color, #4c4c4c);
    /* Limite proprement à 3 lignes pour homogénéiser les hauteurs */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bulle flèche — collée en bas + espace minimum au-dessus de l'excerpt */
.eafps-proc-card__arrow {
    margin-top: auto;
    /* colle la flèche en bas */
    padding-top: 28px;
    /* ⬅ espace entre l'excerpt et la flèche */
    width: 36px;
    height: 36px;
    box-sizing: content-box;
    /* le padding s'ajoute SANS réduire la bulle 36px */
    background: url("/wp-content/uploads/2026/05/bulle-fleche-default.svg") no-repeat bottom center / 36px 36px;
    transition: background-image 0.3s ease;
}

.eafps-proc-card:hover .eafps-proc-card__arrow {
    background-image: url("/wp-content/uploads/2026/05/bulle-fleche-active.svg");
}

.eafps-proc-empty {
    font-family: "Inter", sans-serif;
    color: var(--nectar-page-text-color, #4c4c4c);
}

/* ---------- Responsive ≤ 1000px ---------- */
@media (max-width: 1000px) {
    .eafps-proc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .eafps-proc-card__title {
        font-size: 20px;
    }

    /* Flèche centrée horizontalement + espace réduit */
    .eafps-proc-card__arrow {
        align-self: center;
        padding-top: 22px;
        background-position: bottom center;
    }
}

/* ---------- Responsive ≤ 690px ---------- */
@media (max-width: 690px) {
    .eafps-proc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eafps-proc-card__arrow {
        padding-top: 18px;
    }
}