/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Tags: accessibility-ready,blog,block-patterns,e-commerce,wide-blocks,block-styles,grid-layout,one-column,two-columns,three-columns,four-columns,right-sidebar,left-sidebar,translation-ready,custom-colors,custom-logo,custom-menu,featured-images,footer-widgets,full-width-template,theme-options,threaded-comments
Version: 2.1.42.1779778298
Updated: 2026-05-26 06:51:38

*/

/* Grille principale */
.sfp-actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Style de chaque carte */
.sfp-carte-actualite {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.sfp-carte-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Zone de texte à l'intérieur de la carte */
.sfp-carte-contenu {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sfp-carte-date {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 12px;
    display: inline-block;
}

.sfp-carte-titre {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000000;
    line-height: 1.3;
}

.sfp-carte-extrait {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Bouton vert "Lire l'article" */
.sfp-btn-lire {
    margin-top: auto; /* Aligne le bouton en bas de la carte */
    align-self: flex-start;
    background-color: #b2e14c;
    color: #1a3000;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.sfp-btn-lire:hover {
    background-color: #9fd13b;
}

/* Centrage du gros bouton du bas */
.sfp-container-bouton-voir {
    text-align: center;
    margin-top: 40px;
}

.sfp-btn-voir-tout {
    display: inline-block;
    background-color: #b2e14c;
    color: #1a3000;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(178, 225, 76, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sfp-btn-voir-tout:hover {
    background-color: #9fd13b;
    transform: translateY(-2px);
}

.entry-summary p, 
.post-excerpt p,
.wp-block-post-excerpt {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

h2::before {
    content: "";
    display: inline-block;
    /* Lien vers votre icône */
    background-image: url('https://sfpvegetation.fr/wp-content/uploads/2026/05/maquetteicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Dimensions de l'icône (ajustables selon vos souhaits) */
    width: 24px;
    height: 24px;
    
    /* Espacement entre l'icône et le texte du titre */
    margin-right: 12px;
    
    /* Alignement vertical pour que l'icône soit bien centrée avec le texte */
    vertical-align: middle;
}
/* Cible le lien actif avec sa classe spécifique .ct-menu-link */
/* Correction de l'alignement de l'icône dans le menu actif */
.current-menu-item > .ct-menu-link,
.current_page_item > .ct-menu-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px; /* Crée l'espace automatique entre l'icône et le texte */
}

/* 1. On force le conteneur du lien à s'aligner en ligne avec l'icône */
.menu li.current-menu-item a.ct-menu-link,
.menu li.current_page_item a.ct-menu-link {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

/* 2. On ajuste l'icône elle-même et on supprime le bloc de couleur du thème */
.menu li.current-menu-item a.ct-menu-link::before,
.menu li.current_page_item a.ct-menu-link::before {
    content: "" !important;
    display: inline-block !important;
    
    /* Affichage de l'image */
    background-image: url('https://sfpvegetation.fr/wp-content/uploads/2026/05/icon-menu.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    /* ANNIHILATION de la couleur verte du thème qui masque l'image */
    background-color: transparent !important; 
    
    /* Dimensions strictes */
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    
    /* Espacement avec le texte */
    margin: 0 0 0 0 !important;
    
    /* Sécurités d'affichage */
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ajout de l'icône au-dessus du titre H1 centré */
.hero-section h1.page-title::before {
    content: "";
    display: block; /* Force l'icône à se mettre sur sa propre ligne (au-dessus) */
    
    /* Lien vers votre icône de titre */
    background-image: url('https://sfpvegetation.fr/wp-content/uploads/2026/05/icon-titre.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Dimensions de l'icône (ajustables selon vos besoins) */
    width: 40px;
    height: 40px;
    
    /* Centrage automatique horizontal */
    margin: 0 auto 15px auto; /* 15px d'espace entre l'icône et le texte en dessous */
}
h3 {
    color: var(--theme-palette-color-2);
}

/* 1. Arrondir les images de la grille (comme sur la maquette) */
.wp-block-cover, 
.wp-block-cover img,
.wp-block-image img,
.entry-content .wp-block-columns img {
    border-radius: 15px !important;
}

/* 2. Style des liens textes sur les images */
.entry-content .wp-block-cover p.has-text-align-center a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    
    /* INTERLIGNE PLUS PETIT ET SERRÉ */
    line-height: 1.2 !important; 
    display: inline-block;
}

/* 3. Effet au survol (hover) avec la COULEUR 1 du thème */
.entry-content .wp-block-cover p.has-text-align-center a:hover {
    color: var(--theme-palette-color-1) !important; 
    text-decoration: none !important;
    transition: color 0.2s ease; /* Transition douce pour le changement de couleur */
}