/* =========================================================================
   Thème VSX BÂTIMENTS — minimaliste (inspiration Apple / Tesla)
   Blanc, typographie large, visuels plein cadre, un seul accent (noir).
   ========================================================================= */
.theme-batiments {
  --bt-ink: #171a1f; --bt-muted: #5c6370; --bt-soft: #f4f5f7; --bt-line: #e6e8ec;
  --header-h: 88px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--bt-ink); background: #fff; -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
.theme-batiments a { color: inherit; }
.theme-batiments h1, .theme-batiments h2, .theme-batiments h3 { color: var(--bt-ink); letter-spacing: -.02em; }

/* Bandeaux */
.bt-draft { background: #b8860b; color: #fff; text-align: center; padding: 7px 14px; font-size: 12.5px; font-weight: 600; }
.bt-announce { background: var(--bt-ink); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 500; }

/* En-tête : transparent puis flouté au défilement */
.bt-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); transition: box-shadow .3s, background .3s; }
.bt-header.is-scrolled { background: rgba(255,255,255,.86); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.bt-home .bt-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bt-header-row { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.bt-logo { display: inline-flex; align-items: center; text-decoration: none; justify-self: start; }
.bt-logo img { height: 72px; width: auto; display: block; }
.bt-logo span { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.bt-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bt-nav > ul > li { position: relative; }
.bt-nav > ul > li > a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.bt-nav > ul > li > a:hover, .bt-nav > ul > li.is-active > a { background: rgba(23,26,31,.06); }
.bt-sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding-top: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.bt-sub ul { display: grid !important; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 4px !important; padding: 12px !important; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04); }
.bt-sub a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; }
.bt-sub a:hover { background: var(--bt-soft); }
.bt-sub img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.bt-nav li.has-children:hover .bt-sub, .bt-nav li.has-children:focus-within .bt-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.bt-nav-mobile { display: none; }
.bt-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.bt-icon { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--bt-ink); text-decoration: none; }
.bt-icon:hover { background: rgba(23,26,31,.06); }
.bt-cart span { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bt-ink); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.bt-cta { margin-left: 6px; padding: 9px 18px; border-radius: 999px; background: var(--bt-ink); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.bt-cta:hover { opacity: .85; }
.bt-burger { display: none; }

/* Boutons et liens */
.bt-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 48px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--bt-ink); color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; transition: opacity .2s, transform .1s; cursor: pointer; }
.bt-btn:hover { opacity: .86; }
.bt-btn:active { transform: scale(.985); }
.bt-btn-ghost { background: rgba(255,255,255,.8); color: var(--bt-ink) !important; box-shadow: inset 0 0 0 1px rgba(23,26,31,.14); backdrop-filter: blur(10px); }
.bt-btn-light { background: #fff; color: var(--bt-ink) !important; }
.bt-btn-sm { min-width: 0; height: 38px; padding: 0 18px; font-size: 14px; }
.theme-batiments .bt-link { color: #0a66d6; font-weight: 500; text-decoration: none; }
.theme-batiments .bt-link:hover { text-decoration: underline; }
.bt-link-lg { font-size: 18px; }
.bt-center { text-align: center; }

/* Sections */
.bt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.bt-section { padding: 110px 0; }
.bt-soft { background: var(--bt-soft); }
.bt-dark { background: #0d0f12; color: #fff; }
.bt-dark .bt-h2, .bt-dark h3 { color: #fff; }
.bt-dark .bt-lead, .bt-dark .bt-eyebrow { color: #a3a9b3; }
.bt-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-muted); }
.bt-h2 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.bt-lead { margin: 18px 0 0; max-width: 680px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: var(--bt-muted); }
.bt-final .bt-lead, .bt-center .bt-lead { margin-left: auto; margin-right: auto; }

/* Apparition douce */
.bt-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.bt-reveal.is-in { opacity: 1; transform: none; }

/* Héros 3D plein écran */
.bt-home .bt-main { margin-top: calc(-1 * var(--header-h)); }
.bt-hero { position: relative; height: 100vh; min-height: 620px; max-height: 1100px; overflow: hidden;
  background: radial-gradient(130% 90% at 50% 15%, #ffffff 0%, #eef0f3 55%, #dfe3e8 100%); }
.bt-hero-3d { position: absolute; inset: 18% 0 0; }
.bt-hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.bt-hero-copy { position: relative; z-index: 2; text-align: center; padding: calc(var(--header-h) + 8vh) 22px 0; max-width: 980px; margin: 0 auto; }
.bt-hero h1 { margin: 0; font-size: clamp(40px, 6.6vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.bt-hero-copy p { margin: 18px auto 0; max-width: 640px; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.45; color: var(--bt-muted); }
.bt-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.bt-hero-figures { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 56px; margin: 0; padding: 0 22px; list-style: none; }
.bt-hero-figures li { text-align: center; }
.bt-hero-figures strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.bt-hero-figures span { display: block; font-size: 12.5px; color: var(--bt-muted); max-width: 170px; margin-top: 2px; }

/* Gamme */
.bt-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 54px; }
.bt-model { background: var(--bt-soft); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.bt-model-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.bt-model-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bt-model:hover .bt-model-img img { transform: scale(1.04); }
.bt-model-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bt-model-cat { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-muted); }
.bt-model h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; }
.bt-model h3 a { text-decoration: none; }
.bt-model-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.bt-model-specs span { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #fff; }
.bt-model-price { margin: 16px 0 0; font-size: 14px; color: var(--bt-muted); }
.bt-model-price strong { font-size: 19px; color: var(--bt-ink); white-space: nowrap; }
.bt-model-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 20px; }

/* Bloc configurateur (sombre) */
.bt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 50px; }
.bt-split-3d { height: 520px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 20%, #2a2e35 0%, #16181c 70%); overflow: hidden; position: relative; }
.bt-split-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.bt-checks { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; gap: 12px; }
.bt-checks li { position: relative; padding-left: 28px; font-size: 16px; color: #d6d9de; }
.bt-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; }

/* Savoir-faire */
.bt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 54px 0 40px; }
.bt-tile { padding: 30px 26px; border-radius: 22px; background: var(--bt-soft); }
.bt-tile-n { font-size: 13px; font-weight: 600; color: var(--bt-muted); }
.bt-tile h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 600; }
.bt-tile p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bt-muted); }

/* Réalisations */
.bt-refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 54px; }
.bt-ref { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; }
.bt-ref img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bt-ref figcaption { padding: 18px 22px 22px; }
.bt-ref strong { display: block; font-size: 17px; }
.bt-ref span { display: block; margin-top: 4px; font-size: 14px; color: var(--bt-muted); }
.bt-final { padding: 130px 0 140px; }
.bt-center-actions { justify-content: center; }

