.motion-zone,
.motion-lab,
.motion-estimate {
  padding: 54px 28px;
}

.motion-photo-hero {
  min-height: 830px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 22%, rgba(241, 216, 164, 0.18), transparent 25%),
    linear-gradient(135deg, #101c2e, #172844);
}

.motion-photo-hero::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -20%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-14deg);
  animation: console-sweep 10s ease-in-out infinite;
  pointer-events: none;
}

.motion-photo-hero .hero-inner {
  position: relative;
  z-index: 1;
  min-height: 830px;
  padding-top: 44px;
  padding-bottom: 52px;
  grid-template-columns: minmax(380px, .33fr) minmax(470px, .36fr) minmax(400px, .31fr);
  gap: 24px;
  align-items: center;
}

.motion-photo-hero .hero-copy {
  grid-column: 1;
  max-width: 700px;
}

.motion-photo-hero .eyebrow {
  border: 1px solid rgba(241, 216, 164, 0.42);
  background: rgba(20, 36, 58, 0.72);
  color: #f1d8a4;
}

.motion-photo-hero .intake-panel {
  grid-column: 3;
  justify-self: end;
  width: min(470px, 100%);
  transform: none;
  transform-origin: top right;
}

.motion-photo-hero .intake-chat {
  grid-template-columns: 1fr;
}

.motion-photo-hero .chat-window {
  grid-column: 1;
  grid-row: auto;
  min-height: 82px;
  padding: 10px;
}

.motion-photo-hero .chat-message {
  max-width: 100%;
  font-size: 12px;
}

.motion-photo-hero .domain-search {
  grid-column: 1;
  padding: 10px 12px 0;
}

.motion-photo-hero .intake-options.compact {
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 12px 10px;
  gap: 6px;
}

.motion-photo-hero .intake-options.compact button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 11px;
}

.motion-photo-hero .intake-followup {
  grid-template-columns: 1fr;
  padding: 10px 12px 12px;
  gap: 7px;
}

.motion-photo-hero .intake-followup,
.motion-photo-hero .intake-followup label,
.motion-photo-hero .intake-followup textarea,
.motion-photo-hero .intake-meta,
.motion-photo-hero .rdv-choice,
.motion-photo-hero .intake-row,
.motion-photo-hero .intake-followup p {
  grid-column: 1;
}

.motion-photo-hero .intake-meta,
.motion-photo-hero .intake-row,
.motion-photo-hero .intake-row:last-of-type {
  grid-template-columns: 1fr;
}

.motion-photo-hero .intake-followup textarea {
  min-height: 58px;
}

.motion-photo-hero .intake-followup input,
.motion-photo-hero .intake-followup select,
.motion-photo-hero .intake-followup textarea {
  padding: 9px;
  font-size: 12px;
}

.motion-photo-hero .rdv-choice {
  padding: 9px;
}

.motion-photo-hero .rdv-choice div {
  gap: 6px 10px;
}

.motion-photo-hero .privacy-consent,
.motion-photo-hero .intake-followup p {
  font-size: 11px;
}

.hero-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(650px, 35vw);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-stack .motion-carousel {
  width: 100%;
  margin-top: 0;
}

.hero-stack .motion-track {
  min-height: 380px;
}

