:root {
  --color-text: #111;
  --color-page: #f4f6f8;
  --color-surface: #fff;
  --color-muted-surface: #fafafa;
  --color-focus: #b9d8ff;
  --color-soft-hover: #f7f7f7;
  --color-placeholder-text: #555;
  --color-placeholder-border: #777;
  --color-error-bg: #ffecec;
  --color-success-bg: #eefbea;
  --border-main: 2px solid var(--color-text);
  --radius-small: 4px;
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.06);
  --shadow-panel: 0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.12);
}

body.night-mode {
  --color-text: #f5f7fa;
  --color-page: #101418;
  --color-surface: #171d23;
  --color-muted-surface: #202832;
  --color-focus: #78aaff;
  --color-soft-hover: #202832;
  --color-placeholder-text: #c8d0d8;
  --color-placeholder-border: #73808c;
  --color-error-bg: #3a1d22;
  --color-success-bg: #193222;
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.26);
  --shadow-panel: 0 12px 28px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.38);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--color-page);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 180vh;
  position: relative;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-main);
  box-shadow: var(--shadow-panel);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
}

html:not([data-content-ready]) :is(
  #site-title,
  #site-subtitle,
  #phone-button,
  #intro-title,
  #intro-text,
  #biography-box,
  #fees-text,
  #hours-box,
  #address-street,
  #address-city,
  #parking-info,
  #payment-methods,
  #brushing-strip,
  #services-title,
  #service-description,
  .services-grid,
  .services-nav-menu,
  .cabinet-gallery,
  [data-dynamic-service-title],
  [data-medical-source],
  [data-medical-review-date]
) {
  visibility: hidden;
}

header {
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
  border-bottom: var(--border-main);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.home-page {
  background: var(--color-page);
  min-height: 100vh;
  position: static;
}

.sub-page {
  background: var(--color-page);
  min-height: 100vh;
  position: static;
}

.home-page::before,
.home-page::after,
.sub-page::before,
.sub-page::after {
  display: none;
}

.home-header {
  min-height: auto;
  padding: 28px clamp(18px, 5vw, 64px);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
}

.home-header h1 {
  text-transform: uppercase;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.practitioner-photo-frame {
  display: grid;
  place-items: center;
  width: 92px;
  height: 104px;
  overflow: hidden;
  background: var(--color-muted-surface);
  border: var(--border-main);
  border-radius: var(--radius-small);
}

.practitioner-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practitioner-photo-placeholder {
  padding: 6px;
  color: var(--color-placeholder-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.admin-practitioner-photo-frame {
  position: relative;
  flex: 0 0 auto;
}

.admin-practitioner-photo-frame label {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  display: grid;
  padding: 4px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  font-size: 0.68rem;
  text-align: center;
}

.admin-practitioner-photo-frame input {
  display: none;
}

.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: var(--color-surface);
  border-bottom: var(--border-main);
}

.site-nav-link,
.services-nav-toggle,
.services-nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.site-nav-link:hover,
.services-nav-toggle:hover,
.services-nav-menu a:hover {
  color: var(--color-surface);
  background: var(--color-text);
}

.services-nav {
  position: relative;
}

.services-nav-toggle {
  gap: 7px;
}

.services-nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  background: var(--color-surface);
  border: var(--border-main);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.services-nav:hover .services-nav-menu,
.services-nav:focus-within .services-nav-menu,
.services-nav.is-open .services-nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.services-nav-menu a + a {
  border-left: 1px solid var(--color-text);
}

.header-actions {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0;
}

header p {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

main {
  width: 90%;
  max-width: 700px;
  margin: 30px auto;
  border: var(--border-main);
  background: var(--color-surface);
  display: grid;
}

.home-layout {
  width: min(1520px, calc(100% - 40px));
  max-width: none;
  margin: 34px auto 70px;
  border: 0;
  display: grid;
  gap: 28px;
  background: transparent;
}

.subpage-layout {
  width: min(960px, calc(100% - 40px));
  max-width: none;
  margin: 34px auto 70px;
  border: 0;
  display: grid;
  gap: 22px;
  background: transparent;
}

.home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 18px;
}

.brushing-strip {
  margin: 0;
  padding: 14px clamp(12px, 2.5vw, 22px);
  background: var(--color-surface);
  border: var(--border-main);
  box-shadow: var(--shadow-soft);
}

.brushing-strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brushing-strip-heading h2 {
  margin: 0;
}

.brushing-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 300px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.brushing-item,
.brushing-placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: var(--color-placeholder-text);
  background: var(--color-muted-surface);
  border: 2px dashed var(--color-placeholder-border);
  border-radius: var(--radius-small);
  font-weight: 700;
  text-align: center;
}

.brushing-item.has-image {
  align-content: start;
  place-items: stretch;
}

.brushing-item img,
.brushing-item video,
.brushing-item iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  object-fit: cover;
}

.brushing-caption {
  margin: 0;
  padding: 10px;
  color: var(--color-text);
  background: var(--color-surface);
  border-top: 1px solid var(--color-placeholder-border);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-brushing-item {
  gap: 8px;
  padding: 10px;
}

.brushing-youtube-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--color-text);
  background: var(--color-accent-soft);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-small);
}

.admin-brushing-item label {
  display: grid;
  gap: 6px;
}

.home-content {
  display: grid;
  gap: 28px;
}

section {
  margin: 0;
  background: var(--color-surface);
  border-bottom: var(--border-main);
  border-radius: 0;
  min-height: 180px;
}

section:last-child {
  border-bottom: 0;
}

section h2 {
  margin-top: 0;
}

ul {
  padding-left: 20px;
}

input {
  width: min(100%, 280px);
  padding: 12px;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font: inherit;
}

button {
  padding: 12px 16px;
  background: var(--color-text);
  color: var(--color-surface);
  border: var(--border-main);
  border-radius: var(--radius-small);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  margin-right: 6px;
}

.theme-toggle:hover {
  transform: scale(1.08);
}

.copy-phone-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  flex: 0 0 auto;
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-main);
  border-radius: var(--radius-small);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy-phone-button::before,
.copy-phone-button::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  box-sizing: border-box;
}

.copy-phone-button::before {
  transform: translate(-2px, 2px);
  opacity: 0.72;
}

.copy-phone-button::after {
  transform: translate(3px, -3px);
  background: var(--color-surface);
}

.copy-phone-button:hover {
  background: var(--color-surface);
  color: var(--color-text);
  transform: scale(1.05);
}

