/* Smooth 1:1 Hotellia Opacity Crossfade Page Transitions */
@view-transition {
  navigation: auto;
}
@keyframes ahomePageFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes ahomePageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
::view-transition-old(root) {
  animation: ahomePageFadeOut 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
::view-transition-new(root) {
  animation: ahomePageFadeIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.ah-leaving {
  opacity: 0 !important;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* === WARM AHOME TEST PALETTE (Comment out or remove this block to revert instantly) === */
body {
  --token-95c4f030-56cd-4630-82b4-9f45e333616e: #f5f1ea !important; /* Lin / pierre chaude au lieu de #f2f2f2 froid */
  --token-f7680a17-c5ca-46b2-a71a-92f2a60d07d2: #e6dfd4 !important; /* Bordures sable doux au lieu de #ebebeb */
  --token-85874559-08a8-4130-baf8-fec5070b60db: #2a3622 !important; /* Olive tropical chaud au lieu de #1c3d2d sapin froid */
  --token-005bb72b-1f8d-4a15-b517-1b1bfa5da5a9: #231f1b !important; /* Brun-charbon chaud au lieu de #222222 */
  --token-4db20bfa-ebc5-41cf-8d93-8939badb3752: #181410 !important; /* Noir encre bois chaud au lieu de #000000 */
}

/* Ahomé x Hotellia Upgraded Framer Marketplace Components (Strict Design DNA Tokens) */
:root {
  --ah-canvas: var(--token-95c4f030-56cd-4630-82b4-9f45e333616e, #f5f1ea);
  --ah-surface: var(--token-4456fb37-5e87-4a72-9418-87102ceb1346, #ffffff);
  --ah-accent: var(--token-85874559-08a8-4130-baf8-fec5070b60db, #2a3622);
  --ah-wood: #a36f3f;
  --ah-accent-soft: rgba(42, 54, 34, 0.09);
  --ah-border: var(--token-f7680a17-c5ca-46b2-a71a-92f2a60d07d2, #e6dfd4);
  --ah-ink: var(--token-4db20bfa-ebc5-41cf-8d93-8939badb3752, #181410);
  --ah-ink-2: var(--token-005bb72b-1f8d-4a15-b517-1b1bfa5da5a9, #231f1b);
  --ah-muted: #6c645a;
  --ah-serif: "Libre Baskerville", Georgia, serif;
  --ah-sans: "Manrope", "Inter", system-ui, sans-serif;
}

.ah-num { font-variant-numeric: tabular-nums; }

/* 1. Motion Overlay Menu Enhancement (circular clip-path reveal over Hotellia palette) */
#ah-motion-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  background: rgba(42, 54, 34, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px 36px;
  clip-path: circle(0% at calc(100% - 48px) 36px);
  opacity: 0;
  pointer-events: none;
  transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
#ah-motion-menu.is-open {
  clip-path: circle(155% at calc(100% - 48px) 36px);
  opacity: 1;
  pointer-events: auto;
}
.ah-mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ah-mm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ah-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.ah-mm-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ah-accent);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--ah-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.ah-mm-close:hover { transform: scale(1.03); }
.ah-mm-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto 0;
  max-width: 780px;
}
.ah-mm-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, filter 0.35s ease;
}
#ah-motion-menu.is-open .ah-mm-link {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@supports (transition-delay: calc(sibling-index() * 0.1s)) {
  #ah-motion-menu.is-open .ah-mm-link {
    transition-delay: calc(0.03s + sibling-index() * 0.05s);
  }
}

@supports not (transition-delay: calc(sibling-index() * 0.1s)) {
  #ah-motion-menu.is-open .ah-mm-link:nth-child(1) { transition-delay: 0.08s; }
  #ah-motion-menu.is-open .ah-mm-link:nth-child(2) { transition-delay: 0.13s; }
  #ah-motion-menu.is-open .ah-mm-link:nth-child(3) { transition-delay: 0.18s; }
  #ah-motion-menu.is-open .ah-mm-link:nth-child(4) { transition-delay: 0.23s; }
  #ah-motion-menu.is-open .ah-mm-link:nth-child(5) { transition-delay: 0.28s; }
}
.ah-mm-nav:hover .ah-mm-link:not(:hover) { opacity: 0.45; }
.ah-mm-link:hover { transform: translateX(14px) !important; }
.ah-mm-idx {
  font-family: var(--ah-sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
  min-width: 24px;
}
.ah-mm-title {
  font-family: var(--ah-serif);
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.15;
  font-weight: 400;
}
.ah-mm-sub {
  margin-left: auto;
  font-family: var(--ah-sans);
  font-size: 12px;
  opacity: 0.72;
}
.ah-mm-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--ah-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 640px) {
  #ah-motion-menu { padding: 20px; }
  .ah-mm-sub { display: none; }
}

/* 2. Service List Hover (L'Expérience on homepage desktop >= 810px) */
#ah-service-hover-box {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
  font-family: var(--ah-sans);
}
.ah-slh-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ah-border);
}
.ah-slh-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 20px 22px 24px;
  border-bottom: 1px solid var(--ah-border);
  background: var(--ah-surface);
  cursor: pointer;
  transition: background 0.18s ease;
}
.ah-slh-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ah-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-slh-row.is-active { background: #fbfbfa; }
.ah-slh-row.is-active::before { transform: scaleY(1); }
.ah-slh-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ah-muted);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ah-slh-row.is-active .ah-slh-num { color: var(--ah-accent); }
.ah-slh-title {
  font-family: var(--ah-serif);
  font-size: 20px;
  color: var(--ah-ink);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ah-slh-row:not(.is-active) .ah-slh-title { color: #7a7a7a; }
.ah-slh-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ah-ink-2);
}
.ah-slh-preview {
  position: sticky;
  top: 96px;
  border-radius: 12px;
  overflow: hidden;
  height: 410px;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
}
.ah-slh-reel {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-slh-reel img {
  width: 100%;
  height: 410px;
  flex: none;
  object-fit: cover;
  display: block;
}
@media (max-width: 809px) {
  #ah-service-hover-box { grid-template-columns: 1fr; gap: 16px; }
  .ah-slh-preview { position: static; height: 260px; }
  .ah-slh-reel img { height: 260px; }
}

/* 3. Vogue Testimonial Card (Avis Clients inside Reviews Section) */
#ah-vogue-reviews {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  font-family: var(--ah-sans);
}
.ah-vr-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 360px;
  background: var(--ah-accent);
}
.ah-vr-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-vr-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 20%, rgba(16, 25, 18, 0.84) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #ffffff;
}
.ah-vr-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.ah-vr-stars svg { fill: #e0a96d; stroke: #e0a96d; }
.ah-vr-quote {
  font-family: var(--ah-serif);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.45;
  color: #ffffff;
  max-width: 780px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ah-vr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px 4px;
}
.ah-vr-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ah-vr-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ah-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.ah-vr-name { font-size: 14px; font-weight: 600; color: var(--ah-ink); }
.ah-vr-meta { font-size: 12px; color: var(--ah-muted); }
.ah-vr-ctrls { display: flex; align-items: center; gap: 8px; }
.ah-vr-count { font-size: 12px; color: var(--ah-muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ah-vr-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ah-border);
  background: var(--ah-surface);
  color: var(--ah-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ah-vr-btn:hover { background: var(--ah-accent); color: #ffffff; border-color: var(--ah-accent); }
@media (max-width: 640px) {
  .ah-vr-media { height: 320px; }
  .ah-vr-scrim { padding: 18px; }
}

/* Force consistent uppercase on all Hero H1 display titles (GALERIE, CHAMBRES, AHOMÉ, RÉSERVER...) */
section[data-framer-name="Hero Section"] h1 {
  text-transform: uppercase !important;
}
section[data-framer-name="Hero Section"] svg {
  overflow: visible !important;
}

/* 4. Filterable Gallery (/gallery) — full-bleed #f2f2f2 canvas elevated above sticky hero */
#ah-filter-gallery {
  position: relative;
  z-index: 5;
  width: 100%;
  background: var(--ah-canvas, #f2f2f2);
  padding: 56px 20px 72px;
  font-family: var(--ah-sans);
}
.ah-fg-inner {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}
.ah-fg-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ah-border);
  margin-bottom: 24px;
}
.ah-fg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.ah-fg-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 2px;
  font-family: var(--ah-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ah-muted);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.ah-fg-tab.is-active {
  color: var(--ah-accent);
  border-bottom-color: var(--ah-accent);
}
.ah-fg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ah-fg-card {
  position: relative;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.ah-fg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.ah-fg-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.ah-fg-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ah-ink-2);
}
.ah-fg-cat { font-size: 11px; color: var(--ah-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ah-fg-more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--ah-accent);
  background: var(--ah-surface);
  color: var(--ah-accent);
  font-family: var(--ah-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.ah-fg-more:hover { background: var(--ah-accent); color: #ffffff; }
@media (max-width: 900px) { .ah-fg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ah-fg-grid { grid-template-columns: 1fr; } }

/* 5. Omni Slideshow (/rooms/* top hero photo carousel) */
#ah-omni-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  overflow: hidden;
  background: var(--ah-accent);
}
.ah-os-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-os-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.ah-os-bars {
  position: absolute;
  left: 24px;
  top: 78px;
  z-index: 30;
  display: flex;
  gap: 8px;
}
.ah-os-bar {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}
.ah-os-bar.is-active { background: #ffffff; }
.ah-os-arrows {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 48%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.ah-os-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.94);
  color: #181818;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

/* 6. Stay Booking Pro (/reserve — 100% French Ahomé Palette #1c3d2d / #f2f2f2 / #ffffff) */
#ah-stay-booking {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--ah-sans);
  color: var(--ah-ink);
}
.ah-sb-rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.ah-sb-room {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ah-sb-room.is-active {
  border-color: var(--ah-accent);
  box-shadow: 0 0 0 2px var(--ah-accent-soft);
}
.ah-sb-room img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; flex: none; }
.ah-sb-room-name { font-size: 13.5px; font-weight: 600; color: var(--ah-ink); }
.ah-sb-room-price { font-size: 12.5px; color: var(--ah-accent); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ah-sb-room-meta { font-size: 11px; color: var(--ah-muted); }
.ah-sb-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.ah-sb-panel {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  padding: 22px;
}
.ah-sb-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ah-sb-cal-title { font-family: var(--ah-serif); font-size: 18px; text-transform: capitalize; }
.ah-sb-cal-nav { display: flex; gap: 6px; }
.ah-sb-cal-nav button {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--ah-border);
  background: var(--ah-surface); cursor: pointer; display: grid; place-items: center;
}
.ah-sb-weekdays, .ah-sb-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.ah-sb-weekdays div { font-size: 11px; font-weight: 600; color: var(--ah-muted); padding-bottom: 6px; }
.ah-sb-day {
  padding: 9px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  color: var(--ah-ink);
  transition: background 0.14s ease, color 0.14s ease;
}
.ah-sb-day:hover:not(:disabled) { background: var(--ah-accent-soft); }
.ah-sb-day:disabled { opacity: 0.28; cursor: not-allowed; }
.ah-sb-day.in-range { background: rgba(42, 54, 34, 0.14); color: var(--ah-accent); font-weight: 600; }
.ah-sb-day.is-edge { background: var(--ah-accent) !important; color: #ffffff !important; font-weight: 700; }
.ah-sb-steppers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.ah-sb-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ah-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.ah-sb-step-btns { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.ah-sb-step-btns button {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--ah-border);
  background: var(--ah-canvas); cursor: pointer; font-weight: 600;
}
.ah-sb-bf {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ah-border);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13px;
}
.ah-sb-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.ah-sb-inputs input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ah-border);
  border-radius: 8px;
  font-family: var(--ah-sans);
  font-size: 16px;
  background: #fafafa;
}
.ah-sb-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--ah-ink-2);
  font-variant-numeric: tabular-nums;
}
.ah-sb-total {
  border-top: 1px solid var(--ah-border);
  margin-top: 8px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.ah-sb-cta-wa {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  background: var(--ah-accent);
  color: #ffffff;
  font-family: var(--ah-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.ah-sb-cta-mail {
  width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--ah-border);
  background: var(--ah-surface);
  color: var(--ah-ink);
  font-family: var(--ah-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
@media (max-width: 860px) {
  .ah-sb-rooms, .ah-sb-grid, .ah-sb-steppers, .ah-sb-inputs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #ah-motion-menu, .ah-mm-link, .ah-slh-reel, .ah-os-slide, .ah-fg-card { transition: none !important; }
}
