/* =============================================
   RENOVINTÉRIEUR — SERVICE PAGE STYLES
   (MBI-38 inspired layout)
   ============================================= */

/* ---- Parent theme overrides ---- */
body.page-template-page-service .page_content_wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.page-template-page-service .content_wrap,
body.page-template-page-service .content_wrap_fullscreen {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.page-template-page-service .content {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	overflow: hidden;
}

body.page-template-page-service .sidebar,
body.page-template-page-service .footer_wrap,
body.page-template-page-service .page_title_wrap,
body.page-template-page-service .breadcrumbs_wrap,
body.page-template-page-service .sc_layouts_title {
	display: none !important;
}

/* Hide the header row that contains the page title */
body.page-template-page-service .top_panel .elementor-section:has(.sc_layouts_title) {
	display: none !important;
}

body.page-template-page-service .top_panel .elementor-element-bac0228 {
	display: none !important;
}

/* ---- Header overlay ---- */
body.page-template-page-service .top_panel {
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
	box-shadow: none !important;
	transition: background 0.35s ease, box-shadow 0.35s ease;
}

body.page-template-page-service .top_panel .elementor-section,
body.page-template-page-service .top_panel .elementor-container,
body.page-template-page-service .top_panel .sc_layouts_row {
	background-color: transparent !important;
	background-image: none !important;
}

body.page-template-page-service .top_panel .sc_layouts_menu_nav > li > a,
body.page-template-page-service .top_panel .sc_layouts_item a,
body.page-template-page-service .top_panel .sc_layouts_iconed_text a {
	color: #ffffff !important;
}

body.page-template-page-service .top_panel .sc_layouts_menu_nav > li > a::after,
body.page-template-page-service .top_panel .sc_layouts_menu_nav > li.current-menu-item > a::after {
	background-color: #C19A5B !important;
}

body.page-template-page-service .top_panel.ri-header-sticky {
	position: fixed !important;
	background: rgba(19, 36, 50, 0.97) !important;
	box-shadow: 0 2px 30px rgba(0, 0, 0, 0.18) !important;
	backdrop-filter: blur(10px);
}

body.page-template-page-service .top_panel.ri-header-sticky .elementor-section,
body.page-template-page-service .top_panel.ri-header-sticky .sc_layouts_row {
	background-color: transparent !important;
}

/* ---- Wrapper ---- */
.ri-svc {
	width: 100%;
	background: var(--ri-color-surface);
}

/* ===========================================
   HERO BANNER
   =========================================== */
.ri-svc-hero {
	position: relative;
	width: 100%;
	min-height: 600px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}

.ri-svc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(19, 36, 50, 0.82) 0%,
		rgba(19, 36, 50, 0.5) 60%,
		rgba(19, 36, 50, 0.2) 100%
	);
}

.ri-svc-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 160px 3rem 80px;
}

.ri-svc-hero__content {
	max-width: 620px;
}

.ri-svc-hero__badge {
	display: inline-block;
	margin-bottom: 1.2rem;
	padding: 0.45rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-family: var(--ri-font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.06);
}

.ri-svc-hero h1 {
	font-family: var(--ri-font-heading);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #ffffff;
	margin: 0 0 1rem;
}

.ri-svc-hero p {
	font-size: 1.05rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 1.8rem;
}

.ri-svc-hero__buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.ri-svc-hero .ri-button--outline {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

.ri-svc-hero .ri-button--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.75);
	color: #ffffff;
}

/* ---- Accent divider ---- */
.ri-svc-divider {
	display: block;
	width: 60px;
	height: 3px;
	background: #C19A5B;
	margin-bottom: 1.2rem;
	border-radius: 2px;
}

.ri-svc-divider--light {
	background: rgba(255, 255, 255, 0.5);
}

.ri-svc-hero .ri-svc-divider {
	background: #C19A5B;
}

/* ===========================================
   ALTERNATING TEXT + IMAGE SECTIONS
   =========================================== */
.ri-svc-alt {
	display: flex;
	min-height: 450px;
}

