/* Emlak237 — couche design + animations fluides (respecte prefers-reduced-motion) */

/* Base : empêcher le scroll horizontal sur mobile (décorations, grilles, flex, textes longs) */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  overflow-wrap: anywhere;
}

img,
video {
  max-width: 100%;
  height: auto;
}

:root {
  --e-primary: #004aad;
  --e-primary-dark: #003584;
  --e-primary-light: #2b7cff;
  --e-surface: rgba(255, 255, 255, 0.72);
  --e-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --emlak-font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.site-body {
  position: relative;
  min-height: 100vh;
  background-color: #f4f6fb;
  overflow-x: clip;
  max-width: 100%;
}

/* Fond mesh animé */
.site-bg-mesh {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(0, 74, 173, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(43, 124, 255, 0.18), transparent 45%),
    radial-gradient(ellipse 50% 60% at 80% 100%, rgba(0, 53, 132, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #f4f6fb 100%);
}

.site-bg-mesh::before,
.site-bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: mesh-float 18s var(--e-ease-out) infinite;
}

.site-bg-mesh::before {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  left: -10%;
  top: 15%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.35) 0%, transparent 70%);
  animation-delay: -4s;
}

.site-bg-mesh::after {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  right: -5%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(43, 124, 255, 0.28) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes mesh-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, -3%) scale(1.03);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.98);
  }
}

.site-main-wrap {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}

/* ─── Hero (accueil) — grille, typo display, cadre Lottie ─── */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.hero-section__aurora {
  position: absolute;
  inset: -2rem -8vw 35%;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0, 74, 173, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(43, 124, 255, 0.12), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 23, 42, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-section__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 74, 173, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 74, 173, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 88% 72% at 50% -8%, black 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% -8%, black 22%, transparent 72%);
  opacity: 0.5;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--e-primary-dark);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.82));
  border: 1px solid rgba(0, 74, 173, 0.16);
  border-radius: 9999px;
  box-shadow:
    0 10px 32px rgba(0, 53, 132, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.hero-kicker__icon {
  font-size: 1.125rem;
  color: var(--e-primary);
}

.hero-headline {
  font-family: var(--emlak-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: #0f172a;
}

/* Dégradé marque : version statique (.text-gradient-brand) ou animée (hero) */
.hero-headline__gradient,
.text-gradient-brand {
  background: linear-gradient(105deg, var(--e-primary) 0%, #2563eb 40%, var(--e-primary-light) 100%);
  background-size: 160% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline__gradient {
  animation: hero-gradient-shift 12s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Slot « rouleau » + machine à écrire (même esprit que GoToShop siteweb) */
.hero-slot-block {
  margin: 0;
  padding: 1rem 1.2rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 14px 44px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hero-slot-label {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0 0 0.45rem;
}

.hero-slot-prefix {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
}

.hero-slot-colon {
  font-weight: 800;
  color: var(--e-primary);
}

.emlak-slot {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 74, 173, 0.1), rgba(43, 124, 255, 0.07));
  border: 1px solid rgba(0, 74, 173, 0.22);
  padding: 0 1rem;
  box-shadow:
    0 12px 40px rgba(0, 74, 173, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.emlak-slot--masked {
  -webkit-mask-image: linear-gradient(transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.emlak-slot__track {
  will-change: transform;
}

.emlak-slot__line {
  display: flex;
  align-items: center;
  font-family: var(--emlak-font-display);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emlak-slot--hero {
  min-height: 48px;
}

.hero-tw-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  min-height: 1.75rem;
}

.hero-tw-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #64748b;
  box-shadow: 0 4px 14px rgba(0, 53, 132, 0.06);
}

.hero-tw-typewriter.ecom-typewriter {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--e-primary);
}

.hero-tw-typewriter.ecom-typewriter .ecom-typewriter-text {
  color: var(--e-primary);
}

.ecom-phrase-reveal {
  min-height: 5.25rem;
}

.ecom-phrase-reveal__inner {
  display: block;
  transition:
    opacity 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  transform: translateY(0);
}

.ecom-phrase-reveal__inner--out {
  opacity: 0;
  transform: translateY(8px);
}

.hero-blob--tr {
  position: absolute;
  right: -10%;
  top: -6%;
  width: min(50vw, 260px);
  height: min(50vw, 260px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.2) 0%, transparent 68%);
  filter: blur(46px);
}

.hero-blob--bl {
  position: absolute;
  left: -6%;
  bottom: 8%;
  width: min(42vw, 200px);
  height: min(42vw, 200px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 124, 255, 0.22) 0%, transparent 70%);
  filter: blur(42px);
}

.hero-visual-frame {
  position: relative;
  padding: 0.35rem;
  border-radius: 2rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(241, 245, 249, 0.55) 45%,
    rgba(255, 255, 255, 0.88) 100%
  );
  box-shadow:
    0 32px 64px -20px rgba(0, 53, 132, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.hero-visual-frame__ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 74, 173, 0.35),
    rgba(43, 124, 255, 0.15) 40%,
    rgba(0, 74, 173, 0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-visual-frame__inner {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-lottie {
  filter: drop-shadow(0 12px 28px rgba(0, 53, 132, 0.12));
}

.hero-cta-primary {
  box-shadow:
    0 14px 36px -8px rgba(0, 74, 173, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.hero-toc {
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-toc .ecom-link-animated {
  text-decoration: none;
}

.hero-toc .ecom-link-animated:hover {
  color: var(--e-primary);
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline__gradient {
    animation: none;
    background-position: 0% 50%;
  }
}

/* Barre de progression de lecture (scroll) — piste, traînée, remplissage, curseur */
.site-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  height: 8px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .site-scroll-progress {
    height: 10px;
  }
}

.site-scroll-progress__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(248, 250, 252, 0.15)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.07), rgba(15, 23, 42, 0.02));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  z-index: 0;
}

.site-scroll-progress__glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18px;
  background: linear-gradient(180deg, rgba(0, 74, 173, 0.28), rgba(43, 124, 255, 0.08), transparent);
  filter: blur(12px);
  opacity: 0.95;
  z-index: 1;
}

.site-scroll-progress__fill-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.site-scroll-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  max-width: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(
    90deg,
    var(--e-primary),
    var(--e-primary-light),
    #38bdf8,
    #7dd3fc,
    var(--e-primary-light),
    var(--e-primary)
  );
  background-size: 320% 100%;
  animation: site-progress-gradient 4s linear infinite;
  box-shadow:
    0 0 28px rgba(43, 124, 255, 0.6),
    0 0 14px rgba(0, 74, 173, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: width 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.site-scroll-progress__tail {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(64px, 18vw);
  height: 220%;
  transform: translate(35%, -50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55) 45%,
    rgba(125, 211, 252, 0.35) 70%,
    rgba(255, 255, 255, 0)
  );
  filter: blur(5px);
  opacity: 0.9;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-scroll-progress__tail {
    animation: site-progress-tail-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes site-progress-tail-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translate(35%, -50%) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translate(32%, -50%) scaleX(1.12);
  }
}

.site-scroll-progress__knob {
  position: absolute;
  top: 50%;
  left: 0%;
  z-index: 3;
  width: 17px;
  height: 17px;
  margin-top: -8.5px;
  margin-left: -8.5px;
  border-radius: 9999px;
  background: linear-gradient(145deg, #fff 0%, #e0f2fe 45%, #bae6fd 100%);
  border: 2px solid rgba(0, 74, 173, 0.42);
  box-shadow:
    0 0 0 3px rgba(43, 124, 255, 0.22),
    0 4px 16px rgba(0, 74, 173, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: left 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  animation: site-progress-knob-pulse 2.2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .site-scroll-progress__knob {
    width: 19px;
    height: 19px;
    margin-top: -9.5px;
    margin-left: -9.5px;
  }
}

@keyframes site-progress-knob-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(43, 124, 255, 0.25),
      0 4px 14px rgba(0, 74, 173, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(43, 124, 255, 0.15),
      0 6px 20px rgba(0, 74, 173, 0.45);
  }
}

@keyframes site-progress-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* Barre de progression latérale (droite) — rail vertical vitré */
.site-scroll-progress-rail {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 11px;
  z-index: 10040;
  pointer-events: none;
  padding-right: max(2px, env(safe-area-inset-right, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .site-scroll-progress-rail {
    display: block;
    width: 13px;
    padding-right: max(6px, env(safe-area-inset-right, 0px));
  }

  @media (prefers-reduced-motion: no-preference) {
    .site-scroll-progress-rail {
      animation: site-scroll-rail-enter 1s var(--e-ease-out) both;
    }
  }
}

@keyframes site-scroll-rail-enter {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.site-scroll-progress-rail__track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(2px, env(safe-area-inset-right, 0px));
  width: 5px;
  border-radius: 999px 0 0 999px;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.35), rgba(15, 23, 42, 0.06)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-right: none;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    -4px 0 20px rgba(0, 53, 132, 0.04);
  z-index: 0;
}

@media (min-width: 768px) {
  .site-scroll-progress-rail__track {
    right: max(6px, env(safe-area-inset-right, 0px));
    width: 6px;
  }
}

.site-scroll-progress-rail__glow {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 22px;
  background: linear-gradient(90deg, transparent, rgba(0, 74, 173, 0.12), rgba(43, 124, 255, 0.06));
  filter: blur(14px);
  opacity: 0.85;
  z-index: 1;
}

.site-scroll-progress-rail__fill-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(2px, env(safe-area-inset-right, 0px));
  width: 5px;
  z-index: 2;
}

@media (min-width: 768px) {
  .site-scroll-progress-rail__fill-wrap {
    right: max(6px, env(safe-area-inset-right, 0px));
    width: 6px;
  }
}

.site-scroll-progress-rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0%;
  max-height: 100%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(
    180deg,
    var(--e-primary-light),
    var(--e-primary),
    #38bdf8,
    var(--e-primary-light),
    var(--e-primary)
  );
  background-size: 100% 320%;
  animation: site-progress-gradient-v 4.2s linear infinite;
  box-shadow:
    -2px 0 22px rgba(43, 124, 255, 0.45),
    -1px 0 12px rgba(0, 74, 173, 0.35),
    inset -1px 0 0 rgba(255, 255, 255, 0.35);
  transition: height 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.site-scroll-progress-rail__tail {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 180%;
  height: min(56px, 12vh);
  transform: translate(-50%, 40%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5) 50%,
    rgba(125, 211, 252, 0.3) 72%,
    rgba(255, 255, 255, 0)
  );
  filter: blur(5px);
  opacity: 0.88;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-scroll-progress-rail__tail {
    animation: site-progress-rail-tail-pulse 2.5s ease-in-out infinite;
  }
}

@keyframes site-progress-rail-tail-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translate(-50%, 40%) scaleY(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 38%) scaleY(1.08);
  }
}

@keyframes site-progress-gradient-v {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 320%;
  }
}

.site-scroll-progress-rail__knob {
  position: absolute;
  left: 50%;
  top: 0%;
  z-index: 3;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 9999px;
  background: linear-gradient(200deg, #fff 0%, #e0f2fe 50%, #bae6fd 100%);
  border: 2px solid rgba(0, 74, 173, 0.42);
  box-shadow:
    0 0 0 3px rgba(43, 124, 255, 0.2),
    -4px 4px 16px rgba(0, 74, 173, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-50%);
  transition: top 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  animation: site-progress-knob-pulse-side 2.3s ease-in-out infinite;
  pointer-events: none;
}

@media (min-width: 768px) {
  .site-scroll-progress-rail__knob {
    width: 17px;
    height: 17px;
    margin-left: -8.5px;
  }
}

@keyframes site-progress-knob-pulse-side {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(43, 124, 255, 0.2),
      -4px 4px 16px rgba(0, 74, 173, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(43, 124, 255, 0.12),
      -6px 6px 22px rgba(0, 74, 173, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}

/* Header — barre flottante type « dock » (verre + pilule nav) */
.site-header-bar {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

/* Bandeau Proprio237 : dans le flux de la page (sous le header sticky), pas collé au viewport */
.site-proprio-strip {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  width: 100%;
}

/* Bloc intégré au fond de page (pas d’effet « flottant » / verre collé) */
.site-proprio-strip--in-content {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: #f4f6fb;
  box-shadow: none;
}

.site-proprio-strip__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0 0.5rem;
  text-decoration: none;
  color: #0f172a;
  transition: opacity 0.2s ease;
}

.site-proprio-strip__link:hover {
  opacity: 0.9;
}

.site-proprio-strip__logo {
  flex-shrink: 0;
  border-radius: 0.65rem;
  object-fit: cover;
  box-shadow: 0 2px 14px rgba(0, 53, 132, 0.14);
}

.site-proprio-strip__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-proprio-strip__brand {
  font-family: var(--emlak-font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--e-primary-dark);
  line-height: 1.2;
}

.site-proprio-strip__sub {
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 500;
  color: #64748b;
}

@media (min-width: 768px) {
  .site-proprio-strip__link {
    padding: 0.5rem 0 0.55rem;
  }

  .site-proprio-strip__sub {
    font-size: 0.75rem;
  }
}

.site-proprio-strip__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--e-primary);
}

.site-header-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 74, 173, 0.12) 20%,
    rgba(43, 124, 255, 0.2) 50%,
    rgba(0, 74, 173, 0.12) 80%,
    transparent
  );
  pointer-events: none;
  opacity: 0.85;
}

