/* ===========================================
   PAGE GROS ŒUVRE / SURÉLÉVATION / EXTENSION
   Complète service-page.css (ri-svc-*) avec les
   composants spécifiques de la page pilier.
   =========================================== */

/* ---- Header overlay (même comportement que les pages service :
        menu transparent superposé au hero, sombre en sticky) ---- */
body.page-template-page-gros-oeuvre .sc_layouts_title {
	display: none !important;
}

body.page-template-page-gros-oeuvre .top_panel .elementor-section:has(.sc_layouts_title) {
	display: none !important;
}

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

body.page-template-page-gros-oeuvre .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-gros-oeuvre .top_panel .elementor-section,
body.page-template-page-gros-oeuvre .top_panel .elementor-container,
body.page-template-page-gros-oeuvre .top_panel .sc_layouts_row {
	background-color: transparent !important;
	background-image: none !important;
}

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

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

body.page-template-page-gros-oeuvre .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-gros-oeuvre .top_panel.ri-header-sticky .elementor-section,
body.page-template-page-gros-oeuvre .top_panel.ri-header-sticky .sc_layouts_row {
	background-color: transparent !important;
}

/* ---- Hero ---- */
.ri-go-hero__meta {
	font-size: 0.95rem;
	opacity: 0.9;
	margin-top: 0.6rem;
}

.ri-go-hero__buttons {
	display: flex;
	gap: 0.9rem;
	flex-wrap: wrap;
	margin-top: 1.4rem;
}

/* ---- Micro-barre de crédibilité ---- */
.ri-go-cred {
	background: var(--ri-color-surface-alt);
	border-bottom: 1px solid var(--ri-color-border);
	padding: 0.9rem 2rem;
}

.ri-go-cred__inner {
	display: flex;
	justify-content: center;
	gap: 2.2rem;
	flex-wrap: wrap;
	max-width: 1100px;
	margin: 0 auto;
}

.ri-go-cred__inner span {
	font-family: var(--ri-font-body);
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--ri-color-ink);
	position: relative;
	padding-left: 1.4rem;
}

.ri-go-cred__inner span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ri-color-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Sections ---- */
.ri-go-section {
	padding: clamp(3rem, 6vw, 5rem) 2rem;
}

.ri-go-section--alt {
	background: var(--ri-color-surface-alt);
	border-top: 1px solid var(--ri-color-border);
	border-bottom: 1px solid var(--ri-color-border);
}

.ri-go-section__inner {
	max-width: 980px;
	margin: 0 auto;
}

.ri-go-section h2 {
	font-family: var(--ri-font-heading);
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
	color: var(--ri-color-ink);
	margin: 0.4rem 0 1rem;
}

.ri-go-section h3 {
	font-family: var(--ri-font-heading);
	font-size: 1.15rem;
	color: var(--ri-color-ink);
	margin: 1.8rem 0 0.7rem;
}

.ri-go-section p,
.ri-go-section li {
	color: var(--ri-color-text);
	line-height: 1.65;
}

.ri-go-lead {
	font-size: 1.12rem;
}

.ri-go-highlight {
	background: var(--ri-color-surface);
	border-left: 4px solid var(--ri-color-accent);
	padding: 0.9rem 1.2rem;
	border-radius: 0 8px 8px 0;
	margin-top: 1.4rem;
	font-size: 1.05rem;
}

.ri-go-section--alt .ri-go-highlight {
	background: #fff;
}

.ri-go-note {
	font-size: 0.92rem;
	color: var(--ri-color-soft);
	margin-top: 0.8rem;
}

/* ---- Listes ---- */
.ri-go-how,
.ri-go-steps {
	padding-left: 1.4rem;
	margin: 0.6rem 0 1rem;
}

.ri-go-how li,
.ri-go-steps li {
	margin-bottom: 0.55rem;
}

.ri-go-partners,
.ri-go-checklist {
	list-style: none;
	padding: 0;
	margin: 0.6rem 0 1rem;
}

.ri-go-partners li,
.ri-go-checklist li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.5rem;
}

.ri-go-partners li::before,
.ri-go-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--ri-color-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Cartes comparatives ---- */
.ri-go-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
	margin: 1.4rem 0;
}

.ri-go-compare__card {
	background: #fff;
	border: 1px solid var(--ri-color-border);
	border-radius: 12px;
	padding: 1.4rem 1.5rem;
}

.ri-go-compare__card--accent {
	border-color: var(--ri-color-accent);
	box-shadow: 0 8px 24px var(--ri-color-shadow);
}

