/*
Theme Name:   RenovGessien
Theme URI:    https://framegenesis.com
Description:  RenovGessien — Couverture, nettoyage et peinture, Pays de Gex. Refonte complète (child theme based on Frost) suite à l'audit SEO du 7 septembre 2026 : passage d'un site d'une page à une architecture multi-page, une URL par prestation.
Author:       FrameGenesis
Author URI:   https://framegenesis.com
Template:     frost
Version:      1.0.0
Text Domain:  renovgessien
*/

/* ==========================================================================
   RenovGessien — design system entièrement personnalisé (classes rg-*)
   Frost ne fournit que la plomberie FSE (template parts / mécanique de
   block-template) ; l'habillage visuel ci-dessous est propre à ce thème.
   ========================================================================== */

:root {
	/* Bleu repris du vrai logo RenovGessien (renovgessienlogo.png, récupéré le
	   2026-09-07 sur l'ancien site), assombri pour l'accessibilité (contraste
	   texte/fond) tout en restant reconnaissable. */
	--rg-primary: #2c5883;
	--rg-primary-dark: #1c3c5c;
	--rg-secondary: #c1512e;
	--rg-secondary-dark: #9c3f22;
	--rg-bg: #ffffff;
	--rg-bg-alt: #f5f7f9;
	--rg-text: #262e35;
	--rg-muted: #5c6773;
	--rg-accent-light: #e7edf3;
	--rg-border: #e2e8ee;
	--rg-success: #2f7d4f;
	--rg-white: #ffffff;
	--rg-shadow-card: 0 4px 20px rgba(21, 58, 91, 0.08);
	--rg-shadow-card-hover: 0 12px 32px rgba(21, 58, 91, 0.14);
	--rg-radius: 12px;
	--rg-radius-sm: 8px;
	--rg-header-h: 80px;
	--rg-callbar-h: 56px;
	--rg-font-heading: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
	--rg-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--rg-container: 1240px;
}

/* ---------- Base ---------- */

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	overflow-x: hidden;
	font-family: var(--rg-font-body);
	color: var(--rg-text);
	background: var(--rg-bg);
	/* E15/M1 : espace réservé en bas d'écran mobile pour la barre d'appel fixe */
	padding-bottom: 0;
}

body.has-rg-callbar {
	padding-bottom: var(--rg-callbar-h);
}

@media (min-width: 783px) {
	body.has-rg-callbar {
		padding-bottom: 0;
	}
}

.site-header,
body.wp-block-template-part.site-header {
	margin: 0;
	padding: 0;
}

img {
	max-width: 100%;
	height: auto;
}

.rg-container {
	max-width: var(--rg-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Typography helpers ---------- */

.rg-eyebrow {
	display: inline-block;
	font-family: var(--rg-font-heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rg-secondary);
	margin: 0 0 12px;
}

.rg-section h2 {
	font-family: var(--rg-font-heading);
	font-weight: 700;
	color: var(--rg-primary);
	line-height: 1.2;
	margin: 0 0 16px;
}

.rg-section h3 {
	font-family: var(--rg-font-heading);
	font-weight: 600;
	color: var(--rg-primary);
	line-height: 1.3;
}

.rg-section__head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.rg-section__head--left {
	margin: 0 0 40px;
	text-align: left;
	max-width: 760px;
}

.rg-section__intro {
	font-size: 18px;
	color: var(--rg-muted);
	margin: 0;
}

.rg-muted {
	color: var(--rg-muted);
	font-size: 15px;
}

.rg-lead {
	font-size: 19px;
	line-height: 1.6;
	color: var(--rg-text);
}

/* ---------- Buttons ---------- */

.rg-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--rg-font-heading);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	border-radius: var(--rg-radius-sm);
	padding: 15px 28px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.rg-btn--primary {
	background: var(--rg-secondary);
	color: var(--rg-white);
}

.rg-btn--primary:hover {
	background: var(--rg-secondary-dark);
	transform: translateY(-1px);
}

.rg-btn--ghost {
	background: transparent;
	color: var(--rg-white);
	border-color: rgba(255, 255, 255, 0.55);
}

.rg-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.rg-btn--outline {
	background: transparent;
	color: var(--rg-primary);
	border-color: var(--rg-border);
	padding: 11px 20px;
	font-size: 14px;
}

.rg-btn--outline:hover {
	border-color: var(--rg-primary);
}

.rg-btn--lg {
	padding: 17px 32px;
	font-size: 16px;
}

.rg-btn--sm {
	padding: 9px 16px;
	font-size: 13px;
}

/* ---------- Header ---------- */

.rg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--rg-white);
	border-bottom: 1px solid var(--rg-border);
}