.site-header-inner {
  position: relative;
  transition:
    padding-top 0.45s var(--e-ease-out),
    padding-bottom 0.45s var(--e-ease-out);
}

/* Halos animés derrière la coque (profondeur) */
.site-header-ambient {
  position: absolute;
  inset: -0.25rem -0.5rem;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.site-header-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: site-header-orb-drift 14s ease-in-out infinite;
}

.site-header-ambient__orb--a {
  width: min(52vw, 300px);
  height: min(52vw, 300px);
  left: -8%;
  top: -55%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.32) 0%, transparent 68%);
}

.site-header-ambient__orb--b {
  width: min(42vw, 240px);
  height: min(42vw, 240px);
  right: -4%;
  top: -40%;
  background: radial-gradient(circle, rgba(43, 124, 255, 0.28) 0%, transparent 68%);
  animation-delay: -5s;
}

@keyframes site-header-orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  33% {
    transform: translate(3%, 4%) scale(1.04);
    opacity: 0.6;
  }
  66% {
    transform: translate(-2%, 2%) scale(0.98);
    opacity: 0.5;
  }
}

/* Faisceaux latéraux (effet « rails » animés) */
.site-header-rails {
  pointer-events: none;
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.35rem;
  bottom: 0.35rem;
  z-index: 0;
}

@media (min-width: 768px) {
  .site-header-rails {
    left: 1rem;
    right: 1rem;
  }
}

.site-header-rails__beam {
  position: absolute;
  top: 15%;
  width: 3px;
  height: 70%;
  border-radius: 9999px;
  opacity: 0.55;
  animation: site-header-rail-pulse 3.5s ease-in-out infinite;
}

