/*
Theme Name: Les Menuisiers du Pilat
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.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lmdp
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) 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 {
	--site-bg: var(--wp--preset--color--background);
	--site-text: var(--wp--preset--color--text);
	--site-ink: var(--wp--preset--color--text);
	--site-primary: var(--wp--preset--color--primary);
	--site-dark: var(--wp--preset--color--darkblue);
	--site-muted: var(--wp--preset--color--anthracite);
	--site-line: rgba(36, 35, 31, 0.18);
	--gutter: var(--wp--style--root--padding-left);
	--serif: var(--wp--preset--font-family--fraunces);
	--sans: var(--wp--preset--font-family--figtree);
}

/* === typography === */
body {
	background: var(--site-bg);
	color: var(--site-text);
}

label,
.is-style-eyebrow,
.eyebrow {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	color: var(--site-primary);
}

.eyebrow::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 1px;
	background: currentColor;
}

.lede {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
	color: var(--site-muted);
}

figcaption,
.photo-caption,
.wp-element-caption {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--site-muted);
}

/* === header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--warmwhite);
	border-bottom: 1px solid var(--site-line);
}

.header-inner {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	min-height: 64px;
	padding-inline: var(--wp--style--root--padding-left);
}

.header-cta .wp-element-button {
	padding: 0.7rem 1.25rem;
	white-space: nowrap;
}
.site-brand .wp-block-site-title {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 420;
	letter-spacing: -0.01em;
	margin: 0;
}

.site-logo {
	margin: 0;
	line-height: 0;
}

.site-logo img {
	height: 64px;
	width: auto;
}

.site-brand {
	flex-shrink: 0;
}

.site-header .wp-block-buttons {
	flex-shrink: 0;
}

.main-nav .wp-block-navigation__container {
	gap: 1.6rem;
}

.main-nav a {
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--site-text);
}

.main-nav .wp-block-navigation-item__content {
	color: var(--site-text);
}

.main-nav .wp-block-navigation__responsive-container-open {
	color: var(--site-text);
}

.main-nav .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content ul {
	gap: 1.6rem;
}

.header-cta .wp-element-button {
	padding: 0.7rem 1.25rem;
}

/* === sections === */
.section-label {
	margin-bottom: 1rem;
}

.is-style-panel {
	background: var(--wp--preset--color--sand);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.is-style-card {
	background: var(--wp--preset--color--warmwhite);
	border: 1px solid var(--site-line);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.is-style-frame img {
	border: 1px solid var(--site-line);
}

/* === buttons === */
.is-style-button-secondary .wp-element-button {
	background: transparent;
	color: var(--site-dark);
	border: 1px solid var(--site-dark);
}

.is-style-button-outline .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--warmwhite);
	border: 1px solid rgba(255, 255, 255, 0.7);
}

/* === hero === */
.hero {
	min-height: clamp(440px, 64vh, 700px);
	display: flex;
	align-items: flex-end;
	padding-bottom: clamp(2rem, 6vw, 4.5rem);
}

.hero .wp-block-cover__inner-container {
	width: 100%;
}

.hero-title {
	font-size: var(--wp--preset--font-size--display);
	font-family: var(--serif);
	font-weight: 420;
	line-height: 1.04;
	letter-spacing: -0.01em;
	margin: 1.25rem 0 1.5rem;
}

.hero .wp-block-cover__inner-container .eyebrow {
	color: var(--wp--preset--color--warmwhite);
}

.hero p.lede {
	color: var(--wp--preset--color--warmwhite);
	max-width: 34rem;
}

/* === stats === */
.stat-number {
	font-family: var(--serif);
	font-size: clamp(2.6rem, 6vw, 4.25rem);
	font-weight: 420;
	line-height: 1;
	color: var(--site-text);
}

.stat-label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--site-muted);
	margin-top: 0.75rem;
}

/* === realisations / gallery === */
.realisations-filter {
	flex-wrap: wrap;
	gap: 0.5rem;
}

.realisations-filter .wp-element-button {
	background: transparent;
	color: var(--site-text);
	border: 1px solid var(--site-line);
	padding: 0.6rem 1.1rem;
}

