/*
Theme Name: Provence Intendance
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: provence-intendance
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === root variables — map onto the theme palette === */
:root {
	--site-bg: var( --wp--preset--color--background );
	--site-text: var( --wp--preset--color--text );
	--site-primary: var( --wp--preset--color--primary );
	--site-accent2: var( --wp--preset--color--accent-2 );
	--site-accent3: var( --wp--preset--color--accent-3 );
	--site-surface: var( --wp--preset--color--surface );
	--site-paper: #fbf7ef;
	--site-rule: rgba(26, 25, 23, 0.16);
}

/* === typography === */
body {
	-webkit-font-smoothing: antialiased;
}

.eyebrow {
	font-family: var( --wp--preset--font-family--karla );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --site-accent2 );
	margin: 0 0 1.25rem;
}

/* === header === */
.header-utility {
	padding-block: 0.4rem;
	border-bottom: 1px solid var( --site-rule );
	font-family: var( --wp--preset--font-family--karla );
}
.header-utility .header-tagline {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --site-primary );
}
.site-header {
	position: relative;
	background: var( --site-bg );
	border-top: 2px solid var( --site-primary );
	border-bottom: 1px solid var( --site-rule );
}
.site-header::before,
.site-header::after {
	content: none;
}
.site-header .site-brand {
	display: block;
	position: relative;
	text-align: center;
	font-family: "Pinyon Script", cursive;
	font-weight: 400;
	font-size: 5.2rem;
	line-height: 1;
	color: var( --site-text );
	margin: 0 auto;
}
.site-header .site-brand a {
	position: relative;
	z-index: 1;
	display: block;
	padding: 1.1em 2em 1em;
	text-decoration: none;
	color: inherit;
}
.site-header .site-brand::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../../uploads/2026/11/couronne-provence-intendance.svg") no-repeat center / contain;
	opacity: 0.75;
	pointer-events: none;
	z-index: 0;
}
.site-header .site-brand a::before,
.site-header .site-brand a::after {
	content: "";
	flex: none;
	width: 0.6em;
	height: 1.15em;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 130' fill='%23b24a2b'><path d='M26 128 C26 106 26 84 26 40' fill='none' stroke='%23b24a2b' stroke-width='2'/><path d='M26 34 C34 30 46 24 50 14 C46 30 38 40 26 44 Z'/><path d='M26 54 C34 50 46 44 50 34 C46 50 38 60 26 64 Z'/><path d='M26 74 C34 70 46 64 50 54 C46 70 38 80 26 84 Z'/><path d='M26 30 C18 26 6 20 2 10 C6 26 14 36 26 40 Z'/><path d='M26 50 C18 46 6 40 2 30 C6 46 14 56 26 58 Z'/><path d='M26 70 C18 66 6 60 2 50 C6 66 14 76 26 78 Z'/><path d='M26 42 C30 30 28 20 26 18 C24 20 22 30 26 42 Z'/></svg>") no-repeat center / contain;
}
.site-header .site-brand a::after {
	transform: scaleX( -1 );
}
.site-header .site-brand a::before,
.site-header .site-brand a::after {
	content: none !important;
}

