/* ==========================================================================
   RCTECH+ — feuille de style principale
   ========================================================================== */

:root {
	--navy: #17325c;
	--navy-2: #2c4770;
	--navy-3: #0f2443;
	--blue: #1f7fd1;
	--blue-2: #3aa0f0;
	--sky: #e8f3fc;
	--ink: #13223a;
	--muted: #5b6b82;
	--line: #e3e9f1;
	--alt: #f5f8fc;
	--white: #fff;

	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-head: 'Manrope', system-ui, sans-serif;

	--wide: 1200px;
	--content: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(19, 34, 58, .06), 0 8px 24px rgba(19, 34, 58, .08);
	--shadow-lg: 0 2px 4px rgba(19, 34, 58, .06), 0 24px 48px rgba(19, 34, 58, .14);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--navy);
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0 0 .6em;
	font-weight: 700;
	text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.rct-skip {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.rct-skip:focus { top: 12px; color: #fff; }

.rct-wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.rct-section { padding-block: clamp(56px, 8vw, 104px); }

.rct-icon { width: 1.1em; height: 1.1em; flex: none; }

.rct-eyebrow {
	display: inline-flex; align-items: center; gap: .5em; flex-wrap: wrap;
	font-family: var(--font-head);
	font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 1rem;
}
.rct-eyebrow::before {
	content: ""; width: 28px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--blue), var(--blue-2));
}
.rct-eyebrow a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.rct-eyebrow a:hover { color: var(--navy); }

/* --- Boutons ---------------------------------------------------------------- */

.rct-btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.6em;
	border-radius: 999px;
	border: 2px solid transparent;
	background: linear-gradient(135deg, var(--blue) 0%, #1765b0 100%);
	color: #fff;
	font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(31, 127, 209, .28);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
	cursor: pointer;
}
.rct-btn:hover,
.wp-block-button__link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31, 127, 209, .36); }
.rct-btn .rct-icon { transition: transform .25s var(--ease); }
.rct-btn:hover .rct-icon { transform: translateX(3px); }

.rct-btn--small { padding: .6em 1.1em; font-size: .9375rem; }
.rct-btn--ghost,
.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, .7);
	border-color: var(--navy);
	color: var(--navy);
	box-shadow: none;
	backdrop-filter: blur(6px);
}
.rct-btn--ghost:hover,
.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; box-shadow: none; }
.rct-btn--light { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.rct-btn--light:hover { color: var(--navy); }
.rct-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: none; }
.rct-btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }

.wp-block-buttons { gap: 12px; margin-top: 1.5rem; }

/* --- En-tête --------------------------------------------------------------- */

.rct-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.admin-bar .rct-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rct-header { top: 0; } }
.rct-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(19, 34, 58, .06); }

.rct-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.rct-header__brand { flex: none; }
.rct-header__brand img { width: auto; height: 52px; transition: height .3s; }
.rct-header.is-scrolled .rct-header__brand img { height: 44px; }

.rct-nav { margin-left: auto; display: flex; align-items: center; }
.rct-nav__list,
.rct-nav .menu > ul,
.rct-nav > div > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rct-nav li { position: relative; list-style: none; }
.rct-nav a {
	display: block; padding: .55em .95em; border-radius: 999px;
	font-family: var(--font-head); font-weight: 600; font-size: .98rem;
	color: var(--ink); text-decoration: none;
	transition: background .2s, color .2s;
}
.rct-nav a:hover { background: var(--sky); color: var(--navy); }
.rct-nav .current-menu-item > a,
.rct-nav .current_page_item > a,
.rct-nav .current-menu-ancestor > a,
.rct-nav .current-page-ancestor > a,
.rct-nav .current_page_parent > a { color: var(--blue); background: var(--sky); }
.rct-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; margin: 0; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.rct-nav li:hover > .sub-menu,
.rct-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rct-nav__phone { display: none !important; }

.rct-header__cta { flex: none; }
.rct-burger {
	display: none; margin-left: auto;
	width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--line); background: #fff; color: var(--navy);
	align-items: center; justify-content: center; cursor: pointer;
}
.rct-burger .rct-icon { width: 22px; height: 22px; }

