/*
Theme Name:   Cyril Dedinger
Theme URI:    https://studio.framegenesis.fr
Description:  Cyril Dedinger, menuisier poseur de volets sur mesure dans le Var. Thème enfant de Frost : une page par gamme, deux palettes et deux typographies au choix (proposition visuelle « L'Art de la Menuiserie Varoise »).
Author:       FrameGenesis
Author URI:   https://framegenesis.com
Template:     frost
Version:      1.0.0
Text Domain:  cyril-dedinger
*/

/* ==========================================================================
   Cyril Dedinger, design system (classes cd-*)
   Frost ne fournit que la plomberie FSE ; tout l'habillage est ici.

   Proposition visuelle : deux palettes et deux typographies au choix du
   client. Les quatre combinaisons sont pilotées par deux classes posées sur
   <body> par functions.php (cd_design()) :
   - .cd-palette-a « Méditerranée Profonde » : lavande #615fff, bleu #155dfc,
     or chaud #d08700, blanc #fafaf9 ;
   - .cd-palette-b « Provence Lumineuse » : lavande #d3d3ff, bleu #0404ff,
     or #d3af37, blanc #fafafa ;
   - .cd-typo-serif : Playfair Display (titres) + Lora (texte) ;
   - .cd-typo-sans : Montserrat Bold (titres) + Inter (texte).
   Rôles (proposition) : lavande = titres & accents, bleu = fonds & sections,
   or = CTA & dorures, blanc = fond général. Les tons « encre » (texte, sections
   sombres) et les teintes douces sont dérivés de la palette par l'agence
   (aucune couleur sombre dans la proposition) ; contrastes vérifiés AA.
   ========================================================================== */

:root,
.cd-palette-a {
	--lavande: #5b57c9;
	--bleu: #2f3a8c;
	--or: #c9972f;
	--or-hover: #dbab45;
	--blanc: #fbfaf7;

	--ink: #17163f;          /* texte, sections sombres, pied de page */
	--ink-2: #24235c;        /* cartes sur fond sombre */
	--text: #2b2a45;
	--muted: #5c5a75;
	--accent: #5b57c9;       /* <em> des titres sur fond clair */
	--accent-dark: #c3c0f7;  /* <em> sur fond encre */
	--accent-blue: #f2d69a;  /* <em> sur fond bleu (dorure claire) */
	--link: #3d3aa8;         /* liens sur fond clair */
	--soft: #f3f1fa;         /* sections douces (lavande très pâle) */
	--soft-2: #e8e5f6;
	--on-or: #17163f;        /* texte sur les boutons or */
}

.cd-palette-b {
	--lavande: #d3d3ff;
	--bleu: #2a2fb8;
	--or: #d3af37;
	--or-hover: #e0c050;
	--blanc: #fafafa;

	--ink: #0b0b3b;
	--ink-2: #17175a;
	--text: #22223f;
	--muted: #5a5a78;
	--accent: #2a2fb8;       /* lavande B trop claire pour du texte sur blanc */
	--accent-dark: #d3d3ff;
	--accent-blue: #d3d3ff;
	--link: #2a2fb8;
	--soft: #efefff;
	--soft-2: #d3d3ff;
	--on-or: #0b0b3b;
}

:root,
.cd-typo-serif {
	--font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Lora", Georgia, "Times New Roman", serif;
	--font-ui: "Lora", Georgia, serif;
	--heading-weight: 700;
	--heading-tracking: -0.005em;
	--em-style: italic;
	--label-transform: none;
	--label-tracking: 0;
}

.cd-typo-sans {
	--font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-ui: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--heading-weight: 700;
	--heading-tracking: -0.02em;
	--em-style: normal;
	--label-transform: uppercase;
	--label-tracking: 0.14em;
}

:root {
	--blanc-pur: #ffffff;
	--muted-dark: rgba(255, 255, 255, 0.74);
	--line: rgba(23, 22, 63, 0.1);
	--line-dark: rgba(255, 255, 255, 0.16);

	--radius: 10px;
	--radius-btn: 6px;
	--shadow: 0 14px 34px rgba(12, 10, 40, 0.18);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--t: 250ms;

	--container: 1200px;
	--gutter: 16px;
	--section: 56px;
	--header-h: 72px;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --section: 104px; --header-h: 84px; } }

/* ---------- Base (neutralise les styles globaux de Frost) ---------- */

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--blanc);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } }

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > header, .wp-site-blocks > footer, .site-header, .site-footer { margin: 0; padding: 0; }
main.wp-block-group { margin: 0; padding: 0; }
main.wp-block-group > * + * { margin-block-start: 0; }

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

a { color: var(--link); text-underline-offset: 3px; transition: color var(--t) var(--ease); }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 { color: inherit; margin: 0; }

