* {
  box-sizing: border-box;
}

:root {
  --color-blue: #155fa3;
  --color-blue-dark: #0e4f8f;
  --color-blue-electric: #2dc6ff;
  --color-pink: #ea148c;
  --color-pink-glow: #ff3da3;
  --color-violet: #7a4dff;
  --color-ink: #102a43;
  --color-muted: #5f6f82;
  --color-soft: #f3f8fc;
  --shadow-soft: 0 18px 42px rgba(8, 41, 70, 0.10);
  --shadow-card: 0 12px 28px rgba(8, 41, 70, 0.12);
  --shadow-neon: 0 18px 50px rgba(45, 198, 255, 0.22), 0 8px 24px rgba(122, 77, 255, 0.18);
  --shadow-pink-glow: 0 18px 40px rgba(234, 20, 140, 0.32);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --gradient-aurora: linear-gradient(135deg, #155fa3 0%, #7a4dff 45%, #ea148c 100%);
  --gradient-cyber: linear-gradient(135deg, #0b3a6e 0%, #155fa3 35%, #2dc6ff 100%);
  --gradient-soft-bg: radial-gradient(circle at 12% 14%, rgba(45, 198, 255, 0.12) 0%, transparent 42%),
                       radial-gradient(circle at 88% 22%, rgba(21, 95, 163, 0.10) 0%, transparent 48%),
                       linear-gradient(180deg, #f4f9ff 0%, #eef4fb 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-base: 0.28s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  color: #102a43;
  background: var(--gradient-soft-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 18% 22%, rgba(45, 198, 255, 0.13), transparent 70%),
    radial-gradient(closest-side at 82% 30%, rgba(21, 95, 163, 0.10), transparent 70%);
  filter: blur(60px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(234, 20, 140, 0.75);
  outline-offset: 4px;
}

/* HEADER / MENU */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 24px 16px 0;
  pointer-events: none;
}

.main-nav {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: stretch;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(21, 95, 163, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(233, 247, 255, 0.72));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 46px rgba(8, 41, 70, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  pointer-events: auto;
  position: relative;
}

.main-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 9px;
  border-radius: 999px;
  color: #0e4f8f;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}

.main-nav-brand:hover {
  background: rgba(21, 95, 163, 0.08);
  transform: translateY(-1px);
}

.main-nav-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dc6ff, #155fa3);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(45, 198, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.main-nav-brand-mark svg {
  width: 17px;
  height: 17px;
}

.main-nav-links {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 95, 163, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.main-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #d8efff);
  color: #0e4f8f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(45, 198, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.main-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(45, 198, 255, 0.45);
}

.main-nav::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(45, 198, 255, 0.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.main-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #123d63;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.main-nav-links a:hover {
  color: #155fa3;
  text-decoration: none;
  opacity: 1;
  background: rgba(21, 95, 163, 0.09);
  transform: translateY(-1px);
}

.language-switcher {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 1000;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 95, 163, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(8, 41, 70, 0.10);
  backdrop-filter: blur(12px);
}

.language-switcher button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #155fa3;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: #155fa3;
  color: #ffffff;
}

/* HERO MODERNE */

.hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 92vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  margin-bottom: 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(45, 198, 255, 0.30) 0%, transparent 60%),
    linear-gradient(170deg, #04254d 0%, #0a3a72 35%, #0e4f8f 60%, #1672b8 100%);
}

.hero-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  pointer-events: none;
  will-change: transform;
}

.hero-mesh-a {
  width: 60vmax;
  height: 60vmax;
  top: -22vmax;
  left: -18vmax;
  background: radial-gradient(circle, rgba(67, 213, 255, 0.55) 0%, transparent 70%);
  animation: heroMeshA 28s ease-in-out infinite alternate;
}

.hero-mesh-b {
  width: 56vmax;
  height: 56vmax;
  bottom: -22vmax;
  right: -22vmax;
  background: radial-gradient(circle, rgba(45, 198, 255, 0.42) 0%, transparent 70%);
  animation: heroMeshB 34s ease-in-out infinite alternate-reverse;
}

.hero-mesh-c {
  width: 44vmax;
  height: 44vmax;
  top: 30%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  animation: heroMeshC 40s ease-in-out infinite alternate;
}

@keyframes heroMeshA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}

@keyframes heroMeshB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-5vmax, -3vmax, 0) scale(1.08); }
}

@keyframes heroMeshC {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.18; }
  50% { opacity: 0.28; }
  100% { transform: translate3d(4vmax, -3vmax, 0) scale(1.1); opacity: 0.18; }
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  animation: heroReveal 0.9s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
  animation-delay: calc(var(--reveal-delay, 0) * 1ms + 120ms);
}

[data-reveal="0"] { --reveal-delay: 0; }
[data-reveal="1"] { --reveal-delay: 120; }
[data-reveal="2"] { --reveal-delay: 240; }
[data-reveal="3"] { --reveal-delay: 360; }
[data-reveal="4"] { --reveal-delay: 480; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-tag-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dc6ff;
  box-shadow: 0 0 16px rgba(45, 198, 255, 0.9);
}

.hero-tag-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(45, 198, 255, 0.55);
  animation: heroPulse 2.4s ease-out infinite;
}

@keyframes heroPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  margin: 26px 0 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
}

.hero-title-accent .hero-title-word {
  background: linear-gradient(120deg, #ffffff 0%, #d3edff 30%, #2dc6ff 55%, #d3edff 78%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 6s linear infinite;
}

@keyframes heroShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.hero-subtitle {
  margin: 28px 0 0;
  max-width: 540px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  font-weight: 500;
  color: rgba(232, 244, 255, 0.90);
}

.hero-actions {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta-primary,
.hero-cta-ghost,
.hero-cta-pink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.32s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.32s ease, background 0.32s ease, color 0.32s ease, border-color 0.32s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.hero-cta-primary {
  color: #0a3a72;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(2, 18, 38, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffffff 0%, #d3edff 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.hero-cta-primary .hero-cta-arrow,
.hero-cta-pink .hero-cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.32s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(45, 198, 255, 0.45);
}

.hero-cta-primary:hover::before {
  opacity: 1;
}

.hero-cta-primary:hover .hero-cta-arrow,
.hero-cta-pink:hover .hero-cta-arrow {
  transform: translateX(5px);
}

.hero-cta-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-cta-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-cta-pink {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #ea148c, #ff58ad);
  box-shadow: 0 18px 38px rgba(234, 20, 140, 0.28);
}

.hero-cta-pink:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(234, 20, 140, 0.42);
}

.hero-stats {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  width: 100%;
  max-width: 580px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 14px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats strong {
  font-family: "Sora", Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #98d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats span {
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 600;
  color: rgba(216, 239, 255, 0.78);
  letter-spacing: 0.02em;
}

/* VISUEL */

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 1.05 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-platform {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 86%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(2, 18, 38, 0.55) 0%, rgba(2, 18, 38, 0) 70%);
  filter: blur(18px);
}

.hero-visual-halo {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 84%;
  height: 70%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 213, 255, 0.45) 0%, transparent 65%);
  filter: blur(34px);
  animation: heroHaloPulse 6s ease-in-out infinite alternate;
}

@keyframes heroHaloPulse {
  0% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-visual-picture {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 720px;
}

.hero-visual-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 44px rgba(2, 18, 38, 0.55));
  transition: transform 0.6s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  animation: heroFloat 8s ease-in-out infinite alternate;
  will-change: transform;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

@keyframes heroFloat {
  0% { transform: translate3d(var(--parallax-x, 0), 0, 0); }
  100% { transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0px) - 12px), 0); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 200px;
  box-shadow: 0 12px 28px rgba(2, 18, 38, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 6px rgba(2, 18, 38, 0.35);
  transition: transform 0.4s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform;
}

.hero-chip::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #2dc6ff;
  box-shadow: 0 0 12px rgba(45, 198, 255, 0.8);
}

.hero-chip {
  --parallax-x: 0px;
  --parallax-y: 0px;
}

.hero-chip-1 { top: 6%; left: -2%; animation: heroChipFloat 7s ease-in-out infinite alternate; }
.hero-chip-2 { top: 38%; right: -4%; animation: heroChipFloat 8s ease-in-out infinite alternate-reverse; animation-delay: 1s; }
.hero-chip-3 { bottom: 8%; left: 4%; animation: heroChipFloat 9s ease-in-out infinite alternate; animation-delay: 0.5s; }

@keyframes heroChipFloat {
  0% { transform: translate3d(var(--parallax-x, 0), 0, 0); }
  100% { transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0px) - 10px), 0); }
}

/* SCROLL CUE */

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroReveal 0.8s 0.9s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
  transition: color 0.22s ease;
}

.hero-scroll-cue:hover {
  color: #ffffff;
}

