@font-face {
  font-family: 'Friend';
  src: url('../resources/Friend.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --color1: #240a34;
  --color2: #891652;
  --color3: #eabe6c;
  --color4: #fff3e6;
  --color5: #ffedd8;
  --bg-pattern: url('../resources/dark-stripes-light.png');
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --radius: 0.75rem;
  --page-max: 1200px;
  --gallery-wide-max: 1440px;
  --focus-ring: 3px solid #fff3e6;
  --modal-focus-ring: 3px solid #000;
  --modal-focus-inset-width: 3px;
  --site-scale: 1;
  --hero-text-scale: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: 'Friend', system-ui, sans-serif;
  font-size: clamp(1rem, 1.05rem + 0.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--color1);
  background: var(--bg-pattern) repeat var(--color4);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color2);
  color: var(--color4);
  font-weight: 700;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-block: 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-pattern) repeat var(--color2);
  color: var(--color4);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.site-header a {
  color: var(--color4);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.site-header a:hover {
  color: var(--color5);
}

/* inline-flex .address-short blocks inherited underline on some browsers */
.site-header a.address-link .address-short__text {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.logo-container img {
  display: block;
  height: auto;
  max-height: 120px;
  max-width: min(220px, 40vw);
}

.contact-info {
  text-align: right;
  font-size: 0.95em;
}

.contact-info p {
  margin: 0.25rem 0;
}

.phone-label-short {
  display: none;
}

.address-full {
  display: inline;
}

.address-short {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.address-icon {
  flex-shrink: 0;
}

@media (max-width: 570px) {
  .phone-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
  }

  .phone-label {
    font-weight: 400;
  }

  .phone-value {
    font-weight: 700;
  }

  .address-full {
    display: none;
  }

  .address-short {
    display: inline-flex;
  }

  .contact-info .address-city {
    margin-top: 1rem;
  }

  .contact-info .phone-number {
    margin-bottom: 0;
  }
}

/* Section titles — same typeface as "Horaires d'accueil" */
.section-title {
  font-family: 'Friend', system-ui, sans-serif;
  font-size: 1.35em;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-pattern) repeat var(--color3);
  color: var(--color2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Intro row — welcome (salon photo + text) side by side; hours beside (desktop) or below (mobile) */
.intro-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Firefox: grid/flex children default to min-height:auto and ignore row bounds */
.intro-row > * {
  min-height: 0;
  min-width: 0;
}

@media (min-width: 769px) {
  .intro-row {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
  }
}

.welcome-block {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: rgba(137, 22, 82, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
}

@media (min-width: 769px) {
  .welcome-block {
    max-height: 420px;
  }
}

.slideshow-container {
  position: relative;
  flex: 0 0 33%;
  overflow: hidden;
  min-width: 0;
  min-height: clamp(9rem, 32vw, 14rem);
  align-self: stretch;
}

.slideshow-container.lightbox-trigger {
  cursor: zoom-in;
}

/* Salon opener: focus ring on ::after so morph zoom cannot paint over it */
.slideshow-container.lightbox-trigger:focus-visible {
  outline: none;
  box-shadow: none;
}

.slideshow-container.lightbox-trigger:focus-visible::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 0 var(--modal-focus-inset-width) #000;
}

/* Salon hero — infinite morph (blur + scale dissolve), separate from gallery marquee */
.slideshow-container .salon-morph__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
  opacity: 0;
}

.slideshow-container:not(.salon-morph--active) #salonImage {
  opacity: 1;
}

html.lightbox-open .slideshow-container.salon-morph--lightbox-paused .salon-morph__slide {
  animation-play-state: paused !important;
}

.slideshow-container.salon-morph--active .salon-morph__slide {
  will-change: transform;
  animation: salonMorph var(--salon-morph-duration, 21s) ease-in-out infinite;
  /* Offset so slide 0 is visible on load; 3→1 loop stays aligned */
  animation-delay: calc(
    -1 *
      (
        var(--salon-morph-index, 0) * var(--salon-morph-duration, 21s) / 3 +
        0.07 * var(--salon-morph-duration, 21s)
      )
  );
}

@keyframes salonMorph {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.2);
  }
  7% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  28% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  35% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-container .salon-morph__slide {
    animation: none;
    filter: none;
    transform: none;
  }

  .slideshow-container .salon-morph__slide:not(#salonImage) {
    display: none;
  }

  .slideshow-container #salonImage {
    opacity: 1;
  }
}
.welcome-text {
  flex: 1 1 67%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.welcome-text p {
  margin: 0;
  text-align: left;
}

.opening-hours {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.opening-hours h2 {
  font-size: 1.20em;
  margin: 0 0 0.5rem;
}

.opening-hours p {
  margin: 0.5rem 0;
}

.hours-list {
  margin: 0.5rem 0;
}

.hours-list > div {
  margin: 0;
}

.hours-list dt,
.hours-list dd {
  display: inline;
  margin: 0;
}

.hours-list dt::after {
  content: ' : ';
}

/* Services */
.services-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 769px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-row {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  min-height: 140px;
}

.service-image {
  flex: 0 0 28%;
  position: relative;
  min-width: 100px;
  align-self: stretch;
}

.service-image img,
.service-image .media-placeholder__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lazy image placeholders (prestations, forfaits, galerie) */
.media-placeholder {
  background-color: rgba(137, 22, 82, 0.14);
}

.media-placeholder__img {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.media-placeholder.is-loaded {
  background-color: transparent;
}

.media-placeholder.is-loaded .media-placeholder__img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .media-placeholder__img {
    transition: none;
  }
}

.service-info {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15em;
}

.service-info p {
  margin: 0;
}

/* Premium */
.premium-services-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.premium-service {
  position: relative;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
}

.premium-service__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(234, 190, 108, 0.35);
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease;
}

.premium-service__media.is-loaded {
  background-color: transparent;
}

/* Light vignette so edges stay readable; photo visible in the center around the text panel */
.premium-service::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 120% 100% at 50% 50%,
    transparent 35%,
    rgba(36, 10, 52, 0.22) 100%
  );
}

