:root {
  --9: 0.9;
}
#contenu {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* 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;
}

/* Layout */
.inspiration-nav {
  padding-top: 0;
  padding-bottom: 0;
  margin-block: 0;
}
.colonnes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 48em) {
  .colonnes {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
footer.wp-block-template-part {
  margin-block: 0;
  padding-block: 0;
}

#contenu {
  padding-bottom: 0;
}

/* état visuel du bouton */
.nav-toggle__close {
  display: none;
}
.mega-open .nav-toggle__open {
  display: none;
}
.mega-open .nav-toggle__close {
  display: inline;
}

/* affichage du méga-menu (tu as déjà ces classes, je les remets pour clarté) 
.mega-menu {
  display: none;
}
.mega-menu.is-open,
.mega-open .mega-menu {
  display: block;
}

/* Mega-menu fermé par défaut 
.mega-menu {
  display: none;
}
/* Ouvre le menu avec l'une ou l'autre classe d'état 
.mega-open .mega-menu,
.mega-menu.is-open {
  display: block;
}
.mega-menu {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.25s;
}
.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 1024px) {
  :root {
    --nav-h: 56px;
  }
  .mega-menu {
    padding-top: calc(var(--nav-h) + 16px);
    background-color: var(--wp--preset--color--accent-5) !important;
    width: 90%;
  }
} */

/****** Layout ******/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
/****** Navigation ******/
.menupicto {
  padding-top: 2rem;
  display: grid;
  align-items: center;
}
.menupicto a {
  text-decoration: none;
}
.menupicto a:hover {
  text-decoration: underline;
}
/* .bg-vague-beige-droite {
  position: relative;
  background-image: url("./assets/img/forme-vague-beige.svg");
  background-repeat: no-repeat;
  background-position: right center; */
/*background-size: cover; /* ou 'contain' si tu veux que ça reste dans le bloc */
/* z-index: 0;
}
.bgleft {
  position: relative;
} */

/* Exemples d’overlays du hero */
.hero-image::before,
.hero-header::before {
  pointer-events: none !important;
}

/****** Hero ******/
.hero {
  margin-top: 0rem !important;
  margin-bottom: 6rem;
}
@media (min-width: 48em) {
  .hero {
    margin-top: 0rem !important;
    margin-bottom: 0rem;
  }
}
.hero-contenu-grid,
.hero-header__inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.hero-image {
  left: -4rem;
  grid-area: 2/1/3/-1;
  position: relative;
  top: -4rem;
  z-index: 1;
  max-height: 24rem !important;
  padding-left: 2rem;
  max-width: 33rem;
  margin-left: 30px;
  border-radius: var(--wp--custom--radius--m);
}

.hero-image img {
  width: auto !important;
  height: auto !important;
}
.hero-header__inner {
  margin-bottom: var(--wp--preset--spacing--l);
}
@media (min-width: 48em) {
  .hero-contenu-grid {
    gap: var(--wp--preset--spacing--s);
  }
  .hero-header__inner {
    margin-bottom: var(--wp--preset--spacing--xl);
  }
  .hero-contenu-grid,
  .hero-header__inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
  }
  .hero-logo {
    grid-area: 1/1/2/-1;
  }
  .hero-intro {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.5;
    grid-area: 3/2/3/-1;
  }
  .hero-image {
    grid-area: 3/3/-1/5;
    position: relative;
    top: 34rem;
    border-radius: var(--wp--custom--radius--l);
  }
  .hero-image img {
    width: auto !important;
    height: auto !important;
  }
}

@media (min-width: 67.5em) {
  .hero-image {
    top: 25rem;
    left: -6rem;
  }
}
@media (min-width: 100em) {
  .hero-image {
    top: 20rem;
  }
}
@media (min-width: 125em) {
  .hero-image {
    top: 16rem;
  }
}
/****** Hero Pages enfants ******/

.hero-intro-enfant {
  grid-area: 2/1/4/-1;
  display: grid;
  padding-left: 1rem !important;
  align-items: start;
  position: relative;
  top: -1rem;
}
@media (min-width: 48em) {
  .hero-intro-enfant {
    grid-area: 2/2/-1/-1;
    padding-top: var(--wp--preset--spacing--xs) !important;
    position: relative;
    top: -2rem;
  }
}
@media (max-width: 48em) {
  .single-inspiration
    .wp-site-blocks
    .hero
    .hero-header-enfant
    .hero-contenu-grid-enfant
    .hero-intro-enfant {
    padding-top: 0 !important;
  }
}
.hero-contenu-grid-enfant {
  grid-template-columns: 1fr 1fr 1fr !important;
  grid-template-rows: 1fr !important;
}