.hero-scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.hero-scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, transparent, #ffffff);
  animation: heroScrollLine 2.4s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0% { top: -60%; }
  100% { top: 100%; }
}

.appointment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea148c 0%, #c70d76 100%);
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(234, 20, 140, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.appointment-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 60%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.18) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 1;
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.appointment-link > span {
  position: relative;
  z-index: 2;
}

.appointment-link::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
  position: relative;
  z-index: 2;
  transition: transform 0.22s ease;
}

.appointment-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(234, 20, 140, 0.52);
}

.appointment-link:hover::before {
  left: 130%;
}

.appointment-link:hover::after {
  transform: translateX(4px);
}

.appointment-link:focus-visible {
  outline: 3px solid rgba(234, 20, 140, 0.40);
  outline-offset: 6px;
  border-radius: 999px;
}

/* REFERRAL PAGE */

.referral-page {
  width: 100%;
  padding: 0 0 80px;
  overflow: hidden;
}

.referral-hero {
  position: relative;
  width: min(100%, 1280px);
  min-height: 620px;
  margin: 0 auto 72px;
  padding: 74px 56px 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 28px;
  border-radius: 26px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse at 74% 24%, rgba(45, 198, 255, 0.22), transparent 46%),
    linear-gradient(105deg, #155fa3 0%, #0e4f8f 100%);
  background-size: 100% 54px, 86px 100%, auto, auto;
  box-shadow: 0 34px 80px rgba(8, 41, 70, 0.22);
  isolation: isolate;
}

.referral-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 48%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  pointer-events: none;
}

.referral-copy {
  position: relative;
  z-index: 2;
  color: #ffffff;
  min-width: 0;
}

.referral-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.referral-back-link:hover {
  color: #ffffff;
}

.referral-kicker,
.referral-section-kicker,
.referral-note-kicker {
  margin: 0 0 14px;
  color: #2dc6ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.referral-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(4, 36, 75, 0.16), 0 24px 42px rgba(2, 18, 38, 0.22);
  overflow-wrap: break-word;
}

.referral-copy h1 span,
.referral-copy h1 strong {
  display: block;
}

.referral-copy h1 strong {
  max-width: 720px;
}

.referral-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: break-word;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.referral-primary {
  font-size: 16px;
  padding: 16px 28px;
}

.referral-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.referral-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.referral-visual {
  position: relative;
  z-index: 1;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.referral-visual img {
  position: relative;
  z-index: 2;
  width: min(112%, 760px);
  max-width: none;
  height: auto;
  transform: translate3d(100px, 86px, 0) scale(1.04);
  filter: drop-shadow(0 30px 34px rgba(2, 9, 20, 0.42));
}

.referral-amount {
  position: absolute;
  top: 18px;
  right: 8px;
  z-index: 3;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #0e4f8f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 46px rgba(2, 18, 38, 0.20);
}

.referral-amount span,
.referral-amount small {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.referral-amount strong {
  display: block;
  margin: 4px 0;
  color: #ea148c;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.referral-home {
  min-height: clamp(680px, 92vh, 900px);
  margin-bottom: 70px;
  padding-top: 128px;
}

.referral-home-container {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
}

.referral-home .referral-copy {
  color: #ffffff;
  max-width: 760px;
}

.referral-home .referral-back-link {
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.referral-home .referral-back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.referral-home .referral-kicker {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.referral-home .referral-title {
  margin: 24px 0 0;
  color: #ffffff;
  font-size: clamp(36px, 4.15vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 36px rgba(2, 18, 38, 0.28);
}

.referral-home .referral-title .hero-title-line {
  overflow: visible;
}

.referral-home .referral-title .hero-title-word {
  display: inline;
}

.referral-home .referral-title .hero-title-accent {
  margin-top: 8px;
}

.referral-home .referral-lead {
  max-width: 680px;
  color: rgba(232, 244, 255, 0.90);
  font-size: clamp(15px, 1.3vw, 18px);
}

.referral-home .referral-actions {
  align-items: flex-start;
  margin-top: 32px;
}

.referral-home .hero-cta-ghost {
  min-height: 52px;
}

.referral-home .referral-appointment-cta {
  flex-basis: 100%;
  margin-top: 2px;
}

.referral-stats {
  margin-top: 42px;
  max-width: 680px;
}

.referral-home-stage {
  max-width: 720px;
  aspect-ratio: 1.18 / 1;
}

.referral-home-image {
  max-width: 720px;
}

.referral-home-amount {
  top: 8%;
  right: 0;
  width: 220px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 52px rgba(2, 18, 38, 0.24);
}

.referral-home .hero-visual-halo {
  background: radial-gradient(circle, rgba(67, 213, 255, 0.42) 0%, transparent 66%);
}

.referral-chip-1 {
  top: 12%;
  left: 0;
}

.referral-chip-2 {
  bottom: 20%;
  left: 4%;
}

.referral-chip-3 {
  right: 2%;
  bottom: 7%;
}

.referral-form-section {
  width: min(100% - 48px, 1120px);
  margin: -16px auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 255, 0.84)),
    radial-gradient(circle at 8% 0%, rgba(45, 198, 255, 0.16), transparent 46%);
  box-shadow: 0 24px 58px rgba(8, 41, 70, 0.10);
}

.referral-form-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.referral-form-copy h2 {
  margin: 0;
  color: #0e4f8f;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.referral-form-copy p:last-child {
  margin: 16px 0 0;
  color: #4b6078;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}

.referral-form {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.referral-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* --- Sélecteur Parrain / Filleul ------------------------------------------ */
.referral-role-toggle {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(21, 95, 163, 0.16);
  border-radius: 14px;
  background: rgba(236, 248, 255, 0.72);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
}

.referral-role-toggle legend {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 0 8px;
  background: #ffffff;
  color: #0a3a72;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

.referral-role-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.referral-role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.referral-role-pill {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(21, 95, 163, 0.16);
  color: #0a3a72;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.referral-role-pill-title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.referral-role-pill-sub {
  font-size: 11.5px;
  font-weight: 650;
  color: #63758c;
  line-height: 1.2;
}

.referral-role-option input:focus-visible + .referral-role-pill {
  border-color: #2dc6ff;
  box-shadow: 0 0 0 4px rgba(45, 198, 255, 0.18);
}

.referral-role-option input:checked + .referral-role-pill {
  border-color: #ff5aad;
  background: linear-gradient(135deg, #ff5aad, #ff7bbf);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 90, 173, 0.28);
  transform: translateY(-1px);
}

.referral-role-option input:checked + .referral-role-pill .referral-role-pill-sub {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 600px) {
  .referral-role-toggle {
    grid-template-columns: 1fr;
  }
}

.referral-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #0a3a72;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.referral-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(21, 95, 163, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: #0a1f3a;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 0 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.referral-form input:focus {
  border-color: #2dc6ff;
  box-shadow: 0 0 0 4px rgba(45, 198, 255, 0.18);
}

.referral-code-step {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 12px;
  background: rgba(236, 248, 255, 0.72);
}

.referral-code-step[hidden] {
  display: none;
}

.referral-code-step input {
  max-width: 220px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-align: center;
}

.referral-code-step p {
  margin: 8px 0 0;
  color: #63758c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.referral-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.referral-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9168c, #ff58ad);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(233, 22, 140, 0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.referral-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(233, 22, 140, 0.34);
}

.referral-form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.referral-resend-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(21, 95, 163, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #0e4f8f;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.referral-resend-button[hidden] {
  display: none;
}

.referral-resend-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.referral-form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #0e4f8f;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.referral-form-status.is-error {
  color: #b42318;
}

.referral-form-status.is-success {
  color: #0f7a3a;
}

.referral-form-privacy {
  margin: 8px 0 0;
  color: #63758c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

/* PARRAINAGE — Case à cocher RGPD obligatoire */
.referral-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4a5f7a;
  cursor: pointer;
  user-select: none;
}

.referral-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid #b6c4d7;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.referral-consent input[type="checkbox"]:hover {
  border-color: #0c4c8e;
}

.referral-consent input[type="checkbox"]:checked {
  background: #0c4c8e;
  border-color: #0c4c8e;
}

.referral-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.referral-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #2dc6ff;
  outline-offset: 2px;
}

.referral-consent input[type="checkbox"]:invalid {
  border-color: #d04848;
}

.referral-consent span {
  color: #4a5f7a;
  font-weight: 500;
}

.referral-consent a {
  color: #0c4c8e;
  text-decoration: underline;
  font-weight: 600;
}

.referral-consent a:hover {
  color: #0a3a72;
}

/* PARRAINAGE — boutons de téléchargement (plus de previews) */

.referral-poster-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ----- Aperçus des affiches PDF (PNG preview + bouton download) ----- */
.referral-poster-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.referral-poster-preview {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.referral-poster-preview-image {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px rgba(2, 18, 38, 0.24);
  transition: transform 0.22s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.22s ease;
}

.referral-poster-preview-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(2, 18, 38, 0.32);
}

.referral-poster-preview-image:focus-visible {
  outline: 3px solid rgba(45, 198, 255, 0.55);
  outline-offset: 4px;
}

.referral-poster-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297; /* A4 portrait */
  object-fit: cover;
}

.referral-poster-preview figcaption {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Mobile : empilement vertical, image plus grande */
@media (max-width: 768px) {
  .referral-poster-previews {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 20px;
  }

  .referral-poster-preview-image {
    max-width: min(320px, 80vw);
  }
}


.referral-hero-posters {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.referral-hero-posters .referral-poster-button {
  min-height: 44px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.30);
  font-size: 12.5px;
  box-shadow: 0 14px 28px rgba(2, 18, 38, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.referral-hero-posters .referral-poster-button:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 34px rgba(2, 18, 38, 0.24);
}

.referral-hero-posters .referral-poster-button-icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 769px) {
  .referral-hero-posters {
    gap: 14px;
    margin-top: 24px;
  }

  .referral-hero-posters .referral-poster-button {
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    background: linear-gradient(135deg, #155fa3, #2dc6ff);
    font-size: 14.5px;
    box-shadow: 0 18px 38px rgba(45, 198, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .referral-hero-posters .referral-poster-button:hover {
    background: linear-gradient(135deg, #155fa3, #2dc6ff);
    box-shadow: 0 22px 46px rgba(45, 198, 255, 0.48);
  }

  .referral-hero-posters .referral-poster-button-icon {
    width: 26px;
    height: 26px;
  }
}

.referral-poster-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #155fa3, #2dc6ff);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(45, 198, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.22s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.22s ease;
}

.referral-poster-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(45, 198, 255, 0.48);
  color: #ffffff;
}

.referral-poster-button:focus-visible {
  outline: 3px solid rgba(45, 198, 255, 0.55);
  outline-offset: 4px;
}

.referral-poster-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.referral-poster-button-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* PARRAINAGE — modale du formulaire */

.referral-modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  max-width: min(100vw - 32px, 640px);
  max-height: 90vh;
  width: 100%;
  margin: auto;
  overflow: visible;
}

.referral-modal::backdrop {
  background: rgba(2, 18, 38, 0.55);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.referral-modal[open] {
  animation: referralModalIn 0.32s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

@keyframes referralModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fallback pour navigateurs sans <dialog> natif */
.referral-modal.is-fallback {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 18, 38, 0.55);
  padding: 24px;
}

.referral-modal-card {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 36px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.94));
  box-shadow: 0 40px 80px rgba(2, 18, 38, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #0e4f8f;
}

.referral-modal-card .referral-section-kicker {
  margin-top: 0;
}

.referral-modal-card h2 {
  margin: 8px 0 12px;
  color: #0e4f8f;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.referral-modal-intro {
  margin: 0 0 22px;
  color: #4b6078;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 500;
}

.referral-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 95, 163, 0.18);
  border-radius: 50%;
  background: #ffffff;
  color: #0e4f8f;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(8, 41, 70, 0.10);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.referral-modal-close:hover {
  transform: rotate(90deg);
  background: linear-gradient(135deg, #155fa3, #2dc6ff);
  color: #ffffff;
  border-color: transparent;
}

.referral-modal-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.no-scroll {
  overflow: hidden;
}

.referral-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 0 64px;
  text-align: center;
}

.referral-section h2 {
  margin: 0;
  color: #0e4f8f;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

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

.referral-step {
  padding: 28px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 41, 70, 0.08);
  text-align: left;
}

.referral-step-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: #2dc6ff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.referral-step h3 {
  margin: 0;
  color: #0e4f8f;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.referral-step p {
  margin: 12px 0 0;
  color: #5f6f82;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.referral-flow .referral-step {
  padding: 24px;
}

.referral-flow .referral-step h3 {
  font-size: 20px;
}

.referral-note {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 247, 255, 0.72));
  box-shadow: 0 18px 42px rgba(8, 41, 70, 0.08);
}

