/* ============================================================
   monchassis.be — design « Atelier technique »
   Palette : encre vert-noir / papier crème / ambre cuivré
   Typo    : Space Grotesk (titres) + Inter (texte)
   ============================================================ */

:root {
  --ink: #101613;
  --ink-2: #1a231e;
  --ink-3: #26312a;
  --paper: #f4f1ea;
  --paper-2: #eae5d9;
  --white: #fdfcf9;
  --amber: #e8963c;
  --amber-deep: #c9741f;
  --amber-soft: rgba(232, 150, 60, 0.14);
  --green: #3f7d5c;
  --text: #2a2f2b;
  --text-soft: #5c635d;
  --text-inverse: #ede9de;
  --text-inverse-soft: #a8ada0;
  --line: rgba(16, 22, 19, 0.13);
  --line-strong: rgba(16, 22, 19, 0.28);
  --line-inverse: rgba(237, 233, 222, 0.16);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px -18px rgba(16, 22, 19, 0.28);
  --header-h: 118px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* L'attribut hidden doit gagner : sans ça, .field { display: grid }
   (et consorts) rendent visibles des blocs que le JS a masqués. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  width: min(1240px, 100% - 2 * clamp(18px, 4vw, 44px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 300;
  background: var(--ink);
  color: var(--text-inverse);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* Lu par les lecteurs d'écran, invisible à l'œil : sert quand le libellé
   visible disparaît en petit écran (rail du configurateur). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Micro-label technique (kicker) ─────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber);
}
.on-dark .kicker { color: var(--amber); }

.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section-lead {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--text-soft);
  max-width: 58ch;
}
.on-dark .section-title { color: var(--text-inverse); }
.on-dark .section-lead { color: var(--text-inverse-soft); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

section { padding-block: clamp(64px, 9vw, 120px); }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(201, 116, 31, 0.55);
}
.btn--primary:hover { background: #f0a350; }
.btn--dark {
  background: var(--ink);
  color: var(--text-inverse);
}
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline-light {
  border-color: var(--line-inverse);
  color: var(--text-inverse);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--text-inverse); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--lg { padding: 19px 36px; font-size: 16.5px; }

.btn-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber-deep);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.btn-text:hover { border-color: var(--amber-deep); }

/* ── Barre de progression du scroll ──────────────────────────── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }

.topbar {
  background: var(--ink);
  color: var(--text-inverse-soft);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar__note { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 150, 60, 0.55); }
  60% { box-shadow: 0 0 0 7px rgba(232, 150, 60, 0); }
}
.topbar__phone {
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.topbar__phone span {
  color: var(--text-inverse-soft);
  font-weight: 400;
  margin-left: 8px;
}

.navbar {
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.is-scrolled .navbar { box-shadow: 0 10px 34px -18px rgba(16, 22, 19, 0.35); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand__mark {
  color: var(--amber-deep);
  transition: transform 0.5s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand em { font-style: normal; color: var(--amber-deep); }
.brand--footer { font-size: 24px; color: var(--text-inverse); margin: 0 0 12px; }

.mainnav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mainnav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 10px 13px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mainnav__item > a:hover,
.mainnav__item > a[aria-current="page"] { background: var(--amber-soft); color: var(--amber-deep); }

.mainnav__item { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 50;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mega__card {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.18s;
}
.mega__card:hover { background: var(--amber-soft); }
.mega__material {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.mega__title { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.mega__blurb { font-size: 13px; color: var(--text-soft); }

.navbar__actions { display: flex; align-items: center; gap: 10px; }
.cart-count[hidden] { display: none; }
.cart-count {
  background: var(--ink);
  color: var(--amber);
  font-size: 11.5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ── Animations d'apparition ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.is-visible,
.reveal-right.is-visible { transform: none; }

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

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-inverse);
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 150px) clamp(90px, 12vw, 160px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(232, 150, 60, 0.16), transparent 60%),
    radial-gradient(700px 500px at 8% 92%, rgba(63, 125, 92, 0.18), transparent 65%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-inverse) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inverse) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.hero__title {
  color: var(--text-inverse);
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero__title .accent {
  color: var(--amber);
  position: relative;
  white-space: nowrap;
}
.hero__title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 100%;
  height: 0.09em;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.1s var(--ease-out) 0.9s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-inverse-soft);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

/* Le téléphone juste sous les boutons : beaucoup de clients en rénovation
   appellent plutôt que de remplir un formulaire. */
.hero__phone {
  margin: 0 0 40px;
  font-size: 15px;
  color: var(--text-inverse-soft);
}
.hero__phone a {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-inverse);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}
.hero__phone a:hover { color: var(--amber); }
.hero__phone span { display: block; font-size: 13px; margin-top: 4px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-inverse-soft);
}
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof svg { color: var(--amber); flex: none; }

/* Entrées séquencées du hero */
.hero [data-stagger] {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 140ms + 100ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Scène : châssis dessinés flottants */
.hero__scene {
  position: relative;
  height: clamp(340px, 42vw, 520px);
}
.hero__scene [data-float] {
  position: absolute;
  border: 2.5px solid rgba(237, 233, 222, 0.85);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(232, 150, 60, 0.16), rgba(63, 125, 92, 0.12) 65%);
  backdrop-filter: blur(2px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}
.hero__scene [data-float]::before,
.hero__scene [data-float]::after {
  content: "";
  position: absolute;
  background: rgba(237, 233, 222, 0.85);
}
/* montants + traverses des fenêtres */
.hero__scene [data-float]::before { inset: 50% auto auto 0; width: 100%; height: 2px; }
.hero__scene [data-float]::after { inset: 0 auto auto 50%; width: 2px; height: 100%; }

.hero__frame-1 { width: 54%; height: 68%; left: 4%; top: 6%; animation-delay: 0s; }
.hero__frame-2 { width: 34%; height: 46%; right: 6%; top: 22%; animation-delay: 1.4s; border-color: var(--amber); }
.hero__frame-2::before, .hero__frame-2::after { background: var(--amber); }
.hero__frame-3 { width: 40%; height: 34%; left: 26%; bottom: 2%; animation-delay: 2.6s; }
.hero__frame-3::after { display: none; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.4deg); }
  50% { transform: translateY(-18px) rotate(-0.6deg); }
}