.realisations-filter .wp-element-button.is-active,
.realisations-filter .wp-element-button:hover {
	background: var(--site-text);
	color: var(--site-bg);
	border-color: var(--site-text);
}

.realisation-item.is-hidden {
	display: none;
}

.realisation {
	position: relative;
	overflow: hidden;
}

.realisation img {
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.realisation:hover img {
	transform: scale(1.04);
}

.realisation__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	padding: 2rem;
	background: linear-gradient(to top, rgba(24, 23, 19, 0.72), rgba(24, 23, 19, 0));
}

.realisation__meta h3 {
	color: var(--wp--preset--color--warmwhite);
	font-family: var(--serif);
	font-size: 1.4rem;
	font-weight: 420;
	margin: 0;
}

.realisation__meta span {
	color: var(--wp--preset--color--warmwhite);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.85;
	white-space: nowrap;
}

/* === showroom === */
.showroom-card .wp-block-heading {
	font-family: var(--serif);
}

/* === cta band === */
.cta-band {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--warmwhite);
}

.cta-band h2,
.cta-band h3 {
	color: var(--wp--preset--color--warmwhite);
}

.cta-band .eyebrow {
	color: var(--wp--preset--color--warmwhite);
}

.has-darkblue-background-color .cta-band-link {
	margin-top: 1.25rem;
}
.has-darkblue-background-color .cta-band-link a {
	color: var(--wp--preset--color--warmwhite);
	text-decoration: underline;
}
.has-darkblue-background-color .cta-band-link a:hover {
	color: var(--wp--preset--color--lightblue);
}

/* === method steps === */
.step-number {
	font-family: var(--serif);
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 420;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.9rem;
}

.methode h3 {
	font-size: 1.3rem;
}

.methode .wp-block-column {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 1.5rem;
}

/* === quotes on dark === */
.has-darkblue-background-color .wp-block-quote,
.has-darkblue-background-color .wp-block-quote p {
	color: var(--wp--preset--color--warmwhite);
}

.has-darkblue-background-color .wp-block-quote {
	border-left: 2px solid var(--wp--preset--color--primary);
	padding: 0 0 0 1.25rem;
	margin: 0;
}

.has-darkblue-background-color .wp-block-quote cite {
	color: var(--wp--preset--color--lightblue);
}

/* === text legibility on dark blue grounds ===
   Les sections bleu profond doivent porter du texte lisible (warmwhite),
   conformément au design system. Les cartes et champs clairs imbriqués
   dans ces sections conservent leur texte sombre (surfce claire). */
.has-darkblue-background-color {
	color: var(--wp--preset--color--warmwhite);
}
.has-darkblue-background-color h1,
.has-darkblue-background-color h2,
.has-darkblue-background-color h3,
.has-darkblue-background-color h4,
.has-darkblue-background-color p,
.has-darkblue-background-color li {
	color: var(--wp--preset--color--warmwhite);
}
/* L'ambre reste l'accent d'appoint sur fond bleu (chiffres d'étape) */
.has-darkblue-background-color .step-number {
	color: var(--wp--preset--color--primary);
}
/* Revenir au texte sombre sur les surfaces claires imbriquées */
.has-darkblue-background-color .is-style-card,
.has-darkblue-background-color .is-style-card h3,
.has-darkblue-background-color .is-style-card p,
.has-darkblue-background-color .is-style-panel,
.has-darkblue-background-color .is-style-panel h3,
.has-darkblue-background-color .is-style-panel p,
.has-darkblue-background-color .has-warmwhite-background-color,
.has-darkblue-background-color .has-warmwhite-background-color p,
.has-darkblue-background-color .has-warmwhite-background-color h2,
.has-darkblue-background-color .has-warmwhite-background-color h3,
.has-darkblue-background-color .has-sand-background-color,
.has-darkblue-background-color .has-sand-background-color p,
.has-darkblue-background-color .has-sand-background-color h2,
.has-darkblue-background-color .has-sand-background-color h3 {
	color: var(--site-text);
}

