/* ═══════════════════════════════════════════════════
   DEISS IMMOBILIER — Brand Design System
   Identité Phase 2 : Digital Blue · Cream · DM Sans + DM Serif Display
   ═══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #04024D;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* overflow-x:clip au lieu de hidden : sur iOS Safari, overflow-x:hidden sur body
     casse le touch scroll des containers internes (dropdown, modales, carousels).
     `clip` bloque le débordement horizontal SANS créer de contexte de scroll, ce
     qui laisse iOS initialiser correctement les scrolls internes.
     Fallback `hidden` pour iOS < 16 via @supports ci-dessous. */
  overflow-x: clip;
}
/* Fallback pour navigateurs qui ne supportent pas overflow:clip (iOS 15 et -) */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

/* ── Tokens ── */
:root {
  /* Deiss brand palette */
  --blue:        #3752F4;   /* Digital Blue — couleur primaire */
  --blue-dark:   #04024D;   /* Royal Blue — sections sombres */
  --blue-light:  #e8ebfe;   /* Digital Blue 10% */
  --blue-mid:    #c5ccfb;   /* Digital Blue 25% */
  --blue-pale:   #f2f3fe;   /* Digital Blue 5% */
  --cream:       #f7f2ed;   /* Fond principal Deiss */
  --black:       #04024D;   /* Royal Blue comme noir de marque */
  --gray-900:    #0a0940;
  --gray-700:    #2d2c5e;
  --gray-600:    #4a4878;
  --gray-400:    #8e8cb0;
  --gray-200:    #d8d6e0;
  --gray-100:    #f0ede8;
  --gray-50:     #f8f7f5;
  --white:       #ffffff;
  --accent:      #ed797b;   /* Coral — couleur d'accentuation */
  --accent-light: rgba(237,121,123,0.10);
  --accent-dark:  #b44d4f;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --border:      #e2e0db;
  --shadow-accent: 0 8px 30px rgba(237,121,123,0.25);
  --r:           14px;
  --r-lg:        20px;
  --r-xl:        28px;
  --shadow-sm:   0 2px 8px rgba(4,2,77,0.04);
  --shadow-md:   0 8px 30px rgba(4,2,77,0.07);
  --shadow-lg:   0 20px 50px rgba(4,2,77,0.10);
  --shadow-blue: 0 8px 30px rgba(55,82,244,0.25);
}

/* ── Typography — DM Sans + DM Serif Display ── */
h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--black);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--black);
}
h3 { font-size: 1.15rem; font-weight: 600; color: var(--black); line-height: 1.3; }
h4 { font-size: 0.82rem; font-weight: 700; color: var(--black); letter-spacing: 0.06em; text-transform: uppercase; }
p  { color: var(--gray-600); }
a  { color: inherit; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 800px; }
.container--lg { max-width: 1320px; }

/* ── Très grands écrans (iMac / moniteurs 1440p & 4K) ──
   Le conteneur restait bridé à 1160px → beaucoup de vide sur les côtés.
   On l'élargit et on grossit légèrement la base typo (rem) pour mieux
   occuper la largeur disponible, proportionnellement. */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  .container { max-width: 1340px; }
  .container--lg { max-width: 1500px; }
}
@media (min-width: 2100px) {
  html { font-size: 18px; }
  .container { max-width: 1480px; }
  .container--lg { max-width: 1660px; }
}
.section    { padding: 100px 0; position: relative; }
.section--sm { padding: 64px 0; }