.cd-container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
	box-sizing: border-box;
}

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

.cd-skip {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 200;
	padding: 10px 18px;
	background: var(--or);
	color: var(--on-or);
	border-radius: var(--radius-btn);
	font-weight: 600;
	transition: top var(--t) var(--ease);
}
.cd-skip:focus { top: 12px; }

/* ---------- Typographie ---------- */

.cd-h1, .cd-h2 {
	font-family: var(--font-heading);
	font-weight: var(--heading-weight);
	line-height: 1.12;
	letter-spacing: var(--heading-tracking);
	text-wrap: balance;
}
.cd-h1 { font-size: clamp(38px, 6vw, 68px); }
.cd-h2 { font-size: clamp(30px, 4vw, 46px); }
.cd-typo-sans .cd-h1 { font-size: clamp(34px, 5.4vw, 60px); }
.cd-typo-sans .cd-h2 { font-size: clamp(27px, 3.6vw, 40px); }
.cd-h1 em, .cd-h2 em { font-style: var(--em-style); color: var(--accent-dark); }
.cd-section--light .cd-h2 em, .cd-section--soft .cd-h2 em { color: var(--accent); }
.cd-section--blue .cd-h2 em { color: var(--accent-blue); }

/* Filet doré (« dorures » de la proposition), sous les grands titres. */
.cd-rule { display: block; width: 56px; height: 2px; margin: 22px 0 24px; background: var(--or); }

.cd-label {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-weight: var(--heading-weight);
	font-size: 20px;
	line-height: 1.3;
	color: var(--ink);
}
.cd-typo-sans .cd-label { font-size: 13px; letter-spacing: var(--label-tracking); text-transform: var(--label-transform); }

.cd-lead { font-size: 18px; line-height: 1.65; max-width: 62ch; }
@media (min-width: 768px) { .cd-lead { font-size: 20px; } }

.cd-prose { max-width: 70ch; }
.cd-prose p { margin: 0 0 1.1em; }
.cd-prose h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 1.6em 0 0.6em; color: var(--ink); }
.cd-prose .cd-h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 0; color: inherit; }
.cd-prose h3 { font-size: 20px; font-weight: 600; margin: 1.4em 0 0.5em; color: var(--ink); }

.cd-muted { color: var(--muted); }

/* ---------- Logotype texte (pas encore de logo) ---------- */

.cd-mark { flex: none; width: 34px; height: 40px; margin-right: 12px; }
.cd-mark__frame { fill: none; stroke: var(--or); stroke-width: 2; stroke-linecap: round; }
.cd-mark__sun { fill: var(--or); }
.cd-mark__leaf { fill: currentColor; }
@media (min-width: 768px) { .cd-mark { width: 39px; height: 46px; } }
.cd-logo { display: inline-flex; align-items: center; flex: none; color: inherit; text-decoration: none; }
.cd-logo:hover { color: inherit; }
.cd-wordmark { display: grid; line-height: 1; }
.cd-wordmark__name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 22px; letter-spacing: var(--heading-tracking); }
.cd-wordmark__tag { margin-top: 6px; font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or); }
@media (min-width: 768px) { .cd-wordmark__name { font-size: 26px; } }

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

.cd-section { padding: var(--section) 0; position: relative; }
.cd-section--light { background: var(--blanc); color: var(--text); }
.cd-section--soft { background: var(--soft); color: var(--text); }
.cd-section--dark, .cd-section--blue { color: var(--blanc-pur); isolation: isolate; overflow: hidden; }
/* Encre + halo lavande discret (Méditerranée au crépuscule). */
.cd-section--dark { background: radial-gradient(900px 520px at 88% 0%, color-mix(in srgb, var(--lavande) 26%, transparent), transparent 70%), var(--ink); }
.cd-section--blue { background: radial-gradient(900px 520px at 10% 100%, color-mix(in srgb, var(--ink) 35%, transparent), transparent 70%), var(--bleu); }
.cd-section--dark .cd-muted, .cd-section--blue .cd-muted { color: var(--muted-dark); }

.cd-head { max-width: 760px; margin: 0 0 40px; }
.cd-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.cd-head .cd-lead, .cd-head p { margin: 16px 0 0; }
.cd-head .cd-rule + p { margin-top: 0; }
.cd-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.cd-head--split > div { max-width: 720px; }
@media (min-width: 1024px) { .cd-head { margin-bottom: 56px; } }

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

.cd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 14px 26px;
	border: 2px solid transparent;
	border-radius: var(--radius-btn);
	font-family: var(--font-ui);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.cd-btn:hover { transform: translateY(-2px); }
.cd-btn:active { transform: translateY(0) scale(0.98); }
.cd-btn .cd-icon { flex: none; }

