/*
Theme Name: Theme du site Réseau ECNA
Theme URI: https://labaleinebasque.fr
Description: Thème enfant pour Hello Elementor
Author: Anthony Sabatier
Author URI: https://www.labaleinebasque.fr
Template: hello-elementor
Version: 1.1
Text Domain: hello-elementor-child
*/

html {
  scroll-padding-top: 120px;
}

/* Cotillons before titles  */
.cotillon-title .elementor-heading-title {
  position: relative;
  display: inline-block;
}

.cotillon-title .elementor-heading-title::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  transform: translateY(-50%);
  width: 150px;
  height: 100px;
  background-image: url("/wp-content/themes/reseau-ecna/assets/images/cotillons@2x.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media screen and (max-width: 768px) {
  .cotillon-title .elementor-heading-title::after {
    width: 80px;
    height: 40px;
  }
}

/* Folder Before Variations  */

div.folder-blue,
div.folder-purple,
div.folder-yellow,
div.folder-white,
div.folder-clear-blue {
  position: relative;
}

div.folder-blue::before,
div.folder-purple::before,
div.folder-yellow::before,
div.folder-white::before,
div.folder-clear-blue::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 240px;
  height: 50px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 5;
  pointer-events: none;
}

div.folder-blue::before {
  background-image: url("/wp-content/themes/reseau-ecna/assets/images/shapes/folder-blue.svg");
}
div.folder-yellow::before {
  background-image: url("/wp-content/themes/reseau-ecna/assets/images/shapes/folder-yellow.svg");
}
div.folder-purple::before {
  background-image: url("/wp-content/themes/reseau-ecna/assets/images/shapes/folder-purple.svg");
}
div.folder-white::before {
  background-image: url("/wp-content/themes/reseau-ecna/assets/images/shapes/folder-white.svg");
}
div.folder-clear-blue::before {
  background-image: url("/wp-content/themes/reseau-ecna/assets/images/shapes/folder-clear-blue.svg");
}

.featured-image-post-wrapper {
  background-size: cover;
  background-position: center;
}

.folder-right::before {
  left: 100% !important;
  transform: translateX(-100%) rotateY(180deg);
}

@media screen and (max-width: 768px) {
  div.folder-blue::before,
  div.folder-purple::before,
  div.folder-yellow::before,
  div.folder-white::before {
    top: -30px;
    width: 150px;
    height: 30px;
  }
}

/* -------------------------
MENU 
------------------------- */

.e-n-menu-content .elementor-icon-list-item a span.elementor-icon-list-text {
  position: relative;
  display: inline-block; /* nécessaire pour le pseudo-élément */
  overflow: hidden; /* évite les débordements pendant l'animation */
}

/* Ligne invisible au repos */
.e-n-menu-content
  .elementor-icon-list-item
  a
  span.elementor-icon-list-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px; /* épaisseur du surlignage */
  width: 0%; /* caché par défaut */
  background: currentColor; /* même couleur que le texte */
  transition: width 0.3s ease; /* animation */
}

/* Animation au hover : la barre s’étend de gauche à droite */
.e-n-menu-content
  .elementor-icon-list-item
  a
  span.elementor-icon-list-text:hover::after {
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .e-n-menu-content .e-con.e-child {
    width: 100% !important;
  }
}

/* -------------------------
Fil d'ariane
------------------------- */
li.breadcrumb-item::after {
  content: " > " !important;
}
li.breadcrumb-item:not(.active) span {
  text-decoration: underline;
}

/* -------------------------
Article Unique
------------------------- */
.post-wrapper.elementor-widget-theme-post-content a {
  color: white;
  text-decoration: underline;
}

.post-wrapper.elementor-widget-theme-post-content a:hover {
  color: white;
  text-decoration: none;
}

.anchor-offset {
  scroll-margin-top: 120px;
}

/* =========================================================
   BADGE — CERTIFIANT
========================================================= */
.badge-certifiant {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 15px;

  background: var(--e-global-color-secondary);
  color: #ffffff;

  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* #badge-cpf-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
} */

/* #badge-cpf {
  max-width: 80px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin: 5px 0;
} */

/* =========================================================
   WRAPPER FILTRES
========================================================= */
.formations-filters {
  background: white;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 19px;
}

/* =========================================================
   GROUPES
========================================================= */
.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

/* =========================================================
   CHECKBOX — CERTIFICATION
========================================================= */
.filters-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-certif-label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 500;
  color: #1f1d5c;

  cursor: pointer;
  user-select: none;
}

/* Checkbox native masquée */
.filter-certif {
  appearance: none;
  width: 18px;
  height: 18px;

  border: 2px solid #c5c9e6;
  border-radius: 4px;

  position: relative;
  transition: all 0.2s ease;
}

/* État coché */
.filter-certif:checked {
  background: #2f8fdf;
  border-color: #2f8fdf;
}

.filter-certif:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);

  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

/* =========================================================
   BOUTONS — TYPE DE FORMATION
========================================================= */
.filters-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  appearance: none;
  border: 1px solid transparent;

  background: #1f1d5c;
  color: #ffffff;

  padding: 10px 18px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Actif */
.filter-btn.active {
  background: var(--e-global-color-secondary);
  opacity: 1;
}

/* =========================================================
   RESET — LIEN TEXTE
========================================================= */
.reset-filters {
  background: none !important;
  border: none !important;
  padding: 0 !important;

  font-size: 14px;
  font-weight: 500;
  color: #1f1d5c !important;
  text-decoration: underline !important;

  cursor: pointer;
  transition: opacity 0.2s ease;
}

.module-content2 > ul ul {
  margin-top: 0px;
}

.category-actus .e-con-inner #tax-vignette {
	background-color : #922C62;
	color: white;
}

.category-evenements .e-con-inner #tax-vignette {
	background-color: #EA993F;
	color:white;
}

