/* ============================================================
   indépendance-energetique.fr — Components
   ============================================================ */

/* ── Header / Nav ──────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 17, 36, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.theme-paper .site-header {
  background: rgba(246, 247, 249, 0.82);
  border-bottom-color: var(--paper-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  height: 72px;
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg);
  flex-shrink: 0;
}
.brand__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand picture {
  display: block;
  line-height: 0;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 400;
}
.theme-paper .brand__name small { color: var(--ink-low); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__item {
  position: relative;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.theme-paper .nav__item { color: var(--ink-mid); }
.nav__item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.theme-paper .nav__item:hover { color: var(--ink); background: var(--paper-3); }
.nav__item.has-menu::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  display: inline-block;
  margin-left: 6px;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.5;
}
.nav__phone {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  padding: 8px 12px;
  margin-left: 4px;
}
.theme-paper .nav__phone { color: var(--accent-deep); }

/* ── Buttons ──────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 550;
  font-size: var(--fs-sm);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-base);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #04221A;
  font-weight: 600;
  box-shadow: 0 8px 28px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--primary:hover {
  background: #00f7a5;
  box-shadow: 0 14px 36px -10px rgba(0, 229, 153, 0.55), inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.theme-paper .btn--ghost {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--paper-border-strong);
}
.theme-paper .btn--ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

.btn--link {
  height: auto;
  padding: 4px 0;
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.theme-paper .btn--link { color: var(--accent-deep); }

.btn--lg { height: 56px; padding: 0 28px; font-size: var(--fs-base); }
.btn--sm { height: 36px; padding: 0 14px; font-size: var(--fs-xs); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── Card / Surface ──────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: var(--s-6);
}
.card--raised {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-card-dark);
}
.theme-paper .card {
  background: var(--paper-2);
  border-color: var(--paper-border);
}
.theme-paper .card--raised {
  background: var(--paper-2);
  box-shadow: var(--shadow-card-light);
  border-color: var(--paper-border);
}

/* ── Stat block (data viz) ──────────────────────── */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.theme-paper .stat__value { color: var(--ink); }
.stat__value .unit { color: var(--accent); font-weight: 500; }
.theme-paper .stat__value .unit { color: var(--accent-deep); }
.stat__label {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-low);
  margin-top: 6px;
}
.theme-paper .stat__label { color: var(--ink-low); }

/* ── Section ──────────────────────── */
.section {
  padding: clamp(60px, 6vw, 120px) 0;
}
.section--compact { padding: clamp(40px, 4vw, 80px) 0; }
.section--dark {
  background: var(--bg);
  color: var(--text);
}
.section--deep {
  background: var(--bg-deep);
  color: var(--text);
}
.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--card {
  background: var(--paper-2);
  color: var(--ink);
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 760px;
  margin-bottom: var(--s-10);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* ── Form ──────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 500;
}
.theme-paper .field__label { color: var(--ink-mid); }
.field__input,
.field__select,
.field__textarea {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}
.theme-paper .field__input,
.theme-paper .field__select,
.theme-paper .field__textarea {
  background: var(--paper-2);
  border-color: var(--paper-border-strong);
  color: var(--ink);
}
.theme-paper .field__input:focus,
.theme-paper .field__select:focus,
.theme-paper .field__textarea:focus {
  border-color: var(--accent-deep);
  background: var(--paper-2);
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-1);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-size: var(--fs-base);
}
.choice__opt:hover { border-color: var(--border-strong); }
.choice__opt[aria-checked="true"], .choice__opt.is-selected {
  border-color: var(--accent);
  background: rgba(0, 229, 153, 0.06);
}
.choice__opt .bullet {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.choice__opt[aria-checked="true"] .bullet,
.choice__opt.is-selected .bullet {
  border-color: var(--accent);
}
.choice__opt[aria-checked="true"] .bullet::after,
.choice__opt.is-selected .bullet::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.theme-paper .choice__opt {
  background: var(--paper-2);
  border-color: var(--paper-border-strong);
}
.theme-paper .choice__opt[aria-checked="true"],
.theme-paper .choice__opt.is-selected {
  border-color: var(--accent-deep);
  background: rgba(0, 184, 120, 0.06);
}
.theme-paper .choice__opt[aria-checked="true"] .bullet,
.theme-paper .choice__opt.is-selected .bullet {
  border-color: var(--accent-deep);
}
.theme-paper .choice__opt[aria-checked="true"] .bullet::after,
.theme-paper .choice__opt.is-selected .bullet::after { background: var(--accent-deep); }

/* ── Footer ──────────────────────── */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-mid);
  padding: var(--s-16) 0 var(--s-8);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-8);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-low);
  font-weight: 500;
  margin-bottom: var(--s-4);
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--text-low);
  font-family: var(--font-mono);
}

