:root {
  --page-canvas: #151516;
  --page-surface: #1c1c1e;
  --page-surface-soft: #202022;
  --page-ink: #f5f1e9;
  --page-muted: #b9b4aa;
  --page-line: rgba(217, 187, 123, 0.32);
  --page-gold: #d5b876;
  --page-gold-strong: #e0c98f;
  --page-on-gold: #1a1814;
  --page-focus: #f5d993;
  --page-viewer: #080808;
  --page-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--page-canvas);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--page-ink);
  background: var(--page-canvas);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--page-on-gold);
  background: var(--page-gold-strong);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.visit-page {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.visit-page__card {
  width: 100%;
  background: var(--page-surface);
}

.visit-page__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--page-viewer);
}

.visit-page--landscape .visit-page__media { aspect-ratio: 4 / 3; }
.visit-page--portrait .visit-page__media { aspect-ratio: 3 / 4; }

#viewer.visit-page__viewer {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--page-ink);
  background: var(--page-viewer);
}

#viewer.visit-page__viewer:fullscreen {
  width: 100vw;
  height: 100dvh;
}

.visit-page__poster,
.noscript-viewer {
  display: block;
  width: 100%;
  height: 100%;
}

.visit-page__poster { object-fit: cover; }

.visit-page__poster--empty {
  background: linear-gradient(145deg, #2c2923, var(--page-viewer));
}

.noscript-viewer { position: relative; }

.noscript-viewer a {
  position: absolute;
  left: 50%;
  bottom: 24px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 4px;
  color: var(--page-on-gold);
  background: var(--page-gold-strong);
  font-weight: 800;
  text-decoration: none;
  transform: translateX(-50%);
}

.visit-page__content {
  min-width: 0;
  padding: 32px 24px 40px;
  scroll-margin-top: 16px;
  background: var(--page-surface);
}

.visit-page__eyebrow,
.visit-page__location {
  margin: 0 0 10px;
  color: var(--page-muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visit-page__location {
  color: var(--page-gold-strong);
  letter-spacing: 0.08em;
}

.visit-page__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visit-page__eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--page-gold);
}

h1 {
  width: 100%;
  max-width: 18ch;
  margin: 0;
  font-family: var(--page-serif);
  font-size: clamp(2.45rem, 11vw, 4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.visit-page__price {
  margin: 24px 0 6px;
  color: var(--page-gold-strong);
  font-family: var(--page-serif);
  font-size: clamp(2.15rem, 9vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.facts__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--page-gold-strong);
}

.facts__copy,
.facts__copy strong,
.facts__copy span { display: block; }

.facts__copy { min-width: 0; }

.facts__copy strong {
  overflow-wrap: anywhere;
  color: var(--page-ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.facts__copy span {
  margin-top: 3px;
  color: var(--page-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visit-page__description {
  max-width: 62ch;
  margin: 34px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 241, 233, 0.12);
  color: #ddd8ce;
  font-size: 0.98rem;
  line-height: 1.68;
}

.contact {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.contact__eyebrow {
  margin: 0 0 12px;
  color: var(--page-gold-strong);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact__avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--page-line);
  border-radius: 50%;
  color: var(--page-on-gold);
  background: linear-gradient(145deg, var(--page-gold-strong), #a9884d);
  font-family: var(--page-serif);
  font-size: 1.45rem;
}

.contact__identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.contact__identity strong {
  overflow-wrap: anywhere;
  font-family: var(--page-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.05;
}

.contact__identity span {
  color: var(--page-muted);
  font-size: 0.86rem;
}

.contact__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.contact__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--page-gold);
  border-radius: 6px;
  color: var(--page-gold-strong);
  background: transparent;
  font-weight: 760;
  text-decoration: none;
  touch-action: manipulation;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.contact__actions a:first-child {
  color: var(--page-on-gold);
  background: var(--page-gold-strong);
}

.contact__actions a:hover {
  color: var(--page-on-gold);
  background: var(--page-gold);
}

.contact__actions a:active { filter: brightness(0.92); }

.visit-page--sparse .visit-page__content { padding-bottom: 28px; }

footer {
  margin-top: auto;
  padding: 14px 20px 0;
  text-align: center;
  font-size: 0.75rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #8f8a82;
  font-weight: 650;
  text-decoration: none;
}

.contact__actions a:focus-visible,
footer a:focus-visible,
.noscript-viewer a:focus-visible {
  outline: 3px solid var(--page-focus);
  outline-offset: 3px;
}

/* Le moteur viewer fournit le même rendu de repère visiteur sur chaque surface. */
#viewer.visit-page__viewer .stage { background: var(--page-viewer); }
#viewer.visit-page__viewer .frame { box-shadow: none; }
#viewer.visit-page__viewer .chrome__btn {
  color: var(--page-ink);
  background: rgba(18, 18, 19, 0.64);
  border: 1px solid rgba(245, 241, 233, 0.2);
  backdrop-filter: blur(8px);
}
#viewer.visit-page__viewer .chrome__marker-style[aria-pressed="true"] {
  color: var(--page-gold-strong);
}

#viewer.visit-page__viewer .viewer-hint {
  color: var(--page-ink);
  background: rgba(18, 18, 19, 0.78);
  border-color: rgba(213, 184, 118, 0.38);
}

#viewer.visit-page__viewer .viewer-hint::before {
  background: var(--page-gold-strong);
  box-shadow: 0 0 0 4px rgba(213, 184, 118, 0.16);
}

@media (max-width: 759px) {
  .visit-page--has-contact { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  .visit-page--has-contact .contact__actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--page-line);
    background: rgba(21, 21, 22, 0.92);
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px) saturate(1.1);
  }
}

@media (min-width: 760px) {
  .visit-page {
    width: min(calc(100% - 48px), 920px);
    padding: 28px 0;
  }

  .visit-page__card {
    overflow: hidden;
    border: 1px solid rgba(245, 241, 233, 0.09);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  }

  .visit-page__content { padding: 40px; }

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

  footer { padding-top: 18px; }
}

@media (min-width: 1180px) {
  .visit-page {
    width: min(calc(100% - 48px), 1440px);
    min-height: 100dvh;
    display: grid;
    align-content: center;
    padding: 24px 0;
  }

  .visit-page__card {
    display: grid;
    align-items: start;
    border-radius: 0;
  }

  .visit-page--rich.visit-page--landscape .visit-page__card {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 31%);
  }

  .visit-page--rich.visit-page--portrait {
    width: min(calc(100% - 48px), 1120px);
  }

  .visit-page--rich.visit-page--portrait .visit-page__card {
    grid-template-columns: minmax(500px, 56%) minmax(390px, 1fr);
  }

  .visit-page__media {
    align-self: start;
    min-width: 0;
  }

  .visit-page__content {
    align-self: stretch;
    min-height: 100%;
    padding: clamp(38px, 3.4vw, 56px);
  }

  .visit-page--rich h1 { font-size: clamp(2.6rem, 3.6vw, 4.4rem); }

  .visit-page--rich .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .visit-page--rich .contact { margin-top: 38px; }

  .visit-page--sparse { width: min(calc(100% - 48px), 1120px); }

  .visit-page--sparse .visit-page__card { border: 0; }

  .visit-page--sparse.visit-page--landscape .visit-page__media { max-width: 960px; }

  .visit-page--sparse.visit-page--portrait {
    width: min(calc(100% - 48px), 620px);
  }
}

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