/* ============================================================
   BELARDIMMO — design system
   ============================================================ */
:root {
  --ink: #0b1c2c;
  --navy: #11283f;
  --navy-2: #1c407d;
  --teal: #158b9d;
  --teal-2: #3ebad7;
  --sand: #d9a85e;
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #2a3a4a;
  --muted: #6b7c8d;
  --line: #e3e9ee;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(11, 28, 44, .08);
  --shadow-lg: 0 18px 48px rgba(11, 28, 44, .16);
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--navy-2) 100%);
  --font-head: "Cormorant", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: .005em; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(11, 28, 44, .1);
  padding: 8px 0;
}
.header-inner {
  width: min(1280px, 94vw); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; display: block; flex-shrink: 0; transition: height .35s; }
.site-header.scrolled .logo-img { height: 34px; }
/* défaut : header transparent sur fond sombre (hero, en-têtes dégradés) -> logo blanc */
.logo-light { display: block; }
.logo-dark { display: none; }
/* header scrollé (fond blanc) -> logo couleur */
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block; }
/* pages à fond clair derrière le header (bien, carte) -> logo couleur même non scrollé */
body.header-dark .site-header:not(.scrolled) .logo-light { display: none; }
body.header-dark .site-header:not(.scrolled) .logo-dark { display: block; }
.footer-wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; color: #fff; margin-bottom: 14px; }
.footer-wordmark em { font-style: normal; color: var(--teal-2); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  color: #fff; transition: background .25s, color .25s;
}
.site-header.scrolled .main-nav a,
body.header-dark .site-header:not(.scrolled) .main-nav a { color: var(--text); }
.main-nav a:hover { background: rgba(21, 139, 157, .14); color: var(--teal-2); }
.site-header.scrolled .main-nav a:hover { color: var(--teal); }
.main-nav a.active { background: var(--grad); color: #fff !important; }
.main-nav a.nav-ai::before { content: "✨ "; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.site-header.scrolled .lang-switch,
body.header-dark .site-header:not(.scrolled) .lang-switch { background: #eef2f5; }
.lang-btn {
  border: 0; background: transparent; color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; transition: all .25s;
}
.site-header.scrolled .lang-btn,
body.header-dark .site-header:not(.scrolled) .lang-btn { color: var(--muted); }
.lang-btn.active { background: var(--grad); color: #fff !important; box-shadow: 0 2px 8px rgba(21,139,157,.4); }

.btn-install {
  border: 0; background: var(--sand); color: var(--ink); font-weight: 600; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(217,168,94,.45);
  transition: transform .2s;
}
.btn-install:hover { transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 1002; }
.burger span { width: 26px; height: 3px; border-radius: 2px; background: #fff; transition: all .3s; }
.site-header.scrolled .burger span,
body.header-dark .site-header:not(.scrolled) .burger span { background: var(--ink); }
.burger.open span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; padding: 120px 0 60px;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease;
}
.hero-slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,28,44,.55) 0%, rgba(11,28,44,.35) 40%, rgba(11,28,44,.78) 100%);
}
.hero-content { width: min(1100px, 92vw); margin: 0 auto; text-align: center; }
.hero-kicker {
  display: inline-block; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(8px);
  animation: fadeUp .9s .1s both;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; margin: 0 0 18px;
  animation: fadeUp .9s .25s both;
}
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; max-width: 640px; margin: 0 auto; animation: fadeUp .9s .4s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Recherche glassmorphism */
.search-panel {
  margin: 44px auto 0; width: min(980px, 100%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px); border-radius: 24px; padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: fadeUp .9s .55s both;
}
.search-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.search-tab {
  border: 0; padding: 9px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.14); color: #fff; transition: all .25s;
}
.search-tab.active { background: #fff; color: var(--navy-2); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.search-tab.tab-ai { background: linear-gradient(120deg, rgba(62,186,215,.35), rgba(255,255,255,.18)); }
.search-tab.tab-ai.active { background: var(--grad); color: #fff; }
.search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 10px; }
.search-ai { display: flex; flex-direction: column; gap: 10px; }
.search-ai-hint { margin: 0 2px 2px; color: #fff; font-size: .92rem; opacity: .9; }
.search-ai textarea {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; font-family: inherit; font-size: .95rem;
  background: #fff; color: var(--ink); outline: none; resize: vertical; min-height: 92px; line-height: 1.5;
}
.search-fields[hidden], .search-ai[hidden] { display: none; }
.search-fields select, .search-fields input {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; font-family: inherit; font-size: .95rem;
  background: #fff; color: var(--ink); outline: none;
}
.btn-search {
  border: 0; border-radius: 14px; padding: 14px 28px; font-weight: 700; font-size: .98rem;
  background: var(--grad); color: #fff; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(21,139,157,.5); transition: transform .2s, box-shadow .2s;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(21,139,157,.6); }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 70px);
  margin-top: 56px; animation: fadeUp .9s .7s both; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--teal-2); }
.hero-stat span { font-size: .85rem; opacity: .85; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px;
}
.hero-scroll::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 9px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { text-align: center; margin-bottom: clamp(30px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.section-head .line { width: 64px; height: 4px; border-radius: 2px; background: var(--grad); margin: 18px auto 0; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Cartes de biens ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.prop-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prop-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dde5ea; }
.prop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prop-card:hover .prop-card-img img { transform: scale(1.07); }
.prop-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: #fff; backdrop-filter: blur(4px);
}
.badge-tx.vente { background: rgba(21,139,157,.92); }
.badge-tx.location { background: rgba(28,64,125,.92); }
.badge-new { background: rgba(217,168,94,.95); color: var(--ink); }
.badge-heart { background: rgba(196,69,105,.92); }
.prop-card-count {
  position: absolute; bottom: 10px; right: 12px; font-size: .78rem; color: #fff;
  background: rgba(11,28,44,.55); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.prop-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-card-price { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--teal); }
.prop-card-title { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.prop-card-city { color: var(--muted); font-size: .88rem; }
.prop-card-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.chip { font-size: .8rem; background: #eef4f6; color: var(--navy); padding: 4px 10px; border-radius: 999px; font-weight: 500; }

/* Carrousel coups de cœur */
.featured-carousel { position: relative; }
.featured-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(370px, 82vw);
  gap: 24px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 6px 4px 16px;
  scrollbar-width: none;            /* Firefox : pas de barre */
  -ms-overflow-style: none;         /* anciens Edge/IE */
}
.featured-scroll::-webkit-scrollbar { display: none; }  /* Chrome / Safari */
.featured-scroll > * { scroll-snap-align: start; }
.carousel-arrow {
  position: absolute; top: calc(50% - 14px); transform: translateY(-50%); z-index: 6;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy-2); font-size: 1.9rem; line-height: 1;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  transition: background .2s, color .2s, opacity .2s;
}
.carousel-arrow:hover { background: var(--grad); color: #fff; }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-arrow:disabled:hover { background: #fff; color: var(--navy-2); }
@media (max-width: 760px) {
  .carousel-arrow { display: none !important; }   /* sur mobile : glissement au doigt */
  .featured-scroll { scroll-snap-type: x mandatory; }
}

/* Destinations */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.dest-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/3.6;
  display: flex; align-items: flex-end; box-shadow: var(--shadow);
  transition: transform .35s; color: #fff;
}
.dest-tile:hover { transform: translateY(-8px); }
.dest-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.dest-tile:hover img { transform: scale(1.08); }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,28,44,.85)); }
.dest-tile-body { position: relative; z-index: 1; padding: 24px; }
.dest-tile-body h3 { color: #fff; font-size: 1.5rem; }
.dest-tile-body span { font-size: .9rem; opacity: .9; }

/* Section carte teaser */
.map-teaser { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.map-teaser .section-head h2 { color: #fff; }
.map-teaser .section-head p { color: rgba(255,255,255,.75); }
.map-teaser-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  height: clamp(320px, 50vw, 460px); position: relative;
}
.map-teaser-frame .map { height: 100%; }
.map-cta { text-align: center; margin-top: 30px; }

.btn-primary {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700;
  padding: 14px 34px; border-radius: 999px; border: 0; font-size: 1rem;
  box-shadow: 0 10px 28px rgba(21,139,157,.45); transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(21,139,157,.55); }
.btn-ghost {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600;
  border: 2px solid var(--teal); color: var(--teal); transition: all .25s; background: transparent;
}
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* Pourquoi nous */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.why-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transition: transform .3s; text-align: center;
}
.why-card:hover { transform: translateY(-6px); }
.why-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--grad); display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  box-shadow: 0 8px 20px rgba(21,139,157,.4);
}
.why-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { font-size: .9rem; color: var(--muted); }

