/*
Theme Name: PAC France
Theme URI: https://pac-france.net
Author: Dama Dreams
Description: Thème installateur pompe à chaleur, hub national et pages locales par département.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: pac-france
*/

/* ============ Tokens ============ */
:root {
	--ink: #0E1B2B;
	--ink-2: #22324A;
	--muted: #5B6B80;
	--line: #E3E8EF;
	--bg: #FFFFFF;
	--sand: #F7F2EA;
	--mist: #F1F5F9;
	--brand: #E4572E;
	--brand-600: #C6461F;
	--brand-100: #FDE8E0;
	--leaf: #177A57;
	--leaf-100: #DDF3EA;
	--gold: #F2B441;
	--sky: #BFE0FF;
	--r-sm: 12px;
	--r: 20px;
	--r-lg: 28px;
	--shadow: 0 10px 30px rgba(14, 27, 43, .08);
	--shadow-lg: 0 24px 60px rgba(14, 27, 43, .14);
	--font-head: "Sora", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, sans-serif;
	--container: 1180px;
	--gutter: 20px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	color: var(--ink);
	text-align: left;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.ic--star { width: 18px; height: 18px; fill: var(--gold); stroke: var(--gold); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
.note { font-size: .9rem; color: var(--muted); }
.eyebrow {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand);
	margin: 0 0 12px;
}
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-title { margin-bottom: 14px; }
.sec-text { font-size: 1.12rem; color: var(--muted); margin: 0; }
.tag {
	display: inline-block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--leaf);
	background: var(--leaf-100);
	padding: 5px 10px;
	border-radius: 999px;
	margin: 0 0 12px;
}

/* ============ Boutons ============ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
	padding: 15px 22px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(228, 87, 46, .28); }
.btn--brand:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--brand-600); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-white:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 10px 16px; font-size: .92rem; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-600); }
.link .ic { width: 16px; height: 16px; }

/* ============ Header ============ */
.topbar {
	background: var(--ink);
	color: #fff;
	font-size: .85rem;
}
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__in span { display: inline-flex; align-items: center; gap: 8px; opacity: .9; }
.topbar__in .ic { width: 15px; height: 15px; }
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.logo__mark {
	width: 38px; height: 38px; border-radius: 12px;
	background: linear-gradient(135deg, var(--brand), var(--gold));
	display: grid; place-items: center; color: #fff;
}
.logo__mark .ic { width: 20px; height: 20px; }
.logo em { font-style: normal; color: var(--brand); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__list a {
	display: block; padding: 10px 12px; border-radius: 10px;
	font-weight: 500; font-size: .95rem; color: var(--ink-2); white-space: nowrap;
}
.nav__list a:hover { background: var(--mist); color: var(--ink); }
.header__cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.burger .ic { width: 26px; height: 26px; }

/* ============ Hero ============ */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--sand) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px 26px; color: var(--muted); font-size: .92rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ic { width: 18px; height: 18px; color: var(--leaf); }
.hero__visual { position: relative; }
.hero__visual .illu--hero { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
	position: absolute; left: -14px; bottom: 28px;
	background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
	padding: 14px 18px; display: flex; gap: 12px; align-items: center;
}
.hero__badge .ic { width: 30px; height: 30px; color: var(--leaf); }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hero__badge span { color: var(--muted); font-size: .85rem; }
.hero__badge--top { left: auto; right: -10px; top: 24px; bottom: auto; }
.hero__badge--top .ic { color: var(--gold); }

/* Hero avec simulateur (pages locales) */
.hero--zone .hero__grid { grid-template-columns: 1fr 460px; align-items: start; }
.hero__form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.hero__form > .eyebrow { margin-bottom: 4px; }
.hero__form h2 { font-size: 1.35rem; margin-bottom: 18px; }

