/* Menu sur une ligne + accueil espaces — 2026-11-17 */
/* Menu sur une seule ligne (ordinateur) */
@media (min-width: 1024px) {
  .nav .nav__wrapper { padding-left: 16px; padding-right: 16px; }
  .nav .nav__maxWidth { flex-wrap: nowrap; justify-content: center; column-gap: clamp(8px, 1.4vw, 28px); max-width: 100%; }
  .nav .nav__maxWidth > .nav__a.nav__itemlvl1 { margin-right: 0; white-space: nowrap; font-size: clamp(11px, 1.05vw, 14.5px); letter-spacing: .03em; }
}

/* Accueil : presentation des espaces. Tous les blocs image + texte de l'accueil, un sur deux inverse automatiquement. Textes et photos restent modifiables dans l'editeur. */
body { counter-reset: ltpspace; }
.page-homepage [id="6c40de4e-8645-4553-928a-5c5d4050005f"] { text-align: center; }
.page-homepage [id="6c40de4e-8645-4553-928a-5c5d4050005f"] h2 { text-align: center !important; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; }
.page-homepage [id="6c40de4e-8645-4553-928a-5c5d4050005f"] h2::before { content: "Nos espaces"; display: block; margin: 0 auto 14px; font-family: Montserrat, sans-serif; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #b3924b; }
.page-homepage [id="6c40de4e-8645-4553-928a-5c5d4050005f"] h2::after { content: ""; display: block; width: 56px; height: 1px; background: #b3924b; margin: 22px auto 0; }
.page-homepage [id="6c40de4e-8645-4553-928a-5c5d4050005f"] p:has(> br:only-child) { display: none; }

.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) { counter-increment: ltpspace; max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 24px; margin-bottom: clamp(56px, 8vw, 110px) !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-wrapper--imgtxt { max-width: none; padding: 0; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 0; position: relative; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left,
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__right { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; }

/* Photo en arche, lisere dore decale */
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left { position: relative; height: clamp(380px, 44vw, 580px) !important; z-index: 1; grid-column: 1; grid-row: 1; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 1px solid #b3924b; border-radius: 999px 999px 6px 6px; z-index: -1; pointer-events: none; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left picture,
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left img { display: block; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; border-radius: 999px 999px 6px 6px !important; position: static !important; }

/* Carte de texte qui chevauche la photo */
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__right { grid-column: 2; grid-row: 1; position: relative; z-index: 2; margin-left: -72px !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap { background: #fff; padding: clamp(32px, 4vw, 56px) !important; border-radius: 6px; box-shadow: 0 24px 60px -28px rgba(60, 45, 20, .35); text-align: left !important; max-width: none !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap::before { content: counter(ltpspace, decimal-leading-zero); display: block; font-family: "Playfair Display", serif; font-style: italic; font-size: 22px; color: #b3924b; margin-bottom: 10px; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin: 0 0 18px !important; text-align: left !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap h2::after { content: ""; display: block; width: 48px; height: 1px; background: #b3924b; margin-top: 18px; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p { font-size: 15px; line-height: 1.75; margin: 0 0 12px; text-align: left !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p:has(> br:only-child) { display: none; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap span[style] { background: transparent !important; font-family: inherit !important; font-size: inherit !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p[style] { background: transparent !important; font-family: inherit !important; font-size: 15px !important; width: auto !important; line-height: 1.75 !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wiziBtn__wrapper { justify-content: flex-start !important; text-align: left !important; margin-top: 24px !important; }

/* Un espace sur deux : photo a droite */
.page-homepage .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.page-homepage .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__left { grid-column: 2; }
.page-homepage .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__left::before { transform: translate(-18px, 18px); }
.page-homepage .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__right { grid-column: 1; margin-left: 0 !important; margin-right: -72px !important; }

/* Mobile et tablette */
@media (max-width: 860px) {
  .page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) { padding: 0 16px; }
  .page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt { grid-template-columns: 1fr !important; }
  .page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left { grid-column: 1 !important; grid-row: 1; height: clamp(320px, 90vw, 460px) !important; margin: 0 12px !important; }
  .page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left::before { transform: translate(10px, 10px) !important; }
  .page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__right { grid-column: 1 !important; grid-row: 2; margin: -64px 0 0 !important; }
}

/* Accueil espaces - correctif photo — 2026-11-17 */
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left img { transform: none !important; top: auto !important; left: auto !important; }

/* Accueil espaces - liseré visible — 2026-11-17 */
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left { overflow: visible !important; }
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left picture { overflow: hidden; border-radius: 999px 999px 6px 6px; }

/* Accueil espaces - arche du liseré — 2026-11-17 */
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left,
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left::before,
.page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left picture { border-radius: 999px 999px 6px 6px !important; }

/* Accueil espaces - mobile cartes inversées — 2026-11-17 */
@media (max-width: 860px) {
  .page-homepage .wiziblocks__item:nth-child(n of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__right { grid-column: 1 !important; grid-row: 2; margin: -64px 0 0 !important; }
  .page-homepage .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p { font-size: 15px !important; line-height: 1.7 !important; }
}

/* Pages soins - photo a la hauteur du texte — 2026-11-18 */
/* Pages Massages, Formules SPA, Esthetique, Laser/Electrolyse, Enfants/Ados (reperees par la classe ltp-soins) : photo a la hauteur du texte */
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 24px; margin-bottom: clamp(48px, 7vw, 96px) !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-wrapper--imgtxt { max-width: none; padding: 0; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch !important; gap: clamp(24px, 3.5vw, 48px); }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left, body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__right { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; grid-row: 1; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left { grid-column: 1; display: block !important; height: auto !important; min-height: 360px; overflow: visible !important; position: relative; border-radius: 0 !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left picture { position: relative !important; display: block; height: 100%; min-height: 360px; overflow: hidden; border-radius: 999px 999px 8px 8px !important; box-shadow: 18px 18px 0 -1px rgba(179, 146, 75, .18); }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left img { position: static !important; transform: none !important; top: auto !important; left: auto !important; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; border-radius: 999px 999px 8px 8px !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__right { grid-column: 2; display: block !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap { background: #fff; border-radius: 8px; padding: clamp(28px, 3.6vw, 52px) !important; box-shadow: 0 24px 60px -32px rgba(60, 45, 20, .35); height: 100%; max-width: none !important; text-align: left !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap h2 { font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.2; margin: 0 0 18px !important; text-align: left !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap h2::after { content: ""; display: block; width: 48px; height: 1px; background: #b3924b; margin-top: 16px; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p, body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap li { font-size: 15px !important; line-height: 1.75 !important; text-align: left !important; background: transparent !important; font-family: inherit !important; width: auto !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p { margin: 0 0 10px !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap span[style] { background: transparent !important; font-family: inherit !important; font-size: inherit !important; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap p:has(> br:only-child) { display: none; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__wrap strong { color: #8a6d2f; }
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wiziBtn__wrapper { justify-content: flex-start !important; text-align: left !important; margin-top: 22px !important; }
/* une section sur deux : photo a droite */
body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__left { grid-column: 2; }
body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__right { grid-column: 1; }
body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__left picture { box-shadow: -18px 18px 0 -1px rgba(179, 146, 75, .18); }
@media (max-width: 860px) {
  body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) { padding: 0 16px; }
  body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt, body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt { grid-template-columns: 1fr !important; gap: 0; }
  body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left, body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__left { grid-column: 1 !important; grid-row: 1 !important; min-height: 0; height: clamp(300px, 85vw, 440px) !important; margin: 0 10px !important; }
  body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left picture { position: static !important; max-height: none; min-height: 0; box-shadow: none !important; }
  body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__right, body:has(.ltp-soins) .wiziblocks__item:nth-child(even of :has(.wizi-imgtxt--textLeftTextRight)) .wizi-imgtxt__right { grid-column: 1 !important; grid-row: 2 !important; margin-top: -48px !important; position: relative; z-index: 2; }
}

/* Pages soins - photo calee en haut — 2026-11-18 */
body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left::before { display: none !important; content: none !important; padding: 0 !important; }

/* Pages soins - hauteur fixee par le texte — 2026-11-18 */
@media (min-width: 861px) {
  body:has(.ltp-soins) .wiziblocks__item:has(.wizi-imgtxt--textLeftTextRight) .wizi-imgtxt__left picture { position: absolute !important; inset: 0; height: auto; min-height: 0; }
}

/* Pages soins - cadrage des photos de salles — 2026-11-18 */
/* Cadrage des photos paysage dans l'arche (le jacuzzi est a gauche sur ces photos) */
body:has(.ltp-soins) .wizi-imgtxt__left img[src*="RAW-245/"] { object-position: 5% 50%; }
body:has(.ltp-soins) .wizi-imgtxt__left img[src*="RAW-244/"] { object-position: 12% 50%; }
body:has(.ltp-soins) .wizi-imgtxt__left img[src*="RAW-243/"] { object-position: 30% 50%; }