.hero__tag {
  position: absolute;
  right: 0;
  bottom: 12%;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 13px 18px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  display: grid;
  gap: 1px;
  animation: float 8s ease-in-out 1s infinite;
}
.hero__tag small { color: var(--text-soft); font-weight: 400; }
.hero__tag strong { color: var(--amber-deep); font-size: 17px; }

.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  color: var(--text-inverse-soft);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.hero__scroll-hint::after {
  content: "";
  width: 1.5px;
  height: 34px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Marquee marques ─────────────────────────────────────────── */
.marquee {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee__item::after { content: "◆"; font-size: 9px; color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Chiffres clés ───────────────────────────────────────────── */
.stats { padding-block: clamp(56px, 7vw, 90px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  border-left: 2px solid var(--amber);
  padding: 6px 0 6px 22px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-soft); margin: 8px 0 0; font-size: 15px; }

/* ── Grille catégories (accueil + hubs) ──────────────────────── */
.catalogue { background: var(--ink); position: relative; overflow: hidden; }
.catalogue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 500px at 15% 0%, rgba(232, 150, 60, 0.09), transparent 60%);
}
.catalogue .container { position: relative; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 46px;
  min-height: 210px;
  padding: 24px 26px;
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-inverse);
  background: linear-gradient(150deg, rgba(237, 233, 222, 0.045), transparent 55%);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), background 0.3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 150, 60, 0.6);
  background: linear-gradient(150deg, rgba(232, 150, 60, 0.1), transparent 60%);
}
.cat-card__num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-inverse-soft);
  letter-spacing: 0.14em;
}
.cat-card__title {
  color: var(--text-inverse);
  font-size: 21px;
  margin: 0 0 4px;
}
.cat-card__blurb {
  margin: 0;
  color: var(--text-inverse-soft);
  font-size: 14.5px;
}
.cat-card__count {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 12.5px;
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 600;
}
.cat-card__arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line-inverse);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
  transition: background 0.25s, transform 0.35s var(--ease-out), border-color 0.25s;
}
.cat-card:hover .cat-card__arrow {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* ── Cartes produit ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.product-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

/* Visuel : châssis dessiné en CSS sur ciel dégradé */
.product-card__visual {
  position: relative;
  aspect-ratio: 16 / 9.5;
  background: linear-gradient(158deg, var(--white) 0%, var(--paper) 52%, var(--paper-2) 100%);
  overflow: hidden;
}
.product-card__visual::after {
  content: attr(data-material);
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(16, 22, 19, 0.55);
}
/* Le dessin du châssis (chassis_svg, variante vignette) : un SVG carré posé
   dans une vignette plus large que haute — il se cale sur la hauteur et
   respire sur les côtés, comme une photo détourée sur fond clair. */
.product-card__frame {
  position: absolute;
  inset: 7% 0;
  transition: transform 0.6s var(--ease-out);
}
.product-card__frame svg { width: 100%; height: 100%; }
.product-card:hover .product-card__frame { transform: scale(1.06); }

.product-card__tier {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(253, 252, 249, 0.85);
  color: var(--ink);
}

.product-card__body { padding: 20px 22px 22px; }
.product-card__brand {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 4px;
}
.product-card__name { font-size: 19px; margin-bottom: 6px; }
.product-card__short {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__specs {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.product-card__specs li {
  font-size: 12.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--ink);
}
.product-card__specs span { color: var(--text-soft); margin-right: 5px; }
.product-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
}
.product-card__price strong { font-size: 18px; color: var(--ink); }
.product-card__htva { font-size: 11.5px; color: var(--text-soft); }

/* ── Processus (timeline) ────────────────────────────────────── */
.process { background: var(--paper-2); position: relative; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}
.process__grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 3%;
  right: 3%;
  height: 2px;
  background: var(--line-strong);
}
.process__grid .process__line {
  position: absolute;
  top: 27px;
  left: 3%;
  right: 3%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.3s;
}
.process__grid.is-visible .process__line { transform: scaleX(1); }

.step { position: relative; padding-top: 0; }
.step__num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
  transition-delay: calc(var(--delay, 0) * 0.35s + 0.3s);
}
.process__grid.is-visible .step__num {
  background: var(--amber);
  border-color: var(--amber);
}
.step__title { font-size: 19px; margin-bottom: 8px; }
.step__text { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ── USP ─────────────────────────────────────────────────────── */
.usps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.usp {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usp__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-deep);
  padding-top: 3px;
}
.usp h3 { font-size: 20px; margin-bottom: 6px; }
.usp p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ── Bandeau configurateur (accueil) ─────────────────────────── */
.config-banner {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.config-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(232, 150, 60, 0.22), transparent 60%);
}
.config-banner > * { position: relative; }
.config-banner h2 { color: var(--text-inverse); font-size: clamp(26px, 3vw, 38px); }
.config-banner p { color: var(--text-inverse-soft); max-width: 50ch; }

.config-banner__demo {
  background: rgba(253, 252, 249, 0.06);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
}
.config-banner__demo .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line-inverse);
  padding-bottom: 10px;
}
.config-banner__demo .row span:first-child { color: var(--text-inverse-soft); }
.config-banner__demo .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
  font-weight: 700;
}
.config-banner__demo .total strong { color: var(--amber); font-size: 26px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq__list { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--amber-deep); }
.faq__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.35s var(--ease-out), background 0.25s, border-color 0.25s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq__icon::before { width: 12px; height: 1.6px; }
.faq__icon::after { width: 1.6px; height: 12px; transition: transform 0.3s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--amber); border-color: var(--amber); color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__answer {
  padding: 0 46px 24px 4px;
  color: var(--text-soft);
  max-width: 70ch;
}