.referral-note h2 {
  margin: 0;
  color: #0e4f8f;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.referral-note-copy p {
  margin: 0;
  color: #4b6078;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}

.referral-note-copy .referral-legal-small {
  margin-top: 14px;
  color: #111827;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
}

/* FOOTER / LEGAL */

.site-footer {
  padding: 34px 0 42px;
  border-top: 1px solid rgba(21, 95, 163, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 60%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4b6078;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-content p {
  max-width: 720px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  min-width: fit-content;
}

.footer-links a {
  color: #155fa3;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ea148c;
}

.legal-page {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 46px 0 84px;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: #155fa3;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-back-link:hover {
  color: #ea148c;
}

.legal-card {
  padding: 42px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 41, 70, 0.08);
}

.legal-kicker {
  margin: 0 0 10px;
  color: #ea148c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0 0 28px;
  color: #155fa3;
  font-size: 44px;
  line-height: 1.08;
}

.legal-card section + section {
  margin-top: 30px;
}

.legal-card h2 {
  margin: 0 0 12px;
  color: #155fa3;
  font-size: 24px;
  line-height: 1.2;
}

.legal-card p {
  margin: 0 0 12px;
  color: #27445c;
  font-size: 15px;
  line-height: 1.75;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-link {
  color: #155fa3;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 198, 255, 0.55);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.legal-link:hover {
  color: #2dc6ff;
  border-bottom-color: #2dc6ff;
}

/* Page légale — date de mise à jour */
.legal-update {
  margin: 0 0 18px;
  color: #7d8fa6;
  font-size: 13px;
  font-style: italic;
}

/* Page légale — listes (vos droits, données collectées, etc.) */
.legal-card ul {
  margin: 0 0 14px;
  padding: 0 0 0 20px;
  color: #27445c;
  font-size: 15px;
  line-height: 1.75;
}

.legal-card ul li {
  margin: 0 0 6px;
}

.legal-card ul li:last-child {
  margin-bottom: 0;
}

.legal-card code {
  background: #eef3fa;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "Menlo", "Consolas", monospace;
  color: #0c4c8e;
}

/* ANALYTICS / SEA */

.analytics-body {
  min-height: 100vh;
}

.analytics-header {
  position: relative;
}

.analytics-page {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 52px 0 76px;
}

.analytics-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 58px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(45, 198, 255, 0.32), transparent 38%),
    linear-gradient(135deg, #073a70 0%, #155fa3 58%, #2797d8 100%);
  background-size: 100% 54px, 86px 100%, auto, auto;
  box-shadow: 0 34px 80px rgba(8, 41, 70, 0.22);
  isolation: isolate;
}

.analytics-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.analytics-hero-copy,
.analytics-command-panel {
  position: relative;
  z-index: 1;
}

.analytics-kicker {
  margin: 0 0 12px;
  color: #2dc6ff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-hero h1,
.analytics-section h2,
.analytics-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.analytics-hero h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 18px 36px rgba(2, 18, 38, 0.25);
}

.analytics-hero-copy > p:not(.analytics-kicker) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(232, 244, 255, 0.92);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

.analytics-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-primary,
.analytics-secondary {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.analytics-primary {
  color: #0e4f8f;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(2, 18, 38, 0.24);
}

.analytics-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.10);
}

.analytics-command-panel {
  display: grid;
  gap: 14px;
}

.analytics-command-panel div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.analytics-command-panel span,
.analytics-metrics span,
.analytics-badge {
  display: inline-flex;
  color: #2dc6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-command-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.analytics-command-panel p {
  margin: 10px 0 0;
  color: rgba(232, 244, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.analytics-section,
.analytics-grid-section {
  margin-top: 44px;
}

.analytics-section-heading {
  max-width: 780px;
  margin: 0 0 20px;
}

.analytics-section h2,
.analytics-card h2 {
  color: #155fa3;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}

.analytics-metrics,
.analytics-campaigns,
.analytics-ad-grid,
.analytics-grid-section {
  display: grid;
  gap: 18px;
}

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

.analytics-metrics article,
.analytics-card,
.analytics-campaigns article,
.analytics-ad-grid article {
  border: 1px solid rgba(21, 95, 163, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(8, 41, 70, 0.10);
}

.analytics-metrics article,
.analytics-campaigns article,
.analytics-ad-grid article {
  padding: 22px;
}

.analytics-metrics strong {
  display: block;
  margin-top: 10px;
  color: #102a43;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.analytics-metrics p,
.analytics-card p,
.analytics-campaigns p,
.analytics-ad-grid p {
  color: #4e6278;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.analytics-metrics p {
  margin: 10px 0 0;
}

.analytics-grid-section {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: stretch;
}

.analytics-card {
  padding: 26px;
}

.analytics-card-wide {
  min-width: 0;
}

.analytics-card-heading {
  margin-bottom: 18px;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(21, 95, 163, 0.12);
  text-align: left;
  color: #102a43;
  font-size: 13px;
  line-height: 1.35;
}

.analytics-table th {
  color: #5f6f82;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-table code,
.analytics-code-list code {
  border-radius: 999px;
  color: #0e4f8f;
  background: rgba(21, 95, 163, 0.08);
  font-weight: 850;
}

.analytics-table code {
  padding: 4px 8px;
}

.analytics-checklist {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.analytics-checklist li {
  position: relative;
  padding-left: 24px;
  color: #102a43;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
}

.analytics-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2dc6ff;
  box-shadow: 0 0 0 4px rgba(45, 198, 255, 0.14);
}

.analytics-campaigns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-badge {
  color: #ea148c;
}

.analytics-campaigns h3,
.analytics-ad-grid h3 {
  margin: 12px 0 0;
  color: #102a43;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.analytics-campaigns ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #155fa3;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
}

.analytics-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-code-list code {
  padding: 9px 12px;
  font-size: 13px;
}

.analytics-code-list-muted code {
  color: #6b274d;
  background: rgba(234, 20, 140, 0.08);
}

.analytics-ad-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-ad-grid p {
  margin-bottom: 0;
}

.analytics-url-list {
  display: grid;
  gap: 12px;
}

.analytics-url-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(21, 95, 163, 0.14);
  border-radius: 14px;
  color: #0e4f8f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.analytics-sources ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.analytics-sources a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: #155fa3;
  background: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  font-weight: 850;
}

.visit-dashboard-body {
  background:
    radial-gradient(circle at 8% 8%, rgba(45, 198, 255, 0.13), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(234, 20, 140, 0.07), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

.visit-hero {
  min-height: 480px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 76% 14%, rgba(255, 255, 255, 0.26), transparent 26%),
    radial-gradient(circle at 22% 88%, rgba(45, 198, 255, 0.26), transparent 32%),
    linear-gradient(135deg, #073a70 0%, #0c4c8e 54%, #1f9dd7 100%);
}

.visit-range-actions .analytics-primary,
.visit-range-actions .analytics-secondary {
  min-width: 92px;
}

.visit-range-actions .is-active {
  color: #0e4f8f;
  background: #ffffff;
}

.visit-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.visit-metrics article {
  position: relative;
  overflow: hidden;
}

.visit-metrics article::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 198, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.visit-grid-two {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.visit-map-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.visit-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visit-empty,
.visit-empty-small {
  border: 1px solid rgba(21, 95, 163, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(8, 41, 70, 0.10);
}

.visit-empty {
  padding: 30px;
}

.visit-empty h2 {
  color: #155fa3;
}

.visit-empty p,
.visit-note,
.visit-empty-small {
  color: #4e6278;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.visit-empty-small {
  margin: 0;
  padding: 18px;
}

.visit-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.45fr);
  gap: 22px;
  align-items: stretch;
}

.visit-map-stage {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 22%, rgba(45, 198, 255, 0.20), transparent 30%),
    radial-gradient(circle at 82% 70%, rgba(234, 20, 140, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(21, 95, 163, 0.10), rgba(45, 198, 255, 0.10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.visit-map-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(21, 95, 163, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.visit-map-base {
  position: absolute;
  inset: 7% 4% 5%;
  width: 92%;
  height: 88%;
  opacity: 0.95;
}

.visit-map-land {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(21, 95, 163, 0.16);
  stroke-width: 0.7;
}

.visit-map-land-soft {
  fill: rgba(21, 95, 163, 0.06);
}

.visit-map-grid-line {
  fill: none;
  stroke: rgba(21, 95, 163, 0.08);
  stroke-width: 0.35;
}

.visit-map-point {
  position: absolute;
  z-index: 2;
  width: var(--point-size, 30px);
  height: var(--point-size, 30px);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 35% 30%, #69ddff, #155fa3 72%);
  box-shadow: 0 16px 34px rgba(8, 41, 70, 0.22), 0 0 0 9px rgba(45, 198, 255, 0.12);
  transform: translate(-50%, -50%);
}

.visit-map-point strong {
  font-size: clamp(10px, calc(var(--point-size, 30px) / 2.8), 18px);
  line-height: 1;
  font-weight: 900;
}

.visit-map-point em {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 1px solid rgba(21, 95, 163, 0.10);
  border-radius: 999px;
  color: #0e4f8f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(8, 41, 70, 0.10);
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.visit-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #4e6278;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.visit-map-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.visit-map-total {
  padding: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #155fa3, #2dc6ff);
  box-shadow: 0 18px 38px rgba(21, 95, 163, 0.20);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.visit-map-total small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  opacity: 0.86;
}

.visit-snapshot-list {
  display: grid;
  gap: 14px;
}

.visit-snapshot-list div {
  padding: 18px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 247, 255, 0.70));
}

.visit-snapshot-list span {
  color: #2dc6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visit-snapshot-list strong {
  display: block;
  margin-top: 8px;
  color: #102a43;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 900;
}

.visit-snapshot-list p {
  margin: 10px 0 0;
  color: #4e6278;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.visit-chart-legend {
  margin: -4px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visit-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5f6f82;
  font-size: 12px;
  font-weight: 850;
}

.visit-chart-legend i {
  width: 22px;
  height: 9px;
  border-radius: 999px;
}

.visit-legend-view {
  background: linear-gradient(90deg, #155fa3, #2dc6ff);
}

.visit-legend-contact {
  background: #ea148c;
}

.visit-chart {
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(var(--visit-days, 30), minmax(18px, 1fr));
  gap: 6px;
  align-items: end;
  padding: 16px 16px 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(21, 95, 163, 0.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(21, 95, 163, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.58);
  background-size: 100% 25%;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 95, 163, 0.22) rgba(21, 95, 163, 0.06);
}

.visit-chart::-webkit-scrollbar {
  height: 8px;
}

.visit-chart::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(21, 95, 163, 0.06);
}

.visit-chart::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(21, 95, 163, 0.22);
}

.visit-bar-group {
  min-width: 18px;
  display: grid;
  gap: 8px;
  align-items: end;
  text-align: center;
}

.visit-bar-track {
  position: relative;
  height: 210px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(21, 95, 163, 0.08), rgba(21, 95, 163, 0.03));
  overflow: hidden;
}

.visit-bar,
.visit-contact-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 4px;
  border-radius: 999px;
}

.visit-bar {
  height: var(--bar-height, 8%);
  background: linear-gradient(180deg, #2dc6ff, #155fa3);
  box-shadow: 0 -10px 22px rgba(45, 198, 255, 0.18);
}

.visit-contact-bar {
  left: 22%;
  right: 22%;
  height: var(--bar-height, 0%);
  background: #ea148c;
  box-shadow: 0 -8px 20px rgba(234, 20, 140, 0.30);
}

.visit-bar-group > span {
  color: #6b7d91;
  font-size: 10px;
  font-weight: 850;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
}

.visit-bar-group > span.is-muted {
  opacity: 0;
}

.visit-rank-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.visit-rank-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  color: #102a43;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.visit-rank-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.visit-rank-row strong {
  color: #155fa3;
  font-size: 16px;
  font-weight: 900;
}

.visit-rank-bar {
  display: block;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(21, 95, 163, 0.08);
  overflow: hidden;
}

.visit-rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #155fa3, #2dc6ff);
}

.visit-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(21, 95, 163, 0.12);
}

.visit-table td {
  vertical-align: middle;
}

.admin-body {
  background:
    radial-gradient(circle at 10% 5%, rgba(45, 198, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(234, 20, 140, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

.admin-hero {
  min-height: 460px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 18%, rgba(45, 198, 255, 0.30), transparent 34%),
    linear-gradient(135deg, #06376b 0%, #0c4c8e 54%, #249bda 100%);
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-tool-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(21, 95, 163, 0.14);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(8, 41, 70, 0.10);
}

.admin-tool-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 198, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.admin-tool-card span {
  color: #155fa3;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.admin-tool-card p {
  margin: 14px 0 0;
  color: #4e6278;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.admin-tool-card a {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: #155fa3;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(21, 95, 163, 0.18);
}

.admin-tool-blue {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 247, 255, 0.84));
}

.admin-tool-cyan a {
  background: linear-gradient(135deg, #155fa3, #2dc6ff);
}

.admin-tool-pink a {
  background: linear-gradient(135deg, #b80f70, #ea148c);
  box-shadow: 0 14px 28px rgba(234, 20, 140, 0.20);
}

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

.admin-referral-panel {
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
}

.admin-section-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-section-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #155fa3, #2dc6ff);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(21, 95, 163, 0.16);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-referral-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-referral-table th,
.admin-referral-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(21, 95, 163, 0.10);
  color: #102a43;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.admin-referral-table th {
  color: #5f6f82;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-referral-table a {
  color: #155fa3;
  font-weight: 850;
}

.admin-role-pill,
.admin-mail-pill {
  display: inline-flex;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-role-pill.is-parrain {
  color: #0e4f8f;
  background: rgba(21, 95, 163, 0.10);
}

.admin-role-pill.is-filleul {
  color: #9d115f;
  background: rgba(234, 20, 140, 0.11);
}

.admin-mail-pill.is-ok {
  color: #177044;
  background: rgba(45, 187, 95, 0.13);
}

.admin-mail-pill.is-ko {
  color: #9d115f;
  background: rgba(234, 20, 140, 0.11);
}

.admin-empty-state {
  padding: 26px;
  border: 1px solid rgba(21, 95, 163, 0.10);
  border-radius: 16px;
  color: #4e6278;
  background: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.admin-action-stack {
  display: grid;
  gap: 12px;
}

.admin-action-stack a {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #155fa3;
  background: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 900;
}

.admin-action-stack a::after {
  content: "→";
  color: #2dc6ff;
  font-size: 18px;
  line-height: 1;
}

.admin-status-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.admin-status-list li {
  padding: 14px;
  border: 1px solid rgba(21, 95, 163, 0.10);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: #102a43;
  background: rgba(255, 255, 255, 0.66);
}

.admin-status-list span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.admin-status-list .is-ok {
  background: #2dbb5f;
  box-shadow: 0 0 0 5px rgba(45, 187, 95, 0.13);
}

.admin-status-list .is-ko {
  background: #ea148c;
  box-shadow: 0 0 0 5px rgba(234, 20, 140, 0.13);
}

.admin-status-list strong {
  font-size: 14px;
  font-weight: 850;
}

.admin-status-list em {
  color: #5f6f82;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.admin-log-list {
  display: grid;
  gap: 14px;
}

.admin-log-list div {
  padding: 18px;
  border: 1px solid rgba(21, 95, 163, 0.10);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 247, 255, 0.68));
}

.admin-log-list span {
  color: #2dc6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-log-list strong {
  display: block;
  margin-top: 8px;
  color: #102a43;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.admin-log-list p {
  margin: 8px 0 0;
  color: #4e6278;
  font-size: 13px;
  font-weight: 750;
}

.admin-url-box {
  padding: 16px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 14px;
  background: rgba(21, 95, 163, 0.06);
  overflow-x: auto;
}

.admin-url-box code {
  color: #0e4f8f;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

/* GLOBAL */

.container {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

/* STEPS — scroll-pinné + repalette plum/pink */

.steps-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  isolation: isolate;
  color: #ffffff;
}

.steps-pinned-wrapper {
  position: relative;
  /* hauteur = (1 + N) × 100vh : 1 pour l'entrée, N pour les transitions */
  height: calc((1 + var(--steps-count, 4)) * 100vh);
}

.steps-pinned-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.steps-pinned-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(45, 198, 255, 0.30) 0%, transparent 60%),
    linear-gradient(170deg, #04254d 0%, #0a3a72 35%, #0e4f8f 60%, #1672b8 100%);
}


.steps-pinned-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.steps-stage-inner {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 120px 24px 60px;
  z-index: 1;
}

.steps-section h1 {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
  position: relative;
}

.steps-section h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dc6ff, #ffffff);
  box-shadow: 0 6px 18px rgba(45, 198, 255, 0.50);
}

.steps-discovery-bubble {
  position: relative;
  width: min(100%, 720px);
  margin: 22px auto 0;
  padding: 16px 22px;
  display: grid;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.07)),
    linear-gradient(180deg, rgba(45, 198, 255, 0.18), rgba(14, 79, 143, 0.10));
  color: #ffffff;
  text-align: left;
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -18px 38px rgba(21, 95, 163, 0.14),
    0 26px 58px rgba(2, 18, 38, 0.34),
    0 0 34px rgba(45, 198, 255, 0.18);
  animation: stepsDiscoveryFloat 5.8s ease-in-out infinite alternate;
}

.steps-discovery-bubble > * {
  position: relative;
  z-index: 1;
}

.steps-discovery-kicker {
  justify-self: start;
  color: #ff5aad;
  font-family: "Sora", Arial, sans-serif;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 8px 18px rgba(2, 18, 38, 0.22);
}

.steps-discovery-bubble strong {
  color: #ffffff;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.15;
  font-weight: 850;
  text-shadow: 0 10px 22px rgba(2, 18, 38, 0.24);
}

.steps-discovery-bubble span:last-child {
  color: rgba(239, 249, 255, 0.86);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

@keyframes stepsDiscoveryFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -8px, 0);
  }
}

.section-title,
.contact-section h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #0e4f8f;
  position: relative;
}

.section-title::after,
.contact-section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #155fa3, #2dc6ff);
  box-shadow: 0 4px 16px rgba(45, 198, 255, 0.40);
}

/* RAIL */

.steps-scroll {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  margin-top: 26px;
  align-items: start;
}

.steps-rail {
  align-self: start;
}

.steps-rail-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px rgba(2, 18, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.steps-rail-progress {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 2px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2dc6ff, #ffffff);
  box-shadow: 0 0 16px rgba(45, 198, 255, 0.75);
  transition: height 0.55s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: none;
}

.steps-rail-item {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 22px;
  border-radius: 14px;
  color: rgba(216, 239, 255, 0.55);
  transition: color 0.32s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), background 0.32s ease, transform 0.32s ease;
}

.steps-rail-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.steps-rail-number {
  font-family: "Sora", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(216, 239, 255, 0.32);
  line-height: 1;
  transition: color 0.32s ease, transform 0.32s ease, text-shadow 0.32s ease;
}

.steps-rail-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.steps-rail-item.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(45, 198, 255, 0.22), rgba(45, 198, 255, 0.04));
}

