/* Sous-pages "Batterie domestique <marque>" + grille des marques */

.marque-hero {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
	height: 100%;
	padding: 24px;
}
.marque-hero img {
	max-width: 100%;
	max-height: 460px;
	object-fit: contain;
}

.marque-badges .badge {
	background: rgba(50, 195, 108, .12);
	color: var(--dark);
	font-weight: 500;
	font-size: .85rem;
	padding: .5em 1em;
}
.marque-badges .badge i { color: var(--primary); }

.marque-texte p:last-child { margin-bottom: 0; }
.marque-texte h3 { font-size: 1.2rem; margin-top: 1.5rem; }

.marque-figure {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	margin: 0;
}
.marque-figure img {
	width: 100%;
	max-height: 320px;
	object-fit: contain;
	padding: 16px;
}
.marque-figure figcaption {
	font-size: .85rem;
	padding: 0 16px 12px;
	color: #6c757d;
}

.marque-fiche li,
.modele-specs li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed #dee2e6;
	font-size: .95rem;
}
.marque-fiche li:last-child,
.modele-specs li:last-child { border-bottom: 0; }
.marque-fiche li strong,
.modele-specs li strong {
	color: var(--dark);
	text-align: right;
}

.marque-compat table { background: #fff; }
.marque-compat thead th {
	background: var(--dark);
	color: #fff;
	font-weight: 500;
	border: 0;
}
.compat-statut {
	display: inline-block;
	white-space: nowrap;
	font-size: .8rem;
	font-weight: 700;
	padding: .3em .8em;
	border-radius: 50px;
}
.compat-ok      { background: rgba(50, 195, 108, .15); color: #1d7a43; }
.compat-partiel { background: rgba(255, 170, 0, .18);  color: #8a5a00; }
.compat-non     { background: rgba(220, 53, 69, .12);  color: #a12232; }

.liste-check {
	list-style: none;
	padding-left: 0;
}
.liste-check li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}
.liste-check li::before {
	content: "\f00c";
	font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-size: .65rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.marque-points { box-shadow: 0 0 30px rgba(0, 0, 0, .05); }
.marque-points .form-select { border-color: var(--primary); }

.marque-cta { background: var(--dark); }

.marque-faq .accordion-button { font-weight: 500; }
.marque-faq .accordion-button:not(.collapsed) {
	background: rgba(50, 195, 108, .1);
	color: var(--dark);
	box-shadow: none;
}

.marque-lien {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 18px 20px;
	background: var(--light);
	border-left: 4px solid var(--primary);
	color: var(--dark);
	transition: .3s;
}
.marque-lien small { color: #6c757d; }
.marque-lien:hover {
	background: var(--dark);
	color: #fff;
}
.marque-lien:hover small { color: rgba(255, 255, 255, .7); }

/* Grille sur la page Batterie Domestique */
.marque-carte {
	display: block;
	height: 100%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(0, 0, 0, .06);
	color: var(--dark);
	transition: .3s;
}
.marque-carte:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	color: var(--dark);
}
.marque-carte .marque-carte-img {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}
.marque-carte .marque-carte-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.marque-carte .marque-carte-body { padding: 16px 18px; }
.marque-carte .marque-carte-body small { color: #6c757d; display: block; }
.marque-carte .marque-carte-body span { color: var(--primary); font-weight: 500; font-size: .9rem; }

/* Variante photo d'ambiance (plein cadre) */
.marque-hero.marque-hero-photo { padding: 0; overflow: hidden; }
.marque-hero.marque-hero-photo img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
}

/* Mobile : tableau de compatibilité en cartes */
@media (max-width: 575.98px) {
	.marque-compat thead { display: none; }
	.marque-compat table, .marque-compat tbody, .marque-compat tr, .marque-compat td { display: block; width: 100%; }
	.marque-compat tr { padding: 12px 0; border-bottom: 1px solid #dee2e6; }
	.marque-compat td { border: 0; padding: 2px 0; }
	.marque-hero { min-height: 280px; }
}

/* ===== Bornes : tableau comparatif des versions ===== */
.tableau-bornes table { background: #fff; min-width: 560px; }
.tableau-bornes thead th {
	background: var(--dark);
	color: #fff;
	font-weight: 500;
	text-align: center;
	vertical-align: middle;
	border: 0;
	white-space: nowrap;
}
.tableau-bornes thead th:first-child { text-align: left; }
.tableau-bornes tbody th {
	font-weight: 500;
	color: var(--dark);
	background: #fafbfb;
	white-space: nowrap;
}
.tableau-bornes tbody td { text-align: center; }
.tableau-bornes tr.tc-groupe th {
	background: rgba(50, 195, 108, .12);
	color: #1d7a43;
	text-transform: uppercase;
	font-size: .8rem;
	letter-spacing: 1px;
	font-weight: 700;
}
.tc-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: .8rem;
}
.tc-oui { background: rgba(50, 195, 108, .15); color: #1d7a43; }
.tc-non { background: rgba(220, 53, 69, .1); color: #a12232; }
.tc-opt {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	padding: .25em .7em;
	border-radius: 50px;
	background: rgba(255, 170, 0, .18);
	color: #8a5a00;
}
.tc-txt { font-weight: 500; color: var(--dark); }
.tc-note { display: block; font-size: .75rem; color: #6c757d; line-height: 1.2; margin-top: 3px; }
.tableau-bornes th[scope="row"] { position: sticky; left: 0; z-index: 1; }

.atout-carte { box-shadow: 0 0 30px rgba(0, 0, 0, .05); }
.marque-figure-bord { border: 1px solid #e9ecef; }

/* Tableau récapitulatif multi-marques (page Bornes) */
.recap-bornes td, .recap-bornes th { text-align: center; vertical-align: middle; }
.recap-bornes td:first-child, .recap-bornes th:first-child { text-align: left; }

/* ===== Domotique : résidentiel / entreprise ===== */
.usage-carte { background: var(--light); border-top: 4px solid var(--primary); }
.usage-note { display: flex; align-items: center; gap: 4px; }
.usage-note span {
	width: 22px;
	height: 8px;
	border-radius: 4px;
	background: #dee2e6;
}
.usage-note span.on { background: var(--primary); }
.usage-note strong { margin-left: 8px; font-size: .85rem; color: var(--dark); }