.cd-btn--primary { background: var(--or); color: var(--on-or); box-shadow: 0 8px 22px color-mix(in srgb, var(--or) 35%, transparent); }
.cd-btn--primary:hover, .cd-btn--primary:focus-visible { background: var(--or-hover); color: var(--on-or); }
.cd-btn--light { background: var(--blanc-pur); color: var(--ink); }
.cd-btn--light:hover { background: var(--soft); color: var(--ink); }
.cd-btn--ghost { background: transparent; color: var(--blanc-pur); border-color: rgba(255, 255, 255, 0.7); }
.cd-btn--ghost:hover { background: var(--blanc-pur); color: var(--ink); border-color: var(--blanc-pur); }
.cd-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.cd-btn--outline:hover { background: var(--ink); color: var(--blanc-pur); }
.cd-btn--lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.cd-btn--block { width: 100%; }

.cd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cd-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; text-decoration: none; color: var(--link); }
.cd-link-arrow .cd-icon { transition: transform var(--t) var(--ease); }
.cd-link-arrow:hover .cd-icon { transform: translateX(4px); }
.cd-section--dark .cd-link-arrow, .cd-section--blue .cd-link-arrow { color: var(--accent-blue); }
.cd-section--dark .cd-link-arrow:hover, .cd-section--blue .cd-link-arrow:hover { color: var(--blanc-pur); }

/* ---------- Image zoom (cadre fixe, zoom au survol) ---------- */

.cd-zoom { overflow: hidden; position: relative; }
.cd-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.cd-zoom:hover img, a:hover .cd-zoom img, a:focus-visible .cd-zoom img { transform: scale(1.05); }

/* ==========================================================================
   En-tête : transparent sur l'accroche, encre au défilement
   ========================================================================== */

.cd-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--blanc-pur); transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.cd-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(to bottom, rgba(10, 8, 35, 0.5), transparent); pointer-events: none; transition: opacity 300ms var(--ease); }
.cd-header.is-solid { background: var(--ink); box-shadow: 0 1px 0 var(--line-dark); }
.cd-header.is-solid::before { opacity: 0; }
body.admin-bar .cd-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .cd-header { top: 32px; } }

.cd-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.cd-nav__list { list-style: none; margin: 0; padding: 0; }
.cd-nav__list a, .cd-nav__subtoggle { color: inherit; text-decoration: none; font-family: var(--font-ui); font-weight: 600; white-space: nowrap; }

.cd-header__actions { display: flex; align-items: center; gap: 12px; }
.cd-header__cta { display: none; }
.cd-header__phone { display: none; align-items: center; gap: 8px; color: var(--blanc-pur); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cd-header__phone:hover { color: var(--or); }

.cd-burger {
	display: inline-grid; place-items: center;
	width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.12); color: var(--blanc-pur);
	cursor: pointer; position: relative; z-index: 120;
	transition: background-color 200ms var(--ease);
}
.cd-burger:hover { background: rgba(255, 255, 255, 0.22); }
.cd-burger .cd-icon:last-child { display: none; }
.cd-burger[aria-expanded="true"] .cd-icon:first-child { display: none; }
.cd-burger[aria-expanded="true"] .cd-icon:last-child { display: block; }

@media (max-width: 1023px) {
	.cd-nav {
		position: fixed; inset: 0; z-index: 110;
		display: flex; flex-direction: column;
		padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
		background: var(--ink);
		overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-12px);
		transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
	}
	.cd-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	body.cd-nav-open { overflow: hidden; }
	body.cd-nav-open .cd-header { background: var(--ink); }

	.cd-nav__list > li { border-bottom: 1px solid var(--line-dark); }
	.cd-nav__list > li > a, .cd-nav__subtoggle {
		display: flex; align-items: center; justify-content: space-between;
		width: 100%; min-height: 56px; padding: 8px 0;
		border: 0; background: none;
		font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 26px;
		text-align: left; cursor: pointer; color: var(--blanc-pur);
	}
	.cd-nav__list > li.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
	.cd-nav__list > li.has-sub > .cd-nav__subtoggle { justify-content: center; width: 56px; }
	.cd-nav__list > li.has-sub > .cd-sub { grid-column: 1 / -1; }
	.cd-nav__subtoggle .cd-icon { transition: transform 300ms var(--ease); }
	.cd-nav__subtoggle[aria-expanded="true"] .cd-icon { transform: rotate(180deg); }
	.cd-sub { display: none; padding: 0 0 16px; }
	.cd-sub.is-open { display: block; }
	.cd-sub ul { list-style: none; margin: 0; padding: 0; }
	.cd-sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--muted-dark); }
	.cd-sub a:hover { color: var(--or); }
	.cd-sub small { display: none; }
	.cd-sub .cd-sub__all { gap: 8px; color: var(--or); }
	.cd-nav__mobile-actions { display: grid; gap: 12px; margin-top: 32px; }
}