.steps-rail-item.is-active .steps-rail-number {
  color: #2dc6ff;
  transform: translateX(-2px) scale(1.10);
  text-shadow: 0 4px 18px rgba(45, 198, 255, 0.55);
}

/* STACK DE PANNEAUX (scroll-pinné) */

.steps-stack {
  position: relative;
  min-height: clamp(480px, 70vh, 640px);
}

.steps-panel {
  position: absolute;
  inset: 0;
  padding: 36px 40px 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 32px 70px rgba(2, 18, 38, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.55s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.65s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 0.55s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.5s ease;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  column-gap: 36px;
  align-items: center;
}

/* panneau sans media -> texte centre pleine largeur */
.steps-panel:not(:has(.video-wrapper)):not(:has(.plan-image)):not(:has(.steps-panel-image)) {
  display: block;
}

.steps-panel:not(:has(.video-wrapper)):not(:has(.plan-image)):not(:has(.steps-panel-image)) p {
  max-width: 720px;
}

.steps-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(67, 213, 255, 0.20) 0%, transparent 65%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.steps-panel.is-prev {
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
  filter: blur(6px);
  z-index: 0;
}

.steps-panel.is-current {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;
  box-shadow:
    0 36px 90px rgba(2, 18, 38, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(45, 198, 255, 0.45),
    0 0 48px rgba(45, 198, 255, 0.26);
}

.steps-panel.is-current::before {
  opacity: 1;
}

.steps-panel-index {
  position: absolute;
  top: 18px;
  right: 28px;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(67, 213, 255, 0.55) 0%, rgba(45, 198, 255, 0.04) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 60px rgba(45, 198, 255, 0.22);
}

.steps-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

.steps-panel p {
  margin: 0;
  color: rgba(216, 239, 255, 0.86);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
  white-space: pre-line;
  position: relative;
  z-index: 1;
}

.steps-panel .video-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 100%;
  border-radius: 18px;
  box-shadow: 0 28px 56px rgba(2, 18, 38, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.steps-panel .plan-image,
.steps-panel .steps-panel-image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 28px 56px rgba(2, 18, 38, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.steps-panel .steps-panel-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: none;
}

@media (max-width: 900px) {
  /* Désactivation du scroll-lock sur mobile : tout devient empilé */
  .steps-pinned-wrapper {
    height: auto;
  }

  .steps-pinned-stage {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .steps-stage-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 80px 16px 90px;
  }

  .steps-discovery-bubble {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 20px;
    animation: none;
  }

  .steps-discovery-bubble span:last-child {
    font-size: 14px;
  }

  .steps-scroll {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .steps-rail {
    position: sticky;
    top: 70px;
    z-index: 4;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .steps-rail-inner {
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .steps-rail-inner::-webkit-scrollbar {
    display: none;
  }

  .steps-rail-progress {
    display: none;
  }

  .steps-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
  }

  .steps-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    row-gap: 22px;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
  }

  .steps-rail-item {
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    padding: 8px 12px;
    gap: 8px;
    min-width: 0;
  }

  .steps-rail-number {
    font-size: 16px;
  }

  .steps-rail-label {
    font-size: 12px;
  }

  .steps-track {
    gap: 28px;
  }

  .steps-panel {
    padding: 26px 22px 28px;
    border-radius: 20px;
  }

  .steps-panel-index {
    font-size: clamp(48px, 14vw, 72px);
    top: 16px;
    right: 18px;
  }

  .steps-panel h2 {
    font-size: 24px;
  }
}

/* Legacy steps grid kept hidden to avoid orphan rules in custom styling */
.steps-grid { display: none; }
.step-details { display: none; }

.legacy-step-card-disabled {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.step-card {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #155fa3 0%, #0e4f8f 60%, #133a6d 100%);
  color: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.32s ease, box-shadow 0.32s ease;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% -10%, rgba(45, 198, 255, 0.40), transparent 55%),
    radial-gradient(circle at 0% 110%, rgba(45, 198, 255, 0.18), transparent 65%);
  opacity: 0.85;
  z-index: -1;
  transition: opacity 0.32s ease, transform 0.6s ease;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45, 198, 255, 0.55), rgba(255, 255, 255, 0.0) 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.step-card:hover,
.step-card.is-open {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(8, 41, 70, 0.28), 0 8px 22px rgba(45, 198, 255, 0.22);
}

.step-card:hover::before,
.step-card.is-open::before {
  opacity: 1;
  transform: scale(1.08);
}

.step-card:hover::after,
.step-card.is-open::after {
  opacity: 1;
}

.step-button {
  width: 100%;
  min-height: 120px;
  padding: 18px 16px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  display: block;
}

.step-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #d8efff);
  color: #155fa3;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(45, 198, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.step-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.step-summary {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.95;
}

.step-details {
  display: grid;
  gap: 22px;
}

.step-detail {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(8, 41, 70, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.step-detail.is-active {
  display: block;
}

.step-detail h2 {
  margin: 0 0 10px;
  color: #155fa3;
  font-size: 26px;
  letter-spacing: 0;
}

.step-detail p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
}

.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #eaf2f8;
  box-shadow: 0 18px 40px rgba(8, 41, 70, 0.18), 0 0 0 1px rgba(45, 198, 255, 0.18);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #102a43;
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-poster:hover img {
  transform: scale(1.045);
  opacity: 0.92;
}

.video-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 52px;
  border-radius: 16px;
  background: #ff0000;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.video-play-icon::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 16px;
  border-left: 18px solid #ffffff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.plan-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: none !important;
  filter: none !important;
}

.plan-image.is-clickable,
.plan-image {
  cursor: zoom-in;
}

.no-scroll {
  overflow: hidden;
}

.map-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 22, 38, 0.86);
}

.map-viewer[hidden] {
  display: none !important;
}

.map-viewer-image {
  display: block;
  max-width: min(100%, 1180px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}

.map-viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #155fa3;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* POPULAR HOMES */

.popular-section {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 56px 0 36px;
  background: transparent;
}

.section-title {
  margin-bottom: 28px;
}

.catalog-update-bubble {
  width: min(100%, 680px);
  margin: 32px auto 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.catalog-update-pill {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 11px 6px 27px;
  border: 1px solid rgba(21, 95, 163, 0.12);
  border-radius: 999px;
  color: rgba(14, 79, 143, 0.82);
  background: rgba(255, 255, 255, 0.46);
  position: relative;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
}

.catalog-update-note {
  margin: 0;
  color: rgba(67, 92, 117, 0.86);
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}

.catalog-update-note span {
  display: block;
}

.catalog-update-pill::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dc6ff, #155fa3);
  box-shadow: 0 0 0 3px rgba(45, 198, 255, 0.12);
  transform: translateY(-50%);
}

.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 54px;
  border-bottom: 1px solid rgba(15, 68, 112, 0.22);
  margin-bottom: 22px;
  text-align: center;
}

.tab-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.tab-button {
  transition: color 0.18s ease, transform 0.18s ease;
}

.tab-button:hover {
  color: #155fa3;
  transform: translateY(-1px);
}

.tab-button.is-active {
  color: #0e4f8f;
}

.tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #155fa3, #2dc6ff);
  box-shadow: 0 6px 16px rgba(45, 198, 255, 0.38);
}

