/* ==========================================================================
   Portail-Habitat.fr - rubrique Borne de recharge : outils, fiches produit
   façon boutique, comparateur, tableaux, encadré local des pages villes.
   Chargé après menuiserie.css (et isolation.css), uniquement sur les pages
   de la catégorie Borne de recharge.
   ========================================================================== */

/* ---------- Champs des outils ---------- */
.bo-sim-champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: .9rem; background: var(--mag-pale); border-radius: .8rem; align-items: end; }
.bo-sim-champs .bo-large { grid-column: span 2; min-width: 0; }
.mn-simulateur .bo-case { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .6rem; }
.mn-simulateur .bo-case input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.mn-simulateur .bo-case span { font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #1B2626; }
.bo-sim-details { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .92rem; line-height: 1.5; color: #fff; }
.bo-sim-details:empty { display: none; }
.mn-resultat [data-r="conseil"]:empty { display: none; }

/* ---------- Tableaux ---------- */
.bo-tableau th[scope="row"] { font-weight: 600; }
.bo-tableau td { white-space: normal; }
.bo-tableau td strong { white-space: nowrap; }
.bo-tableau .bo-src { display: block; margin-top: .2rem; font-size: .82rem; line-height: 1.4; color: #5E6868; }
.bo-tableau td span, .bo-tableau th span { font-size: .82rem; font-weight: 400; color: #5E6868; }
.bo-etiquette { display: inline-block; margin-left: .25rem; padding: .05rem .45rem; border-radius: .3rem; background: var(--mag-pale); color: var(--mag); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.bo-ligne-thermique th, .bo-ligne-thermique td { background: #FBF4EC; }
.bo-pas { display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.bo-pas-oui { background: #DDF1E4; color: #17633A; }
.bo-pas-non { background: #F3E3DE; color: #8A3A22; }
.bo-pas-opt { background: #FFF3D6; color: #6B4A00; }
.bo-pas-nc { background: #EEF0F0; color: #5E6868; font-weight: 600; }
.bo-detail { display: block; margin-top: .2rem; font-size: .84rem; color: #5E6868; }
.bo-specs th[scope="row"] { width: 38%; }
.bo-specs .tableau-simple { min-width: 0; }
.bo-tableau-ve th[scope="row"] span { display: block; }

/* ---------- Fiche produit (haut d'article) ---------- */
.bo-fiche { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1.75rem; margin: 0 0 2rem; padding: 1.5rem; background: #fff; border: 1px solid #E3DED5; border-radius: 1.25rem; box-shadow: 0 14px 34px rgba(11,54,56,.07); }
.bo-fiche-visuel { text-align: center; }
.bo-fiche-visuel svg { display: block; width: 100%; height: auto; max-width: 260px !important; margin: 0 auto; }
.bo-fiche-legende { margin: .4rem 0 0; font-size: .78rem; color: #7A8483; }
.bo-fiche-marque { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terre); }
.bo-fiche-nom { margin: .2rem 0 .6rem; font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: var(--mag-nuit); }
.bo-fiche-cles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.bo-fiche-cles li { padding: .7rem .6rem; background: var(--mag-pale); border-radius: .7rem; text-align: center; }
.bo-fiche-cles strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--mag); }
.bo-fiche-cles span { display: block; font-size: .8rem; line-height: 1.3; color: #4A5555; }
.bo-fiche-puissance { margin: 0 0 .9rem; font-size: .95rem; color: #34403F; }
.bo-fiche-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0 0 1rem; padding: .8rem 1rem; background: #FBF4EC; border-radius: .8rem; }
.bo-fiche-prix span { width: 100%; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6B4A00; }
.bo-fiche-prix strong { font-size: 1.6rem; font-weight: 800; color: var(--mag-nuit); }
.bo-fiche-prix em { font-size: .85rem; font-style: normal; color: #5E6868; }
body .bo-fiche .bo-fiche-cta { display: block; margin: 0; background: var(--terre); color: #fff; text-align: center; }
body .bo-fiche .bo-fiche-cta:hover { background: var(--terre-fonce); }
.bo-fiche-neutre { margin: .6rem 0 0; font-size: .82rem; line-height: 1.45; color: #5E6868; }
.bo-statut { display: inline-block; margin: 0 0 .7rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.bo-statut-arrete { background: #F3E3DE; color: #8A3A22; }
.bo-statut-bientot { background: #FFF3D6; color: #6B4A00; }
.bo-statut-hors-france { background: #EEF0F0; color: #5E6868; }
.bo-fiche-statut { margin: 0 0 .8rem; padding: .5rem .7rem; border-left: 3px solid #C4532F; background: #FBF1EC; font-size: .85rem; line-height: 1.45; color: #5A2E1E; border-radius: 0 .4rem .4rem 0; }

/* ---------- Cartes produits et comparateur ---------- */
.bo-cartes-titre { margin: 1.5rem 0 .6rem; font-size: 1.05rem; font-weight: 800; color: var(--mag-nuit); }
.bo-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.25rem; }
.bo-carte { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; align-items: start; padding: .9rem; background: #fff; border: 1px solid #E3DED5; border-radius: .9rem; }
.bo-carte[hidden] { display: none; }
.bo-carte-visuel svg { display: block; width: 76px; height: 76px; }
.bo-carte-nom { margin: 0 0 .2rem; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--mag-nuit); }
.bo-carte-kw { margin: 0 0 .35rem; font-size: .85rem; line-height: 1.4; color: #4A5555; }
.bo-carte-prix { margin: .35rem 0 0; font-size: 1rem; font-weight: 800; color: var(--terre); }
.bo-carte-prix span { font-size: .8rem; font-weight: 600; color: #5E6868; }
.bo-carte .bo-statut { margin: .4rem 0 0; }
.bo-carte-fonctions { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.bo-carte-fonctions li { padding: .05rem .45rem; border-radius: .3rem; font-size: .74rem; font-weight: 700; }
.bo-carte-fonctions li.oui { background: #DDF1E4; color: #17633A; }
.bo-carte-fonctions li.opt { background: #FFF3D6; color: #6B4A00; }
.bo-comparateur { margin: 2rem 0; padding: 1.5rem; background: #fff; border: 2px solid var(--mag); border-radius: 1.25rem; }
.bo-comparateur .mn-sim-titre { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--mag-nuit); }
.bo-comparateur .mn-sim-sous { margin: .35rem 0 1rem; font-size: .95rem; color: #5E6868; }
.bo-filtres { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; padding: .9rem; background: var(--mag-pale); border-radius: .8rem; }
.bo-filtres label { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.bo-filtres label > span { font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #4A5555; }
.bo-filtres select { height: 2.6rem; padding: 0 .6rem; border: 1px solid #C9D6D4; border-radius: .55rem; background: #fff; font: inherit; }
.bo-filtres .bo-case { flex-direction: row; align-items: center; gap: .45rem; min-height: 2.6rem; }
.bo-filtres .bo-case input { width: 1.2rem; height: 1.2rem; }
.bo-filtres .bo-case span { font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #1B2626; }
.bo-compte { margin: .8rem 0; font-weight: 700; color: var(--mag); }
.bo-cartes-comparateur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .bo-comparateur .bo-comparateur-cta { display: inline-block; margin-top: .4rem; background: var(--terre); color: #fff; }

/* ---------- Lettre « droit à la prise » ---------- */
.bo-lettre-texte { margin: 1rem 0; padding: 1.25rem 1.4rem; background: #FFFDF8; border: 1px dashed #C9C2B4; border-radius: .8rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; line-height: 1.65; white-space: pre-wrap; color: #1B2626; }
.bo-lettre-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.bo-lettre-actions .btn { margin: 0; }
body .bo-lettre-actions .btn:not(.contour) { background: var(--terre); color: #fff; }

/* ---------- Encadré local ---------- */
.bo-local .chiffres-cles { margin-top: 0; }

/* ---------- Catégorie : villes, constructeurs, marques ---------- */
.bo-liste-liens { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.bo-liste-liens li a { display: inline-block; padding: .35rem .75rem; background: #fff; border: 1px solid #E3DED5; border-radius: 999px; font-size: .92rem; font-weight: 600; text-decoration: none; }
.bo-liste-liens li a:hover { border-color: var(--mag); }
.bo-outils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bo-outils li a { display: block; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid #E3DED5; border-radius: .9rem; text-decoration: none; color: inherit; }
.bo-outils li a:hover { border-color: var(--mag); }
.bo-outils strong { display: block; margin-bottom: .25rem; font-size: 1.02rem; color: var(--mag-nuit); }
.bo-outils span { font-size: .9rem; line-height: 1.45; color: #4A5555; }

@media (max-width: 1023px) {
	.bo-cartes, .bo-outils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.bo-fiche { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.1rem; }
	.bo-fiche-visuel svg { max-width: 170px !important; }
	.bo-fiche-visuel { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
	.bo-sim-champs { grid-template-columns: minmax(0, 1fr); }
	.bo-sim-champs .bo-large { grid-column: auto; }
	.bo-cartes, .bo-cartes-comparateur, .bo-outils { grid-template-columns: minmax(0, 1fr); }
	.bo-fiche-cles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
	.bo-fiche-cles strong { font-size: 1.05rem; }
	.bo-comparateur { padding: 1.1rem; }
	.bo-filtres { flex-direction: column; align-items: stretch; }
	.bo-lettre-texte { padding: 1rem; font-size: .95rem; }
}

/* Tableaux empilés en fiches sur mobile */
@media (max-width: 640px) {
	.tableau-defilant.bo-empile { overflow: visible; border: 0; border-radius: 0; }
	.bo-empile table, .bo-empile tbody { display: block; min-width: 0 !important; background: none; }
	.bo-empile caption { display: block; }
	.bo-empile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bo-empile tbody tr { display: block; margin: 0 0 .7rem; padding: .75rem .9rem; background: var(--blanc, #fff); border: 1px solid var(--trace, #DDE7E7); border-radius: .75rem; }
	.bo-empile tbody th, .bo-empile tbody td { display: block; padding: .2rem 0; border: 0 !important; white-space: normal; }
	.bo-empile tbody th[scope="row"] { font-size: 1.02rem; padding-bottom: .35rem; }
	.bo-empile tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5E6868; }
	.bo-empile tbody td + td { margin-top: .35rem; }
	.bo-empile tbody td.bo-vide { display: none; }
}
@media (max-width: 640px) {
	.bo-tableau:not(.bo-tableau-ve) .tableau-simple { min-width: 0; }
	.bo-empile.bo-comparatif tbody td { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
	.bo-empile.bo-comparatif tbody td[data-label]::before { display: inline; margin: 0; text-align: left; }
	.bo-empile.bo-comparatif tbody td { text-align: right; }
}
