/* =========================================================
   Aude Becker Shiatsu – mise en forme des blocs de l'éditeur
   Classes à ajouter dans « Avancé > Classe(s) CSS additionnelle(s) »
   ========================================================= */

/* ---------- Base ---------- */
html, body { overflow-x: clip; }

.ab-page { padding-top: 3rem; }
.ab-page-header { margin-bottom: 2.5rem; }
.ab-home { padding-top: 4rem; }

.entry-content > * + * { margin-top: 2rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content a { color: #3c8f7a; }
.ab-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.ab-narrow h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }

.wp-block-columns { gap: 1.5rem; margin-bottom: 0; }
.wp-block-column > .wp-block-group { height: 100%; }
.wp-block-group + .wp-block-group { margin-top: 1.5rem; }

/* ---------- Titres de section avec séparateur (classe ab-title + ab-ico-xxx) ---------- */
.ab-title {
  color: #2c3e50;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0;
}
.ab-title::after {
  content: var(--ab-ico, "\f5bb");
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  display: block;
  max-width: 18rem;
  margin: 1.25rem auto 2.5rem;
  text-transform: none;
  background:
    linear-gradient(currentColor, currentColor) left center / calc(50% - 2rem) .25rem no-repeat,
    linear-gradient(currentColor, currentColor) right center / calc(50% - 2rem) .25rem no-repeat;
}

/* ---------- Icônes (classe ab-ico + ab-ico-xxx) ---------- */
.ab-ico::before,
.ab-ico-top::before {
  content: var(--ab-ico, "\f06c");
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  color: #5fbfa6;
}
.ab-ico::before { margin-right: .6rem; }
.ab-ico-top { text-align: center; }
.ab-ico-top::before { display: block; font-size: 1.6rem; margin-bottom: .5rem; color: #7bcfb4; }

.ab-ico-heart{--ab-ico:"\f004"} .ab-ico-spa{--ab-ico:"\f5bb"} .ab-ico-hands{--ab-ico:"\f2a7"}
.ab-ico-wind{--ab-ico:"\f72e"} .ab-ico-leaf{--ab-ico:"\f06c"} .ab-ico-seedling{--ab-ico:"\f4d8"}
.ab-ico-location-dot{--ab-ico:"\f3c5"} .ab-ico-people-group{--ab-ico:"\e533"} .ab-ico-award{--ab-ico:"\f559"}
.ab-ico-triangle-exclamation{--ab-ico:"\f071"} .ab-ico-user{--ab-ico:"\f007"} .ab-ico-child-reaching{--ab-ico:"\e59d"}
.ab-ico-circle-info{--ab-ico:"\f05a"} .ab-ico-gift{--ab-ico:"\f06b"} .ab-ico-wheelchair{--ab-ico:"\f193"}
.ab-ico-wallet{--ab-ico:"\f555"} .ab-ico-calendar-days{--ab-ico:"\f073"} .ab-ico-calendar-check{--ab-ico:"\f274"}
.ab-ico-phone{--ab-ico:"\f095"} .ab-ico-envelope{--ab-ico:"\f0e0"} .ab-ico-comment-sms{--ab-ico:"\f7cd"}
.ab-ico-circle-check{--ab-ico:"\f058"} .ab-ico-feather-pointed{--ab-ico:"\f56b"} .ab-ico-ear-listen{--ab-ico:"\f2a2"}
.ab-ico-hand-holding-heart{--ab-ico:"\f4be"} .ab-ico-hands-holding-child{--ab-ico:"\e4fa"} .ab-ico-baby{--ab-ico:"\f77c"}
.ab-ico-building{--ab-ico:"\f1ad"} .ab-ico-mattress-pillow{--ab-ico:"\e525"} .ab-ico-image{--ab-ico:"\f03e"}
.ab-ico-star{--ab-ico:"\f005"} .ab-ico-clock{--ab-ico:"\f017"} .ab-ico-map-location-dot{--ab-ico:"\f5a0"}

/* ---------- Cartes ---------- */
.ab-card { padding: 1.5rem; }
@media (min-width: 768px) { .ab-card { padding: 2.5rem; } }
.ab-card h3, .ab-card .h5 { margin-top: 0; margin-bottom: 1.25rem; font-size: 1.25rem; }
.ab-card > * + * { margin-top: 0; }
.ab-card.prestation-card { border: 0; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); background: #fff; position: relative; }

.about-card .wp-block-image { text-align: center; margin: 0 auto 1rem; }
.about-photo-block img {
  width: 260px; height: 260px; max-width: 100%;
  border-radius: 50%; object-fit: cover; object-position: 50% 15%;
}

.about-feature { margin-bottom: 1rem; }
.about-feature::before { color: var(--bs-primary); }
.about-card .wp-block-separator { opacity: .12; margin: 1.5rem 0; }

/* Badge « Le + choisi » (classe ab-featured) */
.ab-featured::after {
  content: "\f06c  Le + choisi";
  font-family: "Font Awesome 6 Free", "Montserrat", sans-serif;
  font-weight: 900;
  position: absolute; top: 1rem; right: 1rem;
  background-color: #7fd1b9; color: #fff;
  font-size: .75rem; padding: .35rem .7rem; border-radius: 999px;
  letter-spacing: .03em; box-shadow: 0 4px 10px rgba(0,0,0,.12); text-transform: none;
  animation: pulse-soft 2.5s ease-in-out infinite;
}

/* Listes de tarifs (classe ab-prices) */
.ab-prices { list-style: none; padding: 0; margin: 0; }
.ab-prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--bs-border-color, #dee2e6); }
.ab-prices li:last-child { border-bottom: 0; }

/* Liste « Mon approche » (classe ab-approach) */
.ab-approach { list-style: none; padding: 0; margin: 0; }
.ab-approach li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.ab-approach li:last-child { margin-bottom: 0; }
.ab-approach li::before {
  content: "\f004"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: .15rem; color: var(--bs-primary);
}

.ab-tags { font-size: .875rem; color: #6c757d; margin-top: 1rem; }
.ab-more a { font-weight: 600; text-decoration: none; }
.ab-more a::after { content: " \f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85em; }

/* Encarts info (paiement, RDV…) */
.entry-content .paiement-box { margin-left: auto; margin-right: auto; width: 100%; text-align: center; }

/* ---------- Bandeau pleine largeur (classe ab-band + ab-band-primary) ---------- */
.ab-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5rem max(1rem, calc((100vw - 1140px) / 2));
}
.ab-band-primary { background-color: rgb(var(--bs-primary-rgb)); color: #fff; }
.entry-content > .ab-band { margin-top: 4rem; }
.entry-content > .ab-band:last-child { margin-bottom: -6rem; }
.entry-content > .ab-band-flush:first-child { margin-top: 0; }
.ab-band > * + * { margin-top: 1.5rem; }
.ab-band h3 { color: #fff; font-weight: 600; margin-top: 3rem; }
.ab-band .ab-title { color: #fff; }
.ab-band h3.ab-ico::before { color: #fff; }

.ab-band .shiatsu-card {
  background-color: #fff; color: #2f3a40; padding: 2rem;
  border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.ab-band .shiatsu-card p { font-size: 1.08rem; line-height: 1.7; color: #2f3a40; }
.ab-band .shiatsu-card p + p { margin-top: 1rem; }
.ab-band .shiatsu-mini {
  background-color: #fff; color: #2f3a40; padding: 1.4rem 1.6rem;
  border-radius: 14px; font-size: 1.05rem; line-height: 1.6;
  box-shadow: 0 10px 24px rgba(0,0,0,.08); height: 100%; margin: 0;
}
.ab-band .shiatsu-card:hover, .ab-band .shiatsu-mini:hover { transform: translateY(-4px); transition: all .3s ease; }

/* ---------- Boutons ---------- */
.wp-block-button__link {
  background-color: #7fcfb3; color: #fff !important; border: none;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.12); transition: all .3s ease;
}
.wp-block-button__link:hover { background-color: #6ab89e; transform: translateY(-2px); }
.ab-band .wp-block-button__link { background-color: #2c3e50; }
.ab-band .wp-block-button__link:hover { background-color: #1a252f; }
.ab-cta { margin-top: 2.5rem; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.entry-content > .wp-block-buttons { margin-top: 3rem; }
.ab-band > .wp-block-buttons { margin-top: 3rem; }

/* ---------- Galerie en mosaïque (galerie avec la classe ab-mosaique) – reprise de Vitalior ---------- */
.ab-mosaique {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  max-width: 1140px; margin-left: auto; margin-right: auto;
}
.ab-mosaique-item {
  position: relative; overflow: hidden; padding: 0; border: 0;
  border-radius: 16px; background: rgba(255,255,255,.35); cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.ab-mosaique-item.is-grande { grid-column: span 2; grid-row: span 2; }
.ab-mosaique-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block;
  transition: transform .5s ease;
}
.ab-mosaique-item:hover img, .ab-mosaique-item:focus-visible img { transform: scale(1.04); }
.ab-mosaique-item:focus-visible { outline: 3px solid #2c3e50; outline-offset: 3px; }
.ab-mosaique-plus {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(44, 62, 80, .72); color: #fff; font-size: 1.3rem; font-weight: 700;
}
/* Rangées toujours pleines selon le nombre de photos */
.ab-mosaique-1 .ab-mosaique-item.is-grande { grid-column: span 4; }
.ab-mosaique-2 .ab-mosaique-item { grid-column: span 2; grid-row: span 2; }
.ab-mosaique-3 .ab-mosaique-item:not(.is-grande) { grid-column: span 2; }
.ab-mosaique-4 .ab-mosaique-item:last-child { grid-column: span 2; }

@media (max-width: 991.98px) {
  .ab-mosaique { grid-auto-rows: 160px; }
}
@media (max-width: 767.98px) {
  .ab-mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .ab-mosaique-item { border-radius: 12px; }
  .ab-mosaique .ab-mosaique-item.is-grande { grid-column: span 2; grid-row: span 2; }
  .ab-mosaique-1 .ab-mosaique-item, .ab-mosaique-2 .ab-mosaique-item { grid-column: span 2; grid-row: span 2; }
  .ab-mosaique-3 .ab-mosaique-item:not(.is-grande) { grid-column: span 1; }
  .ab-mosaique-4 .ab-mosaique-item:last-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-mosaique-item img { transition: none; }
}

/* Agrandissement : fond sombre, photo centrée, pas de bande blanche */
.ab-gallery-modal .modal-content,
.ab-gallery-modal .modal-body,
.ab-lightbox .carousel-inner,
.ab-lightbox .carousel-item { background: transparent !important; border: 0; box-shadow: none; }
.ab-lightbox .carousel-item img {
  margin: 0 auto; max-width: 100%; max-height: 82vh; width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
}
.ab-lightbox .carousel-control-prev,
.ab-lightbox .carousel-control-next { width: 12%; opacity: .9; }
.ab-lightbox .carousel-control-prev-icon,
.ab-lightbox .carousel-control-next-icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  background-color: rgba(0, 0, 0, .45); background-size: 50% 50%;
}
.ab-gallery-close {
  position: absolute; top: -3rem; right: 0; z-index: 5;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #2c3e50; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.ab-gallery-close:hover { background: #fff; }
.modal-backdrop.show { background: #000; opacity: .85 !important; }
@media (max-width: 767.98px) {
  .ab-gallery-close { top: .5rem; right: .5rem; }
  .ab-lightbox .carousel-item img { max-height: 75vh; }
}

/* ---------- Contact ---------- */
.contact-intro::before { color: #7fcfb6; }
.ab-contact { align-items: flex-start; }
.ab-map { margin-top: 1.5rem; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.ab-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Avis ---------- */
.entry-content > #avis { border-radius: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .wp-block-columns { gap: 1rem; }
  .ab-band { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ---------- Correctif 1.1.1 : espacement des boutons ----------
   Les styles de mise en page générés par WordPress écrasaient les marges. */
.entry-content .wp-block-buttons,
.ab-band .wp-block-buttons {
  margin-top: 3rem !important;
  margin-bottom: 0 !important;
}
.ab-band .wp-block-columns + .wp-block-buttons,
.ab-band .wp-block-gallery + .wp-block-buttons,
.ab-band .ab-mosaique ~ .wp-block-buttons { margin-top: 3.5rem !important; }
.ab-band > .wp-block-columns,
.ab-band > .wp-block-gallery,
.ab-band > .ab-mosaique { margin-bottom: 0 !important; }

/* ---------- Correctif 1.4.2 ---------- */
/* Bandeau d'accueil : une seule photo (la balise img), pas d'image de fond en double
   qui apparaissait puis se faisait recouvrir au chargement. */
.hero-right { background-image: none !important; background-color: #d9e6ea; }

/* Encarts info : bordure toujours présente (transparente) pour que le survol
   ne change pas leur taille et ne fasse plus bouger le bloc Avis. */
.paiement-box { border: 1px solid transparent; }
.paiement-box:hover { border-color: rgba(123, 207, 180, .4); }

/* ---------- 1.5.0 : bandeau cookies ---------- */
.ab-cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2000;
  display: flex; justify-content: center; pointer-events: none;
}
.ab-cookies[hidden] { display: none; }
.ab-cookies-inner {
  pointer-events: auto; max-width: 760px; width: 100%;
  background: #2c3e50; color: #fff; border-radius: 16px;
  padding: 1.25rem 1.5rem; box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.ab-cookies-title { font-weight: 700; margin-bottom: .5rem; font-family: "Montserrat", sans-serif; }
.ab-cookies-title i { color: #7fd1b9; margin-right: .35rem; }
.ab-cookies-text { font-size: .95rem; line-height: 1.55; margin-bottom: 1rem; }
.ab-cookies-text a { color: #b9e6d8; }
.ab-cookies-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
/* Refuser et Accepter : même taille, même visibilité (recommandation CNIL) */
.ab-cookies-btn {
  flex: 1 1 160px; max-width: 220px; border: 2px solid #7fd1b9; background: #7fd1b9; color: #1d2b38;
  font-weight: 700; border-radius: 10px; padding: .6rem 1rem; cursor: pointer;
}
.ab-cookies-btn:hover { background: #fff; border-color: #fff; }
.ab-cookies-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 576px) {
  .ab-cookies { left: .5rem; right: .5rem; bottom: .5rem; }
  .ab-cookies-actions { justify-content: stretch; }
  .ab-cookies-btn { max-width: none; }
}
.ab-cookie-settings {
  background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.footer-links .ab-cookie-settings { color: rgba(255,255,255,.85); }

/* Encarts « service non activé » (carte, reCAPTCHA) */
.ab-consent-placeholder {
  background: #eef5f3; border: 1px dashed rgba(44,62,80,.25); border-radius: 14px;
  padding: 1rem 1.25rem; text-align: center; color: #2c3e50; font-size: .95rem; max-width: 420px;
}
.ab-consent-placeholder[hidden] { display: none; }
.ab-map { display: flex; align-items: center; justify-content: center; background: #eef5f3; }
.ab-map .ab-map-placeholder { border: 0; max-width: 340px; background: transparent; }
.ab-map-icon { font-size: 2rem; color: #5fbfa6; margin-bottom: .5rem; display: block; }

/* Case RGPD */
.ab-rgpd { font-size: .9rem; color: #4b5f6f; text-align: left; }
.ab-rgpd .form-check-input { margin-top: .2rem; }
.ab-rgpd a { color: #3c8f7a; }