.premium-service-content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 1.5rem;
  padding-inline: clamp(1.5rem, 5vw, 2.5rem);
  margin-inline: clamp(0.75rem, 4vw, 1.75rem);
  --premium-panel-width: min(80%, 39rem);
  background: transparent;
}

/* Frosted panel behind text only — photo shows around it */
.premium-service-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: var(--premium-panel-width);
  height: calc(100% - 1rem);
  transform: translate(-50%, -50%);
  border-radius: var(--radius);
  background: rgba(255, 243, 230, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(36, 10, 52, 0.1),
    0 8px 28px rgba(36, 10, 52, 0.18);
}

.premium-service-content h3,
.premium-service-content p {
  width: var(--premium-panel-width);
  max-width: var(--premium-panel-width);
  min-width: 0;
  box-sizing: border-box;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  margin-inline: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 1px 0 rgba(255, 243, 230, 0.85);
}

.premium-service-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25em;
}

.premium-service-content p {
  margin: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .premium-service-content::before {
    background: rgba(255, 243, 230, 0.9);
  }
}

/* Gallery — after hero, before prestations; 1440px wide, fade outside 1200px */
.gallery-band {
  overflow: visible;
  --gallery-item-height: clamp(120px, 22vw, 200px);
}

.gallery-band--top {
  margin-block: 1.25rem 1rem;
  --gallery-item-height: clamp(100px, 16.5vw, 150px);
}

.gallery-band--top .gallery-strip {
  gap: 0.49rem;
  padding-inline: 0.24rem;
}

.gallery-wide {
  position: relative;
  left: 50%;
  width: min(100vw, var(--gallery-wide-max));
  max-width: var(--gallery-wide-max);
  margin-left: calc(min(100vw, var(--gallery-wide-max)) / -2);
  overflow: hidden;
  padding-block: 0.5rem;
  --gallery-edge-mask: linear-gradient(
    to right,
    transparent 0,
    #000 max(0px, calc((100% - min(100%, var(--page-max))) / 2)),
    #000 min(100%, calc(100% - (100% - min(100%, var(--page-max))) / 2)),
    transparent 100%
  );
  -webkit-mask-image: var(--gallery-edge-mask);
  mask-image: var(--gallery-edge-mask);
}

.gallery-marquee {
  width: 100%;
}

.gallery-marquee:not(.gallery-marquee--ready) .gallery-track {
  animation-play-state: paused;
}