.ri-go-compare__card h3 {
	margin-top: 0;
	font-size: 1.05rem;
}

.ri-go-compare__card small {
	font-weight: 400;
	color: var(--ri-color-soft);
}

.ri-go-compare__card ul {
	list-style: none;
	padding: 0;
	margin: 0.8rem 0 0;
}

.ri-go-compare__card li {
	padding: 0.4rem 0;
	border-bottom: 1px dashed var(--ri-color-border);
	font-size: 0.95rem;
}

.ri-go-compare__card li:last-child {
	border-bottom: none;
}

/* ---- Tableaux ---- */
.ri-go-tablewrap {
	overflow-x: auto;
	margin: 1.2rem 0;
	-webkit-overflow-scrolling: touch;
}

.ri-go-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--ri-color-border);
	border-radius: 10px;
	overflow: hidden;
	font-size: 0.94rem;
	min-width: 560px;
}

.ri-go-table th {
	background: var(--ri-color-ink);
	color: #fff;
	font-family: var(--ri-font-body);
	font-weight: 600;
	text-align: left;
	padding: 0.75rem 1rem;
}

.ri-go-table td {
	padding: 0.7rem 1rem;
	border-top: 1px solid var(--ri-color-border);
	vertical-align: top;
}

.ri-go-table tbody tr:nth-child(even) {
	background: var(--ri-color-surface-alt);
}

/* ---- Grilles de cartes ---- */
.ri-go-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.1rem;
	margin: 1.4rem 0;
}

.ri-go-card {
	background: #fff;
	border: 1px solid var(--ri-color-border);
	border-radius: 12px;
	padding: 1.2rem 1.3rem;
}

.ri-go-card h3 {
	margin: 0 0 0.6rem;
	font-size: 1.02rem;
}

.ri-go-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ri-go-card li {
	position: relative;
	padding-left: 1.1rem;
	margin-bottom: 0.4rem;
	font-size: 0.93rem;
}

.ri-go-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ri-color-accent);
}

.ri-go-card p {
	font-size: 0.93rem;
	margin: 0;
}

/* ---- Encadré engagement ---- */
.ri-go-engage {
	background: var(--ri-color-ink);
	color: #fff;
	border-radius: 12px;
	padding: 1.5rem 1.7rem;
	margin-top: 1.8rem;
}

.ri-go-engage h3 {
	color: #fff;
	margin-top: 0;
}

.ri-go-engage p,
.ri-go-engage li {
	color: rgba(255, 255, 255, 0.88);
}

.ri-go-engage ul {
	list-style: none;
	padding: 0;
	margin: 0.6rem 0;
}

.ri-go-engage li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
}

.ri-go-engage li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ri-color-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Médias ---- */
.ri-go-media {
	margin: 1.6rem 0;
}

.ri-go-media img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.ri-go-media figcaption {
	font-size: 0.88rem;
	color: var(--ri-color-soft);
	margin-top: 0.5rem;
	text-align: center;
}

/* ---- Timeline process ---- */
.ri-go-timeline {
	display: grid;
	gap: 1.1rem;
	margin-top: 1.6rem;
}

.ri-go-timeline__step {
	position: relative;
	background: #fff;
	border: 1px solid var(--ri-color-border);
	border-radius: 12px;
	padding: 1.3rem 1.5rem 1.3rem 4.4rem;
}

.ri-go-timeline__num {
	position: absolute;
	left: 1.2rem;
	top: 1.25rem;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--ri-color-accent);
	color: #fff;
	font-family: var(--ri-font-heading);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ri-go-timeline__step h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
}

.ri-go-timeline__step h3 small {
	font-weight: 400;
	color: var(--ri-color-soft);
	font-size: 0.85rem;
}

.ri-go-timeline__step p {
	margin: 0;
	font-size: 0.95rem;
}

/* ---- FAQ groupes ---- */
.ri-go-faq-group {
	font-family: var(--ri-font-heading);
	color: var(--ri-color-ink);
	font-size: 1.05rem;
	margin: 2rem 0 0.8rem;
}

/* ---- Signature ---- */
.ri-go-signature {
	margin-top: 2rem;
	font-size: 0.8rem;
	opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.ri-go-compare {
		grid-template-columns: 1fr;
	}

	.ri-go-section {
		padding: 2.4rem 1.2rem;
	}

	.ri-go-cred__inner {
		gap: 0.9rem 1.6rem;
	}
}
