:root {
  --fx-copper: #b7964e;
  --fx-copper-light: #e0c37d;
  --fx-ink: #070605;
  --fx-paper: #fbf6ee;
}

/* Fil de progression discret : le visiteur sait toujours où il se trouve. */
.site-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20000;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, .035);
}

.site-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #75591e, var(--fx-copper-light), #9e7d34);
  box-shadow: 0 0 18px rgba(225, 181, 125, .55);
  will-change: transform;
}

/* Halo très léger qui accompagne le regard sur les écrans avec souris. */
.site-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 138, 82, .09), rgba(197, 138, 82, .025) 38%, transparent 68%);
  transform: translate3d(var(--spot-x, 50vw), var(--spot-y, 50vh), 0);
  transition: opacity .5s ease;
  will-change: transform;
}

.site-spotlight.is-active {
  opacity: 1;
}

/* Bande de signature éditoriale, animée sans créer de barre horizontale. */
.signature-rail {
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  color: var(--fx-paper);
  border-block: 1px solid rgba(225, 181, 125, .19);
  background:
    linear-gradient(90deg, rgba(197, 138, 82, .07), transparent 18%, transparent 82%, rgba(197, 138, 82, .07)),
    #0a0807;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .28);
}

.signature-rail::before,
.signature-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(36px, 10vw, 170px);
  pointer-events: none;
}

.signature-rail::before {
  left: 0;
  background: linear-gradient(90deg, #0a0807, transparent);
}

.signature-rail::after {
  right: 0;
  background: linear-gradient(-90deg, #0a0807, transparent);
}

.signature-rail__track {
  display: flex;
  width: max-content;
  padding-block: clamp(21px, 2vw, 30px);
  animation: signature-flow 34s linear infinite;
}

.signature-rail__line {
  display: flex;
  flex: none;
  align-items: center;
  min-width: 100vw;
  gap: clamp(24px, 3vw, 58px);
  justify-content: space-around;
  padding-right: clamp(24px, 3vw, 58px);
}

.signature-rail__line span {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(.75rem, .82vw, .98rem);
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signature-rail__line i {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid var(--fx-copper-light);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(225, 181, 125, .36);
}

@keyframes signature-flow {
  to { transform: translateX(-50%); }
}

/* Apparition éditoriale progressive. Le contenu reste visible si JS est coupé. */
html.site-effects-ready .fx-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .9s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.site-effects-ready .fx-reveal.fx-reveal--left {
  transform: translate3d(-32px, 0, 0) scale(.985);
}

html.site-effects-ready .fx-reveal.fx-reveal--right {
  transform: translate3d(32px, 0, 0) scale(.985);
}

html.site-effects-ready .fx-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Reflet cuivre localisé sur les cartes interactives. */
.fx-card {
  position: relative;
  isolation: isolate;
}

.fx-card__glow {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(225, 181, 125, .16), transparent 54%);
  transition: opacity .35s ease;
}

.fx-card:hover .fx-card__glow,
.fx-card:focus-within .fx-card__glow {
  opacity: 1;
}

/* CTA contextuel : présent seulement une fois l'univers découvert. */
.floating-rdv {
  position: fixed !important;
  right: clamp(18px, 2.6vw, 42px);
  bottom: clamp(18px, 2.6vw, 38px);
  z-index: 12000 !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 17px 10px 14px;
  color: #0d0b07 !important;
  border: 1px solid rgba(244, 219, 151, .62);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(222, 197, 124, .97), rgba(157, 124, 50, .97));
  box-shadow: 0 20px 65px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .16);
  font-family: "Cinzel", Georgia, serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(.96);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1), border-color .25s ease, box-shadow .25s ease;
}

.floating-rdv.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-rdv:hover,
.floating-rdv:focus-visible {
  border-color: rgba(255, 226, 190, .88);
  box-shadow: 0 24px 78px rgba(0, 0, 0, .55), 0 0 32px rgba(197, 138, 82, .16), inset 0 1px rgba(255, 255, 255, .2);
  transform: translateY(-3px) scale(1.015);
}

.floating-rdv__signal {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #fff0b8;
  box-shadow: 0 0 0 5px rgba(255, 240, 184, .14), 0 0 20px rgba(255, 240, 184, .7);
}

.floating-rdv__signal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(240, 191, 128, .5);
  border-radius: 50%;
  animation: signal-pulse 2.2s ease-out infinite;
}

.floating-rdv__arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}

@keyframes signal-pulse {
  0% { opacity: .8; transform: scale(.55); }
  75%, 100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 760px) {
  .site-progress { height: 2px; }
  .site-spotlight { display: none; }

  .signature-rail__track {
    padding-block: 19px;
    animation-duration: 27s;
  }

  .signature-rail__line {
    gap: 25px;
    padding-right: 25px;
  }

  .signature-rail__line span {
    font-size: .72rem;
    letter-spacing: .14em;
  }

  .floating-rdv {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
    min-height: 54px;
    padding-block: 8px;
    font-size: .69rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .site-spotlight,
  .fx-card__glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-rail__track {
    width: 100%;
    animation: none;
  }

  .signature-rail__line {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 18px;
  }

  .signature-rail__line[aria-hidden="true"] {
    display: none;
  }

  html.site-effects-ready .fx-reveal,
  html.site-effects-ready .fx-reveal.fx-reveal--left,
  html.site-effects-ready .fx-reveal.fx-reveal--right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-rdv,
  .floating-rdv__signal::after,
  .site-spotlight {
    animation: none;
    transition: none;
  }
}