/* ── Breadcrumb ──────────────────────── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: var(--s-6);
}
.crumbs a { color: var(--text-mid); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.4; }
.theme-paper .crumbs { color: var(--ink-low); }
.theme-paper .crumbs a { color: var(--ink-mid); }
.theme-paper .crumbs a:hover { color: var(--accent-deep); }

/* ── Trust strip (logos / mentions) ──────────────────────── */
.trust-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip .logo {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-low);
  letter-spacing: 0.04em;
}
.theme-paper .trust-strip { border-color: var(--paper-border); }
.theme-paper .trust-strip .logo { color: var(--ink-low); }

/* ── Icon (line based — 24x24, stroke currentColor) ──────────────────────── */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Generic "tag" pills (used in product specs) ──────────────────────── */
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--text-mid);
}
.theme-paper .spec-pill {
  border-color: var(--paper-border-strong);
  color: var(--ink-mid);
}

/* ── Product visual (battery / inverter illustration on card top) ──────────────────────── */
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  background: linear-gradient(135deg, rgba(0, 184, 120, 0.04), transparent);
  border-radius: var(--r-3);
  min-height: 180px;
}
.product-visual.is-portrait img { max-height: 220px; }
.product-visual.is-landscape img { max-height: 160px; }
.product-visual img,
.product-visual svg {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}
/* On dark section, soften the gradient background */
.section--dark .product-visual,
.card--raised .product-visual {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.05), rgba(255, 255, 255, 0.01));
}

/* ── Infographic figure ──────────────────────── */
.infographic-figure {
  margin: var(--s-7) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.infographic-figure picture,
.infographic-figure img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  border-radius: var(--r-4);
  box-shadow: var(--shadow-card-light);
}
.theme-paper .infographic-figure picture,
.theme-paper .infographic-figure img {
  box-shadow: var(--shadow-card-light);
}
.section--dark .infographic-figure picture,
.section--dark .infographic-figure img {
  box-shadow: var(--shadow-card-dark);
}
.infographic-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-low);
  text-align: center;
  max-width: 60ch;
}
.theme-paper .infographic-figure figcaption,
.section--paper .infographic-figure figcaption { color: var(--ink-low); }

/* ── Real images filling a container (replaces img-ph) ──────────────────────── */
.img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.img-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Ensure overlays (floating-spec, kbd-tag, etc.) sit on top */
.pp-viz > *:not(.img-fill),
.ph > *:not(.img-fill),
.cover > *:not(.img-fill),
.kit-card__viz > *:not(.img-fill) {
  position: relative;
  z-index: 1;
}

/* ── Image placeholder (until real photo) ──────────────────────── */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  color: var(--text-low);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  isolation: isolate;
}
.img-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.03) 12px 13px);
  z-index: -1;
}
.theme-paper .img-ph {
  background: linear-gradient(135deg, var(--paper-3), var(--paper-2));
  border-color: var(--paper-border);
  color: var(--ink-low);
}
.theme-paper .img-ph::before {
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(15,25,50,0.04) 12px 13px);
}

/* ── FAQ ──────────────────────── */
.faq details {
  border-bottom: 1px solid var(--paper-border);
  padding: var(--s-5) 0;
}
.faq details:first-child { border-top: 1px solid var(--paper-border); }
.section--dark .faq details { border-color: var(--border); }
.section--dark .faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.section--dark .faq summary { color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-deep);
  transition: transform var(--t-base);
}
.section--dark .faq summary::after { color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq__body {
  padding-top: var(--s-4);
  max-width: 70ch;
  color: var(--ink-mid);
  font-size: var(--fs-md);
  line-height: 1.65;
}
.section--dark .faq__body { color: var(--text-mid); }

/* ── Kits / cards grid (reusable 3-up layout) ──────────────────────── */
.kits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 980px) {
  .kits-row { grid-template-columns: 1fr; }
}

/* Card adapts to its containing section's theme (paper sections force light cards) */
.section--paper .card,
.section--card .card {
  background: var(--paper-2);
  border-color: var(--paper-border);
  color: var(--ink);
}
.section--paper .card h3,
.section--card .card h3,
.section--paper .card h4,
.section--card .card h4 {
  color: var(--ink);
}
.section--paper .card .muted,
.section--card .card .muted {
  color: var(--ink-mid);
}
.section--paper .card--raised,
.section--card .card--raised {
  background: var(--paper-2);
  box-shadow: var(--shadow-card-light);
  border-color: var(--paper-border);
}

/* Dark sections always render dark cards even when body is theme-paper */
.section--dark .card,
.section--deep .card {
  background: var(--bg-1);
  border-color: var(--border);
  color: var(--text);
}
.section--dark .card h3,
.section--deep .card h3,
.section--dark .card h4,
.section--deep .card h4 {
  color: var(--text);
}
.section--dark .card .muted,
.section--deep .card .muted {
  color: var(--text-mid);
}
.section--dark .card--raised,
.section--deep .card--raised {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-card-dark);
}