.rg-header__inner {
	max-width: var(--rg-container);
	margin: 0 auto;
	padding: 0 24px;
	height: var(--rg-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.rg-logo {
	display: inline-flex;
	align-items: baseline;
	text-decoration: none;
	color: var(--rg-primary);
}

.rg-logo__text {
	font-family: var(--rg-font-heading);
	font-weight: 500;
	font-size: 21px;
	letter-spacing: -0.01em;
}

.rg-logo__text strong {
	font-weight: 700;
	color: var(--rg-secondary);
}

.rg-logo--light,
.rg-logo--light .rg-logo__text {
	color: var(--rg-white);
}

.rg-logo img {
	height: 40px;
	width: auto;
	display: block;
}

.rg-logo--light img {
	/* Le logo réel est en bleu sur fond transparent ; sur le footer sombre on
	   l'éclaircit pour rester lisible plutôt que de refaire un fichier dédié. */
	filter: brightness(0) invert(1);
	opacity: 0.92;
}

.rg-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.rg-nav ul {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.rg-nav a {
	font-family: var(--rg-font-heading);
	font-weight: 500;
	font-size: 15px;
	color: var(--rg-text);
	text-decoration: none;
}

.rg-nav a:hover {
	color: var(--rg-secondary);
}

.rg-nav__actions-mobile {
	display: none;
}

/* Sous-menu "Nos prestations" (8 pages dédiées, C7) */
.rg-nav .has-submenu {
	position: relative;
}

.rg-nav .submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 901px) {
	/* Méga-menu large en 2 colonnes plutôt qu'une liste étroite qui débordait
	   de sa boîte (retour client). Positionné en `fixed` et centré sur le
	   viewport (pas ancré au lien "Prestations" lui-même) : il ne peut donc
	   jamais dépasser l'écran ni se couper, quelle que soit la largeur de
	   fenêtre ou la position du lien dans la barre. */
	.rg-nav .submenu {
		position: fixed;
		top: var(--rg-header-h);
		left: 50%;
		width: min(640px, calc(100vw - 48px));
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px;
		background: var(--rg-white);
		border: 1px solid var(--rg-border);
		border-radius: var(--rg-radius);
		box-shadow: var(--rg-shadow-card-hover);
		padding: 14px;
		opacity: 0;
		visibility: hidden;
		transform: translateX(-50%) translateY(6px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	}

	.rg-nav .has-submenu:hover .submenu,
	.rg-nav .has-submenu:focus-within .submenu {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}

	.rg-nav .submenu li {
		display: block;
	}

	.rg-nav .submenu a {
		display: block;
		padding: 12px 14px;
		border-radius: 6px;
		font-size: 14.5px;
		white-space: normal;
		line-height: 1.35;
	}

	.rg-nav .submenu a:hover {
		background: var(--rg-bg-alt);
	}
}

@media (max-width: 900px) {
	.rg-nav .submenu {
		padding-left: 16px;
		border-left: 2px solid var(--rg-border);
	}

	.rg-nav .submenu a {
		border-bottom: 1px solid var(--rg-border);
		padding: 12px 4px;
		font-size: 15.5px;
	}
}

.rg-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--rg-font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--rg-primary);
	text-decoration: none;
}

.rg-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.rg-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.rg-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--rg-primary);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
	.rg-nav {
		position: fixed;
		inset: var(--rg-header-h) 0 0 0;
		background: var(--rg-white);
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	.rg-nav.is-open {
		transform: translateX(0);
	}

	.rg-nav ul {
		flex-direction: column;
		gap: 4px;
	}

	.rg-nav ul a {
		display: block;
		padding: 14px 4px;
		border-bottom: 1px solid var(--rg-border);
		font-size: 17px;
	}

	.rg-nav__actions-mobile {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 20px;
	}

	.rg-header__actions {
		display: none;
	}

	.rg-nav-toggle {
		display: flex;
	}

	.rg-nav-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.rg-nav-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.rg-nav-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* Barre d'appel fixe mobile (M1) */
.rg-callbar {
	display: none;
}

@media (max-width: 782px) {
	.rg-callbar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99;
		height: var(--rg-callbar-h);
		background: var(--rg-secondary);
	}

	.rg-callbar a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		color: var(--rg-white);
		text-decoration: none;
		font-family: var(--rg-font-heading);
		font-weight: 600;
		font-size: 15px;
	}

	.rg-callbar a + a {
		border-left: 1px solid rgba(255, 255, 255, 0.3);
		background: var(--rg-primary);
	}
}