.hero-stack .motion-card {
  width: min(380px, 27vw);
  min-width: 290px;
  min-height: 324px;
  padding: 12px 12px 16px;
  border: 1px solid rgba(241, 216, 164, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    #14243a;
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-stack .motion-card::before {
  height: 188px;
  border-color: rgba(241, 216, 164, 0.18);
}

.hero-stack .motion-card h3 {
  color: var(--white);
  font-size: 22px;
}

.hero-stack .motion-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-note-left {
  left: -110px;
  top: 38px;
  color: var(--white);
}

.hero-note-right {
  right: -140px;
  top: 18px;
  color: var(--white);
  transform: rotate(8deg);
}

.motion-zone {
  position: relative;
  background: var(--gold-wash);
  overflow: hidden;
}

.motion-lab {
  background: var(--gold-wash);
}

.motion-estimate {
  background: var(--navy);
  color: var(--white);
}

.motion-wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.motion-title {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.motion-title h2,
.motion-estimate h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.08;
  color: var(--navy);
  font-weight: 500;
}

.motion-title p,
.motion-estimate p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.motion-estimate h2,
.motion-estimate .eyebrow {
  color: var(--white);
}

.motion-estimate p {
  color: rgba(255, 255, 255, 0.78);
}

.motion-carousel {
  width: min(1120px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 18px;
  align-items: center;
}

.motion-track {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  perspective: 1200px;
}

.motion-card {
  position: absolute;
  top: 22px;
  left: 50%;
  width: min(430px, 42vw);
  min-width: 320px;
  min-height: 360px;
  padding: 18px 18px 24px;
  border: 1px solid rgba(241, 216, 164, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    #14243a;
  color: var(--white);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 22px 42px rgba(20, 36, 58, 0.22);
  transition: transform 620ms cubic-bezier(.2,.8,.2,1), opacity 620ms ease, filter 620ms ease;
  overflow: hidden;
  text-decoration: none;
}

.motion-card::before {
  content: "";
  display: block;
  height: 252px;
  border: 1px solid rgba(20, 36, 58, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(20, 36, 58, 0.2)),
    var(--card-image, url("assets/hero-documents.png")) var(--card-position, center center) / contain no-repeat,
    #eef1f4;
}

.motion-card.is-active {
  box-shadow: 0 34px 70px rgba(20, 36, 58, 0.32);
}

.motion-card:hover {
  filter: brightness(1.03);
}

.motion-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.motion-card.is-leaving {
  opacity: 0.55;
}

.motion-card span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 850;
  font-size: 13px;
}

.motion-card h3 {
  margin-top: 6px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.04;
  text-align: center;
}

.motion-card p {
  color: rgba(255, 255, 255, 0.74);
  margin: 10px auto 0;
  font-size: 15px;
  text-align: center;
  max-width: 330px;
}

.visual-card[data-position="-2"] {
  transform: translateX(calc(-50% - 250px)) rotate(-8deg) translateY(30px) scale(.82) translateZ(-140px);
  opacity: .82;
  filter: saturate(.72) brightness(.96);
}

.visual-card[data-position="-1"] {
  transform: translateX(calc(-50% - 130px)) rotate(-5deg) translateY(14px) scale(.9) translateZ(-70px);
  opacity: .94;
}

.visual-card[data-position="0"] {
  transform: translateX(-50%) rotate(0deg) translateY(-8px) scale(1.04) translateZ(0);
  opacity: 1;
}

.visual-card[data-position="1"] {
  transform: translateX(calc(-50% + 130px)) rotate(5deg) translateY(14px) scale(.9) translateZ(-70px);
  opacity: .94;
}

.visual-card[data-position="2"] {
  transform: translateX(calc(-50% + 250px)) rotate(8deg) translateY(30px) scale(.82) translateZ(-140px);
  opacity: .82;
  filter: saturate(.72) brightness(.96);
}

.motion-note {
  position: absolute;
  padding: 7px 12px;
  border: 1px solid rgba(241, 216, 164, 0.36);
  border-radius: 999px;
  background: rgba(20, 36, 58, 0.72);
  color: #f1d8a4;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: none;
  opacity: .95;
}

.motion-note::after {
  content: none;
}

.motion-note-left {
  left: clamp(30px, 9vw, 160px);
  top: 210px;
}

.motion-note-right {
  right: clamp(30px, 8vw, 150px);
  top: 190px;
  transform: rotate(8deg);
}

.motion-arrow {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.motion-lab-grid,
.motion-estimate-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(560px, 1.18fr);
  gap: 38px;
  align-items: center;
}

.transform-panel {
  position: relative;
  min-height: 340px;
  padding: 24px;
  border-radius: 8px;
  background: var(--glass-light);
  border: 1px solid rgba(167, 122, 50, 0.28);
  box-shadow: 0 18px 44px rgba(20, 36, 58, 0.12);
  overflow: hidden;
}

.transform-stage {
  position: absolute;
  inset: 24px 24px 82px;
  display: grid;
  align-content: center;
  padding: 26px;
  border-radius: 8px;
  background: var(--glass-light);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.transform-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.transform-stage span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transform-stage strong {
  display: block;
  max-width: 620px;
  margin-top: 18px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.transform-stage p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
}

.transform-panel button {
  position: absolute;
  left: 24px;
  bottom: 22px;
}

.motion-timeline {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.motion-step {
  position: relative;
  min-height: 190px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(167, 122, 50, 0.28);
  background: var(--glass-light);
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.motion-step::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.motion-step.is-current {
  transform: translateY(-6px);
  border-color: rgba(167, 122, 50, 0.6);
  box-shadow: 0 16px 38px rgba(20, 36, 58, 0.12);
}

.motion-step.is-current::before {
  transform: scaleX(1);
}

.motion-step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
}

.motion-step strong {
  display: block;
  margin-top: 30px;
  color: var(--navy);
  font-size: 18px;
}

.motion-step p {
  margin: 8px 0 0;
  color: var(--muted);
}

.pulse-meter {
  padding: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.pulse-meter-bar {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.pulse-meter-bar span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f1d8a4);
  animation: meter-pulse 2.8s ease-in-out infinite;
}

.motion-prototype-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: #f1d8a4;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-meter strong {
  display: block;
  margin-top: 26px;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

@keyframes meter-pulse {
  0%, 100% {
    width: 46%;
  }
  50% {
    width: 78%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-card,
  .transform-stage,
  .motion-step,
  .motion-step::before,
  .pulse-meter-bar span {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .motion-photo-hero {
    min-height: auto;
  }

  .motion-photo-hero .hero-inner {
    min-height: auto;
    padding-bottom: 32px;
    grid-template-columns: 1fr;
  }

  .motion-photo-hero .intake-panel {
    justify-self: stretch;
    width: 100%;
    transform: none;
  }

  .motion-photo-hero .intake-chat {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-column: 1;
    margin-top: 22px;
  }

  .hero-note-left,
  .hero-note-right {
    display: none;
  }

  .motion-lab-grid,
  .motion-estimate-grid,
  .motion-timeline {
    grid-template-columns: 1fr;
  }

  .motion-track {
    min-height: 300px;
  }

  .motion-card {
    min-height: 270px;
  }
}

@media (max-width: 560px) {
  .motion-zone,
  .motion-lab,
  .motion-estimate {
    padding: 40px 18px;
  }

  .motion-carousel {
    grid-template-columns: 1fr;
  }

  .motion-arrow {
    display: none;
  }

  .transform-panel {
    min-height: 390px;
  }
}

/* Charte stricte home/carrousel : mêmes composants que le reste du site. */
.motion-card,
.hero-stack .motion-card,
.transform-panel,
.transform-stage,
.motion-step,
.pulse-meter {
  border: 1px solid var(--pill-border);
  border-radius: 8px;
  background: var(--pill-bg);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}

.motion-card h3,
.hero-stack .motion-card h3,
.transform-stage strong,
.motion-step strong,
.pulse-meter strong {
  color: var(--white);
}

.motion-card p,
.hero-stack .motion-card p,
.transform-stage p,
.motion-step p,
.pulse-meter p {
  color: rgba(255, 255, 255, 0.76);
}

.motion-card span,
.transform-stage span,
.motion-step span,
.motion-note,
.motion-prototype-badge {
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: #f1d8a4;
}

.motion-arrow,
.transform-panel button {
  border: 1px solid var(--pill-border);
  border-radius: 8px;
  background: var(--pill-bg);
  color: #f1d8a4;
}

/* Accroche d'accueil, ajoutee le 7 aout 2026.
   Elle s'adresse a un prospect, une fois, sur la page d'entree du site.
   Elle n'a volontairement pas ete reprise dans le logiciel : la, elle
   serait relue chaque matin par un cabinet qui l'a deja achete. */
.accroche-refus {
  margin: 1.1rem 0 1.4rem;
  padding-left: 1rem;
  border-left: 3px solid currentColor;
  font-size: 1.12rem;
  line-height: 1.55;
  opacity: .95;
}
.accroche-refus strong { font-weight: 700; }
@media (max-width: 720px) {
  .accroche-refus { font-size: 1rem; padding-left: .8rem; }
}
