/* ==========================================================
   Site public — portes blindées
   ========================================================== */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #15171b;
  --ink-2: #2a2e35;
  --muted: #5b616b;
  --line: #e6e1d8;
  --bg: #faf8f4;
  --surface: #ffffff;
  --sand: #f3eee5;
  --dark: #17191d;
  --dark-2: #22252b;
  --accent: #c8963e;
  --accent-dark: #906a28;
  --accent-soft: #f8f0e2;
  --on-accent: #16130d;
  --wa: #1fb855;
  --wa-dark: #178f42;
  --danger: #b42318;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 23, 27, .05), 0 10px 30px rgba(21, 23, 27, .07);
  --shadow-lg: 0 20px 50px rgba(21, 23, 27, .16);
  --container: 1200px;
  --header-h: 76px;
}

*, *::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: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.h3 { font-size: 1.35rem; }
.h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { justify-content: center; }
.hide-sm { }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95em 1.5em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 184, 85, .28); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Barre haute + en-tête ---------- */
.topbar { background: var(--dark); color: #d9d6cf; font-size: .84rem; }
.topbar-in { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar a { color: #fff; font-weight: 700; }
.topbar .icon { color: var(--accent); }
.topbar a .icon { color: #3ddc79; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.2rem; letter-spacing: -.02em; }
.logo-text small { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.logo-light { color: #fff; }
.logo-light .logo-mark { background: var(--accent); color: var(--ink); }
.logo-light .logo-text small { color: #a9a59c; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-item > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav > a:hover, .nav-item > a:hover, .nav a.is-active { color: var(--ink); background: rgba(21, 23, 27, .05); }
.nav-item { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 290px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .94rem; }
.sub a:hover { background: var(--sand); }
.sub-all { color: var(--accent-dark); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px !important; }
.nav-cta-mobile { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.header-phone .icon { color: var(--accent-dark); }
.burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; border-radius: 10px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 18px; font-size: .86rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.hero-points .icon { color: var(--wa-dark); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; }
.hero-badge { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.hero-badge span { display: flex; flex-direction: column; line-height: 1.25; }
.hero-badge small { color: var(--muted); font-weight: 600; }
.hero-badge .icon { color: var(--accent-dark); }
.hb-1 { left: -24px; top: 18%; }
.hb-2 { right: -16px; bottom: 12%; background: var(--ink); color: #fff; }
.hb-2 small { color: #bdb8ae; }
.hb-2 strong { font-size: 1.3rem; color: var(--accent); }

/* ---------- Engagements ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 20px 16px; font-weight: 700; font-size: .95rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 36px 0 56px; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--dark); color: #eceae5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--accent); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }
.section-head-row h2 { margin: 0; }
.page-head { padding: 28px 0 8px; }
.page-head h1 { max-width: 20em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.count { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.empty { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--dark); color: #fff; aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.cat-media, .cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-media img { transition: transform .5s ease; object-position: center 30%; }
.cat:hover .cat-media img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 11, 13, .85)); }
.cat-body { position: absolute; left: 22px; right: 70px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; }
.cat-body strong { font-size: 1.28rem; line-height: 1.2; }
.cat-body span { color: #d5d1c9; font-size: .92rem; }
.cat-arrow { position: absolute; right: 20px; bottom: 22px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }

/* ---------- Cartes produits ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-products.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-product { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cp-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #ece7df; }
.cp-media img { width: 100%; height: 100%; object-fit: cover; }
.cp-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(21, 23, 27, .86); color: #fff; font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cp-badge .icon { color: var(--accent); }
.cp-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.cp-cat { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); text-decoration: none; margin-bottom: 4px; }
.cp-title { font-size: 1.22rem; margin: 0 0 6px; }
.cp-title a { text-decoration: none; }
.cp-title a::after { content: ""; position: absolute; inset: 0; }
.cp-desc { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.cp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.cp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.cp-price small { color: var(--muted); font-size: .8rem; font-weight: 600; width: 100%; }
.cp-price strong { font-size: 1.22rem; }
.cp-price s { color: var(--muted); font-size: .9rem; }
.cp-arrow { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; transition: .2s; }
.card-product:hover .cp-arrow { background: var(--accent); color: var(--on-accent); }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800; color: var(--sand); line-height: 1; }
.step-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Pourquoi ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.why-text p { color: #bdb9b0; font-size: 1.05rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius); padding: 22px; }
.why-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-bottom: 14px; }
.why-item p { color: #b5b1a8; font-size: .93rem; margin: 0; }

/* ---------- Galerie, avis ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.g-item figcaption span { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #ddd; font-size: .88rem; }
.g-item figcaption a { color: var(--accent); font-size: .88rem; width: 100%; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review blockquote { margin: 12px 0 16px; font-size: 1rem; color: var(--ink-2); flex: 1; }
.review figcaption { color: var(--muted); font-size: .92rem; }
.review figcaption strong { color: var(--ink); }
.stars { display: flex; gap: 2px; color: #d7d2c8; }
.stars .on { color: #e8a317; }
.stars .on .icon { fill: currentColor; }

/* ---------- Puces ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .93rem; transition: .15s; }
a.chip:hover { border-color: var(--ink); }
.chip .icon { color: var(--accent-dark); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-static { background: var(--sand); border-color: transparent; }
.section-sand .chip-static { background: #fff; }
.filter-chips { margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sand); transition: transform .2s; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq-a { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- Articles ---------- */
.grid-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-articles.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-article { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ca-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.ca-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.ca-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ca-body time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.ca-body h3 { margin: 6px 0 8px; font-size: 1.16rem; }
.ca-body h3 a { text-decoration: none; }
.ca-body h3 a::after { content: ""; position: absolute; inset: 0; }
.ca-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.article-head { padding-top: 28px; }
.article-head time { color: var(--muted); font-weight: 600; font-size: .9rem; }
.article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); margin-top: 8px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 35%; border-radius: var(--radius); margin: 8px 0 28px; }
.article-body { padding-bottom: 12px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 26px; margin: 24px 0 64px; }
.inline-cta p { margin: 4px 0 0; color: #c9c5bc; }
.inline-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Texte riche ---------- */
.prose { font-size: 1.05rem; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--accent-dark); font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; font-weight: 600; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* ---------- Fiche produit ---------- */
.product { padding: 20px 0 64px; }
.product-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { border-radius: 20px; overflow: hidden; background: #ece7df; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; width: 76px; flex-shrink: 0; background: none; }
.gallery-thumbs button.is-on { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.product-info h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin: 4px 0 12px; }
.sec-level { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.sec-bars { display: inline-flex; gap: 4px; }
.sec-bars i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.sec-bars i.on { background: var(--accent); }
.product-lead { font-size: 1.1rem; color: var(--ink-2); }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price small { width: 100%; color: var(--muted); font-weight: 600; }
.price strong { font-size: 2rem; letter-spacing: -.02em; }
.price s { color: var(--muted); }
.price-box p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.key-specs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.key-specs li { display: flex; gap: 10px; align-items: flex-start; }
.key-specs .icon { color: var(--wa-dark); margin-top: 3px; }
.product-ctas { display: grid; gap: 10px; }
.mini-trust { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.mini-trust li { display: flex; align-items: center; gap: 6px; }
.mini-trust .icon { color: var(--accent-dark); }
.product-details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.spec-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.spec-card h2 { font-size: 1.4rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 44%; padding-right: 12px; }
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- Pages ville ---------- */
.page-head-city { padding: 32px 0 40px; background: radial-gradient(900px 400px at 90% 0%, var(--accent-soft), transparent 60%); }
.city-head { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: center; }
.city-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.city-facts li { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.city-facts .icon { color: var(--accent-dark); }
.city-facts span { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.city-facts strong { color: var(--ink); font-size: 1rem; }
.city-body { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h2 { display: flex; align-items: center; gap: 8px; }
.side-card-wa { background: #effaf3; border-color: #cdeed9; }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.city-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: .15s; }
.city-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.city-card > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.city-card small { color: var(--muted); }
.city-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Formulaire de devis ---------- */
.quote-block { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.quote-intro p { color: #c1bdb4; font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-list .icon { color: var(--accent); }
.quote-phone { display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; text-decoration: none; }
.quote-phone .icon { color: var(--accent); }
.quote-phone span { display: flex; flex-direction: column; line-height: 1.3; }
.quote-phone small { color: #aaa69d; }
.quote-phone strong { font-size: 1.25rem; color: #fff; }
.quote-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); }
.quote-card-light { box-shadow: var(--shadow); border: 1px solid var(--line); }
.quote-page { display: grid; grid-template-columns: 1.35fr .9fr; gap: 40px; align-items: start; }
.quote-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.quote-side .btn + .btn { margin-top: 10px; }
.mini-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.form-grid .field { margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .9rem; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d9d3c8; border-radius: 12px; background: #fff;
  font-size: 16px; /* pas de zoom sur iPhone */ transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b616b' stroke-width='2' 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 12px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-weight: 600; font-size: .85rem; }
.quote-form .form-grid { margin-bottom: 14px; }
.pills { border: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.pills legend { width: 100%; margin-bottom: 6px; padding: 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #d9d3c8; font-weight: 700; font-size: .92rem; }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-note { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-note a { color: inherit; }
.form-note .icon { margin-top: 2px; }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f6c8c3; }
.quote-form button[disabled] { opacity: .7; cursor: wait; }

/* ---------- Contact / merci ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; }
a.contact-card:hover { border-color: var(--ink); }
.contact-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-card small { color: var(--muted); font-weight: 600; }
.cc-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); }
.cc-wa { background: #e3f7ea; color: var(--wa-dark); }
.thanks { text-align: center; }
.thanks-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #e3f7ea; color: var(--wa-dark); }
.thanks .lead { margin-left: auto; margin-right: auto; }
.thanks-ref { font-size: 1.05rem; }
.thanks-card { text-align: left; margin: 28px auto; max-width: 560px; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.cta-in h2 { margin-bottom: 6px; }
.cta-in p { margin: 0; opacity: .85; max-width: 38em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: var(--surface); }
.pagination a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Pied de page ---------- */
.footer { background: var(--dark); color: #bdb9b0; padding: 60px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-brand p { margin: 16px 0; max-width: 30em; }
.footer-title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 2px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 700; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 44px; padding-top: 20px; padding-bottom: 24px; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Boutons flottants ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(31, 184, 85, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.mobile-bar { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .nav > a, .nav-item > a { padding: 10px 8px; font-size: .92rem; }
  .header-phone span { display: none; }
  .grid-products, .grid-articles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 68px; }
  .hide-sm { display: none !important; }
  .topbar-in { justify-content: center; }
  .topbar-in > span:first-child { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 12px; background: var(--sand); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a, .nav-item > a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-item .icon { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; background: transparent; }
  .sub a { padding: 9px 4px; font-weight: 500; }
  .sub-all { border-top: 0; }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 16px; }
  .logo-text small { display: none; }
  .logo-mark { width: 38px; height: 38px; }

  .hero-in { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .hero-visual img { max-height: 460px; }
  .hb-1 { left: -8px; }
  .hb-2 { right: -8px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cats { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 9; }
  .cat-media img { object-position: center 30%; }
  .why, .quote-block, .quote-page, .product-in, .product-details, .city-head, .city-body { grid-template-columns: 1fr; gap: 28px; }
  .gallery, .quote-side { position: static; }
  .gallery-grid, .reviews { grid-template-columns: 1fr 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border-radius: 12px; text-decoration: none; font-size: .78rem; font-weight: 700; }
  .mobile-bar .mb-wa { background: var(--wa); color: #fff; }
  .mobile-bar .mb-quote { background: var(--accent); color: var(--on-accent); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-products, .grid-products.grid-3, .grid-articles, .grid-articles.grid-2 { grid-template-columns: 1fr; }
  .card-product { flex-direction: row; }
  .cp-media { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
  .cp-body { padding: 14px 14px 14px; }
  .cp-title { font-size: 1.08rem; }
  .cp-desc { font-size: .88rem; }
  .cp-price strong { font-size: 1.08rem; }
  .cp-arrow { display: none; }
  .cp-badge { display: none; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 16px; }
  .step-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .step h3 { margin: 2px 0 2px; font-size: 1.05rem; }
  .step-num { font-size: 1.8rem; top: 12px; right: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reviews { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 20px 16px; border-radius: 16px; }
  .contact-cards, .city-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mini-trust { grid-template-columns: 1fr; }
  .hero-badge { padding: 10px 12px; font-size: .82rem; }
  .hb-2 strong { font-size: 1.1rem; }
  .trust-item { padding: 14px 10px; font-size: .86rem; gap: 10px; }
  .trust-icon { width: 38px; height: 38px; }
  .inline-cta { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