/* Section backgrounds */
.section--gray { background: linear-gradient(180deg, rgba(55,82,244,0.04) 0%, #fff 50%); }
.section--white { background: transparent; }
.section--blue { background: var(--blue); }
.section--blue-light { background: var(--blue-light); }
.section--dark { background: var(--blue-dark); }
.section--cream { background: var(--cream); }

/* ── Rounded transitions ──
   Each section overlaps the previous one with a rounded top,
   hiding the bottom edge → no gap, no concave shapes. */
.section + .section {
  border-radius: 24px 24px 0 0;
  margin-top: -24px;
  padding-top: 124px;
  position: relative;
  z-index: 1;
}
.compare + .section--gray,
.social-proof + .section--gray {
  border-radius: 0;
  margin-top: 0;
}
/* First section after page-header */
.page-header + .section {
  border-radius: 24px 24px 0 0;
  margin-top: -24px;
  padding-top: 124px;
  position: relative;
  z-index: 1;
}

/* ── Tags / Badges ── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 18px;
}
.tag--white { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.tag--dark { background: rgba(0,0,0,0.06); color: var(--gray-700); }
.tag--green { background: var(--green-light); color: var(--green); }
.tag--accent { background: var(--accent-light); color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn:hover::after { transform: translateX(100%); }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 8px rgba(55,82,244,0.15); }
.btn--blue:hover { background: #2a3fd6; border-color: #2a3fd6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(55,82,244,0.3); }
.btn--dark { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.btn--dark:hover { background: #0a0940; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: #fff; color: var(--blue-dark); border-color: var(--gray-200); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: rgba(55,82,244,0.04); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(55,82,244,0.08); }
.btn--outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline-blue:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--white { background: #fff; color: var(--blue); border-color: #fff; font-weight: 600; }
.btn--white:hover { background: var(--cream); color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: #d66567; border-color: #d66567; transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn--outline-accent { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline-accent:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: transparent; padding-left: 0; padding-right: 0; }
.btn--ghost:hover { gap: 12px; }
.btn--ghost::after { display: none; }
.btn--sm { padding: 10px 20px; font-size: 0.82rem; border-radius: 10px; }
.btn--lg { padding: 18px 36px; font-size: 0.95rem; border-radius: 14px; }
.btn--hero {
  background: var(--blue); color: #fff; border-color: var(--blue);
  padding: 18px 36px; font-size: 1rem; font-weight: 600; border-radius: 14px;
  box-shadow: 0 4px 20px rgba(55,82,244,0.3), 0 1px 3px rgba(0,0,0,0.06);
}
.btn--hero:hover {
  background: #2a3fd6; border-color: #2a3fd6;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(55,82,244,0.4), 0 2px 6px rgba(0,0,0,0.08);
}
.btn--hero::after { display: none; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-bottom-color 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(4,2,77,0.04);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  text-decoration: none; display: flex; align-items: center; gap: 0;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-shape { width: 75px; height: auto; flex-shrink: 0; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.15; letter-spacing: -0.01em; margin-left: -1px; }
.nav__logo-text .logo-top { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.nav__logo-text .logo-bottom { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links > li { position: relative; }
.nav__links > li > a {
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  text-decoration: none; transition: color 0.2s; position: relative;
  padding: 8px 12px; display: flex; align-items: center; gap: 4px;
}
.nav__links > li > a::after {
  content: ''; position: absolute; bottom: 2px; left: 12px; right: 12px;
  height: 2px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav__links > li > a:hover { color: var(--black); }
/* Simple nav style */
.nav__links--simple { gap: 32px; }
.nav__links--simple > li > a,
.nav__links--simple > li > span {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 0; border-radius: 0; position: relative; transition: color 0.2s;
}
.nav__links--simple .nav__mega-item strong,
.nav__links--simple .nav__mega-item span,
.nav__links--simple .nav__mega-label { text-transform: none; letter-spacing: normal; font-size: inherit; }
.nav__links--simple .nav__mega-label { text-transform: uppercase; }
.nav__links--simple > li > a::after,
.nav__links--simple > li > span::after { left: 0; right: 0; }
.nav__links--simple > li > a:hover,
.nav__links--simple > li > span:hover { color: var(--blue); }
.nav__links--simple > li > a:hover::after,
.nav__links--simple > li > span:hover::after { transform: scaleX(1); }
.nav__links--simple .nav__link--active { color: var(--blue); }
.nav__links--simple .nav__link--active::after { transform: scaleX(1); }
.nav__links > li > a:hover::after { transform: scaleX(1); }
.nav__links > li > a.active { color: var(--blue); }
.nav__links > li > a.active::after { transform: scaleX(1); }
.nav__links > li > a .nav-chevron {
  width: 12px; height: 12px; transition: transform 0.2s; flex-shrink: 0;
}
.nav__links > li:hover > a .nav-chevron { transform: rotate(180deg); }

/* ── Mega-menu dropdown (full-width) ── */
.nav__mega {
  position: fixed; top: 72px; left: 16px; right: 16px;
  background: #fff; border-radius: 20px;
  padding: 52px 0 56px;
  box-shadow:
    0 25px 80px rgba(4,2,77,0.10),
    0 8px 24px rgba(4,2,77,0.05),
    0 0 0 1px rgba(4,2,77,0.03);
  display: flex; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s;
  z-index: 200;
}
/* Invisible bridge to prevent hover gap */
.nav__links > li > a + .nav__mega::before,
.nav__links > li > span + .nav__mega::before {
  content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px;
}
.nav__links > li:hover > .nav__mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav__mega-inner {
  display: grid; width: 100%; max-width: 1200px; padding: 0 40px;
}
.nav__mega--2col .nav__mega-inner { grid-template-columns: 1fr 1fr; gap: 0 60px; }
.nav__mega--3col .nav__mega-inner { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.nav__mega-col { padding: 0 44px; }
.nav__mega-col:first-child { padding-left: 0; }
.nav__mega-col:last-child { padding-right: 0; }
.nav__mega-col + .nav__mega-col {
  border-left: 1px solid rgba(4,2,77,0.06);
}
.nav__mega-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 22px; padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.nav__mega-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin: 4px -16px;
  position: relative;
}
.nav__mega-item:hover {
  background: var(--blue-pale, #f2f3fe);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(55,82,244,0.06);
}
.nav__mega-item strong {
  display: block; font-size: 0.88rem; font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 2px;
  transition: color 0.2s;
}
.nav__mega-item:hover strong { color: var(--blue); }
.nav__mega-item span {
  display: block; font-size: 0.76rem; color: var(--gray-500); line-height: 1.45;
}
.nav__mega-icon {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  padding: 3px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 7px;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.nav__mega-item:hover .nav__mega-icon {
  transform: scale(1.1);
  background: var(--blue);
  color: #fff;
}

/* ── Mega-menu mobile (accordion in nav__mobile) ── */
.nav__mobile-mega { display: none; flex-direction: column; padding: 4px 0 8px 16px; }
.nav__mobile-mega.open { display: flex; }
.nav__mobile-mega .nav__mega-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-dark);
  margin: 12px 0 6px; padding: 0;
  border-bottom: none;
}
.nav__mobile-mega .nav__mega-label:first-child { margin-top: 4px; }
.nav__mobile-mega .nav__mega-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 1px 0; border-radius: 10px;
  text-decoration: none;
}
.nav__mobile-mega .nav__mega-item:hover { background: var(--blue-pale); }
.nav__mobile-mega .nav__mega-icon {
  width: 18px; height: 18px; padding: 2px; border-radius: 5px;
}
.nav__mobile-mega .nav__mega-item strong {
  font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); margin: 0;
}
.nav__mobile-mega .nav__mega-item span { display: none; }
.nav__mobile-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; cursor: pointer;
  background: none; border: none; font: inherit; color: inherit;
  padding: 14px; font-size: 1rem; font-weight: 500; text-align: left;
  border-radius: 10px;
}
.nav__mobile-toggle svg {
  width: 18px; height: 18px; color: var(--gray-500);
  transition: transform 0.3s;
}
.nav__mobile-toggle.open svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__burger span { width: 22px; height: 2px; background: var(--black); border-radius: 2px; display: block; transition: all 0.3s; }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; padding: 24px; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav__mobile.open { display: flex; opacity: 1; transform: translateY(0); }
.nav__mobile a { padding: 14px; font-size: 1rem; font-weight: 500; color: var(--black); text-decoration: none; border-radius: 10px; }
.nav__mobile a:hover { background: var(--gray-50); }
.nav__mobile a.btn--blue { color: #fff; }
.nav__mobile a.btn--blue:hover { background: var(--blue); }

/* ═══════════════════════════════════════════════════
   HERO (shared structure, page-specific overrides)
   ═══════════════════════════════════════════════════ */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; z-index: 1; }
