/* Cache visuellement le texte .sr-only (mais lisible pour les lecteurs d'écran) */
/* cache le texte sémantique, montre juste l’icône/label visuel */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/**************** Menu Evitement ****************/
.menu-evitement {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  max-height: 0px;
  overflow: hidden;
  z-index: 100;
  transition: 0.3s ease-in;
}
.menu-evitement:focus-within {
  max-height: 100px;
}
.menu-evitement .evitement {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 2px solid #f69d1f;
  color: var(--wp--preset--color--contraste);
  text-align: center;
  padding: 1rem;
  margin: 2rem;
  transition: 0.3s ease-out;
}

.menu-evitement .evitement:hover,
.menu-evitement .evitement:focus {
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--contraste);
}
.header {
  position: sticky;
  top: 0;
  z-index: 9999;
}
/* Retirer le margin-top du footer */
footer.wp-block-template-part {
  margin-top: 0 !important;
}
.wp-block-navigation-submenu > a > span,
.wp-block-navigation-link > a > span {
  border-radius: 8px;
  display: block;
  text-decoration: none;
  padding: 0.5rem;
}
.wp-block-navigation-submenu > a > span:hover,
.wp-block-navigation-link > a > span:hover {
  background-color: var(--wp--preset--color--accent-2) !important;
  color: var(--wp--preset--color--background) !important;
  /* transition: 0.3s ease-in-out; */
  border-radius: 8px;
  display: block;
  text-decoration: none;
  padding: 0.5rem;
}
h2 {
  position: relative;
  padding-left: 2.5rem;
}

h2.wp-block-heading::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 0; /* collé au bord gauche du h2 */
  transform: translateY(-50%); /* centrage vertical */
  width: 2rem; /* taille fixe adaptée au picto */
  height: 2rem;
  background-image: url(../img/main.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.3s;
}
/******** Cards ********/
/* Arrondi + ombre douce */
.wp-block-query .wp-block-post {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

/* Hover : légère élévation */
.wp-block-query .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.wp-block-query .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  background-color: var(--wp--preset--color--accent2);
}

/* Image légère zoom au hover */
.wp-block-query .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.wp-block-query .wp-block-post .wp-block-post-featured-image {
  overflow: hidden;
}

.wp-block-query .wp-block-post .wp-block-post-featured-image img {
  transition: transform 0.35s ease;
  display: block;
  width: 100%;
}

/********** Single atelier **********/
.single-atelier .wp-block-post-featured-image img {
  object-fit: cover;
  object-position: center center; /* ou "top center" selon tes images */
  height: 60vh;
  width: 100%;
}

.wp-block-cover__inner-container .wp-block-post-title {
  background-color: rgba(var(--wp--custom--color-card-rgb), 0.5);
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
}

.list-categ,
.wp-block-categories-list {
  display: flex;
  flex: wrap;
  flex-direction: row;
  gap: 1rem;
  list-style: none;
}

[class^="wp-container-core-group-is-layout-"],
[class*=" wp-container-core-group-is-layout-"] {
  align-items: center;
}
.grid-contact,
.grid-contact > .wp-block-group.is-vertical {
  align-items: left;
  justify-items: start;
}
/*********  Menu mobile *********/
@media (max-width: 781px) {
  /* La modale / panneau du menu */
  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 2rem; /* ajuste à ta guise */
  }

  /* Sous-menus cachés par défaut */
  .wp-block-navigation-item.has-child .wp-block-navigation__submenu-container {
    display: none;
    padding-left: 0.2rem; /* indentation visuelle */
  }

  /* Sous-menu ouvert au clic */
  .wp-block-navigation-item.has-child.is-open
    > .wp-block-navigation__submenu-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }
}