/* ---------- Breadcrumb (C9) ---------- */

.rg-breadcrumb {
	background: var(--rg-bg-alt);
	border-bottom: 1px solid var(--rg-border);
}

.rg-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 12px 0;
	font-size: 13px;
	color: var(--rg-muted);
}

.rg-breadcrumb a {
	color: var(--rg-muted);
	text-decoration: none;
}

.rg-breadcrumb a:hover {
	color: var(--rg-secondary);
}

.rg-breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: #b7c0c9;
}

.rg-breadcrumb li[aria-current="page"] {
	color: var(--rg-text);
	font-weight: 500;
}

/* ---------- Hero (accueil) ---------- */

.rg-hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--rg-primary) 0%, var(--rg-primary-dark) 100%);
	color: var(--rg-white);
	overflow: hidden;
}

.rg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% 20%, rgba(193, 81, 46, 0.35), transparent 55%);
	pointer-events: none;
}

/* Photo de chantier réelle en fond de hero (voir CLAUDE.md, photos
   récupérées par HTTPS depuis l'ancien site le 2026-09-07). Un dégradé
   sombre par-dessus garde le texte lisible (contraste AA). */
.rg-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.rg-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 70%;
}

.rg-hero__photo::after {
	/* Voile neutre (noir), pas teinté navy : la couleur de marque plaquée sur
	   une photo qui a déjà son propre ciel/toit crée un mélange de couleurs
	   qui jure (retour client). Un noir dégradé, plus fort à gauche pour le
	   texte, laisse la photo respirer à droite. */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(10, 14, 20, 0.82) 0%, rgba(10, 14, 20, 0.62) 38%, rgba(10, 14, 20, 0.18) 75%, rgba(10, 14, 20, 0.05) 100%);
}

.rg-hero .rg-hero__content {
	position: relative;
	z-index: 2;
}

.rg-hero__content {
	position: relative;
	z-index: 1;
	max-width: 680px;
	padding: 120px 24px 80px;
	margin: 0 auto;
}

.rg-hero__title {
	font-family: var(--rg-font-heading);
	font-weight: 700;
	font-size: clamp(32px, 4.4vw, 48px);
	line-height: 1.15;
	margin: 0 0 20px;
}

.rg-hero__subtitle {
	font-size: 19px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 32px;
	max-width: 560px;
}

.rg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 36px;
}

.rg-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.rg-hero__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rg-hero__trust svg {
	flex-shrink: 0;
	color: var(--rg-secondary);
}

/* ---------- Page hero (pages internes) ---------- */