/* ── Page hero (pages intérieures) ───────────────────────────── */
.page-hero {
  background: var(--ink);
  color: var(--text-inverse);
  padding-block: clamp(52px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 380px at 85% 0%, rgba(232, 150, 60, 0.13), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero__title {
  color: var(--text-inverse);
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.page-hero__lead {
  color: var(--text-inverse-soft);
  font-size: clamp(16px, 1.7vw, 18.5px);
  max-width: 68ch;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--text-inverse-soft);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb li + li::before { content: "→"; margin-right: 8px; color: var(--amber); }

/* ── Page hub (fenêtres / portes) ────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.hub-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
}
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.hub-card__material {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.hub-card h2 { font-size: 23px; margin: 6px 0; }
.hub-card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.hub-card__count {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ── Fiche produit ───────────────────────────────────────────── */
.product-hero {
  background: var(--ink);
  color: var(--text-inverse);
  padding-block: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 80% 20%, rgba(232, 150, 60, 0.14), transparent 60%);
}
.product-hero .container { position: relative; }
.product-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.product-hero__brand {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.product-hero__title { color: var(--text-inverse); font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; }
.product-hero__tagline { color: var(--text-inverse-soft); font-size: 17.5px; margin-bottom: 26px; }
.product-hero__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  margin-bottom: 28px;
}
.product-hero__price strong { font-size: 34px; color: var(--amber); }
.product-hero__price .unit { color: var(--text-inverse-soft); font-size: 14px; }
.product-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Le hero de fiche : le dessin porte sa propre lumière et son ombre au sol,
   la boîte ne doit donc plus rien peindre — ni cadre, ni fond. */
.product-hero__visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  animation: float 8s ease-in-out infinite;
}
.product-hero__visual svg { width: 100%; height: 100%; }

/* Sous le hero : trois chiffres, pas quatorze. Ceux qui décident d'un achat —
   isolation, profondeur, vitrage. Le reste attend la fiche technique, en bas
   de page : un mur de colonnes serrées juste après le titre ne se lit pas. */
.specs-key { background: var(--paper-2); padding-block: 26px; }
.specs-key__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 26px;
  margin: 0;
}
.specs-key__item {
  border-left: 2px solid var(--amber);
  padding-left: 16px;
}
.specs-key__item dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.specs-key__item dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink);
  line-height: 1.2;
}

/* La fiche technique complète : une ligne par caractéristique, libellé à
   gauche, valeur à droite. Les valeurs portent leur contexte et font parfois
   trois lignes — c'est voulu, et ça ne se met pas en colonnes. */
.datasheet { background: var(--paper-2); padding-block: clamp(48px, 6vw, 76px); }
.datasheet__list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.datasheet__row {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: 10px 28px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.datasheet__row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.datasheet__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 68ch;
}
@media (max-width: 620px) {
  .datasheet__row { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .datasheet__row dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
}

.product-body { padding-block: clamp(56px, 7vw, 96px); }
.product-body__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.product-body__text p { color: var(--text); }
.advantages {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.advantages h2 { font-size: 21px; }
.advantages ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.advantages li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  align-items: flex-start;
}
.advantages li svg { flex: none; color: var(--amber-deep); margin-top: 4px; }

/* ── Formulaires (devis, contact, configurateur) ─────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 13.5px; color: var(--text-soft); }
.alert {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 500;
}
.alert--success { background: #e4efe7; border: 1px solid #b4d2bd; color: #1e5232; }
.alert--error { background: #f7e6e2; border: 1px solid #e3b8ad; color: #7c2d1a; }

/* Configurateur */
.configurator {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.configurator__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  gap: 18px;
}
.configurator__result {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.configurator__result h2 { color: var(--text-inverse); font-size: 21px; }
.configurator__price {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: var(--amber);
  line-height: 1.05;
  margin: 12px 0 2px;
  font-variant-numeric: tabular-nums;
}
.configurator__price-note { color: var(--text-inverse-soft); font-size: 13.5px; margin-bottom: 22px; }
.configurator__recap { display: grid; gap: 10px; margin: 0 0 26px; }
.configurator__recap > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dashed var(--line-inverse);
  padding-bottom: 9px;
  font-size: 14.5px;
}
.configurator__recap dt { color: var(--text-inverse-soft); }
.configurator__recap dd { margin: 0; font-weight: 600; text-align: right; }
.cfg-added {
  margin-top: 14px;
  color: #9ed3ae;
  font-size: 14.5px;
}

/* ── Configurateur complet ───────────────────────────────────── */
/* ── Configurateur : rail de progression ────────────────────────────
   Remplace les six pastilles d'ancrage : mêmes étapes, mais elles disent
   où on en est. Sous 900 px, elles pilotent l'assistant une-étape-à-la-fois
   (assets/js/configurateur-mobile.js) ; au-dessus, la page longue est
   inchangée et le rail ne fait que situer et faire défiler. */
.mcfg-progress {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px 13px;
  box-shadow: 0 10px 26px -20px rgba(16, 22, 19, 0.9);
}
.mcfg-progress__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.mcfg-progress__now {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.mcfg-progress__now b { color: var(--amber); }
.mcfg-progress__count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-inverse-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Autant de colonnes que d'étapes, quel qu'en soit le nombre. La grille
   était fixée à six ; passer à sept renvoyait la dernière à la ligne, seule
   et décalée. `auto-fit` suit la liste sans qu'on ait à y revenir. */
.mcfg-progress__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mcfg-progress__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.mcfg-progress__bar {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: rgba(244, 241, 234, 0.16);
  transition: background 0.25s, transform 0.25s;
}
.mcfg-progress__btn:hover .mcfg-progress__bar { background: rgba(244, 241, 234, 0.34); }
.mcfg-progress__step[data-state="done"] .mcfg-progress__bar { background: var(--green); }
.mcfg-progress__step[data-state="current"] .mcfg-progress__bar { background: var(--amber); transform: scaleY(1.6); }
.mcfg-progress__label { display: none; }
.mcfg-progress__btn:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

@media (min-width: 901px) {
  .mcfg-progress { position: static; background: transparent; box-shadow: none; color: var(--text); padding: 16px 0 18px; }
  .mcfg-progress__now { color: var(--text); }
  .mcfg-progress__now b { color: var(--amber-deep); }
  .mcfg-progress__count { color: var(--text-soft); }
  .mcfg-progress__bar { background: var(--paper-2); }
  .mcfg-progress__track { gap: 12px; }
  .mcfg-progress__label {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--text-soft);
  }
  .mcfg-progress__step[data-state="current"] .mcfg-progress__label { color: var(--amber-deep); font-weight: 600; }
}

/* ── Configurateur : assistant une étape à la fois ──────────────────
   .mcfg-on est posé sur <body> par le JS : sans lui, les trois étapes
   s'affichent à la suite et la page reste utilisable de bout en bout.

   L'assistant vaut à toutes les largeurs. Sur grand écran aussi, une étape
   à la fois : le panneau de prix reste visible à droite pendant qu'on
   avance, ce qu'une page longue ne garantissait pas. */
body.mcfg-on [data-mcfg-step]:not([data-mcfg-active]) { display: none; }

@media (max-width: 900px) {
  body.mcfg-on { padding-bottom: var(--mcfg-bar-h, 104px); }
  /* Au-dessus de l'étape 06, « Suivant » devient « Ajouter au devis » :
     garder le bouton d'origine visible ferait deux fois le même geste. */
  body.mcfg-on #cfg-mobilebar #cfg-mobile-add { display: none; }
}

/* ── Configurateur : tiroir de détail dans la barre collante ────────── */
#cfg-mobilebar .mcfg-sheet { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
#cfg-mobilebar[data-mcfg-open="true"] .mcfg-sheet { max-height: 62vh; overflow-y: auto; }
.mcfg-sheet__in { padding: 16px 18px 14px; border-bottom: 1px solid var(--line-inverse); }
.mcfg-sheet__k {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.mcfg-sheet__note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-inverse-soft); }
.mcfg-sheet__note a { color: var(--amber); }
.mcfg-sheet__empty { color: var(--text-inverse-soft); font-size: 13.5px; margin: 0; }
/* Le détail est cloné depuis #cfg-breakdown : on le remet en forme sans
   rien supposer de sa structure interne. */
