/* =========================================================================
   Page Calendrier PFMP
=========================================================================== */
.page-template-calendrier-pfmp {}

/* ===== INTRO ===== */
.page-template-calendrier-pfmp .pfmp-intro {
    background: var(--bg-soft-gradient);
    border-left: 4px solid var(--color-primary-brown);
    border-radius: 8px;
    box-shadow: var(--soft-box-shadow);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

/* ===== LIGNES DE CARTES (2 colonnes) ===== */
.page-template-calendrier-pfmp .pfmp-card.pfmp-full p {
    padding: 1.5rem 2rem 0;
}

.page-template-calendrier-pfmp .pfmp-card.pfmp-full p:last-child {
    padding-bottom: 1.5rem;
}

/* ===== CARTE ===== */
.page-template-calendrier-pfmp .pfmp-card {
    border-radius: 8px;
    padding: 0 0 15px 0;
    box-shadow: var(--soft-box-shadow);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: none !important;
    height: 100%;
}

/* Contenu interne */
.page-template-calendrier-pfmp .pfmp-card>.uagb-container-inner-blocks-wrap {
    /* padding: 0; */
}

/* ===== TITRES ===== */
.page-template-calendrier-pfmp .pfmp-card h2,
.page-template-calendrier-pfmp .pfmp-card h3 {
    margin: 0;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-primary-brown);
    color: var(--color-white);
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}

/* ===== ICÔNES FA6 ===== */
.page-template-calendrier-pfmp .pfmp-card h2::before,
.page-template-calendrier-pfmp .pfmp-card h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

/* Types de cartes */
.page-template-calendrier-pfmp .pfmp-definition h2::before {
    content: "\f059";
    /* question */
}

.page-template-calendrier-pfmp .pfmp-allocation h2::before {
    content: "\f19c";
    /* banque */
}

.page-template-calendrier-pfmp .pfmp-montants h2::before {
    content: "\f153";
    /* euro */
}

.page-template-calendrier-pfmp .pfmp-versement h2::before {
    content: "\e528";
    /* bank */
}

.page-template-calendrier-pfmp .pfmp-calendrier h2::before {
    content: "\f073";
    /* calendar */
}

/* ===== TEXTE ===== */
.page-template-calendrier-pfmp .pfmp-card p {
    margin: 0;
    padding: 0 1rem;
    line-height: 1.6;
    /* color: var(--color-dark-grey); */
}

/* ===== LISTES ===== */

.pfmp-card .wp-block-uagb-icon-list {
    margin: 0;
    padding: 0.5rem 1.5rem;
}

.page-template-calendrier-pfmp .pfmp-card .wp-block-uagb-icon-list-child {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.page-template-calendrier-pfmp .pfmp-card .wp-block-uagb-icon-list-child::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    line-height: 1;
    color: var(--color-primary-brown);
}


/* ===== CARTE PLEINE LARGEUR ===== */
.page-template-calendrier-pfmp .pfmp-full {
    padding: 0;
    margin-left: 10px !important;
    margin-right: 10px !important;
}

/* Forcer la pleine largeur pour le conteneur calendrier */
.page-template-calendrier-pfmp .pfmp-full>.uagb-container-inner-blocks-wrap {
    max-width: 100% !important;
    --inner-content-custom-width: 100% !important;
}

/* =========================================================================
   RESPONSIVE
=========================================================================== */

@media (max-width: 768px) {
    .page-template-calendrier-pfmp .wp-block-uagb-container.alignfull:not(:has(.pfmp-intro))>.uagb-container-inner-blocks-wrap {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Supprimer la hauteur fixe en mobile */
    .page-template-calendrier-pfmp .pfmp-card {
        height: auto !important;
        min-height: auto !important;
    }

    /* Réduire les marges de la carte pleine largeur */
    .page-template-calendrier-pfmp .pfmp-full {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-template-calendrier-pfmp .pfmp-card h2 {
        font-size: 1.05rem;
    }

    /* Réduire les espacements internes */
    .page-template-calendrier-pfmp .pfmp-intro {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .page-template-calendrier-pfmp .pfmp-intro {
        padding: 1.25rem;
    }

    .page-template-calendrier-pfmp p {
        font-size: 0.95rem;
    }

    .page-template-calendrier-pfmp .pfmp-card.pfmp-full p {
        padding: 1rem 1.5rem 0;
    }

    .page-template-calendrier-pfmp .pfmp-card.pfmp-full p:last-child {
        padding-bottom: 1rem;
    }

    .pfmp-card .wp-block-uagb-icon-list {
        padding: 0.5rem 1rem;
    }
}