/*
CTC Separate Stylesheet
Updated: 2026-04-24
*/

/* ================================================
   CRP Widget — style calqué sur wpr-grid (6debf3a)
   ================================================ */

/* Titre h5 du widget Elementor masqué */
.elementor-element-b7561ea .widget-title,
.elementor-element-b7561ea h5 {
    display: none !important;
}

.elementor-element-b7561ea .crp_related.crp-grid ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Carte — écrase min-height:230px du plugin */
.elementor-element-b7561ea .crp_related.crp-grid ul li {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    background: rgba(31, 41, 55, 0.03);
    border: 1px solid rgba(202, 138, 4, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Lien image : écrase flex-grow:1 et padding du plugin */
.elementor-element-b7561ea .crp_related.crp-grid ul li > a.crp_link {
    flex-grow: 0 !important;
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin: 0;
    line-height: 0;
    text-decoration: none;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.elementor-element-b7561ea .crp_related.crp-grid ul li > a.crp_link:hover,
.elementor-element-b7561ea .crp_related.crp-grid ul li > a.crp_link:focus {
    box-shadow: none !important;
    transform: none !important;
    outline: none;
}

/* Image */
.elementor-element-b7561ea .crp_related.crp-grid ul li figure {
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.elementor-element-b7561ea .crp_related.crp-grid ul li figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: filter 0.3s ease;
}

.elementor-element-b7561ea .crp_related.crp-grid ul li:hover figure img {
    filter: brightness(0.65);
}

/* Badge catégorie (injecté dans le .crp_link après la figure) */
.elementor-element-b7561ea .crp_related.crp-grid ul li .crp_cat_badge {
    display: inline-block;
    align-self: flex-start;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: #fff;
    background: #CA8A04;
    border-radius: 25px;
    padding: 3px 10px;
    margin: 8px 20px 0;
}

/* Titre */
.elementor-element-b7561ea .crp_related.crp-grid ul li .crp_title {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1F2937;
    padding: 4px 20px;
    line-height: 1.35;
    max-height: none !important;
}


/* Auteur & Date */
.elementor-element-b7561ea .crp_related.crp-grid ul li .crp_author,
.elementor-element-b7561ea .crp_related.crp-grid ul li .crp_date {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #6A6A6A;
    padding: 0 20px 10px;
    line-height: 1.6;
}

/* Résumé masqué */
.elementor-element-b7561ea .crp_related.crp-grid ul li .crp_excerpt,
.elementor-element-b7561ea .crp_related.crp-grid ul li .crp_primary_term {
    display: none;
}

/* Responsive — 2 colonnes */
@media (max-width: 1024px) {
    .elementor-element-b7561ea .crp_related.crp-grid ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — 1 colonne */
@media (max-width: 767px) {
    .elementor-element-b7561ea .crp_related.crp-grid ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