.site-header-rails__beam--l {
  left: -2px;
  background: linear-gradient(180deg, transparent, var(--e-primary-light), var(--e-primary), transparent);
  box-shadow: 0 0 16px rgba(43, 124, 255, 0.45);
  animation-delay: 0s;
}

.site-header-rails__beam--r {
  right: -2px;
  background: linear-gradient(180deg, transparent, var(--e-primary), var(--e-primary-light), transparent);
  box-shadow: 0 0 16px rgba(0, 74, 173, 0.35);
  animation-delay: 0.5s;
}

@keyframes site-header-rail-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scaleY(1);
  }
}

.site-header-bar--scrolled .site-header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header-shell {
  position: relative;
  z-index: 1;
  border-radius: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(248, 250, 252, 0.76) 38%,
    rgba(241, 245, 249, 0.68) 52%,
    rgba(255, 255, 255, 0.9) 100%
  );
  box-shadow:
    0 12px 48px rgba(0, 53, 132, 0.11),
    0 0 0 1px rgba(0, 74, 173, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 -1px 0 rgba(0, 74, 173, 0.04) inset;
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  padding: 0.65rem 0.75rem 0.65rem 0.85rem;
  transition:
    box-shadow 0.45s var(--e-ease-out),
    border-color 0.45s ease,
    transform 0.5s var(--e-ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .site-header-shell {
    animation: site-header-shell-float 8s ease-in-out infinite;
  }
}

@keyframes site-header-shell-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.site-header-bar--scrolled .site-header-shell {
  animation: none;
  box-shadow:
    0 18px 56px rgba(0, 53, 132, 0.14),
    0 0 0 1px rgba(0, 74, 173, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  border-color: rgba(0, 74, 173, 0.18);
}

.site-header-shell--shine {
  overflow: hidden;
}

.site-header-shell--shine::before {
  content: '';
  position: absolute;
  inset: -50% -80%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-100%) rotate(6deg);
  animation: site-header-shine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes site-header-shine {
  0%,
  72%,
  100% {
    transform: translateX(-100%) rotate(6deg);
    opacity: 0;
  }
  78% {
    opacity: 0.55;
  }
  88% {
    transform: translateX(100%) rotate(6deg);
    opacity: 0;
  }
}

.site-header-shell__edge,
.site-header-shell__corners {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.site-header-shell__edge {
  box-shadow:
    inset 0 -2px 14px -3px rgba(43, 124, 255, 0.14),
    inset 0 -1px 0 rgba(0, 74, 173, 0.1);
}

.site-header-shell__corners {
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(43, 124, 255, 0.09), transparent 55%),
    radial-gradient(100% 80% at 100% 100%, rgba(0, 74, 173, 0.1), transparent 52%);
}

@media (prefers-reduced-motion: no-preference) {
  .site-header-shell__edge {
    animation: site-header-edge-breathe 5.5s ease-in-out infinite;
  }
}

@keyframes site-header-edge-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

.site-header-shell > .site-brand,
.site-header-shell > .site-nav-cluster,
.site-header-shell > .site-header-actions {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .site-header-shell {
    padding: 0.65rem 1rem 0.65rem 1.1rem;
  }
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #0f172a;
}

.site-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow: 0 4px 16px rgba(0, 53, 132, 0.08), inset 0 1px 0 #fff;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s var(--e-ease-spring);
}

.site-brand:hover .site-brand__mark {
  box-shadow: 0 8px 26px rgba(0, 74, 173, 0.14);
  transform: translateY(-1px);
}

.site-brand__img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 6.75rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-brand__img {
    height: 2.35rem;
    max-width: 7.75rem;
  }
}

.site-brand__wordmark {
  font-family: var(--emlak-font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(105deg, var(--e-primary) 0%, #2563eb 50%, var(--e-primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-brand--drawer .site-brand__wordmark {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #0f172a;
  font-size: 1.05rem;
}

/* Entrée du header : latéral / centre (une fois au chargement) */
@media (prefers-reduced-motion: no-preference) {
  .site-brand--enter-left {
    animation: site-enter-from-left 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-nav-cluster--enter {
    animation: site-enter-from-bottom 0.88s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header-actions--enter {
    animation: site-enter-from-right 0.95s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes site-enter-from-left {
  from {
    opacity: 0;
    transform: translate3d(-44px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes site-enter-from-right {
  from {
    opacity: 0;
    transform: translate3d(44px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes site-enter-from-bottom {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.site-nav-pill {
  position: relative;
  box-shadow:
    0 2px 16px rgba(0, 53, 132, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    box-shadow 0.4s var(--e-ease-out),
    border-color 0.35s ease,
    transform 0.35s var(--e-ease-out);
}

.site-nav-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(43, 124, 255, 0.22),
    rgba(255, 255, 255, 0.08) 40%,
    rgba(0, 74, 173, 0.12) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.4s ease;
}

.site-nav-cluster:hover .site-nav-pill::before {
  opacity: 1;
}

.site-nav-cluster:hover .site-nav-pill {
  box-shadow:
    0 8px 32px rgba(0, 74, 173, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 74, 173, 0.14);
}

/* Nav liens (pilule) */
.site-nav-link {
  position: relative;
  transition:
    color 0.3s var(--e-ease-out),
    background-color 0.3s var(--e-ease-out),
    transform 0.3s var(--e-ease-spring);
}

.site-nav-link--pill {
  border-radius: 9999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.site-nav-link--pill::after {
  display: none;
}

.site-nav-link--pill:hover {
  transform: translateY(-1px);
  color: var(--e-primary-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 74, 173, 0.08);
}

.site-nav-link--pill.is-active {
  color: var(--e-primary);
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.14), rgba(43, 124, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 12px rgba(0, 74, 173, 0.08);
}

.site-header-cta {
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, var(--e-primary) 0%, #0058d0 45%, var(--e-primary-light) 100%);
  box-shadow:
    0 6px 22px rgba(0, 74, 173, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.3s var(--e-ease-out),
    box-shadow 0.3s ease,
    filter 0.2s ease;
}

.site-header-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-130%);
  animation: site-cta-sheen 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes site-cta-sheen {
  0%,
  60%,
  100% {
    transform: translateX(-130%);
  }
  68% {
    transform: translateX(130%);
  }
}

.site-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 74, 173, 0.45);
  filter: brightness(1.04);
}

.site-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.32rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #64748b;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.site-lang-link:hover {
  color: var(--e-primary-dark);
  background: rgba(0, 74, 173, 0.06);
}

.site-lang-link--active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--e-primary), var(--e-primary-light)) !important;
  box-shadow: 0 2px 12px rgba(0, 74, 173, 0.25);
}

.site-header-menu-btn {
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 12px rgba(0, 53, 132, 0.06);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.site-header-menu-btn:hover {
  background: #fff;
}

.site-header-menu-btn:active {
  transform: scale(0.97);
}

/* Drawer mobile */
.site-drawer,
#mobile-drawer {
  will-change: transform;
  box-shadow: 12px 0 48px rgba(0, 35, 90, 0.14);
}

.site-drawer-link {
  display: block;
  border-radius: 0.85rem;
  padding: 0.65rem 0.9rem;
  color: #1e293b;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.site-drawer-link:hover {
  background: rgba(0, 74, 173, 0.08);
  color: var(--e-primary);
}

.site-drawer-cta {
  display: block;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, var(--e-primary), #0060df);
  box-shadow: 0 8px 28px rgba(0, 74, 173, 0.35);
}

.site-drawer-cta:hover {
  filter: brightness(1.05);
}

#mobile-drawer .site-drawer-link {
  opacity: 0;
  transform: translateX(-12px);
}

#mobile-drawer.translate-x-0 .site-drawer-link {
  animation: site-drawer-link-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#mobile-drawer.translate-x-0 .site-drawer-link:nth-child(1) {
  animation-delay: 0.04s;
}
#mobile-drawer.translate-x-0 .site-drawer-link:nth-child(2) {
  animation-delay: 0.08s;
}
#mobile-drawer.translate-x-0 .site-drawer-link:nth-child(3) {
  animation-delay: 0.12s;
}
#mobile-drawer.translate-x-0 .site-drawer-link:nth-child(4) {
  animation-delay: 0.16s;
}
#mobile-drawer.translate-x-0 .site-drawer-link:nth-child(5) {
  animation-delay: 0.2s;
}
#mobile-drawer.translate-x-0 .site-drawer-link:nth-child(6) {
  animation-delay: 0.24s;
}
#mobile-drawer.translate-x-0 .site-drawer-cta {
  animation: site-drawer-link-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
  opacity: 0;
}