@media (min-width: 1024px) {
	.cd-burger, .cd-nav__mobile-actions { display: none; }
	.cd-header__cta { display: inline-flex; }
	.cd-nav { flex: 1; display: flex; justify-content: center; }
	.cd-nav__list { display: flex; align-items: center; gap: 4px; }
	.cd-nav__list > li { position: relative; }
	.cd-nav__list > li > a, .cd-nav__subtoggle {
		display: inline-flex; align-items: center; gap: 6px;
		min-height: 44px; padding: 8px 14px;
		border: 0; border-radius: var(--radius-btn); background: none;
		font-size: 15px; cursor: pointer;
		transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
	}
	.cd-nav__list > li > a:hover, .cd-nav__list > li > a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: var(--blanc-pur); }
	.cd-nav__list > li.has-sub { display: inline-flex; align-items: center; border-radius: var(--radius-btn); transition: background-color var(--t) var(--ease); }
	.cd-nav__list > li.has-sub:hover, .cd-nav__list > li.has-sub:has(> a[aria-current="page"], > a.is-section) { background: rgba(255, 255, 255, 0.12); }
	.cd-nav__list > li.has-sub > a { padding-right: 2px; }
	.cd-nav__list > li.has-sub > a:hover, .cd-nav__list > li.has-sub > a[aria-current="page"] { background: none; }
	.cd-nav__list > li.has-sub > .cd-nav__subtoggle { padding: 8px 12px 8px 4px; }
	.cd-nav__subtoggle .cd-icon { transition: transform 300ms var(--ease); }

	.cd-sub {
		position: absolute; top: calc(100% + 12px); left: 50%;
		width: min(640px, 90vw); padding: 12px;
		border-radius: var(--radius); background: var(--ink);
		box-shadow: var(--shadow), 0 0 0 1px var(--line-dark);
		opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
		transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms;
	}
	.cd-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.has-sub:hover .cd-sub, .has-sub:focus-within .cd-sub, .cd-sub.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
	.has-sub:hover .cd-nav__subtoggle .cd-icon, .cd-nav__subtoggle[aria-expanded="true"] .cd-icon { transform: rotate(180deg); }
	.cd-sub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
	.cd-sub a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--blanc-pur); white-space: normal; border-left: 2px solid transparent; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
	.cd-sub a:hover, .cd-sub a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); border-left-color: var(--or); color: var(--blanc-pur); }
	.cd-sub a strong { display: block; font-size: 15px; }
	.cd-sub a small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--muted-dark); }
	.cd-sub .cd-sub__all { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; padding: 12px; border-top: 1px solid var(--line-dark); border-left: 0; border-radius: 0; color: var(--or); font-size: 14px; }
	.cd-sub .cd-sub__all:hover { background: none; color: var(--blanc-pur); }
}
@media (min-width: 1280px) { .cd-header__phone { display: inline-flex; } }

/* Bouton flottant (devis, ou WhatsApp / appel quand renseignés). */
.cd-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; justify-items: end; }
.cd-fab a {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 56px; height: 56px; padding: 0 20px;
	border-radius: 999px;
	background: var(--or); color: var(--on-or);
	font-family: var(--font-ui); font-weight: 600; text-decoration: none;
	box-shadow: var(--shadow);
	transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.cd-fab a:hover { transform: translateY(-2px); background: var(--or-hover); color: var(--on-or); }
.cd-fab a.cd-fab__phone { width: 56px; padding: 0; background: var(--ink); color: var(--blanc-pur); }
.cd-fab a.cd-fab__whatsapp { background: var(--blanc-pur); color: var(--ink); }
.cd-fab a.cd-fab__whatsapp .cd-icon { color: #25d366; }
@media (min-width: 1024px) {
	.cd-fab { right: 24px; bottom: 24px; }
	.cd-fab a.cd-fab__phone, .cd-fab a.cd-fab__devis { display: none; }
}
body.cd-nav-open .cd-fab { display: none; }
.cd-js .cd-fab { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms; }
.cd-js .cd-fab.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s; }

/* ==========================================================================
   Accroche accueil, plein écran, zoom lent
   ========================================================================== */

.cd-hero {
	position: relative; display: flex; align-items: flex-end;
	min-height: 100vh; min-height: 100svh;
	padding: calc(var(--header-h) + 48px) 0 72px;
	overflow: hidden; background: var(--ink); color: var(--blanc-pur); isolation: isolate;
}
.cd-hero__media { position: absolute; inset: 0; z-index: -2; }
.cd-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cd-kenburns img { animation: cd-kenburns 14s var(--ease) forwards; transform-origin: 60% 40%; }
@keyframes cd-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
/* Voile encre : dense derrière le texte, levé à droite pour laisser les volets
   garder leur vraie couleur. Sur mobile, le texte couvre la largeur : voile plein. */
.cd-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, var(--ink) 58%, transparent));
}
@media (min-width: 1024px) {
	.cd-hero::after {
		background:
			linear-gradient(to top, color-mix(in srgb, var(--ink) 55%, transparent), transparent 30%),
			linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 74%, transparent) 42%, transparent 72%);
	}
}
.cd-hero__content { max-width: 820px; }
.cd-hero .cd-h1 { margin: 0; }
.cd-hero .cd-lead { color: rgba(255, 255, 255, 0.9); margin: 0 0 32px; }
.cd-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.cd-hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.cd-hero__meta .cd-icon { color: var(--or); }
.cd-hero__scroll {
	position: absolute; right: var(--gutter); bottom: 32px;
	display: none; align-items: center; gap: 12px;
	color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
	writing-mode: vertical-rl;
}
.cd-hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--or), transparent); animation: cd-scrollcue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cd-scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1024px) {
	.cd-hero { padding-bottom: 104px; }
	.cd-hero__scroll { display: inline-flex; }
}

