/* =========================================================
   PREFALIM87 — Thème WordPress sur-mesure
   Style : minimal premium « cabinet d'architecte »
   Palette : bleu nuit / bleu royal / blanc / gris clair
   ========================================================= */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	/* Couleurs (tokens sémantiques) */
	--c-night: #0B1A33;        /* bleu nuit — texte, fonds sombres */
	--c-night-2: #13264A;
	--c-royal: #1D4ED8;        /* bleu royal — action (6,7:1 sur blanc) */
	--c-royal-600: #1A43BD;
	--c-royal-soft: #E8EEFC;
	--c-white: #FFFFFF;
	--c-grey-50: #F5F7FA;      /* gris clair — sections alternées */
	--c-grey-100: #EDF0F5;
	--c-line: #DCE2EB;
	--c-text: #0B1A33;
	--c-muted: #4A5568;        /* 7,5:1 sur blanc */
	--c-on-dark: #E6ECF7;
	--c-on-dark-muted: #A9B6CF; /* 7:1 sur bleu nuit */
	--c-ok: #0F7B4B;
	--c-err: #B42318;

	/* Typo */
	--f-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1.0625rem; --fs-lg: 1.1875rem;
	--fs-h4: 1.125rem; --fs-h3: 1.375rem;
	--fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
	--fs-h1: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem);

	/* Espacements (échelle 4/8) */
	--s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
	--section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
	--gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
	--container: 1240px;

	/* Formes & effets */
	--r-sm: 4px; --r-md: 8px; --r-lg: 14px;
	--shadow-1: 0 1px 2px rgba(11,26,51,.06), 0 1px 1px rgba(11,26,51,.04);
	--shadow-2: 0 12px 32px -12px rgba(11,26,51,.18);
	--shadow-3: 0 24px 60px -20px rgba(11,26,51,.28);
	--ease: cubic-bezier(.2,.7,.2,1);
	--t-fast: 160ms; --t-med: 240ms;

	/* Z-index */
	--z-header: 40; --z-bar: 50; --z-nav: 60; --z-skip: 100; --z-lightbox: 1000;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.65; color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-royal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-royal-600); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--c-night); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 var(--s-4); font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-royal); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--c-royal); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.text-lg { font-size: var(--fs-lg); color: var(--c-muted); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: var(--z-skip); background: var(--c-night); color: #fff; padding: .75rem 1rem; border-radius: var(--r-md); font-weight: 600; }
.skip-link:focus { top: 1rem; color: #fff; }

.icon { flex-shrink: 0; }

/* ---------- Eyebrow (repère d'architecte) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-royal); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #8FB0FF; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: var(--r-md); border: 1.5px solid transparent; font-family: var(--f-head); font-weight: 700; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); touch-action: manipulation; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn .icon-arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-royal); color: #fff; box-shadow: 0 6px 18px -8px rgba(29,78,216,.6); }
.btn--primary:hover { background: var(--c-royal-600); color: #fff; }
.btn--outline { background: transparent; color: var(--c-night); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-night); color: var(--c-night); background: var(--c-grey-50); }
.btn--light { background: #fff; color: var(--c-night); }
.btn--light:hover { background: var(--c-royal-soft); color: var(--c-night); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-head); font-weight: 700; font-size: .9375rem; color: var(--c-royal); text-decoration: none; }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }
.link-arrow--lg { font-size: 1rem; margin-top: var(--s-5); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: var(--shadow-1); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-night); min-height: 44px; }
.brand-mark { color: var(--c-night); }
.brand-logo { max-height: 48px; width: auto; }
.brand-text { font-family: var(--f-head); font-size: 1.25rem; letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: baseline; }
.brand-text strong { font-weight: 800; }
.brand-text span { font-weight: 500; color: var(--c-royal); margin-left: .1em; }
.brand--light, .brand--light .brand-text strong { color: #fff; }
.brand--light .brand-text span { color: #8FB0FF; }

.nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; font-family: var(--f-head); font-weight: 600; font-size: .9375rem; color: var(--c-night); text-decoration: none; border-radius: var(--r-sm); position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .45rem; height: 1.5px; background: var(--c-royal); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .nav-list > .current-menu-parent > a::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--c-royal); }

/* Sous-menu Services */
.nav-list .menu-item-has-children { position: relative; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; margin-left: -.6rem; background: none; border: 0; color: var(--c-night); cursor: pointer; }
.submenu-toggle svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.nav-list .sub-menu { list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; padding: .5rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast); }
.nav-list .menu-item-has-children:hover > .sub-menu, .nav-list .menu-item-has-children:focus-within > .sub-menu, .nav-list .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { display: flex; width: 100%; padding: .6rem .8rem; border-radius: var(--r-md); font-weight: 600; }
.nav-list .sub-menu a:hover { background: var(--c-grey-50); color: var(--c-royal); }

.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: .9375rem; color: var(--c-night); text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone .icon { color: var(--c-royal); }
.header-phone:hover { color: var(--c-royal); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-md); color: var(--c-night); cursor: pointer; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
.nav-mobile-foot { display: none; }

@media (max-width: 1080px) {
	.header-phone span { display: none; }
	.header-phone { width: 44px; justify-content: center; border: 1px solid var(--c-line); border-radius: var(--r-md); }
}
@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: inline-flex; }
	.header-cta, .header-phone { display: none; }
	.main-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-nav); background: #fff; padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med); display: flex; flex-direction: column; }
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { border-bottom: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; }
	.nav-list > li > a { flex: 1; font-size: 1.25rem; min-height: 60px; padding-inline: 0; }
	.nav-list > li > a::after { display: none; }
	.submenu-toggle { width: 48px; height: 60px; margin: 0; }
	.nav-list .sub-menu { position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 var(--s-3); opacity: 1; visibility: visible; transform: none; display: none; }
	.nav-list .menu-item-has-children.is-open > .sub-menu { display: block; }
	.nav-list .menu-item-has-children:hover > .sub-menu { display: none; }
	.nav-list .menu-item-has-children.is-open:hover > .sub-menu { display: block; }
	.nav-list .sub-menu a { font-size: 1.0625rem; padding-left: var(--s-4); min-height: 48px; color: var(--c-muted); }
	.nav-mobile-foot { display: grid; gap: var(--s-3); margin-top: auto; padding-top: var(--s-6); }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 var(--section-y); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--c-grey-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-grey-100) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--c-royal); display: inline; }
