/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Neovita Institut - CSS custom */

/* 1. Cache le banner hero auto-généré sur les archives de posts (blog, catégorie, auteur, recherche) */
.post-archive-hero-section,
.search-archive-hero-section,
.tax-archive-hero-section,
.author-archive-hero-section {
    display: none !important;
}

/* 2. Spacing au-dessus de la liste d'articles quand le hero est caché */
.search-archive .site-container,
.archive .site-container,
.blog .site-container {
    padding-top: 3rem;
}

/* 3. Style des cards d'articles dans la grille blog */
.archive .loop-entry,
.search-archive .loop-entry,
.blog .loop-entry {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}
.archive .loop-entry:hover,
.search-archive .loop-entry:hover,
.blog .loop-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* 4. Featured images bien intégrées */
.archive .post-thumbnail,
.search-archive .post-thumbnail,
.blog .post-thumbnail {
    overflow: hidden;
}
.archive .post-thumbnail img,
.search-archive .post-thumbnail img,
.blog .post-thumbnail img {
    transition: transform 0.5s ease;
}
.archive .loop-entry:hover .post-thumbnail img,
.search-archive .loop-entry:hover .post-thumbnail img,
.blog .loop-entry:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* 5. Padding interne des cards */
.archive .loop-entry .entry-content-wrap,
.search-archive .loop-entry .entry-content-wrap,
.blog .loop-entry .entry-content-wrap {
    padding: 1.5rem;
}

/* 6. Titre d'article dans les cards plus élégant */
.archive .loop-entry .entry-title,
.search-archive .loop-entry .entry-title,
.blog .loop-entry .entry-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0.5rem 0 1rem;
}
.archive .loop-entry .entry-title a,
.search-archive .loop-entry .entry-title a,
.blog .loop-entry .entry-title a {
    color: var(--global-palette3);
    text-decoration: none;
}
.archive .loop-entry .entry-title a:hover,
.blog .loop-entry .entry-title a:hover {
    color: var(--global-palette1);
}

/* 7. Meta auteur/date plus discret */
.archive .entry-meta,
.search-archive .entry-meta,
.blog .entry-meta {
    font-size: 0.85rem;
    color: var(--global-palette5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 8. Single article : titre plus impactant */
.single-post .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.single-post .entry-hero-container-inner {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* 9. Page hub : assure une transition propre entre les sections Kadence */
.page-template-default .entry-content > .wp-block-kadence-rowlayout:first-child {
    margin-top: 0;
}

/* 10. Style général pour les boutons CTA dans le contenu single */
.single-post .wp-block-buttons .wp-block-button__link {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 700;
}