/* ---------- Accroche des pages internes ---------- */

.cd-page-hero {
	position: relative; display: flex; align-items: flex-end;
	min-height: 60vh;
	padding: calc(var(--header-h) + 64px) 0 56px;
	overflow: hidden; background: var(--ink); color: var(--blanc-pur); isolation: isolate;
}
.cd-page-hero__media { position: absolute; inset: 0; z-index: -2; }
.cd-page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cd-page-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, var(--ink) 58%, transparent));
}
@media (min-width: 1024px) {
	.cd-page-hero::after {
		background:
			linear-gradient(to top, color-mix(in srgb, var(--ink) 50%, transparent), transparent 40%),
			linear-gradient(90deg, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 68%, transparent) 45%, transparent 78%);
	}
}
.cd-page-hero--plain { background: radial-gradient(900px 520px at 88% 0%, color-mix(in srgb, var(--lavande) 30%, transparent), transparent 70%), var(--ink); }
.cd-page-hero--plain::after { background: none; }
.cd-page-hero--short { min-height: 0; padding-bottom: 48px; }
.cd-page-hero__content { max-width: 820px; }
.cd-page-hero .cd-lead { color: rgba(255, 255, 255, 0.88); margin: 20px 0 0; }
.cd-page-hero .cd-actions { margin-top: 28px; }
@media (min-width: 1024px) { .cd-page-hero { min-height: 68vh; padding-bottom: 80px; } .cd-page-hero--short { min-height: 0; padding-bottom: 64px; } }

/* ---------- Fil d'Ariane ---------- */

.cd-breadcrumb { background: var(--soft); font-family: var(--font-ui); font-size: 14px; }
.cd-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 14px 0; list-style: none; }
.cd-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cd-breadcrumb a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cd-breadcrumb a:hover { color: var(--link); text-decoration: underline; }

/* ==========================================================================
   Bandeau de confiance
   ========================================================================== */

.cd-trust { background: var(--ink); color: var(--blanc-pur); padding: 40px 0; border-top: 1px solid var(--line-dark); }
.cd-trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
.cd-trust__value { display: block; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(32px, 4vw, 46px); line-height: 1; color: var(--or); font-variant-numeric: tabular-nums; }
.cd-trust__label { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--muted-dark); }
@media (min-width: 768px) {
	.cd-trust { padding: 56px 0; }
	.cd-trust__list { grid-template-columns: repeat(var(--cols, 4), 1fr); }
	.cd-trust__list > li + li { border-left: 1px solid var(--line-dark); padding-left: 24px; }
}

/* ==========================================================================
   Cartes gamme
   ========================================================================== */

.cd-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .cd-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .cd-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* 5 cartes (ou 4 sur une page gamme) : la dernière rangée est centrée. */
@media (min-width: 768px) {
	.cd-services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
	.cd-services-grid > .cd-scard { width: calc(50% - 12px); }
}
@media (min-width: 1024px) {
	.cd-services-grid { gap: 28px; }
	.cd-services-grid > .cd-scard { width: calc((100% - 56px) / 3); }
}

.cd-scard { height: auto; }
.cd-scard__link {
	display: flex; flex-direction: column; height: 100%;
	overflow: hidden; border-radius: var(--radius);
	background: var(--blanc-pur); color: var(--text); text-decoration: none;
	box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
	transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.cd-scard__link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.cd-scard__media { aspect-ratio: 4 / 3; }
.cd-scard__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 24px; border-top: 3px solid var(--or); }
.cd-scard__title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 23px; line-height: 1.25; color: var(--ink); }
.cd-typo-sans .cd-scard__title { font-size: 20px; }
.cd-scard__text { margin: 8px 0 20px; font-size: 16px; color: var(--muted); }
.cd-scard__more { margin-top: auto; }