.gallery-marquee.gallery-marquee--ready .gallery-track {
  animation-play-state: running;
}

.gallery-row {
  overflow: hidden;
  width: 100%;
}

.gallery-row--dragging .gallery-track {
  cursor: grabbing;
  user-select: none;
  will-change: transform;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-scroll-left var(--gallery-duration, 210s) linear infinite;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.gallery-strip {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 0.325rem;
}

.gallery-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: var(--gallery-item-height);
  width: auto;
  min-width: 2.5rem;
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(137, 22, 82, 0.12);
  contain: layout style;
}

.gallery-item.is-loaded {
  background-color: transparent;
}

.gallery-band .gallery-item {
  cursor: pointer;
}

.gallery-row:focus-visible {
  border-radius: var(--radius);
}

.gallery-row:focus-visible .gallery-track {
  animation-play-state: paused;
}

.gallery-item .media-placeholder__img {
  display: block;
  height: var(--gallery-item-height);
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 15px;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

@keyframes gallery-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.65rem;
  }

  .gallery-strip[aria-hidden='true'] {
    display: none;
  }

  .gallery-row {
    overflow: visible;
  }
}

/* User toggle: reduce motion (mirrors prefers-reduced-motion) */
html.reduce-motion {
  scroll-behavior: auto;
}

html.reduce-motion .slideshow-container .salon-morph__slide {
  animation: none;
  filter: none;
  transform: none;
}

html.reduce-motion .slideshow-container .salon-morph__slide:not(#salonImage) {
  display: none;
}

html.reduce-motion .slideshow-container #salonImage {
  opacity: 1;
}

html.reduce-motion .media-placeholder__img {
  transition: none;
}

html.reduce-motion .gallery-track {
  animation: none;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  gap: 0.65rem;
}

html.reduce-motion .gallery-strip[aria-hidden='true'] {
  display: none;
}

html.reduce-motion .gallery-row {
  overflow: visible;
}

/* About — same panel look as .service-row */
.about-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
  padding: 1rem 1.25rem;
}

.about-card p {
  margin: 1rem 0;
  text-align: justify;
}

.about-card p:first-child {
  margin-top: 0;
}

.about-card > p:last-of-type {
  margin-bottom: 0;
}

.about-infographic__text h4 {
  margin: 1rem 0 0.35rem;
  font-size: 1em;
}

.about-infographic__text ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
}

.about-infographic {
  margin: 1.25rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: rgba(137, 22, 82, 0.14);
}

.about-infographic.lightbox-trigger {
  cursor: zoom-in;
}

.gallery-lightbox__nav[hidden] {
  display: none !important;
}

.about-infographic .media-placeholder__img {
  display: block;
  width: 100%;
  max-width: 42.625rem;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-pattern) repeat var(--color2);
  color: var(--color4);
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.site-footer section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
}

.site-footer a {
  color: var(--color5);
  text-decoration: underline;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  font-weight: 700;
}

.footer-social {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-legal .footer-motion {
  margin-top: 0.5rem;
}

.footer-credit {
  padding-top: 0.25rem;
  font-size: 0.95em;
}

.footer-legal button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.footer-legal button:hover {
  color: var(--color5);
}

.motion-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.motion-toggle:hover {
  color: var(--color5);
}

.motion-toggle:disabled {
  cursor: default;
  opacity: 0.85;
  text-decoration: none;
}

.copyright {
  margin: 0;
  font-size: 0.9em;
  width: 100%;
  max-width: 36rem;
}

/* Gallery lightbox */
.gallery-lightbox {
  --gallery-lightbox-w: min(96vw, 900px);
  --gallery-lightbox-inset: 1.25rem;
  --gallery-lightbox-btn-size: 2.75rem;
  /* Room for close (top-right) and next/prev (mid-right) without overlap */
  --gallery-lightbox-stage-min-h: calc(
    3.5 * var(--gallery-lightbox-btn-size) + var(--gallery-lightbox-inset)
  );
  --gallery-lightbox-stage-cap: min(
    85vh,
    calc(100dvh - 4 * var(--gallery-lightbox-inset))
  );
  --gallery-lightbox-stage-h: max(
    var(--gallery-lightbox-stage-min-h),
    var(--gallery-lightbox-stage-cap)
  );
  border: none;
  padding: 0;
  width: var(--gallery-lightbox-w);
  max-width: 96vw;
  height: fit-content;
  max-height: calc(100dvh - 2 * var(--gallery-lightbox-inset));
  margin: auto;
  inset: 0;
  background: transparent;
  overflow: visible;
}

.gallery-lightbox::backdrop {
  background: rgba(36, 10, 52, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gallery-lightbox__inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: var(--gallery-lightbox-inset);
  border-radius: var(--radius);
  background: var(--color4);
  box-shadow: var(--shadow);
}

.gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--gallery-lightbox-stage-h);
  min-height: var(--gallery-lightbox-stage-min-h);
  margin: 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-lightbox__stage.is-swiping {
  cursor: grabbing;
}

.gallery-lightbox__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color4);
  isolation: isolate;
}

