/* Configurateur façade et ITE de bardagebois.fr : styles isolés sous .bbcfg (couleurs de la base d'Axel). */
@font-face { font-family: 'Hanken'; src: url('hanken-var.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
.bbcfg {
  container-type: inline-size;
  /* couleurs de la base d'Axel (site-local/base-axel-copie) */
  --forest: #1c3a13; --lime: #d3fa99; --snow: #fcfcf7; --stone: #eeeee9; --bois: #c98a4b; --ink: #1b1c17; --ink-60: #62635b;
  --ligne: #d9d9d1; --rouge: #a3261b; --rouge-fond: #fbe9e6; --ambre: #8a5a00; --ambre-fond: #fdf3dc; --bleu: #1f4e79; --bleu-fond: #e8f0f8;
  --rayon: 12px;
}
.bbcfg, .bbcfg * { box-sizing: border-box; }
.bbcfg [hidden] { display: none !important; }
.bbcfg, .bbcfg { margin: 0; background: var(--snow); color: var(--ink); font: 400 15px/1.45 'Hanken', system-ui, sans-serif; }
.bbcfg button, .bbcfg input, .bbcfg select { font: inherit; color: inherit; }
.bbcfg .titre-module, .bbcfg h1 { font-size: 22px; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.bbcfg h2 { font-size: 17px; font-weight: 650; margin: 0 0 10px; }
.bbcfg h3 { font-size: 15px; font-weight: 650; margin: 14px 0 6px; }
.bbcfg .petit { font-size: 13px; color: var(--ink-60); }
.bbcfg .entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ligne); background: #fff; }
.bbcfg .entete .marque { font-weight: 700; color: var(--forest); }
.bbcfg .bandeau { padding: 8px 20px; font-size: 13px; background: var(--ambre-fond); color: var(--ambre); border-bottom: 1px solid #f0dfb8; }
.bbcfg .bandeau[hidden] { display: none; }
.bbcfg .page { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; min-height: calc(100vh - 60px); }
.bbcfg .colonne { border-right: 1px solid var(--ligne); background: #fff; padding: 8px 0 0; display: flex; flex-direction: column; }
.bbcfg .colonne #etapes { flex: 1; padding-bottom: 24px; }
.bbcfg .visuel { position: sticky; top: var(--bbcfg-haut, 0px); height: calc(100vh - var(--bbcfg-haut, 0px)); display: flex; flex-direction: column; background: var(--stone); }
/* étapes */
.bbcfg .etape { border-bottom: 1px solid var(--ligne); padding: 14px 20px; }
.bbcfg .etape > .titre { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.bbcfg .etape > .titre .num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--stone); display: grid; place-items: center; font-weight: 650; font-size: 13px; }
.bbcfg .etape.faite > .titre .num { background: var(--forest); color: var(--lime); }
.bbcfg .etape > .titre .resume { margin-left: auto; font-size: 13px; color: var(--ink-60); text-align: right; max-width: 55%; }
.bbcfg .etape > .corps { padding-top: 12px; }
.bbcfg .etape.fermee > .corps { display: none; }
.bbcfg .choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.bbcfg .choix.large { grid-template-columns: 1fr; }
.bbcfg .carte { border: 1.5px solid var(--ligne); border-radius: var(--rayon); padding: 10px 12px; background: #fff; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.bbcfg .carte:hover { border-color: var(--ink-60); }
.bbcfg .carte:disabled { opacity: .5; cursor: not-allowed; }
.bbcfg .carte.active { border-color: var(--forest); box-shadow: 0 0 0 2px var(--lime) inset; }
.bbcfg .carte .t { font-weight: 600; }
.bbcfg .carte .d { font-size: 13px; color: var(--ink-60); }
.bbcfg .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.bbcfg .badge { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--stone); color: var(--ink-60); white-space: nowrap; }
.bbcfg .badge.hors { background: var(--rouge-fond); color: var(--rouge); }
.bbcfg .badge.champ { background: var(--ambre-fond); color: var(--ambre); }
.bbcfg .ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.bbcfg label.champ { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-60); flex: 1 1 110px; }
.bbcfg label.champ input, .bbcfg label.champ select { padding: 8px 10px; border: 1.5px solid var(--ligne); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
.bbcfg label.champ input:focus, .bbcfg label.champ select:focus { outline: none; border-color: var(--forest); }
.bbcfg .seg { display: inline-flex; border: 1.5px solid var(--ligne); border-radius: 99px; overflow: hidden; }
.bbcfg .seg button { border: 0; background: #fff; padding: 6px 12px; cursor: pointer; font-size: 13.5px; }
.bbcfg .seg button.active { background: var(--forest); color: var(--lime); }
.bbcfg .bouton { border: 1.5px solid var(--forest); background: #fff; color: var(--forest); padding: 8px 14px; border-radius: 99px; cursor: pointer; font-weight: 600; }
.bbcfg .bouton.plein { background: var(--forest); color: var(--lime); }
.bbcfg .bouton:disabled { opacity: .45; cursor: not-allowed; }
.bbcfg .lien { border: 0; background: none; color: var(--forest); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.bbcfg .lien.rouge { color: var(--rouge); }
.bbcfg .facade { border: 1.5px solid var(--ligne); border-radius: var(--rayon); padding: 10px 12px; margin-bottom: 10px; }
.bbcfg .facade.active { border-color: var(--forest); }
.bbcfg .facade .tete { display: flex; align-items: center; gap: 8px; }
.bbcfg .facade .tete input { font-weight: 600; border: 0; border-bottom: 1px dashed var(--ligne); padding: 2px 0; flex: 1; min-width: 0; }
.bbcfg .ouverture { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr) auto; gap: 6px; align-items: end; padding: 6px 0; border-top: 1px dashed var(--ligne); }
.bbcfg .ouverture label.champ { flex: none; }
.bbcfg .ouverture label.champ input, .bbcfg .ouverture label.champ select { padding: 6px 6px; }
/* alertes */
.bbcfg .alerte { border-radius: 10px; padding: 9px 12px; margin: 6px 0; font-size: 13.5px; border-left: 4px solid; }
.bbcfg .alerte .src { display: block; font-size: 12px; opacity: .75; margin-top: 3px; }
.bbcfg .alerte.hors-dtu { background: var(--rouge-fond); border-color: var(--rouge); }
.bbcfg .alerte.hors-champ { background: var(--ambre-fond); border-color: var(--ambre); }
.bbcfg .alerte.attention { background: var(--ambre-fond); border-color: #d8a536; }
.bbcfg .alerte.conseil { background: #eef6e6; border-color: var(--forest); }
.bbcfg .alerte.info { background: var(--bleu-fond); border-color: var(--bleu); }
.bbcfg .erreur { color: var(--rouge); font-size: 13.5px; margin: 4px 0; }
/* visuel */
.bbcfg .onglets { display: flex; gap: 6px; padding: 10px 14px; align-items: center; flex-wrap: wrap; }
.bbcfg .onglets .seg { background: #fff; }
.bbcfg .onglets select { padding: 6px 10px; border-radius: 99px; border: 1.5px solid var(--ligne); background: #fff; }
.bbcfg .zone { position: relative; flex: 1; min-height: 0; }
.bbcfg .zone > * { position: absolute; inset: 0; }
.bbcfg #vue3d canvas { display: block; width: 100%; height: 100%; }
.bbcfg #plan, .bbcfg #decoupe { overflow: auto; padding: 14px; background: #fff; }
.bbcfg #plan svg { width: 100%; height: auto; max-height: 100%; }
.bbcfg .legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-60); padding: 6px 14px 10px; }
.bbcfg .legende i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.bbcfg .cotes3d { position: absolute; left: 14px; bottom: 12px; inset: auto auto 12px 14px; background: rgba(255,255,255,.88); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.bbcfg .chargement { display: grid; place-items: center; color: var(--ink-60); }
/* récapitulatif */
.bbcfg table.nomen { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.bbcfg table.nomen th:first-child, .bbcfg table.nomen td:first-child { width: 44%; overflow-wrap: anywhere; }
.bbcfg table.nomen .petit { font-size: 11px; overflow-wrap: anywhere; }
.bbcfg #recap { overflow-x: auto; }
.bbcfg table.nomen th, .bbcfg table.nomen td { padding: 6px 4px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.bbcfg table.nomen td.q, .bbcfg table.nomen th.q { text-align: right; }
.bbcfg table.nomen tr.titre td { font-weight: 650; background: var(--stone); }
.bbcfg .total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 18px; font-weight: 650; }
.bbcfg .barre { position: sticky; bottom: 0; width: 100%; background: #fff; border-top: 1px solid var(--ligne); padding: 10px 16px; display: flex; gap: 8px; align-items: center; z-index: 5; }
.bbcfg .barre .prix { margin-right: auto; }
.bbcfg .barre .prix b { font-size: 18px; }
.bbcfg .decoupe-barre { display: flex; height: 22px; border: 1px solid var(--ink-60); border-radius: 3px; overflow: hidden; margin: 3px 0 8px; background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); }
.bbcfg .decoupe-barre span { background: #e9c89f; border-right: 1px solid #7a5530; font-size: 10.5px; line-height: 20px; padding: 0 3px; overflow: hidden; white-space: nowrap; }
@container (max-width: 900px) {
.bbcfg .page { grid-template-columns: 1fr; }
.bbcfg .visuel { position: sticky; top: var(--bbcfg-haut, 0px); height: 46vh; z-index: 4; order: -1; border-bottom: 1px solid var(--ligne); }
.bbcfg .colonne { border-right: 0; }
.bbcfg .barre { width: 100%; }
.bbcfg .ouverture { grid-template-columns: repeat(3, 1fr) auto; }
.bbcfg .ouverture .type { grid-column: 1 / -1; }
.bbcfg .etape > .titre .resume { display: none; }
}

@media print {
.bbcfg .barre, .bbcfg .visuel, .bbcfg .entete .actions { display: none; }
}


/* intégré dans une page du thème (titre déjà posé par la page) */
.bbcfg.bbcfg-integre .entete .marque, .bbcfg.bbcfg-integre .entete .titre-module { display: none; }
.bbcfg.bbcfg-integre .entete { padding: 8px 14px; }

/* aide des gestes sur la vue 3D */
.bbcfg .zone > .aide3d { position: absolute; inset: auto 10px 10px auto; margin: 0; max-width: 60%; font-size: 12px; color: var(--ink-60); background: rgba(255,255,255,.85); border-radius: 8px; padding: 4px 8px; pointer-events: none; }

/* écrans tactiles (téléphone, tablette) : cibles de 44 px, champs de 16 px (sinon Safari zoome à la saisie) */
@media (pointer: coarse) {
  .bbcfg label.champ input, .bbcfg label.champ select { font-size: 16px; padding: 10px 10px; min-height: 44px; }
  .bbcfg .facade .tete input, .bbcfg .onglets select { font-size: 16px; min-height: 40px; }
  .bbcfg .seg button { min-height: 40px; padding: 8px 14px; }
  .bbcfg .bouton { min-height: 44px; }
  .bbcfg .carte { min-height: 48px; }
  .bbcfg .lien { padding: 8px 4px; font-size: 14px; }
  .bbcfg .etape > .titre { min-height: 40px; }
}
/* tablette en portrait et téléphone : la vue reste en haut, assez grande pour voir la façade */
@container (max-width: 900px) {
  .bbcfg .visuel { height: min(52vh, 560px); }
  .bbcfg .onglets { padding: 8px 10px; gap: 6px; }
}
@container (max-width: 520px) {
  .bbcfg .visuel { height: 44vh; }
  .bbcfg .ouverture { grid-template-columns: repeat(2, 1fr) auto; }
  .bbcfg .zone > .aide3d { max-width: 80%; font-size: 11px; }
}

/* les champs se rétrécissent avec leur colonne (sinon la fiche d'une façade déborde sur téléphone) */
.bbcfg label.champ { min-width: 0; }
.bbcfg label.champ input, .bbcfg label.champ select { width: 100%; min-width: 0; }
.bbcfg .ouverture { grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)) auto; }
.bbcfg .facade .tete { flex-wrap: wrap; }
.bbcfg .facade .tete input { flex: 1 1 140px; }
.bbcfg .etape, .bbcfg .facade { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 900px) {
  .bbcfg .ouverture { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}
@container (max-width: 520px) {
  .bbcfg .ouverture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbcfg .ouverture .type { grid-column: 1 / -1; }
  .bbcfg .ouverture > .lien { grid-column: 1 / -1; justify-self: end; }
}

/* écran bas (téléphone en paysage) : la vue n'est plus collée en haut, elle défile avec la page */
@media (max-height: 560px) {
  .bbcfg .visuel { position: relative; top: auto; height: calc(100vh - 64px); }
  .bbcfg .barre { padding: 6px 12px; }
  .bbcfg .barre .prix b { font-size: 16px; }
}

/* la ligne d'état des données garde la même hauteur avant et après la lecture du classeur (pas de décalage) */
.bbcfg .entete .actions { min-height: 2.9em; display: flex; align-items: center; text-align: right; }

/* la légende garde sa ligne dès l'insertion du gabarit (la vue ne change pas de taille quand elle se remplit) */
.bbcfg .legende { min-height: 34px; }

/* informations (retour d'Antony du 28/10/2026) : bouton « i » des étapes, lignes « hors DTU » et bouton du récapitulatif */
.bbcfg .bouton-i { position: relative; flex: none; width: 28px; height: 28px; margin-left: 8px; padding: 0; border-radius: 50%; border: 1.5px solid var(--forest); background: #fff; color: var(--forest); font: italic 700 15px/1 Georgia, 'Times New Roman', serif; display: grid; place-items: center; cursor: pointer; }
.bbcfg .bouton-i:hover { background: var(--lime); }
.bbcfg .bouton-i.hors-dtu::after, .bbcfg .bouton-i.attention::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); border: 2px solid #fff; }
.bbcfg .bouton-i.attention::after { background: #d8a536; }
.bbcfg .ligne-hors-dtu { margin: 6px 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; background: var(--rouge-fond); border-left: 4px solid var(--rouge); }
.bbcfg .ligne-hors-dtu.hors-champ { background: var(--ambre-fond); border-left-color: var(--ambre); }
.bbcfg .ligne-hors-dtu .pourquoi { border: 0; background: none; padding: 0; color: var(--forest); font-weight: 650; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.bbcfg .bouton-infos { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.bbcfg .bouton-infos .rond-i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font: italic 700 13px/1 Georgia, serif; }
@container (max-width: 900px) {
  .bbcfg .etape > .titre .bouton-i { margin-left: auto; }
}
@media (pointer: coarse) {
  .bbcfg .bouton-i { width: 36px; height: 36px; font-size: 17px; }
  .bbcfg .ligne-hors-dtu .pourquoi { padding: 6px 2px; }
}

/* panneau d'informations : ajouté à <body>, hors du conteneur .bbcfg, d'où ses propres couleurs et sa police */
.bbcfg-infos {
  --forest: #1c3a13; --lime: #d3fa99; --stone: #eeeee9; --ink: #1b1c17; --ink-60: #62635b; --ligne: #d9d9d1;
  --rouge: #a3261b; --rouge-fond: #fbe9e6; --ambre: #8a5a00; --ambre-fond: #fdf3dc; --bleu: #1f4e79; --bleu-fond: #e8f0f8;
  position: fixed; z-index: 100000; display: flex; flex-direction: column; box-sizing: border-box; background: #fff; color: var(--ink);
  font: 400 15px/1.45 'Hanken', system-ui, sans-serif; text-align: left; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); transition: transform .25s ease;
}
.bbcfg-infos *, .bbcfg-infos *::before, .bbcfg-infos *::after { box-sizing: border-box; }
.bbcfg-infos[hidden] { display: none !important; }
.bbcfg-infos.feuille { border-radius: 16px 16px 0 0; transform: translateY(105%); }
.bbcfg-infos.lateral { border-left: 1px solid var(--ligne); box-shadow: -8px 0 30px rgba(0, 0, 0, .14); transform: translateX(105%); }
.bbcfg-infos.ouvert { transform: none; }
.bbcfg-infos.glisse { transition: none; }
.bbcfg-infos .poignee { display: none; }
.bbcfg-infos.feuille .poignee { display: flex; justify-content: center; padding: 10px 0 4px; touch-action: none; cursor: grab; }
.bbcfg-infos .poignee span { width: 44px; height: 5px; border-radius: 3px; background: var(--ligne); }
.bbcfg-infos .tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 10px; border-bottom: 1px solid var(--ligne); touch-action: none; }
.bbcfg-infos .tete h3 { margin: 0; font: 650 17px/1.3 'Hanken', system-ui, sans-serif; color: var(--ink); }
.bbcfg-infos .fermer { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--stone); color: var(--ink); font: 400 24px/1 system-ui, sans-serif; cursor: pointer; }
.bbcfg-infos .contenu { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 24px; -webkit-overflow-scrolling: touch; }
.bbcfg-infos .sujet { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.bbcfg-infos .sujet:last-child { border-bottom: 0; }
.bbcfg-infos .sujet h4 { margin: 0 0 6px; font: 650 15.5px/1.3 'Hanken', system-ui, sans-serif; color: var(--forest); }
.bbcfg-infos .sujet.focus { background: linear-gradient(var(--lime), var(--lime)) left top / 4px 100% no-repeat; padding-left: 12px; }
.bbcfg-infos .petit { font-size: 13px; color: var(--ink-60); margin: 8px 0 2px; }
.bbcfg-infos .alerte { border-radius: 10px; padding: 9px 12px; margin: 6px 0; font-size: 13.5px; border-left: 4px solid; }
.bbcfg-infos .alerte .src { display: block; font-size: 12px; opacity: .75; margin-top: 3px; }
.bbcfg-infos .alerte.hors-dtu { background: var(--rouge-fond); border-color: var(--rouge); }
.bbcfg-infos .alerte.hors-champ, .bbcfg-infos .alerte.attention { background: var(--ambre-fond); border-color: #d8a536; }
.bbcfg-infos .alerte.conseil { background: #eef6e6; border-color: var(--forest); }
.bbcfg-infos .alerte.info { background: var(--bleu-fond); border-color: var(--bleu); }
.bbcfg-infos ul.regles { margin: 4px 0 8px; padding-left: 18px; font-size: 13.5px; }
.bbcfg-infos ul.regles li { margin: 3px 0; }
.bbcfg-infos .art { color: var(--ink-60); font-size: 12px; white-space: nowrap; }
.bbcfg-infos figure { margin: 8px 0; }
.bbcfg-infos figure a { display: block; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; }
.bbcfg-infos figure img { display: block; width: 100%; height: auto; max-height: min(60vh, 520px); object-fit: contain; }
.bbcfg-infos figcaption { font-size: 12px; color: var(--ink-60); margin-top: 4px; }
.bbcfg-infos .liens { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bbcfg-infos .liens a { display: block; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--ligne); border-radius: 10px; color: var(--forest); font-weight: 600; font-size: 14px; text-decoration: none; }
.bbcfg-infos .liens a::after { content: ' ↗'; color: var(--ink-60); }
.bbcfg-infos .liens a:hover { border-color: var(--forest); }

/* allègement et téléphone (retour d'Antony du 28/10/2026 : « presque imbuvable », « pas très bien sur mobile ») */
.bbcfg .surface-nette { font-size: 16px; margin: 4px 0 8px; }
.bbcfg .surface-nette .petit { display: block; }
.bbcfg details.kit { margin: 8px 0; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 0 12px; background: #fff; }
.bbcfg details.kit > summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; list-style-position: inside; }
.bbcfg details.kit[open] > summary { border-bottom: 1px solid var(--ligne); }
.bbcfg .bouton.suivant { display: block; margin: 14px 0 0 auto; background: var(--forest); color: var(--lime); border-color: var(--forest); padding-left: 22px; padding-right: 22px; }
.bbcfg .ligne .bouton.suivant { margin: 0 0 0 auto; }
.bbcfg .carte .badge.prix { background: var(--lime); color: var(--forest); font-weight: 650; }
.bbcfg label.coche { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.bbcfg label.coche input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; }
/* pendant la saisie, la vue ne colle plus en haut : le champ et le clavier ont toute la place */
.bbcfg.bbcfg-clavier .visuel { position: relative; top: auto; }
@media (pointer: coarse) {
  .bbcfg .bouton-i { width: 44px; height: 44px; font-size: 18px; }
  .bbcfg .ligne-hors-dtu .pourquoi { display: inline-block; min-height: 44px; padding: 12px 4px; }
  .bbcfg .seg button[data-cam="recentrer"] { min-width: 44px; }
  .bbcfg label.coche input { width: 26px; height: 26px; }
  .bbcfg .lien { min-height: 44px; }
}
/* téléphone : la vue défile avec la page, plus petite ; seuls les onglets restent au-dessus (gestes sans mode d'emploi) */
@container (max-width: 520px) {
  .bbcfg .visuel { position: relative; top: auto; height: min(38vh, 300px); }
  .bbcfg #presets3d, .bbcfg .onglets label.petit, .bbcfg .zone > .aide3d, .bbcfg .legende { display: none !important; }
  .bbcfg .onglets { padding: 6px 8px; }
  .bbcfg .onglets .seg button { padding: 8px 12px; }
  .bbcfg .etape { padding: 12px 14px; }
  .bbcfg .choix { grid-template-columns: 1fr 1fr; }
  .bbcfg .choix.large { grid-template-columns: 1fr; }
  .bbcfg .barre { padding: 8px 12px; gap: 6px; }
  .bbcfg .barre .bouton { padding-left: 12px; padding-right: 12px; }
}
/* barre du prix sur téléphone : le prix et les deux boutons tiennent sur une ligne */
.bbcfg .barre .prix b, .bbcfg .barre .bouton { white-space: nowrap; }
@container (max-width: 420px) {
  .bbcfg .barre .prix b { font-size: 17px; }
  .bbcfg .barre .bouton { padding: 10px 12px; font-size: 15px; }
  .bbcfg .barre .mot-pdf { display: none; }
}
/* « Isolant non fourni » : ce que le client achète de son côté, bien visible au récapitulatif */
.bbcfg .rappel-isolant { margin: 6px 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--ambre-fond); border-left: 4px solid #d8a536; }
/* « À adapter » en orange plutôt qu'en rouge (retour d'Antony du 28/10/2026, libellés positifs de bb-contenus) */
.bbcfg .ligne-hors-dtu { background: var(--ambre-fond); border-left-color: #d8a536; }
.bbcfg .alerte.hors-dtu, .bbcfg-infos .alerte.hors-dtu { background: var(--ambre-fond); border-color: #d8a536; }
.bbcfg .bouton-i.hors-dtu::after { background: #d8a536; }
/* mode rapide : la surface et son mur équivalent restent écrits sous le dessin, même sur téléphone */
@container (max-width: 520px) {
  .bbcfg .visuel .legende.avec-apercu { display: flex !important; min-height: 0; padding: 4px 10px; }
  .bbcfg .visuel .legende.avec-apercu > :not(.apercu) { display: none; }
}
.bbcfg .legende .apercu { font-weight: 600; color: var(--ink); }

/* Android étroit (retour du pilotage du 28/10/2026 : la carte sortait de l'écran sur un Galaxy S9+) : la colonne peut
   rétrécir sous le contenu le plus large ; sous 380 px, la barre du prix passe sur deux lignes */
.bbcfg { max-width: 100%; min-width: 0; }
.bbcfg .page > * { min-width: 0; }
@container (max-width: 900px) { .bbcfg .page { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 380px) {
  .bbcfg .barre { flex-wrap: wrap; row-gap: 6px; }
  .bbcfg .barre .prix { flex: 1 0 100%; margin-right: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .bbcfg .barre .prix br { display: none; }
  .bbcfg .barre .bouton { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
  .bbcfg .choix { grid-template-columns: minmax(0, 1fr); }
  .bbcfg .onglets .seg button { padding: 8px 9px; font-size: 14px; }
  .bbcfg .etape { padding: 12px 10px; }
}
.bbcfg #plan { max-width: 100%; }
.bbcfg #plan svg { display: block; max-width: 100%; }
/* état vide : la barre invite à saisir, sans prix */
.bbcfg .barre .prix b.attente { font-size: 15px; font-weight: 600; color: var(--ink-60); white-space: normal; }
/* vue 3D : la bulle d'aide en haut à droite (elle couvrait le pied du mur) ; l'icône « recentrer » entière */
.bbcfg .zone > .aide3d { inset: 10px 10px auto auto; }
.bbcfg .seg button svg { display: block; }
/* bouton du panier : « Au panier » quand la place manque (le libellé débordait du bouton sur Android) */
.bbcfg .barre .mot-court { display: none; }
@container (max-width: 380px) {
  .bbcfg .barre .mot-large { display: none; }
  .bbcfg .barre .mot-court { display: inline; }
}

/* ---- Simplification du 29/10/2026 : 4 étapes, cartes à pictogramme, compteurs d'ouvertures, boutons de vue ---------- */
.bbcfg [hidden] { display: none !important; }
.bbcfg .picto { display: inline-flex; width: 32px; height: 32px; flex: none; color: var(--ink-60); }
.bbcfg .picto svg { width: 100%; height: 100%; }
.bbcfg .groupe { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.bbcfg .groupe > legend { padding: 0; margin-bottom: 8px; font-weight: 650; font-size: 14px; }
.bbcfg .choix.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bbcfg .choix.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bbcfg .choix.quatre { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.bbcfg .choix.lames { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.bbcfg .carte { min-height: 44px; transition: border-color .15s, box-shadow .15s; }
.bbcfg .carte .picto { margin-bottom: 2px; }
.bbcfg .carte.active .picto { color: var(--forest); }
.bbcfg .carte.active { background: #fbfdf6; }
.bbcfg .carte .vignette { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 4px; }
.bbcfg .carte .vignette img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bbcfg .carte.grisee { opacity: 1; cursor: not-allowed; background: #f4f4f0; border-style: dashed; }
.bbcfg .carte.grisee .t, .bbcfg .carte.grisee .vignette, .bbcfg .carte.grisee > .picto { opacity: .55; }
.bbcfg .carte .raison { font-size: 12.5px; color: #8a5a00; line-height: 1.35; }
.bbcfg .badge.pose { display: inline-flex; align-items: center; gap: 4px; }
.bbcfg .badge.pose .picto { width: 16px; height: 16px; color: inherit; }
.bbcfg .coche-carte { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; margin: 0 0 10px; border: 1.5px solid var(--ligne); border-radius: var(--rayon); background: #fff; cursor: pointer; }
.bbcfg .coche-carte input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; order: 2; margin-left: auto; }
.bbcfg .coche-carte > span:last-child { display: flex; flex-direction: column; }
.bbcfg .coche-carte .d { font-size: 13px; color: var(--ink-60); }
.bbcfg .compteurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bbcfg .compteur { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--ligne); border-radius: var(--rayon); background: #fff; min-width: 0; }
.bbcfg .compteur .t { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.bbcfg .compteur .d { font-size: 12.5px; font-weight: 400; color: var(--ink-60); }
.bbcfg .compteur .pm { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.bbcfg .compteur .pm button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ligne); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.bbcfg .compteur .pm button:disabled { opacity: .4; cursor: default; }
.bbcfg .compteur .pm output { min-width: 22px; text-align: center; font-weight: 650; }
.bbcfg .onglets .seg button { display: inline-flex; align-items: center; gap: 6px; }
.bbcfg .onglets .seg button .picto { width: 20px; height: 20px; color: inherit; }
.bbcfg .seg.icones button { padding: 6px 9px; }
.bbcfg .bascule { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ligne); border-radius: 99px; background: #fff; padding: 5px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.bbcfg .bascule .picto { width: 20px; height: 20px; color: inherit; }
.bbcfg .bascule.active { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.bbcfg .votre-prix { border: 1.5px solid var(--forest); border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 12px; background: #fbfdf6; }
.bbcfg .votre-prix .total-ttc { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bbcfg .votre-prix .total-ttc b { font-size: 24px; }
.bbcfg .votre-prix ul { margin: 6px 0 10px; padding-left: 18px; }
.bbcfg .votre-prix .ligne { gap: 8px; }
.bbcfg .barre-prix b, .bbcfg .barre .prix b { display: inline-block; }
.bbcfg .barre .prix b.glisse { animation: bbcfg-glisse .28s ease-out; }
@keyframes bbcfg-glisse { from { transform: translateY(6px); opacity: .35; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bbcfg .barre .prix b.glisse { animation: none; } }
@media (pointer: coarse) {
  .bbcfg .compteur .pm button { width: 44px; height: 44px; }
  .bbcfg .seg.icones button, .bbcfg .bascule { min-height: 44px; min-width: 44px; }
}
@container (max-width: 520px) {
  .bbcfg .choix.trois, .bbcfg .choix.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbcfg .choix.lames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbcfg .compteurs { grid-template-columns: minmax(0, 1fr); }
  .bbcfg #ecorche { display: none !important; }
}
@container (max-width: 380px) {
  .bbcfg .choix.deux, .bbcfg .choix.trois, .bbcfg .choix.quatre, .bbcfg .choix.lames { grid-template-columns: minmax(0, 1fr); }
}
/* téléphone : pictogramme à gauche du texte, la carte garde une seule rangée de hauteur (les cartes de lames gardent leur vignette) */
@container (max-width: 520px) {
  .bbcfg .carte:not(:has(.vignette)) { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 8px 12px; }
  .bbcfg .carte:not(:has(.vignette)) > .picto { grid-row: span 3; margin: 0; }
  .bbcfg .carte:not(:has(.vignette)) > :not(.picto) { grid-column: 2; }
}
/* (i) : deux phrases et le lien du guide, le reste replié (cahier du 29/10/2026) */
.bbcfg-infos details.plus { margin-top: 6px; }
.bbcfg-infos details.plus > summary { cursor: pointer; color: var(--forest); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
/* aperçu de la surface sous les champs : seulement quand le dessin n'est pas à côté des étapes (téléphone, tablette) */
.bbcfg .apercu-surface { display: none; }
@container (max-width: 900px) {
  .bbcfg .apercu-surface { display: block; margin: 8px 0; padding: 8px 12px; border: 1.5px solid var(--ligne); border-radius: var(--rayon); background: #fff; }
  .bbcfg .apercu-surface p { margin: 0 0 6px; }
  .bbcfg .apercu-surface .vignette-plan svg { width: 100%; height: auto; max-height: 110px; display: block; }
  .bbcfg .apercu-surface .lien { min-height: 44px; }
}
.bbcfg .carte .note { font-size: 12.5px; color: #8a5a00; line-height: 1.35; }
.bbcfg .ligne-info { margin: -6px 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--bleu-fond); color: var(--bleu); font-size: 14px; }