/* ---------- Page liste ---------- */
.page-head {
  background: var(--grad); color: #fff; padding: 150px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 280px at 80% 120%, rgba(255,255,255,.16), transparent);
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); position: relative; z-index: 1; }
.page-head p { opacity: .85; margin-top: 8px; position: relative; z-index: 1; }

.filter-bar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-top: -34px; position: relative; z-index: 5;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto; gap: 10px;
}
.filter-bar select, .filter-bar input {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
  font-family: inherit; font-size: .92rem; color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s; width: 100%;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--teal); }
.btn-reset { border: 0; background: #eef4f6; border-radius: 12px; padding: 11px 16px; font-weight: 600; color: var(--navy); }
.btn-reset:hover { background: #e0ecef; }

.list-meta { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 18px; gap: 14px; flex-wrap: wrap; }
.list-count { font-weight: 600; color: var(--ink); }
.list-count b { color: var(--teal); font-size: 1.2em; }
.list-sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.list-sort select { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font-family: inherit; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .ico { font-size: 3rem; margin-bottom: 12px; }

/* Skeletons */
.skeleton {
  border-radius: var(--radius); background: linear-gradient(110deg, #e7edf1 30%, #f4f8fa 50%, #e7edf1 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; aspect-ratio: 4/5;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Fiche bien ---------- */
.prop-hero { padding-top: 92px; }
.gallery { display: grid; grid-template-columns: 2.2fr 1fr; grid-template-rows: clamp(340px, 52vw, 560px); gap: 10px; }
.gallery-main { border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; position: relative; cursor: zoom-in; min-height: 0; min-width: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; min-width: 0; }
.gallery-side .g-item { overflow: hidden; position: relative; cursor: zoom-in; min-height: 0; }
.gallery-side .g-item:first-child { border-radius: 0 var(--radius) 0 0; }
.gallery-side .g-item:last-child { border-radius: 0 0 var(--radius) 0; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img, .gallery-main:hover img { transform: scale(1.05); }
.g-more {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(11,28,44,.55); font-weight: 700; font-size: 1.2rem;
}

.prop-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 34px; margin-top: 34px; align-items: start; }
.prop-main h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.prop-sub { color: var(--muted); margin-bottom: 22px; }
.prop-price-line { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.prop-price { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--teal); }
.prop-ref { color: var(--muted); font-size: .9rem; }

.quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 30px; }
.fact {
  background: var(--card); border-radius: 14px; padding: 14px; text-align: center;
  box-shadow: var(--shadow);
}
.fact b { display: block; color: var(--ink); font-size: 1.05rem; }
.fact span { font-size: .78rem; color: var(--muted); }

.prop-section { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.prop-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
.prop-desc { color: var(--text); }
.prop-desc p { margin: 0 0 .85em; }
.prop-desc p:last-child { margin-bottom: 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-group h3 { font-size: 1rem; color: var(--teal); margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.feature-group div { display: flex; justify-content: space-between; font-size: .9rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.feature-group div span:last-child { font-weight: 600; color: var(--ink); }

/* Simulateur de financement */
.fin-sim { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: center; }
.fin-controls { display: flex; flex-direction: column; gap: 16px; }
.fin-field { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; color: var(--muted); }
.fin-field > span { display: flex; justify-content: space-between; }
.fin-field b { color: var(--ink); }
.fin-field input[type=range] { width: 100%; accent-color: var(--teal); height: 6px; }
.fin-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 24px; text-align: center; box-shadow: var(--shadow); }
.fin-monthly-label { font-size: .85rem; opacity: .8; }
.fin-monthly { font-family: var(--font-head); margin: 2px 0 12px; line-height: 1; }
.fin-monthly b { font-size: 2.6rem; color: var(--teal-2); }
.fin-loan { font-size: .85rem; opacity: .85; margin-bottom: 18px; }
.fin-result .btn-primary { width: 100%; }
.fin-disclaimer { font-size: .78rem; color: var(--muted); margin-top: 16px; }

/* Le quartier (Vivre ici) */
.hood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hood-card { display: flex; gap: 12px; align-items: center; background: #f6fafb; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.hood-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 1.35rem; }
.hood-card b { color: var(--ink); display: block; font-size: .94rem; }
.hood-meta { color: var(--muted); font-size: .82rem; }
.hood-near { color: var(--teal); font-weight: 700; }
.hood-loading { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hood-loading .ai-spinner, .hood-spinner { width: 22px; height: 22px; border: 3px solid #e3e9ee; border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .fin-sim { grid-template-columns: 1fr; } }

.energy-badge {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-weight: 800; color: #fff; font-size: 1.1rem;
}
.energy-A { background: #1a9850; } .energy-B { background: #66bd63; } .energy-C { background: #a6d96a; color: #2a3a4a; }
.energy-D { background: #fee08b; color: #2a3a4a; } .energy-E { background: #fdae61; } .energy-F { background: #f46d43; }
.energy-G, .energy-H, .energy-I { background: #d73027; } .energy-NC { background: #9aa8b5; }

.prop-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.contact-card .sub { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 18px; }
.contact-card form { display: flex; flex-direction: column; gap: 10px; }
.contact-card input, .contact-card textarea {
  border: 0; border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: .92rem;
  background: rgba(255,255,255,.1); color: #fff; outline: none; border: 1px solid rgba(255,255,255,.18);
  resize: vertical;
}
.contact-card input::placeholder, .contact-card textarea::placeholder { color: rgba(255,255,255,.55); }
.contact-card input:focus, .contact-card textarea:focus { border-color: var(--teal-2); }
.btn-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff;
  border-radius: 12px; padding: 12px; font-weight: 600; margin-bottom: 10px; transition: background .25s;
}
.btn-call:hover { background: rgba(255,255,255,.2); }

.map { height: 380px; border-radius: var(--radius); z-index: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8, 16, 26, .96);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lightbox-bar { position: absolute; top: 18px; right: 22px; display: flex; gap: 10px; }
.lightbox-count { position: absolute; top: 24px; left: 26px; color: rgba(255,255,255,.8); font-size: .95rem; }
.lb-btn {
  background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px;
  border-radius: 50%; font-size: 1.25rem; display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-btn.lb-text {
  width: auto; border-radius: 999px; padding: 0 18px; gap: 7px; font-size: .92rem;
  font-weight: 600; background: var(--grad);
}
.lb-btn.lb-text:hover { filter: brightness(1.08); background: var(--grad); }

/* --- Réaménagement IA (home staging virtuel) --- */
.stage {
  position: fixed; inset: 0; z-index: 2100; background: rgba(8, 16, 26, .97);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.stage.open { display: flex; }
.stage-panel {
  background: #fff; border-radius: var(--radius); width: min(980px, 96vw);
  max-height: 92vh; overflow: auto; padding: 26px clamp(18px, 3vw, 32px); position: relative;
}
.stage-close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0;
  border-radius: 50%; background: #eef4f6; color: var(--navy); font-size: 1.2rem; cursor: pointer;
}
.stage-close:hover { background: #dde7ec; }
.stage h2 { font-family: var(--font-head); color: var(--navy); margin: 0 0 4px; font-size: 1.7rem; }
.stage-sub { color: #5a6b78; margin: 0 0 18px; font-size: .96rem; }
.stage-styles { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.stage-chip {
  border: 1.5px solid #d7e0e6; background: #fff; color: var(--navy); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .18s;
}
.stage-chip:hover { border-color: var(--teal); color: var(--teal); }
.stage-chip.active { background: var(--grad); border-color: transparent; color: #fff; }
.stage-or {
  display: flex; align-items: center; gap: 12px; color: #8595a0; font-size: .85rem; margin: 0 0 12px;
}
.stage-or::before, .stage-or::after { content: ""; flex: 1; height: 1px; background: #e3e9ee; }
.stage-custom { display: flex; gap: 10px; align-items: stretch; margin-bottom: 20px; }
.stage-input {
  flex: 1; border: 1.5px solid #d7e0e6; border-radius: 12px; padding: 11px 14px; font: inherit;
  font-size: .92rem; resize: vertical; min-height: 46px; color: var(--navy); background: #fff;
}
.stage-input:focus { outline: none; border-color: var(--teal); }
.stage-go {
  flex-shrink: 0; align-self: stretch; border: 0; border-radius: 12px; padding: 0 20px; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 600; font-size: .95rem; transition: filter .18s;
}
.stage-go:hover { filter: brightness(1.08); }
.stage-area { min-height: 200px; display: grid; place-items: center; }
.stage-loading { text-align: center; color: #5a6b78; }
.stage-loading .hood-spinner { margin: 0 auto 12px; width: 30px; height: 30px; }
.stage-error { color: #b23; text-align: center; font-weight: 600; }
.stage-hint { color: #8595a0; text-align: center; font-size: .92rem; }

.stage-compare { position: relative; width: 100%; container-type: inline-size; user-select: none; touch-action: none; }
.stage-compare img { display: block; width: 100%; height: auto; border-radius: 10px; }
.sc-after-wrap { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-radius: 10px 0 0 10px; }
.sc-after-wrap img { width: 100cqw; max-width: none; border-radius: 10px; }
.sc-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.sc-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff;
  transform: translateX(-50%); z-index: 2; box-shadow: 0 0 8px rgba(0,0,0,.4); pointer-events: none;
}
.sc-handle::after {
  content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 1.05rem; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.sc-lbl {
  position: absolute; bottom: 12px; z-index: 2; font-size: .78rem; font-weight: 700; color: #fff;
  background: rgba(8,16,26,.6); padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.sc-lbl-b { left: 12px; } .sc-lbl-a { right: 12px; }
.proj-item { margin-bottom: 22px; }
.proj-item:last-child { margin-bottom: 0; }
.proj-label { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 1.02rem; }
.proj-item .stage-compare { max-width: 760px; }
.stage-disclaimer {
  margin: 14px 0 0; text-align: center; font-size: .82rem; color: #8595a0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.stage-disclaimer::before { content: "✨"; }
.stage-again {
  display: block; margin: 14px auto 0; border: 1.5px solid var(--teal); background: #fff; color: var(--teal);
  border-radius: 999px; padding: 9px 20px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.stage-again:hover { background: var(--teal); color: #fff; }
@media (max-width: 560px) {
  .stage-panel { padding: 22px 16px; }
  .stage h2 { font-size: 1.4rem; }
  .stage-custom { flex-direction: column; }
  .stage-go { padding: 12px; }
}

/* ---------- Page carte ---------- */
.fullmap-wrap { padding-top: 76px; height: 100svh; display: flex; flex-direction: column; }
.fullmap-bar {
  background: var(--card); padding: 12px 4vw; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 2px 12px rgba(11,28,44,.06); z-index: 500; flex-wrap: wrap;
}
.fullmap-bar .pill {
  border: 1.5px solid var(--line); background: #fff; padding: 7px 16px; border-radius: 999px;
  font-weight: 600; font-size: .88rem; color: var(--muted); transition: all .2s;
}
.fullmap-bar .pill.active { background: var(--grad); color: #fff; border-color: transparent; }
.fullmap-bar select { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-family: inherit; font-size: .88rem; }
.fullmap-count { margin-left: auto; font-size: .88rem; color: var(--muted); font-weight: 600; }
#fullmap { flex: 1; z-index: 1; }

.map-popup { width: 230px; }
.map-popup img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px 10px 0 0; }
.map-popup-body { padding: 10px 12px; }
.map-popup-body .pp { color: var(--teal); font-weight: 800; font-size: 1.05rem; font-family: var(--font-head); }
.map-popup-body .pt { font-size: .85rem; color: var(--ink); font-weight: 600; }
.map-popup-body .pc { font-size: .78rem; color: var(--muted); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; overflow: hidden; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content { margin: 0 !important; }
.marker-pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--grad); border: 2.5px solid #fff; box-shadow: 0 4px 12px rgba(11,28,44,.4);
  display: grid; place-items: center;
}
.marker-pin span { transform: rotate(45deg); color: #fff; font-size: .95rem; }
.cluster-bubble {
  background: var(--grad); color: #fff; border-radius: 50%; border: 3px solid #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 14px rgba(11,28,44,.35);
  width: 100%; height: 100%;
}

/* ---------- Équipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.team-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center; padding-bottom: 26px; transition: transform .3s;
}
.team-card:hover { transform: translateY(-6px); }
.team-avatar {
  height: 120px; background: var(--grad); display: grid; place-items: center; margin-bottom: 54px; position: relative;
}
.team-avatar .initials {
  position: absolute; bottom: -44px; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; color: var(--navy-2); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem;
  box-shadow: var(--shadow); border: 4px solid #fff;
}
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--teal); font-weight: 600; font-size: .88rem; margin: 2px 0 12px; }
.team-card .links { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); }
.team-card .links a:hover { color: var(--teal); }

.hours-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px;
  display: grid; gap: 8px; max-width: 560px; margin: 50px auto 0; text-align: center;
  box-shadow: var(--shadow-lg);
}
.hours-card h3 { color: var(--sand); font-size: 1.2rem; margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.contact-form-card { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form-card form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%;
  font-family: inherit; font-size: .95rem; outline: none; transition: border-color .2s; resize: vertical;
}
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { border-color: var(--teal); }
.form-success {
  background: #e5f6ee; border: 1.5px solid #5cc491; color: #14724a;
  border-radius: 12px; padding: 14px 16px; font-weight: 600; display: none;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: var(--card); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.info-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.info-card b { color: var(--ink); }
.info-card a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 80px; }
.footer-grid {
  width: min(1200px, 92vw); margin: 0 auto; padding: 60px 0 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-grid a { display: block; padding: 3px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--teal-2); }
.footer-grid p { font-size: .92rem; margin-bottom: 10px; }
.footer-fb { margin-top: 8px; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 4vw; text-align: center; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .btn-search { grid-column: span 2; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .prop-layout { grid-template-columns: 1fr; }
  .prop-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .header-inner { gap: 10px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .logo-img { height: 24px; }
  .site-header.scrolled .logo-img { height: 22px; }
  .lang-btn { padding: 4px 8px; font-size: .72rem; }
  .main-nav {
    position: fixed; inset: 0; background: #ffffff;
    flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.7,0,.3,1); z-index: 1001;
  }
  .main-nav.open { transform: none; }
  .main-nav a { color: var(--ink) !important; font-size: 1.3rem; padding: 12px 26px; }
  .btn-install span { display: none; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery-main { aspect-ratio: 4/3; border-radius: var(--radius) var(--radius) 0 0; }
  .gallery-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .gallery-side .g-item { aspect-ratio: 4/3; }
  .gallery-side .g-item:first-child { border-radius: 0 0 0 var(--radius); }
  .gallery-side .g-item:last-child { border-radius: 0 0 var(--radius) 0; }
  .prop-desc { font-size: 15px; line-height: 1.6; }
}
@media (max-width: 560px) {
  .search-fields { grid-template-columns: 1fr; }
  .search-ai { grid-template-columns: 1fr; }
  .btn-search { grid-column: span 1; }
  .filter-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .lang-switch { padding: 2px; }
  .dest-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dest-tile { aspect-ratio: 3/3.4; }
  .dest-tile-body { padding: 13px; }
  .dest-tile-body h3 { font-size: 1.1rem; }
  .dest-tile-body span { font-size: .76rem; }
  .search-panel { padding: 12px; margin-top: 24px; border-radius: 18px; }
  .search-tabs { gap: 6px; margin-bottom: 10px; }
  .search-tab { padding: 7px 14px; font-size: .82rem; }
  .search-fields { gap: 8px; }
  .search-fields select, .search-fields input { padding: 10px 13px; font-size: .88rem; border-radius: 11px; }
  .btn-search { padding: 11px 20px; font-size: .9rem; border-radius: 11px; }
  .search-ai textarea { min-height: 70px; padding: 11px 13px; font-size: .9rem; }
  .search-ai-hint { font-size: .82rem; }
}

/* ============================================================
   Encart « code d'écran » Eve_voix (js/eve-ecran.js)
   Visible seulement pendant la phase d'essai (?eve=1).
   ============================================================ */
.eve-appel {
  position: fixed; right: 16px; bottom: 16px; z-index: 900;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  background: var(--navy); color: #fff; border: none; border-radius: 14px;
  padding: 11px 16px; font-family: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 28, 44, .28);
}
.eve-appel:hover { background: var(--teal); }
.eve-appel-ico { font-size: 1.15rem; flex: none; }
.eve-appel-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.eve-appel-txt small { font-size: .74rem; opacity: .78; }
.eve-appel-txt b { font-size: .9rem; }

.eve-panneau {
  position: fixed; right: 16px; bottom: 16px; z-index: 901;
  width: min(420px, calc(100vw - 32px)); max-height: min(78vh, 720px); overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 18px 20px 20px;
  box-shadow: 0 18px 48px rgba(11, 28, 44, .26);
}
.eve-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eve-tete h2 { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); margin: 0; flex: 1; }
.eve-x { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.eve-x:hover { background: #f2f7f9; color: var(--ink); }

.eve-code {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; letter-spacing: .08em;
  color: var(--teal); text-align: center; line-height: 1.1; min-height: 0;
}
.eve-code:empty { display: none; }
.eve-etat { text-align: center; color: var(--ink); font-size: .92rem; margin: 6px 0 10px; }
.eve-aide { color: var(--muted); font-size: .8rem; margin: 0 0 4px; }
.eve-expire { margin-bottom: 12px; }
.eve-stop {
  width: 100%; margin-top: 14px; background: none; border: 1.5px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 9px 14px; font-family: inherit;
  font-size: .88rem; cursor: pointer;
}
.eve-stop:hover { border-color: var(--teal); color: var(--teal); }

.eve-contenu:empty { display: none; }
.eve-cartes { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.eve-carte { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.eve-carte img { width: 76px; min-width: 76px; max-width: none; height: 58px; border-radius: 8px; object-fit: cover; background: var(--line); }
.eve-carte-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .85rem; }
.eve-carte-txt b { color: var(--ink); }
.eve-carte-txt span { color: var(--muted); font-size: .8rem; }
.eve-carte-txt a, .eve-voir { color: var(--teal); font-size: .82rem; font-weight: 600; }

.eve-fiche { margin-top: 6px; }
.eve-fiche-photo { width: 100%; max-width: none; border-radius: 12px; background: var(--line); display: block; }
.eve-fiche h3 { font-size: 1.02rem; color: var(--ink); margin: 10px 0 2px; }
.eve-compteur { margin-bottom: 10px; }
.eve-carac { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .85rem; margin: 0 0 10px; }
.eve-carac dt { color: var(--muted); }
.eve-carac dd { margin: 0; color: var(--ink); }
.eve-desc { font-size: .86rem; line-height: 1.5; color: var(--text); margin: 0 0 10px; }

.eve-parler {
  width: 100%; margin-top: 14px; background: var(--navy); border: none; color: #fff;
  border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: .92rem;
  font-weight: 600; cursor: pointer;
}
.eve-parler:hover { background: var(--teal); }
.eve-parler[hidden] { display: none; }

.eve-mode {
  display: block; margin: 10px auto 0; padding: 4px 6px;
  background: none; border: none; font: inherit; font-size: .78rem;
  color: var(--muted); text-decoration: underline; cursor: pointer;
}
.eve-mode:hover { color: var(--teal); }

/* --- Mode Ève : carrousel plein écran ---
   Seuls transform et opacity bougent pendant la rotation. L'affichage
   simple (le panneau) reste le repli, sans redéploiement. */
.eve-scene {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(110% 80% at 50% 0%, #1b4a66 0%, rgba(27, 74, 102, 0) 62%),
    linear-gradient(170deg, var(--navy) 0%, #0a1f30 55%, #071826 100%);
}
.eve-scene[hidden] { display: none; }
html.eve-fige, html.eve-fige body { overflow: hidden; }

.eve-scene-tete {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  position: relative; z-index: 3;
}
.eve-scene-marque {
  flex: 0 1 auto; min-width: 0; font-family: var(--font-head);
  font-size: 1.25rem; letter-spacing: .05em; color: #cfe7ee;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eve-total {
  flex: 1 1 auto; min-width: 0; font-size: .82rem; color: #8fb3c2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eve-total:empty { display: none; }
.eve-scene-simple, .eve-scene-x {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  color: #dff0f5; border-radius: 999px; font: inherit; font-size: .82rem;
  padding: 7px 14px; cursor: pointer; white-space: nowrap; flex: none;
}
.eve-scene-x { padding: 7px 11px; }
.eve-scene-simple:hover, .eve-scene-x:hover { background: rgba(255, 255, 255, .16); }

.eve-cyl {
  flex: 1; min-height: 0; position: relative; perspective: 1500px;
  transition: opacity .5s ease, transform .6s ease;
}
.eve-scene.detail .eve-cyl { opacity: .2; transform: scale(.9); }
/* Sur téléphone la vue détaillée occupe toute la largeur : un cylindre même
   très pâle laisserait son texte transparaître sous le nôtre. On l'éteint. */
@media (max-width: 720px) {
  .eve-scene.detail .eve-cyl { opacity: 0; }
}
/* Le flou coûte cher : réservé aux grands écrans, et le cylindre est figé
   pendant ce temps, donc il n'est calculé qu'une fois. */
@media (min-width: 721px) {
  .eve-scene.detail .eve-cyl { filter: blur(5px); }
}
.eve-scene.detail .eve-scene-info { opacity: 0; }
.eve-axe {
  position: absolute; left: 50%; top: 50%;
  width: var(--eve-l); height: var(--eve-h);
  margin: calc(var(--eve-h) / -2) 0 0 calc(var(--eve-l) / -2);
  transform-style: preserve-3d; will-change: transform;
}
.eve-cy {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backface-visibility: hidden; will-change: transform, opacity;
  transition: transform .75s cubic-bezier(.22, .61, .36, 1), border-color .4s ease;
}
.eve-cy.on { border-color: rgba(62, 186, 215, .55); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.eve-cy-photo { position: relative; flex: 1; min-height: 0; background: #0a1f30; }
.eve-cy-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}
.eve-cy-ref {
  position: absolute; top: 10px; left: 12px; margin: 0;
  background: rgba(7, 24, 38, .66); color: #dff0f5;
  font-size: .7rem; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px;
}
.eve-cy-txt { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.eve-cy-txt b {
  font-size: .96rem; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Le résumé vient d'Ève et fait une cinquantaine de caractères : deux lignes,
   puis coupure propre, pour que le texte ne mange pas la photo. */
.eve-cy-txt span {
  font-size: .82rem; color: #a9c6d2; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.eve-scene-info { flex: none; min-height: 136px; padding: 0 22px 26px; }
.eve-info-bloc { max-width: 760px; margin: 0 auto; text-align: center; }
.eve-scene-info h3 { font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin: 0 0 12px; }
.eve-info-carac { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 14px; }
.eve-puce {
  min-width: 86px; padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.eve-puce dt { color: #8fb3c2; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.eve-puce dd { margin: 2px 0 0; color: #fff; font-size: .95rem; font-weight: 600; }
.eve-info-voir { display: inline-block; color: #6fd2ea; font-size: .9rem; font-weight: 600; }
.eve-info-fin { margin: 0; text-align: center; color: #cfe7ee; font-size: 1.05rem; }

/* --- Vue détaillée : le bien qu'Ève décrit s'ouvre en grand --- */
.eve-detail {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 36px;
  padding: 78px 40px 30px; overflow-x: hidden; overflow-y: auto;
  opacity: 0; transform: scale(.97); pointer-events: none;
  transition: opacity .45s ease, transform .5s cubic-bezier(.22, .61, .36, 1);
}
.eve-detail[hidden] { display: none; }
.eve-detail.on { opacity: 1; transform: none; pointer-events: auto; }

/* Lumière d'ambiance, allumée quand Ève décrit un bien. Elle vit dans la
   scène (qui la rogne) et non dans la vue détaillée : posée dans un bloc qui
   défile, son débordement volontaire rendait la vue scrollable et décalait
   tout le contenu. */
.eve-halo {
  position: absolute; left: 50%; top: 48%; width: min(130vw, 1300px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(closest-side, rgba(62, 186, 215, .22), rgba(62, 186, 215, 0) 70%);
}
.eve-scene.detail .eve-halo { opacity: 1; animation: eve-respire 9s ease-in-out infinite; }
@keyframes eve-respire {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.07); }
}

.eve-dm {
  flex: 1 1 56%; max-width: 760px; min-width: 0; position: relative;
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #0a1f30;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: aspect-ratio .4s ease;
}
.eve-dm.vide { aspect-ratio: 16 / 5; }
/* Bien sans photo : le cadre reste vide. Sélecteurs assez précis pour battre
   la règle de fondu croisé ci-dessous, sans !important. */
.eve-dm.vide .eve-dm-img,
.eve-detail.b .eve-dm.vide .eve-dm-img2 { opacity: 0; }
.eve-dm-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; transition: opacity .8s ease;
}
.eve-dm-img2 { opacity: 0; }
.eve-detail.b .eve-dm-img { opacity: 0; }
.eve-detail.b .eve-dm-img2 { opacity: 1; }
.eve-dm-cpt {
  position: absolute; top: 14px; right: 16px; margin: 0;
  background: rgba(7, 24, 38, .66); color: #dff0f5;
  font-size: .74rem; padding: 4px 10px; border-radius: 999px;
}
.eve-dm-cpt:empty { display: none; }
.eve-dm-points {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 6px;
}
.eve-dm-point {
  width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .38);
  transition: width .35s ease, background .35s ease;
}
.eve-dm-point.on { width: 20px; background: #7fd4e8; }

.eve-di { flex: 0 1 390px; max-width: 420px; min-width: 0; }
.eve-di-titre {
  font-family: var(--font-head); font-size: 2rem; line-height: 1.12; color: #fff; margin: 0;
}
.eve-di-ref { margin: 6px 0 0; font-size: .8rem; letter-spacing: .04em; color: #8fb3c2; }
.eve-prix {
  font-family: var(--font-head); font-size: 2.5rem; line-height: 1;
  color: #7fd4e8; margin: 10px 0 18px;
}
.eve-di-carac { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.eve-puce-energie { border-color: rgba(127, 212, 232, .45); background: rgba(62, 186, 215, .12); }
.eve-di-desc {
  font-size: .9rem; line-height: 1.6; color: #b9d3de; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.eve-di-voir { display: inline-block; color: #6fd2ea; font-size: .92rem; font-weight: 600; }

@media (max-width: 900px) {
  .eve-detail {
    flex-direction: column; justify-content: flex-start; gap: 20px;
    padding: 64px 16px 24px;
  }
  .eve-dm { flex: none; width: 100%; max-width: 560px; }
  .eve-di { flex: none; width: 100%; max-width: 560px; text-align: center; }
  .eve-di-titre { font-size: 1.4rem; }
  .eve-prix { font-size: 1.9rem; margin: 8px 0 14px; }
  .eve-di-carac { justify-content: center; }
  .eve-di-desc { -webkit-line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .eve-halo { animation: none; }
  .eve-detail { transition: opacity .2s ease; transform: none; }
  .eve-detail.on { transform: none; }
}

/* Moins de 3 cartes, ou mouvement réduit : rangée simple, sans rotation. */
.eve-scene.plat .eve-cyl { perspective: none; overflow-x: auto; }
.eve-scene.plat .eve-axe {
  position: static; width: auto; height: 100%; margin: 0; min-width: 100%;
  transform: none; transform-style: flat;
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px;
}
.eve-scene.plat .eve-cy {
  position: relative; inset: auto; flex: 0 0 var(--eve-l);
  width: var(--eve-l); height: var(--eve-h);
  opacity: 1 !important; transform: none !important;
}
.eve-scene.plat .eve-cy.on { transform: scale(1.03) !important; }

/* Au-dela de six biens, grille a defilement libre : un cylindre de vingt
   cartes est illisible. Meme habillage, molette, doigt et fleches. */
.eve-scene.grille .eve-cyl { perspective: none; overflow-x: hidden; overflow-y: auto; }
.eve-scene.grille .eve-cyl:focus { outline: none; }
.eve-scene.grille .eve-axe {
  position: static; width: auto; height: auto; min-width: 0; margin: 0;
  transform: none; transform-style: flat;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--eve-l), 1fr));
  align-content: start; justify-content: center; gap: 16px; padding: 4px 22px 24px;
}
.eve-scene.grille .eve-cy {
  position: relative; inset: auto; width: auto; height: var(--eve-h);
  opacity: 1 !important; transform: none !important; cursor: pointer;
}
.eve-scene.grille .eve-cy:hover { border-color: rgba(255, 255, 255, .3); }
.eve-scene.grille .eve-cy.on {
  transform: scale(1.03) !important;
  border-color: rgba(127, 212, 232, .75);
  box-shadow: 0 0 0 1px rgba(127, 212, 232, .35), 0 30px 70px rgba(0, 0, 0, .55);
}

@media (max-width: 720px) {
  .eve-scene-tete { padding: 12px 14px; gap: 8px; }
  .eve-scene-marque { font-size: 1.05rem; }
  .eve-total { font-size: .74rem; }
  .eve-scene.grille .eve-axe { gap: 12px; padding: 4px 14px 18px; }
  .eve-cy-ref { font-size: .64rem; padding: 2px 7px; top: 8px; left: 9px; }
  .eve-scene-simple { font-size: .76rem; padding: 6px 11px; }
  .eve-scene-info { min-height: 118px; padding: 0 14px 18px; }
  .eve-scene-info h3 { font-size: 1.25rem; margin-bottom: 9px; }
  .eve-puce { min-width: 70px; padding: 6px 11px; }
  .eve-puce dd { font-size: .86rem; }
}

@media (max-width: 560px) {
  /* Sur un petit ecran, le nombre de biens est plus utile que la marque,
     deja presente partout ailleurs sur le site. */
  .eve-scene-marque { display: none; }
  .eve-appel { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .eve-panneau { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 86vh; padding: 16px 14px 18px; }
  .eve-code { font-size: 2.2rem; }
}

/* ---------- Annonces momentanément indisponibles ----------
   Affiché par `js/ui.js` quand `/api/biens` échoue. Il remplace les listes
   vides : un « aucun bien ne correspond » serait faux, ce n'est pas la
   recherche qui ne donne rien. Décision du 21/10/2026 : plus jamais d'annonces
   figées servies à la place des vraies. */
.api-down {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  padding: 14px 20px;
  background: #fdf3e3;
  border-bottom: 2px solid #c88a2e;
  color: #6b4a14;
  font-size: .92rem;
  line-height: 1.45;
}
.api-down strong { font-weight: 700; }
.api-down-tel {
  margin-left: auto;
  color: #6b4a14;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}
body.api-indisponible .empty-state { display: none; }

@media (max-width: 600px) {
  .api-down { padding: 12px 16px; font-size: .86rem; }
  .api-down-tel { margin-left: 0; }
}