.gallery-lightbox__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  visibility: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: var(--color4);
}

.gallery-lightbox__slide.is-settled,
.gallery-lightbox__slide.from-right,
.gallery-lightbox__slide.from-left,
.gallery-lightbox__slide.to-left,
.gallery-lightbox__slide.to-right {
  visibility: visible;
}

.gallery-lightbox__slide.is-settled {
  transform: translate3d(0, 0, 0);
  z-index: 1;
}

.gallery-lightbox__slide.from-right {
  transform: translate3d(calc(100% + 2px), 0, 0);
  z-index: 2;
}

.gallery-lightbox__slide.from-left {
  transform: translate3d(calc(-100% - 2px), 0, 0);
  z-index: 2;
}

.gallery-lightbox__slide.to-left {
  transform: translate3d(calc(-100% - 2px), 0, 0);
  z-index: 1;
}

.gallery-lightbox__slide.to-right {
  transform: translate3d(calc(100% + 2px), 0, 0);
  z-index: 1;
}

.gallery-lightbox__slide[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox__slide {
    transition-duration: 0.01ms;
  }
}

html.reduce-motion .gallery-lightbox__slide {
  transition-duration: 0.01ms;
}

.gallery-lightbox__nav,
.gallery-lightbox .gallery-lightbox__close.dialog-close {
  z-index: 2;
  box-sizing: border-box;
  width: var(--gallery-lightbox-btn-size);
  height: var(--gallery-lightbox-btn-size);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color2);
  color: var(--color4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 0;
}

.gallery-lightbox__btn-icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox .gallery-lightbox__close.dialog-close:hover {
  background: var(--color1);
}

.gallery-lightbox__nav:focus-visible,
.gallery-lightbox .gallery-lightbox__close.dialog-close:focus-visible {
  outline: var(--modal-focus-ring);
  outline-offset: 2px;
}

.gallery-lightbox__nav--prev,
.gallery-lightbox__nav--next {
  position: absolute;
  top: calc(var(--gallery-lightbox-inset) + var(--gallery-lightbox-stage-h) / 2);
  transform: translateY(-50%);
}

.gallery-lightbox__nav--prev {
  left: var(--gallery-lightbox-inset);
}

.gallery-lightbox__nav--next {
  right: var(--gallery-lightbox-inset);
}

.gallery-lightbox .gallery-lightbox__close.dialog-close {
  z-index: 3;
  top: var(--gallery-lightbox-inset);
  right: var(--gallery-lightbox-inset);
}

@media (max-width: 500px) {
  .gallery-lightbox {
    --gallery-lightbox-inset: 1rem;
    --gallery-lightbox-btn-size: 2.5rem;
    --gallery-lightbox-stage-cap: min(
      58vh,
      calc(100dvh - 4 * var(--gallery-lightbox-inset))
    );
    --gallery-lightbox-stage-h: max(
      var(--gallery-lightbox-stage-min-h),
      var(--gallery-lightbox-stage-cap)
    );
  }
}

/* Dialog */
dialog:not(.gallery-lightbox) {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(90vw, 720px);
  max-height: 85vh;
  box-shadow: var(--shadow);
}

dialog:not(.gallery-lightbox)::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

/* Modal tab focus — always solid black (dialog shell, in-modal controls, openers) */
dialog:focus-visible,
dialog :focus-visible,
.lightbox-trigger:focus-visible,
.gallery-row:focus-visible {
  outline: var(--modal-focus-ring);
  outline-offset: 2px;
}