#mobile-drawer:not(.translate-x-0) .site-drawer-link,
#mobile-drawer:not(.translate-x-0) .site-drawer-cta {
  animation: none !important;
  opacity: 1;
  transform: none;
}

@keyframes site-drawer-link-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#drawer-overlay {
  transition: opacity 0.4s var(--e-ease-out);
}

/* Cartes glass */
.site-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 48%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 4px 24px rgba(0, 53, 132, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 0.5s var(--e-ease-out),
    box-shadow 0.5s var(--e-ease-out),
    border-color 0.4s ease;
}

.site-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--e-primary), var(--e-primary-light), #38bdf8);
  opacity: 0;
  transition: opacity 0.45s var(--e-ease-out);
  pointer-events: none;
  border-radius: 1.5rem 1.5rem 0 0;
}

.site-card:hover::after {
  opacity: 1;
}

.site-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 20px 40px rgba(0, 74, 173, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border-color: rgba(0, 74, 173, 0.15);
}

/* Boutons CTA */
.site-btn-primary {
  background: linear-gradient(135deg, var(--e-primary) 0%, #0060e0 50%, var(--e-primary-light) 100%);
  background-size: 200% 200%;
  transition:
    background-position 0.6s var(--e-ease-out),
    transform 0.35s var(--e-ease-spring),
    box-shadow 0.4s ease;
  box-shadow: 0 8px 28px rgba(0, 74, 173, 0.35);
}

.site-btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 74, 173, 0.4);
}

.site-btn-ghost {
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s var(--e-ease-spring),
    background-color 0.35s ease;
}

.site-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 74, 173, 0.35);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Révélation au scroll — vertical par défaut, latéral si data-reveal-lateral */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal]:not([data-reveal-lateral]) {
  transform: translate3d(0, 18px, 0);
}

[data-reveal][data-reveal-lateral='left'] {
  transform: translate3d(-72px, 12px, 0);
}

[data-reveal][data-reveal-lateral='right'] {
  transform: translate3d(72px, 12px, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Galerie captures : pas de translate sur la figure (tilt JS + animation sur le shell) */
.capture-gallery > .device-showcase[data-reveal] {
  opacity: 0;
  transform: none;
  transition: opacity 0.85s var(--e-ease-out);
  transition-delay: var(--enter-delay, 0s);
}

.capture-gallery > .device-showcase[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Délais échelonnés (enfants) */
.reveal-stagger > [data-reveal] {
  --reveal-delay: calc(var(--i, 0) * 0.055s);
}

/* Lottie containers */
.site-lottie {
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 251, 0.9) 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 40px rgba(0, 53, 132, 0.08);
}

/* Footer — premium sombre, logo sur badge clair (sans filtres qui cassent le PNG) */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(165deg, #0a0f1a 0%, #060912 42%, #03050a 100%);
  color: #94a3b8;
}

.site-footer__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 12% 88%, rgba(0, 74, 173, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(43, 124, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(99, 102, 241, 0.06), transparent 60%);
}

.site-footer__mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  animation: site-footer-mesh-drift 45s linear infinite;
  opacity: 0.85;
}

.site-footer__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-footer__ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.48;
  animation: site-footer-orb-float 18s ease-in-out infinite;
}

.site-footer__ambient-orb--a {
  width: min(56vw, 360px);
  height: min(56vw, 360px);
  left: -14%;
  top: 5%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.38) 0%, transparent 70%);
}

.site-footer__ambient-orb--b {
  width: min(48vw, 300px);
  height: min(48vw, 300px);
  right: -10%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(43, 124, 255, 0.32) 0%, transparent 68%);
  animation-delay: -5.5s;
}

.site-footer__ambient-orb--c {
  width: min(40vw, 240px);
  height: min(40vw, 240px);
  left: 38%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.26) 0%, transparent 65%);
  animation-delay: -10s;
}

@keyframes site-footer-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.42;
  }
  38% {
    transform: translate(4%, -4%) scale(1.06);
    opacity: 0.58;
  }
  72% {
    transform: translate(-4%, 3%) scale(0.97);
    opacity: 0.48;
  }
}

@keyframes site-footer-mesh-drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(32px, 32px);
  }
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

/* Rails verticaux latéraux (footer) */
.site-footer__inner--rails::before,
.site-footer__inner--rails::after {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(43, 124, 255, 0.35) 25%,
    rgba(0, 74, 173, 0.45) 50%,
    rgba(43, 124, 255, 0.3) 75%,
    transparent
  );
  pointer-events: none;
  opacity: 0.65;
  animation: site-footer-rail-fade 4s ease-in-out infinite;
}

.site-footer__inner--rails::before {
  left: 0;
  animation-delay: 0s;
}

.site-footer__inner--rails::after {
  right: 0;
  animation-delay: 1s;
}

@keyframes site-footer-rail-fade {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@media (max-width: 639px) {
  .site-footer__inner--rails::before,
  .site-footer__inner--rails::after {
    display: none;
  }
}

/* Bandeau CTA + panneau vitré (footer) */
.site-footer__promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.2rem 1.35rem 1.2rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(125deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.42));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  position: relative;
  overflow: hidden;
}

.site-footer__promo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--e-primary-light), var(--e-primary));
  border-radius: 1.15rem 0 0 1.15rem;
  opacity: 0.95;
  z-index: 1;
}

.site-footer__promo > * {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .site-footer__promo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.055) 50%, transparent 62%);
    transform: translateX(-120%);
    animation: site-footer-promo-sheen 9s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes site-footer-promo-sheen {
  0%,
  74%,
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  90% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.site-footer__promo-text {
  margin: 0;
  max-width: 34rem;
  font-size: 0.96875rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.site-footer__promo-kicker {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  font-family: var(--emlak-font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.55), rgba(43, 124, 255, 0.38));
  border: 1px solid rgba(56, 189, 248, 0.22);
  vertical-align: middle;
}

.site-footer__promo-lead {
  display: inline;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

@media (max-width: 639px) {
  .site-footer__promo-lead {
    display: block;
    margin-top: 0.65rem;
    font-size: 1.05rem;
  }
}

.site-footer__promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, var(--e-primary), var(--e-primary-light));
  box-shadow: 0 8px 28px rgba(0, 74, 173, 0.38);
  transition:
    transform 0.35s var(--e-ease-out),
    box-shadow 0.35s ease;
  flex-shrink: 0;
}