.mcfg-sheet__body { font-size: 13.5px; color: rgba(244, 241, 234, 0.82); }
.mcfg-sheet__body :is(ul, ol, dl) { list-style: none; margin: 0; padding: 0; }
.mcfg-sheet__body :is(li, tr, .cfg-breakdown__row) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-inverse);
}
.mcfg-sheet__body :is(li, tr, .cfg-breakdown__row):last-child { border-bottom: 0; }
.mcfg-sheet__body :is(td, th, span, dt, dd) { font-variant-numeric: tabular-nums; }
.mcfg-sheet__body table { width: 100%; border-collapse: collapse; }
.mcfg-sheet__body :is(td, th):last-child { text-align: right; white-space: nowrap; }
.mcfg-sheet__body :is(strong, b) { color: var(--paper); }

.mcfg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 3px;
  background: none;
  border: 0;
  color: var(--text-inverse-soft);
  font-size: 13px;
  cursor: pointer;
}
.mcfg-toggle svg { transition: transform 0.28s; }
#cfg-mobilebar[data-mcfg-open="true"] .mcfg-toggle svg { transform: rotate(180deg); }
.mcfg-toggle:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.mcfg-nav { display: flex; gap: 8px; padding: 0 16px 12px; }
.mcfg-nav .mcfg-btn { min-height: 48px; }
.mcfg-nav .mcfg-btn--next { flex: 1; }
.mcfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.mcfg-btn--next { background: var(--amber); color: var(--ink); }
.mcfg-btn--next:hover { background: var(--amber-deep); color: var(--white); }
.mcfg-btn--prev { background: none; border-color: rgba(244, 241, 234, 0.35); color: var(--paper); }
.mcfg-btn--prev:hover { border-color: var(--paper); }
.mcfg-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.mcfg-btn:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .mcfg-progress__bar,
  .mcfg-sheet,
  .mcfg-toggle svg,
  .mcfg-btn { transition-duration: 0.001ms !important; }
}

.configurator--full { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); }
.cfg-sections { display: grid; gap: 22px; min-width: 0; }

/* Une étape porte plusieurs questions — cotes, mur, prestation. Le sous-titre
   les sépare sans ouvrir un encadré de plus : trois cadres imbriqués, et le
   regard ne sait plus lequel compte. */
.cfg-section__lead {
  margin: -6px 0 2px;
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
.cfg-sub { display: grid; gap: 18px; }
.cfg-sub + .cfg-sub { padding-top: 22px; border-top: 1px solid var(--line); }
.cfg-sub__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.cfg-sub__title small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
}

/* Navigation d'étapes des grands écrans. Sous 900 px, elle vit dans la barre
   collante du bas : deux jeux de boutons feraient deux fois le même geste. */
.cfg-stepnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 2px 0;
}
.cfg-stepnav__count {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.cfg-stepnav__count b { color: var(--ink); font-weight: 600; }
.cfg-stepnav .btn { min-width: 168px; }
.cfg-stepnav .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 900px) { .cfg-stepnav { display: none; } }

.cfg-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  margin: 0;
  display: grid;
  gap: 20px;
  scroll-margin-top: 130px;
}
.cfg-section legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  float: left;          /* le legend reste dans le flux de la grille */
  width: 100%;
  margin-bottom: 4px;
}
.cfg-section__num {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  padding: 4px 11px;
}
.field__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.field__label small { color: var(--text-soft); font-weight: 400; }

