/* ==========================================================================
   1. NAVIGATION : Menu déroulant (Helix Mega Menu)
   ========================================================================== */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    white-space: nowrap !important;
}

.sp-megamenu-parent .sp-dropdown {
    width: auto !important;
    min-width: 280px;
}

/* ==========================================================================
   2. BOUTONS : « Lire la suite » (style KSP vert)
   ========================================================================== */
/*
 * Les sélecteurs sont volontairement limités aux boutons « Lire la suite ».
 * L'ancienne règle « .com-content-category-blog__item a » ciblait tous les
 * liens d'un article, y compris les titres et les images.
 */
.com-content-category-blog__item .readmore {
    text-align: center;
}

.com-content-category-blog__item .readmore a,
.com-content-category-blog__item a.btn-readmore,
.article-list .article .readmore a,
.article-list .article a.btn-readmore,
.sppb-addon-article .btn-readmore {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0 !important;
    padding: 10px 28px !important;
    background-color: #1cb804 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.com-content-category-blog__item .readmore a:hover,
.com-content-category-blog__item a.btn-readmore:hover,
.article-list .article .readmore a:hover,
.article-list .article a.btn-readmore:hover,
.sppb-addon-article .btn-readmore:hover {
    background-color: #148a03 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(28, 184, 4, 0.30);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. STRUCTURE : Encadrés ombrés des articles (vue Blog)
   ========================================================================== */
/*
 * Joomla récent utilise notamment « .com-content-category-blog__item ».
 * Helix peut encore produire « .article-list .article » selon la mise en page.
 * Les deux structures sont donc prises en charge.
 */
.com-content-category-blog__item,
.article-list .article,
.blog .blog-item,
.blog .item {
    box-sizing: border-box;
    overflow: hidden;
    background: #ffffff;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid #dddddd;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.com-content-category-blog__item:hover,
.article-list .article:hover,
.blog .blog-item:hover,
.blog .item:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.17);
    transform: translateY(-6px);
}

/* ==========================================================================
   4. PAGES SPÉCIFIQUES : Équipe
   ========================================================================== */
.page-equipe .article-introtext,
.page-equipe .readmore,
.page-equipe .items-leading .article-introtext {
    display: none !important;
}

.page-equipe .items-leading {
    display: contents;
}

/* ==========================================================================
   5. ADAPTATION MOBILE
   ========================================================================== */
@media (max-width: 767px) {
    .com-content-category-blog__item,
    .article-list .article,
    .blog .blog-item,
    .blog .item {
        padding: 20px;
        margin-bottom: 25px;
        border-radius: 15px;
    }
}