.hero-header-enfant {
  width: 90vw;
  max-height: 10rem;
  padding-right: var(--wp--preset--spacing--s) !important;
  padding-left: var(--wp--preset--spacing--s) !important;
}
@media (min-width: 62em) {
  .hero-header-enfant {
    width: 75vw;
    padding-right: var(--wp--preset--spacing--m) !important;
    padding-left: var(--wp--preset--spacing--m) !important;
  }
}

@media (min-width: 91em) {
  .hero-header-enfant {
    width: 90vw;
    padding-right: var(--wp--preset--spacing--l) !important;
    padding-left: var(--wp--preset--spacing--l) !important;
  }
}
/******* Page Bonnes raisons *******/
@media (max-width: 42em) {
  .bonnes-raisons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--s);
  }
  .img-gauche-grid,
  .img-droite-grid {
    grid-template-columns: 1fr;
    position: relative;
    left: 0;
    top: 0;
  }
  .contenu-image-left {
    align-content: center;
    position: relative;
    left: 0;
  }
  .contenu-image-right {
    align-content: center;
    position: relative;
    right: 0;
    top: -3rem;
  }
  .pleft {
    padding-left: var(--wp--preset--spacing--xs);
    position: relative;
    top: -2rem;
    padding-right: var(--wp--preset--spacing--xs);
    padding-block: var(--wp--preset--spacing--xs);
  }
  .pright {
    padding-left: var(--wp--preset--spacing--xs);
    padding-right: var(--wp--preset--spacing--xs);
    position: relative;
    top: -2rem;
  }
  .contenu-texte {
    position: relative;
    top: -2rem;
  }
}
@media (min-width: 42em) {
  .contenu-image-left {
    align-content: center;
    left: 4rem;
    position: relative;
  }
  .contenu-image-left img {
    width: 100%;
    height: auto;
  }
  .contenu-image-right {
    align-content: center;
    top: 0;
    right: 4rem;
    position: relative;
  }
  .contenu-image-left img {
    width: 100%;
    height: auto;
    border-radius: var(--wp--custom--radius--l);
  }
  .contenu-texte {
    border-radius: var(--wp--custom--radius--l);
    padding-top: var(--wp--preset--spacing--m);
    padding-bottom: var(--wp--preset--spacing--m);
  }
  .pleft {
    padding-right: var(--wp--preset--spacing--s);
    padding-left: calc(var(--wp--preset--spacing--l) + 1rem);
  }
  .pright {
    padding-left: var(--wp--preset--spacing--s);
    padding-right: calc(var(--wp--preset--spacing--l) + 1rem);
  }
}

@media (max-width: 48em) {
  .logos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
  }
  .logos > figure img {
    max-width: 100px;
    height: auto;
    object-fit: cover;
  }
}
@media (min-width: 48em) {
  .logos > figure img {
    max-width: 200px;
    height: auto;
    object-fit: cover;
  }
}
.realisation-hero-bg {
  position: relative;
  /* Fond teinté par l'accent — double déclaration : fallback + moderne */
  background: var(--inspiration-accent);
}
/******* Section services ******/

/******* Bordures entre les services ******/
.services-liste {
  gap: 0 !important;
  grid-template-columns: 1fr 1fr !important;
}
.services-liste li > figure {
  height: 80px;
  width: 80px;
}
@media (min-width: 48em) {
  .services-liste {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .services-liste li > figure {
    height: 120px;
    width: 120px;
  }
  .services-liste li:nth-child(1),
  .services-liste li:nth-child(2) {
    border-right: 3px solid var(--wp--preset--color--primary);
    border-bottom: 3px solid var(--wp--preset--color--primary);
  }
  .services-liste li:nth-child(3) {
    border-bottom: 3px solid var(--wp--preset--color--primary);
  }
  .services-liste li:nth-child(4),
  .services-liste li:nth-child(5) {
    border-right: 3px solid var(--wp--preset--color--primary);
  }
}
/******* Boucle services - page service parente - gestion des activités *******/
@media (min-width: 48em) and (max-width: 75rem) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .services-grid > figure {
    grid-area: 1/1/1/1;
  }
  .services-grid > div {
    grid-area: 1/2/-1/-1;
    padding-left: 0;
    padding-block: 0;
  }
}
@media (max-width: 48em) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1rem;
  }

  /* .services-grid > figure {
    grid-area: 1/1/1/1;
  } */
  .services-grid > div {
    /* grid-area: 2/1/-1/-1; */
    padding-left: 0;
    padding-block: 0;
  }
}
/* @media (min-width: 48em) {
  .hero-logo .custom-logo-link img {
    position: fixed;
    z-index: 99999999;
  }
} */