/* Cartes d'option (radio) */
.opt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.opt-cards--compact { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.opt-card {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}
.opt-card:hover { border-color: var(--amber-deep); transform: translateY(-1px); }
.opt-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt-card:has(input:checked) {
  border-color: var(--amber-deep);
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber-deep);
}
.opt-card:has(input:focus-visible) { outline: 2px solid var(--amber-deep); outline-offset: 2px; }
.opt-card__title { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.opt-card__sub { font-size: 12.5px; color: var(--text-soft); line-height: 1.45; }

/* Cartes profilé */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding: 2px;
}
.profile-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 15px 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.profile-card:hover { border-color: var(--amber-deep); }
.profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.profile-card:has(input:checked) {
  border-color: var(--amber-deep);
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber-deep);
}
.profile-card:has(input:focus-visible) { outline: 2px solid var(--amber-deep); outline-offset: 2px; }
.profile-card__brand {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.profile-card__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.profile-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.profile-card__specs li {
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.profile-card__specs span { color: var(--text-soft); margin-right: 4px; }
.profile-card__price { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }

/* Vantaux */
.vantail-list { display: grid; gap: 8px; }
.vantail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.vantail-row__num {
  flex: 0 0 84px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--amber-deep);
}
.vantail-row select {
  flex: 1 1 150px;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  min-width: 0;
}
.vantail-row__w { flex: 0 0 112px; }

/* Avertissements techniques */
.cfg-warnings { display: grid; gap: 8px; }
.cfg-warning {
  margin: 0;
  background: #faf1df;
  border: 1px solid #e5c894;
  border-radius: var(--radius-sm);
  color: #7a5416;
  font-size: 13.5px;
  padding: 11px 14px;
}
/* Un blocage n'est pas un conseil : le format n'est pas fabricable, et le
   bouton « ajouter au devis » est inopérant tant qu'il tient. */
.cfg-warning--stop {
  background: #fdf0ee;
  border-color: #e3b4ac;
  color: #8a3123;
}
#cfg-add[disabled], #cfg-mobile-add[disabled] { opacity: .5; cursor: not-allowed; }

/* Nuanciers */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.swatch {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.swatch:hover { border-color: var(--amber-deep); }
.swatch.is-active {
  border-color: var(--amber-deep);
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber-deep);
}
.swatch__chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(16, 22, 19, 0.2);
}
.swatch__label { font-size: 11px; color: var(--text-soft); text-align: center; line-height: 1.3; }
.swatch.is-active .swatch__label { color: var(--ink); font-weight: 600; }

/* Cases à cocher descriptives */
.check-list { display: grid; gap: 8px; }
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
  transition: border-color 0.2s, background 0.2s;
}
.check-item:hover { border-color: var(--amber-deep); }
.check-item:has(input:checked) {
  border-color: var(--amber-deep);
  background: var(--amber-soft);
  color: var(--text);
}
.check-item input { margin-top: 3px; accent-color: var(--amber-deep); }
.check-item strong { color: var(--ink); }

/* Niveaux de gamme — trois cartes, jamais plus */
/* Palettes de finition, groupées par technique */
.palette + .palette { margin-top: 16px; }
.palette__head {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.palette__head em {
  font-style: normal;
  font-weight: 600;
  color: var(--amber-deep);
  font-size: 12.5px;
}
.palette__head small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.4;
}
.swatches--decor { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }

/* Prix affiché sur une carte d'option */
.opt-card__price {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--amber-deep);
}
.opt-card__price small { font-family: var(--font-body); font-weight: 400; color: var(--text-soft); }
.check-item__price {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--amber-deep);
}
.field__hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.4;
}
.field label small { font-weight: 400; color: var(--text-soft); }

/* Bandeau des trois fournisseurs partenaires */

/* Toujours les trois de front : c'est la comparaison qui fait vendre. */
.level-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 620px) {
  .level-cards { grid-template-columns: 1fr; }
}

/* Le configurateur liste TOUS les profilés du matériau : la grille doit tenir
   sans casser qu'il y en ait trois ou dix-neuf. */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.profile-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.profile-sort__count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-right: auto;
}
.profile-sort button {
  font: inherit;
  font-size: 13px;
  padding: 6px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.profile-sort button:hover { border-color: var(--amber-deep); color: var(--ink); }
.profile-sort button.is-on {
  border-color: var(--amber-deep);
  background: var(--amber-deep);
  color: var(--white);
}
.profile-sort button:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; }

/* Rappel du filtre de gamme. Le filtre lui-même n'est plus ici : c'est la
   première question du configurateur. Ne reste que la trace de ce qu'elle a
   décidé, et la porte de sortie — un filtre dont on ne voit pas la cause est
   un filtre qui donne l'impression d'un catalogue vide. */