.rg-page-hero {
	background: linear-gradient(135deg, var(--rg-primary) 0%, var(--rg-primary-dark) 100%);
	color: var(--rg-white);
	padding: 56px 0 64px;
}

.rg-page-hero__inner p.rg-eyebrow {
	color: #f2b8a2;
}

.rg-page-hero h1 {
	font-family: var(--rg-font-heading);
	font-weight: 700;
	font-size: clamp(28px, 3.6vw, 40px);
	line-height: 1.2;
	margin: 0 0 14px;
}

.rg-page-hero p.rg-page-hero__lead {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.88);
	max-width: 640px;
	margin: 0;
}

/* ---------- Sections ---------- */

.rg-section {
	padding: 84px 0;
}

.rg-section--alt {
	background: var(--rg-bg-alt);
}

.rg-section--sm {
	padding: 56px 0;
}

/* ---------- Cards / grids ---------- */

.rg-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.rg-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

@media (max-width: 900px) {
	.rg-grid-3,
	.rg-grid-2 {
		grid-template-columns: 1fr;
	}
}

.rg-service-card {
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	padding: 32px;
	box-shadow: var(--rg-shadow-card);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
}

.rg-service-card:hover {
	box-shadow: var(--rg-shadow-card-hover);
	transform: translateY(-2px);
}

.rg-service-card__icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--rg-accent-light);
	color: var(--rg-primary);
	margin-bottom: 18px;
}

.rg-service-card h3 {
	font-size: 19px;
	margin: 0 0 10px;
}

.rg-service-card p {
	color: var(--rg-muted);
	font-size: 15px;
	margin: 0 0 16px;
	flex-grow: 1;
}

.rg-feature-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 14px;
	color: var(--rg-text);
}

.rg-feature-list li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
}

.rg-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--rg-success);
	font-weight: 700;
}

/* ---------- Service page detail (D6/D8) ---------- */

.rg-service-detail {
	max-width: 800px;
}

.rg-service-detail h2 {
	font-size: 26px;
	margin-top: 48px;
}

.rg-service-detail h2:first-child {
	margin-top: 0;
}

.rg-service-detail p {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--rg-text);
}

.rg-service-detail__photo {
	margin: 28px 0;
	border-radius: var(--rg-radius);
	overflow: hidden;
	box-shadow: var(--rg-shadow-card);
}

.rg-service-detail__photo img {
	width: 100%;
	display: block;
}

.rg-service-detail__photo figcaption {
	padding: 12px 16px;
	background: var(--rg-bg-alt);
	color: var(--rg-muted);
	font-size: 13.5px;
}

.rg-service-detail ul {
	font-size: 16px;
	line-height: 1.7;
}

.rg-service-detail__aside {
	background: var(--rg-bg-alt);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	padding: 28px;
	position: sticky;
	top: calc(var(--rg-header-h) + 24px);
	align-self: start;
}

.rg-service-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 56px;
	align-items: start;
}

@media (max-width: 960px) {
	.rg-service-layout {
		grid-template-columns: 1fr;
	}

	.rg-service-detail__aside {
		position: static;
	}
}

.rg-service-detail__aside h3 {
	font-size: 16px;
	margin: 0 0 12px;
}

.rg-service-detail__aside ul {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 14.5px;
}

.rg-service-detail__aside li {
	padding: 8px 0;
	border-bottom: 1px solid var(--rg-border);
}

.rg-service-detail__aside li:last-child {
	border-bottom: 0;
}

/* ---------- Étapes numérotées (déroulé d'un chantier/intervention) ---------- */
/* Remplace les paragraphes "1. ... 2. ... 3. ..." en un seul bloc de texte
   (retour client du 2026-09-08 : illisible, pas de mise en page) par une
   vraie liste, un numéro par ligne. */