.site-header .site-nav a {
	font-family: var( --wp--preset--font-family--karla );
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	color: var( --site-text );
}
.site-header .site-nav a:hover {
	color: var( --site-primary );
}
.site-header {
	background-image:
		linear-gradient(rgba( 244, 239, 230, 0.87 ), rgba( 244, 239, 230, 0.87 )),
		url("assets/images/header-wheat.webp");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.lang-switch,
.polylang_langswitcher-shortcode,
.site-header .site-nav {
	column-gap: 1rem !important;
}

.site-header .wp-block-polylang-language-switcher {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lang-switch .lang-item,
.polylang_langswitcher-shortcode .lang-item,
.site-header .wp-block-polylang-language-switcher .lang-item {
	font-family: var( --wp--preset--font-family--karla );
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var( --site-accent2 );
	padding: 0.3rem 0.6rem;
	margin: 0;
	line-height: 1.4;
}
.polylang_langswitcher-shortcode .lang-item a,
.site-header .wp-block-polylang-language-switcher .lang-item a {
	color: inherit;
	text-decoration: none;
}
.lang-switch .lang-item.lang-active,
.polylang_langswitcher-shortcode .lang-item.current-lang,
.site-header .wp-block-polylang-language-switcher .lang-item.current-lang {
	color: var( --site-primary );
	border: 1px solid var( --site-primary );
	border-radius: 2px;
}

/* === spreads (the book) === */
.spread {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}
.spread-pages {
	gap: 0;
	align-items: stretch !important;
	border: 1px solid var( --site-rule );
}
.spread-page {
	padding: clamp(1.5rem, 4vw, 4rem);
	display: flex;
	flex-direction: column;
}
.spread-page + .spread-page {
	border-left: 1px solid var( --site-rule );
}
.spread-text {
	background: transparent;
	position: relative;
	z-index: 2;
}
.spread-text .spread-body,
.spread-text .spread-lead,
.spread-text .spread-title,
.spread-text .eyebrow,
.spread-text .spread-strong,
.spread-text .wp-block-button {
	position: relative;
}
.spread-text::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba( 251, 247, 239, 0.82 );
	z-index: -1;
}
.spread-image {
	padding: 0;
	background: transparent;
	position: relative;
}
.spread-image .spread-img {
	margin: 0;
}
.spread-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	box-shadow: 0 24px 40px -34px rgba( 26, 25, 23, 0.35 );
}
/* photo en absolu derrière la section, sur toute la largeur */
.spread-image .spread-img {
	position: absolute;
	top: 0;
	height: 100%;
	width: 150%;
	z-index: 1;
}
.spread-image .page-no {
	position: relative;
	z-index: 3;
}
/* image à droite du texte : photo ancrée à droite, couvre tout, fondu vers la gauche */
.spread-image:nth-child(2) .spread-img {
	left: -50%;
}
.spread-image:nth-child(2) img {
	mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0.5) 16%, #000 25% );
	-webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0.5) 16%, #000 25% );
}
/* image à gauche du texte : photo ancrée à gauche, couvre tout, fondu vers la droite */
.spread-image:nth-child(1) .spread-img {
	left: 0;
}
.spread-image:nth-child(1) img {
	mask-image: linear-gradient( to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0.5) 16%, #000 25% );
	-webkit-mask-image: linear-gradient( to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0.5) 16%, #000 25% );
}
/* Service 01 — photo du portail : miroir pour que les volets fermés apparaissent côté visible.
   Le miroir inverse le fondu : on retourne le masque pour qu'il fonde côté texte. */
img[src*="portail-ouvert"] {
	transform: scaleX( -1 );
}
.spread-image:nth-child(1) img[src*="portail-ouvert"] {
	mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0.5) 16%, #000 25% );
	-webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0.5) 16%, #000 25% );
}
/* Carte d'intervention — moins zoomée : on élargit la zone visible pour montrer tout le Vaucluse */
.spread-image:has(img[src*="carte-intervention"]) .spread-img {
	width: 122%;
}
img[src*="carte-intervention"] {
	transform: translateX( 6% );
}

