/**
* Theme Name: Mayosis Child
* Description: This is a child theme of Mayosis.
* Author: <a href="https://teconce.com/contact/">Teconce</a>
* Template: mayosis
* Version: 3.6.2
*/

.mobile-nav .burger span {
  background: red !important;
}
.mobile-nav .burger span::before,
.mobile-nav .burger span::after {
  background: red !important;
}

/* supprime la date à droite de l'affichage de la catégorie sur la page Photo */
.photo--title-block .photo-toolspan:last-of-type {
  display: none;
}

/* Remplace "Similar images" par "Images similaires" - Fonctionne avec ajout de code dans functions.php */

/* 0) Le conteneur contient les flottants de la galerie */
section.container-fluid.bottom-post-footer-widget.photo-template-footer-bg
  .container.photo-template-bottom-similar
  .bottom-product-sidebar{
  display: flow-root !important;
}

/* 1) Annule TOUT ce qui a pu masquer le h3 précédemment */
section.container-fluid.bottom-post-footer-widget.photo-template-footer-bg
  .container.photo-template-bottom-similar
  .bottom-product-sidebar > h3{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  float: none !important;
  position: static !important;

  /* annule les anciennes bidouilles */
  font-size: 22px !important;                  /* remets une taille lisible */
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-indent: 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;

  /* placement */
  clear: both !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 2rem 0 !important;
  line-height: 1.3 !important;
}

/* 2) Coupe tout pseudo-élément restant (de nos tests précédents) */
section.container-fluid.bottom-post-footer-widget.photo-template-footer-bg
  .container.photo-template-bottom-similar
  .bottom-product-sidebar > h3::before,
section.container-fluid.bottom-post-footer-widget.photo-template-footer-bg
  .container.photo-template-bottom-similar
  .bottom-product-sidebar > h3::after{
  content: none !important;
}

/* 3) S'assure que la galerie commence bien sous le titre */
section.container-fluid.bottom-post-footer-widget.photo-template-footer-bg
  .container.photo-template-bottom-similar
  .justified-gallery-main{
  clear: both !important;
}

/* Bandeau catégories/archives (EDD + Woo) */
.product-archive-breadcrumb,
.product-archive-breadcrumb::before,
.product-archive-breadcrumb-woo,
.product-archive-breadcrumb-woo::before {
  background: #731111 !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Padding/hauteur forcés */
.product-archive-breadcrumb,
.product-archive-breadcrumb-woo {
  padding-top: 45px !important;
  padding-bottom: 40px !important;
  min-height: unset !important;
  height: auto !important;
}

/* Conteneur interne neutre */
.product-archive-breadcrumb > .container,
.product-archive-breadcrumb-woo > .container {
  background: transparent !important;
}

/* Pas d’espace juste après le bandeau */
.product-archive-breadcrumb + *,
.product-archive-breadcrumb-woo + * {
  margin-top: 0 !important;
}

/* Titre lisible (optionnel) */
.product-archive-breadcrumb h1,
.product-archive-breadcrumb-woo h1,
.product-archive-breadcrumb .parchive-page-title,
.product-archive-breadcrumb-woo .page-title {
  color: #fff !important;
}

/* Page Photos (ID 543) — réduire la hauteur du bandeau Mayosis */
body.page-id-543 .row.page_breadcrumb.mayosis-global-breadcrumb-style.has_mayosis_dark_alt_bg {
  padding-top: 60px !important;     /* espace au-dessus du titre */
  padding-bottom: 60px !important;  /* espace en-dessous du fil d’Ariane */
  min-height: unset !important;     /* neutralise toute hauteur forcée */
  height: auto !important;
}

/* Titre compact */
body.page-id-543 .page_breadcrumb .page_title_single {
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Fil d’Ariane compact */
body.page-id-543 .page_breadcrumb .breadcrumb {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* === EDD Tag Archives (download_tag) – Header fix fort en spécificité === */

/* Couleur de fond, on tue tout gradient/overlay */
body.archive.tax-download_tag div.tag_breadcrumb_color.pr_breadcrumb_dark_def.container-fluid {
  background: #731111 !important;
  background-image: none !important;
}

/* Certains overlays sont sur :before/:after du wrapper breadcrumb */
body.archive.tax-download_tag div.tag_breadcrumb_color.pr_breadcrumb_dark_def.container-fluid::before,
body.archive.tax-download_tag div.tag_breadcrumb_color.pr_breadcrumb_dark_def.container-fluid::after {
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

/* Hauteur/espacement : on vire les min-height et pads excessifs */
body.archive.tax-download_tag div.tag_breadcrumb_color.pr_breadcrumb_dark_def.container-fluid,
body.archive.tax-download_tag .pr_breadcrumb_dark_def {
  min-height: 0 !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Centrage total du contenu du header */
body.archive.tax-download_tag div.tag_breadcrumb_color.pr_breadcrumb_dark_def.container-fluid > .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Titre H1 centré, marges réduites, couleur lisible */
body.archive.tax-download_tag h1.parchive-page-title {
  margin: 0 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
}

/* Au cas où le thème force une couleur/mise en page via une autre classe */
body.archive.tax-download_tag .parchive-page-title,
body.archive.tax-download_tag .tag_breadcrumb_color .parchive-page-title {
  color: #ffffff !important;
  text-align: center !important;
}

/* Largeur fixe uniquement sur les pages Auteur */
body.archive.author {
  max-width: 1150px !important; /* ajuste la valeur selon ton design */
  margin: 0 auto !important;    /* centre le contenu */
  padding: 0 20px;              /* petite respiration à gauche/droite */
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Supprime le style d'erreur WordPress qui force 700px */
html.archive.author { background: #fff !important; }

/* Bandeau auteur par défaut (tous les auteurs) */
body.archive.author .single-author--cover{
  background-image: url("http://www.leximages.fr/wp-content/uploads/2025/06/P1520857-1.jpg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px; /* ajuste la hauteur */
}

/* Supprime complètement le bloc bouton Follow sur les pages auteur */
body.archive.author .author--box--btn,
body.archive.author .follow--au--btn,
body.archive.author .tec-follow-link {
  display: none !important;
}

body.archive.author .single--meta--top--part { display:none !important; }


/* Bloc bio public auteur */
body.archive.author .author-public-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  padding:16px 18px;
  margin-top:12px;
}
body.archive.author .author-public-bio p{ margin:0 0 8px; line-height:1.5; }
body.archive.author .author-public-links{
  list-style:none; padding:0; margin:10px 0 0;
  display:flex; flex-wrap:wrap; gap:10px 16px;
}
body.archive.author .author-public-links a{
  text-decoration:none; border-bottom:1px solid currentColor; padding-bottom:1px;
}


/* Page Auteur EDD : enlever la barre de recherche/filtre */
body.archive.author .fes--vendor--searchbar { 
  display: none !important; 
}

/* Remonter la grille juste après */
body.archive.author .fes--vendor--searchbar + .vendor--product--box {
  margin-top: 0 !important;
}