.profile-filter {
  margin: -6px 0 14px;
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-filter b { color: var(--ink); font-weight: 600; }
.profile-filter button {
  font: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Le Uw d'un coup d'œil : rouge à 1,4 W/m²K, vert à 0,7. C'est la seule
   valeur que personne ne sait situer de tête, et c'est elle qui décide de
   la conformité PEB. */
.uw-badge {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: hsl(var(--uw-hue, 60) 78% 24%);
  background: hsl(var(--uw-hue, 60) 72% 92%);
  border: 1px solid hsl(var(--uw-hue, 60) 55% 76%);
}
.uw-badge__k { font-weight: 500; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; }
.level-card__pitch {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-soft);
}
.level-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px 16px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.level-card:hover { border-color: var(--amber-deep); transform: translateY(-1px); }
.level-card input { position: absolute; opacity: 0; pointer-events: none; }
.level-card:has(input:checked) {
  border-color: var(--amber-deep);
  box-shadow: inset 0 0 0 1px var(--amber-deep), var(--shadow);
}
.level-card:has(input:focus-visible) { outline: 2px solid var(--amber-deep); outline-offset: 2px; }
.level-card.is-best { border-color: var(--amber); }
.level-card__flag {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--amber-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
}
.level-card__head { display: grid; gap: 2px; }
.level-card__level {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.level-card__sub { font-size: 12.5px; color: var(--amber-deep); font-weight: 600; }
.level-card__brand {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.level-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-top: -4px;
}
.level-card__why { font-size: 12.5px; color: var(--text-soft); line-height: 1.45; }
.level-card .profile-card__specs { margin: 2px 0; }

/* Cote de fabrication déduite de la mesure */
.cfg-fab {
  margin: -6px 0 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid rgba(201, 116, 31, 0.3);
  font-size: 14px;
  color: var(--text);
}
.cfg-fab strong { font-family: var(--font-display); color: var(--ink); }
.cfg-fab small { color: var(--text-soft); }

/* Guide de mesure repliable */
.cfg-help {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0 16px;
}
.cfg-help > summary {
  cursor: pointer;
  padding: 13px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.cfg-help > summary small { font-weight: 400; color: var(--text-soft); }
.cfg-help[open] > summary { border-bottom: 1px solid var(--line); }
.cfg-help ol { margin: 14px 0; padding-left: 20px; font-size: 14px; color: var(--text-soft); }
.cfg-help li { margin-bottom: 8px; }
.cfg-help li strong { color: var(--ink); }
.cfg-help > p { font-size: 13.5px; color: var(--text-soft); margin-bottom: 15px; }

.cfg-mini-btn {
  float: right;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--amber-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Largeur de vantail */
.vantail-row__w { display: flex; align-items: center; gap: 5px; }
.vantail-row__w input {
  font: inherit;
  font-size: 14px;
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: right;
}
.vantail-row__w small { color: var(--text-soft); font-size: 12px; }

/* Panneau résultat enrichi */
.configurator__result--full { display: grid; gap: 16px; }
.configurator__result--full .configurator__price { margin: 0; }
.cfg-preview {
  background: var(--ink-2);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.cfg-preview svg { width: 100%; height: auto; display: block; }
.cfg-preview__caption {
  margin: -6px 0 0;
  font-size: 12px;
  color: var(--text-inverse-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cfg-legend { display: inline-flex; align-items: center; gap: 7px; }
.cfg-legend__line {
  width: 26px;
  height: 0;
  border-top: 1.6px dashed var(--amber);
}

.breakdown { display: grid; gap: 8px; margin: 0; }
.breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px dashed var(--line-inverse);
  padding-bottom: 7px;
  font-size: 13.5px;
}
.breakdown dt { color: var(--text-inverse-soft); }
.breakdown dt small { display: block; font-size: 11.5px; opacity: 0.75; }
.breakdown dd { margin: 0; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.breakdown__unit dt, .breakdown__unit dd { color: var(--text-inverse); font-weight: 700; }

/* Performance thermique estimée */
.cfg-perf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  font-size: 13px;
  color: var(--text-inverse-soft);
}
.cfg-perf__uw { color: var(--text-inverse); }
.cfg-perf__uw strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.cfg-perf__badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(63, 125, 92, 0.24);
  color: #8fd3ac;
}
.cfg-perf__badge.is-warn { background: rgba(232, 150, 60, 0.2); color: var(--amber); }
.cfg-perf__glz { margin-left: auto; font-size: 12px; }

/* Nom de pièce, dans le panneau sombre */
.configurator__result--full .field label { color: var(--text-inverse); font-size: 13.5px; }
.configurator__result--full .field label small { color: var(--text-inverse-soft); font-weight: 400; }
.configurator__result--full input[type="text"] {
  font: inherit;
  font-size: 14.5px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line-inverse);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-inverse);
}
.configurator__result--full input[type="text"]::placeholder { color: var(--text-inverse-soft); opacity: 0.75; }
.configurator__result--full input[type="text"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.configurator__price small {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-inverse-soft);
  vertical-align: middle;
}
.cfg-lead {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--text-inverse-soft);
}
.cfg-lead strong { color: var(--text-inverse); }
.cfg-share {
  background: none;
  border: 1px dashed var(--line-inverse);
  border-radius: var(--radius-sm);
  padding: 10px;
  width: 100%;
  font: inherit;
  font-size: 13px;
  color: var(--text-inverse-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cfg-share:hover { border-color: var(--amber); color: var(--amber); }
/* Rappel du téléphone sous le bouton d'ajout, dans le panneau sombre. */
.cfg-phone {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-inverse-soft);
}
.cfg-phone a {
  font-weight: 600;
  color: var(--text-inverse);
  border-bottom: 1px solid var(--amber);
}
.cfg-phone a:hover { color: var(--amber); }
.cfg-phone span { display: block; opacity: 0.75; }

/* Barre de prix collante — mobile uniquement */
.cfg-mobilebar { display: none; }
@media (max-width: 900px) {
  /* La barre empile trois rangées : le tiroir de détail (replié par défaut),
     la ligne du prix, puis la navigation entre étapes. */
  .cfg-mobilebar:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    border-top: 1px solid var(--line-inverse);
    box-shadow: 0 -10px 30px -12px rgba(16, 22, 19, 0.5);
  }
  .mcfg-bar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
  }
  .cfg-mobilebar strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--amber);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .cfg-mobilebar small { font-size: 11.5px; color: var(--text-inverse-soft); }
}

.cfg-qty { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cfg-qty .field__label { color: var(--text-inverse); }
.qty-stepper { display: flex; align-items: center; gap: 6px; }
.qty-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line-inverse);
  background: transparent;
  color: var(--text-inverse);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.qty-stepper button:hover { border-color: var(--amber); background: rgba(232, 150, 60, 0.15); }
.qty-stepper input {
  width: 56px;
  text-align: center;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 4px;
  border: 1.5px solid var(--line-inverse);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-inverse);
}