/* ==========================================================================
   Cartes réalisation
   ========================================================================== */

.cd-rcard__link { display: block; color: var(--text); text-decoration: none; }
.cd-rcard__link:hover { color: var(--text); }
.cd-rcard__media { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft); }
.cd-rcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.cd-rcard__body { padding: 16px 2px 0; }
.cd-rcard__title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 21px; line-height: 1.3; color: var(--ink); }
.cd-rcard__title span { background: linear-gradient(var(--or), var(--or)) 0 100% / 0 2px no-repeat; transition: background-size 400ms var(--ease); }
.cd-rcard__link:hover .cd-rcard__title span { background-size: 100% 2px; }
.cd-rcard__service { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.cd-empty { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 48px 24px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); border-radius: var(--radius); text-align: center; color: var(--muted); }
.cd-empty .cd-icon { color: var(--accent); }
.cd-empty p { margin: 0; }

/* ==========================================================================
   Blocs éditoriaux
   ========================================================================== */

.cd-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) {
	.cd-split { grid-template-columns: 1fr 1fr; gap: 80px; }
	.cd-split--reverse > :first-child { order: 2; }
}
.cd-split__media { position: relative; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.cd-split__media--wide { aspect-ratio: 4 / 3; }
/* Liseré doré décalé derrière les grandes photos (« dorures »). */
@media (min-width: 1024px) {
	.cd-split__media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1px solid var(--or); border-radius: var(--radius); }
	.cd-split__media { overflow: visible; isolation: isolate; }
	.cd-split__media img { border-radius: var(--radius); }
	.cd-split__media.cd-zoom { overflow: visible; }
	.cd-split__media.cd-zoom img { clip-path: inset(0 round var(--radius)); }
}

.cd-checklist { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.cd-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.cd-checklist .cd-icon { flex: none; margin-top: 4px; padding: 4px; border-radius: 50%; background: var(--soft-2); color: var(--ink); box-sizing: content-box; }

/* Page /volets-sur-mesure/ : une ligne photo + texte par gamme. */
.cd-offers { display: grid; gap: 72px; }
@media (min-width: 1024px) { .cd-offers { gap: 112px; } }
.cd-offer .cd-split__media { display: block; }
.cd-offer__title { margin: 0 0 12px; }
.cd-offer__title a { color: inherit; text-decoration: none; }
.cd-offer__title a:hover { color: var(--accent); }
.cd-offer .cd-lead { margin: 0; }
@media (min-width: 768px) { .cd-offer__list { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.cd-offer .cd-actions { align-items: center; }

.cd-prestations { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .cd-prestations { grid-template-columns: 1fr 1fr; } }
.cd-prestations li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; background: var(--soft); font-weight: 600; font-size: 16px; color: var(--ink); transition: transform 250ms var(--ease), background-color 250ms var(--ease); }
.cd-prestations li:hover { transform: translateX(4px); background: var(--soft-2); }
.cd-prestations .cd-icon { flex: none; color: var(--or); }

.cd-service-intro { display: grid; gap: 40px; }
@media (min-width: 1024px) { .cd-service-intro { grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; } }
.cd-service-intro__aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .cd-service-intro__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.cd-service-intro__photo { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.cd-aside-card { padding: 26px; border-radius: var(--radius); background: var(--ink); color: var(--blanc-pur); border-top: 3px solid var(--or); }
.cd-aside-card__title { display: block; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 22px; line-height: 1.25; }
.cd-aside-card p { margin: 8px 0 20px; color: var(--muted-dark); font-size: 16px; }
.cd-aside-card .cd-actions { flex-direction: column; }
.cd-aside-card .cd-btn { width: 100%; }

.cd-sections { display: grid; gap: 32px; margin-top: 64px; }
@media (min-width: 1024px) { .cd-sections { grid-template-columns: 1fr 1fr; gap: 56px; } }
.cd-sections article { padding-top: 24px; border-top: 2px solid var(--or); }
.cd-sections h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(23px, 2.5vw, 29px); line-height: 1.25; margin: 0 0 14px; color: var(--ink); }
.cd-sections p { margin: 0; }

.cd-related { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* Étapes : vraie liste <ol> (Playbook §6), sur fond bleu. */
.cd-steps { counter-reset: cd-step; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .cd-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .cd-steps { grid-template-columns: repeat(4, 1fr); } }
.cd-steps li {
	counter-increment: cd-step; position: relative;
	padding: 28px 24px 26px; border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
	transition: transform 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.cd-steps li:hover { transform: translateY(-4px); border-color: var(--or); background: rgba(255, 255, 255, 0.12); }
.cd-steps li::before { content: counter(cd-step, decimal-leading-zero); position: absolute; top: 22px; right: 24px; font-family: var(--font-heading); font-size: 40px; font-weight: var(--heading-weight); font-style: var(--em-style); line-height: 1; color: rgba(255, 255, 255, 0.22); }
.cd-steps__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: var(--or); color: var(--on-or); }
.cd-steps h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.cd-typo-sans .cd-steps h3 { font-size: 18px; }
.cd-steps p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.84); }

/* Galerie de gamme : mosaïque, agrandissement au clic. */
.cd-gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.cd-gallery__item { position: relative; border-radius: var(--radius); aspect-ratio: 1; display: block; }
.cd-gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
	.cd-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
	.cd-gallery__item { aspect-ratio: auto; }
	.cd-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	.cd-gallery__item:nth-child(2) { grid-column: span 2; }
}
@media (min-width: 1024px) { .cd-gallery { grid-auto-rows: 260px; } }

