/* =========================================================
   PEC Generators – thème
   Palette : graphite profond + jaune énergie (couleur historique PEC)
   ========================================================= */
:root {
	--ink: #0e1a24;
	--ink-2: #16283a;
	--steel: #2b3d4f;
	--muted: #5a6875;
	--line: #e3e6ea;
	--paper: #f6f5f1;
	--white: #fff;
	--accent: #f5b700;
	--accent-hi: #ffc933;
	--wa: #1faf5a;
	--danger: #b42318;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(14, 26, 36, .06), 0 8px 24px rgba(14, 26, 36, .08);
	--font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-h: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0b5cad; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, .h { font-family: var(--font-h); font-weight: 700; line-height: 1.1; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.eyebrow { font: 600 .82rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #a87d00; margin-bottom: .6em; }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.25em; border-radius: 8px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hi); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #179a4d; color: var(--white); }
.btn--lg { min-height: 54px; font-size: 1.06rem; padding-inline: 1.5em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Barre haute & en-tête ---------- */
.topbar { background: var(--ink); color: #c9d2da; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; margin-inline-start: 16px; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-inline-end: 8px; vertical-align: 1px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo__txt { font: 600 1.35rem/1 var(--font-h); letter-spacing: .01em; }
.logo__txt strong { font-weight: 700; }
.logo__txt small { display: block; font: 500 .72rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.custom-logo { max-height: 56px; width: auto; }

.nav { margin-inline-start: auto; }
.nav__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__menu > li { position: relative; }
.nav__menu a { display: block; padding: 10px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 6px; white-space: nowrap; }
.nav__menu .sub-menu a { white-space: normal; }
.hcall span { white-space: nowrap; }
.nav__menu a:hover, .nav__menu .current-menu-item > a { background: var(--paper); }
.nav__menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav__menu li:hover > .sub-menu, .nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu .sub-menu a { font-weight: 500; padding: 8px 10px; }
.nav__menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-start: 8px; vertical-align: 3px; }
.sub-toggle { display: none; }
.nav__mobile-cta { display: none; }

.site-header__cta { display: flex; align-items: center; gap: 12px; }
.hcall { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.hcall small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 12px 11px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1600px) {
	.hcall span { display: none; }
}
@media (max-width: 1180px) and (min-width: 981px) {
	.nav__menu a { padding-inline: 7px; font-size: .9rem; }
	.logo__txt small { display: none; }
}
@media (max-width: 980px) {
	.topbar__links { display: none; }
	.burger { display: block; }
	.site-header__cta .btn { display: none; }
	.nav { position: fixed; inset: 0 0 0 auto; top: var(--nav-top, 76px); width: min(88vw, 380px); background: #fff; padding: 12px 16px 96px; overflow-y: auto; transform: translateX(110%); transition: transform .25s; box-shadow: var(--shadow); z-index: 70; border-top: 1px solid var(--line); }
	[dir="rtl"] .nav { inset: 0 auto 0 0; top: var(--nav-top, 76px); transform: translateX(-110%); }
	.nav.is-open { transform: none; }
	.nav__menu { flex-direction: column; }
	.nav__menu > li { border-bottom: 1px solid var(--line); }
	.nav__menu a { padding: 14px 8px; font-size: 1.05rem; }
	.nav__menu .menu-item-has-children > a::after { display: none; }
	.nav__menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
	.nav__menu li.is-open > .sub-menu { display: block; }
	.sub-toggle { display: block; position: absolute; top: 6px; inset-inline-end: 0; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
	.sub-toggle span { display: block; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 auto; transition: .2s; }
	li.is-open > .sub-toggle span { transform: rotate(-135deg); }
	.nav__mobile-cta { display: grid; gap: 10px; margin-top: 20px; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 26, 36, .96) 0%, rgba(14, 26, 36, .86) 45%, rgba(14, 26, 36, .45) 100%); }
[dir="rtl"] .hero::after { background: linear-gradient(260deg, rgba(14, 26, 36, .96) 0%, rgba(14, 26, 36, .86) 45%, rgba(14, 26, 36, .45) 100%); }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); display: block; }
.hero .eyebrow { color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: #d7dee5; max-width: 40em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero--zone .hero__in { padding-block: 40px 56px; }
.hero--zone h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); }
.hero .crumbs a, .hero .crumbs li { color: #c9d2da; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e1a24' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks a { color: inherit; }
.ticks--dark li { color: var(--ink); }
@media (max-width: 900px) {
	.hero__in { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
	.hero::after { background: rgba(14, 26, 36, .88); }
}

/* ---------- Formulaire de devis ---------- */
.pec-form { background: #fff; color: var(--ink); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pec-form__title { font: 700 1.6rem/1.15 var(--font-h); margin: 0 0 .25em; }
.pec-form__sub { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.pec-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pec-form--compact .pec-form__grid, .sidebar .pec-form__grid, .qmodal .pec-form__grid { grid-template-columns: 1fr; }
.pec-field { margin: 0 0 12px; }
.pec-field--full { grid-column: 1 / -1; }
.pec-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.pec-field input, .pec-field select, .pec-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #cfd5db; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.pec-field textarea { min-height: 90px; resize: vertical; }
.pec-field input:focus, .pec-field select:focus, .pec-field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(245, 183, 0, .45); }
.pec-field .is-invalid { border-color: var(--danger); }
.pec-hp { position: absolute !important; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.pec-consent { font-size: .78rem; color: var(--muted); margin: 4px 0 12px; }
.pec-consent input { margin-inline-end: 6px; vertical-align: -2px; }
.pec-form__promise { font-size: .85rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.pec-form__promise a { color: var(--ink); font-weight: 600; }
.pec-form__error, .pec-form__alert { color: var(--danger); font-weight: 600; font-size: .92rem; margin: 10px 0 0; }
.devis-form { max-width: 760px; margin: 24px auto; }
@media (max-width: 560px) {
	.pec-form__grid { grid-template-columns: 1fr; }
	.pec-form { padding: 18px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section--tight { padding-block: 24px; }
.section--alt { background: var(--paper); }
.section--dark { background: var(--ink); color: #d7dee5; }
.section--dark h2, .section--dark strong { color: #fff; }
.section--dark .eyebrow { color: var(--accent); }
.section__head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
@media (max-width: 700px) { .section { padding-block: 44px; } }

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.trust strong { font: 700 1.6rem/1.1 var(--font-h); }
.trust span { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .trust { grid-template-columns: 1fr 1fr; } }

.ranges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.range { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.range:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.range__kva { font: 700 2.2rem/1 var(--font-h); }
.range__kva small { font-size: 1rem; }
.range strong { font-size: 1.1rem; }
.range span:last-child { color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .ranges { grid-template-columns: 1fr; } }

/* ---------- Cartes produit ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 28px; }
.pgrid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard.is-hidden { display: none; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--accent); color: var(--ink); font: 700 1.05rem/1 var(--font-h); padding: 6px 10px; border-radius: 6px; }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.pcard__title { font-size: 1.25rem; margin: 0; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__specs { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.pcard__specs li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pcard__specs span { color: var(--muted); }
.pcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.pcard__actions .btn { min-height: 42px; padding: .55em .6em; font-size: .92rem; white-space: normal; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Calculateur ---------- */
.calc-teaser { background: linear-gradient(90deg, var(--accent) 0%, #ffd45c 100%); }
.calc-teaser__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.calc-teaser .eyebrow { color: var(--ink); opacity: .7; }
.calc-teaser h2 { margin-bottom: .2em; }
.calc-teaser p { margin: 0; max-width: 40em; }
.calc-teaser .btn--primary { background: var(--ink); color: #fff; }
.calc-teaser .btn--primary:hover { background: var(--steel); }
@media (max-width: 800px) { .calc-teaser__in { flex-direction: column; align-items: flex-start; } }

.calc { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; box-shadow: var(--shadow); margin-block: 24px; }
.calc__presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.calc__presets > span { font-weight: 600; margin-inline-end: 4px; }
.calc__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc__table th { text-align: start; font-size: .82rem; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.calc__table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.calc__table input { width: 90px; min-height: 40px; padding: 6px 8px; border: 1.5px solid #cfd5db; border-radius: 6px; font: inherit; font-size: 16px; }
.calc__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 10px; }
.calc__result > div { background: var(--paper); border-radius: var(--radius); padding: 14px; }
.calc__label { display: block; font-size: .82rem; color: var(--muted); }
.calc__result strong { font: 700 1.7rem/1.2 var(--font-h); }
.calc__reco { background: var(--ink) !important; color: #fff; }
.calc__reco strong { color: var(--accent); }
.calc__reco a { display: block; color: #fff; font-size: .9rem; margin-top: 4px; }
.calc__reco .calc__label { color: #c9d2da; }
.calc__note { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
	.calc__result { grid-template-columns: 1fr; }
	.calc__table th:nth-child(2), .calc__table td:nth-child(2) { display: none; }
}

/* ---------- Cartes génériques ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card__more { font-weight: 600; color: #0b5cad; }

/* ---------- Pourquoi / process ---------- */
.why { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.why__list li { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 16px; border-inline-start: 3px solid var(--accent); }
.why__list span { font-size: .95rem; }
.why__media img { border-radius: 14px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why__list { grid-template-columns: 1fr; } }

.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.process li { position: relative; padding: 52px 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; counter-increment: s; }
.process li::before { content: counter(s); position: absolute; top: 14px; inset-inline-start: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); font: 700 1rem/30px var(--font-h); text-align: center; }
.process strong { display: block; margin-bottom: 4px; }
.process span { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.zlinks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.zlinks a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .93rem; }
.zlinks a:hover { border-color: var(--ink); }
.prose .zlinks { padding: 0; }
@media (max-width: 900px) { .zones { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Contenu ---------- */
.prose { max-width: 760px; }
.prose--wide { max-width: none; }
.prose-wrap { max-width: 860px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose__img { border-radius: var(--radius); margin-bottom: 20px; }
.prose .meta { color: var(--muted); font-size: .9rem; }
.steps { padding-inline-start: 1.3em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
.guide, .specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.guide th, .guide td, .specs th, .specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.guide thead th { background: var(--ink); color: #fff; font-weight: 600; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.specs tr:nth-child(odd) td, .specs tr:nth-child(odd) th { background: var(--paper); }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.sidebar .sticky { position: sticky; top: 100px; }
@media (max-width: 1000px) { .layout-side { grid-template-columns: 1fr; } .sidebar .sticky { position: static; } }

.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.side-card__t { font: 700 1.3rem/1.2 var(--font-h); }
.side-links { list-style: none; padding: 0; margin: 0 0 14px; }
.side-links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }

/* FAQ */
.faq { margin-top: 40px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq__item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
[dir="rtl"] .faq__item summary { padding: 16px 18px 16px 48px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 12px; font: 700 1.5rem/1 var(--font-h); color: #a87d00; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 18px 4px; color: #33414e; }

/* ---------- En-tête de page ---------- */
.phero { position: relative; background: var(--ink); color: #fff; padding-block: 36px 40px; overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 26, 36, .85); }
.phero h1 { color: #fff; margin: 0; }
.phero__lead { color: #d7dee5; font-size: 1.1rem; max-width: 46em; margin: 12px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phero .crumbs, .phero .crumbs a { color: #c9d2da; }
.product + .crumbs, .wrap > .crumbs { padding-top: 18px; color: var(--muted); }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding-block: 12px 48px; align-items: start; }
.product__main { position: relative; border-radius: 14px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.product__thumbs img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.product h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem); }
.product__lead { color: var(--muted); font-size: 1.08rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.kpis div { background: var(--paper); border-radius: var(--radius); padding: 12px 14px; }
.kpis dt { font-size: .8rem; color: var(--muted); }
.kpis dd { margin: 0; font: 700 1.3rem/1.2 var(--font-h); }
.product__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Articles ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); margin-bottom: 12px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2, .post-card h3 { font-size: 1.35rem; margin-bottom: .3em; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-card__date { font-size: .82rem; margin-bottom: 4px; }
.nav-links { display: flex; gap: 8px; margin-top: 28px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--ink); color: #fff; }
.results { list-style: none; padding: 0; }
.results li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- Appels à l’action ---------- */
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0; padding: 22px; border-radius: 14px; background: var(--ink); color: #d7dee5; }
.cta-inline__t { font: 700 1.5rem/1.2 var(--font-h); color: #fff; margin-bottom: 4px; }
.cta-inline p { margin: 0; }
.cta-inline__b { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .cta-inline { flex-direction: column; align-items: flex-start; } }

.cta-band { background: var(--ink); color: #d7dee5; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 44px; }
.cta-band__t { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem)/1.1 var(--font-h); color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band__b { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cta-band__in { flex-direction: column; align-items: flex-start; } }

.final-cta { background: var(--paper); }
.final-cta__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .final-cta__in { grid-template-columns: 1fr; } }

/* Contact & merci */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; margin-top: 24px; }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.ccard__l { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ccard strong { font-size: 1.15rem; }
.ccard--wa { border-color: var(--wa); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.thanks { text-align: center; padding: 24px 0; }
.thanks__lead { font-size: 1.25rem; font-weight: 600; }
.thanks__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0a131b; color: #aab6c1; font-size: .95rem; padding-top: 56px; }
.site-footer a { color: #e3e8ed; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: #fff; }
.site-footer .logo__txt small { color: #8796a3; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { margin-top: 16px; max-width: 34em; }
.site-footer__contact, .site-footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__h { font: 700 1.2rem/1.2 var(--font-h); color: #fff; margin-bottom: 14px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #1d2a36; margin-top: 40px; padding-block: 18px 22px; font-size: .85rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Barre mobile & WhatsApp ---------- */
.mbar { display: none; }
@media (max-width: 860px) {
	body { padding-bottom: 64px; }
	.mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 1px solid #1d2a36; padding-bottom: env(safe-area-inset-bottom); }
	.mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #fff; background: none; border: 0; text-decoration: none; font-weight: 600; font-size: .82rem; cursor: pointer; }
	.mbar svg { width: 22px; height: 22px; }
	.mbar__wa { background: var(--wa) !important; }
	.mbar__quote { background: var(--accent) !important; color: var(--ink) !important; }
	.wa-float { display: none !important; }
}
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- Fenêtre de devis ---------- */
.qmodal { border: 0; padding: 0; border-radius: 16px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.qmodal::backdrop { background: rgba(14, 26, 36, .65); }
.qmodal .pec-form { box-shadow: none; border: 0; }
.qmodal__close { position: absolute; top: 8px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); z-index: 2; }
.qmodal__product { margin: 0; padding: 18px 56px 0 24px; font-weight: 600; color: #a87d00; }

/* Recherche */
.search-form { display: flex; gap: 8px; margin-top: 16px; }
.search-form input[type="search"] { flex: 1; min-height: 46px; padding: 8px 12px; border: 1.5px solid #cfd5db; border-radius: 8px; font: inherit; }
.search-form input[type="submit"] { min-height: 46px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }

/* RTL */
[dir="rtl"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: Tahoma, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .site-header, .mbar, .wa-float, .cta-band, .sidebar, .qmodal, .site-footer { display: none !important; }
}