/* Formulaire de contact — cases plus compactes et zone message réduite */
.contact-form .grunion-field {
	padding: 7px 14px;
	font-size: 15px;
	line-height: 1.4;
}
.contact-form textarea.grunion-field {
	height: 110px;
	min-height: 110px;
}
/* Coordonnées de contact (téléphone + email) */
.contact-details {
	font-family: var( --wp--preset--font-family--fraunces );
	font-size: 1.1rem;
	line-height: 1.55;
	margin-bottom: 1.4rem;
}
.contact-details a {
	color: var( --site-primary );
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.spread-title {
	font-family: var( --wp--preset--font-family--fraunces );
	font-weight: 400;
	font-size: clamp(2rem, 4.4vw, 3.2rem);
	line-height: 1.06;
	margin: 0 0 1.4rem;
}
.spread-title strong {
	font-weight: 500;
	color: var( --site-primary );
}
.spread-lead {
	font-size: 1.09rem;
	line-height: 1.7;
	color: #3a362f;
	max-width: 46ch;
	margin: 0 0 1.5rem;
}
.spread-strong {
	font-family: var( --wp--preset--font-family--fraunces );
	font-style: italic;
	font-size: 1.6rem;
	line-height: 1.25;
	color: var( --site-primary );
	margin: 0 0 1.4rem;
}
.spread-body {
	line-height: 1.65;
	color: #4a453c;
	max-width: 46ch;
	margin: 0 0 1.5rem;
}
.finance-horiz {
	--wp--style--global--content-size: unset;
	padding-inline: clamp(0.75rem, 3vw, 2.5rem);
}
.finance-horiz .spread-body,
.finance-horiz .spread-title {
	max-width: none !important;
}
.page-no {
	margin-top: auto;
	padding-top: 2.2rem;
	font-family: var( --wp--preset--font-family--karla );
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	color: var( --site-accent2 );
}
.spread-image .page-no {
	padding: 1rem 1.5rem;
}

/* === service detail list === */
.srv-detail {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	width: 100%;
}
.srv-detail li {
	padding: 0.6rem 0;
	border-top: 1px solid var( --site-rule );
	font-size: 1rem;
	line-height: 1.5;
	color: #4a453c;
}
.srv-detail li::before {
	content: "—";
	color: var( --site-primary );
	margin-right: 0.75rem;
}

/* === service list rows (inside a spread text page) === */
.services {
	width: 100%;
}
.services .srv {
	display: flex;
	gap: 1.4rem;
	align-items: baseline;
	padding: 1.05rem 0;
	border-top: 1px solid var( --site-rule );
}
.services .srv:last-child {
	border-bottom: 1px solid var( --site-rule );
}
.services .srv .srv-num {
	font-family: var( --wp--preset--font-family--karla );
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	color: var( --site-primary );
	min-width: 2.2rem;
}
.services .srv .srv-label {
	font-family: var( --wp--preset--font-family--fraunces );
	font-size: 1.25rem;
	line-height: 1.2;
	margin: 0;
}

/* === sector tags === */
.sectors {
	width: 100%;
}
.sectors .sector {
	font-family: var( --wp--preset--font-family--karla );
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var( --site-text );
	padding: 0.55rem 1.1rem;
	border: 1px solid var( --site-rule );
	border-radius: 2px;
	margin: 0 0.55rem 0.55rem 0;
}
.zone-title {
	font-family: var( --wp--preset--font-family--fraunces );
	font-weight: 400;
	font-size: 1.35rem;
	margin: 1.5rem 0 0.4rem;
	color: var( --site-text );
}

/* === quote / central message === */
.quote-band {
	text-align: center;
	background: var( --site-surface );
}
.quote-band .quote {
	font-family: var( --wp--preset--font-family--fraunces );
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	line-height: 1.2;
	color: var( --site-text );
	max-width: 24ch;
	margin: 0 auto;
}
.quote-band .quote strong {
	color: var( --site-primary );
	font-style: normal;
}

/* === contact band === */
.contact-band {
	background: var( --site-surface );
	padding-block: clamp(3rem, 7vw, 6rem);
	border-top: 1px solid var( --site-rule );
}
.contact-band .contact-inner {
	text-align: center;
}
.contact-band .contact-inner .eyebrow {
	text-align: center;
}
.contact-band .spread-title {
	max-width: 20ch;
	margin-inline: auto;
}
.contact-band .spread-body {
	margin-inline: auto;
}
.contact-band .wp-block-buttons {
	justify-content: center;
}

/* === footer === */
.site-footer {
	background: var( --site-paper );
	border-top: 1px solid var( --site-rule );
	padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}
.site-footer .wp-block-columns {
	gap: 2rem;
}
.site-footer .footer-brand .wp-block-site-title {
	font-family: var( --wp--preset--font-family--fraunces );
	font-weight: 400;
	font-size: 1.4rem;
	color: var( --site-text );
}
.site-footer .footer-brand p,
.site-footer .wp-block-column p {
	font-size: 0.9rem;
	line-height: 1.7;
	color: #5c5549;
}
.site-footer .footer-tagline {
	font-style: italic;
	color: var( --site-primary ) !important;
}
.site-footer .footer-title {
	font-family: var( --wp--preset--font-family--karla );
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --site-accent2 );
	margin: 0 0 1.1rem;
}
.site-footer .footer-bottom {
	border-top: 1px solid var( --site-rule );
	margin-top: 2.5rem;
	padding-top: 1.4rem;
}
.site-footer .footer-bottom p {
	font-size: 0.78rem;
	color: var( --site-accent2 );
}
.site-footer .footer-bottom .footer-privacy {
	display: inline-block;
	font-size: 0.78rem;
	color: var( --site-accent2 );
	text-decoration: none;
	background: none;
	border-bottom: 1px solid rgba( 26, 25, 23, 0.25 );
	padding-bottom: 1px;
	transition: color 0.18s ease, border-color 0.18s ease;
}
.site-footer .footer-bottom .footer-privacy:hover {
	background: none;
	background-size: auto;
	color: var( --site-primary );
	border-color: var( --site-primary );
}