.hero--compact { padding: 140px 0 60px; }

/* ── Page Header (for inner pages) ── */
.page-header {
  padding: 140px 0 56px; position: relative; overflow: hidden;
  background: var(--blue-pale);
  border-radius: 0 0 24px 24px;
}
.page-header__bg {
  position: absolute; right: -80px; top: 40px;
  width: 400px; opacity: 0.04; pointer-events: none;
}
.page-header .tag { margin-bottom: 12px; }
.page-header h1 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-header p { font-size: 1.1rem; max-width: 560px; line-height: 1.7; }
.page-header .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--gray-400); margin-bottom: 24px;
}
.page-header .breadcrumb a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.page-header .breadcrumb a:hover { color: var(--blue); }
.page-header .breadcrumb span { color: var(--gray-600); }

/* ═══════════════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════════════ */

/* ── Cards ── */
.card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px; background: #fff; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(4,2,77,0.06);
}
.card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__deco {
  position: absolute; right: -20px; bottom: -20px; width: 100px; opacity: 0.06;
  transition: opacity 0.3s;
}
.card:hover .card__deco { opacity: 0.1; }

/* ── Icon Box ── */
.icon-box {
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px; flex-shrink: 0;
  transition: all 0.25s;
}
.card:hover .icon-box { background: var(--blue); transform: scale(1.05); }
.card:hover .icon-box .icon-svg { filter: brightness(0) invert(1); }
.icon-box--blue { background: var(--blue); color: #fff; }
.icon-box--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.6rem; }

