/* =========================================================
   Chic Immobilier — feuille de style principale
   ========================================================= */
:root {
  --navy: #13307a;
  --navy-dark: #0d235c;
  --navy-soft: #e9eefa;
  --red: #e5232b;
  --red-dark: #c4161e;
  --green: #15803d;        /* vert WhatsApp foncé : texte blanc lisible (contraste 5:1, WCAG AA) */
  --green-dark: #116b33;
  --text: #1c2340;
  --muted: #667089;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(19, 48, 122, .09);
  --shadow-hover: 0 14px 34px rgba(19, 48, 122, .16);
  --container: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy); font-weight: 700; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(229, 35, 43, .3); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--navy-soft); }
.btn-outline-white { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- En-tête ---------- */
.topline { height: 4px; background: linear-gradient(90deg, var(--navy) 0 70%, var(--red) 70%); }
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 2px 14px rgba(19, 48, 122, .07);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand img { height: 62px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav .nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
  font-weight: 500; font-size: 14.5px; color: var(--navy); background: none; border: 0; cursor: pointer;
}
.main-nav .nav-link .icon { width: 14px; height: 14px; transition: transform .2s; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--red); }
.main-nav .nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px;
}
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px;
  list-style: none; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover > .nav-link .icon { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.dropdown a .icon { width: 17px; height: 17px; color: var(--navy); }
.dropdown a:hover, .dropdown a.active { background: var(--navy-soft); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center; border-radius: 10px; margin-left: auto;
}
.burger .icon { width: 28px; height: 28px; }

/* ---------- Héro (accueil) ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center; color: #fff;
  background: var(--navy) url("https://images.unsplash.com/photo-1613977257363-707ba9348227?w=1900&q=75&auto=format&fit=crop") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 35, 92, .97) 0%, rgba(19, 48, 122, .88) 35%, rgba(19, 48, 122, .35) 65%, rgba(19, 48, 122, 0) 85%);
}
.hero .container { position: relative; padding-top: 60px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); max-width: 780px; font-weight: 700; letter-spacing: -.5px; }
.hero .tags { margin-top: 18px; font-size: 18px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero .tags span + span::before { content: "•"; margin-right: 14px; color: var(--red); }
.hero p.lead { margin-top: 10px; max-width: 520px; color: rgba(255, 255, 255, .88); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .wa-float-hero { position: absolute; right: 24px; bottom: 74px; }

/* ---------- Services ---------- */
.services { position: relative; z-index: 2; margin-top: -46px; }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.service { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; transition: background .2s; }
.service + .service { border-left: 1px solid var(--line); }
.service:hover { background: var(--bg-soft); }
.service .s-ico { width: 46px; height: 46px; color: var(--navy); }
.service .s-ico .icon { width: 100%; height: 100%; }
.service h3 { font-size: 16px; }
.service p { color: var(--muted); font-size: 13.5px; }
.service .s-arrow { display: none; }
.services-title { display: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.link-more { color: var(--red-dark); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- Cartes de biens ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; cursor: pointer;
  border: 0; padding: 0; text-align: left; width: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.card-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--navy-soft); }
.grid-2 .card-media { aspect-ratio: 16 / 7.6; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { padding: 4px 11px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; background: var(--navy); }
.badge-red { background: var(--red); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.card-loc .icon { width: 15px; height: 15px; }
.card-price { color: var(--red); font-weight: 700; font-size: 16.5px; }
.card-price small { font-weight: 600; font-size: 12.5px; }
.card-feats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.card-feats span { display: inline-flex; align-items: center; gap: 6px; }
.card-feats .icon { width: 16px; height: 16px; color: var(--navy); }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff; display: grid; grid-template-columns: 1.3fr 1fr;
  background: linear-gradient(100deg, var(--navy-dark) 0%, var(--navy) 55%, #2a4fa8 100%);
}
.cta-band .cta-text { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-band .cta-img { position: relative; min-height: 240px; }
.cta-band .cta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(19, 48, 122, .35) 35%, transparent 70%);
}

/* ---------- Bandeau « Votre projet commence ici » ---------- */
.promise { background: var(--navy-dark); color: #fff; }
.promise .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 30px; padding-bottom: 30px; }
.promise .slogan { font-size: clamp(20px, 2.4vw, 28px); font-style: italic; font-weight: 600; position: relative; padding-bottom: 8px; }
.promise .slogan::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 3px; background: var(--red); border-radius: 3px; transform: skewX(-20deg); }
.promise ul { display: flex; list-style: none; margin: 0; padding: 0; }
.promise li a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 28px; font-size: 14px; }
.promise li + li a { border-left: 1px solid rgba(255, 255, 255, .25); }
.promise li .icon { width: 30px; height: 30px; color: var(--red); transition: transform .2s; }
.promise li a:hover .icon { transform: translateY(-3px); }