/* CATALOG FILTERS — layout en rows alignées */

.catalog-filter-panel {
  width: min(100%, 880px);
  margin: 0 auto 14px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 44px rgba(15, 68, 112, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
}

.catalog-filter-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(45, 198, 255, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

/* Une row = un label fixe à gauche + une zone de chips à droite */
.brand-filter,
.feature-filter-group {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  padding: 14px 22px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(21, 95, 163, 0.10);
  background: transparent;
}

.feature-filter {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.feature-filter-group:last-child {
  border-bottom: 0;
}

.brand-filter[hidden],
.feature-filter[hidden] {
  display: none !important;
}

.filter-section-label,
.feature-filter-label {
  color: #4b6078;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
  line-height: 1.2;
}

.filter-section-label {
  flex: none;
}

/* Zones de chips */
.brand-filter-options,
.feature-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

/* Reset "Tous" mis en évidence en haut à droite du panel */
.feature-filter-reset {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
}

.feature-filter-reset .feature-filter-button {
  min-height: 32px;
  padding: 0 16px 0 14px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ffffff;
  border: 1px solid rgba(21, 95, 163, 0.28);
  color: #155fa3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 14px rgba(15, 68, 112, 0.08);
}

.feature-filter-reset .feature-filter-button::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 1 0 3-6.7'/><path d='M3 4v5h5'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 1 0 3-6.7'/><path d='M3 4v5h5'/></svg>") no-repeat center / contain;
  flex: 0 0 14px;
  transition: transform 0.4s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.feature-filter-reset .feature-filter-button:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #155fa3 0%, #2dc6ff 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(45, 198, 255, 0.42);
}

.feature-filter-reset .feature-filter-button:hover::before {
  transform: rotate(-90deg);
}

.feature-filter-reset .feature-filter-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #155fa3 0%, #2dc6ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(45, 198, 255, 0.42);
}

/* Chip de base (marque + feature) */
.brand-filter-button,
.feature-filter-button {
  appearance: none;
  border: 1px solid rgba(21, 95, 163, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #155fa3;
  cursor: pointer;
  min-height: 32px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-filter-button {
  min-height: 30px;
  padding: 0 13px;
  color: #102a43;
  background: #ffffff;
  text-transform: none;
  letter-spacing: 0;
}

.brand-filter-button:hover,
.feature-filter-button:hover {
  border-color: rgba(45, 198, 255, 0.55);
  background: #ffffff;
  color: #0e4f8f;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(45, 198, 255, 0.18);
}

.brand-filter-button.is-active,
.feature-filter-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #155fa3 0%, #2dc6ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(45, 198, 255, 0.40);
}

/* SORT — même style de row pour s'attacher au panel ci-dessus */

.sort-panel {
  width: min(100%, 880px);
  margin: 0 auto 26px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 36px rgba(15, 68, 112, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  animation: sortPanelIn 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

/* quand le panel de filtres est juste au-dessus, on les "colle" visuellement */
.catalog-filter-panel + .sort-panel {
  margin-top: -4px;
}

.sort-panel[hidden] {
  display: none !important;
}

.sort-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(45, 198, 255, 0.36));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.sort-label {
  color: #4b6078;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
  line-height: 1.2;
}

.sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.sort-button {
  appearance: none;
  border: 1px solid rgba(21, 95, 163, 0.20);
  border-radius: 999px;
  background: #ffffff;
  color: #155fa3;
  cursor: pointer;
  min-height: 32px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sort-button[data-sort-direction]::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
}

.sort-button[data-sort-direction="asc"]::after {
  transform: rotate(180deg);
}

.sort-button:hover {
  border-color: rgba(45, 198, 255, 0.55);
  color: #0e4f8f;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(45, 198, 255, 0.18);
}

.sort-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #155fa3 0%, #2dc6ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(45, 198, 255, 0.40);
}

@keyframes sortPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.homes-area {
  position: relative;
  min-height: 430px;
}

.homes-area.is-loading {
  pointer-events: none;
}

.homes-area.is-loading::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.homes-area.is-loading::after {
  content: "";
  position: absolute;
  top: 170px;
  left: 50%;
  z-index: 9;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid rgba(21, 95, 163, 0.16);
  border-top-color: #155fa3;
  border-radius: 50%;
  animation: homesSpinner 0.72s linear infinite;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 320px;
  height: 390px;
  background: #eaf2f8;
  box-shadow: 0 24px 60px rgba(8, 41, 70, 0.18), 0 2px 8px rgba(45, 198, 255, 0.12);
  animation: softFadeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  isolation: isolate;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(8, 41, 70, 0.24), 0 0 0 1px rgba(45, 198, 255, 0.35), 0 0 36px rgba(45, 198, 255, 0.28);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.featured-card:hover img {
  transform: scale(1.035);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 28, 56, 0.72), rgba(6, 28, 56, 0.05) 60%),
    linear-gradient(180deg, transparent 55%, rgba(6, 28, 56, 0.5) 100%);
  pointer-events: none;
}

.sold-pill,
.available-pill,
.quote-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(8, 41, 70, 0.18);
}