/* FAQ : <details> natif. */
.cd-faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.cd-faq details { border-radius: var(--radius); background: var(--blanc-pur); border: 1px solid var(--line); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.cd-faq details[open] { border-color: var(--or); box-shadow: 0 8px 24px rgba(12, 10, 40, 0.06); }
.cd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.cd-faq summary::-webkit-details-marker { display: none; }
.cd-faq summary .cd-icon { flex: none; color: var(--or); transition: transform 300ms var(--ease); }
.cd-faq details[open] summary .cd-icon { transform: rotate(180deg); }
.cd-faq__answer { padding: 0 24px 22px; }
.cd-faq__answer p { margin: 0; }

/* ==========================================================================
   Zone d'intervention
   ========================================================================== */

.cd-communes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cd-communes li > span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--blanc-pur); font-family: var(--font-ui); font-size: 15px; font-weight: 600; }
.cd-communes--primary li > span { background: var(--or); color: var(--on-or); }
.cd-section--soft .cd-communes li > span { background: var(--blanc-pur); color: var(--ink); border: 1px solid var(--line); }
.cd-section--soft .cd-communes--primary li > span { background: var(--ink); color: var(--blanc-pur); border-color: var(--ink); }
.cd-zone__group + .cd-zone__group { margin-top: 28px; }
.cd-zone__group h3 { margin: 0 0 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or); }
.cd-section--soft .cd-zone__group h3 { color: var(--muted); }

/* ==========================================================================
   Bandeau devis, fin de chaque page
   ========================================================================== */

.cd-cta { position: relative; padding: 96px 0; overflow: hidden; background: var(--ink); color: var(--blanc-pur); isolation: isolate; text-align: center; }
.cd-cta__media { position: absolute; inset: 0; z-index: -2; }
.cd-cta__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.cd-cta.is-visible .cd-cta__media img { transform: scale(1); }
.cd-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 70%, transparent), color-mix(in srgb, var(--ink) 82%, transparent)); }
.cd-cta .cd-h2 { max-width: 780px; margin: 0 auto 16px; }
.cd-cta p { max-width: 640px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.88); }
.cd-cta .cd-actions { justify-content: center; }
.cd-cta__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.cd-cta__checks li { display: inline-flex; align-items: center; gap: 8px; }
.cd-cta__checks .cd-icon { color: var(--or); }
@media (min-width: 1024px) { .cd-cta { padding: 144px 0; } }

/* ==========================================================================
   Formulaire de devis
   ========================================================================== */

