/*
Theme Name: Webecode FSE
Theme URI: https://webecode.be
Author: Webecode
Author URI: https://webecode.be
Description: Thème Full Site Editing de Webecode. Dédié aux projets vitrine avec bibliothèque de patterns Gutenberg. Stack : FSE natif, theme.json, block patterns.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webecode-fse
Tags: full-site-editing, block-patterns, custom-colors, custom-typography, eco-conception
*/

html {
  scroll-behavior: smooth;
}

/* Section large */
@media (min-width: 89%) {
  .large-section {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

a {
	text-decoration: none;
}

/* Section Portfolio */
article.card-portfolio:hover,
.taxonomy-sector:hover, 
.card-portfolio:hover .wp-block-post-title {
  background-color: var(--wp--preset--color--primary)!important;
  color: var(--wp--preset--color--secondary)!important;
}
article.card-portfolio:hover {
  transform: scale(1.03);
}

/* 1. On définit la carte comme la zone de référence */
.card-portfolio {
    position: relative;
    transition: transform 0.2s ease; /* Optionnel : petit effet au survol */
}

/* 2. On rend le conteneur du Meta Field invisible mais présent */
.card-portfolio .wp-block-mfb-meta-field-block {
    position: static;
}

/* 3. On étire le lien sur TOUTE la surface de l'article */
.card-portfolio .wp-block-mfb-meta-field-block a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* On rend le texte invisible */
    color: transparent !important;
    font-size: 0 !important;
    
    /* On s'assure qu'il passe au-dessus de tout le reste */
    z-index: 10;
}