.site-footer__promo-btn:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 36px rgba(0, 74, 173, 0.45);
}

.site-footer__panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.35rem 1.85rem;
  margin-bottom: 0.15rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.52) 0%, rgba(15, 23, 42, 0.32) 100%);
  backdrop-filter: blur(26px) saturate(1.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(43, 124, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-footer__panel[data-reveal] {
  --reveal-delay: 0.08s;
}

.site-footer__panel-shine {
  position: absolute;
  inset: -45% -70%;
  z-index: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  transform: translateX(-100%) rotate(7deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-footer__panel-shine {
    animation: site-footer-panel-shine 10s ease-in-out infinite;
  }
}

@keyframes site-footer-panel-shine {
  0%,
  68%,
  100% {
    transform: translateX(-100%) rotate(7deg);
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
  86% {
    transform: translateX(100%) rotate(7deg);
    opacity: 0;
  }
}

.site-footer__panel .site-footer__grid {
  position: relative;
  z-index: 1;
}

@media (max-width: 639px) {
  .site-footer__panel {
    padding: 1.2rem 1rem 1.5rem;
  }

  .site-footer__promo {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding-left: 1.25rem;
  }

  .site-footer__promo-btn {
    width: 100%;
  }
}

.site-footer__promo[data-reveal] {
  --reveal-delay: 0.02s;
}

.site-footer__grid > [data-reveal]:nth-child(1) {
  --reveal-delay: 0.04s;
}
.site-footer__grid > [data-reveal]:nth-child(2) {
  --reveal-delay: 0.12s;
}
.site-footer__grid > [data-reveal]:nth-child(3) {
  --reveal-delay: 0.2s;
}

.site-footer__bar[data-reveal] {
  --reveal-delay: 0.32s;
}

.site-footer__accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--e-primary) 18%,
    var(--e-primary-light) 50%,
    var(--e-primary) 82%,
    transparent
  );
  opacity: 0.9;
  pointer-events: none;
}

.site-footer__accent::after {
  content: '';
  position: absolute;
  inset: 3px 0 auto 0;
  height: 120px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 74, 173, 0.12), transparent 70%);
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__brand-col {
  max-width: 26rem;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.25rem;
  transition: transform 0.4s var(--e-ease-out);
}

.site-footer-brand:hover {
  transform: translateY(-3px);
}

.site-footer-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.site-footer-brand__name {
  font-family: var(--emlak-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  line-height: 1.1;
}

.site-footer-brand__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.site-footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.site-footer-brand:hover .site-footer-brand__mark {
  box-shadow:
    0 16px 48px rgba(0, 74, 173, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(43, 124, 255, 0.35);
}

.site-footer-brand__img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-footer-brand__img {
    height: 2.75rem;
    max-width: 11rem;
  }
}

.site-footer__tagline {
  margin: 1.15rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #94a3b8;
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  font-family: var(--emlak-font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.site-footer__heading::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--e-primary-light), var(--e-primary));
  box-shadow: 0 0 12px rgba(43, 124, 255, 0.65);
  animation: site-footer-pulse 2.8s ease-in-out infinite;
}

@keyframes site-footer-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15);
  }
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.site-footer__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--e-primary-light), var(--e-primary));
  transition: width 0.35s var(--e-ease-out);
}

.site-footer__link:hover {
  color: #fff;
  transform: translateX(4px);
}

.site-footer__link:hover::after {
  width: 100%;
}

.site-footer__bar {
  margin-top: 3rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(125deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.38));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
}

.site-footer__bar::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(43, 124, 255, 0.35), transparent);
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.site-footer__bar > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .site-footer__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.site-footer__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.site-footer__bar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

/* Partenaire Proprio237 (aligné sur l’app — lien officiel proprio237.com/app/) */
.site-footer__partner {
  margin-top: 2.75rem;
}

.site-footer__partner-heading {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--emlak-font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .site-footer__partner-heading {
    text-align: left;
  }
}

.site-footer__proprio-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.2rem;
  border-radius: 1.2rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(0, 74, 173, 0.16), rgba(15, 23, 42, 0.45));
  border: 1px solid rgba(43, 124, 255, 0.28);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.45s var(--e-ease-out),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.site-footer__proprio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    0 20px 48px rgba(0, 53, 132, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer__proprio-logo {
  flex-shrink: 0;
  border-radius: 0.85rem;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.site-footer__proprio-body {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__proprio-brand {
  font-family: var(--emlak-font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.site-footer__proprio-sub {
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  color: #94a3b8;
}

.site-footer__proprio-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #7dd3fc;
  white-space: nowrap;
}

.site-footer__proprio-arrow {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.95;
}

@media (max-width: 639px) {
  .site-footer__proprio-cta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.25rem;
  }
}

.site-footer__bar-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer__bar-link:hover {
  color: #fff;
}

/* ─── Page d’accueil : sections animées & hiérarchie éditoriale ─── */
@media (min-width: 768px) {
  body.home-page .home-hero {
    min-height: min(88vh, 52rem);
  }
}

/* Hero : photo Unsplash + motif SVG (voir licence Unsplash dans le HTML) */
.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-hero__photo {
  position: absolute;
  inset: 0;
}

.home-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.17;
  filter: saturate(0.72) contrast(1.05);
}

.home-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/svgs/buildings_background.svg');
  background-repeat: repeat;
  background-size: 380px 190px;
  opacity: 0.07;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__photo img {
    opacity: 0.11;
  }
}

/* Pages intérieures — en-tête avec photo + motif (même ressources que l’accueil) */
.page-hero-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-x: clip;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(
    165deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(239, 246, 255, 0.92) 45%,
    rgba(255, 255, 255, 1) 100%
  );
  min-height: min(44vh, 26rem);
}

@media (min-width: 768px) {
  .page-hero-top {
    min-height: min(40vh, 28rem);
  }
}

.page-hero-top .home-hero__media {
  min-height: 100%;
}

.page-hero-top .home-hero__photo img {
  opacity: 0.14;
  max-height: 22rem;
  object-position: center 25%;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero-top .home-hero__photo img {
    transition: opacity 0.6s ease, transform 1.2s var(--e-ease-out);
  }
}

.page-hero-top .home-hero__pattern {
  opacity: 0.065;
  background-image:
    url('../assets/svgs/buildings_background.svg'),
    radial-gradient(circle at 1px 1px, rgba(0, 74, 173, 0.22) 1px, transparent 0);
  background-size:
    380px 190px,
    22px 22px;
}

.page-hero-top .home-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 12% 25%, rgba(0, 74, 173, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 15%, rgba(43, 124, 255, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(255, 255, 255, 0.55) 100%);
  mix-blend-mode: multiply;
}

.page-hero-top .home-hero__media + .relative > p:first-of-type,
.page-hero-top .home-hero__media + .relative > header p:first-of-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.75));
  border: 1px solid rgba(0, 74, 173, 0.12);
  box-shadow: 0 8px 28px rgba(0, 53, 132, 0.06);
}

