/* ================= Écran 3 : studio — mise en page d'un configurateur automobile (téléphone d'abord) =================
   En-tête minimal ; grand visuel (carrousel de vues, points d'intérêt) ; une colonne de choix qui défile ;
   une barre fixe en bas avec le récapitulatif, le prix et le bouton vert « Contactez-nous ». Fond blanc, cartes sans ombre. */

#ecran-studio { background: var(--blanc); overflow: hidden; }
.studio { position: absolute; inset: 0; overflow: clip; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }

/* ---------- corps : visuel + colonne ---------- */
.studio-corps { min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: clip; }
.studio-visuel { flex: none; display: flex; flex-direction: column; min-width: 0; }
.studio-scene { position: relative; height: 45vh; min-height: 260px; overflow: hidden; contain: paint; background: #eef1f3; }
.scene-studio, .plan-studio { position: absolute; inset: 0; touch-action: none; }
.scene-studio canvas { display: block; width: 100%; height: 100%; outline: none; }
.overlay-studio, .points-interet { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plan-studio { background: #f6f5f1; overflow: hidden; contain: strict; }

/* carrousel : flèches sur les bords, points en bas au centre */
.fleche-vue { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--noir); display: grid; place-items: center; opacity: .9; transition: opacity .2s, background-color .2s; }
.fleche-vue:hover { background: var(--blanc); opacity: 1; }
.fleche-vue.precedente { left: 12px; } .fleche-vue.suivante { right: 12px; }
.carrousel-points { position: absolute; z-index: 5; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; }
.point-vue { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(22,22,22,.25); cursor: pointer; transition: background-color .2s, width .2s; }
.point-vue[aria-current="true"] { background: var(--noir); }
.point-vue:disabled { background: rgba(22,22,22,.1); cursor: default; }
@media (pointer: coarse) { .fleche-vue { display: none; } }

/* action secondaire sombre, en bas à gauche du visuel */
/* boussole, en bas à gauche du visuel : tourne avec la vue, la pointe rouge montre le nord */
.boussole { position: absolute; z-index: 5; left: 10px; bottom: 8px; width: 44px; height: 44px; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(22,22,22,.18)); }
.boussole svg { width: 100%; height: 100%; display: block; }
.boussole-fond { fill: rgba(255,255,255,.92); }
.boussole-nord { fill: #e5484d; }
.boussole-sud { fill: #b9bcbf; }
.boussole-n { font: 800 7px var(--titre); fill: var(--noir); }
.boussole-axe { fill: var(--blanc); stroke: var(--noir); stroke-width: 1; }
#boussole-aiguille { transform-origin: 24px 24px; }
.btn-sombre { border: 0; border-radius: 8px; background: rgba(22,22,22,.82); color: var(--blanc); font: 700 13px var(--corps); padding: 9px 14px; cursor: pointer; }
.btn-sombre:hover { background: var(--noir); }

/* menu « … » discret */
.menu-studio { position: absolute; z-index: 6; top: 10px; right: 10px; }
.outil { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.85); color: var(--noir); display: grid; place-items: center; }
.outil:hover { background: var(--blanc); }
.menu-liste { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 250px; display: grid; gap: 2px; background: var(--blanc); border-radius: 12px; box-shadow: var(--ombre); padding: 8px; }
.menu-heure { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px; font: 600 14px var(--corps); }
.menu-heure input { accent-color: var(--noir); }
.menu-heure output { font-weight: 700; min-width: 44px; text-align: right; }
.menu-action { border: 0; background: none; text-align: left; padding: 11px 8px; border-radius: 8px; font: 600 15px var(--corps); cursor: pointer; color: var(--noir); }
.menu-action:hover { background: #f2f2f2; }

/* points d'intérêt « Façade + » : un point, un trait fin, un libellé (cachés au téléphone, remplacés par des pastilles) */
.points-interet { z-index: 4; transition: opacity .2s; }
.points-interet.masques { opacity: 0; }
.points-interet.masques .point-interet { pointer-events: none; }
.point-interet { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; display: none; border: 0; background: none; padding: 0; cursor: pointer; pointer-events: auto; will-change: transform; }
.point-interet.hors-champ { visibility: hidden; }
.point-interet::before { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 2px rgba(22,22,22,.35); }
.point-interet::after { content: ""; position: absolute; left: 5.5px; bottom: 10px; width: 1px; height: 30px; background: rgba(255,255,255,.95); }
.point-libelle { position: absolute; bottom: 40px; left: 6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(255,255,255,.94); color: var(--noir); font: 700 13px var(--corps); padding: 5px 5px 5px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(22,22,22,.12); }
.point-plus { width: 20px; height: 20px; border-radius: 50%; background: var(--noir); color: var(--blanc); display: grid; place-items: center; font: 700 14px/1 var(--corps); }
.point-interet:hover .point-libelle { background: var(--blanc); }

.pastilles-atouts { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 4px; scrollbar-width: none; }
.pastilles-atouts::-webkit-scrollbar { display: none; }
.pastille-atout { flex: none; border: 1px solid #e0e0e0; background: var(--blanc); border-radius: 999px; padding: 8px 14px; font: 700 13px var(--corps); color: var(--noir); cursor: pointer; }
.pastille-atout::after { content: " +"; }

.interrupteur-2d3d { position: absolute; z-index: 6; left: 10px; top: 10px; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(22,22,22,.12); }
.interrupteur-2d3d button { border: 0; background: none; min-width: 44px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: 700 13px var(--corps); color: var(--gris-4a); transition: background-color .2s, color .2s; }
.interrupteur-2d3d button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }
.interrupteur-2d3d button:focus-visible { outline: 3px solid var(--vert-doux); outline-offset: 1px; }
.studio.en-visite .interrupteur-2d3d { display: none; }
.plan-commandes { position: absolute; z-index: 5; left: 12px; top: 56px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lien-plan { border: 0; background: rgba(255,255,255,.94); border-radius: 999px; padding: 8px 14px; font: 700 13px var(--corps); cursor: pointer; }
.segment { display: inline-flex; background: rgba(255,255,255,.94); border-radius: 999px; padding: 3px; gap: 2px; }
.segment button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; font: 700 13px var(--corps); color: var(--gris-4a); cursor: pointer; white-space: nowrap; }
.segment button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }

.emplacement-aide { position: absolute; z-index: 6; left: 50%; top: 56px; transform: translateX(-50%); max-width: calc(100% - 100px); text-align: center;
  background: rgba(22,22,22,.86); color: var(--blanc); font: 600 14px var(--corps); padding: 10px 16px; border-radius: 12px; }
.pastille-distance { position: absolute; left: 0; top: 0; background: var(--rouge); color: var(--blanc); font: 700 12px var(--corps); padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); white-space: nowrap; }

/* ---------- la colonne ---------- */
.colonne { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--blanc); }
.colonne-defile { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 110px; scroll-behavior: smooth; }
.col-section { padding-top: 44px; display: grid; gap: 16px; }
#section-maison { padding-top: 18px; }
.col-section h2 { font: 700 24px var(--titre); text-align: center; letter-spacing: -0.01em; }
.col-nom { font: 800 40px var(--titre); text-align: center; letter-spacing: -0.02em; line-height: 1; }
.col-texte { font-size: 15px; color: var(--gris-4a); text-align: center; }
.col-note { font-size: 12px; color: var(--gris-4a); text-align: center; }