.sold-pill {
  background: #e9168c;
}

.sold-pill {
  box-shadow: 0 8px 18px rgba(233, 22, 140, 0.28);
}

.available-pill {
  background: #16a34a;
}

.quote-pill {
  background: #facc15;
  color: #3b2f00;
}

.home-card .sold-pill,
.home-card .available-pill,
.home-card .quote-pill {
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  font-size: 10px;
}

.type-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #155fa3;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(21, 95, 163, 0.26);
  pointer-events: none;
}

.home-card .type-pill {
  top: 8px;
  left: 8px;
  padding: 6px 10px;
  font-size: 10px;
}

.discount-pill {
  position: absolute;
  top: 56px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: min(250px, calc(100% - 32px));
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: linear-gradient(135deg, #e9168c 0%, #b7196d 100%);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 16px 32px rgba(183, 25, 109, 0.34);
  pointer-events: none;
}

.discount-pill-label,
.discount-pill-until {
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.discount-pill strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.discount-pill-until {
  font-size: 11px;
  font-weight: 850;
  text-transform: none;
  opacity: 0.92;
}

.home-card .discount-pill {
  top: 40px;
  right: 8px;
  max-width: calc(100% - 16px);
  padding: 8px 10px;
  border-width: 1px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(183, 25, 109, 0.32);
}

.home-card .discount-pill-label,
.home-card .discount-pill-until {
  font-size: 10px;
}

.home-card .discount-pill strong {
  font-size: 18px;
}

.exceptional-parcel-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(270px, calc(100% - 32px));
  padding: 8px 13px 8px 8px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #3b2500;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.34);
  pointer-events: none;
}

.has-type-pill .exceptional-parcel-pill {
  top: 56px;
}

.exceptional-parcel-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
  color: #d97706;
  font-size: 12px;
  line-height: 1;
}