dialog:focus-visible {
  outline-offset: 3px;
}

.dialog-inner {
  position: relative;
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  max-height: 85vh;
}

.dialog-inner h2 {
  text-align: center;
  margin-top: 0;
}

.dialog-inner h3 {
  margin-top: 1.5rem;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--color2);
  color: var(--color4);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--color1);
}

.dialog-footer {
  margin: 2rem 0 0;
  text-align: center;
}

.dialog-dismiss {
  border: none;
  background: none;
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--color2);
  text-decoration: underline;
  cursor: pointer;
}

.dialog-dismiss:hover {
  color: var(--color1);
}

/* Cookie / traceurs notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 1rem;
  background: var(--color1);
  color: var(--color4);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-notice[hidden],
html.cookie-notice-dismissed #cookie-notice {
  display: none;
}

.cookie-notice__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-notice p {
  margin: 0;
  flex: 1 1 200px;
  font-size: inherit;
  line-height: 1.35;
}

.cookie-notice__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: min(100%, 18rem);
}

.cookie-notice-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color3);
  color: var(--color1);
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.cookie-notice-btn:hover {
  background: var(--color5);
}

.cookie-notice-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* Narrow viewports (≤500px): scale fonts, images, spacing — 25px steps down to 200px */
@media (max-width: 500px) {
  :root {
    --site-scale: 1;
    --hero-text-scale: 1;
  }
}
@media (max-width: 475px) {
  :root {
    --site-scale: 0.9683;
    --hero-text-scale: 0.965;
  }
}
@media (max-width: 450px) {
  :root {
    --site-scale: 0.9367;
    --hero-text-scale: 0.93;
  }
}
@media (max-width: 425px) {
  :root {
    --site-scale: 0.905;
    --hero-text-scale: 0.895;
  }
}
@media (max-width: 400px) {
  :root {
    --site-scale: 0.8733;
    --hero-text-scale: 0.86;
  }
}
@media (max-width: 375px) {
  :root {
    --site-scale: 0.8417;
    --hero-text-scale: 0.825;
  }
}
@media (max-width: 350px) {
  :root {
    --site-scale: 0.81;
    --hero-text-scale: 0.79;
  }

  .phone-label-long {
    display: none;
  }

  .phone-label-short {
    display: inline;
  }
}
@media (max-width: 325px) {
  :root {
    --site-scale: 0.7783;
    --hero-text-scale: 0.755;
  }
}
@media (max-width: 300px) {
  :root {
    --site-scale: 0.7467;
    --hero-text-scale: 0.72;
  }
}
@media (max-width: 275px) {
  :root {
    --site-scale: 0.715;
    --hero-text-scale: 0.685;
  }
}
@media (max-width: 250px) {
  :root {
    --site-scale: 0.6833;
    --hero-text-scale: 0.65;
  }
}
@media (max-width: 225px) {
  :root {
    --site-scale: 0.6517;
    --hero-text-scale: 0.615;
  }
}
@media (max-width: 200px) {
  :root {
    --site-scale: 0.62;
    --hero-text-scale: 0.58;
  }
}