/* ---------- Bannière de page ---------- */
.page-banner {
  position: relative; color: #fff; background-color: var(--navy); background-size: cover; background-position: center right;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 35, 92, .97) 0%, rgba(19, 48, 122, .9) 38%, rgba(19, 48, 122, .25) 70%, rgba(19, 48, 122, .05) 100%);
}
.page-banner .container { position: relative; padding-top: 70px; padding-bottom: 70px; }
.page-banner h1 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); }
.breadcrumb { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: .7; }
.bg-biens { background-image: url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1600&q=70&auto=format&fit=crop"); }
.bg-location { background-image: url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1600&q=70&auto=format&fit=crop"); }
.bg-vente { background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1600&q=70&auto=format&fit=crop"); }
.bg-terrains { background-image: url("https://images.unsplash.com/photo-1586771107445-d3ca888129ff?w=1600&q=70&auto=format&fit=crop"); }
.bg-meuble { background-image: url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1600&q=70&auto=format&fit=crop"); }
.bg-programmes { background-image: url("https://images.unsplash.com/photo-1594484208280-efa00f96fc21?w=1600&q=70&auto=format&fit=crop"); }
.bg-apropos { background-image: url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?w=1600&q=70&auto=format&fit=crop"); }
.bg-devis { background-image: url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&q=70&auto=format&fit=crop"); }
.bg-contact { background-image: url("https://images.unsplash.com/photo-1416331108676-a22ccb276e35?w=1600&q=70&auto=format&fit=crop"); }

/* ---------- Onglets & filtres ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 20px; }
.tab { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--navy); cursor: pointer; transition: .2s; }
.tab:hover { background: var(--navy-soft); }
.tab.active { background: var(--navy); color: #fff; }
.tabs.red .tab.active { background: var(--red); }
.filters {
  display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr) auto; gap: 12px; padding: 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px;
}
.field-select { position: relative; }
.field-select select, .input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field-select select, .select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.field-select::after, .select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.select-wrap { position: relative; }
.textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus, .field-select select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 48, 122, .12);
}
.results-info { color: var(--muted); font-size: 14px; margin: -14px 0 18px; }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted);
}
.empty strong { display: block; color: var(--navy); font-size: 17px; margin-bottom: 6px; }

/* ---------- À propos ---------- */
.about-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.about-intro h2 { font-size: 28px; margin-bottom: 16px; }
.about-intro p { color: var(--muted); margin-bottom: 12px; }
.about-intro img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.stat { background: var(--bg-soft); border-radius: 12px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--red); }
.stat span { font-size: 13px; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.value { padding: 34px 32px; }
.value + .value { border-left: 1px solid var(--line); }
.value .v-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fdecec; color: var(--red); margin-bottom: 16px; }
.value .v-ico .icon { width: 26px; height: 26px; }
.value h3 { font-size: 18px; margin-bottom: 10px; }
.value p, .value li { color: var(--muted); }
.value ul { margin: 0; padding: 0; list-style: none; }
.value li { display: flex; gap: 8px; align-items: center; }
.value li .icon { width: 15px; height: 15px; color: var(--red); }

/* ---------- Formulaires (devis / contact) ---------- */
.form-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.form-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 34px; }
.form-card h2 { font-size: 24px; }
.form-card .intro { color: var(--muted); margin: 8px 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--red); font-size: 12.5px; margin-top: 4px; min-height: 0; }
.is-invalid { border-color: var(--red) !important; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.alert { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.alert.show { display: block; }
.alert-ok { background: #e8f8ee; color: #136c35; border: 1px solid #bfe8cd; }
.alert-err { background: #fdecec; color: #a3141a; border: 1px solid #f6c5c7; }
.side-card {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; border-radius: 16px;
  padding: 34px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
  position: sticky; top: 100px;
}
.side-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.side-item .icon { width: 34px; height: 34px; opacity: .95; }
.side-item small { font-weight: 400; color: rgba(255, 255, 255, .75); font-size: 13px; }
.side-card hr { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, .18); margin: 0; }
.side-card h4 { color: #fff; font-size: 15px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.contact-info { padding: 36px; border-right: 1px solid var(--line); }
.contact-info h2, .contact-form h2 { font-size: 22px; margin-bottom: 22px; }
.coord { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.coord .c-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fdecec; color: var(--red); flex: none; }
.coord .c-ico .icon { width: 19px; height: 19px; }
.coord small { display: block; color: var(--muted); font-size: 12.5px; }
.coord a:hover { color: var(--red); }
.hours { margin-top: 24px; padding: 16px; background: var(--bg-soft); border-radius: 12px; font-size: 14px; }
.hours h4 { font-size: 14px; margin-bottom: 6px; }
.hours div { display: flex; justify-content: space-between; color: var(--muted); }
.contact-form { padding: 36px; }
.contact-form .stack { display: grid; gap: 14px; }
.map { margin-top: 30px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); height: 360px; background: var(--navy-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Réseaux sociaux ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: #fff; transition: transform .2s, opacity .2s;
}
.socials a:hover { transform: translateY(-2px); opacity: .9; }
.socials .icon { width: 18px; height: 18px; }
.s-fb { background: #1877f2; } .s-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.s-yt { background: #ff0000; } .s-in { background: #0a66c2; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; gap: 30px; padding: 50px 24px 36px; }
.footer-brand img { height: 74px; width: auto; }
.footer-brand p { margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 13.5px; max-width: 260px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.f-contact li { display: flex; gap: 8px; align-items: flex-start; }
.f-contact .icon { width: 16px; height: 16px; margin-top: 3px; color: #ff6b70; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .65); }

/* ---------- WhatsApp flottant ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: transform .2s, background .2s;
}
.wa-fab:hover { background: var(--green-dark); transform: translateY(-2px); }
.wa-fab .icon { width: 22px; height: 22px; }

/* ---------- Fenêtre (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 52, .6); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 760px; max-height: calc(100vh - 40px);
  overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: pop .22s ease;
}
.modal-box.small { max-width: 440px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
}
.modal-close .icon { width: 20px; height: 20px; }
.modal-media { position: relative; aspect-ratio: 16 / 8.5; background: var(--navy-soft); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 26px 30px 30px; }
.modal-content h3 { font-size: 22px; }
.modal-content .card-price { font-size: 22px; margin: 6px 0 4px; }
.modal-content .desc { color: var(--muted); margin: 14px 0; }
.modal-content .card-feats { border: 0; padding: 14px 0; margin: 0; gap: 18px; font-size: 14px; }
.modal-content .ref { font-size: 12.5px; color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.modal-simple { padding: 34px 30px 30px; text-align: center; }
.modal-simple .m-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; margin: 0 auto 16px; }
.modal-simple .m-ico .icon { width: 30px; height: 30px; }
.modal-simple p { color: var(--muted); margin: 10px 0 22px; }
.modal-simple .modal-actions { justify-content: center; }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Page 404 ---------- */
.notfound { text-align: center; padding: 100px 0; }
.notfound b { font-size: 90px; color: var(--red); line-height: 1; display: block; }
.notfound p { color: var(--muted); margin: 12px 0 26px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .promise .container { flex-direction: column; text-align: center; }
  .promise .slogan::after { left: 15%; }
}

@media (max-width: 960px) {
  .nav-wrap { height: 68px; }
  .brand img { height: 46px; }
  .burger { display: inline-flex; }
  .header-cta .espace { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: #fff; z-index: 90;
    padding: 80px 18px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease, visibility .28s;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15); margin: 0; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 16px; }
  .main-nav .nav-link.active::after { display: none; }
  .main-nav .nav-link.active { background: var(--navy-soft); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 12px; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover > .nav-link .icon { transform: none; }
  .has-dropdown.open > .nav-link .icon { transform: rotate(180deg); }
  .nav-mobile-extra { display: grid !important; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(9, 20, 52, .45); z-index: 45; opacity: 0; visibility: hidden; transition: .25s; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .nav-close { display: grid !important; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .btn { grid-column: 1 / -1; }
  .about-intro, .form-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-img { min-height: 200px; order: -1; }
  .cta-band .cta-img::before { background: linear-gradient(0deg, var(--navy) 0%, transparent 60%); }
}
.nav-mobile-extra, .nav-close { display: none; }
.nav-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--navy-soft);
  color: var(--navy); place-items: center; cursor: pointer;
}
.nav-close .icon { width: 22px; height: 22px; }

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }

  /* Héro mobile, comme la maquette */
  .hero { min-height: 0; background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(13, 35, 92, .92) 0%, rgba(19, 48, 122, .78) 60%, rgba(19, 48, 122, .55) 100%); }
  .hero .container { padding-top: 40px; padding-bottom: 44px; }
  .hero .tags { font-size: 14px; gap: 4px 10px; }
  .hero .tags span + span::before { margin-right: 10px; }
  .hero .actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero .actions .btn { min-width: 220px; }
  .hero .actions .btn-white { display: none; }
  .hero h1 { font-size: 30px; }
  .hero .actions .wa-hero-mobile { display: inline-flex; }
  .hero .wa-float-hero { display: none; }

  /* Services en liste sur mobile */
  .services { margin-top: 0; padding-top: 30px; }
  .services-title { display: block; font-size: 20px; margin-bottom: 10px; }
  .services-grid { grid-template-columns: 1fr; box-shadow: none; border-radius: 0; }
  .service { flex-direction: row; align-items: center; gap: 16px; padding: 16px 4px; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .service .s-ico { width: 30px; height: 30px; }
  .service p { display: none; }
  .service h3 { font-size: 15px; font-weight: 500; color: var(--text); flex: 1; }
  .service h3 br { display: none; }
  .service .s-arrow { display: block; width: 18px; height: 18px; color: var(--muted); }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .card-media { aspect-ratio: 16 / 10; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 22px; }
  .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; border-radius: 14px; }
  .tab { flex: none; }
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .page-banner .container { padding-top: 44px; padding-bottom: 44px; }
  .page-banner::before { background: linear-gradient(90deg, rgba(13, 35, 92, .95) 0%, rgba(19, 48, 122, .75) 100%); }
  .cta-band .cta-text { padding: 28px 22px; }
  .cta-band .actions .btn { flex: 1; }
  .values { grid-template-columns: 1fr; margin-top: 36px; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value { padding: 26px 22px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat b { font-size: 20px; }
  .form-card, .contact-info, .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .map { height: 280px; }
  .promise ul { flex-wrap: wrap; justify-content: center; }
  .promise li a { padding: 6px 14px; font-size: 13px; }
  .promise li + li a { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 40px 16px 26px; gap: 26px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .wa-fab { padding: 14px; right: 16px; bottom: 16px; }
  .wa-fab span { display: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal-content { padding: 20px 18px 24px; }
  .modal-actions .btn { flex: 1; }
}
.wa-hero-mobile { display: none; }

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.nav-open .wa-fab { display: none; }


/* =========================================================
   V2 — Expérience enrichie
   ========================================================= */
.no-scroll { overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red-dark); margin-bottom: 8px; }
.kicker.light { color: #ff8a8f; }
.h2 { font-size: 28px; margin-bottom: 20px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { max-width: 560px; margin-left: auto; margin-right: auto; }
.section-head.light h2 { color: #fff; }
.section-navy { background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.banner-sub { margin-top: 10px; color: rgba(255,255,255,.88); font-size: 16px; max-width: 560px; }
.page-banner .breadcrumb { margin: 0 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.tb-left { display: flex; gap: 22px; }
.tb-left a, .tb-left span { display: inline-flex; align-items: center; gap: 7px; }
.tb-left a:hover { color: #fff; }
.tb-left .icon { width: 14px; height: 14px; color: #ff6b70; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.socials.small a { width: 26px; height: 26px; border-radius: 6px; }
.socials.small .icon { width: 14px; height: 14px; }
.topline { display: none; }

/* ---------- En-tête ---------- */
.site-header { transition: box-shadow .25s; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--navy) 0 70%, var(--red) 70%) 1; }
.site-header .nav-wrap { transition: height .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(19,48,122,.12); }
.site-header.scrolled .nav-wrap { height: 66px; }
.site-header.scrolled .brand img { height: 50px; }
.brand img { transition: height .25s; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn .icon { width: 20px; height: 20px; }
.count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-style: normal; border: 2px solid #fff;
}
.count[hidden] { display: none; }
.header-cta .btn .icon { width: 16px; height: 16px; }
.dropdown { min-width: 290px; }
.dropdown a { align-items: center; padding: 10px; }
.dropdown .dd-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-soft); display: grid; place-items: center; flex: none; transition: .2s; }
.dropdown a:hover .dd-ico, .dropdown a.active .dd-ico { background: var(--navy); }
.dropdown a:hover .dd-ico .icon, .dropdown a.active .dd-ico .icon { color: #fff; }
.dropdown b { display: block; font-weight: 600; font-size: 14px; }
.dropdown small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Héro ---------- */
.hero { min-height: 680px; align-items: flex-start; }
.hero .container { padding-top: 70px; padding-bottom: 110px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); margin-bottom: 18px;
}
.hero-kicker .icon { width: 16px; height: 16px; color: #ff8a8f; }
.hero h1 { position: relative; z-index: 0; }
.hero .hl { position: relative; white-space: nowrap; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 8px; background: var(--red); opacity: .85; z-index: -1; border-radius: 4px; transform: skewX(-12deg); }
.hero-search {
  margin-top: 32px; max-width: 900px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(5,15,45,.35); color: var(--text);
}
.hs-tabs { display: flex; gap: 4px; padding: 4px 4px 8px; flex-wrap: wrap; }
.hs-tabs button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s;
}
.hs-tabs button .icon { width: 17px; height: 17px; }
.hs-tabs button:hover { color: var(--navy); background: var(--bg-soft); }
.hs-tabs button.active { background: var(--navy); color: #fff; }
.hs-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; background: var(--bg-soft); border-radius: 14px; padding: 6px; }
.hs-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; position: relative; }
.hs-field[hidden] { display: none; }
.hs-field > .icon { width: 20px; height: 20px; color: var(--red); }
.hs-field span { flex: 1; min-width: 0; }
.hs-field small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.hs-field select { width: 100%; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--navy); appearance: none; -webkit-appearance: none; cursor: pointer; padding: 0; outline: none; }
.hs-field:focus-within { box-shadow: 0 0 0 2px var(--navy); }
.hs-form .btn { padding: 0 26px; border-radius: 10px; min-height: 54px; }
.hero-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: rgba(255,255,255,.9); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 18px; height: 18px; color: #4ade80; }
.hero .wa-float-hero { bottom: 130px; }

/* ---------- Services ---------- */
.service { position: relative; }
.service .s-more { margin-top: auto; padding-top: 6px; color: var(--red); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(4px); transition: .25s; }
.service .s-more .icon { width: 15px; height: 15px; }
.service:hover .s-more { opacity: 1; transform: none; }
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.service:hover::after { transform: scaleX(1); }

/* ---------- Chiffres clés ---------- */
.kpis-section { padding: 46px 0 0; }
.kpis-section.flat { padding: 0 0 60px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { text-align: center; padding: 22px 12px; border-radius: 16px; background: var(--bg-soft); }
.kpi b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 14px; }

/* ---------- Onglets ---------- */
.tab i { font-style: normal; font-size: 11.5px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); }
.tab.active i { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Cartes ---------- */
.card { position: relative; cursor: default; }
.card:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.card:hover:focus-within, .card:has(.fav-btn:focus-visible) { outline: none; }
.card-link { color: inherit; outline: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: transform .2s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn span { display: grid; }
.fav-btn .fav-on { display: none; color: var(--red); }
.fav-btn.on .fav-on { display: grid; animation: beat .4s ease; }
.fav-btn.on .fav-off { display: none; }
@keyframes beat { 30% { transform: scale(1.35); } }
.fav-btn.fav-wide { position: static; width: auto; height: auto; border-radius: 999px; padding: 9px 16px; display: inline-flex; align-items: center; gap: 8px; box-shadow: none; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.fav-btn.fav-wide:hover { transform: none; border-color: var(--red); }
.fav-btn.fav-wide.on { border-color: var(--red); color: var(--red); background: #fdecec; }
.fav-btn .fav-label { display: inline; }
.card-cta {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); opacity: 0; transition: .25s; z-index: 2; pointer-events: none;
  background: rgba(13,35,92,.88); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.card-cta .icon { width: 16px; height: 16px; }
.card:hover .card-cta { opacity: 1; transform: translate(-50%, 0); }
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge .icon { width: 12px; height: 12px; }
.badge-gold { background: linear-gradient(90deg, #f59e0b, #f97316); }
.badge-green { background: #15803d; }
.card-price .from { font-size: 12px; font-weight: 600; color: var(--muted); }
.progress-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.progress-row b { color: var(--navy); }
.progress { height: 8px; border-radius: 999px; background: var(--navy-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--red)); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

/* ---------- Barre d'outils des listes ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px 0 20px; flex-wrap: wrap; scroll-margin-top: 110px; }
.toolbar .results-info { margin: 0; font-size: 14.5px; }
.toolbar .results-info b { color: var(--navy); font-size: 17px; }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.reset { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fdecec; color: var(--red); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; }
.reset[hidden] { display: none; }
.reset .icon { width: 14px; height: 14px; }
.sort { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 40px; }
.sort .icon { width: 16px; height: 16px; color: var(--navy); }
.sort select { border: 0; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--navy); padding: 0 8px 0 0; cursor: pointer; outline: none; }
.empty > .icon { width: 44px; height: 44px; color: var(--navy); opacity: .5; margin-bottom: 10px; }
.empty p { max-width: 460px; margin: 4px auto 18px; }
.empty .actions { justify-content: center; }

/* ---------- Pourquoi nous ---------- */
.why-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; }
.why-intro p { color: rgba(255,255,255,.82); margin: 14px 0 26px; font-size: 16px; }
.why-intro h2 { font-size: clamp(26px, 3vw, 36px); }
.why-img { position: relative; border-radius: 18px; overflow: hidden; }
.why-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-badge { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow-hover); }
.why-badge b { display: block; font-size: 22px; color: var(--red); }
.atouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.atouts.grid-3-atouts { grid-template-columns: repeat(3, 1fr); }
.atout { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .25s, transform .25s; }
.atout:hover { background: rgba(255,255,255,.11); transform: translateY(-3px); }
.atout .a-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--red); display: grid; place-items: center; flex: none; }
.atout .a-ico .icon { width: 22px; height: 22px; color: #fff; }
.atout h3 { font-size: 16px; margin-bottom: 4px; }
.atout p { color: rgba(255,255,255,.75); font-size: 13.5px; }

/* ---------- Quartiers ---------- */
.quartiers { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.quartier { position: relative; border-radius: 16px; overflow: hidden; color: #fff; display: block; }
.quartier.big, .quartier:last-child { grid-column: span 2; }
.quartier img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.quartier::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(9,20,52,.88) 100%); }
.quartier:hover img { transform: scale(1.07); }
.q-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.q-body b { display: block; font-size: 20px; }
.quartier.big .q-body b { font-size: 28px; }
.q-body small { display: block; color: rgba(255,255,255,.85); font-size: 13px; }
.q-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); padding: 5px 12px; border-radius: 999px; }
.q-count .icon { width: 14px; height: 14px; transition: transform .2s; }
.quartier:hover .q-count .icon { transform: translateX(3px); }

/* ---------- Programme phare ---------- */
.phare { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); padding: 0; }
.phare-media { position: relative; min-height: 420px; }
.phare-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phare-ribbon { position: absolute; right: 16px; top: 16px; background: linear-gradient(90deg, #f59e0b, #f97316); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.phare-ribbon .icon { width: 15px; height: 15px; }
.phare-body { padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.phare-body h2 { font-size: clamp(26px, 3vw, 34px); }
.phare-body p { color: var(--muted); }
.phare-stats, .prog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.phare-stats div, .prog-stats div { background: var(--bg-soft); border-radius: 12px; padding: 12px; }
.phare-stats b, .prog-stats b { display: block; color: var(--navy); font-size: 16px; }
.phare-stats span, .prog-stats span { font-size: 12.5px; color: var(--muted); }
.phare-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.phare-price small { color: var(--muted); }
.phare-price b { color: var(--red); font-size: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #e8f8ee; color: #136c35; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.pill .icon { width: 14px; height: 14px; }
.phare .actions { margin-top: 8px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 32px; border-top: 2px dashed #c9d3ea; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-weight: 800; font-size: 22px;
  background: #fff; color: var(--navy); border: 2px solid var(--navy); box-shadow: 0 0 0 8px var(--bg); position: relative; transition: .3s;
}
.section-soft .step-num { box-shadow: 0 0 0 8px var(--bg-soft); }
.step:hover .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Simulateur ---------- */
.sim { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.sim-inputs { padding: 34px; display: grid; gap: 24px; }
.sim-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sim-label label { font-weight: 600; font-size: 14.5px; }
.sim-label output { font-weight: 700; color: var(--navy); font-size: 15px; text-align: right; }
.sim input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--red) 0 var(--p, 50%), var(--navy-soft) var(--p, 50%) 100%);
}
.sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 3px 10px rgba(229,35,43,.35); }
.sim input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.sim input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(229,35,43,.25); }
.sim-result { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.sim-kicker { font-size: 13px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.sim-big b { font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1; }
.sim-big small { margin-left: 8px; color: rgba(255,255,255,.8); }
.sim-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.15); }
.sim-bar span { transition: width .35s; }
.b-apport, .l-apport { background: #4ade80; }
.b-emprunt, .l-emprunt { background: #60a5fa; }
.b-interets, .l-interets { background: var(--red); }
.sim-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sim-legend li { display: flex; align-items: center; gap: 10px; }
.sim-legend i { width: 12px; height: 12px; border-radius: 4px; }
.sim-legend b { margin-left: auto; }
.sim-revenu { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #fff !important; margin: 0 !important; }
.sim-revenu .icon { width: 20px; height: 20px; flex: none; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-note { font-size: 12px; color: rgba(255,255,255,.6) !important; margin: 0 !important; }
.block-sim .sim { grid-template-columns: 1fr; box-shadow: none; border: 1px solid var(--line); }
.block-sim .sim-inputs { padding: 24px; }
.block-sim .sim-result { padding: 24px; }

/* ---------- Diaspora ---------- */
.diaspora-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.diaspora h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.diaspora p { color: var(--muted); font-size: 16px; }
.diaspora-img { position: relative; z-index: 0; }
.diaspora-img img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; box-shadow: var(--shadow-hover); }
.diaspora-img::before { content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: 22px; background: var(--navy-soft); z-index: -1; }
.live { position: absolute; left: 18px; top: 18px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.live .icon { width: 16px; height: 16px; }
@keyframes pulse { 50% { opacity: .3; } }
.checks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); flex: none; }
.checks b { color: var(--navy); }

/* ---------- Avis clients ---------- */
.rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating b { color: var(--navy); }
.stars { display: inline-flex; gap: 2px; color: #d6dbe7; }
.stars .icon { width: 18px; height: 18px; }
.stars .on, .stars.on5 { color: #f59e0b; }
.testimonials { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; margin: 0; background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; position: relative; }
.t-quote { position: absolute; right: 22px; top: 18px; color: var(--navy-soft); }
.t-quote .icon { width: 44px; height: 44px; }
.t-card blockquote { margin: 0; color: var(--text); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.t-card figcaption small { display: block; color: var(--muted); font-size: 12.5px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--navy), var(--red)); flex: none; }
.t-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.t-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.t-nav button:hover { background: var(--navy); color: #fff; }
.t-nav .icon { width: 20px; height: 20px; }

/* ---------- FAQ & alerte ---------- */
.faq-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.faq-layout.single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; 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: 18px 20px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; flex: none; transition: transform .25s; color: var(--red); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }
.alert-card { background: linear-gradient(160deg, #fff 0%, var(--bg-soft) 100%); border: 1px solid var(--line); border-radius: 20px; padding: 30px; position: sticky; top: 110px; display: grid; gap: 12px; }
.alert-card form { display: grid; gap: 10px; margin-top: 4px; }
.alert-card h3 { font-size: 20px; }
.alert-card p { color: var(--muted); font-size: 14px; }
.a-bell { width: 54px; height: 54px; border-radius: 16px; background: var(--red); color: #fff; display: grid; place-items: center; animation: ring 3s ease-in-out infinite; transform-origin: top center; }
.a-bell .icon { width: 26px; height: 26px; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(12deg); } 93% { transform: rotate(-10deg); } 97% { transform: rotate(6deg); } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Avantages programmes ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { padding: 24px; border-radius: 16px; background: var(--bg-soft); }
.perk .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--red); box-shadow: var(--shadow); margin-bottom: 14px; }
.perk h3 { font-size: 16px; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: 14px; }

/* ---------- À propos ---------- */
.about-img { position: relative; }
.about-badge { position: absolute; left: -18px; bottom: 24px; background: var(--red); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-hover); font-size: 13px; }
.about-badge b { display: block; font-size: 24px; }
.signature { font-style: italic; font-weight: 600; color: var(--navy) !important; font-size: 17px; border-left: 4px solid var(--red); padding-left: 14px; }

/* ---------- Contact rapide ---------- */
.quick-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.qc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); transition: transform .2s; }
.qc:hover { transform: translateY(-3px); }
.qc .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); flex: none; }
.qc-green .icon { background: #e8f8ee; color: var(--green-dark); }
.qc b { display: block; color: var(--navy); }
.qc small { color: var(--muted); }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.form-note .icon { width: 14px; height: 14px; }

/* ---------- Pied de page ---------- */
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-size: 22px; }
.footer-cta p { color: rgba(255,255,255,.75); }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; }
.footer-brand .socials { margin-top: 18px; }

/* ---------- Boutons flottants ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 84px; z-index: 59; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 22px; height: 22px; }
.wa-fab { animation: wa-in .5s ease .8s both; }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }
.bottom-nav { display: none; }

/* ---------- Notifications ---------- */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: toast-in .3s ease; transition: .3s; }
.toast .icon { width: 18px; height: 18px; color: #ff6b70; }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Panneau des favoris ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(9,20,52,.5); z-index: 150; opacity: 0; visibility: hidden; transition: .25s; }
.drawer-bg.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 151; background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: -20px 0 50px rgba(0,0,0,.2);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.drawer-head h3 .icon { color: var(--red); width: 22px; height: 22px; }
.drawer-head h3 span { color: var(--muted); font-weight: 500; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.drawer-close .icon { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; display: grid; gap: 12px; align-content: start; }
.mini { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
.mini img { width: 84px; height: 66px; object-fit: cover; border-radius: 10px; }
.mini-title { display: block; font-weight: 600; color: var(--navy); font-size: 14px; line-height: 1.3; }
.mini span { display: block; font-size: 12.5px; color: var(--muted); }
.mini b { display: block; color: var(--red); font-size: 13.5px; }
.mini-del { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fdecec; color: var(--red); cursor: pointer; display: grid; place-items: center; }
.mini-del .icon { width: 17px; height: 17px; }
.drawer-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.drawer-empty > .icon { width: 50px; height: 50px; color: var(--red); opacity: .5; margin-bottom: 10px; }
.drawer-empty strong { display: block; color: var(--navy); font-size: 17px; }
.drawer-empty p { margin: 6px 0 18px; }
.drawer-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-clear { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.drawer-clear .icon { width: 15px; height: 15px; }
.drawer-clear:hover { color: var(--red); }

/* ---------- Fiche bien ---------- */
.fiche-top { padding: 22px 0 10px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--red); }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs span { color: var(--navy); font-weight: 500; }
.gallery { position: relative; display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; border-radius: 20px; overflow: hidden; }
.gallery .badges { top: 16px; left: 16px; z-index: 2; pointer-events: none; }
.g-item { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--navy-soft); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item:first-child { grid-row: span 2; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; }
.g-all { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer; box-shadow: var(--shadow-hover); }
.g-all .icon { width: 16px; height: 16px; }
.fiche-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.fiche-head h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.fiche-head .ref { color: var(--muted); }
.fiche-price { text-align: right; }
.fiche-price small { display: block; color: var(--muted); font-size: 13px; }
.fiche-price b { display: block; font-size: clamp(24px, 3vw, 32px); color: var(--red); font-weight: 800; line-height: 1.15; }
.fiche-price em { font-style: normal; font-size: 15px; font-weight: 600; }
.fiche-price span { font-size: 13px; color: var(--muted); }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-bottom: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; }
.chip-btn:hover { border-color: var(--navy); }
.chip-btn .icon, .fav-wide .icon { width: 18px; height: 18px; }
.fiche-layout { display: grid; grid-template-columns: 1fr 370px; gap: 34px; align-items: start; padding-top: 20px; padding-bottom: 60px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 26px; }
.fact { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-soft); }
.fact > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: #fff; color: var(--red); flex: none; }
.fact small { display: block; font-size: 12px; color: var(--muted); }
.fact b { color: var(--navy); font-size: 14.5px; }
.block { padding: 26px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 21px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.block h2 .icon { width: 24px; height: 24px; color: var(--red); }
.block p { color: var(--muted); margin-bottom: 10px; }
.block .muted { display: flex; gap: 8px; align-items: flex-start; }
.block .muted .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--red); flex: none; }
.block .progress { margin: 6px 0 16px; height: 12px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: #e8f8ee; color: #136c35 !important; padding: 12px 14px; border-radius: 12px; margin-top: 14px; }
.note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.equip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.equip li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.equip .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #e8f8ee; color: var(--green-dark); flex: none; }
.map-sm { height: 300px; margin-top: 10px; }
.side-sticky { position: sticky; top: 100px; display: grid; gap: 14px; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-hover); }
.agent { display: flex; gap: 12px; align-items: center; }
.agent b { display: block; color: var(--navy); font-size: 15px; }
.agent small { display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); font-size: 12.5px; font-weight: 500; }
.agent small .icon { width: 13px; height: 13px; }
.side-btns { display: grid; gap: 8px; }
.visit-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.visit-form h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.visit-form h3 .icon { width: 20px; height: 20px; color: var(--red); }
.textarea.sm { min-height: 80px; }
.side-link { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: 14px; }
.side-link .icon { width: 17px; height: 17px; }
.side-link:hover { color: var(--red); }
.fiche-bar { display: none; }
#visite { scroll-margin-top: 100px; }
.notfound .actions { justify-content: center; }
.notfound b .icon { width: 70px; height: 70px; }

/* ---------- Visionneuse photos ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5,10,28,.95); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 60px 70px 110px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 210px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: 14px; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .icon { width: 24px; height: 24px; }
.lb-thumbs { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; max-width: calc(100% - 32px); overflow-x: auto; }
.lb-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; flex: none; background: none; }
.lb-thumbs button.active { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 76px; height: 54px; object-fit: cover; }

/* ---------- Responsive V2 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .quartiers { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .why-layout { grid-template-columns: 1fr; }
  .why-img { display: none; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .atouts.grid-3-atouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .topbar { display: none; }
  .header-cta { margin-left: auto; }
  .burger { margin-left: 4px; }
  .hs-form { grid-template-columns: 1fr 1fr; }
  .hs-form .btn { grid-column: 1 / -1; }
  .phare { grid-template-columns: 1fr; }
  .phare-media { min-height: 280px; }
  .sim { grid-template-columns: 1fr; }
  .diaspora-layout { grid-template-columns: 1fr; gap: 40px; }
  .diaspora-img { max-width: 520px; }
  .faq-layout { grid-template-columns: 1fr; }
  .alert-card { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps::before { display: none; }
  .fiche-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .quick-contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .hero { min-height: 0; }
  .hero .container { padding-top: 34px; padding-bottom: 40px; }
  .hero-kicker { font-size: 12px; }
  .hero .hl { white-space: normal; }
  .hero-search { margin-top: 24px; border-radius: 16px; }
  .hs-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hs-tabs button { padding: 8px 12px; flex: none; }
  .hs-form { grid-template-columns: 1fr; }
  .hero-trust { font-size: 12.5px; gap: 8px 16px; }
  .kpis-section { padding-top: 30px; }
  .kpi { padding: 16px 8px; }
  .quartiers { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .q-body { left: 12px; right: 12px; bottom: 10px; }
  .q-body b { font-size: 16px; }
  .quartier.big .q-body b { font-size: 22px; }
  .q-body small { display: none; }
  .quartier.big .q-body small { display: block; }
  .phare-body { padding: 24px 20px; }
  .phare-stats, .prog-stats { gap: 6px; }
  .phare-stats div, .prog-stats div { padding: 10px 8px; }
  .phare-stats b, .prog-stats b { font-size: 14px; }
  .atouts, .atouts.grid-3-atouts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .step-num { width: 52px; height: 52px; font-size: 19px; margin: 0; grid-row: span 2; }
  .sim-inputs, .sim-result { padding: 22px 18px; }
  .sim-actions .btn { flex: 1; }
  .t-track { grid-auto-columns: 86%; gap: 14px; }
  .t-nav { display: none; }
  .two { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .about-badge { left: 12px; }
  .toolbar { margin-top: -14px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .sort { flex: 1; }
  .sort select { flex: 1; }
  .footer-cta { padding-top: 30px; }
  .footer-cta .actions { width: 100%; }
  .footer-cta .actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Barre de navigation façon application */
  .wa-fab { display: none; }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 32px); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(19,48,122,.08);
  }
  .bottom-nav a, .bottom-nav button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500;
    color: var(--muted); background: none; border: 0; padding: 6px 0; cursor: pointer;
  }
  .bottom-nav .icon { width: 23px; height: 23px; }
  .bottom-nav .active { color: var(--red); }
  .bottom-nav .bn-wa { color: var(--green-dark); }
  .bottom-nav .count { top: 0; right: calc(50% - 22px); }
  .nav-open .bottom-nav { display: none; }

  /* Fiche bien mobile */
  .fiche-top { padding-top: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 110px; border-radius: 16px; gap: 6px; }
  .gallery .g-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .gallery.g-3 { grid-template-columns: 1fr 1fr; }
  .fiche-head { flex-direction: column; align-items: flex-start; }
  .fiche-price { text-align: left; }
  .equip { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .has-fiche-bar .bottom-nav { display: none; }
  .fiche-bar {
    display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff;
    border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(19,48,122,.12);
  }
  .fiche-bar > div { flex: 1; min-width: 0; }
  .fiche-bar small { display: block; font-size: 11px; color: var(--muted); }
  .fiche-bar b { color: var(--red); font-size: 17px; }
  .fiche-bar em { font-style: normal; font-size: 12px; }
  .fiche-bar .btn { padding: 11px 16px; }
  .lightbox { padding: 60px 10px 100px; }
  .lb-prev, .lb-next { display: none; }
}

/* ---------- Impression de la fiche ---------- */
@media print {
  .topbar, .site-header, .nav-overlay, .site-footer, .wa-fab, .to-top, .bottom-nav, .fiche-bar, .fiche-actions, .g-all, .visit-form, .side-link, .side-btns, .map, .block-sim, .fav-btn, .section-soft, .toasts { display: none !important; }
  .fiche-layout { grid-template-columns: 1fr; }
  .side-sticky { box-shadow: none; border: 1px solid #ccc; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { padding: 0; }
}


.btn.loading { opacity: .7; pointer-events: none; }
.btn.loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* Galeries avec peu de photos */
.gallery.g-1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery.g-1 .g-item:first-child { grid-row: auto; }
.gallery.g-2 { grid-template-columns: 2fr 1fr; }
.gallery.g-2 .g-item:nth-child(2) { grid-row: span 2; }
.gallery.g-4 .g-item:nth-child(4) { grid-column: span 2; }
@media (max-width: 720px) {
  .gallery.g-1 { grid-template-rows: 260px; }
  .gallery.g-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px; }
  .gallery.g-2 .g-item:first-child { grid-column: 1 / -1; }
  .gallery.g-2 .g-item:nth-child(2) { display: none; }
  .gallery.g-4 .g-item:nth-child(4) { grid-column: auto; }
}

/* =========================================================
   Espace client
   ========================================================= */
.bg-espace { background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=70&auto=format&fit=crop"); }
.header-cta .espace.active { box-shadow: 0 0 0 3px rgba(229, 35, 43, .25); }
.suivi-code { display: inline-block; font-weight: 800; letter-spacing: 1.5px; background: #fff; color: var(--navy); border: 2px dashed var(--navy); border-radius: 8px; padding: 2px 10px; margin: 2px 0; user-select: all; }
.ec-layout { display: grid; grid-template-columns: 440px 1fr; gap: 50px; align-items: center; }
.ec-card { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow-hover); position: relative; }
.ec-card h2 { font-size: 24px; margin: 14px 0 6px; }
.ec-card form { display: grid; gap: 14px; margin-top: 20px; }
.muted-p { color: var(--muted); font-size: 14.5px; }
.ec-lock { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--red)); color: #fff; }
.ec-lock .icon { width: 26px; height: 26px; }
.code-input { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 17px; text-align: center; }
.code-input::placeholder { letter-spacing: 2px; font-weight: 500; color: #b4bccd; }
.ec-help { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ec-help .icon { width: 18px; height: 18px; color: var(--green-dark); flex: none; margin-top: 2px; }
.ec-help a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.ec-why .checks { margin-bottom: 18px; }
.ec-note { display: flex; gap: 10px; align-items: flex-start; background: var(--navy-soft); color: var(--navy); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.ec-note .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ec-dossiers-section { padding-top: 0; }
.ec-dossiers-section .container:empty { display: none; }
.ec-h { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 20px; }
.ec-h .icon { width: 26px; height: 26px; color: var(--red); }
.ec-h span { color: var(--muted); font-weight: 500; }
.ec-loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 40px; color: var(--muted); }
.spin { width: 24px; height: 24px; border: 3px solid var(--navy-soft); border-top-color: var(--navy); border-radius: 50%; animation: spin 1s linear infinite; }
.ec-empty { text-align: center; padding: 46px 20px; background: var(--bg-soft); border-radius: 20px; color: var(--muted); }
.ec-empty > .icon { width: 46px; height: 46px; color: var(--navy); opacity: .4; margin-bottom: 10px; }
.ec-empty h3 { font-size: 19px; margin-bottom: 6px; }
.ec-empty p { max-width: 520px; margin: 0 auto 18px; }
.ec-empty .actions { justify-content: center; }
.ec-empty.sm { grid-column: 1 / -1; padding: 30px; }
.ec-empty.sm p { margin: 0 auto; }
.muted-n { color: var(--muted); font-weight: 500; font-size: .8em; }

.dossier { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px; margin-bottom: 22px; border: 1px solid var(--line); }
.ds-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ds-head > div { flex: 1; min-width: 200px; }
.ds-head h3 { font-size: 19px; }
.ds-head small { color: var(--muted); font-size: 13px; }
.ds-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.ds-ico .icon { width: 24px; height: 24px; }
.ds-st { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px; }
.st-nouvelle { background: #eff4ff; color: var(--navy); }
.st-en-cours { background: #fffbeb; color: #b45309; }
.st-traitee { background: #e8f8ee; color: #15803d; }
.ds-steps { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.ds-steps li { position: relative; text-align: center; padding: 0 8px; display: grid; justify-items: center; gap: 4px; }
.ds-steps li::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.ds-steps li:first-child::before { display: none; }
.ds-steps li.done::before, .ds-steps li.now::before { background: linear-gradient(90deg, var(--green), var(--green)); }
.ds-steps li > span { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #fff; border: 3px solid var(--line); color: var(--muted); }
.ds-steps li > span .icon { width: 18px; height: 18px; }
.ds-steps li.done > span { background: var(--green); border-color: var(--green); color: #fff; }
.ds-steps li.now > span { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 6px rgba(22, 163, 74, .15); }
.ds-steps li.now:last-child > span { background: var(--green); color: #fff; }
.ds-steps b { font-size: 13.5px; color: var(--navy); }
.ds-steps small { font-size: 12px; color: var(--muted); }
.ds-rdv { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, #e8f8ee, #f0fdf4); border: 1px solid #bbf7d0; }
.ds-rdv > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--green-dark); color: #fff; flex: none; }
.ds-rdv small { display: block; color: #15803d; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; }
.ds-rdv b { color: var(--navy); font-size: 16px; }
.ds-msg { display: flex; gap: 12px; margin-top: 16px; }
.ds-msg > div { background: var(--navy-soft); border-radius: 4px 16px 16px 16px; padding: 12px 16px; flex: 1; }
.ds-msg small { display: block; color: var(--navy); font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
.ds-msg p { white-space: pre-wrap; }
.ds-wait { display: flex; gap: 10px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 14px; background: var(--bg-soft); padding: 12px 16px; border-radius: 12px; }
.ds-wait .icon { width: 18px; height: 18px; color: var(--red); flex: none; }
.ds-body { display: grid; gap: 12px; margin-top: 16px; }
.ds-bien { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.ds-bien:hover { border-color: var(--navy); }
.ds-bien img { width: 92px; height: 70px; border-radius: 10px; object-fit: cover; flex: none; }
.ds-bien span { flex: 1; min-width: 0; display: grid; }
.ds-bien small { color: var(--muted); font-size: 12px; }
.ds-bien b { color: var(--navy); }
.ds-bien em { font-style: normal; color: var(--red); font-weight: 600; font-size: 13.5px; }
.ds-bien > .icon { width: 20px; height: 20px; color: var(--muted); }
.ds-det summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.ds-det summary::-webkit-details-marker { display: none; }
.ds-det summary .icon { width: 16px; height: 16px; transition: transform .2s; }
.ds-det[open] summary .icon { transform: rotate(180deg); }
.ds-det dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 12px 0 0; padding: 14px; background: var(--bg-soft); border-radius: 12px; font-size: 14px; }
.ds-det dt { color: var(--muted); }
.ds-det dd { margin: 0; white-space: pre-wrap; }
.ds-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ds-forget { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ds-forget .icon { width: 14px; height: 14px; }
.ds-forget:hover { color: var(--red); }
@media (max-width: 960px) {
  .ec-layout { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .ec-card { padding: 24px 18px; }
  .dossier { padding: 18px 16px; }
  .ds-steps b { font-size: 12px; }
  .ds-steps small { display: none; }
  .ds-det dl { grid-template-columns: 1fr; gap: 2px; }
  .ds-det dd { margin-bottom: 8px; }
  .ds-foot .btn { flex: 1; }
  .ds-forget { margin: 4px auto 0; }
}


/* =========================================================
   Localisation de l'agence (accueil)
   ========================================================= */
.loc-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: stretch; }
.loc-map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); min-height: 460px; background: var(--navy-soft); position: relative; }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-hover); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.loc-brand img { height: 58px; width: auto; }
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.loc-list li { display: flex; gap: 12px; align-items: flex-start; }
.l-ico { width: 40px; height: 40px; border-radius: 12px; background: #fdecec; color: var(--red); display: grid; place-items: center; flex: none; }
.l-ico .icon { width: 19px; height: 19px; }
.l-ico.l-wa, .c-ico.c-wa { background: #e8f8ee; color: var(--green-dark); }
.loc-list small { display: block; color: var(--muted); font-size: 12.5px; }
.loc-list b, .loc-list a { display: block; color: var(--navy); font-weight: 600; }
.loc-list a:hover { color: var(--red); }
.loc-list em { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; }
.loc-card .hours { margin: 0; }
.loc-actions { display: grid; gap: 10px; margin-top: auto; }
.itin { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--red); font-weight: 600; font-size: 13.5px; }
.itin .icon { width: 15px; height: 15px; }
@media (max-width: 1240px) { .tb-left span { display: none; } }
@media (max-width: 960px) {
  .loc-layout { grid-template-columns: 1fr; }
  .loc-map { min-height: 340px; }
}
@media (max-width: 720px) {
  .loc-map { min-height: 280px; }
  .loc-card { padding: 20px 18px; }
}

/* =========================================================
   Assistant virtuel
   ========================================================= */
.wa-fab { display: none !important; }
.cb-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 65; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 8px 20px 8px 8px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(135deg, var(--navy) 0%, #2747a5 60%, var(--red) 140%);
  box-shadow: 0 14px 34px rgba(19, 48, 122, .35); transition: transform .2s, box-shadow .2s, opacity .2s;
  animation: cb-in .5s ease .6s both;
}
.cb-launch:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(19, 48, 122, .45); }
.cb-launch.hide { opacity: 0; pointer-events: none; transform: scale(.9); }
.cb-l-ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.cb-l-ico .icon { width: 22px; height: 22px; }
.cb-l-dot { position: absolute; top: 6px; left: 40px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; animation: pulse 1.8s infinite; }
@keyframes cb-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }

.cb-tease {
  position: fixed; right: 22px; bottom: 92px; z-index: 64; max-width: 270px; background: #fff; color: var(--text); font-size: 14px;
  padding: 14px 34px 14px 16px; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-hover); cursor: pointer; animation: cb-in .4s ease;
}
.cb-tease b { display: block; color: var(--navy); }
.cb-tease-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cb-tease-x .icon { width: 14px; height: 14px; }

.cb-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 160; width: 400px; height: min(640px, calc(100vh - 44px));
  background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(9, 20, 52, .3); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.97); transform-origin: bottom right; transition: .25s ease;
}
.cb-panel.open { opacity: 1; visibility: visible; transform: none; }
.cb-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: #fff; background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #2747a5); }
.cb-head > div { flex: 1; min-width: 0; }
.cb-head b { display: block; font-size: 15.5px; }
.cb-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.cb-head small i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.cb-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--red), #ff8a8f); display: grid; place-items: center; flex: none; }
.cb-avatar .icon { width: 22px; height: 22px; }
.cb-head button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.cb-head button:hover { background: rgba(255, 255, 255, .22); }
.cb-head button .icon { width: 17px; height: 17px; }
.cb-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); overscroll-behavior: contain; }
.cb-msg { max-width: 88%; font-size: 14.5px; line-height: 1.5; animation: cb-in .25s ease; }
.cb-msg p { margin: 0 0 6px; }
.cb-msg p:last-child { margin-bottom: 0; }
.cb-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.cb-msg.bot { align-self: flex-start; background: #fff; border-radius: 4px 16px 16px 16px; padding: 11px 14px; box-shadow: 0 2px 10px rgba(19, 48, 122, .06); }
.cb-msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.cb-msg.err { border: 1px solid #f6c5c7; }
.cb-msg a:not(.cb-bien) { color: var(--red); font-weight: 600; text-decoration: underline; }
.cb-bien { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, transform .2s; }
.cb-bien:hover { border-color: var(--navy); transform: translateX(2px); }
.cb-bien img { width: 62px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.cb-bien span { flex: 1; min-width: 0; display: grid; }
.cb-bien b { color: var(--navy); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-bien small { color: var(--red); font-weight: 600; font-size: 12.5px; }
.cb-bien > .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.cb-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.cb-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: cb-dot 1.2s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.cb-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 10px; background: var(--bg-soft); }
.cb-sugg[hidden] { display: none; }
.cb-sugg button { border: 1px solid #c9d3ea; background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-align: left; transition: .15s; }
.cb-sugg button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cb-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.cb-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; font-size: 14.5px; line-height: 1.4; max-height: 120px; outline: none; }
.cb-form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 48, 122, .12); }
.cb-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .2s; }
.cb-form button:hover { background: var(--red-dark); }
.cb-form button .icon { width: 19px; height: 19px; }
.cb-foot { font-size: 11.5px; color: var(--muted); text-align: center; padding: 0 12px 10px; background: #fff; }
.cb-foot a { color: var(--green-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cb-foot .icon { width: 13px; height: 13px; }

.bottom-nav .bn-chat { color: var(--navy) !important; }
.bn-chat-ico { width: 46px; height: 46px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--red)); box-shadow: 0 8px 18px rgba(19, 48, 122, .35); border: 3px solid #fff; }
.bn-chat-ico .icon { width: 22px !important; height: 22px !important; }

@media (max-width: 720px) {
  .cb-launch, .cb-tease { display: none; }
  .cb-panel { inset: 0; width: auto; height: 100%; border-radius: 0; transform: translateY(30px); }
  .cb-panel.open { transform: none; }
  .cb-open .bottom-nav { display: none; }
  .cb-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .cb-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cb-form textarea { font-size: 16px; }
  .cb-msg { max-width: 92%; }
}
@media print { .cb-launch, .cb-panel, .cb-tease { display: none !important; } }


/* Illustration du conseiller service client */
.cta-img img.illu { object-position: 62% 42%; }
.cta-band .cta-img:has(.illu)::before { background: linear-gradient(90deg, var(--navy) 0%, rgba(19, 48, 122, .25) 22%, transparent 45%); }
@media (max-width: 960px) { .cta-band .cta-img:has(.illu) { min-height: 260px; } .cta-band .cta-img:has(.illu)::before { background: linear-gradient(0deg, var(--navy) 0%, transparent 35%); } }


/* =========================================================
   Diaspora : fiche projet
   ========================================================= */
.diaspora { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); scroll-margin-top: 90px; }
.dia-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.dia-left h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.dia-lead { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.dia-visual img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-hover); }
.dia-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.dia-steps li { display: flex; gap: 14px; align-items: flex-start; }
.dia-steps li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--red)); }
.dia-steps b { display: block; color: var(--navy); font-size: 15px; }
.dia-steps small { color: var(--muted); font-size: 13.5px; }
.dia-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-hover); border: 1px solid var(--line); padding: 28px; position: sticky; top: 100px; }
.dia-card-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.dia-card-head h3 { font-size: 21px; }
.dia-card-head p { color: var(--green-dark); font-size: 13px; font-weight: 600; }
.dia-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #0891b2, var(--navy)); }
.dia-ico .icon { width: 26px; height: 26px; }
.dia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.dia-grid .full { grid-column: 1 / -1; }
.dia-grid .label { margin-bottom: 5px; }
.dia-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.dia-radios label { cursor: pointer; }
.dia-radios input { position: absolute; opacity: 0; pointer-events: none; }
.dia-radios span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: .15s; }
.dia-radios input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.dia-radios input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 960px) {
  .dia-layout { grid-template-columns: 1fr; gap: 34px; }
  .dia-card { position: static; }
}
@media (max-width: 720px) {
  .dia-card { padding: 22px 16px; }
  .dia-grid { grid-template-columns: 1fr; }
}


