/* ============================================================
   Couleurs & variables — changez --primary pour votre charte
   ============================================================ */
:root {
  --primary: #6a4fd6;
  --primary-dark: #5238b8;
  --primary-soft: #f0ebff;
  --accent: #e8a33d;
  --ink: #0f1733;
  --text: #4a5372;
  --muted: #8a92ad;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 51, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 51, .14);
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 40px; }
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(106, 79, 214, .3); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 12px 28px rgba(106, 79, 214, .38); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--outline-white { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { color: var(--primary); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(5px); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 18px; transition: .2s;
}
.round-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(15, 23, 51, .06); --header-h: 66px; }
.header__inner { display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 12px; letter-spacing: -.02em;
}
.logo--white { color: #fff; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--primary); }
.nav__cta-mobile { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: calc(var(--header-h) + 70px) 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f6f2ff 0%, #fff 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.blob--1 { width: 460px; height: 460px; background: #dccfff; top: -120px; right: -80px; }
.blob--2 { width: 360px; height: 360px; background: #fde3b8; bottom: -100px; left: -120px; animation-delay: -4s; }
.blob--3 { width: 260px; height: 260px; background: #ffe0cc; top: 40%; left: 45%; animation-delay: -8s; opacity: .35; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--ink);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(25, 195, 166, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(25, 195, 166, 0); } }
.hero__title { font-size: clamp(36px, 5vw, 60px); margin: 22px 0 18px; }
.hero__text { font-size: 18px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 30px; color: var(--ink); font-weight: 800; }
.hero__stats span { font-size: 14px; color: var(--muted); }

.hero__visual { position: relative; height: 560px; }
.phone {
  position: absolute; width: 260px; height: 520px; border-radius: 40px; background: #0f1733; padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone__screen { width: 100%; height: 100%; border-radius: 30px; background: #fff; padding: 22px 18px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.phone--back { right: 0; top: 0; transform: rotate(6deg); animation: floatY 6s ease-in-out infinite; }
.phone--front { left: 10%; top: 40px; transform: rotate(-4deg); animation: floatY 6s ease-in-out infinite -3s; z-index: 2; }
@keyframes floatY { 50% { translate: 0 -14px; } }
.app-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); }
.pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.pill--green { background: #dff8f2; color: #0f9a82; }
.app-amount { font-size: 34px; font-weight: 800; color: var(--ink); }
.app-chart { height: 130px; display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: var(--bg-soft); border-radius: 16px; }
.app-chart span { flex: 1; height: var(--h); border-radius: 6px; background: linear-gradient(180deg, var(--primary), #b6a3f0); transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.app-chart span:nth-child(2) { animation-delay: .1s; } .app-chart span:nth-child(3) { animation-delay: .2s; } .app-chart span:nth-child(4) { animation-delay: .3s; }
.app-chart span:nth-child(5) { animation-delay: .4s; } .app-chart span:nth-child(6) { animation-delay: .5s; } .app-chart span:nth-child(7) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(0); } }
.app-row { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.app-row b { color: var(--ink); }
.app-photo { height: 190px; border-radius: 18px; background: linear-gradient(135deg, #8f74e6, #e8a33d); position: relative; overflow: hidden; }
.app-photo::before { content: "🏡"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; }
.app-title { font-weight: 800; color: var(--ink); line-height: 1.3; }
.app-sub { font-size: 13px; color: var(--muted); margin-top: -10px; }
.app-booking { display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); padding: 12px; border-radius: 14px; }
.app-booking small { display: block; font-size: 11px; color: var(--muted); }
.app-booking b { color: var(--ink); font-size: 14px; }
.app-msg { font-size: 12px; background: var(--primary); color: #fff; padding: 10px 12px; border-radius: 14px 14px 14px 4px; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: floatY 5s ease-in-out infinite;
}
.float-card b { display: block; color: var(--ink); font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 20px; }
.float-card--1 { left: -20px; top: 70px; animation-delay: -1s; }
.float-card--2 { right: -10px; bottom: 120px; animation-delay: -2.5s; }
.float-card--3 { left: 0; bottom: 20px; animation-delay: -4s; }

/* ============ Plateformes ============ */
.platforms { padding: 30px 0 50px; text-align: center; }
.platforms__title { font-weight: 600; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: scrollX 30s linear infinite; padding: 10px 0; }
.marquee__track span { font-size: 26px; font-weight: 800; color: #b3bad0; white-space: nowrap; transition: color .2s; }
.marquee__track span:hover { color: var(--ink); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(30px, 4vw, 46px); }
.section__head p { font-size: 17px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 24px; }
.section__head--row > div:first-child { max-width: 620px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary); background: var(--primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* Visuels illustrés (en attendant vos images) */
.sv { border-radius: var(--radius); display: grid; place-items: center; position: relative; overflow: hidden; }
.sv span { font-size: 84px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .15)); position: relative; z-index: 1; }
.sv::before, .sv::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.sv::before { width: 70%; aspect-ratio: 1; top: -20%; right: -15%; }
.sv::after { width: 45%; aspect-ratio: 1; bottom: -15%; left: -10%; }
.sv--1 { background: linear-gradient(135deg, #5b8cff, #9fb9ff); }
.sv--2 { background: linear-gradient(135deg, #7e57c2, #b39ddb); }
.sv--3 { background: linear-gradient(135deg, #19c3a6, #8ff0dc); }
.sv--4 { background: linear-gradient(135deg, #ffb300, #ffe082); }
.sv--5 { background: linear-gradient(135deg, #ff7a8a, #ffc1c9); }
.sv--6 { background: linear-gradient(135deg, #26c6da, #b2ebf2); }
.sv--7 { background: linear-gradient(135deg, #66bb6a, #c5e1a5); }
.sv--8 { background: linear-gradient(135deg, #ff8a65, #ffccbc); }

/* ============ Services ============ */
.services { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.services__tabs { display: flex; flex-direction: column; gap: 8px; }
.service-tab {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; border-radius: 14px;
  border: 1px solid transparent; background: transparent; color: var(--ink); font-weight: 600; font-size: 16px;
  position: relative; overflow: hidden; transition: background .2s, border-color .2s, color .2s;
}
.service-tab:hover { background: var(--bg-soft); }
.service-tab__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 20px; flex: none; transition: background .2s; }
.service-tab.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--primary); }
.service-tab.is-active .service-tab__icon { background: var(--primary-soft); }
.service-tab.is-active::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--primary); width: 100%;
  transform-origin: left; animation: progress 5s linear;
}
.services:hover .service-tab.is-active::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } }
.services__panels { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); min-height: 520px; }
.service-panel { display: none; }
.service-panel.is-active { display: block; animation: fadeUp .5s ease both; }
.service-panel__visual { height: 340px; margin-bottom: 26px; }
.service-panel h3 { font-size: 26px; }
.service-panel p { font-size: 17px; margin: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ============ CTA ============ */
.cta-banner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, #5238b8 0%, var(--primary) 55%, #9a7be8 100%);
  border-radius: 32px; padding: 64px; color: rgba(255, 255, 255, .85); position: relative; overflow: hidden;
}
.cta-banner::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .07); right: -160px; top: -200px; }
.cta-banner h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta-banner__visual { position: relative; height: 240px; display: grid; place-items: center; }
.cta-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); animation: spin 22s linear infinite; }
.cta-key { width: 140px; height: 140px; border-radius: 36px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 70px; animation: floatY 5s ease-in-out infinite; }

/* ============ Étapes ============ */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .6s;
}
.step.is-visible { opacity: 1; transform: none; }
.step:nth-child(even) .step__visual { order: -1; }
.step__num { font-size: 56px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 16px; }
.step h3 { font-size: 28px; }
.step p { font-size: 17px; margin-bottom: 22px; }
.step__visual { height: 300px; }

/* ============ À propos ============ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.about__texts { display: flex; flex-direction: column; gap: 24px; }
.about-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.about-card h3 { font-size: 22px; }
.about-card p { margin: 0; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flip { perspective: 1200px; height: 480px; outline: none; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip:focus-visible .flip__inner { box-shadow: 0 0 0 3px var(--primary); border-radius: var(--radius); }
.flip__front, .flip__back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
}
.flip__front { background: #fff; border: 1px solid var(--line); align-items: center; justify-content: center; text-align: center; }
.flip__front p { color: var(--muted); margin: 0; }
.flip__back { background: var(--ink); color: rgba(255, 255, 255, .8); transform: rotateY(180deg); font-size: 14px; overflow: auto; }
.flip__back h4 { color: #fff; padding-right: 44px; }
.flip__link { color: #fff; font-weight: 700; text-decoration: underline; margin-top: auto; }
.avatar { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 20px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 51, .15); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.avatar--1 { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.avatar--2 { background: linear-gradient(135deg, #7a5cff, #ff8a65); }
.flip__btn {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; transition: transform .3s;
}
.flip__btn:hover { transform: rotate(180deg); }
.flip__back .flip__btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }

/* ============ Offre ============ */
.pricing { display: grid; grid-template-columns: 1fr 1.3fr; max-width: 1000px; margin: 0 auto; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pricing__left { background: linear-gradient(160deg, var(--ink), #24306b); color: rgba(255, 255, 255, .8); padding: 48px; display: flex; flex-direction: column; align-items: flex-start; }
.pricing__tag { background: rgba(255, 255, 255, .12); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.pricing__price { font-size: 96px; font-weight: 800; color: #fff; line-height: 1; margin: 26px 0 6px; letter-spacing: -.04em; }
.pricing__price small { font-size: 48px; }
.pricing__sub { font-size: 18px; color: #fff; font-weight: 600; }
.pricing__note { font-size: 14px; margin-bottom: 30px; }
.pricing__left .btn { margin-top: auto; }
.pricing__right { background: #fff; padding: 48px; }
.pricing__included { font-weight: 700; color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px;
}

/* ============ Logements ============ */
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.property { scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.property:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property__media { position: relative; height: 240px; overflow: hidden; }
.property__slides { display: flex; height: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.pslide { flex: 0 0 100%; height: 100%; }
.pslide img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.pslide--placeholder { display: grid; place-items: center; font-size: 64px; }
.pnav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 20px; line-height: 1; opacity: 0; transition: opacity .2s;
}
.property:hover .pnav, .pnav:focus-visible { opacity: 1; }
.pnav--prev { left: 10px; } .pnav--next { right: 10px; }
.property__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pdot { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); transition: width .3s, background .3s; }
.pdot.is-active { width: 20px; background: #fff; }
.property__city { position: absolute; top: 12px; left: 12px; background: rgba(15, 23, 51, .65); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.property__body { padding: 20px; }
.property__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.property__meta span { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.pslide { background: linear-gradient(135deg, #e9e3fb, #fbead1); }

/* ============ Engagements ============ */
.pledges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pledge { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s; }
.pledge:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pledge__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.pledge h3 { font-size: 18px; }
.pledge p { margin: 0; font-size: 15px; }
.property h3 { font-size: 18px; min-height: 2.4em; margin-bottom: 18px; }

/* ============ Avis ============ */
.reviews { display: flex; flex-direction: column; gap: 24px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__track { display: flex; gap: 24px; width: max-content; animation: scrollX 50s linear infinite; }
.reviews__row--reverse .reviews__track { animation-direction: reverse; }
.reviews:hover .reviews__track { animation-play-state: paused; }
.review { width: 360px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(15, 23, 51, .04); display: flex; flex-direction: column; }
.review__stars { color: #ffb400; letter-spacing: 2px; font-size: 18px; }
.review blockquote { margin: 12px 0 20px; color: var(--ink); font-weight: 500; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; }
.review figcaption b { display: block; color: var(--ink); }
.review figcaption small { color: var(--muted); }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.contact__info, .contact__form { background: #fff; border-radius: 28px; padding: 40px; border: 1px solid var(--line); }
.contact__info { background: var(--ink); color: rgba(255, 255, 255, .75); }
.contact__info h3 { color: #fff; font-size: 26px; }
.contact__form h3 { font-size: 26px; margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); margin-top: 14px; transition: background .2s, transform .2s; }
.contact-item:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.contact-item__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary); display: grid; place-items: center; font-size: 22px; flex: none; }
.contact-item small { display: block; font-size: 13px; }
.contact-item b { color: #fff; }

/* ============ Formulaires ============ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(106, 79, 214, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e5484d; background: #fff5f5; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 20px; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.check.is-invalid span { color: #e5484d; }
.form-state { text-align: center; padding: 30px 10px; animation: fadeUp .4s ease both; }
.form-state__icon { width: 64px; height: 64px; border-radius: 50%; background: #dff8f2; color: #0f9a82; display: inline-grid; place-items: center; font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.form-state h4 { font-size: 24px; }
.form-state--error { background: #fff5f5; color: #c62828; border-radius: 12px; padding: 14px; margin-top: 14px; }
.form-state--error p { margin: 0; }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__head h2 { font-size: clamp(30px, 4vw, 46px); }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 700; color: var(--ink); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 20px; font-weight: 700; transition: transform .3s, background .3s, color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-item__body { padding: 0 24px 22px; animation: fadeUp .35s ease both; }
.faq-item__body p { margin: 0; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 70px 0 30px; position: relative; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand p { max-width: 320px; margin-top: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 14px; }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: #fff; }
.to-top { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 22px; opacity: .4; transition: opacity .3s, transform .3s; align-self: start; }
.to-top.is-visible { opacity: 1; }
.to-top:hover { transform: translateY(-4px); }

/* ============ WhatsApp ============ */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s;
}
.whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ripple 2.2s infinite; }
.whatsapp:hover { transform: scale(1.08); }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }

/* ============ Modale ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 51, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal__box {
  position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px;
  padding: 40px; box-shadow: var(--shadow-lg); transform: translateY(30px) scale(.97); opacity: 0; transition: transform .3s, opacity .3s;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__box h2 { font-size: 30px; padding-right: 40px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); font-size: 16px; transition: transform .25s, background .2s; }
.modal__close:hover { transform: rotate(90deg); background: var(--primary-soft); }

/* ============ Animations d'apparition ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .header__cta { display: none; }
  .carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .pledges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; gap: 6px; padding: 30px 24px;
    background: #fff; transform: translateX(100%); transition: transform .35s ease; margin: 0; overflow: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 20px; }
  .header { background: rgba(255, 255, 255, .95); }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__inner, .services, .about, .contact, .faq, .cta-banner, .pricing { grid-template-columns: 1fr; }
  .hero__visual { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .services__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .services__tabs::-webkit-scrollbar { display: none; }
  .service-tab { flex: none; }
  .services__panels { min-height: 0; }
  .service-panel__visual { height: 240px; }
  .cta-banner { padding: 44px 32px; }
  .cta-banner__visual { display: none; }
  .step { grid-template-columns: 1fr; gap: 24px; padding: 28px; position: relative; top: 0; }
  .step:nth-child(even) .step__visual { order: 0; }
  .step__visual { height: 200px; }
  .faq__head { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .to-top { position: absolute; right: 24px; top: -26px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .logo { font-size: 16px; white-space: nowrap; gap: 8px; }
  .logo__mark { width: 34px; height: 34px; font-size: 11px; }
  .section { padding: 72px 0; }
  .hero__stats { gap: 24px; }
  .hero__stats strong { font-size: 24px; }
  .hero__visual { height: 460px; }
  .phone { width: 210px; height: 430px; border-radius: 34px; }
  .phone--front { left: 0; }
  .app-photo { height: 140px; }
  .app-chart { height: 100px; }
  .float-card { padding: 10px 12px; }
  .float-card--1 { left: auto; right: 0; top: auto; bottom: 200px; }
  .float-card--2 { display: none; }
  .carousel { grid-auto-columns: 85%; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .founders { grid-template-columns: 1fr; }
  .flip { height: 360px; }
  .pricing__left, .pricing__right, .contact__info, .contact__form, .modal__box { padding: 28px 22px; }
  .pricing__price { font-size: 76px; }
  .form__grid { grid-template-columns: 1fr; }
  .review { width: 290px; }
  .pledges { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ============ Pages légales ============ */
.legal { padding: calc(var(--header-h) + 60px) 0 80px; background: var(--bg-soft); }
.legal__inner { max-width: 860px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 56px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal__updated { color: var(--muted); font-size: 14px !important; }
.legal__facts { list-style: none; padding: 20px 24px !important; background: var(--bg-soft); border-radius: 16px; }
.legal-back { margin-left: auto; }
.footer--legal { padding: 10px 0 30px; }
@media (max-width: 640px) {
  .legal__inner { padding: 32px 20px; border-radius: 20px; }
  .legal-back { padding: 10px 14px; font-size: 14px; }
  .legal-page .logo__text { display: none; }
}

/* ============ Page 404 ============ */
.notfound { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden; }
.notfound__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f6f2ff 0%, #fff 100%); }
.notfound__inner { max-width: 640px; }
.notfound__code { font-size: clamp(96px, 18vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; display: flex; justify-content: center; align-items: center; gap: 6px; }
.notfound__code span { -webkit-text-fill-color: initial; font-size: .7em; display: inline-block; animation: floatY 4s ease-in-out infinite; }
.notfound h1 { font-size: clamp(26px, 4vw, 40px); margin-top: 18px; }
.notfound p { font-size: 18px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ============ Secteurs & pages communes ============ */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sectors h3 { font-size: 20px; margin-bottom: 16px; }
.town-links { display: flex; flex-wrap: wrap; gap: 10px; }
.town-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); font-size: 15px; transition: border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.town-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.city-nav { margin-left: auto; }
.city-cta { margin-left: 8px; }
.city-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 50px) 0 80px; }
.city-hero__title { font-size: clamp(34px, 5vw, 56px); margin: 22px 0 18px; max-width: 900px; }
.city-hero__text { font-size: 18px; max-width: 760px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary); }
.city-assets { grid-template-columns: repeat(3, 1fr); }
.city-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.city-split h2 { font-size: clamp(26px, 3.4vw, 38px); }
.city-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.city-card h3 { font-size: 20px; margin-bottom: 18px; }
.city-card .checklist { margin-bottom: 24px; }
.city-final { margin-bottom: 80px; grid-template-columns: 1fr; }
@media (max-width: 920px) {
  .city-nav { display: none; }
  .city-cta { margin-left: auto; padding: 10px 16px; font-size: 14px; }
  .sectors, .city-split, .city-assets { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .city-cta { display: none; }
}

/* ============ Ajustements en-tête & secteurs ============ */
.logo { white-space: nowrap; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 20px; }
.logo__text small { font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); margin-top: 3px; }
.logo--white .logo__text small { color: #c9b6ff; }
.nav a { white-space: nowrap; }
.header__cta { white-space: nowrap; }
.sectors { grid-template-columns: 1fr; gap: 36px; max-width: 980px; margin: 0 auto; }
.sectors h3 { display: flex; align-items: center; gap: 12px; }
.sectors h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 1200px) {
  .nav { gap: 20px; }
  .header__inner { gap: 24px; }
}
@media (max-width: 1140px) {
  .header__cta { display: none; }
}
@media (max-width: 640px) {
  .logo__text { font-size: 17px; }
  .logo__text small { font-size: 9.5px; letter-spacing: .22em; }
}

/* ============ Votre argent reste chez vous ============ */
.money-safe { display: flex; gap: 20px; align-items: flex-start; max-width: 1000px; margin: 28px auto 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 20px; padding: 26px 30px; box-shadow: var(--shadow); }
.money-safe__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff4e2; display: grid; place-items: center; font-size: 24px; }
.money-safe h3 { font-size: 20px; margin-bottom: 6px; }
.money-safe p { margin: 0; }
@media (max-width: 640px) { .money-safe { flex-direction: column; padding: 22px; } }