/* Pied de page */
.bt-footer { background: var(--bt-soft); padding: 64px 0 28px; font-size: 14px; color: var(--bt-muted); }
.bt-footer-grid { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.bt-footer strong { color: var(--bt-ink); font-size: 16px; }
.bt-footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--bt-ink); }
.bt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bt-footer a { text-decoration: none; }
.bt-footer a:hover { color: var(--bt-ink); text-decoration: underline; }
.bt-footer p { margin: 10px 0 0; line-height: 1.55; }
.bt-footer-contact { margin-top: 18px !important; }
.bt-footer-bottom { max-width: 1240px; margin: 48px auto 0; padding: 22px 28px 0; border-top: 1px solid var(--bt-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12.5px; }
.bt-flash { margin-top: 14px; }

/* Composants communs de la boutique : accent noir, coins arrondis */
.theme-batiments .btn-primary, .theme-batiments .btn.btn-primary { background: var(--bt-ink); border-color: var(--bt-ink); border-radius: 999px; color: #fff !important; }
.theme-batiments a.btn-ghost, .theme-batiments .btn-ghost { color: var(--bt-ink) !important; }
.theme-batiments .btn { border-radius: 999px; }
.theme-batiments .card { border-radius: 20px; border-color: var(--bt-line); }
.theme-batiments .page-header { background: none; border: 0; padding-top: 48px; }
.theme-batiments .page-header h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.03em; }
.theme-batiments .bt-configure-cta { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 16px 18px; border-radius: 16px; background: var(--bt-soft); text-decoration: none; }
.theme-batiments .bt-configure-cta strong { display: block; font-size: 15px; }
.theme-batiments .bt-configure-cta small { color: var(--bt-muted); }
.theme-batiments .bt-configure-cta svg { flex: none; }

/* ---------- Pages vitrine (.lp-…), reprises du thème VSX en version noire ---------- */
.theme-batiments .lp-page { --lp-ink: #171a1f; --lp-muted: #5c6370; --lp-soft: #f4f5f7; color: var(--lp-ink); padding-bottom: 40px; }
.theme-batiments .lp-crumbs { padding-top: 14px; font-size: 13px; color: var(--lp-muted); }
.theme-batiments .lp-crumbs a { color: var(--lp-muted); }
.theme-batiments .lp-page .container, .theme-batiments .lp-page .lp-wrap { max-width: 1120px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.theme-batiments .lp-hero { text-align: center; padding: 64px 0 40px; }
.theme-batiments .lp-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted); }
.theme-batiments .lp-hero h1, .theme-batiments .lp-hero h2, .theme-batiments .lp-section h2 { margin: 0; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; color: var(--lp-ink); }
.theme-batiments .lp-lead { margin: 18px auto 0; max-width: 720px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--lp-muted); }
.theme-batiments .lp-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.theme-batiments .lp-jump a { padding: 9px 20px; border-radius: 999px; background: var(--lp-soft); color: var(--lp-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
.theme-batiments .lp-jump a:hover { background: #e8e9ec; }
.theme-batiments .lp-section { padding: 80px 0 28px; scroll-margin-top: 90px; }
.theme-batiments .lp-section h2 { font-size: clamp(30px, 4.2vw, 50px); text-align: center; }
.theme-batiments .lp-section .lp-eyebrow, .theme-batiments .lp-section .lp-lead { text-align: center; }
.theme-batiments .lp-section .lp-lead { margin-bottom: 44px; }
.theme-batiments .lp-section + .lp-section { border-top: 1px solid var(--bt-line); }
.theme-batiments .lp-section p, .theme-batiments .lp-section li { line-height: 1.6; }
.theme-batiments .lp-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 44px auto 0; padding: 0; list-style: none; }
.theme-batiments .lp-perks li { padding: 24px 18px; border-radius: 20px; background: var(--lp-soft); text-align: center; }
.theme-batiments .lp-perks strong { display: block; font-size: 17px; color: var(--lp-ink); }
.theme-batiments .lp-perks span { display: block; margin-top: 4px; font-size: 14px; color: var(--lp-muted); }
.theme-batiments .lp-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.theme-batiments .lp-level { padding: 34px 34px 30px; border-radius: 26px; background: var(--lp-soft); }
.theme-batiments .lp-level .lp-step { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--lp-muted); }
.theme-batiments .lp-level h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.theme-batiments .lp-level p { margin: 0 0 16px; font-size: 17px; line-height: 1.5; color: var(--lp-muted); }
.theme-batiments .lp-level ul { margin: 0; padding: 0; list-style: none; }
.theme-batiments .lp-level li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid #e3e4e8; font-size: 16px; }
.theme-batiments .lp-level li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--lp-ink); font-weight: 800; }
.theme-batiments .lp-spot { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; padding: 44px 50px; border-radius: 30px; background: var(--lp-soft); overflow: hidden; }
.theme-batiments .lp-spot h2 { text-align: left; font-size: clamp(28px, 3.8vw, 44px); }
.theme-batiments .lp-spot .lp-eyebrow { text-align: left; }
.theme-batiments .lp-spot p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--lp-muted); }
.theme-batiments .lp-spot img { width: 100%; max-height: 400px; object-fit: cover; margin: 0; border-radius: 20px; }
.theme-batiments .lp-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.theme-batiments .lp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.theme-batiments .lp-spot .lp-actions { justify-content: flex-start; }
.theme-batiments .lp-btn { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--bt-ink); color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; transition: opacity .2s; }
.theme-batiments .lp-btn:hover { opacity: .86; }
.theme-batiments .lp-link { color: #0a66d6; font-size: 17px; text-decoration: none; }
.theme-batiments .lp-link:hover { text-decoration: underline; }
.theme-batiments .lp-video { max-width: 980px; margin: 0 auto; }
.theme-batiments .lp-page img { border-radius: 20px; }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .bt-models, .bt-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-hero-figures { gap: 28px; }
}
@media (max-width: 900px) {
  .theme-batiments { --header-h: 72px; }
  .bt-header-row { grid-template-columns: 1fr auto; padding: 0 16px; }
  .bt-burger { display: inline-grid; }
  .bt-cta { padding: 8px 14px; font-size: 13px; }
  .bt-nav { position: fixed; inset: var(--bt-nav-top, var(--header-h)) 0 0; z-index: 70; background: #fff; padding: 18px 22px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .bt-menu-open .bt-nav { opacity: 1; visibility: visible; transform: none; }
  .bt-menu-open { overflow: hidden; }
  /* Le flou (backdrop-filter) de l'en-tête capturerait le menu fixe : on le retire quand le menu est ouvert */
  .bt-menu-open .bt-header { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
  .bt-nav ul { flex-direction: column; gap: 0; }
  .bt-nav > ul > li > a { padding: 16px 4px; font-size: 22px; font-weight: 600; border-radius: 0; border-bottom: 1px solid var(--bt-line); }
  .bt-nav > ul > li > a:hover { background: none; }
  .bt-sub { position: static; transform: none; opacity: 1; visibility: visible; padding: 6px 0 10px; }
  .bt-sub ul { grid-template-columns: 1fr; box-shadow: none; padding: 0 !important; }
  .bt-nav li.has-children:hover .bt-sub { transform: none; }
  .bt-nav-mobile { display: block; }
  .bt-section { padding: 76px 0; }
  .bt-wrap { padding: 0 16px; }
  .bt-split { grid-template-columns: 1fr; gap: 34px; }
  .bt-split-3d { height: 340px; }
  .bt-hero { min-height: 640px; }
  .bt-hero-3d { inset: 34% 0 70px; }
  .bt-hero-figures { gap: 18px; bottom: 22px; }
  .bt-hero-figures li:nth-child(n+4) { display: none; }
  .bt-hero-figures strong { font-size: 18px; }
  .bt-hero-figures span { font-size: 11px; }
  .bt-footer-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; gap: 30px; }
  .bt-footer-about { grid-column: 1 / -1; }
  .bt-footer-bottom { padding: 20px 16px 0; flex-direction: column; }
  .theme-batiments .lp-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-batiments .lp-levels, .theme-batiments .lp-spot { grid-template-columns: 1fr; }
  .theme-batiments .lp-spot { padding: 30px 22px; }
  .theme-batiments .lp-section { padding-top: 54px; }
}
@media (max-width: 600px) {
  .bt-models, .bt-refs, .bt-tiles { grid-template-columns: 1fr; }
  .bt-btn { min-width: 0; width: 100%; max-width: 340px; }
  .bt-hero-actions { flex-direction: column; align-items: center; }
  .bt-logo img { height: 58px; }
  .bt-actions .bt-icon:not(.bt-burger):not(.bt-cart) { display: none; }
}

/* Bâtiment en situation (descriptions produits) */
.theme-batiments .bt-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0 0 26px; }
.theme-batiments .bt-scenes figure { margin: 0; border-radius: 18px; overflow: hidden; background: #f4f5f7; }
.theme-batiments .bt-scenes img { display: block; width: 100%; aspect-ratio: 18 / 11; object-fit: cover; margin: 0; border-radius: 0; }
.theme-batiments .bt-scenes figcaption { padding: 10px 14px 12px; font-size: 13px; font-weight: 600; color: #3a3d42; }