/* === partner & zone lists === */
.partner-list,
.zone-list {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 2.2;
}

.partner-list {
	color: var(--site-muted);
}

/* === savoir-faire / réalisations imagery === */
.savoir-faire-img img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
}

.realisation-img img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* === product cards === */
.product-card {
	display: flex;
	flex-direction: column;
}
.product-card .wp-block-heading {
	margin-top: 0.9rem;
}
.product-card .photo-caption {
	margin-top: 0.35rem;
}
.product-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 1.1rem;
}
.product-img img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	height: auto;
	display: block;
}
.product-card .is-style-button-outline .wp-element-button {
	color: var(--site-dark);
	border-color: var(--site-dark);
}

/* === showroom placeholder === */
.showroom-placeholder {
	min-height: 100%;
	border: 1px dashed var(--site-line);
	background: var(--wp--preset--color--sand);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(1.25rem, 3vw, 2.25rem);
}
.showroom-placeholder-label {
	color: var(--site-muted);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.7;
	margin: 0;
}

/* === certification slots === */
.cert-eyebrow {
	margin-top: 2.5rem;
}
.cert-slot {
	border: 1px solid var(--site-line);
	background: var(--wp--preset--color--background);
	padding: clamp(1.25rem, 3vw, 2rem);
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.cert-slot-label {
	font-family: var(--serif);
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0;
}
.cert-slot-note {
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--site-muted);
	margin: 0.5rem 0 0;
}

/* real certification logos: proportionate, never stretched */
.cert-slot .wp-block-image {
	margin: 0;
}
.cert-logo {
	margin: 0;
}
.cert-logo img {
	height: 64px;
	width: auto;
	object-fit: contain;
	display: block;
	margin-inline: auto;
}
.cert-logo-label {
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--site-muted);
	text-align: center;
	margin: 0.6rem auto 0;
	max-width: 16rem;
}
.cert-qualif {
	text-align: center;
	color: var(--site-muted);
	max-width: 44rem;
	margin-inline: auto;
	margin-top: 2rem;
}

/* showroom facade image on homepage */
.showroom-img img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	height: auto;
	display: block;
}

/* realisation rows sit in a full-bleed default band; give them the root gutter */
.realisations .wp-block-columns.alignwide {
	padding-inline: var(--wp--style--root--padding-left);
}

/* placeholder for photographs awaiting a clean file */
.img-pending {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	border: 1px dashed rgba(36, 35, 31, 0.35);
	background: rgba(251, 248, 242, 0.55);
	color: var(--site-muted);
	font-size: 0.85em;
	letter-spacing: 0.04em;
	padding: 1rem;
}
.realisation-pending { aspect-ratio: 4 / 3; }
.product-pending { aspect-ratio: 4 / 3; }
.product-pending p { margin: 0; }

.hero-pending {
	display: inline-block;
	background: rgba(251, 248, 242, 0.12);
	border: 1px dashed rgba(251, 248, 242, 0.45);
	color: var(--site-ivory);
	font: 600 11px/1.4 Figtree, sans-serif;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.55em 1em;
}

/* content awaiting final assets: discreet, clearly-not-final treatment */
.showroom-placeholder.content-pending,
.cert-slot.content-pending {
	position: relative;
	border-style: dashed;
	border-color: rgba(26, 58, 70, 0.4);
}
.showroom-placeholder.content-pending::after,
.cert-slot.content-pending::after {
	content: "Contenu en attente";
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	background: var(--site-dark);
	color: var(--site-ivory);
	font: 600 10px/1.2 Figtree, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.3em 0.7em;
	border-radius: 2px;
	pointer-events: none;
}