.rg-steps {
	list-style: none;
	counter-reset: rg-step;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rg-steps li {
	counter-increment: rg-step;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.rg-steps li::before {
	content: counter(rg-step);
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rg-accent-light);
	color: var(--rg-primary);
	font-family: var(--rg-font-heading);
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rg-steps li p {
	margin: 0;
	padding-top: 4px;
}

/* ---------- FAQ ---------- */

.rg-faq {
	max-width: 800px;
	margin: 0 auto;
}

.rg-faq__item {
	border-bottom: 1px solid var(--rg-border);
	padding: 22px 0;
}

.rg-faq__item h3 {
	font-size: 17px;
	margin: 0 0 10px;
}

.rg-faq__item p {
	color: var(--rg-muted);
	font-size: 15.5px;
	line-height: 1.65;
	margin: 0;
}

/* ---------- Pricing (D11) ---------- */

.rg-pricing-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 24px 0;
}

.rg-pricing-table th,
.rg-pricing-table td {
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid var(--rg-border);
}

.rg-pricing-table th {
	font-family: var(--rg-font-heading);
	color: var(--rg-primary);
	background: var(--rg-bg-alt);
}

.rg-pricing-table td:last-child,
.rg-pricing-table th:last-child {
	font-weight: 600;
	color: var(--rg-primary);
	white-space: nowrap;
}

.rg-pricing-note {
	font-size: 13.5px;
	color: var(--rg-muted);
	margin-top: 8px;
}

/* ---------- Zone / villes ---------- */

/* Refonte du 2026-09-07 : l'ancien code distinguait "prioritaire" (pastille
   orange) et "secondaire" (grise) sans explication visible — lu par le
   client comme une incohérence aléatoire. Remplacé par deux groupes
   explicitement titrés : plus de couleur à décoder, juste un intitulé. */
.rg-zone-group {
	max-width: 640px;
	margin: 0 auto 28px;
	text-align: center;
}

.rg-zone-group:last-child {
	margin-bottom: 0;
}

.rg-zone-group__title {
	font-family: var(--rg-font-heading);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rg-muted);
	margin: 0 0 14px;
}

.rg-zone-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rg-zone-list li {
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--rg-primary);
}

.rg-zone-group--priority .rg-zone-list li {
	background: var(--rg-primary);
	border-color: var(--rg-primary);
	color: var(--rg-white);
	font-weight: 600;
}

/* ---------- Réalisations ---------- */

.rg-realisation-card {
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	overflow: hidden;
	box-shadow: var(--rg-shadow-card);
}

.rg-realisation-card__media {
	aspect-ratio: 4 / 3;
	background: var(--rg-accent-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rg-primary);
	overflow: hidden;
}

.rg-realisation-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Galerie photos Google Business Profile (corrige la demande client de
   récupérer les photos de la fiche Google) */
.rg-gbp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.rg-gbp-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--rg-radius-sm);
	box-shadow: var(--rg-shadow-card);
}

.rg-realisation-card__body {
	padding: 22px;
}