.cd-contact { display: grid; gap: 40px; }
@media (min-width: 1024px) { .cd-contact { grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; } }
.cd-form { display: grid; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--blanc-pur); box-shadow: 0 20px 50px rgba(12, 10, 40, 0.08); border: 1px solid var(--line); border-top: 3px solid var(--or); }
@media (min-width: 768px) { .cd-form { padding: 40px; } }
.cd-form__title { font-size: clamp(26px, 3vw, 34px); }
.cd-form__row { display: grid; gap: 18px; }
@media (min-width: 768px) { .cd-form__row--2 { grid-template-columns: 1fr 1fr; } }
.cd-field { display: grid; gap: 8px; }
.cd-field label { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--ink); }
.cd-field label span { color: var(--or); }
.cd-field input, .cd-field select, .cd-field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px;
	border: 1.5px solid #cfcde0; border-radius: 6px;
	background: var(--blanc-pur); color: var(--text);
	font-family: var(--font-body); font-size: 16px; box-sizing: border-box;
	transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.cd-field textarea { min-height: 150px; resize: vertical; }
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lavande) 35%, transparent); }
.cd-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cd-form__legal { margin: 0; font-size: 13px; color: var(--muted); }
.cd-notice { padding: 16px 20px; border-radius: 8px; font-weight: 600; }
.cd-notice--ok { background: var(--soft-2); color: var(--ink); }
.cd-notice--error { background: #f8e3e1; color: #7a2117; }

.cd-coords { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cd-coords li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 8px; background: var(--blanc-pur); border: 1px solid var(--line); }
.cd-coords .cd-icon { flex: none; margin-top: 2px; color: var(--or); }
.cd-coords small { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cd-coords a, .cd-coords strong { color: var(--ink); font-weight: 600; text-decoration: none; }
.cd-coords a:hover { color: var(--link); text-decoration: underline; }
.cd-contact__photo { margin-top: 16px; border-radius: var(--radius); aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .cd-contact__photo { display: none; } }

/* ==========================================================================
   Pages texte (légales, articles, réalisations)
   ========================================================================== */

.cd-legal h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 28px; margin: 48px 0 16px; color: var(--ink); }
.cd-legal h2:first-child { margin-top: 0; }
.cd-legal dl { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 8px 24px; margin: 0; }
.cd-legal dt { font-weight: 600; color: var(--ink); }
.cd-legal dd { margin: 0; }
@media (max-width: 599px) { .cd-legal dl { grid-template-columns: 1fr; } .cd-legal dd { margin-bottom: 8px; } }
.cd-credits { columns: 2 260px; gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.cd-credits li { break-inside: avoid; margin-bottom: 6px; }

.cd-article-content > * { max-width: 70ch; }
.cd-article-content > .wp-block-gallery, .cd-article-content > .wp-block-image, .cd-article-content > figure { max-width: none; }
.cd-article-content p { margin: 0 0 1.1em; }
.cd-article-content h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(26px, 3vw, 32px); margin: 1.5em 0 0.6em; color: var(--ink); }
.cd-article-content h3 { font-size: 20px; font-weight: 600; margin: 1.4em 0 0.5em; }
.cd-article-content img { border-radius: var(--radius); }
.cd-article-content .wp-block-gallery { gap: 12px; margin: 32px 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.cd-footer { background: var(--ink); color: var(--muted-dark); font-size: 15px; padding: 72px 0 0; }
.cd-footer a { color: var(--blanc-pur); text-decoration: none; }
.cd-footer a:hover { color: var(--or); text-decoration: underline; }
.cd-footer .cd-logo { color: var(--blanc-pur); }
.cd-footer .cd-logo:hover { text-decoration: none; }
.cd-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .cd-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; } }
.cd-footer h2 { margin: 0 0 18px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or); }
.cd-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cd-footer__brand p { max-width: 36ch; margin: 22px 0 24px; }
.cd-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.cd-footer__contact .cd-icon { flex: none; margin-top: 3px; color: var(--or); }
.cd-social { display: flex; gap: 10px; }
.cd-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.cd-social a:hover { background: var(--bleu); text-decoration: none; }
.cd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.cd-footer__bottom p { margin: 0; }
@media (max-width: 1023px) { .cd-footer { padding-bottom: 88px; } }

/* ---------- Visionneuse photo ---------- */

.cd-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(8, 7, 28, 0.94); }
.cd-lightbox[hidden] { display: none; }
.cd-lightbox img { max-width: min(1400px, 100%); max-height: 84vh; width: auto; border-radius: 8px; animation: cd-pop 350ms var(--ease); }
@keyframes cd-pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-lightbox__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--blanc-pur); cursor: pointer; }
.cd-lightbox__caption { margin: 12px 0 0; color: var(--muted-dark); font-size: 14px; text-align: center; }

/* ==========================================================================
   Mouvement : apparition au défilement. Uniquement quand le JS tourne
   (classe cd-js posée en <head>) : sans JS, rien n'est masqué.
   ========================================================================== */

.cd-js .cd-reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.cd-js .cd-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.cd-js .cd-reveal { opacity: 1; transform: none; }
	.cd-btn:hover, .cd-fab a:hover { transform: none; }
	.cd-zoom:hover img, a:hover .cd-zoom img { transform: none; }
}

/* Récit de l'accueil : pourquoi, comment, quoi */
.cd-why__list { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .cd-why__list { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.cd-why__list li { border-top: 2px solid var(--or); padding-top: 20px; }
.cd-why__list h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 24px; line-height: 1.25; margin: 8px 0 12px; color: var(--ink); }
.cd-why__list p { margin: 0 0 16px; }

/* Comparatif des matériaux : défile seul sur mobile, jamais la page */
.cd-compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--blanc-pur); }
.cd-compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.cd-compare th, .cd-compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cd-compare tbody tr:last-child th, .cd-compare tbody tr:last-child td { border-bottom: 0; }
.cd-compare thead th { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 18px; color: var(--ink); }
.cd-compare tbody th { font-weight: 600; color: var(--ink); }
.cd-compare .is-featured { background: var(--soft); }
.cd-compare thead .is-featured { background: var(--ink); color: var(--blanc-pur); }