/* === footer === */
.site-footer {
	background: var(--site-dark);
	color: var(--wp--preset--color--warmwhite);
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

.site-footer *,
.site-footer p {
	overflow-wrap: normal;
	word-break: normal;
}

.site-footer .footer-contact-line {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.site-footer h2,
.site-footer h3,
.site-footer .wp-block-heading {
	color: var(--wp--preset--color--warmwhite);
}

.site-footer a {
	color: var(--wp--preset--color--warmwhite);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.footer-brand .site-logo img {
	height: 56px;
}

/* Le logo officiel est un JPEG à fond blanc : on isole le fichier dans un
   cartouche ivoire discret sur le fond bleu nuit du pied de page, sans
   recadrer ni modifier l'image. */
.footer-brand {
	background: var(--wp--preset--color--warmwhite);
	border-radius: 10px;
	padding: 12px 16px;
	display: inline-flex;
	width: fit-content;
}

.footer-brand-text {
	color: rgba(255, 255, 255, 0.82);
	max-width: 24rem;
	margin-top: 1rem;
}

.footer-title {
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	padding-bottom: 0.6rem;
	margin-bottom: 1rem;
}

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

.footer-list li {
	margin: 0.45rem 0;
}

.footer-contact-line {
	color: rgba(255, 255, 255, 0.9);
}

.footer-note {
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 1rem;
}

.footer-bottom {
	margin-top: 1.75rem;
}

.footer-legal {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.72);
}

/* === scroll reveal (progressive enhancement) === */
.js-reveal,
.js-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.js-reveal.is-hidden {
	opacity: 0;
	transform: translateY(12px);
}

.js-reveal {
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* === responsive === */
@media (max-width: 782px) {
	.hero {
		min-height: clamp(400px, 58vh, 540px);
	}
	.realisation__meta {
		padding: 1.25rem;
	}
	.site-logo img {
		height: 44px;
	}
	.footer-brand .site-logo img {
		height: 44px;
	}
	.site-footer .wp-block-columns {
		gap: 2rem;
	}
	.header-inner {
		gap: 0.6rem;
	}
	.header-cta .wp-element-button {
		padding: 0.55rem 0.8rem;
		font-size: 0.7rem;
		letter-spacing: 0.05em;
		white-space: nowrap;
	}
}

/* En-tête sur très petit écran : logo plus compact + CTA resserré pour que
   l'ensemble (logo horizontal, bouton menu, CTA) tienne dans 390 px sans
   débordement horizontal. Le logo garde ses proportions (seule la hauteur
   change, la largeur suit automatiquement). */
@media (max-width: 480px) {
	.header-inner {
		gap: 0.4rem;
		padding-inline: 12px;
	}
	.site-logo img {
		height: 38px;
	}
	.header-cta .wp-element-button {
		padding: 0.45rem 0.6rem;
		font-size: 0.64rem;
		letter-spacing: 0;
		white-space: nowrap;
	}
}

/* === Page Contact : formulaire Jetpack, FAQ, barre d'action mobile === */

/* Libellés des champs : lisibles, en bleu nuit, au-dessus du champ */
.wp-block-jetpack-contact-form .grunion-field-label {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--wp--preset--color--darkblue);
}
/* Le label porte déjà « * » : le « *(requis) » anglais redondant est masqué */
.wp-block-jetpack-contact-form .grunion-label-required {
	display: none;
}

/* Champs : grands, arrondis, focus ambre visible */
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form .contact-form__select-wrapper {
	width: 100%;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--darkblue) 28%, transparent);
	border-radius: 10px;
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea {
	padding: 0.8rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
}
.wp-block-jetpack-contact-form select {
	padding: 0.8rem 1rem;
}
.wp-block-jetpack-contact-form .jetpack-field__control textarea {
	min-height: 180px;
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form select:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary);
}

/* Bouton d'envoi : taille confortable au clic */
.wp-block-jetpack-contact-form .wp-block-jetpack-button .wp-block-button__link {
	padding: 1rem 1.75rem;
	font-size: 0.85rem;
}

/* Note de confidentialité sous le formulaire */
.form-privacy-note {
	font-size: 0.9rem;
	opacity: 0.85;
	margin-top: 1.25rem;
}
.form-privacy-note a {
	color: var(--wp--preset--color--darkblue);
	text-decoration: underline;
}

/* Note showroom */
.showroom-note {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-style: italic;
	opacity: 0.85;
}

