/* Location de salle — Elementor native widgets + reference fluid grid */

body.ws-location-salle-native-page {
  --sqs-site-max-width: 1500px;
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
  --ws-location-gap: 11px;
  --ws-location-gutter: var(--sqs-mobile-site-gutter);
  --ws-location-cell: calc((min(var(--sqs-site-max-width), 100vw - var(--ws-location-gutter) * 2) - (var(--ws-location-gap) * 7)) / 8);
}

body.ws-location-salle-native-page .ws-location-salle,
body.ws-location-salle-native-page .ws-location-salle.e-con {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
  width: 100% !important;
  max-width: none !important;
}

body.ws-location-salle-native-page .ws-location-salle .e-con-inner,
body.ws-location-salle-native-page .ws-location-salle__section .e-con-inner,
body.ws-location-salle-native-page .ws-location-salle__fluid .e-con-inner {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.ws-location-salle-native-page .ws-location-salle__section.e-con {
  background: #fff;
  overflow-x: hidden;
}

body.ws-location-salle-native-page .ws-location-salle__section--studio1.e-con {
  padding: 3rem 0 2rem !important;
}

body.ws-location-salle-native-page .ws-location-salle__section--studio2.e-con {
  padding: 2rem 0 3rem !important;
}

body.ws-location-salle-native-page .ws-location-salle__section--complex.e-con {
  padding: 2rem 0 4rem !important;
}

/* Grid parents */
body.ws-location-salle-native-page .ws-location-salle__fluid.e-con,
body.ws-location-salle-native-page .ws-location-salle__fluid > .e-con-inner {
  display: grid !important;
  position: relative;
  grid-template-columns:
    minmax(var(--ws-location-gutter), 1fr)
    repeat(8, minmax(0, var(--ws-location-cell)))
    minmax(var(--ws-location-gutter), 1fr);
  row-gap: var(--ws-location-gap);
  column-gap: var(--ws-location-gap);
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  width: 100%;
  align-items: stretch !important;
  justify-content: stretch !important;
}

body.ws-location-salle-native-page .ws-location-salle__fluid--studio1.e-con,
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 > .e-con-inner,
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2.e-con,
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 > .e-con-inner {
  grid-template-rows: repeat(46, minmax(24px, auto));
}

body.ws-location-salle-native-page .ws-location-salle__fluid--complex.e-con,
body.ws-location-salle-native-page .ws-location-salle__fluid--complex > .e-con-inner {
  grid-template-rows: repeat(30, minmax(24px, auto));
}

body.ws-location-salle-native-page .ws-location-salle__fluid > .e-con,
body.ws-location-salle-native-page .ws-location-salle__fluid > .e-con-inner > .e-con {
  position: relative;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  flex: unset !important;
  align-self: stretch !important;
}

/* Studio 1 — mobile */
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--title { grid-area: 1 / 2 / 3 / 10; z-index: 0; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--image-main { grid-area: 3 / 2 / 11 / 10; z-index: 1; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--image-side-a { grid-area: 11 / 2 / 18 / 10; z-index: 4; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--image-side-b { grid-area: 18 / 2 / 25 / 10; z-index: 5; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--info { grid-area: 25 / 2 / 40 / 10; z-index: 2; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--cta { grid-area: 45 / 3 / 47 / 9; z-index: 3; }

/* Studio 2 — mobile */
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--title { grid-area: 1 / 2 / 3 / 10; z-index: 0; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--image-main { grid-area: 3 / 2 / 11 / 10; z-index: 1; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--image-side-a { grid-area: 11 / 2 / 18 / 10; z-index: 4; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--image-side-b { grid-area: 18 / 2 / 25 / 10; z-index: 5; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--info { grid-area: 25 / 2 / 39 / 10; z-index: 2; }
body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--cta { grid-area: 44 / 3 / 46 / 9; z-index: 3; }

/* Complex — mobile */
body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--shape-back { grid-area: 1 / 1 / 28 / 11; z-index: 1; min-height: 120px; }
body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--video { grid-area: 2 / 2 / 11 / 10; z-index: 8; min-height: 220px; }
body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--complex-heading { grid-area: 9 / 3 / 11 / 9; z-index: 9; }
body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--shape-front { grid-area: 8 / 2 / 26 / 10; z-index: 3; min-height: 120px; }
body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--complex-body { grid-area: 11 / 3 / 25 / 9; z-index: 5; }
body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--complex-cta { grid-area: 29 / 3 / 31 / 9; z-index: 7; }

/* Widget resets */
body.ws-location-salle-native-page .ws-location-salle__block .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}

body.ws-location-salle-native-page .ws-location-salle__block--title .elementor-heading-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

body.ws-location-salle-native-page .ws-location-salle__block--image-main,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-a,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-b {
  min-height: 180px;
}

body.ws-location-salle-native-page .ws-location-salle__block--image-main .elementor-widget-container,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-a .elementor-widget-container,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-b .elementor-widget-container,
body.ws-location-salle-native-page .ws-location-salle__block--image-main .elementor-widget-image,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-a .elementor-widget-image,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-b .elementor-widget-image {
  height: 100%;
}

body.ws-location-salle-native-page .ws-location-salle__block--image-main img,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-a img,
body.ws-location-salle-native-page .ws-location-salle__block--image-side-b img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

body.ws-location-salle-native-page .ws-location-salle__block--image-main-studio1 img {
  object-position: 50.96% 27.2%;
}

body.ws-location-salle-native-page .ws-location-salle__block--image-side-b-studio2 img {
  object-position: 41.36% 36%;
}

body.ws-location-salle-native-page .ws-location-salle__block--info .elementor-widget-text-editor p,
body.ws-location-salle-native-page .ws-location-salle__block--complex-body .elementor-widget-text-editor p {
  margin: 0 0 0.75rem;
  font-size: clamp(0.95rem, 1.4vw, 1rem);
  line-height: 1.5;
  white-space: pre-wrap;
}

body.ws-location-salle-native-page .ws-location-salle__block--complex-body .elementor-widget-text-editor ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

body.ws-location-salle-native-page .ws-location-salle__block--shape-front.e-con {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.ws-location-salle-native-page .ws-location-salle__block--complex-heading .elementor-heading-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}

body.ws-location-salle-native-page .ws-location-salle__block--video {
  align-self: start !important;
}

body.ws-location-salle-native-page .ws-location-salle__block--video .e-con-inner,
body.ws-location-salle-native-page .ws-location-salle__block--video .elementor-widget-container,
body.ws-location-salle-native-page .ws-location-salle__block--video .ws-location-salle__complex-video-widget {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.ws-location-salle-native-page .ws-location-salle__complex-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

body.ws-location-salle-native-page .ws-location-salle__complex-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

body.ws-location-salle-native-page .ws-location-salle__complex-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

body.ws-location-salle-native-page .ws-location-salle__complex-video-play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  margin-left: 4px;
}

body.ws-location-salle-native-page .ws-location-salle__complex-video-play:hover {
  transform: scale(1.05);
  background: rgba(17, 17, 17, 0.88);
}

body.ws-location-salle-native-page .ws-location-salle__complex-video.is-playing .ws-location-salle__complex-video-play,
body.ws-location-salle-native-page .ws-location-salle__complex-video.is-loading .ws-location-salle__complex-video-play {
  opacity: 0;
  pointer-events: none;
}

body.ws-location-salle-native-page .ws-location-salle__block--cta,
body.ws-location-salle-native-page .ws-location-salle__block--complex-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.ws-location-salle-native-page .ws-location-salle__block--cta .elementor-widget-container,
body.ws-location-salle-native-page .ws-location-salle__block--complex-cta .elementor-widget-container {
  width: 100%;
  text-align: center;
}

body.ws-location-salle-native-page .ws-location-salle__block--cta .elementor-button,
body.ws-location-salle-native-page .ws-location-salle__block--complex-cta .elementor-button {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem !important;
}

body.ws-location-salle-native-page .ws-location-salle__block--cta .elementor-button:hover,
body.ws-location-salle-native-page .ws-location-salle__block--complex-cta .elementor-button:hover {
  background: #333 !important;
}

/* Entrance animations */
body.ws-location-salle-native-page.ws-location-salle-animations-ready #ws-location-studio1-title:not(.ws-location-salle__animate-in),
body.ws-location-salle-native-page.ws-location-salle-animations-ready #ws-location-studio2-title:not(.ws-location-salle__animate-in) {
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
}

body.ws-location-salle-native-page.ws-location-salle-animations-ready #ws-location-complex-heading:not(.ws-location-salle__animate-in) {
  opacity: 0;
  transform: translateY(30px);
}

body.ws-location-salle-native-page.ws-location-salle-animations-ready #ws-location-complex-body:not(.ws-location-salle__animate-in) {
  opacity: 0;
  transform: translateX(-30px);
}

body.ws-location-salle-native-page .ws-location-salle__block--title,
body.ws-location-salle-native-page .ws-location-salle__block--complex-heading,
body.ws-location-salle-native-page .ws-location-salle__block--complex-body {
  transition: opacity 1s ease-out, transform 1s ease-out;
}

body.ws-location-salle-native-page .ws-location-salle__animate-in {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

body.ws-location-salle-native-page .ws-location-salle__block--rotate {
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

body.ws-location-salle-native-page .ws-location-salle__block--parallax {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

@media (min-width: 768px) {
  body.ws-location-salle-native-page {
    --ws-location-gutter: var(--sqs-site-gutter);
    --ws-location-cell: calc((min(var(--sqs-site-max-width), 100vw - var(--ws-location-gutter) * 2) - (var(--ws-location-gap) * 23)) / 24);
    --row-height-scaling-factor: 0.0215;
    --container-width: min(var(--sqs-site-max-width), calc(100vw - var(--ws-location-gutter) * 2));
  }

  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1.e-con,
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 > .e-con-inner,
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2.e-con,
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 > .e-con-inner {
    grid-template-rows: repeat(27, minmax(calc(var(--container-width) * var(--row-height-scaling-factor)), auto));
    grid-template-columns:
      minmax(var(--ws-location-gutter), 1fr)
      repeat(24, minmax(0, var(--ws-location-cell)))
      minmax(var(--ws-location-gutter), 1fr);
  }

  body.ws-location-salle-native-page .ws-location-salle__fluid--complex.e-con,
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex > .e-con-inner {
    grid-template-rows: repeat(18, minmax(calc(var(--container-width) * var(--row-height-scaling-factor)), auto));
    grid-template-columns:
      minmax(var(--ws-location-gutter), 1fr)
      repeat(24, minmax(0, var(--ws-location-cell)))
      minmax(var(--ws-location-gutter), 1fr);
  }

  /* Studio 1 — desktop */
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--title { grid-area: 1 / 2 / 4 / 26; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--image-main { grid-area: 5 / 2 / 22 / 17; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--image-side-a { grid-area: 18 / 3 / 27 / 9; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--image-side-b { grid-area: 18 / 10 / 27 / 16; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--info { grid-area: 6 / 14 / 16 / 26; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio1 .ws-location-salle__block--cta { grid-area: 22 / 19 / 24 / 24; }

  /* Studio 2 — desktop */
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--title { grid-area: 1 / 2 / 4 / 26; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--image-main { grid-area: 5 / 11 / 24 / 26; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--image-side-a { grid-area: 20 / 12 / 29 / 18; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--image-side-b { grid-area: 20 / 19 / 29 / 25; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--info { grid-area: 6 / 2 / 16 / 14; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--studio2 .ws-location-salle__block--cta { grid-area: 21 / 2 / 23 / 7; }

  /* Complex — desktop */
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--shape-back { grid-area: 1 / 2 / 17 / 26; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--video { grid-area: 4 / 3 / 12 / 14; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--complex-heading { grid-area: 3 / 14 / 5 / 20; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--shape-front { grid-area: 2 / 13 / 15 / 25; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--complex-body { grid-area: 4 / 14 / 13 / 24; }
  body.ws-location-salle-native-page .ws-location-salle__fluid--complex .ws-location-salle__block--complex-cta { grid-area: 17 / 11 / 19 / 17; }

  body.ws-location-salle-native-page .ws-location-salle__block--image-main img,
  body.ws-location-salle-native-page .ws-location-salle__block--image-side-a img,
  body.ws-location-salle-native-page .ws-location-salle__block--image-side-b img {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ws-location-salle-native-page .ws-location-salle__block--title,
  body.ws-location-salle-native-page .ws-location-salle__block--complex-heading,
  body.ws-location-salle-native-page .ws-location-salle__block--complex-body,
  body.ws-location-salle-native-page .ws-location-salle__block--rotate,
  body.ws-location-salle-native-page .ws-location-salle__block--parallax {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