/* ── Process steps ──────────────────────── */
.steps {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.step__num::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}
.step h4 {
  font-size: var(--fs-xl);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.step p {
  color: var(--text-mid);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.theme-paper .step p { color: var(--ink-mid); }
.theme-paper .step__num { color: var(--accent-deep); }
.theme-paper .step__num::before { background: var(--accent-deep); box-shadow: 0 0 10px rgba(0,184,120,0.4); }

/* ============================================================
   RESPONSIVE — breakpoints
   tablet ≤ 1080px · mobile ≤ 760px · small ≤ 480px
   ============================================================ */

/* Garde-fou anti overflow horizontal */
html, body { overflow-x: hidden; max-width: 100%; }

/* Bouton hamburger : caché en desktop, visible en mobile */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.theme-paper .nav-toggle { border-color: var(--paper-border); }
.nav-toggle:hover { background: rgba(255,255,255,0.04); }
.theme-paper .nav-toggle:hover { background: var(--paper-2); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .25s ease, opacity .15s ease;
}
.theme-paper .nav-toggle span { background: var(--ink); }
.is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 50;
  pointer-events: none;
}
.site-header.is-nav-open .nav-backdrop {
  display: block;
  pointer-events: auto;
}
body.nav-locked { overflow: hidden; }

/* === TABLET ≤ 1080 === */
@media (max-width: 1080px) {
  .site-header__inner { gap: var(--s-4); padding: 0 var(--s-5); }
  .nav__item { padding: 8px 10px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-6); }
  .kits-row { grid-template-columns: repeat(2, 1fr); }
  .compo { grid-template-columns: repeat(2, 1fr); }
}

/* === MOBILE ≤ 960px (header switch to hamburger) === */
@media (max-width: 960px) {
  .nav-toggle { display: flex; position: relative; z-index: 56; }

  .site-header__inner {
    height: 64px;
    padding: 0 var(--s-4);
    gap: var(--s-3);
  }
  .brand { gap: 8px; }
  .brand__logo { width: 36px; height: 36px; }
  .brand__name strong { font-size: 14px; }
  .brand__name small { display: none; }

  /* Drawer mobile — width/height explicites, pas d'inset shorthand */
  .site-header .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: 64px;
    right: 0;
    left: auto;
    width: min(340px, 88vw);
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    background: var(--bg);
    padding: var(--s-5);
    margin: 0;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,.0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 55;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(0,0,0,0.18);
    -webkit-overflow-scrolling: touch;
  }
  .theme-paper .site-header .nav {
    background: var(--paper);
    border-left-color: var(--paper-border);
    box-shadow: -8px 0 24px rgba(10,17,36,0.08);
  }
  .site-header.is-nav-open .nav { transform: translateX(0); }

  .site-header .nav__item {
    display: block;
    width: 100%;
    padding: 16px 8px;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .theme-paper .site-header .nav__item { border-bottom-color: var(--paper-border); }
  .site-header .nav__item:hover { background: transparent; }
  .site-header .nav .btn,
  .site-header .nav .btn--primary,
  .site-header .nav .btn--sm {
    display: flex;
    width: 100%;
    height: 52px;
    margin: var(--s-5) 0 0;
    padding: 0 22px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }
}

/* === MOBILE ≤ 760px === */
@media (max-width: 760px) {
  .wrap-wide { padding-left: var(--s-4); padding-right: var(--s-4); }

  /* Sections : padding réduit */
  .section { padding: var(--s-9) 0; }
  .section--paper { padding: var(--s-9) 0; }

  /* Hero / titres : déjà clamp() pour la plupart, on s'assure */
  h1, .h-1 { font-size: clamp(1.875rem, 1.2rem + 3.5vw, 3rem); line-height: 1.08; }
  h2, .h-2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); }

  /* Grids → single column */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .kits-row { grid-template-columns: 1fr; }
  .compo { grid-template-columns: 1fr; }

  /* Tables prix / ROI (city pages) : scroll horizontal si trop large */
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Realisation card stack */
  .realisation { grid-template-columns: 1fr !important; }

  /* Boutons row : stack */
  .btn-row { flex-direction: column-reverse; align-items: stretch; gap: var(--s-3); }
  .btn-row .btn { width: 100%; }

  /* Crumbs : wrap au lieu d'overflow */
  .crumbs { flex-wrap: wrap; row-gap: 4px; }

  /* CTA blocks dark final : padding réduit */
  .section--dark > div, .cta-block { padding: var(--s-6) !important; }

  /* Empêche les images de dépasser */
  img, picture, video, svg { max-width: 100%; height: auto; }
}

/* === SMALL MOBILE ≤ 480 === */
@media (max-width: 480px) {
  .wrap-wide { padding-left: var(--s-3); padding-right: var(--s-3); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-2); text-align: left; }

  .brand__name { display: none; }  /* sur très petit, juste le logo */
  .site-header__inner { padding: 0 var(--s-3); }

  .btn, .btn--sm, .btn--lg { padding: 0 18px; }
  .btn--lg { height: 52px; font-size: 14px; }
}