.page-hero-top .home-hero__media + .relative.text-center > p:first-of-type,
.page-hero-top .home-hero__media + .relative.text-center > header p:first-of-type {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-top .home-hero__media + .relative h1 {
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .page-hero-top .home-hero__media + .relative h1 {
    line-height: 1.08;
  }
}

/* Bandeau fin de page : rappel captures + CTA */
.page-capture-promo {
  position: relative;
}

.page-capture-promo__grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .page-capture-promo__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.page-capture-promo__img {
  max-height: 15rem;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px rgba(0, 53, 132, 0.1);
}

/* Bandeau captures (vrais screenshots) */
.home-capture-banner {
  position: relative;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.home-capture-banner__img-main {
  max-height: min(50vh, 480px);
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 767px) {
  .home-capture-banner__img-main {
    max-height: min(62vh, 420px);
  }
}

/* Bannière photo stock + calque */
.home-stock-banner {
  position: relative;
  isolation: isolate;
  min-height: 17rem;
}

.home-stock-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-stock-banner__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.home-stock-banner__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/svgs/buildings_background.svg');
  background-repeat: repeat;
  background-size: 420px 210px;
  opacity: 0.14;
  mix-blend-mode: soft-light;
}

.home-stock-banner__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(0, 53, 132, 0.88) 0%,
    rgba(0, 74, 173, 0.82) 42%,
    rgba(15, 23, 42, 0.75) 100%
  );
}

.home-hero__sweep {
  pointer-events: none;
  position: absolute;
  inset: -30% -20%;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(43, 124, 255, 0.06) 52%,
    transparent 64%
  );
  transform: translateX(-18%) rotate(-6deg);
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__sweep {
    animation: home-hero-sweep 11s ease-in-out infinite;
  }
}

@keyframes home-hero-sweep {
  0%,
  55%,
  100% {
    transform: translateX(-22%) rotate(-6deg);
    opacity: 0.55;
  }
  65% {
    opacity: 0.95;
  }
  75% {
    transform: translateX(18%) rotate(-6deg);
    opacity: 0.55;
  }
}

.home-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.home-section--band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.82) 100%) !important;
}

.home-section--deep {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 74, 173, 0.06), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-section__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.home-section__ambient--soft {
  background:
    radial-gradient(ellipse 55% 40% at 12% 20%, rgba(0, 74, 173, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 88% 80%, rgba(43, 124, 255, 0.06), transparent 50%);
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .home-section__ambient--soft {
    animation: home-ambient-drift 28s ease-in-out infinite;
  }

  .home-page .home-section__ambient--grid {
    animation: home-grid-fade 22s ease-in-out infinite;
  }
}

@keyframes home-ambient-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate(1.5%, -1.2%) scale(1.02);
    opacity: 1;
  }
}

@keyframes home-grid-fade {
  0%,
  100% {
    opacity: 0.58;
  }
  50% {
    opacity: 0.72;
  }
}

.home-section__ambient--grid {
  background-image:
    linear-gradient(rgba(0, 74, 173, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 74, 173, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 15%, transparent 75%);
  opacity: 0.65;
}

.home-section__rail {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(43, 124, 255, 0.35) 30%,
    rgba(0, 74, 173, 0.4) 50%,
    rgba(43, 124, 255, 0.28) 70%,
    transparent
  );
  opacity: 0.55;
  z-index: 0;
  box-shadow: 0 0 18px rgba(43, 124, 255, 0.2);
}

@media (max-width: 767px) {
  .home-section__rail {
    display: none;
  }
}

.home-section__rail--left {
  left: 0;
}

.home-section__rail--right {
  right: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .home-section__rail {
    animation: home-rail-pulse 4.5s ease-in-out infinite;
  }
}

@keyframes home-rail-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleY(0.96);
  }
  50% {
    opacity: 0.72;
    transform: scaleY(1);
  }
}

.home-head--center {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.home-head__eyebrow {
  display: inline-block;
  font-family: var(--emlak-font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--e-primary);
  padding: 0.4rem 0.95rem 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.09), rgba(43, 124, 255, 0.06));
  border: 1px solid rgba(0, 74, 173, 0.12);
  box-shadow: 0 6px 22px rgba(0, 53, 132, 0.07);
}

.home-head__eyebrow--violet {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(139, 92, 246, 0.06));
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.1);
}

.home-head__title {
  font-family: var(--emlak-font-display);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.home-head__lead {
  text-wrap: balance;
}

.home-showcase.capture-showcase-section {
  position: relative;
}

body.home-page .home-platform-tile {
  transition:
    transform 0.5s var(--e-ease-out),
    box-shadow 0.5s var(--e-ease-out),
    border-color 0.35s ease;
}

body.home-page .home-platform-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 24px 48px rgba(0, 74, 173, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

body.home-page .home-journey-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--e-ease-out),
    box-shadow 0.45s ease;
}

body.home-page .home-journey-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(43, 124, 255, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

body.home-page .home-journey-card:hover::before {
  opacity: 1;
}

body.home-page .home-journey-card:hover {
  transform: translateY(-5px);
}

.home-doc-list__icon {
  transition: transform 0.35s var(--e-ease-spring), background-color 0.3s ease;
}

.home-doc-list li:hover .home-doc-list__icon {
  transform: scale(1.06);
  background-color: rgba(0, 74, 173, 0.14);
}

.home-next-card__shine {
  position: absolute;
  inset: -40% -50%;
  background: linear-gradient(110deg, transparent 40%, rgba(43, 124, 255, 0.12) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.home-next-card:hover .home-next-card__shine {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .home-next-card:hover .home-next-card__shine {
    animation: home-card-shine-pass 1.2s ease-out;
  }
}

.home-next-card__shine--violet {
  background: linear-gradient(110deg, transparent 40%, rgba(139, 92, 246, 0.14) 50%, transparent 60%);
}

.home-next-card__shine--emerald {
  background: linear-gradient(110deg, transparent 40%, rgba(16, 185, 129, 0.14) 50%, transparent 60%);
}

@keyframes home-card-shine-pass {
  0% {
    transform: translateX(-30%) rotate(6deg);
  }
  100% {
    transform: translateX(30%) rotate(6deg);
  }
}

.home-trust__inner {
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)) !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow:
    0 28px 70px rgba(0, 53, 132, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
}

@media (prefers-reduced-motion: no-preference) {
  .home-trust__pill {
    transition: transform 0.35s var(--e-ease-out);
  }

  .home-trust__inner:hover .home-trust__pill {
    transform: translateY(-2px);
  }
}

/* Accueil — micro-réassurance hero */
.hero-micro-trust {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Section « Pourquoi » */
.home-section--value {
  position: relative;
  isolation: isolate;
}

body.home-page .home-value-card {
  transition:
    transform 0.45s var(--e-ease-out),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

body.home-page .home-value-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 48px rgba(0, 53, 132, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border-color: rgba(0, 74, 173, 0.22);
}

/* FAQ accordéon */
.home-faq__summary {
  list-style: none;
  position: relative;
  padding-right: 1.75rem;
}

.home-faq__summary::-webkit-details-marker {
  display: none;
}

.home-faq__summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--e-primary);
  border-bottom: 2px solid var(--e-primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s var(--e-ease-out);
  opacity: 0.75;
}

.home-faq__item[open] .home-faq__summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.home-faq__item[open] {
  border-color: rgba(0, 74, 173, 0.2);
  box-shadow: 0 12px 36px rgba(0, 53, 132, 0.08);
}

/* Bandeau CTA final (conversion) */
.home-cta-final {
  position: relative;
  isolation: isolate;
  background: linear-gradient(125deg, #003584 0%, #004aad 38%, #1e5fd4 72%, #2563eb 100%);
}

.home-cta-final__glow {
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(43, 124, 255, 0.35), transparent 50%);
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  .home-cta-final__glow {
    animation: home-cta-final-glow 14s ease-in-out infinite;
  }
}

@keyframes home-cta-final-glow {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* Loader layout (évite flash avant injection nav) */
.layout-ph {
  min-height: 5.25rem;
}

/* ─── Section galerie captures (mockup + grille responsive) ─── */
.capture-showcase-section {
  position: relative;
  overflow-x: clip;
}

.capture-showcase-ambient {
  pointer-events: none;
  position: absolute;
  inset: 10% -20% 20% -20%;
  background:
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(0, 74, 173, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(99, 102, 241, 0.1), transparent 50%);
  z-index: 0;
}

.capture-showcase-inner {
  position: relative;
  z-index: 1;
}

/* Conteneur : carrousel scroll snap sur mobile, grille sur md+ */
.capture-gallery {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.5rem 0.5rem 2.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 1rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 74, 173, 0.35) transparent;
}

.capture-gallery::-webkit-scrollbar {
  height: 6px;
}
.capture-gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 74, 173, 0.35);
  border-radius: 999px;
}

@media (min-width: 768px) {
  .capture-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    overflow: visible;
    padding: 1rem 0 2rem;
    mask-image: none;
    scroll-snap-type: none;
  }

  .capture-gallery > .device-showcase:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  .capture-gallery > .device-showcase:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }
  .capture-gallery > .device-showcase:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
  }
  .capture-gallery > .device-showcase:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }
  .capture-gallery > .device-showcase:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }
  .capture-gallery > .device-showcase:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  .capture-gallery > .device-showcase:nth-child(7) {
    grid-column: 1;
    grid-row: 5;
  }
  .capture-gallery > .device-showcase:nth-child(8) {
    grid-column: 2;
    grid-row: 5;
  }
}