/* FAQ : accordéons soignés et accessibles */
.faq-item {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--darkblue) 20%, transparent);
	border-radius: 12px;
	background: var(--wp--preset--color--warmwhite);
	padding: 0 1rem;
}
.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--darkblue);
	padding: 1rem 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-item summary::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
	transform: rotate(45deg);
}
.faq-item > p:last-child {
	padding-bottom: 1.25rem;
	margin-top: 0;
}

/* Héro de la page Contact : libellé clair sur fond bleu nuit */
.page-hero .eyebrow {
	color: var(--wp--preset--color--warmwhite);
}

/* Barre d'action mobile fixe en bas de l'écran */
.mobile-cta-bar {
	display: none;
}
@media (max-width: 600px) {
	body.page-id-35 {
		padding-bottom: 84px;
	}
	.mobile-cta-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
		background: var(--wp--preset--color--darkblue);
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
	}
	.mobile-cta-bar .wp-block-buttons {
		width: 100%;
		gap: 0.5rem;
		justify-content: stretch;
	}
	.mobile-cta-bar .wp-block-button {
		flex: 1;
	}
	.mobile-cta-bar .wp-block-button__link {
		width: 100%;
		display: block;
		text-align: center;
		padding: 0.85rem 0.5rem;
		font-size: 0.85rem;
	}
	.mobile-cta-bar .wp-block-button:last-child .wp-block-button__link {
		background: transparent;
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--warmwhite) 60%, transparent);
	}
}

/* === focus clavier visible === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.js-reveal.is-hidden {
		opacity: 1;
		transform: none;
	}
}

/* === Sprint 1 : pages offre & showroom === */
.choix-card {
	display: flex;
	flex-direction: column;
}
.choix-card .wp-block-heading {
	margin-top: 0.95rem;
}
.choix-card .product-img {
	margin: 0;
}
.choix-card .card-link {
	margin-top: auto;
}

.card-link {
	margin-top: 1rem;
}
.card-link a {
	color: var(--wp--preset--color--darkblue);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
}
.card-link a::after {
	content: " →";
	color: var(--wp--preset--color--primary);
}
.card-link a:hover {
	text-decoration: underline;
}

.card-field {
	aspect-ratio: 4 / 3;
	position: relative;
	display: flex;
	align-items: flex-end;
}
.card-num {
	font-family: var(--serif);
	font-size: clamp(1.9rem, 3.5vw, 3rem);
	font-weight: 420;
	line-height: 1;
	margin: 0;
	color: var(--wp--preset--color--darkblue);
	padding: clamp(1rem, 2.5vw, 1.5rem);
}
.card-num-light {
	color: var(--wp--preset--color--primary);
}

.factor-item {
	margin: 0 0 1.1rem;
	max-width: 30em;
}
.factor-item strong {
	color: var(--wp--preset--color--darkblue);
}
/* Eyebrow ambre lisible sur fond bleu nuit (hors héro) */
.has-darkblue-background-color .eyebrow {
	color: var(--wp--preset--color--primary);
}

/* === Sprint 2 : volets, stores & moustiquaires / domotique / entreprise === */

/* Héro graphique sans photo (familles en attente d'images propres) */
.hero-flat {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--darkblue);
	color: var(--wp--preset--color--warmwhite);
}
.hero-flat::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(147, 203, 209, 0.18), rgba(26, 58, 70, 0) 62%),
		repeating-linear-gradient(90deg, transparent 0 38px, rgba(251, 248, 242, 0.06) 38px 39px);
	pointer-events: none;
}
.hero-flat > * {
	position: relative;
}
.hero-flat h1 {
	color: var(--wp--preset--color--warmwhite);
	font-size: var(--wp--preset--font-size--display);
	font-family: var(--serif);
	font-weight: 420;
	line-height: 1.04;
	letter-spacing: -0.01em;
	margin: 1.25rem 0 1.5rem;
}
.hero-flat .eyebrow {
	color: var(--wp--preset--color--primary);
}
.hero-flat .lede {
	color: rgba(251, 248, 242, 0.92);
	display: inline-block;
}

