/* ==========================================================================
   Bloc secteur, en mosaïque
   Quatre gabarits de tuiles : la grande présentation, les tuiles centrées,
   et la tuile pleine largeur. Préfixe .bnt- partout.
   ========================================================================== */

.bnt {
	--bnt-accent: #E80000;
	--bnt-ink: #0B1330;
	--bnt-text: #4A5069;
	--bnt-bg: #F4F4F6;
	--bnt-card: #FFFFFF;
	--bnt-pale: #FDECEC;
	--bnt-radius: 18px;
	--bnt-max: 1800px;
	--bnt-shadow: 0 10px 34px rgba(19, 21, 34, .06);

	position: relative;
	background: var(--bnt-bg);
	padding: clamp(20px, 2.4vw, 40px) clamp(14px, 3vw, 48px);
	color: var(--bnt-text);
}

.bnt *,
.bnt *::before,
.bnt *::after { box-sizing: border-box; }

.bnt-inner {
	max-width: var(--bnt-max);
	margin: 0 auto;
}

/* Marges et puces posées par le thème : on repart de zéro.
   Le rembourrage n'est annulé QUE sur la grille. L'inclure ici écraserait
   celui des tuiles, qui est déclaré plus bas sans !important : les pastilles
   se retrouvaient alors collées au bord. */
.bnt .bnt-inner .bnt-grid,
.bnt .bnt-inner .bnt-tile {
	margin: 0 !important;
	list-style: none !important;
	text-indent: 0;
}

.bnt .bnt-inner .bnt-grid {
	padding: 0 !important;
}

.bnt .bnt-inner .bnt-tile::marker { content: none; }

.bnt .bnt-inner .bnt-tile::before {
	content: none !important;
	display: none !important;
}

.bnt .bnt-inner h2,
.bnt .bnt-inner h3,
.bnt .bnt-inner p {
	margin: 0;
	padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Grille
   -------------------------------------------------------------------------- */

.bnt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.3vw, 22px);
}

.bnt-tile {
	position: relative;
	display: flex;
	background: var(--bnt-card);
	border-radius: var(--bnt-radius);
	overflow: hidden;
	box-shadow: var(--bnt-shadow);
}

.bnt-tile--main { grid-column: span 2; }
.bnt-tile--wide { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Grande tuile : texte à gauche, photo à droite en fondu
   -------------------------------------------------------------------------- */

.bnt-tile--main { align-items: stretch; }

.bnt .bnt-inner .bnt-main-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 52%;
	padding: clamp(26px, 2.6vw, 44px);
}

.bnt-main-media {
	position: absolute;
	inset: 0 0 0 40%;
}

.bnt .bnt-main-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: var(--bnt-image-pos, 50% 50%);
	display: block;
}

/* Le dégradé fond la photo dans la carte : sans lui, la coupure verticale
   entre le texte et l'image serait franche et l'ensemble paraîtrait collé. */
.bnt-main-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--bnt-card) 0%, rgba(255, 255, 255, .85) 22%, rgba(255, 255, 255, 0) 52%);
}

.bnt .bnt-inner .bnt-main-title {
	color: var(--bnt-ink);
	font-size: 45px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.02em;
}

.bnt-main-rule {
	display: block;
	width: 42px;
	height: 2px;
	margin: 14px 0 16px;
	background: var(--bnt-accent);
	border-radius: 999px;
}