.diaspora .form-note { font-size: 12.5px; }
.diaspora .alert { font-size: 14px; }


/* =========================================================
   Cartes de services V2 (colorées)
   ========================================================= */
.services-grid.sv2 { grid-template-columns: repeat(4, 1fr); gap: 18px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.sv2 .service {
  --c1: #13307a; --c2: #3b5bdb; --soft: #eef2fd;
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px 22px 22px; gap: 10px;
  background: #fff; border: 1px solid rgba(19, 48, 122, .06); box-shadow: 0 10px 30px rgba(19, 48, 122, .10);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, background .3s;
}
.sv2 .service + .service { border-left: 1px solid rgba(19, 48, 122, .06); }
.sv2 .s-loc { --c1: #13307a; --c2: #3b5bdb; --soft: #eef2fd; }
.sv2 .s-vente { --c1: #c4161e; --c2: #f0474e; --soft: #fdeeee; }
.sv2 .s-terrain { --c1: #15803d; --c2: #34c06a; --soft: #eaf8ef; }
.sv2 .s-prog { --c1: #c2620a; --c2: #f5a524; --soft: #fef5e6; }
/* Bandeau de couleur en haut + grand cercle décoratif */
.sv2 .service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.sv2 .service::after {
  content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -60px; bottom: -70px;
  background: radial-gradient(circle, var(--soft) 0%, var(--soft) 60%, transparent 61%); transform: none; height: 170px; left: auto; top: auto; transition: transform .4s;
}
.sv2 .service:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(19, 48, 122, .18); background: #fff; }
.sv2 .service:hover::after { transform: scale(1.25); }
.sv2 .service > * { position: relative; z-index: 1; }
.sv2 .s-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sv2 .s-ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px color-mix(in srgb, var(--c1) 35%, transparent);
  transition: transform .3s;
}
.sv2 .s-ico .icon { width: 30px; height: 30px; }
.sv2 .service:hover .s-ico { transform: rotate(-6deg) scale(1.06); }
.sv2 .s-count { font-size: 12px; font-weight: 700; color: var(--c1); background: var(--soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.sv2 .s-count[hidden] { display: none; }
.sv2 .service h3 { font-size: 17px; color: #13307a; }
.sv2 .service p { color: var(--muted); font-size: 13.8px; }
.sv2 .s-more {
  opacity: 1; transform: none; margin-top: auto; padding-top: 10px; color: var(--c1); font-weight: 700; font-size: 13.5px;
}
.sv2 .s-more .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--soft); transition: transform .25s, background .25s, color .25s; }
.sv2 .service:hover .s-more .icon { transform: translateX(4px); background: var(--c1); color: #fff; }

@media (max-width: 1100px) {
  .services-grid.sv2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .services-grid.sv2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sv2 .service { flex-direction: column; align-items: flex-start; padding: 18px 14px 16px; gap: 6px; border-radius: 16px; }
  .sv2 .service + .service { border-top: 1px solid rgba(19, 48, 122, .06); }
  .sv2 .s-top { width: 100%; }
  .sv2 .s-ico { width: 46px; height: 46px; border-radius: 13px; }
  .sv2 .s-ico .icon { width: 24px; height: 24px; }
  .sv2 .s-count { font-size: 10.5px; padding: 3px 8px; }
  .sv2 .service h3 { font-size: 14px; font-weight: 700; color: #13307a; }
  .sv2 .service h3 br { display: none; }
  .sv2 .service p, .sv2 .s-arrow { display: none; }
  .sv2 .s-more { font-size: 12.5px; padding-top: 4px; }
  .sv2 .s-more .icon { width: 22px; height: 22px; padding: 4px; }
}


/* Professionnel du BTP (bandeau « Votre projet immobilier, notre priorité ») */
.cta-img img.pro-btp { object-position: 50% 22%; }
.cta-band .cta-img:has(.pro-btp)::before { background: linear-gradient(90deg, var(--navy) 0%, rgba(19, 48, 122, .35) 25%, transparent 55%); }


/* =========================================================
   Transitions entre les pages (rideau de chargement)
   ========================================================= */
.page-loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 70% 25%, rgba(229, 35, 43, .35), transparent 45%), linear-gradient(150deg, #0b1d4d 0%, #13307a 60%, #1f3f96 100%);
  transform: translateY(0); visibility: visible;
  transition: transform .6s cubic-bezier(.77, 0, .18, 1), visibility 0s linear 0s;
  /* Sécurité : si le script ne se charge pas, le rideau disparaît tout seul */
  animation: pl-secours .4s ease 3.5s forwards;
}
.page-loader.out { transform: translateY(-100%); visibility: hidden; transition: transform .6s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .6s; animation: none; }
.page-loader.from-bottom { transform: translateY(100%); visibility: visible; transition: none; animation: none; }
.page-loader.leaving { transform: translateY(0); visibility: visible; transition: transform .45s cubic-bezier(.77, 0, .18, 1); animation: none; }
@keyframes pl-secours { to { transform: translateY(-100%); visibility: hidden; } }
.pl-in { display: grid; justify-items: center; gap: 18px; transition: opacity .3s, transform .3s; }
.page-loader.out .pl-in { opacity: 0; transform: translateY(-20px); }
.pl-logo { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.pl-logo img { width: 150px; height: auto; position: relative; z-index: 1; animation: pl-pulse 1.6s ease-in-out infinite; }
.pl-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 255, 255, .15) 60%, #e5232b 92%, #fff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: pl-tourne 1.1s linear infinite;
}
.pl-logo::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.pl-text { font-size: 15px; font-weight: 500; letter-spacing: .4px; color: rgba(255, 255, 255, .9); margin: 0; }
.pl-bar { width: 180px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.pl-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e5232b, #ff8a8f); animation: pl-barre 1.1s ease-in-out infinite; }
@keyframes pl-tourne { to { transform: rotate(360deg); } }
@keyframes pl-pulse { 50% { transform: scale(1.05); } }
@keyframes pl-barre { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .page-loader, .page-loader.out, .page-loader.leaving { transition: none; }
  .pl-ring, .pl-logo img, .pl-bar span { animation: none; }
}
@media print { .page-loader { display: none !important; } }

/* =========================================================
   Espace client : page « Mon compte »
   ========================================================= */
.ec-hero { color: #fff; background: radial-gradient(circle at 85% 10%, rgba(229, 35, 43, .4), transparent 40%), linear-gradient(120deg, #0b1d4d 0%, #13307a 60%, #2747a5 100%); }
.ec-hero-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-top: 46px; padding-bottom: 70px; }
.ec-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 6px; }
.ec-hero p { color: rgba(255, 255, 255, .85); max-width: 560px; }
.ec-hero .breadcrumb { margin: 0; }
.ec-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-compte { padding-top: 0; }
.ec-resume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -42px; position: relative; z-index: 2; margin-bottom: 22px; }
.ec-resume:empty { display: none; }
.ec-stat { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-hover); }
.ec-stat b { display: block; font-size: 26px; color: var(--navy); line-height: 1.1; }
.ec-stat small { color: var(--muted); font-size: 13px; }
.ec-s-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.ec-s-ico .icon { width: 22px; height: 22px; }
.s-blue { background: linear-gradient(135deg, #3b5bdb, #13307a); }
.s-gold { background: linear-gradient(135deg, #f5a524, #c2620a); }
.s-green { background: linear-gradient(135deg, #34c06a, #15803d); }
.s-red { background: linear-gradient(135deg, #f0474e, #c4161e); }
.ec-prochain { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; margin-bottom: 26px; color: #fff; background: linear-gradient(120deg, #15803d, #22c55e); box-shadow: 0 14px 30px rgba(22, 163, 74, .25); }
.ec-prochain[hidden] { display: none; }
.ec-prochain > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .2); flex: none; }
.ec-prochain small { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; opacity: .9; font-weight: 600; }
.ec-prochain b { font-size: 18px; }
@media (max-width: 960px) { .ec-resume { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .ec-hero-in { padding-top: 30px; padding-bottom: 60px; }
  .ec-hero-actions { width: 100%; }
  .ec-hero-actions .btn { flex: 1; }
  .ec-resume { gap: 10px; }
  .ec-stat { padding: 14px 12px; gap: 10px; }
  .ec-stat b { font-size: 21px; }
  .ec-s-ico { width: 40px; height: 40px; border-radius: 12px; }
  .ec-prochain b { font-size: 15.5px; }
}


/* =========================================================
   Nouveautés : carte des biens, créneaux, devises, messagerie,
   guide, estimation, pages légales
   ========================================================= */
.res-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: -6px 0 18px; }
.res-bar .results-info { margin: 0; }
.vue-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-left: auto; }
.vs-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.vs-btn.active { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(19, 48, 122, .25); }
.carte-biens { height: 600px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-hover); border: 1px solid var(--line); z-index: 0; }
.pin-prix { background: none; border: 0; }
.pin-prix span { display: inline-block; white-space: nowrap; transform: translateX(-50%); margin-left: 30px; background: var(--red); color: #fff; font: 700 12.5px/1 var(--font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); border: 2px solid #fff; position: relative; }
.pin-prix span::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pin-prix.loue span { background: var(--navy); }
.pin-prix.prog span { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pin-agence { background: none; border: 0; }
.pin-agence span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); font-size: 20px; border: 3px solid var(--red); box-shadow: 0 0 0 6px rgba(229, 35, 43, .2); }
.pop-bien { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.pop-bien img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.pop-bien b { display: block; color: var(--navy); font-size: 14px; line-height: 1.3; }
.pop-bien small { display: block; color: var(--muted); }
.pop-bien em { font-style: normal; color: var(--red); font-weight: 700; }
.leaflet-popup-content { margin: 12px; font-family: var(--font); }

.slots { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.slots .label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 10px; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.slot-day { flex: none; width: 62px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; cursor: pointer; transition: .2s; }
.slot-day small { font-size: 11px; color: var(--muted); }
.slot-day b { font-size: 19px; color: var(--navy); }
.slot-day:hover { border-color: var(--navy); }
.slot-day.on { background: var(--navy); border-color: var(--navy); }
.slot-day.on small, .slot-day.on b { color: #fff; }
.slot-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.slot-h { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 4px; font-weight: 600; font-size: 13.5px; color: var(--navy); cursor: pointer; transition: .2s; }
.slot-h:hover { border-color: var(--red); color: var(--red); }
.slot-h.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(229, 35, 43, .3); }
.slots-vide { font-size: 13.5px; color: var(--muted); margin: 0; }
.slots-in .spin { margin: 10px auto; display: block; }

.devises { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.rgpd { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.rgpd a { color: var(--navy); text-decoration: underline; }
.footer-bottom .legal { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: #fff; }

.ds-fil { margin-top: 16px; display: grid; gap: 14px; }
.ds-label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: 13px; margin-bottom: 8px; }
.ds-docs { display: grid; gap: 8px; }
.ds-doc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: .2s; }
.ds-doc:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.ds-doc > .icon:first-child { font-size: 22px; color: var(--red); }
.ds-doc span { flex: 1; min-width: 0; }
.ds-doc b { display: block; font-size: 14px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-doc small { color: var(--muted); font-size: 12px; }
.ds-msgs { display: grid; gap: 10px; }
.ds-bulle { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.ds-bulle > div { background: var(--navy-soft); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.ds-bulle small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.ds-bulle p { margin: 0; white-space: pre-wrap; font-size: 14px; }
.ds-bulle.moi { margin-left: auto; flex-direction: row-reverse; }
.ds-bulle.moi > div { background: var(--navy); color: #fff; border-radius: 16px 4px 16px 16px; }
.ds-bulle.moi small { color: rgba(255, 255, 255, .7); }
.ds-reply { display: flex; gap: 8px; align-items: flex-end; }
.ds-reply textarea { flex: 1; resize: vertical; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ds-reply textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

/* ---------- Guide ---------- */
.guide-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.g-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.g-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.g-card:hover .g-img img { transform: scale(1.05); }
.g-img em { position: absolute; left: 14px; top: 14px; font-style: normal; font-size: 12px; font-weight: 600; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px; }
.g-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.g-body small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.g-body b { color: var(--navy); font-size: 17px; line-height: 1.3; }
.g-body > span { color: var(--muted); font-size: 14px; }
.g-body .g-more { margin-top: auto; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.art-head { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: 56px 0 46px; }
.art-head .breadcrumb, .art-head .breadcrumb a { color: rgba(255, 255, 255, .8); }
.art-head h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); max-width: 860px; margin: 12px 0; }
.art-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: rgba(255, 255, 255, .8); font-size: 14px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 40px; padding-bottom: 60px; }
.art-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 18px; margin-bottom: 26px; }
.art-chapo { font-size: 18px; color: var(--navy); font-weight: 500; margin-bottom: 18px; }
.art-body h2 { font-size: 24px; margin: 30px 0 12px; }
.art-body h3 { font-size: 19px; margin: 22px 0 10px; }
.art-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; }
.art-body ul { margin: 0 0 16px; padding-left: 22px; }
.art-body li { margin-bottom: 6px; font-size: 16px; }
.art-body strong { color: var(--navy); }
.art-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font-weight: 600; }
.art-side .side-card { position: sticky; top: 100px; display: grid; gap: 12px; }
.art-side .side-card p { color: var(--muted); font-size: 14px; }

/* ---------- Estimation ---------- */
.es-layout { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 34px; align-items: start; }
.es-card { background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow-hover); position: sticky; top: 100px; }
.es-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.es-head h2 { font-size: 22px; }
.es-head p { color: var(--muted); font-size: 13.5px; }
.es-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 24px; background: linear-gradient(135deg, #f0474e, #c4161e); flex: none; }
.es-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.es-grid .full { grid-column: 1 / -1; }
.es-vide { background: var(--bg-soft); border-radius: 22px; padding: 30px; }
.es-result { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow-hover); }
.es-result .kicker { color: #ffd2d4; }
.es-fourchette { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px; }
.es-fourchette b { font-size: clamp(24px, 3.4vw, 34px); }
.es-fourchette span { opacity: .8; }
.es-fourchette em { font-style: normal; opacity: .8; font-size: 14px; }
.es-barre { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-bottom: 16px; }
.es-barre span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #facc15, #f0474e); transition: width 1.2s ease; }
.es-info { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; opacity: .9; }
.es-info .icon { margin-top: 3px; }
.es-label { font-weight: 600; margin: 20px 0 10px; }
.es-comp { display: grid; gap: 10px; }
.es-comp a { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px; transition: .2s; }
.es-comp a:hover { background: rgba(255, 255, 255, .16); }
.es-comp img { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; }
.es-comp b { display: block; font-size: 14px; }
.es-comp small { display: block; opacity: .75; font-size: 12px; }
.es-comp em { font-style: normal; font-weight: 700; color: #ffd2d4; font-size: 13px; }
.es-avert { font-size: 12.5px; opacity: .75; margin-top: 16px; }
.es-lead { margin-top: 24px; }
.es-lead h3 { font-size: 20px; margin-bottom: 4px; }

/* ---------- Pages légales ---------- */
.legal-page { max-width: 860px; }
.legal-page h2 { font-size: 21px; margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 15.5px; line-height: 1.75; margin-bottom: 10px; }
.legal-page a { color: var(--navy); text-decoration: underline; }
.legal-maj { color: var(--muted); font-size: 13.5px !important; }
.a-completer { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.notfound b .icon { margin: 0 auto; }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout, .es-layout { grid-template-columns: 1fr; }
  .es-card, .art-side .side-card { position: static; }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .carte-biens { height: 70vh; }
  .es-grid { grid-template-columns: 1fr; }
  .es-card, .es-vide, .es-result, .pr-bien { padding: 20px; }
  .ds-bulle { max-width: 100%; }
  .vue-switch { margin-left: 0; }
}
@media print {
  .topbar, .site-header, .site-footer, .bottom-nav, .to-top, .ec-hero-actions, .chat-fab, .chat-panel, .page-loader, .nav-overlay, .pr-note { display: none !important; }
  .ec-hero { background: none !important; color: #000 !important; padding: 0 !important; }
  .ec-hero h1, .ec-hero p { color: #000 !important; }
  .pr-bien, .ec-stat { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
[hidden] { display: none !important; }

/* ---------- Bouton de langue FR / EN ---------- */
.lang-btn { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px; cursor: pointer; font: 600 12px/1 var(--font); color: var(--muted); }
.lang-btn span { padding: 6px 8px; border-radius: 999px; }
.lang-btn span.on { background: var(--navy); color: #fff; }
.lang-btn.lang-mobile { align-self: center; margin-bottom: 4px; }
.res-bar > .toolbar { flex: 1 1 auto; margin: 0; }
@media (max-width: 900px) { .header-cta .lang-btn { display: none; } }
/* ---------- Contact : 4 accès rapides ; accueil : conseils du guide ---------- */
.quick-contact { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .quick-contact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .quick-contact { grid-template-columns: 1fr; } }
/* ---------- Correctif : le calendrier des créneaux ne doit jamais élargir la colonne ---------- */
.fiche-layout { grid-template-columns: minmax(0, 1fr) 370px; }
.side-sticky, .visit-form, .side-btns { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.fiche-side, .slots, .slots-in, .slot-days { min-width: 0; max-width: 100%; }
@media (max-width: 960px) { .fiche-layout { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Correctif : cases de caractéristiques lisibles (5 cases pour les programmes) ---------- */
.facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fact { min-width: 0; }
.fact > span { min-width: 0; }
.fact b { display: block; line-height: 1.3; overflow-wrap: break-word; }
/* ---------- Créneaux : grille de jours (plus de défilement coupé) ---------- */
.slot-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
.slot-day { width: auto; }
.slot-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; border: 0; background: none; color: var(--navy); font: 600 13px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.slot-more .icon { color: var(--red); }
.slot-hours { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
/* ---------- Correctif : pied de page sur téléphone (dépassait de quelques pixels) ---------- */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > *:last-child { grid-column: 1 / -1; }
  .footer-grid a, .footer-grid span { overflow-wrap: anywhere; }
}
/* ---------- Version de présentation (lien claude.ai) ---------- */
.vitrine-bandeau { background: #fef3c7; color: #7c4a03; font-size: 12.5px; text-align: center; padding: 6px 16px; line-height: 1.4; }
.map-lien { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; height: 100%; border-radius: inherit; background: var(--navy-soft); color: var(--navy); text-align: center; padding: 20px; }
.map-lien > .icon { font-size: 34px; color: var(--red); }
.map-lien span { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; font-size: 14px; }
/* ---------- Correctif : section « Nous trouver » sur très petit écran (320 px) ---------- */
.loc-layout > * { min-width: 0; }
@media (max-width: 960px) { .loc-layout { grid-template-columns: minmax(0, 1fr); } }
.loc-list a, .loc-list b, .loc-list em { overflow-wrap: anywhere; }
/* ---------- Accessibilité : indicateur de focus clavier toujours visible (WCAG 2.4.7) ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #f59e0b; outline-offset: 2px;
}
.hs-field:focus-within, .sort:focus-within { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 10px; }
.cb-form textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 1px; }