.copy-phone-button.is-copied {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.copy-phone-button.is-copied::after {
  background: var(--color-accent);
}

.copy-phone-feedback {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  padding: 5px 9px;
  color: #fff;
  background: var(--color-text);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.copy-phone-button.has-feedback .copy-phone-feedback {
  opacity: 1;
  transform: translate(-50%, 0);
}

.home-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--color-surface);
  background: var(--color-text);
  text-decoration: none;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-button:hover {
  background: var(--color-surface);
  color: var(--color-text);
  transform: scale(1.05);
}

.gallery-button {
  display: inline-block;
  padding: 10px 18px;
  color: var(--color-text);
  text-decoration: none;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.gallery-button:hover {
  background: var(--color-text);
  color: var(--color-surface);
}

.phone-button {
  display: inline-block;
  padding: 12px 18px;
  color: var(--color-surface);
  background: var(--color-text);
  text-decoration: none;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.phone-button:hover {
  background: var(--color-surface);
  color: var(--color-text);
  transform: scale(1.03);
}

.gallery {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  background: transparent;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border-main);
}

.intro-image-frame {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.corner-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transform-origin: center;
}

.corner-image[hidden] {
  display: none;
}

.intro-image-frame video {
  background: #000;
}

.image-separator {
  position: absolute;
  top: 491px;
  left: 200px;
  right: 0;
  height: 2px;
  background: var(--color-text);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
  min-height: 360px;
  border: var(--border-main);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.intro-panel:not(.admin-intro-panel) {
  height: 360px;
}

.intro-panel,
.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box,
.services-panel,
.subpage-card,
.admin-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.intro-panel:hover,
.cabinet-box:hover,
.hours-box:hover,
.biography-box:hover,
.fees-box:hover,
.address-box:hover,
.services-panel:hover,
.subpage-card:hover,
.admin-card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-hover);
}

.intro-panel {
  transform: none;
}

.intro-panel:hover {
  transform: none;
  box-shadow: var(--shadow-panel);
}

.corner-image {
  transition: transform 180ms ease;
}

.corner-image:hover {
  transform: scale(1.035);
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(22px, 5vw, 46px);
  border-left: var(--border-main);
  transition: border-left-width 180ms ease;
  position: relative;
  z-index: 1;
}

.intro-panel.is-image-hovered .intro-text {
  border-left-width: 3px;
}

.intro-text h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.intro-smile {
  display: inline-block;
  min-width: 1.4em;
  transition: transform 160ms ease;
}

.intro-panel:hover .intro-smile {
  transform: scale(1.1);
}

.intro-text p {
  margin: 0;
  font-size: 1.1rem;
  max-width: 360px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-grid section {
  border-bottom: var(--border-main);
}

.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box,
.services-panel,
.subpage-card {
  padding: 18px;
  border: var(--border-main);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.cabinet-box h2,
.hours-box h2,
.subpage-card h2 {
  margin: 0 0 12px;
}

.cabinet-box {
  min-height: 220px;
}

.hours-box {
  min-height: auto;
}

.biography-box,
.fees-box,
.address-box,
.services-panel {
  min-height: 180px;
}

.biography-box h2,
.fees-box h2,
.address-box h2 {
  margin: 0 0 12px;
}

.fees-subtitle {
  margin: -6px 0 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.cabinet-gallery {
  display: grid;
  gap: 10px;
}

body:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 {
  grid-template-columns: minmax(260px, 640px);
}

body:not(.admin-visual-page) .cabinet-gallery.gallery-count-2 {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

body:not(.admin-visual-page) .cabinet-gallery.gallery-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 72px;
  border: 2px dashed var(--color-placeholder-border);
  background: var(--color-muted-surface);
  color: var(--color-placeholder-text);
  font-weight: 700;
}

.photo-placeholder.has-image {
  place-items: stretch;
  align-content: start;
  min-height: 230px;
}

.photo-placeholder img {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 340px);
  object-fit: cover;
}

body:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 .photo-placeholder img {
  height: clamp(340px, 44vw, 560px);
}

body:not(.admin-visual-page) .cabinet-gallery.gallery-count-2 .photo-placeholder img {
  height: clamp(300px, 34vw, 460px);
}

body:not(.admin-visual-page) .cabinet-gallery.gallery-count-3 .photo-placeholder img {
  height: clamp(230px, 24vw, 340px);
}

.admin-add-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

body:not(.admin-visual-page) .photo-placeholder.has-image {
  cursor: zoom-in;
}

body:not(.admin-visual-page) .photo-placeholder.has-image img {
  transition: transform 180ms ease, filter 180ms ease;
}

body:not(.admin-visual-page) .photo-placeholder.has-image:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.02);
}

.photo-placeholder span {
  padding: 4px 8px;
  text-align: center;
}

.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(8, 18, 15, 0.86);
  backdrop-filter: blur(12px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-frame {
  display: grid;
  gap: 12px;
  width: min(100%, 1120px);
  margin: 0;
}

.gallery-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 8px;
  background: #07100e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.gallery-lightbox-frame figcaption {
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.gallery-lightbox-close:hover {
  color: #07100e;
  background: #fff;
  border-color: #fff;
}

body.has-gallery-lightbox {
  overflow: hidden;
}

.hours-box p,
.biography-box p,
.address-box p {
  margin: 6px 0;
}

.parking-info {
  color: var(--color-muted);
  font-weight: 700;
}

.fees-content {
  display: grid;
  gap: 7px;
}

.fees-box {
  grid-column: span 2;
}

.fees-content h3 {
  margin: 12px 0 3px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--color-placeholder-border);
  font-size: 1rem;
}

.fees-content h3:first-child {
  margin-top: 0;
}

.fees-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.35;
}

.fees-line::before {
  content: "-";
  position: absolute;
  left: 0;
}

.fees-amount {
  white-space: nowrap;
  text-align: right;
}

.fees-information {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: var(--color-muted-surface);
  border-left: 3px solid var(--color-text);
}

.fees-information h3 {
  margin: 0;
  font-size: 0.95rem;
}

.fees-information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fees-information-grid p,
.fees-information-grid label {
  display: grid;
  align-content: start;
  gap: 3px;
  margin: 0;
  padding: 8px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-placeholder-border);
  font-size: 0.86rem;
}