.bnt .bnt-inner .bnt-price {
	color: var(--bnt-ink);
	font-size: clamp(26px, 2.4vw, 38px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.bnt .bnt-inner .bnt-price b {
	color: var(--bnt-accent);
	font-weight: 800;
}

.bnt .bnt-inner .bnt-sub {
	margin-top: 10px;
	color: var(--bnt-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.bnt .bnt-inner .bnt-sub b {
	color: var(--bnt-accent);
	font-weight: 700;
}

.bnt .bnt-inner .bnt-main-text {
	margin-top: 14px;
	max-width: 34ch;
	font-size: 16px;
	line-height: 1.65;
	color: var(--bnt-text);
}

/* --------------------------------------------------------------------------
   Tuiles centrées
   -------------------------------------------------------------------------- */

.bnt .bnt-inner .bnt-tile--card {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: clamp(34px, 3vw, 48px) clamp(24px, 2.2vw, 36px);
	text-align: center;
}

.bnt-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	margin-bottom: 20px;
	background: var(--bnt-pale);
	border-radius: 50%;
	color: var(--bnt-accent);
}

.bnt-icon svg { width: 29px; height: 29px; display: block; }

.bnt-icon i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 26px;
	line-height: 1;
}

.bnt .bnt-inner .bnt-title {
	color: var(--bnt-ink);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.bnt-rule {
	display: block;
	width: 34px;
	height: 2px;
	margin: 12px 0 14px;
	background: var(--bnt-accent);
	border-radius: 999px;
}

.bnt-tile--card .bnt-rule { margin-inline: auto; }

.bnt .bnt-inner .bnt-text {
	max-width: 36ch;
	font-size: 16px;
	line-height: 1.65;
	color: var(--bnt-text);
}

/* --------------------------------------------------------------------------
   Tuile pleine largeur
   -------------------------------------------------------------------------- */

.bnt .bnt-inner .bnt-tile--wide {
	align-items: center;
	gap: clamp(20px, 2vw, 34px);
	padding: clamp(30px, 2.8vw, 44px) clamp(30px, 2.8vw, 44px);
}

.bnt-tile--wide .bnt-icon {
	flex: 0 0 auto;
	width: 92px;
	height: 92px;
	margin: 0;
}

.bnt-tile--wide .bnt-icon svg { width: 36px; height: 36px; }
.bnt-tile--wide .bnt-icon i { font-size: 32px; }

.bnt-wide-body { flex: 1 1 auto; min-width: 0; }

.bnt-tile--wide .bnt-rule { margin: 10px 0 12px; }

.bnt .bnt-inner .bnt-tile--wide .bnt-text { max-width: 68ch; }

/* Carte stylisée, dessinée en SVG : aucune image à charger, et elle suit
   la couleur d'accent de la section. */
.bnt-map {
	position: relative;
	flex: 0 0 auto;
	width: clamp(160px, 22vw, 330px);
	align-self: stretch;
	min-height: 120px;
	border-radius: 12px;
	overflow: hidden;
	/* Sans cette ligne, le repère prenait la couleur du texte : le SVG est
	   dessiné en currentColor pour suivre l'accent de la section. */
	color: var(--bnt-accent);
}

.bnt-map svg { width: 100%; height: 100%; display: block; }

/* Variante avec une vraie image de carte */
.bnt .bnt-map--photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	display: block;
}

.bnt-map-pin {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -58%);
	width: 46px;
	height: 46px;
	filter: drop-shadow(0 4px 8px rgba(11, 19, 48, .3));
}

.bnt-map-pin svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Adaptatif
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.bnt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bnt-tile--main { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	/* La photo en fondu suppose deux colonnes : sous cette largeur, elle
	   passe au-dessus du texte, en bandeau. */
	.bnt-tile--main { flex-direction: column; }
	.bnt-main-media { position: relative; inset: auto; order: -1; width: 100%; height: 220px; }
	.bnt-main-media::after { background: linear-gradient(0deg, var(--bnt-card) 0%, rgba(255, 255, 255, 0) 45%); }
	.bnt .bnt-inner .bnt-main-body { width: 100%; padding-top: 6px; }
	.bnt .bnt-inner .bnt-main-text { max-width: none; }

	.bnt-map { display: none; }
}

@media (max-width: 640px) {
	.bnt-grid { grid-template-columns: minmax(0, 1fr); }

	/* La taille du titre est fixe : sans ce palier, « Couvreurs » déborderait
	   de la carte sur un téléphone étroit. */
	.bnt .bnt-inner .bnt-main-title { font-size: 34px; }

	.bnt .bnt-inner .bnt-tile--wide { flex-direction: column; align-items: flex-start; text-align: left; }
	.bnt-tile--wide .bnt-icon { width: 74px; height: 74px; }
	.bnt-tile--wide .bnt-icon svg { width: 29px; height: 29px; }
	.bnt-tile--wide .bnt-icon i { font-size: 26px; }
}