.home-card .exceptional-parcel-pill {
  top: 8px;
  left: 8px;
  gap: 5px;
  max-width: calc(100% - 16px);
  padding: 6px 9px 6px 6px;
  border-width: 1px;
  font-size: 9px;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.34);
}

.home-card.has-type-pill .exceptional-parcel-pill {
  top: 40px;
}

.home-card .exceptional-parcel-star {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.featured-card .exceptional-parcel-pill,
.featured-card.has-type-pill .exceptional-parcel-pill {
  top: auto;
  bottom: 16px;
  left: 16px;
}

.featured-content {
  position: absolute;
  top: 26px;
  left: 40px;
  z-index: 2;
  color: #ffffff;
}

.home-label,
.featured-content p {
  display: none;
}

.featured-content h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.discover-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.discover-button:hover {
  background: linear-gradient(135deg, #ffffff, #d8efff);
  color: #155fa3;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(45, 198, 255, 0.40);
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.home-card {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  border-radius: 18px;
  background: #eaf2f8;
  box-shadow: 0 14px 28px rgba(8, 41, 70, 0.12);
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, opacity 0.22s ease, border-color 0.22s ease;
  display: block;
  width: 100%;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  animation: softFadeIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-card:hover,
.home-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(45, 198, 255, 0.45);
  box-shadow: 0 22px 42px rgba(8, 41, 70, 0.18), 0 0 28px rgba(45, 198, 255, 0.28);
}


.home-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.32s ease;
}

.home-card:hover img {
  transform: scale(1.045);
}

.home-card-content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  text-align: left;
  pointer-events: none;
}

.home-card-content h4 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 31, 62, 0.42);
  overflow-wrap: anywhere;
}

.home-card-content p {
  display: none;
}

.empty-message {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 18px 20px;
  border-radius: 18px;
  color: #4b6078;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 30px rgba(15, 68, 112, 0.10);
  text-align: center;
  font-weight: 600;
}

.homes-loading {
  pointer-events: none;
}

@keyframes softFadeIn {
  from {
    opacity: 0.88;
  }

  to {
    opacity: 1;
  }
}