.hero-lead, .page-lead { font-size: var(--fs-lg); color: var(--c-muted); max-width: 60ch; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-actions--center { justify-content: center; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.hero-proof li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: var(--fs-sm); color: var(--c-night); }
.hero-proof .icon { color: var(--c-royal); }
.hero-visual { position: relative; }
.hero-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--c-night); box-shadow: var(--shadow-3); }
.hero-frame--sm { aspect-ratio: 4 / 3.4; }
.hero-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }
.hero-frame .visual-img, .hero-frame .visual-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: -24px; bottom: 32px; display: grid; gap: 2px; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.hero-card-k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.hero-card-v { font-family: var(--f-head); font-weight: 800; color: var(--c-night); }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-frame { aspect-ratio: 16 / 11; }
	.hero-card { left: 16px; bottom: 16px; }
	.hero-proof { margin-top: var(--s-6); }
}
@media (max-width: 520px) {
	.hero-actions .btn { width: 100%; }
	.hero-proof { flex-direction: column; }
}

/* ---------- Visuel placeholder (plan d'architecte) ---------- */
.visual-placeholder { position: relative; width: 100%; height: 100%; min-height: 100%; background: linear-gradient(145deg, var(--c-night) 0%, var(--c-night-2) 60%, #1B3566 100%); color: #9DB7FF; display: flex; align-items: flex-end; }
.visual-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-label { position: relative; margin: 1rem; padding: .35rem .7rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .02em; }
.visual-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section--alt { background: var(--c-grey-50); }
.section--dark { background: var(--c-night); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p:last-child { color: var(--c-muted); font-size: var(--fs-lg); margin: 0; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.section-head--row h2 { margin: 0; }

/* ---------- Cartes services ---------- */
.services-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.service-card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.service-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.service-card:hover { border-color: var(--c-night); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.service-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-night); }
.service-card-media .visual-img { transition: transform 600ms var(--ease); }
.service-card:hover .service-card-media .visual-img { transform: scale(1.04); }
.service-card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: var(--s-5) var(--s-5) var(--s-6); }
.service-num { position: absolute; top: var(--s-5); right: var(--s-5); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.service-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--c-royal-soft); color: var(--c-royal); margin-bottom: var(--s-4); }
.service-card h3 { margin-bottom: var(--s-2); }
.service-card p { color: var(--c-muted); flex: 1; }
.service-card--cta { background: var(--c-night); border-color: var(--c-night); color: var(--c-on-dark); }
.service-card--cta:hover { transform: none; }
.service-card--cta .service-card-body { justify-content: center; padding: var(--s-6); }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: var(--c-on-dark-muted); flex: 0; margin-bottom: var(--s-5); }
.service-card--cta .btn { align-self: flex-start; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split--top { align-items: start; }
.split-visual { aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--c-night); }
.split-text > p { color: var(--c-muted); }
.check-list { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { color: var(--c-royal); margin-top: 3px; }
.check-list strong { color: var(--c-night); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Étapes ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--c-line); }
.step { position: relative; padding: var(--s-6) var(--s-5) 0 0; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--c-royal); }
.step-num { display: block; font-family: var(--f-head); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--c-line); margin-bottom: var(--s-4); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.step p { color: var(--c-muted); margin: 0; font-size: var(--fs-sm); }
.steps--compact { grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); border-top: 0; }
.steps--compact .step { border-top: 1px solid var(--c-line); padding-bottom: var(--s-5); }
.section--alt .step-num { color: #CBD3E0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); border-top: 0; } .step { border-top: 1px solid var(--c-line); padding-bottom: var(--s-5); } }
@media (max-width: 520px) { .steps, .steps--compact { grid-template-columns: 1fr; } }

/* ---------- Réalisations ---------- */
.real-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.real-item { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--c-night-2); }
.real-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.real-item a { display: block; height: 100%; }
.real-item a:hover img { transform: scale(1.04); }
.real-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; background: linear-gradient(transparent, rgba(11,26,51,.85)); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.real-grid--full { grid-template-columns: repeat(3, 1fr); }
.real-grid--full .real-item { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .real-grid, .real-grid--full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .real-grid--full { grid-template-columns: 1fr; } }