/* Carte mockup téléphone */
.device-showcase {
  --enter-delay: 0s;
  flex: 0 0 min(100% - 2.5rem, 340px);
  scroll-snap-align: center;
  margin: 0 auto;
  perspective: 1200px;
}

.capture-gallery > .device-showcase:nth-child(2) { --enter-delay: 0.07s; }
.capture-gallery > .device-showcase:nth-child(3) { --enter-delay: 0.14s; }
.capture-gallery > .device-showcase:nth-child(4) { --enter-delay: 0.21s; }
.capture-gallery > .device-showcase:nth-child(5) { --enter-delay: 0.28s; }
.capture-gallery > .device-showcase:nth-child(6) { --enter-delay: 0.35s; }
.capture-gallery > .device-showcase:nth-child(7) { --enter-delay: 0.42s; }
.capture-gallery > .device-showcase:nth-child(8) { --enter-delay: 0.49s; }

@media (min-width: 768px) {
  .device-showcase {
    flex: none;
    scroll-snap-align: unset;
    margin: 0;
    max-width: none;
  }
}

.device-shell {
  position: relative;
  border-radius: 2.75rem;
  padding: 0.65rem;
  background: linear-gradient(160deg, #334155 0%, #0f172a 45%, #1e293b 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 56px rgba(0, 35, 90, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition: box-shadow 0.65s ease;
}

.device-showcase.is-visible .device-shell {
  animation: device-enter 0.9s var(--e-ease-out) both;
  animation-delay: var(--enter-delay);
}

.device-float-inner {
  transform-style: preserve-3d;
}

.device-showcase.is-visible .device-float-inner {
  animation: device-float 6.8s ease-in-out calc(var(--enter-delay) + 0.9s) infinite;
}

@keyframes device-enter {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.94) rotateX(8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@keyframes device-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.device-showcase:hover .device-shell {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.15) inset,
    0 36px 72px rgba(0, 74, 173, 0.28),
    0 0 0 1px rgba(59, 130, 246, 0.2);
}

.device-showcase:hover .device-screen-img {
  transform: scale(1.02);
}

.device-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  z-index: 2;
  width: 5.5rem;
  height: 1.35rem;
  margin-left: -2.75rem;
  border-radius: 999px;
  background: #0a0f1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset;
}

.device-screen-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2.1rem;
  background: #0f172a;
  aspect-ratio: 750 / 1624;
  max-height: 78vh;
}

@media (min-width: 768px) {
  .device-screen-wrap {
    max-height: none;
  }

  .capture-gallery > .device-showcase:nth-child(1) .device-screen-wrap {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .capture-gallery > .device-showcase:nth-child(6) .device-screen-wrap {
    aspect-ratio: 21 / 9;
    max-height: 340px;
  }

  .capture-gallery > .device-showcase:nth-child(6) .device-screen-img {
    object-fit: cover;
    object-position: top center;
    height: 100%;
    width: 100%;
  }
}

.device-screen-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transform-origin: center center;
  transition: transform 0.7s var(--e-ease-out);
}

.device-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 2.1rem;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 58%
  );
  background-size: 200% 200%;
  animation: device-shine 4.5s ease-in-out infinite;
  opacity: 0.85;
  z-index: 1;
}

@keyframes device-shine {
  0%,
  100% {
    background-position: 130% 50%;
  }
  50% {
    background-position: -30% 50%;
  }
}

figure.device-showcase > .device-legend {
  margin-top: 0.85rem;
}

.device-legend {
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e2e8f0;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .device-legend {
    font-size: 0.8125rem;
    text-align: left;
  }

  .capture-gallery > .device-showcase:nth-child(1) .device-legend {
    font-size: 0.875rem;
  }
}

/* Contrôles carrousel (mobile / tablette < md) */
.capture-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.capture-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
  color: var(--e-primary);
  box-shadow: 0 4px 16px rgba(0, 74, 173, 0.15);
  cursor: pointer;
  transition:
    transform 0.25s var(--e-ease-spring),
    box-shadow 0.25s ease;
}

.capture-nav-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 74, 173, 0.22);
}

.capture-nav-btn:active {
  transform: scale(0.96);
}

.capture-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 12rem;
}

.capture-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 74, 173, 0.22);
  cursor: pointer;
  transition:
    transform 0.35s var(--e-ease-out),
    width 0.35s var(--e-ease-out),
    background 0.35s ease;
}

.capture-dot[aria-current='true'] {
  width: 1.35rem;
  background: var(--e-primary);
  transform: scaleY(1.1);
}

/* Ancien utilitaire (si utilisé ailleurs) */
.capture-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  padding: 0.5rem;
  box-shadow:
    0 24px 48px rgba(0, 53, 132, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition:
    transform 0.55s var(--e-ease-out),
    box-shadow 0.55s var(--e-ease-out);
}

.capture-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 32px 64px rgba(0, 74, 173, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.capture-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  vertical-align: middle;
}

.platform-pill {
  transition:
    transform 0.4s var(--e-ease-spring),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.platform-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 74, 173, 0.12);
}

@media (min-width: 768px) {
  .layout-ph {
    min-height: 5.5rem;
  }
}

/* ─── Ecom : typewriter, rotateur, ripple, glass, bounce scroll ─── */
.ecom-glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.72) 100%);
  box-shadow:
    0 4px 24px rgba(0, 53, 132, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.ecom-glass-badge {
  box-shadow:
    0 8px 32px rgba(0, 74, 173, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition:
    transform 0.45s var(--e-ease-spring),
    box-shadow 0.45s ease;
}

.ecom-glass-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 40px rgba(0, 74, 173, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.ecom-typewriter {
  display: inline;
  min-height: 1.2em;
}

.ecom-typewriter-text {
  font-weight: inherit;
  color: inherit;
}

.ecom-typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--e-primary-light), var(--e-primary));
  animation: ecom-cursor-blink 0.95s steps(1, end) infinite;
}