/* ============ Preuves ============ */
.proof { background: #fff; border-block: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 0; }
.proof__item { display: flex; gap: 12px; align-items: center; }
.proof__item .ic { width: 28px; height: 28px; color: var(--brand); }
.proof__item strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.proof__item span { font-size: .85rem; color: var(--muted); }

/* ============ Cartes ============ */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media .illu { width: 100%; }
.card__body { padding: 26px; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { color: var(--muted); }
.ticks { list-style: none; margin: 14px 0 18px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.ticks .ic { width: 18px; height: 18px; color: var(--leaf); margin-top: 3px; }

/* ============ Étapes ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.step__n {
	width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
	background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============ Split ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev > :first-child { order: 2; }
.split .illu { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.split ul.ticks li { font-size: 1.02rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.kpi { background: var(--mist); border-radius: var(--r); padding: 18px; }
.kpi strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--brand); letter-spacing: -.02em; }
.kpi span { font-size: .85rem; color: var(--muted); }

/* ============ Aides ============ */
.aides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 18px; }
.aide { background: #fff; border-radius: var(--r); padding: 24px; border: 1px solid var(--line); }
.aide .ic { width: 30px; height: 30px; color: var(--brand); margin-bottom: 14px; }
.aide__name { font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }
.aide__amount { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; margin-bottom: 8px; }
.aide__text { font-size: .92rem; color: var(--muted); margin: 0; }

/* ============ Zones ============ */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zone {
	display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
	transition: border-color .15s ease, transform .15s ease;
}
.zone:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.zone__code { grid-row: span 2; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--brand); background: var(--brand-100); border-radius: 12px; padding: 8px 10px; }
.zone__name { font-family: var(--font-head); font-weight: 600; }
.zone__villes { grid-column: 2; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone .ic { grid-row: span 2; width: 18px; height: 18px; color: var(--muted); }
.section--ink .zone { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.section--ink .zone__villes, .section--ink .zone .ic { color: rgba(255, 255, 255, .7); }
.section--ink .zone:hover { border-color: var(--gold); color: #fff; }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .sec-text { color: rgba(255, 255, 255, .78); }

/* ============ Avis ============ */
.avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.avis__card { margin: 0; background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; }
.avis__card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.avis__card figcaption strong { display: block; font-family: var(--font-head); }
.avis__card figcaption span { font-size: .85rem; color: var(--muted); }
.avis-score { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.avis-score strong { font-family: var(--font-head); font-size: 2.4rem; letter-spacing: -.03em; }
.avis-score span { color: var(--muted); }

/* ============ Marques ============ */
.marques { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.marques li { font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); }

/* ============ FAQ ============ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 22px; }
.faq__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { transition: transform .2s ease; color: var(--muted); }
.faq__item[open] summary .ic { transform: rotate(180deg); }
.faq__a { padding: 0 0 18px; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ============ CTA band ============ */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #F08A5B 60%, var(--gold) 130%); color: #fff; padding: 64px 0; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .92; font-size: 1.08rem; max-width: 620px; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Simulateur ============ */
.sim { position: relative; }
.sim__progress { height: 6px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.sim__progress span { display: block; height: 100%; background: var(--brand); transition: width .3s ease; }
.sim__step { border: 0; padding: 0; margin: 0; display: none; }
.sim__step.is-active { display: block; }
.sim__step legend { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 16px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.choices--wrap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice input { position: absolute; opacity: 0; }
.choice span {
	display: flex; align-items: center; gap: 10px; padding: 16px; border: 2px solid var(--line); border-radius: var(--r-sm);
	font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease; min-height: 56px;
}
.choice--small span { padding: 12px 14px; font-size: .95rem; min-height: 48px; }
.choice span .ic { color: var(--muted); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-100); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fields label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.fields input { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); }
.fields input:focus { outline: none; border-color: var(--brand); }
.sim__nav { display: flex; gap: 10px; margin-top: 18px; }
.sim__nav [data-next], .sim__nav [data-submit] { margin-left: auto; }
.sim__error { color: var(--brand-600); font-weight: 500; margin-top: 10px; }
.sim__result { background: var(--leaf-100); border-radius: var(--r); padding: 24px; }
.sim__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sim__kpis div { background: #fff; border-radius: var(--r-sm); padding: 14px; }
.sim__kpis span { display: block; font-size: .82rem; color: var(--muted); }
.sim__kpis strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--leaf); }
.sim-panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 36px; max-width: 760px; }

/* ============ Tableau prix ============ */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.prix { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prix th, .prix td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.prix th { font-family: var(--font-head); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--mist); }
.prix tr:last-child td { border-bottom: 0; }
.prix__label { font-weight: 600; }
.prix td:last-child { font-weight: 600; color: var(--leaf); }

/* ============ Page locale ============ */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand-600); }
.local-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.local-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.local-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.local-card h3 .ic { color: var(--brand); }
.villes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.villes li { padding: 8px 14px; background: var(--mist); border-radius: 999px; font-size: .92rem; font-weight: 500; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, #fff, var(--sand)); }
.page-hero h1 { max-width: 820px; }
.page-hero .hero__lead { max-width: 720px; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 64px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Sticky CTA mobile ============ */
.sticky-cta { display: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
	.hero__grid, .hero--zone .hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.hero__badge { left: 12px; }
	.hero__badge--top { right: 12px; }
	.proof__grid, .aides, .zones, .steps { grid-template-columns: repeat(2, 1fr); }
	.cards--3, .avis { grid-template-columns: repeat(2, 1fr); }
	.split, .local-grid { grid-template-columns: 1fr; gap: 36px; }
	.split--rev > :first-child { order: 0; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.nav { display: none; }
	.burger { display: block; margin-left: auto; }
	.header__cta .btn--ghost { display: none; }
	.nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow-lg); }
	.nav.is-open .nav__list { flex-direction: column; }
	.nav.is-open .nav__list a { padding: 14px 12px; font-size: 1.05rem; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding: 56px 0; }
	.hero { padding: 36px 0 28px; }
	.proof__grid, .aides, .zones, .steps, .cards--3, .cards--2, .avis, .choices, .fields, .kpis, .sim__kpis { grid-template-columns: 1fr; }
	.topbar { display: none; }
	.header__cta { display: none; }
	.header__in { min-height: 64px; gap: 12px; }
	.logo { font-size: 1.15rem; white-space: nowrap; }
	.cta-band__in { flex-direction: column; align-items: flex-start; }
	.hero__badge { position: static; margin-top: 14px; }
	.hero__badge--top { display: none; }
	.footer__grid { grid-template-columns: 1fr; }
	.sim-panel, .hero__form { padding: 22px; }
	.sticky-cta {
		display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
		box-shadow: 0 -10px 30px rgba(14, 27, 43, .12);
	}
	.sticky-cta .btn { flex: 1; justify-content: center; padding: 13px 14px; }
	body { padding-bottom: 76px; }
}