.empty-state { max-width: 520px; margin: 0 auto; text-align: center; padding: var(--s-8) var(--s-5); border: 1px dashed var(--c-line); border-radius: var(--r-lg); }
.empty-state > .icon { margin: 0 auto var(--s-4); color: var(--c-royal); }
.empty-state p { color: var(--c-muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: none; align-items: center; justify-content: center; padding: var(--s-5); background: rgba(6,14,28,.92); }
.lightbox.is-open { display: flex; animation: fade var(--t-med) var(--ease); }
.lightbox figure { margin: 0; max-width: 1100px; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: var(--s-3); }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Zone ---------- */
.zone-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s-5); }
.zone-list li { display: flex; align-items: center; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--c-line); font-weight: 600; color: var(--c-night); }
.zone-list .icon { color: var(--c-royal); }
.split-text .btn { margin-top: var(--s-3); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-night); color: var(--c-on-dark); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: center; padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--c-on-dark-muted); font-size: var(--fs-lg); max-width: 56ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .cta-actions .btn { width: 100%; } }

/* ---------- Pages internes ---------- */
.page-hero { position: relative; padding: clamp(2rem, 1rem + 3vw, 4rem) 0 clamp(2.5rem, 1.5rem + 4vw, 5rem); background: var(--c-grey-50); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--c-grey-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-grey-100) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); max-width: 20ch; }
.page-hero--service .hero-grid { align-items: center; }
.page-hero--service h1 { max-width: none; }
.page-hero .page-lead { margin-bottom: var(--s-5); }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--c-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: #9AA5B8; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-royal); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-night); font-weight: 600; }

.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s-7); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.feature { position: relative; padding: var(--s-5) 0 var(--s-5) 4rem; border-top: 1px solid var(--c-line); }
.feature-grid--3 .feature { padding: var(--s-6); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.feature-num { position: absolute; left: 0; top: var(--s-5); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); color: var(--c-royal); font-variant-numeric: tabular-nums; }
.feature-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--c-royal-soft); color: var(--c-royal); margin-bottom: var(--s-4); }
.feature h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.feature p { color: var(--c-muted); margin: 0; }
@media (max-width: 900px) { .feature-grid, .feature-grid--3 { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-7); align-items: start; }
.faq { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-4) 0; font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; color: var(--c-night); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-royal); }
.faq-icon { display: inline-flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 50%; transition: transform var(--t-med) var(--ease), background-color var(--t-fast); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--c-night); color: #fff; border-color: var(--c-night); }
.faq-answer { padding: 0 3rem var(--s-5) 0; color: var(--c-muted); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: var(--s-5); } }