@media (max-width: 500px) {
  html {
    font-size: calc(100% * var(--site-scale));
  }

  :root {
    --radius: calc(0.75rem * var(--site-scale));
    --focus-ring: calc(3px * var(--site-scale)) solid #fff3e6;
    --modal-focus-ring: calc(3px * var(--site-scale)) solid #000;
    --modal-focus-inset-width: calc(3px * var(--site-scale));
  }

  .site-header {
    gap: calc(1rem * var(--site-scale));
    margin-block-end: calc(1.5rem * var(--site-scale));
    padding: calc(0.75rem * var(--site-scale)) calc(1rem * var(--site-scale));
  }

  .logo-container img {
    max-height: calc(120px * var(--site-scale));
    max-width: min(calc(220px * var(--site-scale)), 40vw);
  }

  .address-icon {
    width: calc(18px * var(--site-scale));
    height: calc(18px * var(--site-scale));
  }

  .section-title {
    margin: calc(2rem * var(--site-scale)) 0 calc(1rem * var(--site-scale));
    padding: calc(0.5rem * var(--site-scale)) calc(1rem * var(--site-scale));
  }

  .intro-row {
    gap: calc(1.25rem * var(--site-scale));
    margin-bottom: calc(1.5rem * var(--site-scale));
  }

  .slideshow-container {
    min-height: clamp(
      calc(9rem * var(--site-scale)),
      32vw,
      calc(14rem * var(--site-scale))
    );
  }

  .welcome-text {
    font-size: calc(1em * var(--hero-text-scale));
    gap: calc(0.75rem * var(--site-scale));
    padding: calc(1rem * var(--site-scale)) calc(1.25rem * var(--site-scale));
  }

  .opening-hours {
    padding: calc(1rem * var(--site-scale));
  }

  .services-list {
    gap: calc(1rem * var(--site-scale));
  }

  .service-row {
    min-height: calc(140px * var(--site-scale));
  }

  .service-image {
    min-width: calc(100px * var(--site-scale));
  }

  .service-info {
    padding: calc(1rem * var(--site-scale));
  }

  .premium-services-list {
    gap: calc(1.25rem * var(--site-scale));
  }

  .premium-service,
  .premium-service-content {
    min-height: calc(200px * var(--site-scale));
  }

  .premium-service-content {
    padding: calc(1.5rem * var(--site-scale));
  }

  .gallery-band {
    --gallery-item-height: clamp(
      calc(120px * var(--site-scale)),
      22vw,
      calc(200px * var(--site-scale))
    );
  }

  .gallery-band--top {
    --gallery-item-height: clamp(
      100px,
      16.5vw,
      calc(150px * var(--site-scale))
    );
  }

  .gallery-band--top {
    margin-block: calc(1.25rem * var(--site-scale)) calc(1rem * var(--site-scale));
  }

  .gallery-wide {
    padding-block: calc(0.5rem * var(--site-scale));
  }

  .gallery-strip {
    gap: calc(0.65rem * var(--site-scale));
    padding-inline: calc(0.325rem * var(--site-scale));
  }

  .gallery-band--top .gallery-strip {
    gap: calc(0.49rem * var(--site-scale));
    padding-inline: calc(0.24rem * var(--site-scale));
  }

  .gallery-item {
    min-width: calc(2.5rem * var(--site-scale));
    border-radius: calc(15px * var(--site-scale));
  }

  .gallery-item .media-placeholder__img {
    border-radius: calc(15px * var(--site-scale));
  }

  .site-footer {
    margin-top: calc(2rem * var(--site-scale));
    padding: calc(1.5rem * var(--site-scale)) calc(1rem * var(--site-scale));
  }

  dialog {
    max-width: min(90vw, calc(720px * var(--site-scale)));
    max-height: calc(85vh * var(--site-scale));
  }

  .dialog-inner {
    padding: calc(1.5rem * var(--site-scale)) calc(2rem * var(--site-scale))
      calc(2rem * var(--site-scale));
    max-height: calc(85vh * var(--site-scale));
  }

  .dialog-close {
    top: calc(0.75rem * var(--site-scale));
    right: calc(0.75rem * var(--site-scale));
    width: calc(2.5rem * var(--site-scale));
    height: calc(2.5rem * var(--site-scale));
    font-size: calc(1.5rem * var(--site-scale));
  }

  .about-card {
    padding: calc(1rem * var(--site-scale)) calc(1.25rem * var(--site-scale));
  }

  .about-card p {
    margin: calc(1rem * var(--site-scale)) 0;
  }

  .cookie-notice__inner {
    gap: calc(1rem * var(--site-scale));
    padding: calc(1rem * var(--site-scale));
  }

  .cookie-notice p {
    flex-basis: calc(280px * var(--site-scale));
  }

  .cookie-notice {
    padding: calc(1rem * var(--site-scale));
  }

  .cookie-notice-btn {
    padding: calc(0.5rem * var(--site-scale)) calc(1.25rem * var(--site-scale));
  }

  .cookie-notice__actions {
    gap: calc(0.65rem * var(--site-scale));
  }

  .skip-link {
    padding: calc(0.75rem * var(--site-scale)) calc(1rem * var(--site-scale));
  }

  .skip-link:focus-visible {
    left: calc(1rem * var(--site-scale));
    top: calc(1rem * var(--site-scale));
  }
}