@keyframes ecom-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.ecom-text-rotator-viewport--js {
  display: block;
  overflow: hidden;
  position: relative;
  min-height: 1.75em;
  line-height: 1.5;
}

.ecom-text-rotator-track {
  will-change: transform;
}

.ecom-text-rotator-line {
  display: block;
  padding: 0.1em 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecom-text-rotator--stopped .ecom-text-rotator-track {
  display: none !important;
}

.ecom-hero-search-input:focus {
  outline: none;
}

.ecom-ripple-el {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
  animation: ecom-ripple-expand 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}

.site-btn-primary .ecom-ripple-el {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
}

@keyframes ecom-ripple-expand {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

[data-ecom-bounce-in] {
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  filter: blur(2px);
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.85s ease;
}

[data-ecom-bounce-in].ecom-bounce-in--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.ecom-link-animated {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ecom-link-animated::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--e-primary), var(--e-primary-light));
  transition: width 0.4s var(--e-ease-out);
}

.ecom-link-animated:hover::after {
  width: 100%;
}

.ecom-parallax-blob {
  will-change: transform;
}

.site-btn-primary:active,
.site-btn-ghost:active {
  transform: scale(0.96);
}

.site-btn-primary:active {
  transform: scale(0.96) translateY(1px);
}

[data-ecom-magnetic] {
  transition: transform 0.35s var(--e-ease-out);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-bg-mesh::before,
  .site-bg-mesh::after {
    animation: none;
  }

  .site-card:hover {
    transform: none;
  }

  .site-card::after {
    opacity: 0 !important;
  }

  .page-hero-top .home-hero__photo img {
    transform: none !important;
    transition: none !important;
  }

  body.home-page .home-hero.hero-section::after {
    opacity: 0.75;
  }

  .capture-frame:hover {
    transform: none;
  }

  .platform-pill:hover {
    transform: none;
  }

  .site-btn-primary:hover,
  .site-btn-ghost:hover,
  .site-nav-link:hover {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .capture-gallery > .device-showcase[data-reveal],
  .capture-gallery > .device-showcase[data-reveal].is-visible {
    opacity: 1;
  }

  .capture-scroll {
    scroll-behavior: auto;
  }

  .device-showcase.is-visible .device-shell,
  .device-showcase.is-visible .device-float-inner {
    animation: none !important;
  }

  .device-shine {
    animation: none !important;
    opacity: 0.35;
  }

  .device-showcase:hover .device-screen-img {
    transform: none;
  }

  .capture-gallery {
    scroll-behavior: auto;
  }

  .ecom-typewriter-cursor {
    animation: none;
    opacity: 1;
  }

  [data-ecom-bounce-in] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .site-scroll-progress__fill {
    animation: none;
    background: linear-gradient(90deg, var(--e-primary), var(--e-primary-light));
    transition: width 0.05s linear;
  }

  .site-scroll-progress__knob {
    animation: none;
    transition: left 0.05s linear;
  }

  .site-scroll-progress__tail {
    animation: none;
    opacity: 0.75;
  }

  .site-scroll-progress-rail {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .site-scroll-progress-rail__fill {
    animation: none;
    background: linear-gradient(180deg, var(--e-primary), var(--e-primary-light));
    transition: height 0.05s linear;
  }

  .site-scroll-progress-rail__tail {
    animation: none;
    opacity: 0.7;
  }

  .site-scroll-progress-rail__knob {
    animation: none;
    transition: top 0.05s linear;
  }

  .site-header-shell__edge {
    animation: none;
  }

  .site-header-rails__beam {
    animation: none;
    opacity: 0.4;
  }

  .site-header-ambient__orb {
    animation: none;
  }

  .site-header-shell {
    animation: none !important;
  }

  .site-brand--enter-left,
  .site-nav-cluster--enter,
  .site-header-actions--enter {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .site-footer__inner--rails::before,
  .site-footer__inner--rails::after {
    animation: none;
    opacity: 0.45;
  }

  .site-header-shell--shine::before {
    animation: none;
    opacity: 0;
  }

  .site-header-cta::after {
    animation: none;
  }

  .site-footer__mesh::before {
    animation: none;
  }

  .site-footer__ambient-orb {
    animation: none;
  }

  .site-footer__panel-shine {
    animation: none;
    opacity: 0;
  }

  .site-footer__heading::before {
    animation: none;
  }

  .site-footer-brand:hover {
    transform: none;
  }

  .home-hero__sweep {
    animation: none;
    opacity: 0.45;
  }

  .home-page .home-section__ambient--soft,
  .home-page .home-section__ambient--grid {
    animation: none;
  }

  .home-section__rail {
    animation: none;
    opacity: 0.45;
  }

  body.home-page .home-next-card:hover .home-next-card__shine {
    animation: none;
  }

  .home-trust__inner:hover .home-trust__pill {
    transform: none;
  }

  body.home-page .home-platform-tile:hover,
  body.home-page .home-journey-card:hover {
    transform: none;
  }

  #mobile-drawer .site-drawer-link,
  #mobile-drawer.translate-x-0 .site-drawer-link,
  #mobile-drawer.translate-x-0 .site-drawer-cta {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Espace locataire (portal) — même fond que le site */
.site-body.portal-page {
  background-color: #f4f6fb;
}

/* Accueil — fondu bas du hero vers la section suivante */
body.home-page .home-hero.hero-section {
  position: relative;
}

body.home-page .home-hero.hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: min(24vh, 180px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(244, 246, 251, 0.55) 55%,
    rgba(244, 246, 251, 0.98) 100%
  );
}

@media (max-width: 767px) {
  body.home-page .home-hero.hero-section::after {
    height: min(18vh, 140px);
  }
}

/* Pages légales (contenu aligné sur l'app) */
.legal-pre {
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Accessibilité : focus visible cohérent */
.site-body a:focus-visible,
.site-body button:focus-visible,
.site-body summary:focus-visible {
  outline: 2px solid var(--e-primary);
  outline-offset: 3px;
}

.site-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — icône recherche */
.site-header-icon-btn {
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.5rem;
  color: rgb(51 65 85);
  transition:
    background-color 0.2s var(--e-ease-out),
    color 0.2s var(--e-ease-out);
}

.site-header-icon-btn:hover {
  background-color: rgba(15, 23, 42, 0.06);
  color: rgb(15 23 42);
}

/* Footer — newsletter */
.site-footer__newsletter {
  margin-bottom: 1.25rem;
}

.site-footer__newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__newsletter-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(15 23 42);
}

.site-footer__newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--e-primary) 0%, var(--e-primary-dark) 100%);
  box-shadow: 0 8px 24px rgba(0, 74, 173, 0.25);
  transition: transform 0.2s var(--e-ease-out), box-shadow 0.2s var(--e-ease-out);
}

.site-footer__newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 74, 173, 0.32);
}

/* Recherche plein écran */
.site-search {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 2rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s var(--e-ease-out),
    visibility 0.2s var(--e-ease-out);
}

.site-search.site-search--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

body.site-search-open {
  overflow: hidden;
}

.site-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.site-search__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.site-search__input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: rgb(15 23 42);
}

.site-search__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: rgb(100 116 139);
}

.site-search__results {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.site-search__result {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.site-search__result:hover {
  background: rgba(0, 74, 173, 0.08);
}

.site-search__result-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: rgb(15 23 42);
}

.site-search__result-desc {
  font-size: 0.8125rem;
  color: rgb(100 116 139);
}

.site-search__empty {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgb(100 116 139);
}

@media (prefers-reduced-motion: reduce) {
  .site-search {
    transition: none;
  }
}
