/* Ventilation France — design system. Sans framework, mobile-first, AA. */
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #16232e; --muted: #5c6d7a; --line: #dbe3ea;
  --bg: #f4f6f8; --paper: #ffffff; --soft: #eaf0f4;
  --brand: #14425f; --brand-2: #0e628f; --brand-deep: #0d2c40;
  --cta: #ef6c1e; --cta-h: #d55a10;
  --ok: #1c7c4e;
  --r: 10px; --shadow: 0 1px 2px rgba(13,44,64,.06), 0 8px 24px -12px rgba(13,44,64,.18);
  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; color: var(--brand-deep); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin-top: 1.2em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- boutons ---------- */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: .7rem 1.25rem; font: 600 1rem var(--body);
  cursor: pointer; text-align: center; transition: background .15s, transform .05s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-h); }
.btn-ghost { background: transparent; color: var(--brand-deep); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-add { background: var(--soft); color: var(--brand-deep); font-size: .9rem; padding: .55rem .9rem; }
.btn-add:hover { background: var(--brand); color: #fff; }
.btn-add.added { background: var(--ok); color: #fff; }
.btn-sm { padding: .4rem .7rem; font-size: .84rem; }
.btn-block { display: block; width: 100%; }

/* ---------- header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-in { display: flex; align-items: center; gap: 1rem; padding: .65rem 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font: 700 1.25rem var(--head); color: var(--brand-deep); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--cta); flex: none; }
.brand strong { color: var(--brand-2); font-weight: 700; }
.head-search { flex: 1; display: flex; max-width: 480px; min-width: 0; }
.head-search input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  padding: .55rem .8rem; font: 400 .95rem var(--body); background: var(--bg); }
.head-search input:focus { outline: none; border-color: var(--brand-2); background: #fff; }
.head-search button { border: 0; background: var(--brand); color: #fff; border-radius: 0 8px 8px 0; padding: 0 .9rem; cursor: pointer; }
.head-search button:hover { background: var(--brand-2); }
.head-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.head-promise { font-size: .78rem; line-height: 1.25; color: var(--muted); text-align: right; }
.head-promise strong { color: var(--ok); }
.btn-cart { position: relative; white-space: nowrap; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--brand-deep); color: #fff; border-radius: 999px;
  font-size: .72rem; line-height: 1; padding: .25rem .45rem; min-width: 1.3em; text-align: center; }
.cat-nav { background: var(--brand-deep); }
.cat-nav-in { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding: 0 1rem; }
.cat-nav-in::-webkit-scrollbar { display: none; }
.cat-nav a { color: #dce8f0; padding: .55rem .65rem; font-size: .92rem; font-weight: 600; white-space: nowrap; border-radius: 6px 6px 0 0; }
.cat-nav a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 70%, var(--brand-2) 100%); color: #eef4f8; }
.hero-in { display: grid; gap: 2rem; padding: 2.5rem 1rem 2.8rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero-sub { font-size: 1.08rem; color: #c9d9e4; max-width: 46rem; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: 0; font-size: .92rem; color: #c9d9e4; }
.hero-points li::before { content: '✓ '; color: #7fd4a8; font-weight: 700; }
.hero-visual { display: none; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.hero-cell { display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r); padding: 1.2rem; color: #9fc4da; }

/* ---------- sections ---------- */
.sec { padding: 2.6rem 0; }
.sec-alt { background: var(--soft); }
.sec-sub { color: var(--muted); max-width: 46rem; margin-top: -.4rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.fam-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1rem; color: var(--ink); transition: border-color .15s, transform .15s; }
.fam-card:hover { border-color: var(--brand-2); transform: translateY(-2px); text-decoration: none; }
.fam-pic { color: var(--brand-2); }
.fam-nom { font-weight: 600; font-family: var(--head); color: var(--brand-deep); }
.fam-count { font-size: .82rem; color: var(--muted); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-top: 1.2rem; }
.prod-card { display: flex; flex-direction: column; }
.prod-link { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1rem .6rem; color: var(--ink); flex: 1; }
.prod-link:hover { text-decoration: none; }
.prod-link:hover .prod-nom { color: var(--brand-2); }
.prod-pic { color: var(--brand); background: var(--soft); border-radius: 8px; display: grid; place-items: center; padding: .9rem; min-height: 96px; }
.prod-pic img { max-height: 130px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prod-nom { font-weight: 600; line-height: 1.3; }
.prod-ref { font-size: .8rem; color: var(--muted); }
.prod-prix { font-size: .92rem; color: var(--brand-deep); }
.prod-card .btn-add { margin: .4rem 1rem 1rem; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { background: var(--brand-deep); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  padding: .18rem .5rem; border-radius: 999px; text-transform: uppercase; }

.steps { list-style: none; counter-reset: st; display: grid; gap: 1rem; padding: 0; margin: 1.4rem 0; }
.steps li { counter-increment: st; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.2rem 1.1rem 3.6rem; position: relative; }
.steps li::before { content: counter(st); position: absolute; left: 1.05rem; top: 1.05rem; width: 1.8rem; height: 1.8rem;
  background: var(--cta); color: #fff; border-radius: 999px; display: grid; place-items: center; font: 700 1rem var(--head); }
.steps li strong { display: block; font-family: var(--head); color: var(--brand-deep); }
.steps li span { color: var(--muted); font-size: .95rem; }
.steps-cta { text-align: center; }

.sec-pro { background: var(--brand-deep); color: #dce8f0; }
.sec-pro h2 { color: #fff; margin-top: 0; }
.pro-band { display: grid; gap: 1.6rem; padding: 0 1rem; }
.pro-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; align-content: center; }
.pro-points li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: .6rem .9rem; font-size: .95rem; }
.pro-points strong { color: #fff; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.guide-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; color: var(--ink); }
.guide-card:hover { border-color: var(--brand-2); text-decoration: none; }
.guide-titre { font-weight: 700; font-family: var(--head); color: var(--brand-deep); line-height: 1.3; }
.guide-chapo { font-size: .88rem; color: var(--muted); }

.marque-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.marque-chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem;
  font-weight: 600; font-size: .92rem; color: var(--brand-deep); }
.marque-chip:hover { border-color: var(--brand-2); text-decoration: none; }

.sec-form { background: var(--soft); }
.form-band { display: grid; gap: 2rem; align-items: start; }

/* ---------- fil d'ariane / catégorie ---------- */
.crumbs { font-size: .76rem; line-height: 1.3; color: var(--muted); padding: .55rem 0 .25rem; display: flex;
  flex-wrap: nowrap; gap: .35rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--muted); }
.crumb-here { color: var(--ink); font-weight: 600; }
.cat-head { display: flex; gap: 1.1rem; align-items: flex-start; margin: .6rem 0 1.2rem; }
.cat-pic { color: var(--brand-2); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; flex: none; }
.cat-intro { max-width: 52rem; color: #33454f; }
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin: .6rem 0 1.4rem; }
.subcat-card { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; color: var(--brand-deep); font-weight: 600; }
.subcat-card:hover { border-color: var(--brand-2); text-decoration: none; }
.subcat-pic { color: var(--brand-2); flex: none; }
.cat-body { max-width: 52rem; margin: 2rem 0; }
.cat-devis-bar { background: var(--paper); border: 2px solid var(--brand); border-radius: var(--r);
  padding: .8rem 1.1rem; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .7rem;
  align-items: center; justify-content: space-between; }
.cat-devis-bar span { max-width: 40rem; }
.cat-guides, .cat-siblings { margin: 1.6rem 0; }
.link-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.link-row a { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; }
.cat-cta-final { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 2rem 0; }
.cat-cta-final p { margin: 0; max-width: 40rem; }
.cat-devis-band { max-width: 40rem; margin: 2rem 0; }

/* ---------- fiche produit ---------- */
.prod-page { margin-bottom: 2rem; }
/* Mobile : titre+prix et PHOTO côte à côte, bloc devis juste dessous -> tout au-dessus
   de la ligne de flottaison. Desktop : grande photo à gauche, infos+devis à droite. */
.prod-main { display: grid; gap: .8rem 1rem; margin: .5rem 0 1.8rem; align-items: start;
  grid-template-columns: 1fr 118px; grid-template-areas: "id visual" "devis devis"; }
.prod-id { grid-area: id; }
.prod-id h1 { font-size: 1.32rem; line-height: 1.15; margin: .1em 0 .3em; }
.prod-visual { grid-area: visual; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; place-items: center; padding: .5rem; color: var(--brand); }
.prod-visual img { max-height: 108px; width: auto; max-width: 100%; object-fit: contain; }
.prod-devis-box { grid-area: devis; }
.prod-meta { color: var(--muted); font-size: .85rem; line-height: 1.35; margin: 0 0 .35em; }
.prod-prix-big { font-size: 1.02rem; line-height: 1.3; margin: 0 0 .2em; }
.prod-prix-big strong { color: var(--brand-deep); font-size: 1.25rem; }
@media (min-width: 900px) {
  .prod-main { grid-template-columns: 2fr 3fr; grid-template-areas: "visual id" "visual devis"; gap: 1.2rem 1.6rem; }
  .prod-visual { padding: 1.5rem; align-self: stretch; }
  .prod-visual img { max-height: 420px; }
  .prod-id h1 { font-size: clamp(1.6rem, 4.2vw, 2.1rem); }
  .prod-meta { font-size: .92rem; }
  .prod-prix-big { font-size: 1.15rem; }
  .prod-prix-big strong { font-size: 1.35rem; }
}
.prod-devis-box { background: var(--paper); border: 2px solid var(--brand); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.qty-row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.qty-row label { font-weight: 600; }
.qty-row input { width: 5.2rem; border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem; font: 600 1rem var(--body); text-align: center; }
.prod-desc, .prod-specs, .prod-variants, .prod-related, .prod-form { margin: 2rem 0; }
.specs-table { border-collapse: collapse; width: 100%; max-width: 46rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs-table th, .specs-table td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs-table th { width: 42%; color: var(--muted); font-weight: 600; background: var(--bg); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.variants-table { border-collapse: collapse; width: 100%; background: var(--paper); border: 1px solid var(--line); }
.variants-table th, .variants-table td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-size: .92rem; white-space: nowrap; }
.variants-table thead th { background: var(--brand-deep); color: #fff; font-family: var(--head); font-weight: 500; }
.variants-table tbody tr:hover { background: var(--soft); }
.v-ref { font-weight: 600; color: var(--brand-deep); }
.v-devis { color: var(--muted); font-size: .85rem; }

/* ---------- formulaires ---------- */
.lead-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem 1.4rem 1.2rem; max-width: 40rem; }
.lf-titre { margin-top: 0; font-size: 1.25rem; }
.grid2 { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { border: 1.5px solid var(--line); border-radius: 8px; padding: .65rem .8rem; font: 400 1rem var(--body); background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: .4rem 0 1rem; }
.consent input { margin-top: .2rem; }
.hp { position: absolute; left: -9999px; }
.lf-reassure { text-align: center; margin: .6rem 0 0; font-size: .82rem; }

/* ---------- devis (panier) ---------- */
.devis-cart { margin: 1.4rem 0; }
.cart-table td, .cart-table th { white-space: normal; }
.cart-qty { width: 4.2rem; border: 1.5px solid var(--line); border-radius: 6px; padding: .35rem; text-align: center; font: 600 .95rem var(--body); }
.cart-del { background: none; border: 0; color: #b23a3a; cursor: pointer; font-size: 1.1rem; padding: .2rem .5rem; }

/* ---------- recherche ---------- */
.search-page { max-width: 34rem; margin: 1rem 0 1.6rem; }
.search-page button { padding: 0 1.2rem; font: 600 .95rem var(--body); }
.search-results { list-style: none; padding: 0; display: grid; gap: .5rem; max-width: 46rem; }
.search-results a { display: flex; align-items: center; gap: .8rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: .6rem .9rem; color: var(--ink); }
.search-results a:hover { border-color: var(--brand-2); text-decoration: none; }
.sr-pic { color: var(--brand-2); flex: none; }
.sr-nom { flex: 1; font-weight: 600; }
.sr-prix { color: var(--muted); font-size: .88rem; white-space: nowrap; }

/* ---------- contenu éditorial ---------- */
.content h2 { margin-top: 1.6em; }
.content ul { padding-left: 1.2rem; }
.content li { margin-bottom: .35em; }
.content table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; }
.content th, .content td { border: 1px solid var(--line); padding: .5rem .8rem; text-align: left; }
.content th { background: var(--soft); font-family: var(--head); font-weight: 500; color: var(--brand-deep); }
.chapo { font-size: 1.12rem; color: #33454f; }
.guide-body { max-width: 52rem; }
.faq { margin: 2rem 0; max-width: 52rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: .5rem; padding: 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .8rem 1rem; color: var(--brand-deep); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: .8rem 1rem; margin: 0; }

/* ---------- merci / divers ---------- */
.merci { padding: 3rem 1rem; }
.merci-pic { color: var(--ok); }
.legal h2 { font-size: 1.15rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--brand-deep); color: #b9cdda; margin-top: 3rem; font-size: .93rem; }
.foot-grid { display: grid; gap: 1.6rem; padding: 2.2rem 1rem 1rem; }
.site-foot h3 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.site-foot nav { display: flex; flex-direction: column; gap: .3rem; }
.site-foot a { color: #b9cdda; }
.site-foot a:hover { color: #fff; }
.brand-foot { font: 700 1.2rem var(--head); color: #fff; margin-bottom: .5rem; }
.brand-foot strong { color: #6db3d8; }
.foot-legal { padding: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

/* ---------- sticky CTA + toast ---------- */
.sticky-cta { position: fixed; bottom: 1rem; right: 1rem; z-index: 60; background: var(--cta); color: #fff;
  padding: .8rem 1.3rem; border-radius: 999px; font: 600 1rem var(--body); box-shadow: 0 6px 20px rgba(13,44,64,.35); }
.sticky-cta:hover { background: var(--cta-h); text-decoration: none; }
.toast { position: fixed; bottom: 4.6rem; right: 1rem; z-index: 70; background: var(--brand-deep); color: #fff;
  padding: .7rem 1.1rem; border-radius: 8px; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s; pointer-events: none; max-width: 320px; }
.toast.show { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 3fr 2fr; }
  .hero-visual { display: block; }
  .form-band { grid-template-columns: 1fr 1fr; }
  .pro-band { grid-template-columns: 3fr 2fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .head-promise { display: none; }
  .head-in { flex-wrap: wrap; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  /* hero compact : les CTA devis restent au-dessus de la ligne de flottaison */
  .hero-in { padding: 1.5rem 1rem 1.8rem; gap: 1rem; }
  .hero-sub { font-size: .98rem; }
  .hero-ctas { margin: .9rem 0; }
  .crumbs { padding-top: .6rem; }
  .cat-head { margin-bottom: .8rem; }
  .cat-pic { display: none; }
}