/* ── Chip / Tag Inline ── */
.chip {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 50px;
}
.chip--green { background: var(--green-light); color: var(--green); }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ── Stats Row ── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); }
.stat {
  padding: 48px 28px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__val {
  font-size: clamp(2.2rem,3.5vw,3rem); font-weight: 700;
  color: var(--blue); letter-spacing: -0.03em; display: block; line-height: 1; margin-bottom: 8px;
}
.stat__label { font-size: 0.875rem; color: var(--gray-600); }

/* Stat blocks — card style */
.stat-block {
  background: #fff; border-radius: var(--r-xl); padding: 32px 24px;
  text-align: center; border: 1.5px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.stat-block:hover {
  border-color: var(--blue); transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-block__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: all 0.3s;
}
.stat-block__icon svg { width: 22px; height: 22px; color: var(--blue); transition: color 0.3s; }
.stat-block:hover .stat-block__icon { background: var(--blue); }
.stat-block:hover .stat-block__icon svg { color: #fff; }
.stat-block__val {
  font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 800;
  color: var(--accent); letter-spacing: -0.03em; display: block; line-height: 1; margin-bottom: 8px;
}
.stat-block__label { font-size: 0.85rem; color: var(--gray-600); }

/* ── Testimonial Cards ── */
.testi-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px;
  background: #fff; transition: all 0.3s; position: relative;
}
.testi-card::before {
  content: '\201C'; position: absolute; top: 16px; right: 28px;
  font-size: 4.5rem; font-weight: 300;
  color: var(--blue-light); line-height: 1; pointer-events: none;
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue); }
.testi-card__stars { color: var(--blue); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 16px; }
.testi-card__text { font-size: 0.92rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testi-card__author { display: flex; align-items: center; gap: 12px; }
.testi-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testi-card__name { font-size: 0.875rem; font-weight: 700; color: var(--black); }
.testi-card__meta { font-size: 0.78rem; color: var(--gray-400); }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: none; border-radius: var(--r); overflow: hidden; transition: border-color 0.2s; border-bottom: 1px solid var(--border); }
.faq-item.open { border-color: var(--blue); }
.faq-item__q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 0.925rem; color: var(--black);
  background: #fff; transition: background 0.15s; user-select: none;
}
.faq-item__q:hover { background: var(--gray-50); }
.faq-item__icon {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; color: var(--gray-600);
  transition: all 0.3s; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-item__a {
  max-height: 0; overflow: hidden; background: #fff;
  font-size: 0.9rem; color: var(--gray-600); line-height: 1.75;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-item__a { max-height: 300px; padding: 0 24px 20px; }

/* ── CTA Banner ── */
.cta-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  padding: 72px; background: var(--blue-dark);
  border-radius: var(--r-xl);
  overflow: hidden; position: relative;
}
.cta-banner__deco {
  position: absolute; right: 0; bottom: -40px; width: 320px; opacity: 0.1;
  pointer-events: none;
}
.cta-banner h2 { color: #fff; max-width: 520px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-top: 10px; max-width: 460px; }
.cta-banner__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; position: relative; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer { background: var(--blue-dark); padding: 72px 0 36px; border-radius: 24px 24px 0 0; margin-top: -24px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer__brand-logo {
  display: flex; align-items: center;
  text-decoration: none; margin-bottom: 14px;
  margin-left: -12px;
}
.footer__brand-logo img, .footer__brand-logo svg { width: 75px; height: auto; flex-shrink: 0; filter: brightness(0) invert(1); }
.footer__brand-logo .nav__logo-text { margin-left: -1px; }
.footer__brand-logo .nav__logo-text .logo-top { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer__brand-logo .nav__logo-text .logo-bottom { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; }
.footer__contact a { font-size: 0.82rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer__contact a:hover { color: var(--blue); }
.footer__col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 18px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.85rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.2); flex-wrap: wrap; gap: 12px;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a { color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.2s; }
.footer__bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

/* ── Page Loader ── */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__shape {
  width: 200px; height: 200px;
  animation: loaderPulse 1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.7; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.19s; } .d4 { transition-delay: 0.26s; }
.d5 { transition-delay: 0.33s; } .d6 { transition-delay: 0.4s; }

/* ── Text Split Reveal ── */
.text-reveal {
  overflow: hidden; display: inline-block;
}
.text-reveal__inner {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal.visible .text-reveal__inner {
  transform: translateY(0);
}

/* ── Marquee ── */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__inner {
  display: inline-flex; gap: 48px; animation: marquee 30s linear infinite;
}
.marquee__inner:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Parallax ── */
.parallax-shape { transition: transform 0.1s linear; will-change: transform; }

/* ── Hover Glow ── */
.glow-hover {
  position: relative;
}
.glow-hover::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; background: conic-gradient(from 0deg, var(--blue), transparent, var(--blue));
  opacity: 0; transition: opacity 0.3s; z-index: -1; filter: blur(12px);
}
.glow-hover:hover::before { opacity: 0.15; }

/* ── Floating Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-slow { animation: float 6s ease-in-out infinite; }

/* ── Pulse Dot ── */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.pulse-dot { position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--blue);
  animation: pulse-ring 2s ease-out infinite;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark), var(--blue));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ── Line Draw ── */
.line-draw {
  position: relative;
}
.line-draw::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-draw.visible::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════════════
   PROPTECH DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */

/* ── Glassmorphism Cards ── */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.glass-card--dark { background: rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.08); }
.glass-card--blue { background: rgba(61, 86, 240, 0.08); border-color: rgba(61, 86, 240, 0.15); }

/* ── Gradient Mesh Backgrounds ── */
.mesh-bg { position: relative; }
.mesh-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(61, 86, 240, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(22, 163, 74, 0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.mesh-bg > * { position: relative; z-index: 1; }

/* ── Grain Texture Overlay ── */
.grain-overlay { position: relative; }
.grain-overlay::after {
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 2;
}

/* ── Enhanced Hover Glow ── */
.glow-hover-blue { position: relative; }
.glow-hover-blue::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark), var(--blue));
  opacity: 0; transition: opacity 0.4s; z-index: -1; filter: blur(16px);
}
.glow-hover-blue:hover::before { opacity: 0.2; }

/* ── Micro Charts (CSS only) ── */
.micro-bar { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.micro-bar__col { width: 6px; border-radius: 3px; background: var(--blue-light); transition: all 0.3s; }
.micro-bar__col--active { background: var(--blue); }

.micro-donut {
  width: 48px; height: 48px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0% var(--donut-pct, 75%), var(--blue-light) var(--donut-pct, 75%) 100%);
  display: flex; align-items: center; justify-content: center;
}
.micro-donut__inner {
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: var(--blue);
}

