@media (min-width: 782px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: auto;
        flex-grow: 1;
    }
}

.mark-complete-btn {
	border-radius: 2px;
	white-space: normal;
	padding: .45em 1em .48em;
  font-size: 13.6px;
	 }


.ma-carte {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	border-radius: 16px;
  padding: 20px 20px;
  background-color: #fff;
  border: none;
}

.ligne-boutons {
	line-height:0.9
	}

.texte-teaser {
  font-size:1.1rem;
	}



@media only screen and (max-width: 768px) {
  h2.wp-block-post-title {
    font-size: 30px !important; /* Ajuste cette taille selon ton besoin */
  }
}


.tag-joueur .wp-block-button__link {
  background:linear-gradient(135deg,rgb(211,215,249) 0%,rgb(0,139,214) 100%); /* dégradé */
  color: #fff !important;       /* texte blanc */
  font-weight: bold !important;
	}

.tag-academie .wp-block-button__link {
  background:linear-gradient(135deg,rgb(34,34,171) 3%,rgb(103,156,247) 94%); /* dégradé */
  color: #fff !important;       /* texte blanc */
  font-weight: bold !important;
	}


.tag-entraineur .wp-block-button__link {
  background:linear-gradient(135deg,rgb(34,34,171) 3%,rgb(103,156,247) 94%); /* dégradé */
  color: #fff !important;       /* texte blanc */
  font-weight: bold !important;
	}



/* =========================================================
   PAGE DE RÉSULTATS DE RECHERCHE
   ========================================================= */

/* 1) Supprimer la date */
.search-results .wp-block-post-date {
  display: none;
}

/* 2) Grille de résultats */
.search-results ul.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  align-items: start;
}

/* 3) Carte (NON cliquable) */
.search-results ul.wp-block-post-template > li.wp-block-post {
  list-style: none;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  padding-bottom: 2px;
  background: #fff;
  transition: box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-self: start;
}

/* 4) Hover carte */
.search-results ul.wp-block-post-template > li.wp-block-post:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* 5) Titre (desktop) */
.search-results .wp-block-post-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

.search-results .wp-block-post-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.search-results .wp-block-post-title a:hover {
  color: #000;
}

/* 6) Extrait limité */
.search-results .wp-block-post-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================
   Pilule
   ================================ */
.search-results .exercise-parent-pill {
  margin-top: 15px;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

/* ========================================
   Réduction globale du wp-block-spacer
   ======================================== */

/* Desktop */
.search-results .wp-block-spacer {
  height: 16px !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablette (<= 1024px) */
@media (max-width: 1024px) {

  .search-results ul.wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .search-results ul.wp-block-post-template > li.wp-block-post {
    padding: 18px;
    padding-bottom: 2px;
  }

  .search-results .wp-block-post-title {
    font-size: 20px;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {

  .search-results ul.wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .search-results ul.wp-block-post-template > li.wp-block-post {
    padding: 16px;
    padding-bottom: 2px;
    border-radius: 14px;
  }

  .search-results .wp-block-post-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }

  /* Spacer encore plus compact sur mobile */
  .search-results .wp-block-spacer {
    height: 8px !important;
  }

  /* 🔥 Suppression définitive du padding-top du titre */
  body.search-results ul.wp-block-post-template > li.wp-block-post h2.wp-block-post-title {
    padding-top: 0 !important;
    padding-block-start: 0 !important;
    padding-block: 0 !important;
  }

  /* autoriser retour ligne si pilule longue */
  .search-results .exercise-parent-pill {
    white-space: normal;
  }
}

/* =========================================================
   FORCER TITRE PLUS PETIT SUR MOBILE
   ========================================================= */

@media (max-width: 640px) {
  body.search-results ul.wp-block-post-template li.wp-block-post .wp-block-post-title,
  body.search-results ul.wp-block-post-template li.wp-block-post .wp-block-post-title a {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
}

/* =========================================================
   BARRE DE RECHERCHE
   ========================================================= */

.wp-block-search__input {
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 16px;
}

.wp-block-search__button {
  border-radius: 30px;
  background-color: #000;
  color: #fff;
  padding: 10px 18px;
  transition: background-color 0.3s ease;
}

.wp-block-search__button:hover {
  background-color: #444;
}
/* ========================================
   Réduire le padding-bottom du bloc Query
   ======================================== */

.search-results .wp-block-group.alignwide.is-layout-flow {
  padding-bottom: 40px !important;
}
/* ========================================
   Espace au-dessus du titre de page (mobile uniquement)
   ======================================== */

@media (max-width: 640px) {
  .search-results h1.wp-block-query-title {
    margin-top: 20px !important;
  }
}




@media (max-width: 768px){
  body .wp-block-premium-content-logged-out-view.entry-content .ub-block-list__layout.ub-block-list__layout{
    -webkit-column-count: 1 !important;
    column-count: 1 !important;
    columns: 1 !important;
  }
}

/* Fix global : force Instrument Sans partout sur la Home Page + pages spécifiques */
.home .wp-site-blocks,
.front-page .wp-site-blocks,
.page-id-5985 .wp-site-blocks,
.page-id-5055 .wp-site-blocks {
  font-family: var(--wp--preset--font-family--instrument-sans) !important;
}

.home .wp-site-blocks *,
.front-page .wp-site-blocks *,
.page-id-5985 .wp-site-blocks *,
.page-id-5055 .wp-site-blocks * {
  font-family: inherit;
}



/* Fix mobile pour remonter le corps sans laisser d'espaces après le header */
@media (max-width: 768px){
  body:not(.home) .wp-site-blocks > header + *{
    margin-block-start: 0 !important;
    padding-top: 0 !important;
  }
}

/* Desktop = aucun padding */
body:not(.home) .wp-block-post-title{
  padding-top: 0;
}

/* Mobile uniquement */
@media (max-width: 768px){

  body:not(.home) .wp-block-post-title{
    padding-top: 4vh !important;
  }

}