.rg-realisation-card__meta {
	font-size: 13px;
	color: var(--rg-secondary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
}

.rg-realisation-card h3 {
	font-size: 18px;
	margin: 0 0 8px;
}

.rg-realisation-card p {
	color: var(--rg-muted);
	font-size: 14.5px;
	margin: 0;
}

/* ---------- Proof / avis ---------- */

.rg-proof {
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	padding: 32px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.rg-proof__score {
	font-family: var(--rg-font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--rg-primary);
	line-height: 1;
}

.rg-proof__stars {
	color: #e0a527;
	font-size: 18px;
	letter-spacing: 2px;
}

.rg-proof p {
	margin: 0;
	color: var(--rg-muted);
	font-size: 15px;
}

/* Section avis vide / en attente de vrais avis Google (voir CLAUDE.md) */
.rg-proof--pending {
	border-style: dashed;
	background: var(--rg-bg-alt);
}

/* ---------- CTA banner ---------- */

.rg-cta-banner {
	background: linear-gradient(135deg, var(--rg-secondary) 0%, var(--rg-secondary-dark) 100%);
	color: var(--rg-white);
	border-radius: var(--rg-radius);
	padding: 48px;
	text-align: center;
}

.rg-cta-banner h2 {
	color: var(--rg-white);
}

.rg-cta-banner p {
	color: rgba(255, 255, 255, 0.9);
	max-width: 560px;
	margin: 0 auto 28px;
}

.rg-cta-banner .rg-btn--primary {
	background: var(--rg-white);
	color: var(--rg-secondary-dark);
}

.rg-cta-banner .rg-btn--primary:hover {
	background: var(--rg-accent-light);
}

.rg-cta-checklist {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	font-size: 14.5px;
}

.rg-cta-checklist li {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ---------- Forms ---------- */

.rg-form {
	max-width: 640px;
}

.rg-form__row {
	margin-bottom: 20px;
}

.rg-form__row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 600px) {
	.rg-form__row--2col {
		grid-template-columns: 1fr;
	}
}

.rg-form label {
	display: block;
	font-family: var(--rg-font-heading);
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--rg-text);
}

.rg-form input,
.rg-form select,
.rg-form textarea {
	width: 100%;
	font-family: var(--rg-font-body);
	font-size: 15px;
	padding: 13px 14px;
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	background: var(--rg-white);
	color: var(--rg-text);
}

.rg-form input:focus,
.rg-form select:focus,
.rg-form textarea:focus {
	outline: 2px solid var(--rg-secondary);
	outline-offset: 1px;
}

.rg-form textarea {
	resize: vertical;
	min-height: 130px;
}

/* Honeypot anti-spam, invisible pour les humains */
.rg-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rg-form__notice {
	border-radius: var(--rg-radius-sm);
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14.5px;
}

.rg-form__notice--success {
	background: #e6f4ea;
	color: var(--rg-success);
	border: 1px solid #b9dfc4;
}

.rg-form__notice--error {
	background: #fbeaea;
	color: #b3261e;
	border: 1px solid #f0c2c0;
}

.rg-contact-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 900px) {
	.rg-contact-info {
		grid-template-columns: 1fr;
	}
}

.rg-contact-block {
	background: var(--rg-bg-alt);
	border-radius: var(--rg-radius);
	padding: 28px;
}

.rg-contact-block h3 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rg-muted);
	margin: 0 0 6px;
}

.rg-contact-block p,
.rg-contact-block a {
	font-size: 16px;
	color: var(--rg-text);
}

.rg-contact-block a {
	text-decoration: none;
	color: var(--rg-primary);
	font-weight: 600;
}

.rg-map {
	border: 0;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: var(--rg-radius);
}

/* ---------- Footer ---------- */

.rg-footer {
	background: var(--rg-primary-dark);
	color: rgba(255, 255, 255, 0.85);
	padding: 64px 0 0;
}

.rg-footer__inner {
	max-width: var(--rg-container);
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

@media (max-width: 900px) {
	.rg-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.rg-footer__inner {
		grid-template-columns: 1fr;
	}
}

.rg-footer__brand p {
	font-size: 14.5px;
	line-height: 1.6;
	margin: 16px 0 0;
	max-width: 320px;
}

.rg-footer h3 {
	font-family: var(--rg-font-heading);
	font-size: 14px;
	color: var(--rg-white);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 16px;
}

.rg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rg-footer li {
	margin-bottom: 10px;
	font-size: 14.5px;
}

.rg-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.rg-footer a:hover {
	color: var(--rg-white);
}

.rg-footer__hours {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 4px;
}

.rg-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px 24px;
	max-width: var(--rg-container);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.rg-footer__bottom a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.rg-footer__bottom a:hover {
	color: var(--rg-white);
}

/* ---------- Prestations — rangées alternées (accueil) ---------- */
/* Remplace l'ancienne grille de cartes à icônes : le client voulait une
   vraie photo par prestation plutôt qu'un pictogramme, présentée comme une
   mini-section (image + texte + lien), pas comme une carte parmi d'autres. */

.rg-service-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 40px 0;
	border-bottom: 1px solid var(--rg-border);
}