/* Panier */
.cart-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cart-line > span:last-child { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.cart-line-title { display: block; font-weight: 600; color: var(--ink); }
.cart-line-sub { display: block; font-size: 13px; color: var(--text-soft); }
.cart-line-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 5px; }
.cart-tag {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 11.5px;
  font-weight: 600;
}
.cart-vat-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.cart-vat-line strong { font-family: var(--font-display); color: var(--text); }
.cart-vat-line--total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink);
}
.cart-vat-line--total strong { font-size: 19px; color: var(--ink); }
.cart-line-remove {
  background: none;
  border: none;
  padding: 0;
  color: var(--amber-deep);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.cart-total strong { font-size: 26px; color: var(--amber-deep); }
.cart-empty { color: var(--text-soft); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-card {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 20px;
}
.contact-card h2 { color: var(--text-inverse); font-size: 21px; margin: 0; }
.contact-card a { color: var(--amber); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.contact-card p { margin: 0; color: var(--text-inverse-soft); font-size: 14.5px; }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-hero { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.error-hero .code {
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber-deep);
  letter-spacing: 0.02em;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--text-inverse-soft);
  padding-block: clamp(60px, 8vw, 100px) 34px;
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: clamp(44px, 6vw, 70px);
  border-bottom: 1px solid var(--line-inverse);
  margin-bottom: clamp(44px, 6vw, 70px);
}
.footer-cta__title { color: var(--text-inverse); font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 8px; }
.footer-cta__text { margin: 0; max-width: 46ch; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta__phone {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-inverse-soft);
}
.footer-cta__phone a {
  font-weight: 600;
  color: var(--text-inverse);
  border-bottom: 1px solid var(--amber);
}
.footer-cta__phone a:hover { color: var(--amber); }

.footer-grid {
  display: grid;
  /* Cinq colonnes depuis l'ajout des guides : la marque garde sa largeur,
     les quatre listes se partagent le reste à parts égales. */
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col h3 {
  color: var(--text-inverse);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-inverse-soft); text-decoration: none; transition: color 0.2s; font-size: 14.5px; }
.footer-col a:hover { color: var(--amber); }
.footer-col--brand p { font-size: 14.5px; max-width: 34ch; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-inverse);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__scene { display: none; }
  .product-hero__grid, .product-body__grid, .configurator, .contact-grid, .config-banner { grid-template-columns: 1fr; }
  .advantages, .configurator__result { position: static; }
  .configurator--full { display: flex; flex-direction: column-reverse; }
  .vantail-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .process__grid::before, .process__grid .process__line { display: none; }
}

/* La barre compte huit entrées depuis l'ajout de « Prix » et « Guides ». Entre
   1280 et 1500 px, elle ne tient qu'en resserrant les liens ; en dessous, plus
   du tout — c'est le menu au burger qui prend le relais, et le seuil est monté
   de 900 à 1280 px pour ça. Il était déjà trop bas avant : à 1100 px, avec six
   entrées, le bouton « Devis gratuit » sortait déjà de l'écran sans que rien
   ne le montre. */
@media (min-width: 1281px) and (max-width: 1500px) {
  .mainnav__list { gap: 0; }
  .mainnav__item > a { padding: 10px 9px; font-size: 14.5px; }
}

@media (max-width: 1280px) {
  :root { --header-h: 108px; }
  .burger { display: flex; }
  /* .site-header porte un transform (il s'escamote au défilement) : il devient
     donc le bloc conteneur de tout position:fixed qu'il contient, panneau
     compris. D'où top:100% — le bas du header, quelle que soit sa hauteur —
     plutôt que --header-h, qui annonçait 108 px pour un header de 117 : le
     panneau retombait 9 px trop bas et ne mesurait plus que 61 px de haut. */
  .mainnav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);   /* repli : Safari < 15.4 ignore dvh */
    height: calc(100dvh - 100%);
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 20px clamp(18px, 4vw, 44px) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 90;
  }
  body.nav-open .mainnav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .mainnav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .mainnav__item > a { font-size: 19px; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .mega {
    position: static;
    translate: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 10px;
  }
  .mega__grid { grid-template-columns: 1fr; }
  .navbar__actions .btn--ghost { display: none; }
}

/* Le bandeau du haut, lui, tient encore largement à 1280 : il ne disparaît
   qu'à l'ancien seuil. */
@media (max-width: 900px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 640px) {
  .products-grid, .cat-grid, .usps__grid, .hub-grid, .form-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .process__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__scroll-hint { display: none; }
}

/* ── Blocs explicatifs des pages catégorie ───────────────────────────
   Quatre cartes par bloc, chacune avec son schéma : la question qu'un client
   se pose (« de quelle couleur ? », « c'est quoi le Uw ? ») trouve sa réponse
   sur la page du produit, pas trois clics plus loin. Les vignettes sont des
   SVG (includes/explainers.php) : rien à télécharger, net à toute taille. */
.explain { background: var(--paper-2); }
.explain__block + .explain__block { margin-top: clamp(40px, 5vw, 64px); }
.explain__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
}
.explain__title span { color: var(--amber-deep); }
.explain__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.explain__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 1.8vw, 22px);
}
.explain__visual {
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 2px;
}
.explain__visual svg { display: block; width: 100%; height: auto; }
.explain__card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.explain__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}
/* Le lien tombe en bas de carte, quelle que soit la longueur du texte : sans
   ça, quatre cartes côte à côte alignent quatre liens à quatre hauteurs. */
.explain__card .btn-text { margin-top: auto; align-self: flex-start; }

@media (max-width: 1000px) {
  .explain__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .explain__grid { grid-template-columns: 1fr; }
}

/* ── Configurateur : récapitulatif cliquable ─────────────────────────
   Dans le panneau sombre, sous le Uw. Chaque ligne est un bouton qui ramène
   au réglage — le nom à gauche, la valeur à droite, un chevron pour dire que
   ça se clique. */
.cfg-recap { display: grid; gap: 2px; }
.cfg-recap__k {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.cfg-recap__g {
  margin: 12px 0 3px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inverse-soft);
}
.cfg-recap__l {
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr 7px;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(244, 241, 234, 0.05);
  color: var(--paper);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cfg-recap__l:hover { background: rgba(244, 241, 234, 0.13); }
.cfg-recap__l:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 2px; }
.cfg-recap__n { color: var(--text-inverse-soft); }
.cfg-recap__v {
  color: var(--paper);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.cfg-recap__l svg { color: var(--amber); align-self: center; }

/* La cible d'un « modifier » : deux secondes d'ambre, le temps que l'œil la
   trouve dans une étape qui vient de changer sous lui. */
.is-vise {
  animation: vise 1.8s var(--ease-out);
  border-radius: var(--radius-sm);
}
@keyframes vise {
  0%, 55% { box-shadow: 0 0 0 3px var(--amber), 0 0 0 9px rgba(232, 150, 60, 0.22); }
  100%    { box-shadow: 0 0 0 3px rgba(232, 150, 60, 0), 0 0 0 9px rgba(232, 150, 60, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .is-vise { animation-duration: 0.001ms; box-shadow: 0 0 0 3px var(--amber); }
}

/* ── Guides, prix, primes ────────────────────────────────────────────
   Ces pages sont du texte long : leur mise en page n'a qu'un travail, le
   rendre lisible. Une colonne de 760 px — la largeur de lecture confortable
   quelle que soit la taille de l'écran — des titres qui respirent, et des
   tableaux qui restent lisibles sur un téléphone en défilant seuls, sans
   jamais faire déborder la page.
   ──────────────────────────────────────────────────────────────────── */

.guide-body {
  padding-block: clamp(44px, 5.5vw, 72px);
}
.guide-body > .container > p,
.guide-body > .container > ul,
.guide-body > .container > .guide-h2,
.guide-body > .container > .guide-note {
  max-width: 760px;
}
.guide-body p {
  margin: 0 0 18px;
  font-size: 17px;
}
.guide-h2 {
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: clamp(38px, 4vw, 56px) 0 16px;
}
.guide-body > .container > *:first-child { margin-top: 0; }

.guide-liste {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.guide-liste li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 17px;
}
.guide-liste li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber-deep);
}

.guide-meta {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--text-inverse-soft);
}