/* === refined hover interactions === */
.wp-element-button {
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.wp-block-button:not(.is-style-outline) .wp-element-button:hover {
	background-color: #9a3a22;
}
.is-style-outline .wp-element-button:hover {
	background-color: var( --site-primary );
	color: #fff;
	border-color: var( --site-primary );
}
.site-header .site-nav a {
	position: relative;
	transition: color 0.25s ease;
}
.site-header .site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.28em;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.28s ease;
}
.site-header .site-nav a:hover::after {
	transform: scaleX(1);
}
.site-footer a:not(.wp-element-button) {
	text-decoration: none;
	background-image: linear-gradient( currentColor, currentColor );
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.28s ease, color 0.25s ease;
}
.site-footer a:not(.wp-element-button):hover {
	background-size: 100% 1px;
	color: var( --site-primary );
}

/* === responsive: pages stack on mobile === */
@media (max-width: 781px) {
	.spread-pages {
		gap: 0;
	}
	.spread-page,
	.spread-page + .spread-page {
		border-left: 0;
		border-top: 1px solid var( --site-rule );
	}
	.spread-page + .spread-page {
		border-left: 0;
	}
	.spread-image {
		min-height: 46vh;
		padding: 0;
	}
	.spread-image .spread-img {
		position: static !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		width: 100% !important;
		height: auto !important;
	}
	.spread-image img {
		mask-image: none !important;
		-webkit-mask-image: none !important;
	}
	.spread-text::before {
		background: rgba( 251, 247, 239, 0.62 );
	}
	.spread-page {
		padding: 2rem 1.5rem;
	}
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* === responsive: tablet & large phones (<=1024px, desktop untouched) === */
@media (max-width: 1024px) {
	.spread {
		padding-block: clamp( 2rem, 4.5vw, 3.2rem );
	}
	.spread-page {
		padding: clamp( 1.2rem, 3vw, 2.6rem );
	}
	.spread-title {
		font-size: clamp( 1.7rem, 5vw, 2.5rem );
	}
	.spread-strong {
		font-size: 1.4rem;
	}
	.quote-band .quote {
		font-size: clamp( 1.45rem, 5vw, 2.1rem );
	}
	.site-header .site-brand {
		font-size: 4rem;
	}
	.contact-band {
		padding-block: clamp( 2.4rem, 6vw, 4rem );
	}
	.site-footer .wp-block-columns {
		gap: 1.6rem;
	}
}

/* === tablet narrow / phones: stack spreads on one page === */
@media (max-width: 900px) {
	/* spreads already stack below 781px (core breakpoint); make the two-column
	   tablet view comfortable until the stack kicks in */
	.spread-image {
		min-height: 40vh;
	}
}

/* === smartphone === */
@media (max-width: 600px) {
	.spread-page {
		padding: 1.6rem 1.25rem;
	}
	.spread-title {
		font-size: clamp( 1.72rem, 8.2vw, 2.1rem );
	}
	.spread-lead,
	.spread-body {
		font-size: 1rem;
	}
	.spread-strong {
		font-size: 1.3rem;
	}
	.spread-image {
		min-height: 0;
	}
	/* images pleine largeur sur mobile : format cohérent (4:3), recadrage propre */
	.spread-image .spread-img {
		height: auto;
	}
	.spread-image img {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}
	.contact-band {
		padding-block: 2.6rem 2rem;
	}
	.contact-band .spread-title {
		font-size: 1.9rem;
	}
	/* brand : scale down so the crown/wordmark fit 360px without overflow */
	.site-header .site-brand {
		font-size: 3.2rem;
	}
	.site-header .site-brand a {
		padding: 0.55em 0.9em 0.5em;
	}
	.header-utility {
		padding-block: 0.35rem;
	}
	/* buttons : comfortable touch targets, wrap instead of overflowing */
	.wp-block-buttons {
		flex-wrap: wrap;
	}
	.wp-block-button__link {
		min-height: 46px;
		padding: 0.85rem 1.5rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	/* contact form fields full width & tappable */
	.contact-form {
		width: 100%;
	}
	.contact-form .grunion-field {
		width: 100%;
	}
	/* safety net: never horizontal-scroll on phones */
	html,
	body {
		overflow-x: clip;
	}
	img {
		max-width: 100%;
	}
}

/* === smartphone menu/nav === */
@media (max-width: 781px) {
	/* neutralise le décalage de la carte (pleine largeur sur mobile) */
	img[src*="carte-intervention"] {
		transform: none;
	}
	/* hamburger : cible tactile confortable et cohérent avec l'identité */
	.site-header .wp-block-navigation .wp-block-navigation__responsive-container-open,
	.site-header .wp-block-navigation__responsive-container-open {
		width: 46px;
		height: 46px;
		padding: 0.55rem;
		color: var( --site-text );
	}
	.site-header .wp-block-navigation__responsive-container-close {
		width: 46px;
		height: 46px;
		color: var( --site-text );
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		background: var( --site-bg );
	}
	.wp-block-navigation.is-menu-open .wp-block-navigation__container .wp-block-navigation-link a {
		font-family: var( --wp--preset--font-family--karla );
		font-size: 1.05rem;
	}
}

/* === Page « Nos tarifs » — formules d'intendance === */
.formule {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	height: 100%;
}
.formule .formule-name {
	margin: 0;
	font-family: var( --wp--preset--font-family--fraunces );
	font-size: 1.7rem;
	font-weight: 400;
	line-height: 1.2;
}
.formule .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
}
.formule .price-pre {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #4a453c;
}
.formule .price-amount {
	font-family: var( --wp--preset--font-family--fraunces );
	font-size: 2.6rem;
	line-height: 1;
	color: var( --site-primary );
}
.formule .price-per {
	font-size: 0.85rem;
	color: #4a453c;
}
.formule-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}
.formule-features li {
	position: relative;
	padding-left: 1.15rem;
	line-height: 1.5;
}
.formule-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 1px;
	background: var( --site-primary );
}
.price-note {
	padding-block: 1.25rem 2.5rem;
}
.price-meta {
	max-width: 52ch;
	margin: 0 auto;
	text-align: center;
	font-size: 0.85rem;
	line-height: 1.6;
	color: #8a857c;
}
@media (max-width: 600px) {
	.formule .price-amount {
		font-size: 2.2rem;
	}
}