.ri-svc-alt__text {
	flex: 1;
	padding: clamp(2rem, 5vw, 3.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ri-svc-alt__text h2 {
	font-size: clamp(1.5rem, 2.5vw, 1.9rem);
	margin: 0 0 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.ri-svc-alt__text p {
	color: var(--ri-color-text);
	line-height: 1.78;
	margin: 0 0 0.8rem;
	font-size: 1rem;
}

.ri-svc-alt__text p:last-child {
	margin-bottom: 0;
}

.ri-svc-alt__text ul {
	padding-left: 1.2rem;
	color: var(--ri-color-text);
	line-height: 1.78;
}

.ri-svc-alt__text li + li {
	margin-top: 0.4rem;
}

.ri-svc-alt__image {
	flex: 1;
	background-size: cover;
	background-position: center;
	min-height: 400px;
}

.ri-svc-alt--reverse {
	flex-direction: row-reverse;
}

/* ===========================================
   INFO BOXES (Méthode + Zone)
   =========================================== */
.ri-svc-boxes {
	display: flex;
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 2rem;
	gap: 0;
}

.ri-svc-box {
	padding: clamp(2rem, 4vw, 3rem);
	color: #ffffff;
}

.ri-svc-box--dark {
	flex: 1.2;
	background: linear-gradient(135deg, #132432 0%, #1a3446 100%);
	border-radius: 16px 0 0 16px;
}

.ri-svc-box--medium {
	flex: 0.8;
	background: var(--ri-color-soft);
	border-radius: 0 16px 16px 0;
}

.ri-svc-box h2 {
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	color: #ffffff;
	margin: 0 0 0.8rem;
	text-transform: uppercase;
}

.ri-svc-box p {
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.75;
	margin: 0 0 0.6rem;
}

.ri-svc-box ul {
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.75;
	padding-left: 1.2rem;
	margin: 0;
}

.ri-svc-box li + li {
	margin-top: 0.4rem;
}

/* ===========================================
   CTA FINAL
   =========================================== */
.ri-svc-cta {
	padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
	background: linear-gradient(135deg, #132432 0%, #1a3446 60%, #1d3a50 100%);
	text-align: center;
}

.ri-svc-cta__inner {
	max-width: 650px;
	margin: 0 auto;
}

.ri-svc-cta h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: #ffffff;
	margin: 0 0 0.8rem;
}

.ri-svc-cta .ri-svc-divider {
	margin: 0 auto 1.2rem;
}

.ri-svc-cta p {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.7;
	margin: 0 0 2rem;
}

.ri-button--accent {
	background: var(--ri-color-accent) !important;
	border-color: var(--ri-color-accent) !important;
	color: #ffffff !important;
	padding: 0.95rem 2rem;
}

.ri-button--accent:hover,
.ri-button--accent:focus {
	background: var(--ri-color-accent-dark) !important;
	border-color: var(--ri-color-accent-dark) !important;
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */
.ri-svc .ri-anim {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ri-svc .ri-anim--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===========================================
   RESPONSIVE — MOBILE
   =========================================== */
@media (max-width: 767px) {
	.ri-svc-hero {
		min-height: 480px;
	}

	.ri-svc-hero__inner {
		padding: 120px 1.5rem 50px;
	}

	.ri-svc-hero__buttons {
		flex-direction: column;
	}

	.ri-svc-hero .ri-button {
		width: 100%;
		justify-content: center;
	}

	.ri-svc-alt,
	.ri-svc-alt--reverse {
		flex-direction: column;
	}

	.ri-svc-alt__image {
		min-height: 250px;
	}

	.ri-svc-boxes {
		flex-direction: column;
		padding: 0 1rem;
	}

	.ri-svc-box--dark {
		border-radius: 16px 16px 0 0;
	}

	.ri-svc-box--medium {
		border-radius: 0 0 16px 16px;
	}
}

/* ===========================================
   RESPONSIVE — TABLET
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
	.ri-svc-alt__text {
		padding: 2rem;
	}
}