.other-services { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.other-services a { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: var(--s-4); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-night); text-decoration: none; font-family: var(--f-head); font-weight: 700; transition: border-color var(--t-fast), color var(--t-fast); }
.other-services a span { flex: 1; }
.other-services a > .icon:first-child { color: var(--c-royal); }
.other-services a:hover { border-color: var(--c-night); color: var(--c-royal); }
@media (max-width: 1000px) { .other-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .other-services { grid-template-columns: 1fr; } }

/* Prose (contenu éditeur) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2D3748; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: var(--s-4); }
.prose img { border-radius: var(--r-md); }
.prose .wp-block-gallery { margin-block: var(--s-5); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact-form-wrap { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-1); }
.contact-aside { display: grid; gap: var(--s-4); position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { padding: var(--s-6); background: var(--c-night); color: var(--c-on-dark); border-radius: var(--r-lg); }
.contact-card h2 { color: #fff; }
.contact-card p { color: var(--c-on-dark-muted); }
.contact-card--muted { background: var(--c-grey-50); color: var(--c-text); border: 1px solid var(--c-line); }
.contact-card--muted h2 { color: var(--c-night); }
.contact-card--muted p { color: var(--c-muted); margin: 0; }
.contact-phone { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; font-family: var(--f-head); font-weight: 800; font-size: 1.75rem; color: #fff; text-decoration: none; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.contact-phone:hover { color: #8FB0FF; }
.contact-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.14); }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .icon { color: #8FB0FF; margin-top: 2px; }
.contact-list a { color: #fff; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; } }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--c-night); }
.req { color: var(--c-err); }
.opt { font-weight: 400; color: var(--c-muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--c-text); background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--r-md); transition: border-color var(--t-fast), box-shadow var(--t-fast); appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230B1A33' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B7C1D1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-royal); box-shadow: 0 0 0 4px rgba(29,78,216,.15); }
.field-help { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); }
.field-error { display: none; margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--c-err); }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--c-err); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-royal); }
.field--check label { font-weight: 400; color: var(--c-muted); }
.field--check .field-error { grid-column: 2; }
.form-note { font-size: var(--fs-xs); color: var(--c-muted); margin: var(--s-4) 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--r-md); margin-bottom: var(--s-5); }
.notice p { margin: 0; }
.notice--ok { background: #E7F6EE; color: #0B5C38; border: 1px solid #B6E2C9; }
.notice--ok .icon { color: var(--c-ok); margin-top: 2px; }
.notice--err { background: #FDECEA; color: #8A1C12; border: 1px solid #F5C2BC; }
.notice a { color: inherit; font-weight: 700; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #07122A; color: var(--c-on-dark-muted); padding-top: var(--s-8); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: var(--s-7) var(--s-6); padding-bottom: var(--s-7); }
.footer-brand p { margin: var(--s-4) 0; max-width: 36ch; }
.footer-title { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); font-weight: 700; }
.footer-list { list-style: none; display: grid; gap: .35rem; }
.footer-list a { display: inline-flex; min-height: 32px; align-items: center; color: var(--c-on-dark); text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: #8FB0FF; margin-top: 6px; }
.footer-contact span { padding-top: 4px; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--c-on-dark); text-decoration: none; }
.footer-social:hover { color: #fff; }
.footer-area { line-height: 1.8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-5); padding-block: var(--s-5); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-links { list-style: none; display: flex; gap: var(--s-4); }
.footer-bottom a { color: var(--c-on-dark-muted); display: inline-flex; min-height: 32px; align-items: center; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
	.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px -12px rgba(11,26,51,.2); transform: translateY(110%); transition: transform var(--t-med) var(--ease); }
	.mobile-bar.is-visible { transform: none; }
	.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: var(--r-md); font-family: var(--f-head); font-weight: 700; text-decoration: none; }
	.mobile-bar-call { border: 1.5px solid var(--c-line); color: var(--c-night); }
	.mobile-bar-quote { background: var(--c-royal); color: #fff; }
	.mobile-bar-quote:hover { color: #fff; }
	body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
	body.nav-open .mobile-bar { transform: translateY(110%); }
}

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* Utilitaires WP */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.error-404 { min-height: 50vh; display: grid; place-items: center; }
.error-404 .eyebrow::before { display: none; }