@media (max-width: 1020px) {
	:root { --header-h: 72px; }
	.rct-header__brand img { height: 44px; }
	.rct-header__cta { display: none; }
	.rct-burger { display: inline-flex; }
	.rct-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 8px;
		padding: 16px var(--gutter) 24px;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .rct-nav { top: calc(var(--header-h) + 46px); }
	.rct-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.rct-nav__list, .rct-nav > div > ul { flex-direction: column; gap: 2px; }
	.rct-nav a { padding: .8em 1em; font-size: 1.05rem; border-radius: 12px; }
	.rct-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.rct-nav__phone {
		display: flex !important; align-items: center; gap: .5em; justify-content: center;
		margin-top: 8px; background: var(--navy); color: #fff !important;
	}
	.rct-nav__phone:hover { background: var(--blue) !important; }
}

/* --- Héros (accueil) ------------------------------------------------------- */

.rct-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(88vh, 820px);
	display: flex; align-items: flex-start;
	padding-top: clamp(48px, 9vw, 120px);
	padding-bottom: clamp(220px, 30vw, 380px);
	background: linear-gradient(180deg, #fff 0%, #fff 40%, #eef6fd 100%);
}
.rct-hero__bg { position: absolute; inset: 0; z-index: -1; }
.rct-hero__bg img {
	width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 100%;
	animation: rct-float 14s ease-in-out infinite alternate;
	transform-origin: 50% 100%;
}
@keyframes rct-float {
	from { transform: scale(1.02) translateY(0); }
	to { transform: scale(1.06) translateY(-1.5%); }
}
.rct-hero__inner { position: relative; }
.rct-hero__title {
	font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.4rem);
	line-height: 1.05; letter-spacing: -0.035em;
	max-width: 15ch; margin-bottom: .45em;
	background: linear-gradient(120deg, var(--navy-3) 10%, var(--navy) 45%, var(--blue) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.rct-hero__text { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.rct-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.rct-hero .rct-eyebrow,
.rct-hero__title,
.rct-hero__text,
.rct-hero__actions { animation: rct-rise .9s var(--ease) both; }
.rct-hero__title { animation-delay: .08s; }
.rct-hero__text { animation-delay: .16s; }
.rct-hero__actions { animation-delay: .24s; }
@keyframes rct-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- Bandeau de titre des pages ------------------------------------------- */

.rct-pagehead {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
	background:
		radial-gradient(900px 340px at 85% 0%, rgba(58, 160, 240, .18), transparent 70%),
		linear-gradient(180deg, var(--alt), #fff);
	border-bottom: 1px solid var(--line);
}
.rct-pagehead::after {
	content: ""; position: absolute; z-index: -1; right: -4%; bottom: -1px;
	width: min(720px, 70%); aspect-ratio: 2150 / 1080;
	background: url('../img/hero-eau-sm.jpg') right bottom / contain no-repeat;
	opacity: .55;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
	mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.rct-pagehead__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); letter-spacing: -0.03em; max-width: 20ch; margin-bottom: .35em; }
.rct-pagehead__intro { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; margin: 0; }

/* --- Contenu éditable (blocs) ---------------------------------------------- */

.rct-entry { padding-block: clamp(48px, 7vw, 96px); }
.rct-entry--home { padding-block: 0; }
.rct-entry > * { max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.rct-entry > .alignwide,
.rct-entry > .wp-block-columns,
.rct-entry > .rct-maps,
.rct-entry > .rct-grid,
.rct-entry > .rct-affiliations,
.rct-entry > .rct-wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.rct-entry > .rct-maps { padding: 0; margin: clamp(40px, 6vw, 72px) auto 0; width: calc(100% - 2 * var(--gutter)); max-width: var(--wide); }
.rct-contact.wp-block-columns { align-items: flex-start; gap: clamp(28px, 5vw, 64px); }
.rct-contact h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.rct-entry > .alignfull { max-width: none; padding-inline: 0; }
.rct-entry > .wp-block-columns { padding-inline: var(--gutter); }
.rct-entry > :first-child { margin-top: 0; }
.rct-entry h2 { margin-top: 1.6em; }
.rct-entry h2:first-child, .rct-band h2 { margin-top: 0; }

/* Bandes pleine largeur : groupe avec la classe « rct-band » */
.rct-entry > .rct-band {
	max-width: none; margin: 0; padding: clamp(56px, 8vw, 104px) 0;
}
.rct-entry > .rct-band:not(.is-alt):not(.is-dark):not(.is-sky) + .rct-band:not(.is-alt):not(.is-dark):not(.is-sky) { padding-top: 0; }
.rct-band > * { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.rct-band > .wp-block-columns { padding-inline: var(--gutter); }
.rct-band.is-alt { background: var(--alt); }
.rct-band.is-sky { background: linear-gradient(180deg, var(--sky), #fff); }
.rct-band.is-dark {
	background:
		radial-gradient(800px 400px at 90% 10%, rgba(58, 160, 240, .25), transparent 70%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
	color: rgba(255, 255, 255, .86);
}
.rct-band.is-dark h2, .rct-band.is-dark h3 { color: #fff; }
.rct-band.is-dark .rct-eyebrow { color: var(--blue-2); }

.rct-head { text-align: center; }
.rct-head > p:not(.rct-eyebrow) { color: var(--muted); max-width: 62ch; margin-inline: auto; }
.rct-head .rct-eyebrow { justify-content: center; }
.rct-head .rct-eyebrow::before { display: none; }
.rct-head + * { margin-top: clamp(28px, 4vw, 48px) !important; }
.rct-band.is-dark .rct-head > p:not(.rct-eyebrow) { color: rgba(255, 255, 255, .75); }

.rct-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--navy); line-height: 1.6; font-weight: 500; }

.wp-block-columns { gap: clamp(20px, 3vw, 32px); margin-bottom: 0; }

/* Chiffres clés */
.rct-stats {
	margin-top: calc(-1 * clamp(40px, 6vw, 72px)) !important;
	position: relative; z-index: 2;
}
.rct-stats.wp-block-columns { padding-inline: var(--gutter); }
.rct-stat {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 24px 24px 22px; box-shadow: var(--shadow);
	height: 100%;
}
.rct-stat p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.rct-stat p strong {
	display: block; margin-bottom: 6px;
	font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1;
	color: var(--navy); letter-spacing: -0.02em;
}

@media (max-width: 781px) {
	.rct-stats.wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
	.rct-stat { padding: 16px 16px 14px; border-radius: var(--radius); }
	.rct-stat p { font-size: .85rem; }
}

/* Deux colonnes texte / encart */
.rct-split.wp-block-columns { align-items: center; gap: clamp(32px, 6vw, 80px); }
.rct-panel {
	position: relative; overflow: hidden;
	border-radius: var(--radius-lg);
	padding: clamp(28px, 4vw, 44px);
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
	color: rgba(255, 255, 255, .85);
	box-shadow: var(--shadow-lg);
}
.rct-panel::after {
	content: ""; position: absolute; inset: auto -30% -45% auto; width: 90%; aspect-ratio: 1;
	background: radial-gradient(circle, rgba(58, 160, 240, .35), transparent 65%);
	pointer-events: none;
}
.rct-panel h3 { color: #fff; margin-bottom: 1.2em; }
.rct-panel > * { position: relative; z-index: 1; }

/* Listes à coches */
.rct-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rct-checklist li { position: relative; padding-left: 34px; line-height: 1.5; }
.rct-checklist li::before {
	content: ""; position: absolute; left: 0; top: .05em;
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(58, 160, 240, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233aa0f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.rct-checklist strong { color: inherit; }
.rct-panel .rct-checklist strong { color: #fff; }

/* Cartes de services */
.rct-services.wp-block-columns { flex-wrap: wrap !important; }
.rct-service {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 14px 14px 26px;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.rct-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.rct-service .wp-block-image { margin: 0 0 20px; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; }
.rct-service .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.rct-service:hover .wp-block-image img { transform: scale(1.05); }
.rct-service h3 { padding-inline: 10px; margin-bottom: .5em; }
.rct-service ul { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 8px; }
.rct-service li { position: relative; padding-left: 18px; color: var(--muted); font-size: .97rem; line-height: 1.45; }
.rct-service li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
@media (min-width: 782px) and (max-width: 1100px) {
	.rct-services .wp-block-column { flex-basis: calc(50% - 16px) !important; }
}

/* Valeurs / engagements */
.rct-values.wp-block-columns { flex-wrap: wrap !important; }
.rct-value {
	position: relative; background: #fff; border-radius: var(--radius-lg);
	padding: 28px 26px 24px; border: 1px solid var(--line);
	counter-increment: rct-value;
}
.rct-values { counter-reset: rct-value; }
.rct-value::before {
	content: "0" counter(rct-value);
	display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
	border-radius: 12px; background: var(--sky); color: var(--blue);
	font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.rct-value h3 { margin: 0 0 .55em; }
.rct-value p { color: var(--muted); margin: 0; font-size: .98rem; }
.rct-band.is-dark .rct-value { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.rct-band.is-dark .rct-value::before { background: rgba(58, 160, 240, .18); color: var(--blue-2); }
.rct-band.is-dark .rct-value p { color: rgba(255, 255, 255, .72); }
@media (min-width: 782px) and (max-width: 1100px) {
	.rct-values .wp-block-column { flex-basis: calc(50% - 16px) !important; }
}

/* Pastilles « domaines » */
.rct-chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rct-chips li {
	padding: .5em 1.05em; border-radius: 999px;
	background: #fff; border: 1px solid var(--line);
	font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy);
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.rct-chips li:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

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

.rct-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.rct-chip {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--line); background: #fff; color: var(--navy);
	font: 600 .95rem/1.2 var(--font-head);
	transition: .2s;
}
.rct-chip span { font-size: .8em; padding: .15em .55em; border-radius: 999px; background: var(--sky); color: var(--blue); }
.rct-chip:hover { border-color: var(--blue); }
.rct-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.rct-chip.is-active span { background: rgba(255, 255, 255, .16); color: #fff; }

.rct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 3vw, 32px); }

.rct-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rct-card[hidden] { display: none; }
.rct-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rct-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.rct-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.rct-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.rct-card:hover .rct-card__media img { transform: scale(1.06); }
.rct-card__tag {
	position: absolute; left: 14px; top: 14px;
	padding: .35em .85em; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--navy);
	font: 700 .75rem/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase;
	backdrop-filter: blur(6px);
}
.rct-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rct-card__meta { font-size: .85rem; font-weight: 600; color: var(--blue); margin: 0 0 6px; letter-spacing: .02em; }
.rct-card__title { font-size: 1.2rem; margin: 0 0 .4em; }
.rct-card__excerpt { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0 0 16px; }
.rct-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font: 700 .92rem var(--font-head); color: var(--navy); }
.rct-card:hover .rct-card__more { color: var(--blue); }
.rct-card__more .rct-icon { transition: transform .25s var(--ease); }
.rct-card:hover .rct-card__more .rct-icon { transform: translateX(4px); }

/* Fiche projet */
.rct-pagehead--project .rct-pagehead__title { max-width: 26ch; }
.rct-project__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.rct-project__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--alt); }
.rct-project__media img { width: 100%; }
.rct-project__facts { position: sticky; top: calc(var(--header-h) + 24px); }
.rct-project__facts dl { margin: 0 0 28px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rct-project__facts dl > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rct-project__facts dl > div:last-child { border-bottom: 0; }
.rct-project__facts dt { display: flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.rct-project__facts dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.rct-project__subtitle { font-size: 1.15rem; }
.rct-project__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.rct-project__nav a { display: inline-flex; align-items: center; gap: .6em; font: 600 1rem var(--font-head); color: var(--navy); text-decoration: none; max-width: 48%; }
.rct-project__nav a:hover { color: var(--blue); }
.rct-project__next { margin-left: auto; text-align: right; }
@media (max-width: 900px) {
	.rct-project__grid { grid-template-columns: 1fr; }
	.rct-project__facts { position: static; }
}

/* --- Bandeau CTA ----------------------------------------------------------- */

.rct-cta { padding-block: clamp(48px, 6vw, 72px); }
.rct-cta__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
	padding: clamp(32px, 5vw, 56px) !important;
	max-width: calc(var(--wide)) !important;
	border-radius: 28px;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(58, 160, 240, .35), transparent 70%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
	color: rgba(255, 255, 255, .82);
	box-shadow: var(--shadow-lg);
}
.rct-cta__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); margin-bottom: .3em; }
.rct-cta__inner p { margin: 0; }
.rct-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .rct-cta__inner { width: auto; margin-inline: var(--gutter); border-radius: 22px; } }

/* --- Contact --------------------------------------------------------------- */

.rct-offices { display: grid; gap: 20px; }
.rct-office {
	padding: 24px 26px; border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line);
}
.rct-office__name { display: flex; align-items: center; gap: .5em; font-size: 1.15rem; margin-bottom: .5em; }
.rct-office__name .rct-icon { color: var(--blue); }
.rct-office__address { color: var(--muted); }
.rct-office__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.rct-office__links a { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; }

.rct-office { position: relative; }
.rct-office.is-main { border-color: rgba(31, 127, 209, .45); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--sky), #fff 60%); }

.rct-maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.rct-map { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rct-map.is-main { border-color: rgba(31, 127, 209, .45); }
.rct-map__head { display: flex; align-items: center; gap: .6em; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--alt); color: var(--muted); font-size: .95rem; line-height: 1.4; }
.rct-map.is-main .rct-map__head { background: var(--sky); }
.rct-map__head .rct-icon { color: var(--blue); }
.rct-map__head strong { color: var(--navy); font-family: var(--font-head); margin-right: .35em; }
.rct-map__frame { display: block; width: 100%; height: clamp(300px, 30vw, 400px); border: 0; flex: none; }
.rct-map__caption { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.rct-map__caption a { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; }

.rct-form {
	padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.rct-form p { margin: 0 0 18px; }
.rct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .rct-form__row { grid-template-columns: 1fr; } }
.rct-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.rct-form input:not([type="checkbox"]),
.rct-form select,
.rct-form textarea {
	width: 100%; padding: .8em 1em;
	border: 1.5px solid var(--line); border-radius: 12px; background: var(--alt);
	font: inherit; font-size: 1rem; color: var(--ink);
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.rct-form input:focus, .rct-form select:focus, .rct-form textarea:focus {
	outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31, 127, 209, .12);
}
.rct-form textarea { resize: vertical; min-height: 150px; }
.rct-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.rct-form__consent input { margin-top: .2em; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.rct-form__consent span { flex: 1; min-width: 0; }
.rct-form__consent a { font-weight: 600; }
.rct-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rct-form__notice { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.rct-form__notice.is-success { background: #e7f7ee; color: #146c3c; border: 1px solid #bfe8cf; }
.rct-form__notice.is-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* Affiliations */
.rct-affiliations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.rct-affiliation {
	display: flex; align-items: center; gap: 20px;
	padding: 18px 22px; border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line);
	color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.45;
	transition: box-shadow .3s, transform .3s var(--ease);
}
.rct-affiliation:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--muted); }
.rct-affiliation img { width: 96px; flex: none; border-radius: 10px; }
.rct-affiliation strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.rct-affiliation small { display: block; margin-top: 4px; font-size: .82rem; }

/* --- Pied de page ---------------------------------------------------------- */

.rct-footer { color: rgba(255, 255, 255, .75); }
.rct-footer__wave { color: var(--navy-3); line-height: 0; }
.rct-footer__wave svg { width: 100%; height: clamp(40px, 6vw, 80px); }
.rct-footer__body { background: var(--navy-3); padding-top: clamp(24px, 4vw, 48px); }
.rct-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 960px) { .rct-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rct-footer__grid { grid-template-columns: 1fr; } }
.rct-footer__logo { background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; width: 150px; }
.rct-footer__about p { font-size: .95rem; max-width: 36ch; }
.rct-footer__title { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 1em; }
.rct-footer p { font-size: .95rem; }
.rct-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.rct-footer a:hover { color: #fff; text-decoration: underline; }
.rct-footer__menu, .rct-footer__legal { list-style: none; margin: 0; padding: 0; }
.rct-footer__menu { display: grid; gap: 8px; font-size: .95rem; }
.rct-footer__social { display: inline-flex; align-items: center; gap: .5em; }
.rct-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
	padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .85rem;
}
.rct-footer__bottom p { margin: 0; font-size: .85rem; }
.rct-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rct-footer__legalbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.rct-footer .rcpm-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; background: none; }
.rct-footer .rcpm-legal-links a { color: rgba(255, 255, 255, .85); font-size: .85rem; }
.rct-footer__cookies { background: none; border: 0; padding: 0; cursor: pointer; color: rgba(255, 255, 255, .85); font: inherit; font-size: .85rem; }
.rct-footer__cookies:hover { color: #fff; text-decoration: underline; }

/* --- Apparition au défilement --------------------------------------------- */

.js .rct-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rct-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .rct-reveal { opacity: 1; transform: none; }
}

/* --- Divers --------------------------------------------------------------- */

.rct-list { display: grid; gap: 32px; max-width: var(--content); }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