/* ── Progress Bar ── */
.progress-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.progress-bar__fill {
  height: 100%; background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border-radius: 3px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Stat Card (Proptech) ── */
.stat-card {
  padding: 28px; border: 1.5px solid var(--border); border-radius: var(--r-lg);
  background: #fff; transition: all 0.25s; position: relative; overflow: hidden;
}
.stat-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card__icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.stat-card__icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.stat-card:hover .stat-card__icon { background: var(--blue); }
.stat-card:hover .stat-card__icon svg { stroke: #fff; }
.stat-card__val { font-size: 1.8rem; font-weight: 800; color: var(--black); letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.stat-card__label { font-size: 0.8rem; color: var(--gray-400); }
.stat-card__trend {
  position: absolute; top: 20px; right: 20px;
  font-size: 0.72rem; font-weight: 700; color: var(--green);
  background: var(--green-light); padding: 3px 8px; border-radius: 50px;
}

/* ── Icon SVG utility ── */
.icon-svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; transition: all 0.25s; }
.icon-svg--sm { width: 16px; height: 16px; }
.icon-svg--lg { width: 24px; height: 24px; }
.icon-svg--white { stroke: #fff; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
.badge--green { background: var(--green-light); color: var(--green); }
.badge--blue { background: var(--blue-light); color: var(--blue); }
.badge--gray { background: var(--gray-100); color: var(--gray-600); }

/* ── Divider ── */
.divider { width: 100%; height: 1px; background: var(--border); margin: 24px 0; }
.divider--blue { background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: 0.3; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ─────────────────────────────────────────────────────
   Stratégie 3 paliers :
   - Desktop  : > 1024px (default, tout le reste du CSS)
   - Tablette : 769px - 1024px (le bloc max-width:1024px ci-dessous)
   - Mobile   : ≤ 768px (le bloc max-width:768px ci-dessous)
   Les règles tablette s'empilent avec celles mobile (cascade CSS),
   donc une règle dans `max-width: 1024px` s'applique aussi en mobile
   sauf si elle est ré-écrasée par le bloc `max-width: 768px`.
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-1-1 { gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .cta-banner { padding: 48px; }

  /* ─── Tablette : padding sections plus aérés que desktop ─── */
  /* Sur iPad portrait/landscape, les paddings 100px desktop sont
     overkill et créent des "trous" entre les sections. On serre. */
  .section { padding: 76px 0; }
  .section + .section { padding-top: 96px; }
  .page-header + .section { padding-top: 96px; }
  .hero { padding: 110px 0 56px; }

  /* Container : on réduit le padding latéral pour gagner de la place
     horizontale (24px → 20px), ça élargit légèrement le contenu utile
     sur les écrans 768-1024px qui sont les plus serrés. */
  .container { padding: 0 20px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-1-1, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:last-child, .stat:nth-last-child(2):nth-child(odd) ~ .stat { border-bottom: none; }
  .cta-banner { grid-template-columns: 1fr; padding: 36px 24px; }
  .cta-banner__actions { align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { padding: 0 12px; }
  .nav__logo-shape { width: 55px; }
  .page-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
  /* Rounded corners: slightly smaller on mobile */
  .section + .section,
  .page-header + .section { border-radius: 20px 20px 0 0; margin-top: -20px; padding-top: 92px; }
  .page-header { border-radius: 0 0 20px 20px; }
  .footer { border-radius: 20px 20px 0 0; margin-top: -20px; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: none !important; }
}

/* ── Sticky CTA (mobile) ── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__inner {
  display: flex; gap: 10px; max-width: 600px; margin: 0 auto;
}
.sticky-cta .btn { flex: 1; justify-content: center; font-size: 0.88rem; padding: 13px 16px; }
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  .footer { padding-bottom: 90px; }
}

/* ── Logo-shaped images (CSS mask) ── */
.logo-img {
  display: inline-block; position: relative;
  -webkit-mask-image: url('../img/logo-icon.svg');
  mask-image: url('../img/logo-icon.svg');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  filter: drop-shadow(0 12px 32px rgba(4,2,77,0.18));
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.logo-img:hover { transform: translateY(-8px) scale(1.03); }
.logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-img--sm  { width: 140px; height: 140px; }
.logo-img--md  { width: 220px; height: 220px; }
.logo-img--lg  { width: 320px; height: 320px; }
.logo-img--xl  { width: 420px; height: 420px; }

/* Strategic logo-image placement helpers */
.logo-img-float {
  position: absolute; z-index: 2; pointer-events: none;
}
.logo-img-float .logo-img { pointer-events: auto; }

.logo-img-inline {
  display: flex; align-items: center; justify-content: center;
}

/* Section with logo-image side layout */
.logo-section {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.logo-section--reverse { grid-template-columns: auto 1fr; }

@media (max-width: 768px) {
  .logo-img--lg { width: 200px; height: 200px; }
  .logo-img--xl { width: 280px; height: 280px; }
  .logo-section, .logo-section--reverse { grid-template-columns: 1fr; }
  .logo-section .logo-img-inline { order: -1; }
}

/* ═══════════════════════════════════════════════════
   CTA RDV — Widget flottant
   ═══════════════════════════════════════════════════ */
.cta-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(55,82,244,0.35);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cta-fab:hover { transform: scale(1.08) rotate(-3deg); box-shadow: 0 8px 36px rgba(55,82,244,0.45); }
.cta-fab svg { width: 26px; height: 26px; transition: transform 0.3s; }
.cta-fab.open { border-radius: 50%; background: var(--blue-dark); }
/* Bascule en bleu marine quand le FAB survole une section de même couleur bleue */
.cta-fab--on-dark:not(.open) {
  background: var(--blue-dark);
  box-shadow: 0 6px 28px rgba(4,2,77,0.45);
}
.cta-fab--on-dark:not(.open):hover { box-shadow: 0 8px 36px rgba(4,2,77,0.55); }
.cta-fab--on-dark:not(.open) .cta-fab__pulse { border-color: var(--blue-dark); }
.cta-fab.open svg { transform: rotate(90deg); }
.cta-fab__pulse {
  position: absolute; inset: -4px; border-radius: 16px;
  border: 2px solid var(--blue); animation: cta-pulse 2.5s ease-out infinite;
  pointer-events: none;
}
.cta-fab.open .cta-fab__pulse { border-radius: 50%; }
@keyframes cta-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* CTA Panel */
.cta-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 9001;
  width: 380px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(4,2,77,0.18), 0 0 0 1px rgba(4,2,77,0.04);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95); opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.cta-panel.open {
  transform: translateY(0) scale(1); opacity: 1;
  pointer-events: auto;
}
.cta-panel__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: none; border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-600); transition: all 0.2s;
}
.cta-panel__close:hover { background: #fff; color: var(--blue-dark); transform: rotate(90deg); }
.cta-panel__close svg { width: 16px; height: 16px; }

/* Photo section + carousel */
.cta-panel__photo {
  position: relative; height: 160px; overflow: hidden;
}
.cta-panel__slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.cta-panel__slide.active { opacity: 1; }
.cta-panel__city-label {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--blue-dark);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cta-panel__photo-overlay {
  position: absolute; bottom: 12px; left: 12px;
}
.cta-panel__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Body */
.cta-panel__body { padding: 20px 24px 24px; }

/* Avatars */
.cta-panel__avatars {
  display: flex; align-items: center; gap: 0; margin-bottom: 14px;
}
.cta-panel__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff;
  margin-right: -8px;
}
.cta-panel__avatar:last-of-type { margin-right: 0; }
.cta-panel__avatars-text {
  font-size: 0.72rem; font-weight: 600; color: var(--gray-600);
  margin-left: 14px;
  display: flex; align-items: center; gap: 5px;
}
.cta-panel__avatars-text::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}

/* Title & description */
.cta-panel__title {
  font-size: 1.15rem; font-weight: 800; color: var(--blue-dark);
  line-height: 1.25; margin-bottom: 8px;
}
.cta-panel__desc {
  font-size: 0.82rem; color: var(--gray-600); line-height: 1.55;
  margin-bottom: 16px;
}

/* Perks */
.cta-panel__perks {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.cta-panel__perk {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; color: var(--blue-dark);
}
.cta-panel__perk svg { flex-shrink: 0; }

/* CTA Button */
.cta-panel__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 12px;
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 16px rgba(55,82,244,0.25);
}
.cta-panel__btn:hover {
  background: #2a3fd6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(55,82,244,0.35);
}

/* Footer */
.cta-panel__footer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px;
  font-size: 0.68rem; color: var(--gray-400); font-weight: 500;
}

@media (max-width: 480px) {
  .cta-panel { right: 12px; left: 12px; width: auto; bottom: 80px; }
  .cta-fab { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .chatbot { right: 0; left: 0; bottom: 0; width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; }
  .chatbot-fab { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .chatbot__input input { font-size: 16px; } /* Prevent iOS zoom */
}

/* ═══════════════════════════════════════════════════
   POP-UP CTA
   ═══════════════════════════════════════════════════ */
.cta-popup {
  position: fixed; z-index: 8000;
  transform: translateY(30px); opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.cta-popup.visible {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
}

/* ── Exit-intent overlay popup ── */
.cta-popup--exit {
  inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(4,2,77,0.55); backdrop-filter: blur(6px);
  transform: none; padding: 20px;
}
.cta-popup--exit .cta-popup__card {
  background: #fff; border-radius: 24px; padding: 48px 40px;
  max-width: 520px; width: 100%; text-align: center;
  position: relative; box-shadow: 0 32px 80px rgba(4,2,77,0.25);
}
.cta-popup--exit .cta-popup__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--gray-100); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: all 0.2s;
}
.cta-popup--exit .cta-popup__close:hover { background: var(--gray-200); }
.cta-popup--exit .cta-popup__close svg { width: 16px; height: 16px; }
.cta-popup--exit .cta-popup__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.cta-popup--exit .cta-popup__icon svg { width: 28px; height: 28px; }
.cta-popup--exit h3 {
  font-size: 1.5rem; font-weight: 800; color: var(--blue-dark);
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.cta-popup--exit p {
  font-size: 0.92rem; color: var(--gray-600); margin-bottom: 24px; line-height: 1.6;
}
.cta-popup--exit .cta-popup__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-popup--exit .cta-popup__btn {
  padding: 13px 28px; border-radius: 12px; font-size: 0.88rem;
  font-weight: 700; border: none; cursor: pointer; text-decoration: none;
  transition: all 0.25s; font-family: inherit;
}
.cta-popup--exit .cta-popup__btn--primary {
  background: var(--blue); color: #fff;
}
.cta-popup--exit .cta-popup__btn--primary:hover {
  background: var(--blue-dark); transform: translateY(-2px);
}
.cta-popup--exit .cta-popup__btn--ghost {
  background: transparent; color: var(--gray-600);
  border: 1.5px solid var(--border);
}
.cta-popup--exit .cta-popup__btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ── Slide-in bottom-left toast popup ── */
.cta-popup--toast {
  bottom: 28px; left: 28px;
  background: #fff; border-radius: 16px;
  padding: 20px 24px; max-width: 360px;
  box-shadow: 0 12px 40px rgba(4,2,77,0.14), 0 0 0 1px rgba(4,2,77,0.04);
  display: flex; gap: 14px; align-items: flex-start;
  transform: translateX(-30px); opacity: 0;
}
.cta-popup--toast.visible { transform: translateX(0); opacity: 1; }
.cta-popup--toast .cta-popup__toast-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-popup--toast .cta-popup__toast-icon svg { width: 20px; height: 20px; }
.cta-popup--toast .cta-popup__toast-content { flex: 1; }
.cta-popup--toast .cta-popup__toast-title {
  font-size: 0.84rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 3px;
}
.cta-popup--toast .cta-popup__toast-text {
  font-size: 0.78rem; color: var(--gray-600); line-height: 1.5; margin-bottom: 10px;
}
.cta-popup--toast .cta-popup__toast-link {
  font-size: 0.78rem; font-weight: 700; color: var(--blue);
  text-decoration: none; transition: opacity 0.2s;
}
.cta-popup--toast .cta-popup__toast-link:hover { opacity: 0.7; }
.cta-popup--toast .cta-popup__toast-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: 2px; transition: color 0.2s;
}
.cta-popup--toast .cta-popup__toast-close:hover { color: var(--blue-dark); }
.cta-popup--toast .cta-popup__toast-close svg { width: 14px; height: 14px; }

@media (max-width: 480px) {
  .cta-popup--toast { left: 12px; right: 12px; max-width: none; bottom: 96px; }
  .cta-popup--exit .cta-popup__card { padding: 36px 24px; }
}

/* ═══════════════════════════════════════════════════
   CONTACT MODAL — Prise de RDV + Message
   ═══════════════════════════════════════════════════ */
.contact-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.contact-modal.open { opacity: 1; visibility: visible; }
.contact-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4,2,77,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contact-modal__card {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(4,2,77,0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.contact-modal.open .contact-modal__card {
  transform: translateY(0) scale(1);
}
.contact-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-50, #f8f8fa); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.contact-modal__close:hover { background: var(--gray-100, #eee); }
.contact-modal__close svg { width: 18px; height: 18px; color: var(--gray-600); }
.contact-modal__header {
  padding: 36px 36px 0;
  text-align: center;
}
.contact-modal__icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--blue-light, #e8ebfe);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.contact-modal__icon svg { width: 26px; height: 26px; color: var(--blue); }
.contact-modal__header h2 {
  font-size: 1.4rem; font-weight: 800;
  color: var(--blue-dark); margin-bottom: 6px;
}
.contact-modal__header p {
  font-size: 0.88rem; color: var(--gray-400);
  line-height: 1.5;
}

/* Tabs */
.contact-modal__tabs {
  display: flex; gap: 4px;
  margin: 24px 36px 0;
  background: var(--gray-50, #f8f8fa);
  border-radius: 12px; padding: 4px;
}
.contact-modal__tab {
  flex: 1; padding: 10px 12px;
  border: none; background: transparent;
  font-size: 0.82rem; font-weight: 600;
  color: var(--gray-400); cursor: pointer;
  border-radius: 10px; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.contact-modal__tab svg { width: 16px; height: 16px; }
.contact-modal__tab.active {
  background: #fff; color: var(--blue);
  box-shadow: 0 2px 8px rgba(4,2,77,0.08);
}

/* Form */
.contact-modal__form {
  padding: 24px 36px 36px;
}
.contact-modal__row {
  display: flex; gap: 12px;
}
.contact-modal__field {
  margin-bottom: 16px; flex: 1;
}
.contact-modal__field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--gray-600); margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.contact-modal__field input,
.contact-modal__field select,
.contact-modal__field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px; font-size: 0.88rem;
  font-family: inherit; color: var(--blue-dark);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact-modal__field input:focus,
.contact-modal__field select:focus,
.contact-modal__field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55,82,244,0.1);
}
.contact-modal__field textarea {
  resize: vertical; min-height: 100px;
}
.contact-modal__field input::placeholder,
.contact-modal__field textarea::placeholder {
  color: var(--gray-300, #c0c0c0);
}
.contact-modal__submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: #fff;
  font-size: 0.92rem; font-weight: 700;
  border: none; border-radius: 12px;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.contact-modal__submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.contact-modal__footer {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 16px;
  font-size: 0.72rem; color: var(--gray-300);
}
.contact-modal__footer svg { width: 12px; height: 12px; }

/* Success state */
.contact-modal__success {
  padding: 48px 36px;
  text-align: center; display: none;
}
.contact-modal__success.show { display: block; }
.contact-modal__success-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(22,163,106,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-modal__success-icon svg { width: 32px; height: 32px; color: #16a34a; }
.contact-modal__success h3 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 8px;
}
.contact-modal__success p {
  font-size: 0.88rem; color: var(--gray-400);
  line-height: 1.5;
}

/* Panel hidden by tab */
.contact-modal__panel { display: none; }
.contact-modal__panel.active { display: block; }

@media (max-width: 540px) {
  .contact-modal { padding: 12px; }
  .contact-modal__card { border-radius: 20px; }
  .contact-modal__header { padding: 28px 24px 0; }
  .contact-modal__tabs { margin: 20px 24px 0; }
  .contact-modal__form { padding: 20px 24px 28px; }
  .contact-modal__row { flex-direction: column; gap: 0; }
  .contact-modal__header h2 { font-size: 1.2rem; }
}

/* ══════ Login / Signup Modal (partagé entre pages) ══════ */
.login-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.login-modal-overlay.open { opacity: 1; pointer-events: auto; }
.login-modal {
  background: #fafbfc; border-radius: 20px; overflow: hidden;
  max-width: 400px; width: 90%; position: relative;
  box-shadow: 0 28px 72px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.06);
  transform: translateY(20px); transition: transform 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}
.login-modal-overlay.open .login-modal { transform: translateY(0); }
.login-modal__header {
  background: transparent;
  padding: 40px 32px 4px; text-align: center; position: relative;
}
.login-modal__header::after { display: none; }
.login-modal__header .footer__brand-logo { justify-content: center; margin-bottom: 20px; gap: 0; }
.login-modal__header .footer__brand-logo img { filter: none !important; width: 64px !important; height: auto; }
.login-modal__header .nav__logo-text { text-align: left; line-height: 1.1; font-size: 0.95rem; margin-left: -1px; }
.login-modal__header .nav__logo-text .logo-top { color: var(--navy, #0f172a) !important; font-weight: 700; }
.login-modal__header .nav__logo-text .logo-bottom { color: var(--blue) !important; font-weight: 700; }
.login-modal__form {
  padding: 4px 32px 32px;
  background: transparent;
}
.login-modal__sso { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.login-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.login-modal__close:hover { background: rgba(0,0,0,0.05); }
.login-modal__close svg { width: 18px; height: 18px; color: var(--gray-500, #6b7280); }
.login-modal__title {
  font-size: 1.35rem; font-weight: 800; color: var(--navy, #0f172a);
  text-align: center; margin-bottom: 6px; line-height: 1.3;
}
.login-modal__sub {
  font-size: 0.9rem; color: var(--gray-500, #6b7280);
  text-align: center; margin-bottom: 0;
}
.login-modal__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: 1px solid rgba(0,0,0,0.08); background: #fff;
  color: var(--navy, #0f172a); transition: all 0.15s ease;
  font-family: inherit;
}
.login-modal__btn:hover { border-color: rgba(0,0,0,0.16); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.login-modal__btn img { width: 18px; height: 18px; }
.login-modal__divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: var(--gray-400, #9ca3af); font-size: 0.78rem;
}
.login-modal__divider::before, .login-modal__divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08);
}
.login-modal__input {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12); font-size: 16px;
  margin-bottom: 10px; outline: none; transition: border-color 0.15s ease;
  font-family: inherit; box-sizing: border-box; background: #fff;
  color: var(--navy, #0f172a);
}
.login-modal__input::placeholder { color: var(--gray-400, #9ca3af); }
.login-modal__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.login-modal__submit {
  width: 100%; padding: 13px; border-radius: 10px; border: none;
  background: var(--blue); color: #fff; font-size: 0.92rem;
  font-weight: 600; cursor: pointer; transition: background 0.15s ease;
  margin-top: 6px; font-family: inherit;
}
.login-modal__submit:hover { background: #2d44d4; }
.login-modal__signup {
  width: 100%; padding: 11px; border-radius: 10px;
  border: none; background: transparent;
  color: var(--gray-500, #6b7280); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: color 0.15s ease; margin-top: 8px;
  font-family: inherit;
}
.login-modal__signup:hover { color: var(--blue); background: transparent; }
.login-modal__checkbox {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 8px; cursor: pointer;
}
.login-modal__checkbox input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--blue); cursor: pointer;
}
.login-modal__checkbox span {
  font-size: 0.72rem; color: var(--gray-600); line-height: 1.4;
}
.login-modal__checkbox a {
  color: var(--blue); text-decoration: underline; font-weight: 600;
}
.login-modal__checkbox a:hover { color: #2d44d4; }
.login-modal__error {
  font-size: 0.78rem; color: #dc2626; font-weight: 500;
  min-height: 18px; margin-bottom: 6px; text-align: center;
}