/* Le tableau comparatif. Sur mobile il défile dans sa boîte : c'est la seule
   façon de garder six colonnes lisibles sans réduire le texte à 9 px. */
.guide-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.guide-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.guide-table th,
.guide-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table thead th {
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.guide-table thead th span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-soft);
}
.guide-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.guide-table tbody th span {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-soft);
}
.guide-table a { color: var(--amber-deep); font-weight: 600; }
.guide-table a:hover { text-decoration: underline; }
.guide-table__prix { font-weight: 600; white-space: nowrap; }
.guide-table__prix span { font-weight: 400; font-size: 12px; color: var(--text-soft); }
.guide-table__delta { font-weight: 600; color: var(--amber-deep); white-space: nowrap; }
.guide-table__vide { color: var(--text-soft); }

.guide-note {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.guide-note a { color: var(--amber-deep); font-weight: 600; }
.guide-note a:hover { text-decoration: underline; }

/* La conclusion. Un guide qui ne conclut pas laisse le lecteur exactement où
   il était : cet encadré est la seule partie que certains liront. */
.guide-verdict {
  max-width: 760px;
  margin: clamp(34px, 4vw, 48px) 0 0;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber-deep);
  border-radius: var(--radius-sm);
}
.guide-verdict h2 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.guide-verdict p { margin: 0; font-size: 17px; }
.guide-verdict a { color: var(--ink); font-weight: 600; text-decoration: underline; }

.guide-body p a:not(.btn):not(.btn-text) {
  color: var(--amber-deep);
  font-weight: 600;
}
.guide-body p a:not(.btn):not(.btn-text):hover { text-decoration: underline; }
.guide-liste a { color: var(--amber-deep); font-weight: 600; }
.guide-liste a:hover { text-decoration: underline; }

.guide-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(44px, 5vw, 64px);
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius);
}
.guide-cta h2 { margin: 0 0 8px; color: var(--white); font-size: clamp(21px, 2.2vw, 27px); }
.guide-cta p { margin: 0; color: var(--text-inverse-soft); font-size: 16px; }
.guide-cta__actions { display: flex; flex-direction: column; gap: 10px; }

/* Cartes de guide, réutilisées partout : accueil, catalogues, fiches, hub. */
.guides-lies { background: var(--paper-2); }
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.guides-grid--large { grid-template-columns: repeat(2, 1fr); }
/* Une famille de produits n'a pas toujours trois guides à proposer. Une seule
   carte étirée sur trois colonnes laisse deux trous : la grille suit le nombre
   réel de cartes. */
.guides-grid[data-n="1"] { grid-template-columns: minmax(0, 460px); }
.guides-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Avec une seule carte, la section paraissait vide aux trois quarts : le titre
   passe alors à gauche et la carte à sa droite. Les navigateurs sans :has()
   gardent la disposition empilée, qui reste correcte. */
@media (min-width: 901px) {
  .guides-lies:has(.guides-grid[data-n="1"]) > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
  }
  .guides-lies:has(.guides-grid[data-n="1"]) .section-head {
    display: block;
    margin: 0;
    border: 0;
    padding: 0;
  }
  .guides-lies:has(.guides-grid[data-n="1"]) .section-head .btn { margin-top: 18px; }
  .guides-lies:has(.guides-grid[data-n="1"]) .guides-grid[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(18px, 2vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.guide-card__kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}
.guide-card--feature h2 { font-size: clamp(21px, 2.2vw, 26px); }
.guide-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}
.guide-card .btn-text { margin-top: auto; padding-top: 6px; align-self: flex-start; }

/* Les deux cartes transversales — prix et primes — sous les catalogues et
   sur l'accueil. Fond encre : ce ne sont pas des produits. */
.ressources__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
}
.ressource-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out);
}
.ressource-card:hover { transform: translateY(-3px); }
.ressource-card h3 { margin: 0; color: var(--white); font-size: clamp(19px, 2vw, 23px); }
.ressource-card p { margin: 0; color: var(--text-inverse-soft); font-size: 15.5px; }
.ressource-card .btn-text { margin-top: auto; padding-top: 8px; color: var(--amber); }

/* Les trois régions, sur la page primes. */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin: 8px 0 12px;
}
.region-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.region-card__nom {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.region-card h3 { margin: 0; font-size: 19px; }
.region-card p { margin: 0; font-size: 15px; color: var(--text-soft); }
.region-card .btn-text { margin-top: auto; padding-top: 6px; align-self: flex-start; }

/* Sous le prix d'une fiche : d'où il sort, et ce qu'il devient avec la TVA. */
.product-hero__prix-liens {
  margin: -8px 0 20px;
  font-size: 14px;
  color: var(--text-inverse-soft);
}
.product-hero__prix-liens a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-hero__prix-liens span { margin: 0 8px; opacity: 0.5; }

@media (max-width: 1080px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .regions-grid { grid-template-columns: 1fr; }
  .guide-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .guides-grid,
  .guides-grid--large,
  .ressources__grid { grid-template-columns: 1fr; }
  .guide-body p, .guide-liste li { font-size: 16px; }
}
