/* La Sûreté des Bâtiments – ajouts v1.2 (parcours de conversion) */

/* Bandeau d'appel vers l'assistant, à la place du formulaire du pied de page */
html body #footer.has-cta{margin-top:220px;padding-top:150px}
#footer .ssb-cta{width:843px;max-width:calc(100% - 40px);margin:-290px auto 60px auto;padding:50px 80px;background:#fff;box-shadow:0 2px 20px 0 rgba(205,208,210,.2);text-align:center;position:relative;z-index:2;color:#262626}
#footer .ssb-cta .titre{font-size:30px;font-weight:600;margin-bottom:12px;line-height:1.25}
#footer .ssb-cta p{line-height:1.5;color:#262626}
#footer .ssb-cta .btn{margin-top:24px}
#footer .ssb-cta .mentions{margin-top:12px;font-size:12px;color:#82898e}

@media (max-width:1010px){
	html body #footer.has-cta{margin-top:180px;padding-top:120px}
	#footer .ssb-cta{width:auto;max-width:none;margin:-260px 20px 40px;padding:40px 24px}
	#footer .ssb-cta .titre{font-size:24px}

	/* Bouton principal fixé en bas de l'écran sur mobile, sur toutes les pages sauf la page contact */
	body:not(.page-template-contact) #header .top .buttons>div .btn.building{display:flex;position:fixed;width:266px;padding-right:20px;left:calc(50% - 133px);top:auto;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:97}
	body.page-template-contact #header .top .buttons>div .btn.building{display:none}
	body:not(.page-template-contact) #footer .after{padding-bottom:80px}
}

/* =========================================================================
   Accueil – nouvelle version (piste 4)
   ========================================================================= */
.ssb-home-v2 .ssb4-hero{text-align:center;max-width:900px;margin:56px auto 8px}
.ssb-home-v2 .ssb4-hero h1{font-size:46px;line-height:1.1;font-weight:800;margin:0 0 16px;letter-spacing:-0.01em}
.ssb-home-v2 .ssb4-hero p{font-size:18px;line-height:1.6;color:#4a5468;margin:0 auto;max-width:760px}
.ssb-home-v2 #situations{margin-top:24px}
.ssb-home-v2 #situations .nav{padding-top:0}

.ssb-home-v2 .ssb4-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0 88px}
.ssb-home-v2 .ssb4-tile{background:#fff;border-radius:16px 0;padding:24px;display:flex;flex-direction:column;gap:10px;border-top:6px solid #cdd0d2;box-shadow:0 1px 2px rgba(18,26,46,.06);color:#262626;transition:.2s transform ease-in-out}
.ssb-home-v2 .ssb4-tile:hover{transform:translateY(-4px)}
.ssb-home-v2 .ssb4-tile strong{font-size:18px;line-height:1.3}
.ssb-home-v2 .ssb4-tile .desc{font-size:14px;line-height:1.5;color:#4a5468}
.ssb-home-v2 .ssb4-tile .more{color:#1F56A6;font-weight:600;font-size:14px;padding-left:22px;background:url(../images/arrow-right-blue.svg) no-repeat left center}
.ssb-home-v2 .ssb4-tile .ico{width:36px;height:36px}
.ssb-home-v2 .ssb4-tile.home{border-top-color:#24DBDC}.ssb-home-v2 .ssb4-tile.home .ico{background:url(../images/p_home_on.svg) no-repeat left center / contain}
.ssb-home-v2 .ssb4-tile.sante{border-top-color:#101C44}.ssb-home-v2 .ssb4-tile.sante .ico{background:url(../images/p_user_on.svg) no-repeat left center / contain}
.ssb-home-v2 .ssb4-tile.tertiaire{border-top-color:#68C5E4}.ssb-home-v2 .ssb4-tile.tertiaire .ico{background:url(../images/p_tertiaire_on.svg) no-repeat left center / contain}
.ssb-home-v2 .ssb4-tile.industriel{border-top-color:#1F56A6}.ssb-home-v2 .ssb4-tile.industriel .ico{background:url(../images/p_industriel_on.svg) no-repeat left center / contain}

.ssb-home-v2 .ssb4-reseau{background:#101C44;color:#fff;padding:80px 0;margin-bottom:80px}
.ssb-home-v2 .ssb4-reseau .wrap{display:flex;gap:56px;align-items:center}
.ssb-home-v2 .ssb4-reseau .txt{flex:1 1 0}
.ssb-home-v2 .ssb4-reseau h2{font-size:34px;font-weight:800;margin:0 0 16px;color:#fff}
.ssb-home-v2 .ssb4-reseau p{font-size:17px;line-height:1.6;color:#c3cce0;margin:0 0 24px}
.ssb-home-v2 .ssb4-reseau .video{flex:1 1 0;background:#fff;border-radius:16px 0;overflow:hidden}
.ssb-home-v2 #content .ssb4-reseau .video video{height:auto;display:block}

@media (max-width:1010px){
	.ssb-home-v2 .ssb4-hero{margin-top:32px}
	.ssb-home-v2 .ssb4-hero h1{font-size:30px}
	.ssb-home-v2 .ssb4-hero p{font-size:16px}
	.ssb-home-v2 .ssb4-tiles{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:60px}
	.ssb-home-v2 .ssb4-reseau{padding:60px 0;margin-bottom:60px}
	.ssb-home-v2 .ssb4-reseau .wrap{flex-direction:column;gap:32px}
	.ssb-home-v2 .ssb4-reseau h2{font-size:26px}
}
@media (max-width:600px){
	.ssb-home-v2 .ssb4-tiles{grid-template-columns:minmax(0,1fr)}
}