.fees-information-grid strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.fees-legal-note {
  margin: 0;
  color: var(--color-placeholder-text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-fees-editor {
  display: grid;
  gap: 12px;
}

.admin-fee-section {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: var(--color-muted-surface);
  border: 1px solid var(--color-placeholder-border);
}

.admin-fee-section-heading,
.admin-fee-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.admin-fee-item {
  grid-template-columns: minmax(0, 1fr) minmax(92px, 130px) auto;
}

.admin-fee-items {
  display: grid;
  gap: 8px;
}

.admin-fee-section label,
.admin-fee-item label {
  display: grid;
  gap: 4px;
}

.admin-add-button,
.admin-remove-button {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.admin-add-button {
  width: fit-content;
}

.admin-remove-button {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
}

/* Rouge pour les suppressions avec confirmation */
button.admin-remove-danger,
.admin-remove-danger {
  color: #fff;
  background: #8c2020;
  border: 1px solid #8c2020;
}

button.admin-remove-danger:hover,
.admin-remove-danger:hover {
  background: #b02a2a;
  border-color: #b02a2a;
}

button.admin-remove-danger:focus-visible {
  outline-color: #ffb3b3;
}


.hours-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hours-heading h2 {
  margin: 0;
}

.opening-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #1c562d;
  background: #e5f8e9;
  border: 1px solid #1c562d;
  border-radius: var(--radius-small);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.opening-badge.is-closed {
  color: #8c2020;
  background: #fde8e8;
  border-color: #8c2020;
}

.opening-badge.is-unknown {
  color: var(--color-placeholder-text);
  background: var(--color-muted-surface);
  border-color: var(--color-placeholder-border);
}

.address-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.directions-button,
.copy-address-button {
  display: inline-block;
  padding: 10px 16px;
  color: var(--color-surface);
  background: var(--color-text);
  text-decoration: none;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy-address-button {
  min-width: 148px;
  font-size: 1rem;
}

.directions-button:hover,
.copy-address-button:hover {
  background: var(--color-surface);
  color: var(--color-text);
  transform: scale(1.03);
}

.map-frame {
  margin-top: 14px;
  overflow: hidden;
  border: var(--border-main);
  background: var(--color-muted-surface);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

.map-frame iframe[hidden] {
  display: none;
}

.map-consent {
  display: grid;
  place-items: center;
  min-height: 260px;
  gap: 14px;
  padding: 22px;
  text-align: center;
}

.map-consent[hidden] {
  display: none;
}

.map-consent p {
  max-width: 420px;
  margin: 0;
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.load-map-button,
.decline-map-button {
  padding: 10px 16px;
}

.decline-map-button {
  background: var(--color-surface);
  color: var(--color-text);
}

.services-panel {
  min-height: 745px;
  box-shadow: var(--shadow-panel);
}

.subpage-card {
  min-height: 180px;
  border-bottom: var(--border-main);
}

.subpage-layout .subpage-card:last-child {
  border-bottom: var(--border-main);
}

.subpage-card p {
  margin: 8px 0;
}

.service-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas:
    "top top top"
    "left text right"
    "bottom bottom bottom";
  gap: 16px;
  align-items: start;
}

.service-detail-content > p {
  grid-area: text;
}

.service-image-group {
  display: grid;
  gap: 12px;
}

.service-image-group-top {
  grid-area: top;
}

.service-image-group-left {
  grid-area: left;
}

.service-image-group-right {
  grid-area: right;
}

.service-image-group-bottom {
  grid-area: bottom;
}

.service-detail-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(520px, 72vh);
  object-fit: contain;
  margin-inline: auto;
  border: var(--border-main);
}

.service-block-align-full .service-detail-image,
.service-detail-image.service-block-align-full {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(760px, 82vh);
  object-fit: contain;
  margin-inline: auto;
  background: transparent;
}

.service-detail-content p {
  white-space: pre-line;
}

.service-blocks-content {
  display: grid;
  gap: 16px;
}

.service-blocks-content p {
  margin: 0;
  white-space: pre-line;
}

.service-content-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  position: relative;
}

.service-content-row > .service-block-align-left {
  grid-column: 1 / span 6;
}

.service-content-row > .service-block-align-center {
  grid-column: 1 / -1;
}

.service-content-row > .service-block-align-right {
  grid-column: 7 / span 6;
}

.service-content-row > .service-block-align-wide-left,
.service-content-row > .service-block-align-wide-right {
  grid-column: 1 / -1;
}

.service-content-row > .service-block-align-full {
  grid-column: 1 / -1;
}

.service-content-row.has-side-slots > .service-block-align-left {
  grid-column: 1 / span 4;
}

.service-content-row.has-side-slots > .service-block-align-center {
  grid-column: 5 / span 4;
}

.service-content-row.has-side-slots > .service-block-align-right {
  grid-column: 8 / span 5;
}

.service-content-row.has-side-slots > .service-block-align-wide-left {
  grid-column: 1 / span 7;
}

.service-content-row.has-side-slots > .service-block-align-wide-right {
  grid-column: 6 / span 7;
}

.service-content-row.has-side-slots > .service-block-align-full {
  grid-column: 1 / -1;
}

.service-align-center {
  text-align: center;
}

.service-align-right {
  text-align: right;
}

.services-panel h2 {
  margin: 0 0 14px;
}

.services-grid {
  display: grid;
  gap: 12px;
}

.service-card {
  display: grid;
  align-items: center;
  min-height: 86px;
  color: var(--color-text);
  text-decoration: none;
  border: var(--border-main);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.service-card:hover {
  background: var(--color-soft-hover);
  box-shadow: 4px 4px 0 var(--color-text);
  transform: translate(-2px, -2px) scale(1.02);
}

.service-card span {
  padding: 16px;
  font-weight: 700;
  line-height: 1.2;
}

footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(300px, 1fr);
  gap: 14px 72px;
  width: 100%;
  padding: 24px max(24px, calc((100% - 1160px) / 2));
  color: #fff;
  background: #171d23;
  border-top: 0;
  text-align: left;
}

footer p {
  margin: 0;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ordinal-links {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-link,
.ordinal-links a {
  width: fit-content;
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

.medical-info-note,
.confidentiality-warning {
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--color-muted-surface);
  border-left: 3px solid var(--color-text);
  color: var(--color-placeholder-text);
  font-size: 0.9rem;
}

.footer-link {
  font-size: 0.9rem;
}

.admin-footer-link {
  color: #c5cbd1;
  font-size: 0.78rem;
}

.footer-link:hover,
.ordinal-links a:hover {
  text-decoration: underline;
}

.footer-credit {
  grid-column: 1 / -1;
  padding-top: 12px;
  color: #e3e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  text-align: center;
}

.admin-page {
  background: var(--color-page);
  min-height: 100vh;
  position: static;
}

.admin-page::before,
.admin-page::after {
  display: none;
}

.admin-visual-page {
  padding-top: 58px;
}

.admin-visual-page form {
  margin: 0;
}

.admin-launch-checklist {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(280px, 2fr);
  gap: 16px;
  align-items: start;
  margin: 18px clamp(14px, 4vw, 40px);
  padding: 16px;
  color: var(--color-text);
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
}

.admin-launch-checklist h2,
.admin-launch-checklist p {
  margin: 0;
}

.admin-launch-checklist p {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.admin-launch-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-launch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-launch-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--color-text);
  background: var(--color-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-launch-links a:hover,
.admin-launch-links a:focus-visible {
  border-color: var(--color-accent);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.admin-launch-links a.is-missing {
  border-color: rgba(220, 38, 38, 0.55);
}

.admin-launch-links a.is-ready {
  opacity: 0.72;
}

.admin-launch-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: #9ca3af;
  border-radius: 999px;
}

.admin-launch-dot.is-missing {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.admin-launch-status {
  margin-left: auto;
  padding: 2px 6px;
  color: #fff;
  background: #6b7280;
  border-radius: var(--radius-small);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-launch-links a.is-missing .admin-launch-status {
  background: #dc2626;
}

#admin-site-header,
#admin-home-intro,
#admin-gallery-section,
#admin-hours-section,
#admin-biography-section,
#admin-fees-section,
#admin-address-section,
#admin-services-section,
#admin-legal-settings,
#admin-login-settings {
  scroll-margin-top: 86px;
}

.admin-toolbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px clamp(14px, 4vw, 40px);
  color: #fff;
  background: #111820;
  border-bottom: 2px solid #000;
}

.admin-save-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(520px, 42vw);
  padding: 6px 10px;
  color: #0f3d1d;
  background: #dff8e6;
  border: 1px solid #74d28a;
  border-radius: 999px;
  font-weight: 700;
}

.admin-save-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: #16833a;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
}

.admin-save-status small {
  overflow: hidden;
  color: #285f36;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-save-error {
  color: #ffd2d2;
  font-weight: 700;
}

.admin-autosave-status {
  display: inline-flex;
  align-items: center;
  max-width: min(360px, 32vw);
  padding: 5px 9px;
  overflow: hidden;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-autosave-status[data-autosave-state="success"] {
  color: #dff8e6;
  border-color: rgba(116, 210, 138, 0.7);
}

.admin-autosave-status[data-autosave-state="error"] {
  color: #ffd2d2;
  border-color: rgba(255, 210, 210, 0.75);
}

.admin-unsaved-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 14, 18, 0.62);
}

.admin-unsaved-modal[hidden] {
  display: none;
}

.admin-unsaved-dialog {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 22px;
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-main);
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
}

.admin-unsaved-dialog h2,
.admin-unsaved-dialog p {
  margin: 0;
}

.admin-unsaved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-unsaved-actions button {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-weight: 800;
}

.admin-unsaved-actions [data-unsaved-save] {
  color: #fff;
  background: #147a3a;
  border-color: #147a3a;
}

.admin-unsaved-actions [data-unsaved-discard] {
  color: #fff;
  background: #9f2d2d;
  border-color: #9f2d2d;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.admin-toolbar a,
.admin-toolbar button {
  padding: 8px 12px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: var(--radius-small);
  font-weight: 700;
  text-decoration: none;
}

.admin-toolbar button {
  color: #111;
  background: #fff;
}

.admin-toolbar button.admin-save-needed {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.admin-edit-stack,
.admin-inline-field,
.admin-photo-field,
.admin-service-field,
.admin-settings-grid {
  display: grid;
  gap: 6px;
}

.admin-visual-page label,
.admin-image-field span {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-visual-page input,
.admin-visual-page textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-placeholder-border);
  border-radius: var(--radius-small);
  font: inherit;
  resize: vertical;
}

.admin-visual-page .home-header input {
  width: min(100%, 360px);
}

.admin-inline-field {
  min-width: min(280px, 100%);
}

.admin-edit-page-link {
  display: inline-block;
  width: fit-content;
  padding: 8px 10px;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-small);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-edit-page-link:hover {
  background: var(--color-soft-hover);
}

.admin-service-page {
  padding-top: 58px;
}

.admin-service-page form {
  margin: 0;
}

.admin-service-editor-layout {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  width: min(1240px, calc(100% - 40px));
}

.admin-service-controls {
  display: grid;
  gap: 12px;
  min-height: auto;
  padding: 16px;
  border: var(--border-main);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.admin-service-controls h2 {
  margin: 0;
}

.admin-service-controls label {
  display: grid;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-service-controls input,
.admin-service-controls textarea,
.admin-service-controls select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-placeholder-border);
  border-radius: var(--radius-small);
  font: inherit;
}

.admin-service-checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-service-checkbox input {
  width: auto;
}

.admin-toggle-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--color-text);
  font-weight: 700;
}

.admin-toggle-field input {
  width: auto;
  min-width: 18px;
  min-height: 18px;
}

.admin-direct-edit {
  border-radius: var(--radius-small);
  outline: 2px dashed transparent;
  outline-offset: 4px;
  transition: background 160ms ease, outline-color 160ms ease;
}

.admin-direct-edit:hover {
  background: var(--color-muted-surface);
  outline-color: var(--color-placeholder-border);
}

.admin-direct-edit:focus {
  background: var(--color-muted-surface);
  outline-color: var(--color-focus);
}

.admin-service-blocks-editor {
  display: grid;
  gap: 8px;
}

.admin-service-blocks-editor h3 {
  margin: 0;
}

.admin-service-block-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--color-placeholder-border);
  border-radius: var(--radius-small);
  background: var(--color-muted-surface);
}