.rg-service-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.rg-service-row:first-child {
	padding-top: 0;
}

.rg-service-row__media {
	border-radius: var(--rg-radius);
	overflow: hidden;
	box-shadow: var(--rg-shadow-card);
	aspect-ratio: 4 / 3;
}

.rg-service-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rg-service-row h3 {
	font-size: 22px;
	margin: 0 0 12px;
}

.rg-service-row p {
	color: var(--rg-muted);
	font-size: 15.5px;
	line-height: 1.6;
	margin: 0 0 18px;
}

/* Alternance : rangées paires, image à droite */
.rg-service-row:nth-child(even) .rg-service-row__media {
	order: 2;
}

@media (max-width: 760px) {
	.rg-service-row {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 28px 0;
	}

	.rg-service-row:nth-child(even) .rg-service-row__media {
		order: 0;
	}
}

/* ---------- Blog (corrige le bloc K, aucun espace éditorial avant) ---------- */

.rg-service-card .wp-block-post-featured-image {
	margin: 0 0 16px;
}

.rg-service-card .wp-block-post-featured-image img {
	border-radius: 8px;
	display: block;
	width: 100%;
	object-fit: cover;
	height: 180px;
}

.rg-service-card .wp-block-post-title {
	margin: 0 0 6px;
}

.rg-service-card .wp-block-post-title a {
	color: var(--rg-primary);
	text-decoration: none;
}

.rg-service-card .wp-block-post-date {
	color: var(--rg-secondary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
	display: block;
}

.rg-service-card .wp-block-post-excerpt {
	color: var(--rg-muted);
	font-size: 14.5px;
}

.rg-blog-pagination {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 48px;
	font-family: var(--rg-font-heading);
	font-weight: 600;
}

.rg-blog-pagination a,
.rg-blog-pagination .page-numbers {
	color: var(--rg-primary);
	text-decoration: none;
}

.rg-blog-pagination .current {
	color: var(--rg-secondary);
}

.rg-article__meta {
	color: var(--rg-secondary);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
	margin: 8px 0 28px;
}

.rg-article .wp-block-post-title {
	font-family: var(--rg-font-heading);
	font-weight: 700;
	color: var(--rg-primary);
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.2;
}

.rg-article .wp-block-post-featured-image {
	margin: 0 0 32px;
}

.rg-article .wp-block-post-featured-image img {
	width: 100%;
	border-radius: 12px;
}

.rg-article .wp-block-post-content {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--rg-text);
	max-width: 760px;
}

.rg-article .wp-block-post-content h2 {
	font-family: var(--rg-font-heading);
	color: var(--rg-primary);
	font-size: 24px;
	margin-top: 40px;
}

.rg-article .wp-block-post-content h3 {
	font-size: 19px;
	margin-top: 28px;
}

.rg-article .wp-block-post-content a {
	color: var(--rg-secondary);
}

/* ---------- Lightbox (clic pour agrandir une photo) ---------- */

.rg-lightbox-trigger {
	display: block;
	cursor: zoom-in;
}

.rg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(10, 14, 20, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.rg-lightbox[hidden] {
	display: none;
}

.rg-lightbox img {
	max-width: 100%;
	max-height: 85vh;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rg-lightbox__caption {
	position: absolute;
	bottom: 24px;
	left: 0;
	right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
}

.rg-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.rg-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ---------- Vidéos de chantier ---------- */

.rg-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.rg-video-grid video {
	width: 100%;
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow-card);
	display: block;
	background: #000;
}

/* ---------- Utility ---------- */

.rg-placeholder-note {
	display: inline-block;
	background: #fff4e5;
	border: 1px dashed #e0a527;
	color: #7a5300;
	font-size: 13px;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 0 0 20px;
}