/* === Section titres + photo transparente (page « Nos tarifs ») === */
.section-title {
	font-family: var( --wp--preset--font-family--fraunces );
	font-size: clamp(1.6rem, 5vw, 2.6rem);
	line-height: 1.1;
	font-weight: 500;
	color: var( --site-primary );
	letter-spacing: 0.01em;
	display: block;
	border: 1px solid currentColor;
	padding: 0.4em 0.9em;
	margin: 0 0 1.4rem;
}
.section-title--sm {
	font-family: var( --wp--preset--font-family--fraunces );
	font-size: clamp(1.4rem, 3.6vw, 2.1rem);
	line-height: 1.15;
	font-weight: 400;
	margin: 0 0 1.2rem;
}
/* Sur la page tarifs, les titres de section des blocs encadrés n'ont pas de cadre propre */
body.page-id-164 main.is-flush .photo-soft .section-title,
body.page-id-198 main.is-flush .photo-soft .section-title,
body.page-id-200 main.is-flush .photo-soft .section-title,
body.page-id-199 main.is-flush .photo-soft .section-title {
	border: 0;
	padding: 0 0 1.4rem;
}
.avance-section {
	padding-block: clamp( 2rem, 4vw, 3rem );
}
.avance-section .spread-title {
	margin-bottom: 1rem;
}
.avance-section h3 {
	font-family: var( --wp--preset--font-family--fraunces );
	color: var( --site-primary );
	font-size: clamp( 1.3rem, 2.6vw, 1.6rem );
	font-weight: 500;
	line-height: 1.15;
	margin: 1.3rem 0 0.5rem;
}
.avance-section h4 {
	font-family: var( --wp--preset--font-family--fraunces );
	color: var( --site-primary );
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.2;
	margin: 1.1rem 0 0.35rem;
}
.avance-section p {
	margin: 0.7rem 0;
}
.avance-section ul {
	margin: 0.55rem 0;
	padding-left: 1.2rem;
	list-style: disc;
}
.avance-section ul li {
	margin-bottom: 0.3rem;
}
.avance-section ol {
	margin: 0.55rem 0;
	padding-left: 1.4rem;
	list-style: decimal;
}
.avance-section ol li {
	margin-bottom: 0.3rem;
	padding-left: 0.3rem;
}
.avance-section a {
	color: var( --site-primary );
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
body.page-id-164 .photo-soft,
body.page-id-198 .photo-soft,
body.page-id-200 .photo-soft,
body.page-id-199 .photo-soft {
	position: relative;
	background-size: cover;
	background-position: center;
}
body.page-id-164 .photo-soft,
body.page-id-198 .photo-soft,
body.page-id-200 .photo-soft,
body.page-id-199 .photo-soft {
	background-image: url("/wp-content/uploads/2026/11/bureau-coordination2.webp");
}
body.page-id-164 .photo-soft--cal,
body.page-id-198 .photo-soft--cal,
body.page-id-200 .photo-soft--cal,
body.page-id-199 .photo-soft--cal {
	background-image: url("/wp-content/uploads/2026/11/calendrier-positionner.png");
	background-position: center bottom;
}
/* Alléger le voile pour que le calendrier transparaisse dans les cadres Vigilance/Sérénité */
body.page-id-164 .photo-soft--cal::before,
body.page-id-198 .photo-soft--cal::before,
body.page-id-200 .photo-soft--cal::before,
body.page-id-199 .photo-soft--cal::before {
	background: rgba( 251, 247, 239, 0.08 );
}
body.page-id-164 .photo-soft--cal .spread-text::before,
body.page-id-198 .photo-soft--cal .spread-text::before,
body.page-id-200 .photo-soft--cal .spread-text::before,
body.page-id-199 .photo-soft--cal .spread-text::before {
	background: rgba( 251, 247, 239, 0.18 );
}

/* Note sous les formules — texte complet discret, partie règlement simplifiée */
.abonnement-note {
	max-width: 46rem;
	margin: clamp(1.6rem, 3.5vw, 2.6rem) auto 0;
}
.abonnement-note p {
	font-size: 0.94rem;
	line-height: 1.6;
	color: #4a453c;
	margin: 0.4rem 0 0;
}
.abonnement-note p:first-child {
	margin-top: 0;
}
body.page-id-164 .photo-soft::before,
body.page-id-198 .photo-soft::before,
body.page-id-200 .photo-soft::before,
body.page-id-199 .photo-soft::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba( 251, 247, 239, 0.88 );
	z-index: 0;
}
body.page-id-164 .photo-soft > *,
body.page-id-198 .photo-soft > *,
body.page-id-200 .photo-soft > *,
body.page-id-199 .photo-soft > * {
	position: relative;
	z-index: 1;
}