@keyframes homesSpinner {
  to {
    transform: rotate(360deg);
  }
}

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

  body::before,
  .hero-mesh,
  .hero-visual-halo,
  .hero-visual-image,
  .hero-chip,
  .hero-tag-dot::after,
  .hero-title-accent .hero-title-word,
  .hero-scroll-cue-line::after,
  [data-reveal] {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* CONTACT */

.contact-section {
  text-align: center;
  padding: 120px 8% 160px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-box h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  color: #155fa3;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  background: #155fa3;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.discover-button,
.main-nav a,
.appointment-link,
.contact-button {
  -webkit-tap-highlight-color: transparent;
}

/* RESPONSIVE TABLETTE */

@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding: 110px 20px 90px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-text {
    align-items: center;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
  }

  .hero-visual-stage {
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-chip {
    max-width: 180px;
    font-size: 11.5px;
  }
}

@media (min-width: 901px) and (max-height: 900px) {
  .hero-section {
    min-height: 100svh;
  }

  .steps-stage-inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .steps-section h1 {
    font-size: clamp(30px, 3.4vw, 42px);
  }

  .steps-section h1::after {
    margin-top: 10px;
  }

  .steps-discovery-bubble {
    margin-top: 12px;
    padding: 11px 16px;
  }

  .steps-scroll {
    margin-top: 14px;
  }

  .steps-stack {
    min-height: clamp(360px, 48vh, 480px);
  }

  .steps-panel {
    padding: 26px 30px 28px;
  }
}

/* Écrans desktop courts (laptops 13-14") : on désactive le scroll-pin
   (sinon le contenu déborde des 100vh et la 1re carte est coupée en bas)
   et on bascule en mode empilé classique avec rail collant. */
@media (min-width: 901px) and (max-height: 920px) {
  .steps-pinned-wrapper {
    height: auto;
  }

  .steps-pinned-stage {
    position: relative;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    overflow: visible;
  }

  .steps-stage-inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .steps-discovery-bubble {
    margin-top: 14px;
    padding: 12px 18px;
  }

  .steps-scroll {
    margin-top: 18px;
  }

  /* On affiche tous les panneaux empilés (plus de superposition absolue) */
  .steps-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
    position: static;
  }

  .steps-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    padding: 28px 32px 30px;
  }

  .steps-panel.is-prev,
  .steps-panel.is-current {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Rail des étapes rendu collant pour rester visible en scroll */
  .steps-rail {
    position: sticky;
    top: 90px;
    align-self: start;
  }

  /* On désactive l'animation de la barre de progression du rail
     (elle n'a plus de sens sans le scroll-pin) */
  .steps-rail-progress {
    display: none;
  }
}

@media (max-width: 900px) {
  .tabs {
    gap: 24px;
    overflow-x: visible;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .catalog-filter-panel,
  .sort-panel {
    width: min(100%, 720px);
  }

  .featured-card {
    min-height: 0;
    height: 300px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* RESPONSIVE MOBILE */

@media (max-width: 768px) {
  .site-header {
    position: absolute;
    padding: 18px 12px 0;
  }

  .main-nav {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 6px 6px 6px 8px;
    gap: 6px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .main-nav-brand-text {
    display: none;
  }

  .main-nav-links {
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 2px;
  }

  .main-nav-links::-webkit-scrollbar {
    display: none;
  }

  .main-nav-links a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11.5px;
    flex: 0 0 auto;
  }

  .main-nav-cta {
    display: none;
  }

  .language-switcher {
    top: 68px;
    right: 12px;
    display: inline-flex;
    padding: 3px;
  }

  .language-switcher button {
    min-width: 34px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero-section {
    padding: 100px 16px 90px;
  }

  .hero-title {
    font-size: clamp(44px, 11vw, 72px);
    line-height: 0.96;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-visual-stage {
    max-width: 420px;
  }

  .hero-chip {
    max-width: 150px;
    font-size: 11px;
    padding: 8px 14px 8px 26px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .hero-stats li {
    padding: 10px 0 10px 10px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats span {
    font-size: 10.5px;
  }

  .hero-scroll-cue {
    bottom: 18px;
  }

  .contact-section {
    padding: 60px 24px;
  }

  .steps-section h1,
  .section-title,
  .contact-section h2 {
    font-size: 36px;
  }

  .appointment-link {
    font-size: 17px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal-page {
    width: min(100% - 32px, 920px);
    padding-top: 34px;
    padding-bottom: 62px;
  }

  .legal-card {
    padding: 26px;
    border-radius: 14px;
  }

  .legal-card h1 {
    font-size: 34px;
  }

  .legal-card h2 {
    font-size: 21px;
  }
}

@media (max-width: 600px) {
  .popular-section,
  .steps-section {
    width: min(100% - 32px, 1120px);
  }

  .steps-section {
    width: 100%;
  }

  .appointment-link {
    padding: 14px 26px;
    font-size: 16px;
  }

  .popular-section {
    padding-top: 40px;
  }

  .tabs {
    justify-content: center;
    gap: 14px 18px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .tab-button {
    font-size: 12px;
  }

  /* Filtres en mode mobile : label au-dessus des chips */
  .catalog-filter-panel {
    border-radius: 16px;
  }

  .brand-filter,
  .feature-filter-group,
  .sort-panel {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 12px 14px;
  }

  .sort-panel {
    padding: 12px 16px;
    border-radius: 16px;
  }

  .filter-section-label,
  .feature-filter-label,
  .sort-label {
    line-height: 1;
  }

  .feature-filter-reset {
    position: static;
    align-self: flex-start;
    padding: 12px 14px 4px;
  }

  .brand-filter-options,
  .feature-filter-options {
    gap: 7px;
  }

  .brand-filter-button,
  .feature-filter-button {
    min-height: 34px;
    padding-inline: 12px;
  }

  .feature-filter-reset .feature-filter-button {
    min-height: 34px;
  }

  .sort-button {
    font-size: 11px;
    padding: 0 12px;
  }

  .featured-card {
    min-height: 0;
    height: 250px;
  }

  .featured-card .type-pill,
  .featured-card .available-pill {
    display: none;
  }

  .featured-card .discount-pill {
    top: auto;
    right: 12px;
    bottom: 12px;
    align-items: flex-end;
    max-width: min(180px, calc(100% - 24px));
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 11px;
    text-align: right;
    box-shadow: 0 12px 24px rgba(183, 25, 109, 0.34);
  }

  .featured-card .discount-pill-label,
  .featured-card .discount-pill-until {
    font-size: 10px;
  }

  .featured-card .discount-pill strong {
    font-size: 20px;
  }

  .featured-content {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .featured-content h3 {
    font-size: 34px;
  }

  .discover-button {
    min-width: 190px;
    height: 48px;
    font-size: 17px;
  }

  .home-card-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .steps-section {
    padding-top: 38px;
    padding-bottom: 48px;
  }

  .step-card {
    min-height: 118px;
    border-radius: 12px;
    display: block;
  }

  .step-button {
    min-height: 118px;
    padding: 14px 12px;
  }

  .step-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
  }

  .step-icon svg {
    width: 16px;
    height: 16px;
  }

  .step-title {
    font-size: 13px;
  }

  .step-summary {
    font-size: 10px;
  }

  .step-detail {
    padding: 18px;
    border-radius: 10px;
    margin-top: 12px;
  }

  .step-detail h2 {
    font-size: 22px;
  }

  .step-detail p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  .video-wrapper {
    border-radius: 8px;
  }

  .plan-image {
    border-radius: 8px;
  }

  .map-viewer {
    padding: 12px;
  }

  .map-viewer-image {
    max-height: 84vh;
    border-radius: 10px;
  }

  .map-viewer-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .home-card img {
    height: 130px;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* RESPONSIVE PETITS TÉLÉPHONES */

@media (max-width: 480px) {
  .main-nav {
    width: 100%;
    gap: 4px;
  }

  .main-nav-links a {
    font-size: 11px;
    padding: 0 10px;
  }

  .main-nav-cta {
    display: none;
  }

  .hero-section {
    padding: 90px 12px 84px;
  }

  .hero-tag {
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 7px 14px 7px 12px;
  }

  .hero-title {
    font-size: clamp(38px, 12.5vw, 64px);
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-stats li {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 0 0;
  }

  .hero-stats li:first-child {
    border-top: 0;
  }

  .hero-chip {
    font-size: 10.5px;
    max-width: 140px;
    padding: 7px 12px 7px 24px;
  }

  .steps-section h1,
  .section-title,
  .contact-section h2 {
    font-size: 30px;
  }

  .appointment-link {
    font-size: 16px;
  }

  .site-footer {
    padding: 28px 0 34px;
  }

  .footer-content p,
  .footer-links a {
    font-size: 11px;
  }

  .legal-card {
    padding: 22px;
  }

  .legal-card h1 {
    font-size: 30px;
  }

  .steps-grid,
  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .step-button {
    min-height: 104px;
  }

  .home-card img {
    height: 180px;
  }
}


@media (max-width: 1024px) {
  .referral-page {
    padding-top: 96px;
  }

  .referral-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 64px 42px 58px;
    overflow: hidden;
  }

  .referral-copy h1 {
    font-size: 58px;
  }

  .referral-visual {
    min-height: 300px;
    justify-content: center;
  }

  .referral-visual img {
    width: min(100%, 680px);
    transform: translate3d(0, 50px, 0) scale(1.02);
  }

  .referral-amount {
    right: 32px;
  }

  .referral-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .referral-page {
    padding: 86px 14px 54px;
  }

  .referral-hero {
    margin-bottom: 50px;
    padding: 40px 28px 44px;
    border-radius: 20px;
  }

  .referral-copy h1 {
    font-size: 36px;
  }

  .referral-lead {
    font-size: 15px;
  }

  .referral-actions {
    align-items: stretch;
  }

  .referral-primary,
  .referral-secondary {
    width: 100%;
  }

  .referral-visual {
    min-height: 290px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .referral-amount {
    position: relative;
    top: auto;
    right: auto;
    width: 190px;
    margin: 18px 0 -24px;
  }

  .referral-amount strong {
    font-size: 36px;
  }

  .referral-visual img {
    width: min(106%, 430px);
    transform: translate3d(-8px, 34px, 0) scale(1);
  }

  .referral-section {
    padding-bottom: 42px;
  }

  .referral-form-section {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 52px;
    padding: 22px;
  }

  .referral-form-grid {
    grid-template-columns: 1fr;
  }

  .referral-section h2,
  .referral-note h2 {
    font-size: 30px;
  }

  .referral-note {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .referral-copy h1 {
    font-size: 32px;
  }

  .referral-hero {
    padding: 34px 22px 36px;
  }

  .referral-step {
    padding: 22px;
  }
}

@media (max-width: 1024px) {
  .referral-page {
    padding-top: 0;
  }

  .referral-home-container {
    grid-template-columns: 1fr;
  }

  .referral-home .referral-title {
    font-size: clamp(38px, 7vw, 58px);
  }

  .analytics-hero,
  .analytics-grid-section,
  .analytics-campaigns,
  .analytics-ad-grid,
  .visit-grid-two,
  .visit-map-grid,
  .visit-map-layout,
  .visit-grid-three,
  .admin-tool-grid,
  .admin-grid,
  .admin-referral-panel {
    grid-template-columns: 1fr;
  }

  .analytics-metrics,
  .visit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .referral-page {
    padding: 0 0 54px;
  }

  .referral-home {
    padding-top: 100px;
  }

  .referral-home .referral-title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .referral-home .hero-actions {
    align-items: stretch;
  }

  .referral-home .hero-cta-primary,
  .referral-home .hero-cta-ghost,
  .referral-home .hero-cta-pink {
    width: 100%;
    justify-content: center;
  }

  .referral-home .referral-home-amount {
    position: absolute;
    top: 4%;
    right: 4%;
    width: 180px;
    margin: 0;
  }

  .analytics-page {
    width: min(100% - 28px, 1180px);
    padding-top: 32px;
  }

  .analytics-hero {
    min-height: auto;
    padding: 34px 22px;
    border-radius: 22px;
  }

  .analytics-hero h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .analytics-hero-copy > p:not(.analytics-kicker) {
    font-size: 15px;
  }

  .analytics-actions {
    align-items: stretch;
  }

  .analytics-primary,
  .analytics-secondary {
    width: 100%;
  }

  .analytics-metrics,
  .visit-metrics {
    grid-template-columns: 1fr;
  }

  .visit-chart {
    min-height: 220px;
    grid-template-columns: repeat(var(--visit-days, 30), 24px);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .visit-bar-track {
    height: 170px;
  }

  .visit-map-stage {
    min-height: 300px;
  }

  .visit-map-side {
    gap: 12px;
  }

  .admin-section-title-row {
    flex-direction: column;
  }

  .admin-section-link {
    width: 100%;
    justify-content: center;
  }

  .analytics-card,
  .analytics-campaigns article,
  .analytics-ad-grid article,
  .analytics-metrics article {
    border-radius: 14px;
  }

  .analytics-section h2,
  .analytics-card h2 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .referral-home .referral-title {
    font-size: 32px;
  }

  .referral-form-section {
    padding: 18px;
  }

  .referral-form {
    padding: 16px;
  }

  .referral-home .referral-home-amount {
    display: none;
  }

  .visit-map-stage {
    min-height: 250px;
  }

  .visit-map-point em {
    display: none;
  }

  .visit-map-total {
    font-size: 28px;
  }
}