.admin-service-block-actions,
.admin-service-block-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-visual-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-visual-help {
  color: var(--color-placeholder-text);
  font-size: 0.86rem;
}

.admin-template-layouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.admin-extra-image-button {
  margin-bottom: 10px;
}

.admin-template-layouts button {
  padding: 8px 10px;
  color: var(--color-text);
  background: var(--color-muted-surface);
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-template-layouts button.is-active {
  color: var(--color-text);
  background: var(--color-soft-hover);
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-text);
}

.admin-template-row {
  margin-bottom: 4px;
}

.admin-template-cell {
  min-width: 0;
}

.admin-template-block {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--color-placeholder-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.admin-template-label {
  color: var(--color-placeholder-text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-template-block p {
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--color-placeholder-border);
  border-radius: 8px;
  background: var(--color-muted-surface);
}

.admin-template-block [contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: var(--color-placeholder-text);
}

.admin-template-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--color-placeholder-text);
  border: 1px dashed var(--color-placeholder-border);
  border-radius: 8px;
  background: var(--color-muted-surface);
}

.admin-template-block button {
  width: fit-content;
  padding: 7px 10px;
  color: var(--color-text);
  background: var(--color-muted-surface);
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-visual-block {
  position: relative;
}

.admin-visual-image-block {
  transition: opacity 140ms ease, outline-color 140ms ease, transform 140ms ease;
}

.admin-visual-text-block {
  transition: opacity 140ms ease, outline-color 140ms ease, transform 140ms ease;
}

.admin-visual-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.admin-visual-block-actions button,
.admin-visual-remove-text {
  padding: 5px 7px;
  color: #fff;
  background: #111820;
  border: 1px solid #fff;
  border-radius: var(--radius-small);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-visual-remove-text {
  margin-bottom: 16px;
  opacity: 1;
  transition: opacity 140ms ease;
}

.admin-visual-text-block:hover .admin-visual-remove-text,
.admin-visual-text-block:focus-within .admin-visual-remove-text {
  opacity: 1;
}

.admin-service-image-thumbnail {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border: 1px solid var(--color-placeholder-border);
}

.admin-hours-editor {
  display: grid;
  gap: 8px;
}

.admin-hours-day {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--color-placeholder-border);
}

.admin-hours-day legend {
  padding: 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-hours-day label {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.admin-hours-day input {
  padding: 6px;
}

.admin-intro-panel .intro-image-frame {
  position: relative;
}

.admin-image-field {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 5px;
  padding: 8px;
  background: var(--color-surface);
  border: var(--border-main);
}

.admin-photo-field {
  align-content: center;
  padding: 8px;
}

.admin-service-field {
  align-content: center;
  padding: 12px;
}

.admin-service-field span {
  padding: 0;
  font-size: 0.82rem;
}

[data-add-service-item] {
  margin-top: 4px;
}

.admin-settings-panel {
  min-height: auto;
  padding: 18px;
  border: var(--border-main);
  box-shadow: var(--shadow-soft);
}

.admin-settings-panel h2 {
  margin: 0 0 12px;
}

.admin-settings-grid {
  grid-template-columns: minmax(120px, 180px) minmax(0, 360px);
  align-items: center;
  max-width: 620px;
}

.admin-settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-placeholder-border);
}

.admin-settings-actions p {
  max-width: 520px;
  margin: 0;
  color: var(--color-placeholder-text);
  font-size: 0.9rem;
}

.admin-password-rules {
  grid-column: 2;
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.admin-password-rules ul {
  margin: 6px 0;
  padding-left: 18px;
}

.admin-password-rules p {
  margin: 6px 0 0;
}

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

.admin-layout {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  margin: 48px auto;
  border: 0;
  background: transparent;
}

.admin-card {
  padding: clamp(20px, 4vw, 34px);
  border: var(--border-main);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

.admin-card h1 {
  margin: 0 0 18px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form label {
  font-weight: 700;
}

.admin-hint {
  margin: -4px 0 2px;
  color: var(--color-placeholder-text);
  font-size: 0.9rem;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 12px;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font: inherit;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
button:focus-visible,
.gallery-button:focus-visible,
.copy-phone-button:focus-visible,
.phone-button:focus-visible,
.directions-button:focus-visible,
.copy-address-button:focus-visible,
.decline-map-button:focus-visible,
.home-button:focus-visible,
.site-nav-link:focus-visible,
.services-nav-toggle:focus-visible,
.services-nav-menu a:focus-visible,
.service-card:focus-visible,
.footer-link:focus-visible,
.admin-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.admin-form button {
  width: fit-content;
  margin-top: 8px;
}

.admin-home-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 14px;
  color: var(--color-text);
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-weight: 700;
  text-decoration: none;
}

.admin-home-link:hover {
  background: var(--color-muted-surface);
}

.admin-home-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-link {
  color: var(--color-text);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-error,
.admin-success {
  padding: 10px 12px;
  border: var(--border-main);
  border-radius: var(--radius-small);
  font-weight: 700;
}

.admin-error {
  background: var(--color-error-bg);
}

.admin-success {
  background: var(--color-success-bg);
}

@media (max-width: 950px) and (min-width: 601px) {
  .admin-launch-checklist {
    grid-template-columns: 1fr;
  }

  .admin-service-editor-layout {
    grid-template-columns: 1fr;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .fees-box {
    grid-column: auto;
  }

  .intro-panel:not(.admin-intro-panel) {
    height: auto;
  }

  .intro-image-frame {
    height: 320px;
  }

  .intro-text {
    border-left: 0;
    border-top: var(--border-main);
  }

  .corner-image {
    max-height: 420px;
  }

  .services-panel {
    min-height: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .brushing-strip-track {
    grid-auto-columns: minmax(180px, 78vw);
  }

  .brushing-item img,
  .brushing-item video,
  .brushing-item iframe {
    height: 150px;
  }

  .admin-launch-checklist {
    grid-template-columns: 1fr;
    margin-inline: 12px;
  }

  .admin-launch-count {
    width: 100%;
  }

  .admin-launch-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-service-editor-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "left"
      "text"
      "right"
      "bottom";
  }

  .service-content-row > .service-block-align-left,
  .service-content-row > .service-block-align-right,
  .service-content-row.has-side-slots > .service-block-align-left,
  .service-content-row.has-side-slots > .service-block-align-center,
  .service-content-row.has-side-slots > .service-block-align-wide-left,
  .service-content-row.has-side-slots > .service-block-align-wide-right,
  .service-content-row.has-side-slots > .service-block-align-full,
  .service-content-row.has-side-slots > .service-block-align-right {
    grid-column: 1 / -1;
  }

  .fees-box {
    grid-column: auto;
  }

  .fees-information-grid {
    grid-template-columns: 1fr;
  }

  .admin-fee-section-heading,
  .admin-fee-item {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 18px;
  }

  .footer-credit {
    grid-column: 1;
  }

  .admin-toolbar {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .admin-toolbar-actions {
    gap: 6px;
  }

  .admin-toolbar a,
  .admin-toolbar button {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0 10px;
    overflow: visible;
  }

  .site-nav-link,
  .services-nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .services-nav {
    width: 100%;
    position: relative;
  }

  .services-nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: none;
    max-height: 320px;
    overflow-y: auto;
    background: var(--color-surface);
    border: var(--border-main);
    border-radius: 14px;
    box-shadow: var(--shadow-panel);
    margin-top: 8px;
  }

  .services-nav.is-open .services-nav-menu {
    display: flex;
  }

  .services-nav-menu a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 0;
  }

  .services-nav-menu a + a {
    border-top: 1px solid var(--color-text);
    border-left: 0;
  }

  .home-header {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px;
  }

  .header-identity {
    align-items: flex-start;
  }


  .header-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .header-controls {
    align-items: stretch;
    justify-content: flex-start;
  }

  .gallery-button,
  .phone-button {
    width: 100%;
  }

  .theme-toggle,
  .home-button {
    width: 100%;
  }

  .home-layout {
    width: calc(100% - 28px);
    margin: 22px auto 48px;
    gap: 20px;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel:not(.admin-intro-panel) {
    height: auto;
  }

  .intro-image-frame {
    height: 240px;
  }

  .corner-image {
    min-height: 0;
    max-height: none;
  }

  .intro-text {
    border-left: 0;
    border-top: var(--border-main);
    padding: 22px;
  }

  .services-panel {
    min-height: auto;
    padding: 14px;
  }

  footer {
    font-size: 0.95rem;
    min-height: 80px;
  }
}

/* Nouvelle direction artistique : douce, claire, médicale */
:root {
  --color-text: #17323a;
  --color-muted: #60747b;
  --color-page: #eef6f8;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  --color-muted-surface: #f4fafb;
  --color-border: #d8e8ec;
  --color-accent: #1f9aaa;
  --color-accent-strong: #117d8c;
  --color-accent-soft: #dff6f8;
  --color-focus: #8ddde8;
  --color-soft-hover: #edf9fb;
  --color-placeholder-text: #71878e;
  --color-placeholder-border: #b8d3d9;
  --color-error-bg: #fff0f0;
  --color-success-bg: #eaf8ef;
  --border-main: 1px solid var(--color-border);
  --radius-small: 12px;
  --radius-card: 18px;
  --shadow-soft: 0 14px 34px rgba(24, 74, 88, 0.08);
  --shadow-panel: 0 20px 48px rgba(24, 74, 88, 0.12);
  --shadow-hover: 0 24px 58px rgba(24, 74, 88, 0.16);
}

body.night-mode {
  --color-text: #e9f6f7;
  --color-muted: #a8c1c8;
  --color-page: #0d171b;
  --color-surface: #142126;
  --color-card: #17262c;
  --color-muted-surface: #1e3037;
  --color-border: #29464f;
  --color-accent: #69d5df;
  --color-accent-strong: #8fe8ef;
  --color-accent-soft: #14353b;
  --color-focus: #8ee8f3;
  --color-soft-hover: #20343c;
  --color-placeholder-text: #b4cbd1;
  --color-placeholder-border: #4b6b74;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
  --shadow-panel: 0 20px 48px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 24px 58px rgba(0, 0, 0, 0.34);
}

body {
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 154, 170, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--color-page), #f8fbfc 48rem);
}

body.night-mode {
  background:
    radial-gradient(circle at top left, rgba(105, 213, 223, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--color-page), #091115 48rem);
}

.home-header {
  margin: 18px auto 0;
  width: min(1520px, calc(100% - 40px));
  padding: 22px clamp(18px, 4vw, 46px);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border: var(--border-main);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.home-header h1 {
  color: var(--color-text);
  font-weight: 850;
  letter-spacing: 0;
}

.home-header p,
header p {
  color: var(--color-muted);
}

.practitioner-photo-frame {
  width: 98px;
  height: 98px;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-muted-surface));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.site-nav {
  position: sticky;
  top: 0;
  margin: 16px auto 0;
  width: min(1520px, calc(100% - 40px));
  padding: 8px;
  gap: 6px;
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  border: var(--border-main);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.site-nav-link,
.services-nav-toggle,
.services-nav-menu a {
  min-height: 40px;
  padding: 9px 16px;
  color: var(--color-text);
  background: transparent;
  border-radius: 999px;
}

.site-nav-link:hover,
.services-nav-toggle:hover,
.services-nav-menu a:hover {
  color: #fff;
  background: var(--color-accent);
}

.services-nav-menu {
  gap: 4px;
  padding: 8px;
  background: var(--color-surface);
  border: var(--border-main);
  border-radius: 18px;
  box-shadow: var(--shadow-panel);
}

.services-nav-menu a + a {
  border-left: 0;
}

.home-layout,
.subpage-layout {
  margin-top: 24px;
}

.info-grid,
.address-box,
.fees-box,
.services-panel,
.subpage-card,
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

section,
.intro-panel,
.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box,
.services-panel,
.subpage-card,
.admin-settings-panel,
.brushing-strip {
  background: color-mix(in srgb, var(--color-card) 94%, transparent);
  border: var(--border-main);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

section {
  border-bottom: 0;
}

.intro-panel {
  min-height: 420px;
}

.intro-text {
  border-left: var(--border-main);
  background: linear-gradient(180deg, var(--color-surface), var(--color-muted-surface));
}

.intro-text h2,
.cabinet-box h2,
.hours-box h2,
.biography-box h2,
.fees-box h2,
.address-box h2,
.services-panel h2,
.subpage-card h2,
.brushing-strip-heading h2,
.admin-settings-panel h2 {
  color: var(--color-text);
  font-weight: 820;
}

.theme-toggle,
.home-button,
.copy-phone-button,
.phone-button,
.directions-button,
.copy-address-button,
button,
.admin-add-button,
.admin-edit-page-link {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: none;
}

.theme-toggle,
.home-button,
.copy-phone-button,
.phone-button,
.directions-button,
.copy-address-button {
  color: var(--color-text);
  background: var(--color-surface);
}

button,
.admin-add-button {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

button:hover,
.admin-add-button:hover,
.copy-phone-button:hover,
.phone-button:hover,
.home-button:hover,
.directions-button:hover,
.copy-address-button:hover {
  color: #fff;
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  transform: translateY(-1px);
}

input,
textarea,
select,
.admin-visual-page input,
.admin-visual-page textarea,
.admin-service-controls input,
.admin-service-controls textarea,
.admin-service-controls select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  box-shadow: inset 0 1px 2px rgba(24, 74, 88, 0.04);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  outline: 3px solid color-mix(in srgb, var(--color-focus) 55%, transparent);
}

.brushing-strip-track,
.cabinet-gallery,
.services-grid {
  scrollbar-color: var(--color-accent) transparent;
}

.brushing-item,
.brushing-placeholder,
.photo-placeholder,
.admin-template-image-placeholder {
  background: var(--color-muted-surface);
  border: 1px dashed var(--color-placeholder-border);
  border-radius: 16px;
}

.brushing-caption {
  background: var(--color-muted-surface);
  border-top: 1px solid var(--color-border);
}

.photo-placeholder img,
.brushing-item img,
.brushing-item video,
.brushing-item iframe,
.service-detail-image,
.corner-image {
  border-radius: 14px;
}

.service-card {
  border: var(--border-main);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--color-surface), var(--color-muted-surface));
  box-shadow: none;
}

.service-card:hover {
  background: var(--color-accent-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.opening-badge {
  color: #0f6a34;
  background: #e8f8ed;
  border: 1px solid #b8e5c5;
  border-radius: 999px;
}

body.night-mode .opening-badge {
  color: #baf3c9;
  background: #173824;
  border-color: #285b38;
}

footer {
  margin-top: 54px;
  background: #17323a;
  border-top: 0;
}

body.night-mode footer {
  background: #091115;
}

.footer-link,
.ordinal-links a {
  border-radius: 999px;
}

.admin-toolbar {
  background: color-mix(in srgb, #17323a 92%, black);
  border-bottom: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-toolbar a,
.admin-toolbar button {
  border-radius: 999px;
}

.admin-launch-checklist {
  border-radius: var(--radius-card);
  border: var(--border-main);
}

@media (max-width: 600px) {
  .home-header,
  .site-nav,
  .home-layout,
  .subpage-layout {
    width: min(100% - 24px, 1520px);
  }

  .site-nav {
    border-radius: 18px;
  }

  .intro-text {
    border-left: 0;
    border-top: var(--border-main);
  }
}

/* Finition visuelle : surfaces plus souples, sans perdre les reperes. */
section,
.intro-panel,
.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box,
.services-panel,
.subpage-card,
.admin-settings-panel,
.brushing-strip {
  border-color: color-mix(in srgb, var(--color-border) 62%, transparent);
  box-shadow: 0 12px 28px rgba(24, 74, 88, 0.045);
}

.home-main-grid,
.info-grid,
.admin-settings-grid,
.admin-fees-editor,
.fees-information,
#admin-services-section,
.services-panel,
.cabinet-gallery,
.brushing-strip-track {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-card) 86%, transparent), color-mix(in srgb, var(--color-muted-surface) 66%, transparent));
}

.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box,
.services-panel,
.admin-settings-panel {
  background: color-mix(in srgb, var(--color-card) 88%, transparent);
}

.photo-placeholder,
.brushing-item,
.admin-fee-section,
.admin-hours-day,
.fees-information-grid p,
.fees-information-grid label {
  border-color: color-mix(in srgb, var(--color-border) 58%, transparent);
  box-shadow: none;
}

.services-panel .services-grid,
#services-editor {
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.services-panel .service-card,
#services-editor .admin-service-field {
  min-height: 70px;
  margin: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--color-border) 62%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  box-shadow: none;
}

.services-panel .service-card + .service-card,
#services-editor .admin-service-field + .admin-service-field {
  border-top: 1px solid color-mix(in srgb, var(--color-border) 62%, transparent);
}

.services-panel .service-card:hover,
#services-editor .admin-service-field:hover {
  background: color-mix(in srgb, var(--color-accent-soft) 42%, var(--color-surface));
  box-shadow: inset 3px 0 0 var(--color-accent);
  transform: none;
}

.services-panel .service-card span {
  padding: 0 2px;
}

#services-editor .admin-service-field {
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
}

#services-editor .admin-service-field input {
  min-height: 42px;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--color-border) 76%, transparent);
}