/***** Mega-menu - mobile - ajout du 14/09*****/
@media (max-width: 48em) {
  header.wp-block-template-part {
    background-color: var(--wp--preset--color--base);
  }
  .menupicto {
    grid-template-columns: 1fr;
    padding-top: 1rem !important;
    align-items: center;
    gap: 0 !important;
  }
  .menupicto .menupicto-item {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
  }
  .nav-haut {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .nav-haut div {
    gap: 1rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}
/* html.mega-open,
body.mega-open {
  overflow: hidden; 
} */

/* Bouton page Choisir - Section accès bouton positionné */

.btn-acces-positionne {
  top: -6rem;
  position: relative;
}
/* — Recherche au-dessus de tout, mobile-friendly — */
#floatingSearch:not([hidden]) {
  position: fixed;
  left: -20rem;
  right: 1rem;
  top: 1rem;
  z-index: 2147483647; /* au-dessus de 9998/10000 */
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--wp--preset--color--base, #fff);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
#floatingSearch[hidden] {
  display: none !important;
}
#floatingSearch input[type="search"] {
  font-size: 16px; /* anti-zoom iOS */
  min-height: 44px;
  flex: 1 1 auto;
}
@supports (padding: env(safe-area-inset-top)) {
  #floatingSearch:not([hidden]) {
    top: calc(10rem + env(safe-area-inset-top));
  }
}

/* — Quand la recherche est ouverte, ne bloque jamais le scroll — */
html.search-open,
body.search-open {
  overflow: auto !important;
}

/* — Quand la recherche est ouverte, neutraliser le méga-menu — */
body.search-open .mega-menu {
  pointer-events: none !important;
  opacity: 0 !important;
}
/* Mobile uniquement : la recherche passe au-dessus */
@media (max-width: 48em) {
  #floatingSearch[hidden] {
    display: none !important;
  }
  #floatingSearch:not([hidden]) {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 1rem;
    z-index: 10001; /* > .mega-menu (10000) */
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--wp--preset--color--base, #fff);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
  #floatingSearch input[type="search"] {
    font-size: 16px;
    min-height: 44px;
    flex: 1 1 auto;
  }
  @supports (padding: env(safe-area-inset-top)) {
    #floatingSearch:not([hidden]) {
      top: calc(1rem + env(safe-area-inset-top));
    }
  }
}
/* === Single – sliders : cacher les slides suivantes en mobile === */
@media (max-width: 48em) {
  /* 1) Masquer tout débordement au niveau du composant et du conteneur Swiper */
  .wp-block-inspiration-slider,
  .wp-block-inspiration-slider .swiper {
    overflow: hidden !important; /* prend le pas sur overflow:visible défini plus haut */
  }

  /* 2) Laisse le wrapper "respirer" (ombres/transform), sans réactiver le débordement global */
  .wp-block-inspiration-slider .swiper-wrapper {
    overflow: visible !important;
    gap: 1rem;
  }

  /* 3) Une seule slide par vue, largeur plein conteneur, sans “gap” résiduel */
  .wp-block-inspiration-slider .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
    transform: none; /* optionnel : évite un micro débordement dû au scale */
  }

  /* 4) Si le spacing force un aperçu de la suivante, on neutralise en mobile
  .wp-block-inspiration-slider {
    --slider-gap: 0px; /* remet à ta valeur si besoin 
  } */

  /* 5) Évite une barre de scroll parasite due au full-bleed + 100vw */
  .wp-block-inspiration-slider.alignfull {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Logo Fixe en page d'accueil */
/* état normal */
/* État normal (logo non fixe) */
body.home .cvb-site-logo {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Pré-entrée (position fixe + décalage léger vers le haut + transparent) */
body.home.logo-fixed-enter .cvb-site-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2000;
  transform: translateY(-14px);
  opacity: 0;
}

/* État fixe après animation */
body.home.logo-fixed-active .cvb-site-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2000;
  transform: translateY(0);
  opacity: 1;
}

/* Si barre admin WordPress */
body.admin-bar.home.logo-fixed-enter .cvb-site-logo,
body.admin-bar.home.logo-fixed-active .cvb-site-logo {
  top: calc(16px + 32px);
}
@media (max-width: 42em) {
  .menu-logo-desc p {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: var(--wp--preset--font-family--primary);
  }
}
.swiper-pagination .swiper-pagination-clickable .swiper-pagination-bullets {
  bottom: 1.5rem !important;
}
.contenu-equipe {
  margin-top: 0 !important;
}
