/*
Theme Name: Ydex theme Child
Theme URI: https://ydex.dev
Template: generatepress
Author: YDEX
Author URI: https://ydex-it.com/about
Description: Ydex Dev is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
Version: 3.6.1.1771064202
Updated: 2026-02-14 11:16:42

*/

/* =========================================================
   YDEX – Equal height cards (WP Query Loop + GenerateBlocks)
   Scope: .ydex-loop
   ========================================================= */

/* 1) Le conteneur qui affiche les 3 items : on force le "stretch" */
.ydex-loop,
.ydex-loop .gb-grid-wrapper,
.ydex-loop .wp-block-post-template{
  align-items: stretch !important;
}

/* 2) Chaque "item" (selon le markup) devient un flex container */
.ydex-loop .wp-block-post-template > li,
.ydex-loop .gb-grid-column,
.ydex-loop .gb-query-loop-item,
.ydex-loop .wp-block-group{
  display: flex !important;
}

/* 3) La carte prend 100% de la hauteur de son item */
.ydex-loop .ydex-card{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100%;
}

/* 4) Si tu veux que le texte "remplisse" et aligne le bas */
.ydex-loop .ydex-card__excerpt{
  flex: 1 1 auto !important;
}

/* 5) Si tu as un lien/bouton en bas */
.ydex-loop .ydex-card__more{
  margin-top: auto !important;
}
/* Force chaque cellule de la grille à une hauteur égale */
.ydex-loop .gb-grid-wrapper{
  grid-auto-rows: 1fr !important;
}

/* Et chaque colonne prend toute la hauteur */
.ydex-loop .gb-grid-column{
  height: 100% !important;
}
/* YDEX – Equal height cards (GenerateBlocks Looper) */
.gb-looper-a64afa8b.ydex-loop{
  align-items: stretch; /* force les colonnes à la même hauteur */
}

.gb-looper-a64afa8b.ydex-loop > article.ydex-card{
  height: 100%;
  display: flex;
  flex-direction: column; /* structure la carte en colonne */
}

/* optionnel : si tu veux que le contenu "remplisse" pour aligner le bas */
.gb-looper-a64afa8b.ydex-loop > article.ydex-card .inside-article,
.gb-looper-a64afa8b.ydex-loop > article.ydex-card .entry-summary,
.gb-looper-a64afa8b.ydex-loop > article.ydex-card .entry-content{
  flex: 1 1 auto;
}
.gb-looper-a64afa8b.ydex-loop > article.ydex-card .ydex-more{
  margin-top: auto;
}
/* Fix centrage Firefox pour section CTA */
.ydex-cta{
  text-align: center;
}

.ydex-cta > *{
  margin-left: auto;
  margin-right: auto;
}

/* Le texte (paragraphe) : largeur stable + centré */
.ydex-cta p{
  max-width: 760px;   /* ajuste si tu veux */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Si le bloc utilise flex (GenerateBlocks), on force le centrage */
.ydex-cta{
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* FIX Firefox : le paragraphe GB est en flex -> décalage */
section.gb-element-b00175f5.ydex-cta p.gb-text-1ce06d6a{
  display: block !important;      /* au lieu de flex */
  width: 100% !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* (sécurité) s'assure que le wrapper centre tout de la même façon */
section.gb-element-b00175f5.ydex-cta{
  text-align: center !important;
}

/* menu*/
/* Empêche les ancres de rester actives */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #00a882; /* couleur active normale */
}

/* Supprime l'effet actif des liens personnalisés */
.main-navigation .menu-item a[href^="#"] {
    color: inherit !important;
}

/* Couleur au hover */
.main-navigation .menu-item a:hover {
    color: #00a882;
}
/* Retire la couleur active pour les liens ancre */
.main-navigation .menu-item a[href*="#"] {
    color: #333 !important; /* couleur normale */
}

.main-navigation .menu-item a[href*="#"]:hover {
    color: #00a882 !important;
}