#services-editor .admin-service-field:focus-within {
  background: color-mix(in srgb, var(--color-accent-soft) 58%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-accent) 42%, var(--color-border));
  box-shadow: inset 4px 0 0 var(--color-accent);
}

#services-editor .admin-service-field .admin-hint {
  grid-column: 2 / -1;
  margin: 0;
}

#services-editor .admin-service-field .admin-edit-page-link,
#services-editor .admin-service-field .admin-order-actions,
#services-editor .admin-service-field .admin-remove-button {
  justify-self: start;
}

#services-editor .admin-service-field .admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2 / -1;
}

#services-editor .admin-service-field .admin-order-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  color: var(--color-text);
  cursor: pointer;
}

#services-editor .admin-service-field .admin-order-button:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--color-accent) 48%, var(--color-border));
  background: color-mix(in srgb, var(--color-accent-soft) 50%, var(--color-surface));
}

#services-editor .admin-service-field .admin-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#services-editor .admin-service-field .admin-remove-button {
  min-height: 42px;
  padding-inline: 18px;
}

[data-add-service-item] {
  margin-top: 12px;
  margin-left: 0;
}

/* Direction sans cartes : page plus ouverte, separations plus naturelles. */
body {
  background:
    linear-gradient(90deg, #e9f5f7 0, #f8fcfc 9%, #f8fcfc 91%, #e9f5f7 100%);
}

.home-header,
.site-nav,
.brushing-strip,
.intro-panel,
.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box,
.services-panel,
.subpage-card,
.admin-settings-panel,
.admin-launch-checklist {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.home-header {
  margin-top: 0;
  padding-block: 26px;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
}

.site-nav {
  position: sticky;
  margin-top: 0;
  padding-block: 10px;
  background: color-mix(in srgb, var(--color-page) 84%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
}

.home-layout,
.subpage-layout {
  margin-top: 0;
}

.brushing-strip {
  padding-block: 18px;
  background: color-mix(in srgb, var(--color-surface) 34%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
}

.brushing-strip-track {
  background: transparent;
}

.home-main-grid {
  align-items: start;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 74%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 58%, transparent);
}

.intro-panel {
  background: color-mix(in srgb, var(--color-surface) 38%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 74%, transparent);
}

.intro-text {
  background: transparent;
  border-left: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
}

.info-grid {
  gap: 0;
  background: transparent;
}

.info-grid section,
.cabinet-box,
.hours-box,
.biography-box,
.fees-box,
.address-box {
  padding: clamp(18px, 2.4vw, 28px);
  background: color-mix(in srgb, var(--color-surface) 32%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
}

.info-grid section:nth-child(odd) {
  border-right: 1px solid color-mix(in srgb, var(--color-border) 66%, transparent);
}

.services-panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: color-mix(in srgb, var(--color-surface) 42%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
}

.services-panel .services-grid {
  gap: 0;
}

.services-panel .service-card {
  min-height: auto;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.services-panel .service-card:first-child {
  border-top: 0;
}

.services-panel .service-card:hover {
  color: var(--color-accent-strong);
  background: transparent;
  box-shadow: none;
}

.services-panel .service-card span {
  padding: 0;
}

.photo-placeholder,
.brushing-item,
.brushing-placeholder {
  border-radius: 10px;
  box-shadow: none;
}

.photo-placeholder {
  background: color-mix(in srgb, var(--color-muted-surface) 72%, transparent);
}

.subpage-card {
  background: color-mix(in srgb, var(--color-surface) 34%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
}

@media (max-width: 900px) {
  .intro-text,
  .services-panel,
  .info-grid section:nth-child(odd) {
    border-left: 0;
    border-right: 0;
  }
}

/* Style public actuel du site. */
body.home-page:not(.admin-visual-page),
body.sub-page:not(.admin-service-page) {
  --color-text: #13201d;
  --color-page: #f7f6f0;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  --color-muted: #64706a;
  --color-muted-surface: #eef4f1;
  --color-border: #d9e2dd;
  --color-accent: #0f6f57;
  --color-accent-strong: #09493f;
  --color-accent-soft: #dfeee8;
  --color-focus: #b9e2d4;
  --border-main: 1px solid var(--color-border);
  --radius-small: 8px;
  --radius-card: 8px;
  --shadow-soft: 0 14px 36px rgba(19, 32, 29, 0.08);
  --shadow-panel: 0 24px 70px rgba(19, 32, 29, 0.14);
  --shadow-hover: 0 24px 70px rgba(19, 32, 29, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(120, 216, 184, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfaf5 0%, #f7f6f0 48%, #eef4f1 100%);
  color: var(--color-text);
}

body.night-mode.home-page:not(.admin-visual-page),
body.night-mode.sub-page:not(.admin-service-page) {
  --color-text: #eef6f2;
  --color-page: #0d1614;
  --color-surface: #13201d;
  --color-card: #162722;
  --color-muted: #a9bbb4;
  --color-muted-surface: #1c312b;
  --color-border: #29443b;
  --color-accent: #78d8b8;
  --color-accent-strong: #9be8ce;
  --color-accent-soft: #193a31;
  background:
    radial-gradient(circle at 0 0, rgba(120, 216, 184, 0.09), transparent 34rem),
    linear-gradient(180deg, #101b18 0%, #0d1614 58%, #09110f 100%);
}

body.home-page:not(.admin-visual-page) .home-header,
body.sub-page:not(.admin-service-page) .home-header {
  position: relative;
  z-index: 20;
  top: auto;
  width: min(100% - 32px, 1520px);
  margin: 22px auto 18px;
  padding: 14px clamp(16px, 3vw, 30px);
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(19, 32, 29, 0.08);
  backdrop-filter: blur(16px);
}

body.home-page:not(.admin-visual-page) .home-header h1,
body.sub-page:not(.admin-service-page) .home-header h1 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
  text-transform: none;
}

body.home-page:not(.admin-visual-page) .home-header p,
body.sub-page:not(.admin-service-page) .home-header p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

body.home-page:not(.admin-visual-page) .practitioner-photo-frame,
body.sub-page:not(.admin-service-page) .practitioner-photo-frame {
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-muted-surface);
}

body.home-page:not(.admin-visual-page) .phone-button,
body.sub-page:not(.admin-service-page) .phone-button,
body.home-page:not(.admin-visual-page) .copy-phone-button,
body.sub-page:not(.admin-service-page) .copy-phone-button,
body.home-page:not(.admin-visual-page) .theme-toggle,
body.sub-page:not(.admin-service-page) .theme-toggle,
body.home-page:not(.admin-visual-page) .home-button,
body.sub-page:not(.admin-service-page) .home-button {
  min-height: 44px;
  color: #fff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
}

body.home-page:not(.admin-visual-page) .theme-toggle,
body.sub-page:not(.admin-service-page) .theme-toggle,
body.home-page:not(.admin-visual-page) .copy-phone-button,
body.sub-page:not(.admin-service-page) .copy-phone-button {
  width: 44px;
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

body.home-page:not(.admin-visual-page) .phone-button:hover,
body.sub-page:not(.admin-service-page) .phone-button:hover,
body.home-page:not(.admin-visual-page) .copy-phone-button:hover,
body.sub-page:not(.admin-service-page) .copy-phone-button:hover,
body.home-page:not(.admin-visual-page) .home-button:hover,
body.sub-page:not(.admin-service-page) .home-button:hover {
  color: #fff;
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  transform: translateY(-1px);
}

body.home-page:not(.admin-visual-page) .site-nav,
body.sub-page:not(.admin-service-page) .site-nav {
  position: relative;
  z-index: 12;
  top: auto;
  width: min(100% - 52px, 980px);
  margin: 0 auto 34px;
  padding: 8px;
  gap: 6px;
  background: color-mix(in srgb, var(--color-surface) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(19, 32, 29, 0.06);
  backdrop-filter: blur(14px);
}

body.home-page:not(.admin-visual-page) .site-nav-link,
body.sub-page:not(.admin-service-page) .site-nav-link,
body.home-page:not(.admin-visual-page) .services-nav-toggle,
body.sub-page:not(.admin-service-page) .services-nav-toggle {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 999px;
}

body.home-page:not(.admin-visual-page) .site-nav-link:hover,
body.sub-page:not(.admin-service-page) .site-nav-link:hover,
body.home-page:not(.admin-visual-page) .services-nav-toggle:hover,
body.sub-page:not(.admin-service-page) .services-nav-toggle:hover {
  color: #fff;
  background: var(--color-accent);
}

body.home-page:not(.admin-visual-page) .services-nav-menu,
body.sub-page:not(.admin-service-page) .services-nav-menu {
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

body.home-page:not(.admin-visual-page) .services-nav-menu a,
body.sub-page:not(.admin-service-page) .services-nav-menu a {
  border-radius: 6px;
}

body.home-page:not(.admin-visual-page) .home-layout,
body.sub-page:not(.admin-service-page) .subpage-layout {
  width: min(1520px, calc(100% - 44px));
  margin: 0 auto 78px;
  gap: 26px;
}

body.home-page:not(.admin-visual-page) .brushing-strip {
  margin-bottom: 30px;
  padding: 18px clamp(18px, 3vw, 34px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

body.home-page:not(.admin-visual-page) .brushing-strip-track {
  grid-auto-columns: minmax(260px, 360px);
  justify-content: center;
  gap: 18px;
  background: transparent;
}

body.home-page:not(.admin-visual-page) .brushing-item,
body.home-page:not(.admin-visual-page) .brushing-placeholder {
  min-height: 190px;
  border: 1px dashed color-mix(in srgb, var(--color-border) 72%, var(--color-accent));
  border-radius: 8px;
  background: var(--color-muted-surface);
}

body.home-page:not(.admin-visual-page) .home-main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(28px, 3.2vw, 48px);
  background: transparent;
  border: 0;
}

body.home-page:not(.admin-visual-page) .home-content {
  gap: clamp(28px, 3vw, 44px);
}

body.home-page:not(.admin-visual-page) .intro-panel {
  min-height: 460px;
  height: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
  position: relative;
}

body.home-page:not(.admin-visual-page) .intro-image-frame,
body.home-page:not(.admin-visual-page) .corner-image {
  min-height: 460px;
}

body.home-page:not(.admin-visual-page) .intro-image-frame {
  position: relative;
}

body.home-page:not(.admin-visual-page) .intro-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 26, 22, 0.04), rgba(8, 26, 22, 0.22));
  pointer-events: none;
}

body.home-page:not(.admin-visual-page) .corner-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

body.home-page:not(.admin-visual-page) .intro-text {
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 4.2vw, 62px);
  color: var(--color-text);
  background: var(--color-surface);
  border: 0;
  border-left: 1px solid var(--color-border);
}

body.night-mode.home-page:not(.admin-visual-page) .intro-text {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 94%, black);
}

body.home-page:not(.admin-visual-page) .intro-text::before {
  content: "Cabinet dentaire";
  width: fit-content;
  margin-bottom: 10px;
  color: #d88b45;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.home-page:not(.admin-visual-page) .intro-text h2 {
  max-width: 620px;
  color: var(--color-text);
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.03;
  overflow-wrap: anywhere;
}

body.home-page:not(.admin-visual-page) .intro-text p {
  max-width: 520px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

body.home-page:not(.admin-visual-page) .info-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 34px);
  background: transparent;
}

body.home-page:not(.admin-visual-page) .cabinet-box,
body.home-page:not(.admin-visual-page) .hours-box,
body.home-page:not(.admin-visual-page) .biography-box,
body.home-page:not(.admin-visual-page) .fees-box,
body.home-page:not(.admin-visual-page) .address-box,
body.home-page:not(.admin-visual-page) .services-panel,
body.sub-page:not(.admin-service-page) .subpage-card {
  padding: clamp(28px, 3.2vw, 42px);
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body.home-page:not(.admin-visual-page) .cabinet-box {
  grid-column: span 7;
}

body.home-page:not(.admin-visual-page) .hours-box {
  grid-column: span 5;
}

body.home-page:not(.admin-visual-page) .biography-box,
body.home-page:not(.admin-visual-page) .address-box {
  grid-column: span 6;
}

body.home-page:not(.admin-visual-page) .cabinet-box h2,
body.home-page:not(.admin-visual-page) .hours-box h2,
body.home-page:not(.admin-visual-page) .biography-box h2,
body.home-page:not(.admin-visual-page) .address-box h2,
body.home-page:not(.admin-visual-page) .services-panel h2,
body.sub-page:not(.admin-service-page) .subpage-card h2 {
  margin-bottom: 18px;
  color: var(--color-text);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.04;
}

body.home-page:not(.admin-visual-page) .cabinet-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: stretch;
  gap: 12px;
  background: transparent;
}

body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 {
  grid-template-columns: minmax(260px, 640px);
}

body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-2 {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home-page:not(.admin-visual-page) .photo-placeholder {
  min-height: 190px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  background: var(--color-muted-surface);
}

body.home-page:not(.admin-visual-page) .photo-placeholder.has-image {
  min-height: 0;
  overflow: hidden;
}

body.home-page:not(.admin-visual-page) .photo-placeholder img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}

body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 .photo-placeholder.has-image {
  aspect-ratio: 21 / 9;
}

body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 .photo-placeholder.has-image img {
  height: 100%;
  object-fit: cover;
}

body.home-page:not(.admin-visual-page) .services-panel {
  position: sticky;
  top: 22px;
  align-self: start;
  min-height: auto;
  border-left: 0;
}

body.home-page:not(.admin-visual-page) .services-panel h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

body.home-page:not(.admin-visual-page) .services-panel .services-grid {
  display: grid;
  gap: 12px;
  background: transparent;
}

body.home-page:not(.admin-visual-page) .services-panel .service-card {
  min-height: 68px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-muted-surface) 78%, var(--color-surface));
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.home-page:not(.admin-visual-page) .services-panel .service-card:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
  box-shadow: inset 4px 0 0 var(--color-accent);
  transform: translateY(-2px);
}

body.home-page:not(.admin-visual-page) .services-panel .service-card span {
  padding: 18px;
}

body.home-page:not(.admin-visual-page) .map-frame,
body.home-page:not(.admin-visual-page) .directions-button,
body.home-page:not(.admin-visual-page) .copy-address-button {
  border-radius: 8px;
}

body.home-page:not(.admin-visual-page) .directions-button,
body.home-page:not(.admin-visual-page) .copy-address-button {
  color: #fff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
}

body.home-page:not(.admin-visual-page) footer,
body.sub-page:not(.admin-service-page) footer {
  margin-top: 70px;
  padding: 34px max(24px, calc((100% - 1160px) / 2));
  background: #0b1513;
  border: 0;
}

body.sub-page:not(.admin-service-page) .subpage-layout {
  width: min(1080px, calc(100% - 44px));
}

body.sub-page:not(.admin-service-page) .subpage-card {
  margin-top: 20px;
}

body.sub-page:not(.admin-service-page) .service-detail-image,
body.sub-page:not(.admin-service-page) .service-visual-image {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

body.admin-visual-page #gallery-editor .admin-photo-field.has-image {
  min-height: 0;
  align-content: start;
  place-items: stretch;
}

body.admin-visual-page #gallery-editor .admin-gallery-preview {
  height: auto;
  max-height: min(420px, 58vh);
  object-fit: contain;
}

@media (max-width: 1180px) {
  body.home-page:not(.admin-visual-page) .home-main-grid {
    grid-template-columns: 1fr;
  }

  body.home-page:not(.admin-visual-page) .services-panel {
    position: static;
  }

  body.home-page:not(.admin-visual-page) .services-panel .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  body.home-page:not(.admin-visual-page) .home-header,
  body.sub-page:not(.admin-service-page) .home-header {
    width: min(100% - 32px, 1520px);
  }

  body.home-page:not(.admin-visual-page) .site-nav,
  body.sub-page:not(.admin-service-page) .site-nav {
    top: 0;
    width: min(100% - 32px, 1120px);
    border-radius: 8px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  body.home-page:not(.admin-visual-page) .intro-panel {
    grid-template-columns: 1fr;
  }

  body.home-page:not(.admin-visual-page) .intro-panel,
  body.home-page:not(.admin-visual-page) .corner-image {
    min-height: auto;
  }

  body.home-page:not(.admin-visual-page) .intro-image-frame,
  body.home-page:not(.admin-visual-page) .corner-image {
    min-height: 340px;
  }

  body.home-page:not(.admin-visual-page) .intro-text {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  body.home-page:not(.admin-visual-page) .cabinet-box,
  body.home-page:not(.admin-visual-page) .hours-box,
  body.home-page:not(.admin-visual-page) .biography-box,
  body.home-page:not(.admin-visual-page) .address-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body.home-page:not(.admin-visual-page) .site-nav,
  body.sub-page:not(.admin-service-page) .site-nav {
    width: min(100% - 22px, 980px);
    margin-bottom: 24px;
  }

  body.home-page:not(.admin-visual-page) .brushing-strip {
    margin-bottom: 22px;
  }

  body.home-page:not(.admin-visual-page) .services-panel .services-grid {
    grid-template-columns: 1fr;
  }

  body.home-page:not(.admin-visual-page) .cabinet-gallery,
  body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-1,
  body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-2,
  body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-3 {
    grid-template-columns: 1fr;
  }

  body.home-page:not(.admin-visual-page) .intro-text h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  body.home-page:not(.admin-visual-page) .header-controls,
  body.sub-page:not(.admin-service-page) .header-controls {
    justify-content: center;
  }

  body.home-page:not(.admin-visual-page) .phone-button,
  body.sub-page:not(.admin-service-page) .phone-button {
    width: min(100%, 260px);
    text-align: center;
  }

  body.home-page:not(.admin-visual-page) .photo-placeholder {
    min-height: 120px;
  }

  body.home-page:not(.admin-visual-page) .photo-placeholder.has-image {
    min-height: 0;
    background: transparent;
  }

  body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 .photo-placeholder.has-image {
    aspect-ratio: auto;
  }

  body.home-page:not(.admin-visual-page) .cabinet-gallery.gallery-count-1 .photo-placeholder.has-image img {
    height: auto;
    object-fit: contain;
  }
}