/* === Marges latérales sur tout le site (mise en page « Nos tarifs ») === */
/* Ciblé sur main : l'en-tête et le pied de page gardent leur pleine largeur. */
main.is-flush .entry-content {
	padding-left: clamp(1.6rem, 3.8vw, 3.5rem);
	padding-right: clamp(1.6rem, 3.8vw, 3.5rem);
}
main.is-flush .alignfull,
main.is-flush .alignwide {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
/* fondre les cadres (liseré des double-pages) dans les marges */
body.page-id-164 main.is-flush .spread-pages,
body.page-id-198 main.is-flush .spread-pages,
body.page-id-200 main.is-flush .spread-pages,
body.page-id-199 main.is-flush .spread-pages {
	border: 0;
}
/* Cadre noir sur chaque formule/catégorie, et bande crédit d'impôt encadrée (pas de cadre global sur les sections photos) */
body.page-id-164 main.is-flush .photo-soft .formule,
body.page-id-198 main.is-flush .photo-soft .formule,
body.page-id-200 main.is-flush .photo-soft .formule,
body.page-id-199 main.is-flush .photo-soft .formule {
	border: 1px solid #1a1917;
}
/* Padding interne des categories des prestations à la carte (les formules Vigilance/Sérénité ont déjà leur marge) */
body.page-id-164 main.is-flush .photo-soft:not(.photo-soft--cal) .formule,
body.page-id-198 main.is-flush .photo-soft:not(.photo-soft--cal) .formule,
body.page-id-200 main.is-flush .photo-soft:not(.photo-soft--cal) .formule,
body.page-id-199 main.is-flush .photo-soft:not(.photo-soft--cal) .formule {
	padding: 1.75rem 1.5rem;
	height: auto;
	align-self: stretch;
}
/* Les trois catégories des prestations font exactement la même hauteur */
body.page-id-164 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-columns,
body.page-id-198 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-columns,
body.page-id-200 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-columns,
body.page-id-199 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-columns {
	align-items: stretch !important;
}
body.page-id-164 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-column,
body.page-id-198 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-column,
body.page-id-200 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-column,
body.page-id-199 main.is-flush .photo-soft:not(.photo-soft--cal) .wp-block-column {
	align-self: stretch !important;
}
body.page-id-164 main.is-flush .finance-horiz,
body.page-id-198 main.is-flush .finance-horiz,
body.page-id-200 main.is-flush .finance-horiz,
body.page-id-199 main.is-flush .finance-horiz {
	border: 1px solid #1a1917;
}
/* Cadre noir autour de chaque bloc photo (prestations à la carte & formules) */
body.page-id-164 main.is-flush .photo-soft,
body.page-id-198 main.is-flush .photo-soft,
body.page-id-200 main.is-flush .photo-soft,
body.page-id-199 main.is-flush .photo-soft {
	border: 1px solid #1a1917;
	padding-left: clamp(1rem, 2vw, 1.75rem);
	padding-right: clamp(1rem, 2vw, 1.75rem);
}
/* Numéros de page décoratifs retirés partout */
.page-no {
	display: none !important;
}