/* Bande décorative « lumière/ombre » comme séparateur éditorial */
.shade-strip {
	height: clamp(4.5rem, 11vw, 8.5rem);
	background:
		repeating-linear-gradient(45deg, transparent 0 15px, rgba(26, 58, 70, 0.07) 15px 16px, transparent 16px 31px, rgba(26, 58, 70, 0.07) 31px 32px);
}
.shade-strip--light {
	background:
		repeating-linear-gradient(45deg, transparent 0 15px, rgba(147, 203, 209, 0.28) 15px 16px, transparent 16px 31px, rgba(147, 203, 209, 0.28) 31px 32px);
}

/* Panneau « besoin / axe » numéroté */
.need-card {
	background: var(--wp--preset--color--warmwhite);
	border: 1px solid var(--site-line);
	padding: clamp(1.25rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
}
.need-card h3 {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 420;
	color: var(--site-dark);
	margin: 0.85rem 0 0.5rem;
}
.need-card p {
	font-size: 0.98rem;
	color: var(--site-muted);
	margin: 0;
}
.need-num {
	font-family: var(--serif);
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.12em;
	margin: 0;
}

/* Panneaux familles (volets / stores / moustiquaires) */
.is-style-panel h3 {
	color: var(--site-dark);
}
.is-style-panel .eyebrow {
	color: var(--wp--preset--color--primary);
}

/* Lien contextuel discret */
.link-more a {
	color: var(--wp--preset--color--darkblue);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 58, 70, 0.32);
}
.link-more a::after {
	content: " →";
	color: var(--wp--preset--color--primary);
}
.link-more a:hover {
	border-bottom-color: var(--wp--preset--color--primary);
}

/* Liste de valeurs éditoriale */
.value-item {
	border-top: 1px solid var(--site-line);
	padding: 1.4rem 0;
}
.value-item h3 {
	font-family: var(--serif);
	font-size: 1.4rem;
	font-weight: 420;
	color: var(--site-dark);
	margin: 0 0 0.4rem;
}
.value-item p {
	color: var(--site-muted);
	margin: 0;
}

/* Détail certification (page entreprise) */
.cert-detail {
	max-width: 46rem;
	color: var(--site-muted);
}
.cert-scope {
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--site-muted);
}
.cert-scope strong {
	color: var(--site-dark);
}

/* Sous-menu navigation desktop */
.main-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--warmwhite);
	border: 1px solid var(--site-line);
	border-top: 2px solid var(--wp--preset--color--primary);
	padding: 0.6rem;
	min-width: 16rem;
}
.main-nav .wp-block-navigation__submenu-container a {
	padding: 0.5rem 0.8rem;
}

/* Liens cliquables téléphone / e-mail dans le footer */
.footer-contact-line a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-contact-line a:hover {
	color: var(--wp--preset--color--primary);
	border-bottom-color: var(--wp--preset--color--primary);
}

/* === Page Conseils === */
/* 5 thématiques en cartes */
.is-cat-grid {
	gap: 1.5rem;
}
.cat-block {
	margin-top: 3rem;
}
.cat-block > .cat-title {
	font-size: 1.55rem;
	font-family: var(--serif);
	font-weight: 420;
	color: var(--site-dark);
	border-bottom: 1px solid var(--site-line);
	padding-bottom: 0.6rem;
	margin-bottom: 1.4rem;
}
.art-link {
	margin: 0 0 0.9rem;
}
.art-link a {
	color: var(--site-dark);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.art-link a:hover {
	color: var(--wp--preset--color--darkblue);
	border-bottom-color: var(--wp--preset--color--primary);
}
.art-link a::after {
	content: " →";
	color: var(--wp--preset--color--primary);
}
@media (max-width: 800px) {
	.is-cat-grid {
		gap: 0;
	}
}

/* Encart de conversion dans les articles */
.art-cta {
	padding: 2rem 2rem;
}
.art-cta > p:first-child {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 420;
	color: var(--site-dark);
}
/* Bouton secondaire : sur fond sable clair, reprendre le style sombre du design system */
.art-cta .is-style-button-outline .wp-element-button {
	color: var(--wp--preset--color--darkblue);
	border: 1px solid var(--wp--preset--color--darkblue);
}