.segment-surface { display: grid; grid-template-columns: repeat(5, 1fr); background: #f4f4f4; border-radius: 8px; padding: 4px; gap: 4px; }
.segment-surface button { border: 0; background: none; border-radius: 6px; padding: 9px 0; cursor: pointer; font: 600 14px var(--corps); color: var(--gris-4a); transition: background-color .2s, color .2s; }
.segment-surface button strong { font-weight: 700; }
.segment-surface button span { font-size: 11px; }
.segment-surface button[aria-checked="true"] { background: var(--blanc); color: var(--noir); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.chiffres-cles { display: grid; grid-template-columns: repeat(3, 1fr); background: #f4f4f4; border-radius: 8px; padding: 16px 8px; text-align: center; }
.chiffre-valeur { font: 700 clamp(16px, 4.6vw, 20px) var(--corps); color: var(--noir); line-height: 1.15; }
.chiffre-valeur span { font-size: 13px; font-weight: 600; }
.chiffre-libelle { font-size: 12px; color: var(--gris-4a); margin-top: 2px; }

.cartes-variantes { display: grid; gap: 10px; }
.carte-variante { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--blanc); border: 1px solid #dcdcdc; border-radius: 8px; padding: 16px 18px; transition: border-color .2s, box-shadow .2s; }
.carte-variante:hover { border-color: #9a9a9a; }
.carte-variante.choisie { border-color: var(--noir); box-shadow: inset 0 0 0 2px var(--noir); }
.variante-gauche, .variante-droite { display: grid; gap: 2px; }
.variante-droite { text-align: right; }
.variante-gauche strong { font: 700 16px var(--corps); color: var(--noir); }
.variante-gauche span { font-size: 13px; color: var(--gris-4a); }
.variante-droite strong { font: 700 15px var(--corps); color: var(--noir); white-space: nowrap; }
.variante-droite strong.inclus, .inclus { color: var(--vert-fonce); }
.a-valider-discret { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8a6d00; }
.a-valider { display: inline-block; background: var(--jaune-pale); color: #6b5400; font: 700 10px var(--titre); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; vertical-align: middle; }
.ligne-chevron { display: flex; justify-content: space-between; align-items: center; border: 0; border-top: 1px solid #ededed; border-bottom: 1px solid #ededed; background: none; padding: 14px 2px; font: 600 15px var(--corps); color: var(--noir); cursor: pointer; }

.pastilles-teintes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.teinte { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--teinte); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .2s; }
.teinte[aria-checked="true"] { outline-color: var(--noir); }
.teinte-choisie { text-align: center; font-size: 15px; display: flex; justify-content: center; gap: 10px; }
.teinte-choisie strong { color: var(--noir); }
.en-savoir-plus { text-align: center; }
.en-savoir-plus summary { cursor: pointer; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.en-savoir-plus summary::-webkit-details-marker { display: none; }
.en-savoir-plus p { font-size: 14px; color: var(--gris-4a); margin-top: 10px; text-align: left; }
.en-savoir-plus .interrupteur { margin-top: 14px; }

.interrupteur { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 700 14px var(--corps); }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur-piste { width: 38px; height: 22px; border-radius: 999px; background: #d4d4d4; position: relative; transition: background-color .2s; }
.interrupteur-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--blanc); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.interrupteur input:checked + .interrupteur-piste { background: var(--noir); }
.interrupteur input:checked + .interrupteur-piste::after { transform: translateX(16px); }
.interrupteur input:focus-visible + .interrupteur-piste { outline: 3px solid var(--vert-doux); outline-offset: 2px; }

.col-faisa { display: flex; justify-content: center; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; min-height: 26px; text-align: left; }
.col-faisa .pictogramme { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; }
.col-faisa.ok { color: var(--vert-fonce); } .col-faisa.ok .pictogramme { background: var(--vert-clair); }
.col-faisa.attention { color: #9a5b00; } .col-faisa.attention .pictogramme { background: #ffe6c7; }
.lien-detail { justify-self: center; border: 0; background: none; padding: 4px 0; font: 700 14px var(--corps); color: var(--noir); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.btn-large { width: 100%; min-height: 52px; }
.btn-secondaire { border-width: 1.5px; }

.recap { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.recap dt { color: var(--gris-4a); } .recap dd { margin: 0; text-align: right; color: var(--noir); font-weight: 600; }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #ededed; padding-top: 14px; font-size: 15px; }
.recap-total strong { font: 700 24px var(--corps); color: var(--noir); display: grid; justify-items: end; }

/* ---------- barre fixe en bas ---------- */
.barre-bas, .barre-emplacement { position: relative; z-index: 9; background: var(--blanc); box-shadow: 0 -1px 0 #ececec; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
.barre-bas { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom cta" "prix cta"; column-gap: 12px; align-items: center; }
.barre-recap { grid-area: nom; min-width: 0; }
.barre-recap strong { font: 800 15px var(--titre); color: var(--noir); }
.barre-recap span { display: none; }
.barre-prix { grid-area: prix; justify-self: start; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; font: 700 18px var(--corps); color: var(--noir); cursor: pointer; }
.barre-bas .btn-principal { grid-area: cta; min-height: 48px; padding: 12px 20px; font-size: 16px; }
.barre-emplacement { display: grid; }

/* mode « Ajuster l'emplacement » : plein écran */
.studio.mode-emplacement .colonne, .studio.mode-emplacement .pastilles-atouts, .studio.mode-emplacement .fleche-vue,
.studio.mode-emplacement .carrousel-points, .studio.mode-emplacement .menu-studio { display: none; }
.studio.mode-emplacement .studio-visuel { flex: 1; }
.studio.mode-emplacement .studio-scene { height: 100%; }

/* ---------- « Voir le détail » : panneau depuis le bas (téléphone) ---------- */
.detail-fond { position: fixed; inset: 0; z-index: 40; background: rgba(22,22,22,0); transition: background-color .25s; }
.detail-fond.ouvert { background: rgba(22,22,22,.4); }
.detail {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column;
  background: var(--blanc); border-radius: 22px 22px 0 0; box-shadow: var(--ombre);
  transform: translateY(100%); transition: transform .25s ease;
}
.detail-fond.ouvert .detail { transform: none; }
.detail-poignee { padding: 10px 0 0; display: grid; place-items: center; touch-action: none; cursor: grab; }
.detail-poignee span { width: 44px; height: 5px; border-radius: 3px; background: #d4d4d4; }
.detail-tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 4px; touch-action: none; }
.detail-tete h2 { font-size: 22px; }
.detail-fermer { border: 0; background: #f2f2f0; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
.detail-contenu { overflow-y: auto; padding: 4px 20px 30px; display: grid; gap: 26px; overscroll-behavior: contain; }
.detail-bloc { display: grid; gap: 10px; }
.detail-bloc h3 { font-size: 17px; }
.detail-prix, .liste-coches, .liste-non, .liste-points, .liste-pieces { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.detail-prix li, .liste-pieces li, .liste-non li { display: flex; justify-content: space-between; gap: 12px; }
.detail-prix li.total { font-weight: 800; font-size: 16px; padding-top: 6px; }
.detail-prix .montant { font-weight: 700; white-space: nowrap; text-align: right; }
.detail-prix .a-valider { margin-left: 6px; }
.liste-coches li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: 8px; }
.liste-non li span:first-child::before { content: "–"; color: var(--gris-4a); margin-right: 8px; }
.liste-points li { padding-left: 16px; position: relative; line-height: 1.45; }
.liste-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); }
.liste-pieces li.sous-titre { font: 700 11px var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--gris-4a); padding-top: 4px; }
.fourchette { color: var(--gris-4a); white-space: nowrap; }
.detail-lignes { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.detail-lignes dt { color: var(--gris-4a); }
.detail-lignes dd { margin: 0; }
.note { font-size: 12.5px; color: var(--gris-4a); }
.lien { color: var(--vert-fonce); font-weight: 700; font-size: 14px; }

.dialogue { border: 0; border-radius: var(--rayon-carte); padding: 24px; max-width: min(440px, calc(100% - 32px)); box-shadow: var(--ombre); }
.dialogue::backdrop { background: rgba(22,22,22,.45); }
.dialogue h2 { font-size: 22px; margin-bottom: 10px; }
.dialogue p { margin-bottom: 16px; color: var(--gris-4a); }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- plan 2D ---------- */
.plan-2d { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; }
.p2-voisine { fill: none; stroke: #c6cacf; stroke-width: calc(var(--px, .05) * 1); }
.p2-terrain { fill: #ffffff; }
/* avec la photo aérienne : le terrain laisse voir le sol, le reste est voilé ; les lignes restent lisibles */
.p2-image { filter: saturate(.9) contrast(1.05); }
.p2-voile { fill: rgba(246,245,241,.42); pointer-events: none; }
.plan-2d.avec-photo .p2-terrain { fill: rgba(255,255,255,.08); }
.plan-2d.avec-photo .p2-voisine { stroke: rgba(255,255,255,.75); }
.plan-2d.avec-photo .p2-ligne-cote { stroke: #161616; }
.p2-limite { fill: none; stroke: #e5484d; stroke-width: calc(var(--px, .05) * 2.5); stroke-dasharray: calc(var(--px, .05) * 9) calc(var(--px, .05) * 6); }
.p2-maison { cursor: grab; }
.p2-terrasse { stroke: #7a5233; stroke-width: calc(var(--px, .05) * 1); }
.p2-emprise-rdc { fill: none; stroke: #8a8a8a; stroke-width: calc(var(--px, .05) * 1); stroke-dasharray: calc(var(--px, .05) * 5) calc(var(--px, .05) * 4); }
.p2-piece { fill: #ffffff; stroke: none; }
.p2-piece-sejour { fill: #fffaf0; }
.p2-piece-sdb, .p2-piece-wc, .p2-piece-cellier, .p2-piece-technique { fill: #f1f7fb; }
.p2-murs { fill: #3b3d40; }
.p2-viroc { stroke-width: 0.16; stroke-linecap: square; }
.p2-douglas { stroke: #b8794c; stroke-width: 0.16; stroke-dasharray: 0.05 0.03; stroke-linecap: butt; }
.p2-ouverture-fond { fill: #ffffff; }
.p2-vitrage { stroke: #5aa9d6; stroke-width: 0.06; }
.p2-porte { stroke: #3b3d40; stroke-width: 0.1; }
.p2-cloison { stroke: #3b3d40; stroke-width: 0.08; stroke-linecap: square; }
.p2-nom { font: 700 0.38px var(--corps); text-anchor: middle; fill: #2e2e2e; text-transform: uppercase; letter-spacing: 0.02px; }
.p2-surface { font: 400 0.36px var(--corps); text-anchor: middle; fill: #4a4a4a; }
.p2-poignee { cursor: grab; }
.p2-bras { pointer-events: none; stroke: #ff77a9; stroke-width: calc(var(--px, .05) * 2); }
.p2-bouton { fill: #ff77a9; stroke: #fff; stroke-width: calc(var(--px, .05) * 2); }
.p2-fleche { pointer-events: none; fill: none; stroke: #fff; stroke-width: 0.1; }
.p2-ligne-cote { stroke: #161616; stroke-width: calc(var(--px, .05) * 1.2); }
.p2-ligne-cote.distance, .p2-ligne-cote.sous-recul { stroke-dasharray: calc(var(--px, .05) * 5) calc(var(--px, .05) * 3); }
.p2-ligne-cote.sous-recul { stroke: #e5484d; }
.p2-cote { font: 700 0.42px var(--corps); text-anchor: middle; dominant-baseline: middle; fill: #161616; }
.p2-cote.sous-recul { fill: #fff; }
.p2-cote-fond { fill: #fff; rx: 0.15; }
.p2-cote-fond.sous-recul { fill: #e5484d; }


/* ================= Ordinateur : visuel ≈ 66 %, colonne ≈ 34 %, barre fixe sur toute la largeur ================= */
@media (min-width: 900px) {
  .studio-corps { flex-direction: row; }
  .studio-visuel { flex: 1; min-width: 0; }
  .studio-scene { flex: 1; height: auto; min-height: 0; }
  .pastilles-atouts { display: none; }
  .point-interet { display: block; }
  .colonne { flex: none; width: clamp(380px, 34%, 520px); }
  .colonne-defile { padding: 10px 44px 60px; }
  #section-maison { padding-top: 26px; }
  .col-nom { font-size: 48px; }
  .fleche-vue.precedente { left: 20px; } .fleche-vue.suivante { right: 20px; }
  .carrousel-points { bottom: 18px; }
  .boussole { left: 18px; bottom: 14px; width: 52px; height: 52px; }
  .menu-studio { top: 16px; right: 16px; }
  .interrupteur-2d3d { left: 16px; top: 16px; }
  .emplacement-aide { top: 16px; }
  .plan-commandes { left: 20px; top: 64px; }
  .barre-bas { grid-template-columns: 1fr auto auto; grid-template-areas: "nom prix cta"; column-gap: 28px; padding: 14px 28px; }
  .barre-recap { display: grid; gap: 2px; }
  .barre-recap strong { font-size: 17px; }
  .barre-recap span { display: block; font-size: 13px; color: var(--gris-4a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barre-prix { font-size: 22px; }
  .barre-bas .btn-principal { min-width: 220px; }
  .barre-emplacement { justify-items: center; padding: 14px 28px; }
  .barre-emplacement .btn-large { max-width: 380px; }
  /* le détail s'ouvre en tiroir à droite */
  .detail { left: auto; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; transform: translateX(100%); }
  .detail-poignee { display: none; }
  .detail-tete { padding: 26px 28px 6px; }
  .detail-contenu { padding: 6px 28px 34px; }
}

/* tableau « Comparer les maisons » */
.tableau-comparer { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau-comparer th { text-align: left; font: 700 11px var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--gris-4a); padding: 8px 6px; border-bottom: 1px solid #e6e6e6; }
.tableau-comparer td { padding: 11px 6px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.tableau-comparer td:first-child { font-weight: 700; color: var(--noir); }
.tableau-comparer td.prix { text-align: right; white-space: nowrap; font-weight: 700; }
.tableau-comparer th:last-child { text-align: right; }
.tableau-comparer tr:hover td { background: #f7f7f7; }
.tableau-comparer tr.choisie td { background: #f2f2f2; }

/* « Contactez-nous » : vert Greenkub */
.btn-contact { background: #40b983; color: var(--blanc); }
.btn-contact:hover { background: var(--vert-fonce); }
.barre-bas .btn-contact { grid-area: cta; min-height: 48px; padding: 12px 20px; font-size: 16px; }
@media (min-width: 900px) { .barre-bas .btn-contact { min-width: 220px; } }
/* pastille « Tout bois » */
.teinte[data-teinte="bois"] { background: repeating-linear-gradient(90deg, #b8794c 0 4px, #8a5a36 4px 5px, #c48a5c 5px 9px, #3a2a1e 9px 10px); }
.p2-meuble { fill: #ece6dc; stroke: #6b6f73; stroke-width: calc(var(--px, .05) * 1); }
.p2-meuble.p2-tapis { fill: #dfe5e1; stroke: none; }
.p2-meuble-dos { stroke: #3b3d40; stroke-width: calc(var(--px, .05) * 2.2); }

/* ---------- intérieur ---------- */
.col-sous-titre { font: 700 15px var(--corps); color: var(--noir); text-align: center; margin-top: 6px; }
.segment-surface.niveaux { grid-template-columns: repeat(2, 1fr); }
.categories-meubles { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.categories-meubles::-webkit-scrollbar { display: none; }
.categories-meubles button { flex: none; border: 1px solid #dcdcdc; background: var(--blanc); border-radius: 999px; padding: 8px 14px; font: 600 13px var(--corps); color: var(--gris-2f); cursor: pointer; }
.categories-meubles button[aria-selected="true"] { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.grille-meubles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tuile-meuble { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border: 1px solid #dcdcdc; border-radius: 8px; background: var(--blanc); cursor: pointer; font: 600 13px var(--corps); color: var(--noir); transition: border-color .2s; }
.tuile-meuble:hover { border-color: var(--noir); }
.barre-meuble { position: absolute; z-index: 7; left: 0; top: 0; display: flex; gap: 4px; background: var(--noir); border-radius: 999px; padding: 4px; transform: translate(-50%, -100%); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.barre-meuble button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--blanc); cursor: pointer; display: grid; place-items: center; }
.barre-meuble button:hover { background: rgba(255,255,255,.15); }
.commandes-visite { position: absolute; z-index: 7; left: 12px; right: 12px; top: 10px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.commandes-visite > * { pointer-events: auto; }
.aide-visite { background: rgba(22,22,22,.7); color: var(--blanc); font: 600 13px var(--corps); padding: 8px 12px; border-radius: 10px; }
.studio.en-visite .fleche-vue, .studio.en-visite .carrousel-points, .studio.en-visite .points-interet { display: none; }
@media (min-width: 900px) { .commandes-visite { left: 20px; top: 16px; right: 80px; } }

/* finitions : les points forts de chaque niveau, sous son nom */
.points-version { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--gris-4a); }
.points-version li { padding-left: 14px; position: relative; line-height: 1.35; }
.points-version li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--vert); }
.note-version { font-size: 13px; color: var(--gris-4a); background: #f4f4f4; border-radius: 8px; padding: 10px 12px; }
