/* ============================================================
   ARETEK — Système de design
   Charte : bleu marine profond (#0B2447) + accent ambre (#E8930C)
   Typographies : Archivo (titres) / Inter (texte)
   ============================================================ */

:root {
  --navy-950: #051224;
  --navy-900: #071a36;
  --navy-800: #0b2447;
  --navy-700: #12325f;
  --navy-600: #1a4279;
  --navy-100: #e8eef7;
  --amber: #e8930c;
  --amber-dark: #c97a05;
  --amber-light: #fdf3e1;
  --ink: #1c2430;
  --muted: #5b6472;
  --line: #e3e7ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(11, 36, 71, 0.10);
  --shadow-lg: 0 18px 48px rgba(11, 36, 71, 0.16);
  --font-head: "Archivo", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --ease: 200ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--navy-700); }

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.01em; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Animations d'entrée ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-observed:not(.visible) { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease),
    border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn:hover { box-shadow: 0 8px 20px rgba(11, 36, 71, 0.18); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--amber); color: var(--navy-950); }
.btn-accent:hover { background: var(--amber-dark); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* État de chargement (formulaire) */
.btn.loading { pointer-events: none; opacity: 0.75; }
.btn.loading .btn-label { visibility: hidden; }
.btn.loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(7, 18, 36, 0.25);
  border-top-color: var(--navy-950);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 36, 71, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--white);
}
.brand-name em { font-style: normal; color: var(--amber); }
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background var(--ease), color var(--ease);
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.10); color: var(--white); }
.main-nav a.active { color: var(--amber); }
.main-nav .btn { padding: 10px 22px; margin-left: 10px; font-size: 0.88rem; }
.main-nav .btn:hover { box-shadow: 0 6px 16px rgba(232, 147, 12, 0.35); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: 104px 0 96px;
  background:
    linear-gradient(115deg, rgba(5, 18, 36, 0.96) 25%, rgba(11, 36, 71, 0.88) 60%, rgba(18, 50, 95, 0.72)),
    var(--navy-800);
  overflow: hidden;
}
.hero::before {
  /* Trame « blueprint » : quadrillage fin */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero .kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232, 147, 12, 0.45);
  background: rgba(232, 147, 12, 0.08);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Illustration blueprint */
.hero-visual { position: relative; }
.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(5, 18, 36, 0.5));
}
.hero-visual .frame {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  pointer-events: none;
}
.hero-visual .frame::after {
  content: "FIG. 01 — INFRASTRUCTURE COURANTS FORTS & FAIBLES";
  position: absolute;
  bottom: -1px;
  left: 18px;
  transform: translateY(100%);
  padding-top: 10px;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Bandeau de statistiques ---------- */
.stats-bar {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.stat .stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

/* ---------- Bandeau de page intérieure ---------- */
.page-banner {
  position: relative;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700) 80%);
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.7), transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.7), transparent 75%);
  pointer-events: none;
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.015em; }
.page-banner p { color: rgba(255, 255, 255, 0.78); max-width: 700px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--amber); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.3); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.section-head p { color: var(--muted); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(232, 147, 12, 0.55); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-light), #fbE8c4);
  border: 1px solid rgba(232, 147, 12, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--amber-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; color: var(--navy-800); margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber-dark);
  text-decoration: none;
  transition: gap var(--ease);
}
.card .more:hover { gap: 10px; }

/* ---------- Pourquoi ARETEK ---------- */
.why-item { display: flex; gap: 18px; }
.why-item .num {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(11, 36, 71, 0.25);
}
.why-item h3 { color: var(--navy-800); font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Secteurs / badges ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.badge:hover { border-color: var(--amber); background: var(--amber-light); transform: translateY(-2px); }
.badge svg { width: 18px; height: 18px; stroke: var(--amber-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sector {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow var(--ease), transform var(--ease);
}
.sector:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.sector svg { width: 36px; height: 36px; margin: 0 auto 14px; stroke: var(--navy-700); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sector h3 { font-size: 1rem; color: var(--navy-800); margin-bottom: 6px; }
.sector p { font-size: 0.86rem; color: var(--muted); }

/* ---------- Normes & garanties ---------- */
.norm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.norm-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.norm-item:hover { border-color: rgba(232, 147, 12, 0.5); box-shadow: var(--shadow); }
.norm-item svg { width: 30px; height: 30px; margin: 0 auto 12px; stroke: var(--navy-700); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.norm-item strong { display: block; font-family: var(--font-head); font-size: 0.92rem; color: var(--navy-800); margin-bottom: 4px; }
.norm-item span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Méthode / timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--amber), var(--line));
}
.step { position: relative; text-align: center; padding-top: 0; }
.step .step-dot {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--amber);
  color: var(--navy-800);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(232, 147, 12, 0.25);
}
.step h3 { font-size: 1.02rem; color: var(--navy-800); margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--muted); max-width: 240px; margin: 0 auto; }

/* Version sombre (sur bandeau navy) */
.timeline.dark::before { background: linear-gradient(90deg, transparent, rgba(232,147,12,0.6), transparent); }
.timeline.dark .step-dot { background: var(--navy-900); color: var(--amber); }
.timeline.dark .step h3 { color: var(--white); }
.timeline.dark .step p { color: rgba(255, 255, 255, 0.65); }

/* ---------- Pages services détaillées ---------- */
.service-block {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 30px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: none; }
.service-block .icon-lg {
  width: 68px; height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(11, 36, 71, 0.28);
}
.service-block .icon-lg svg { width: 32px; height: 32px; stroke: var(--amber); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-block h2 { font-size: 1.4rem; color: var(--navy-800); margin-bottom: 10px; letter-spacing: -0.01em; }
.service-block > div > p { color: var(--muted); max-width: 780px; margin-bottom: 20px; }

.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 22px;
}
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--amber-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c97a05" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center / 11px no-repeat;
  border: 1px solid rgba(232, 147, 12, 0.4);
}
.check-list-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 14px;
}
.service-cta { margin-top: 6px; }

/* ---------- Réalisations (cas types) ---------- */
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-visual {
  height: 148px;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy-900), var(--navy-600));
  background-size: 28px 28px, 28px 28px, cover;
  display: flex; align-items: center; justify-content: center;
}
.case-visual svg { width: 54px; height: 54px; stroke: rgba(232, 147, 12, 0.95); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.case-visual .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--amber);
  border-radius: 4px;
  padding: 4px 10px;
}
.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { color: var(--navy-800); font-size: 1.08rem; margin-bottom: 14px; }
.case-row { margin-bottom: 12px; }
.case-row .case-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 2px;
}
.case-row p { font-size: 0.88rem; color: var(--muted); }
.case-row.result { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.case-row.result p { color: var(--navy-700); font-weight: 500; }

.disclaimer {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 18px 22px;
  color: #7a5410;
  font-size: 0.9rem;
  margin-bottom: 44px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(120deg, var(--navy-950), var(--navy-700));
  background-size: 36px 36px, 36px 36px, cover;
  color: var(--white);
  border-radius: 16px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 1.55rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.015em; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 540px; }

/* ---------- Formulaire ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 44px;
  align-items: start;
}
form.devis-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
form.devis-form fieldset {
  border: none;
  padding: 0;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
form.devis-form fieldset:last-of-type { border-bottom: none; margin-bottom: 10px; padding-bottom: 0; }
form.devis-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 20px;
}
form.devis-form legend svg { width: 18px; height: 18px; stroke: var(--amber-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.form-group label .req { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: #c9d2de; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 147, 12, 0.16);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group .hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.checkbox-group { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-group input { width: auto; margin-top: 4px; accent-color: var(--amber-dark); }
.checkbox-group label { font-weight: 400; font-size: 0.86rem; color: var(--muted); }

.form-side .card { margin-bottom: 20px; }
.form-side h3 { margin-bottom: 12px; }
.form-side p, .form-side li { font-size: 0.9rem; color: var(--muted); }
.form-side ul { margin-left: 18px; }
.form-side li { margin-bottom: 8px; }
.form-side strong { color: var(--navy-800); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--amber-light);
  border: 1px solid rgba(232, 147, 12, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 22px; height: 22px; stroke: var(--amber-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item h3 { font-size: 0.98rem; color: var(--navy-800); margin-bottom: 3px; }
.contact-item p { font-size: 0.92rem; color: var(--muted); }
.contact-item a { color: var(--navy-700); font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--amber-dark); }
.map-frame {
  width: 100%;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.placeholder-note {
  display: inline-block;
  background: var(--amber-light);
  color: #7a5410;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Mentions légales ---------- */
.legal h2 { color: var(--navy-800); font-size: 1.25rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: 0.94rem; margin-bottom: 8px; }
.legal ul { margin: 0 0 12px 20px; }
.legal table { border-collapse: collapse; margin: 12px 0 18px; width: 100%; max-width: 720px; }
.legal td { border: 1px solid var(--line); padding: 9px 15px; font-size: 0.9rem; }
.legal td:first-child { font-weight: 600; color: var(--navy-800); background: var(--bg); width: 240px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.68);
  padding: 64px 0 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, 0.68); text-decoration: none; transition: color var(--ease); }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand > p { margin-top: 14px; max-width: 360px; line-height: 1.7; font-size: 0.88rem; }
.footer-contact { margin-top: 18px; font-size: 0.86rem; }
.footer-contact li { display: flex; gap: 8px; }
.footer-contact svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 4px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; }
.footer-legal-list span:first-child { color: rgba(255, 255, 255, 0.42); }
.footer-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-strip .rcs { font-family: var(--font-head); letter-spacing: 0.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .norm-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .timeline::before { display: none; }
  .form-wrap, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat + .stat::before { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 22px;
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px rgba(5, 18, 36, 0.5);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; border-radius: 6px; }
  .main-nav .btn { margin: 12px 0 0; justify-content: center; }
}

@media (max-width: 720px) {

  .hero { padding: 72px 0 64px; }
  .section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .norm-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  form.devis-form { padding: 28px 20px; }
  .service-block { grid-template-columns: 1fr; gap: 18px; }
  .cta-band { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .legal td:first-child { width: auto; }
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch { position: relative; margin-left: 6px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.lang-btn svg { width: 16px; height: 16px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 12px; height: 12px; stroke: rgba(255, 255, 255, 0.6); transition: transform var(--ease); }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  list-style: none;
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(5, 18, 36, 0.55);
  z-index: 120;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button, .lang-menu a {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 14px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.lang-menu button:hover, .lang-menu a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.lang-menu button.active, .lang-menu a.active { color: var(--amber); font-weight: 700; }

.service-guides h2 { color: var(--navy-800); margin-bottom: 12px; }
.guide-intro { color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.guide-card h3 { font-size: 1.2rem; line-height: 1.4; }
.guide-card p { color: var(--muted); }
.guide-card .text-link { margin-top: auto; font-weight: 600; }
.guide-body { max-width: 960px; }
.guide-section { margin-bottom: 42px; }
.guide-section h2, .guide-faq h2 { color: var(--navy-800); font-size: 1.55rem; margin-bottom: 16px; }
.guide-section p { color: var(--muted); margin-bottom: 20px; }
.guide-faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.guide-faq summary { color: var(--navy-800); cursor: pointer; font-weight: 600; }
.guide-faq p { color: var(--muted); margin-top: 14px; }
.guide-area { margin-top: 28px; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Ajustements typographiques chinois ---------- */
html[lang^="zh"] body {
  font-family: var(--font);
  line-height: 1.75;
}
html[lang^="zh"] p,
html[lang^="zh"] li { line-height: 1.8; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4,
html[lang^="zh"] .brand-name, html[lang^="zh"] .stat .stat-value,
html[lang^="zh"] .btn, html[lang^="zh"] .badge {
  font-family: var(--font-head), "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
html[lang^="zh"] body,
html[lang^="zh"] input, html[lang^="zh"] select, html[lang^="zh"] textarea {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}
html[lang^="zh"] .breadcrumb,
html[lang^="zh"] .section-head .kicker,
html[lang^="zh"] .hero .kicker,
html[lang^="zh"] .check-list-title,
html[lang^="zh"] .case-row .case-label,
html[lang^="zh"] .site-footer h4 {
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .lang-switch { margin: 10px 0 0; }
  .lang-btn { width: 100%; justify-content: center; padding: 12px 14px; }
  .lang-menu { position: static; margin-top: 8px; box-shadow: none; }
}

/* Accessibilité et états de formulaire */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
[id] { scroll-margin-top: 100px; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 1000; padding: 12px 20px; background: var(--white); color: var(--navy-950); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 20px; padding: 18px; border: 1px solid; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.form-status.is-error { background: #fff5f2; color: #962d15; border-color: #e8aa99; }
.form-status.is-success { background: #eef8f0; color: #205d31; border-color: #99cba5; }
.form-status[hidden] { display: none; }
.form-email { margin-top: 20px; font-size: .9rem; color: var(--muted); }
.form-email a { overflow-wrap: anywhere; }
.btn:disabled { cursor: default; opacity: .7; }
.map-panel { padding: 36px 24px; background: var(--navy-100); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.map-panel svg { width: 100%; max-width: 280px; height: 175px; margin: 0 auto 24px; color: #b8c9de; }
.map-panel h3 { color: var(--navy-800); margin-bottom: 8px; }
.map-panel .btn { margin: 24px 0 16px; justify-content: center; }
.map-panel .hint { font-size: .82rem; color: var(--muted); }
@media (max-width: 980px) {
  .main-nav { max-height: calc(100dvh - 72px); overflow-y: auto; }
  .main-nav .lang-menu { position: static; margin: 8px 0; }
}
@media (max-width: 400px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .norm-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .legal table { font-size: .82rem; table-layout: fixed; }
  .legal td { padding: 12px 8px; overflow-wrap: anywhere; }
  .footer-legal-list { overflow-wrap: anywhere; }
}

/* Core activities and legacy service deep links. */
.core-services .card { display: flex; flex-direction: column; }
.core-services .card .more { margin-top: auto; padding-top: 16px; }
.service-anchor { display: block; scroll-margin-top: 120px; }

/* Catalogue and product enquiries */
.catalog-entry { margin-top: 20px; }
.core-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.core-pair .card .more { margin-top: 0; padding-top: 8px; align-self: flex-start; }
/* The catalogue is a product index with a separate area for the selection. */
body[data-page="catalogue"] {
  --catalog-ink: #192124;
  --catalog-muted: #52615f;
  --catalog-line: #d7dcd5;
  --catalog-paper: #f4f4ee;
  --catalog-forest: #263b36;
}
body[data-page="catalogue"] .container { max-width: 1280px; }
body[data-page="catalogue"] .site-header { background: #fcfcf8; border-color: #d7dcd5; }
body[data-page="catalogue"] .brand-name { color: var(--catalog-ink); }
body[data-page="catalogue"] .site-footer .brand-name { color: white; }
body[data-page="catalogue"] .brand-sub { color: #535e59; }
body[data-page="catalogue"] .main-nav > a { color: var(--catalog-ink); }
body[data-page="catalogue"] .main-nav > a.active { color: #805019; }
body[data-page="catalogue"] .main-nav > a:hover { background: #eef0e9; }
body[data-page="catalogue"] .main-nav > a.btn { background: var(--catalog-ink); color: white; border-color: var(--catalog-ink); border-radius: 4px; box-shadow: none; }
body[data-page="catalogue"] .main-nav > a.btn:hover { background: var(--catalog-forest); }
body[data-page="catalogue"] .lang-btn { color: var(--catalog-ink); background: transparent; border-color: #c9ceca; }
body[data-page="catalogue"] .lang-btn svg, body[data-page="catalogue"] .nav-toggle svg { stroke: var(--catalog-ink); }
.catalog-banner { color: var(--catalog-ink); background: var(--catalog-paper); border-bottom: 1px solid var(--catalog-line); }
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr);
  grid-template-areas: "path photo" "heading photo" "lead photo" "search photo";
  align-content: center;
  column-gap: clamp(32px,5.5vw,96px);
  row-gap: 0;
  padding-top: clamp(24px,3.2vw,44px);
  padding-bottom: clamp(26px,3.2vw,44px);
}
.catalog-path { grid-area: path; display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--catalog-muted); font-size: .75rem; font-weight: 600; }
.catalog-path a { color: inherit; text-decoration: none; }
.catalog-path a:hover { text-decoration: underline; }
.catalog-path span:last-child { color: var(--catalog-ink); }
.catalog-hero h1 { grid-area: heading; font-size: clamp(3rem,5vw,4.7rem); font-weight: 720; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.catalog-hero .catalog-lead { grid-area: lead; margin: 14px 0 20px; font-size: .97rem; color: var(--catalog-muted); line-height: 1.52; max-width: 45ch; }
.catalog-hero > img { grid-area: photo; display: block; width: 100%; height: 100%; min-height: 0; max-height: 290px; object-fit: cover; object-position: 51% 56%; align-self: center; border-radius: 3px; }
.catalog-search { grid-area: search; position: relative; align-self: end; max-width: 490px; }
.catalog-search input { width: 100%; min-height: 48px; background: #fff; color: var(--catalog-ink); padding: 10px 13px 10px 44px; font: inherit; font-size: .94rem; border: 1px solid #adb8ae; border-radius: 5px; }
.catalog-search input::placeholder { color: #5a6660; }
.catalog-lens { position: absolute; top: 50%; left: 16px; width: 15px; height: 15px; border: 1.7px solid #34433d; border-radius: 50%; transform: translateY(-57%); pointer-events: none; }
.catalog-lens::after { content:""; position:absolute; width:7px; height:1.7px; background:#34433d; top:12px; left:10px; transform:rotate(46deg); }
.catalog-body { display: grid; grid-template-columns: minmax(195px, .48fr) minmax(0,1.52fr); column-gap: clamp(28px,4vw,64px); padding-top: clamp(26px,3vw,42px); padding-bottom: 54px; align-items: start; color: var(--catalog-ink); }
.catalog-sidebar { position: sticky; top: 94px; }
.catalog-sidebar h2 { font: 660 .81rem/1.3 var(--font); color: var(--catalog-muted); margin: 2px 0 15px; }
.catalog-jumps { display: grid; gap: 4px; }
.catalog-jumps a { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 58px; padding: 7px 12px 7px 8px; color: var(--catalog-ink); text-decoration: none; border-radius: 5px; border: 1px solid transparent; }
.catalog-jumps a:hover { background: #f2f3ee; }
.catalog-jumps a[aria-pressed="true"] { background: var(--catalog-forest); color: #fff; }
.catalog-jumps strong { line-height: 1.24; font-size: .93rem; font-weight: 610; }
.catalog-jumps small { color: var(--catalog-muted); font: 500 .77rem/1.3 var(--font); font-variant-numeric: tabular-nums; }
.catalog-jumps [aria-pressed="true"] small { color: #d5e1d8; }
.catalog-jumps img { width: 46px; height: 36px; object-fit: cover; border-radius: 3px; }
.catalog-grid-icon { display: grid; width: 46px; height: 36px; border-radius: 3px; place-content: center; grid-template-columns: repeat(2,5px); grid-template-rows: repeat(2,5px); gap: 2px; background: #e8ece5; }
.catalog-grid-icon i { background: #263b36; border-radius: 1px; }
.catalog-results { min-width: 0; }
.results-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #89968a; }
.results-title-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.results-title-line h2 { font-size: clamp(1.3rem,2.45vw,2.1rem); font-weight: 670; line-height: 1.13; letter-spacing: -.043em; }
#catalog-count { color: var(--catalog-muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
#catalog-group-wrap { flex: 0 1 auto; min-width: 0; }
#catalog-group { font: 550 .83rem/1.25 var(--font); color: var(--catalog-ink); width: 100%; max-width: 180px; min-height: 44px; padding: 7px 9px; border: 1px solid #c6cfc6; border-radius: 4px; background: #fafbf7; }
.catalog-section { scroll-margin-top: 94px; margin: 21px 0 26px; }
.catalog-section h3 { color: var(--catalog-muted); font: 680 .74rem/1.35 var(--font); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
.equipment-brand-note { color: var(--catalog-muted); font-size: .94rem; line-height: 1.55; margin: 0 0 14px; }
.catalog-section details { border-bottom: 1px solid var(--catalog-line); }
.catalog-section summary { list-style: none; display: flex; gap: 10px; align-items: center; color: var(--catalog-ink); min-height: 48px; padding: 10px 13px; cursor: pointer; font-size: .94rem; font-weight: 620; line-height: 1.35; }
.catalog-section summary::-webkit-details-marker { display: none; }
.catalog-section summary::after { content:""; flex: 0 0 auto; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); margin: 0 4px; }
.catalog-section details[open] > summary { background: #e9eee8; border-left: 3px solid #b46d0c; padding-left: 10px; }
.catalog-section details[open] > summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.catalog-section summary:hover { background: #f0f3ed; }
.group-size { margin-left: auto; color: var(--catalog-muted); font-size: .77rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.catalog-list { margin: 0; list-style: none; }
.catalog-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e1e5df; background: white; }
.catalog-list li:last-child { border-bottom: 0; }
.catalog-list li:hover { background: #fbfcf8; }
.catalog-list li:has([aria-pressed="true"]) { background: #f2f6ee; }
.item-info { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.22fr); align-items: center; gap: clamp(12px,2vw,32px); }
.item-info strong { font: 650 .94rem/1.38 var(--font-head); color: var(--catalog-ink); overflow-wrap: anywhere; }
.item-info p { color: var(--catalog-muted); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.item-action { display: flex; align-items: center; gap: 10px; }
.catalog-price { color: #665842; font-size: .74rem; white-space: nowrap; }
.item-action a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 11px; border: 1px solid #bcc6bd; border-radius: 4px; color: #253930; background: #fff; text-decoration: none; font: 630 .82rem/1.2 var(--font); white-space: nowrap; }
.item-action a:hover, .item-action a[aria-pressed=true] { border-color: var(--catalog-forest); color: white; background: var(--catalog-forest); }
.catalog-art-note { margin-top: 30px; color: var(--catalog-muted); font-size: .77rem; }
#catalog-empty a { display: inline-block; margin: 8px 1rem 0 0; text-decoration: underline; text-underline-offset: .16em; }
#catalog-empty { margin: 20px 0; padding: 24px 18px; background: var(--catalog-paper); }
#catalog-reset { margin-top: 10px; font: inherit; background: transparent; color: var(--catalog-forest); text-decoration: underline; cursor: pointer; border: 0; min-height: 44px; }
.catalog-banner [hidden], .catalog-body [hidden], .catalog-fields[hidden], .catalog-fields [hidden], .quote-tray[hidden], .devis-form .req[hidden] { display: none; }
html[lang^="zh"] .catalog-hero h1 { letter-spacing: -.045em; line-height: 1.1; }
body[data-page="catalogue"] .quote-tray { background: #1c302b; }
body[data-page="catalogue"] #tray-items input, body[data-page="catalogue"] #tray-items button { min-height: 44px; }
@media (max-width: 980px) {
  body[data-page="catalogue"] .main-nav { background: #fcfcf8; }
  .catalog-body { grid-template-columns: 183px minmax(0,1fr); column-gap: 25px; }
  .item-info { display: block; }
  .item-info p { margin-top: 3px; }
  .catalog-hero { column-gap: 25px; }
  .results-title-line { display: block; }
}
@media (max-width: 760px) {
  .catalog-body { display: block; padding-top: 18px; }
  .catalog-sidebar { position: static; }
  .catalog-sidebar h2 { margin-bottom: 8px; }
  .catalog-jumps { display: flex; gap: 5px; flex-wrap: wrap; }
  .catalog-jumps a { display: inline-flex; min-height: 44px; padding: 6px 12px; border-color: var(--catalog-line); gap: 6px; }
  .catalog-jumps small, .catalog-jumps img, .catalog-grid-icon { display: none; }
  .catalog-jumps strong { font-size: .84rem; }
  .results-head { margin-top: 18px; align-items: center; }
}
@media (max-width: 600px) {
  .catalog-hero { grid-template-columns: minmax(0,1fr) 33%; grid-template-areas: "path photo" "heading photo" "lead lead" "search search"; column-gap: 12px; padding-top: 17px; padding-bottom: 18px; }
  .catalog-path { gap: 5px; font-size: .72rem; margin-bottom: 8px; }
  .catalog-hero h1 { font-size: clamp(2.1rem,7.2vw,3rem); align-self: end; }
  .catalog-hero > img { height: 100%; min-height: 73px; max-height: 100px; object-position: 54% 52%; }
  .catalog-hero .catalog-lead { margin: 11px 0 12px; font-size: .87rem; }
  .catalog-search { max-width: none; }
  .catalog-search input { min-height: 46px; font-size: 16px; }
  .catalog-jumps { gap: 4px; }
  .catalog-jumps a { padding: 5px 9px; }
  .results-head { padding-bottom: 9px; }
  .results-title-line h2 { font-size: 1.38rem; }
  #catalog-group { max-width: 128px; }
  .catalog-section { margin-top: 15px; }
  .catalog-section h3 { margin-bottom: 6px; }
  .catalog-list li { padding: 7px 4px; gap: 8px; }
  .item-action { flex-direction: column; gap: 1px; }
  .item-action a { padding: 4px 9px; }
  .item-info strong { font-size: .9rem; }
  .item-info p { font-size: .8rem; }
}

.has-quote-tray { padding-bottom: 90px; }
.quote-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); width: min(620px, calc(100% - 32px)); background: var(--navy-900); color: white; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 36px #05122448; z-index: 45; }
.quote-tray > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quote-tray summary { cursor: pointer; padding: 5px 0; font-weight: 650; }
.quote-tray summary b { display: inline-block; border: 1px solid #71869c; border-radius: 5px; font-size: .84rem; margin-left: 6px; padding: 1px 7px; }
.quote-tray .btn { min-height: 42px; color: #15202a; }
#tray-items { position: absolute; bottom: calc(100% + 5px); left: 0; right: 0; max-height: min(52vh, 360px); overflow-y: auto; list-style: none; background: #fff; color: var(--navy-800); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
#tray-items li { display: grid; align-items: center; grid-template-columns: 1fr 5rem 40px; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#tray-items span { font-size: .88rem; overflow-wrap: anywhere; }
#tray-items input, #tray-items button { height: 40px; font: inherit; color: var(--navy-800); }
#tray-items input { width: 100%; border: 1px solid #9caec1; border-radius: 6px; padding: 4px 6px; }
#tray-items button { font-size: 1.25rem; border: 0; background: transparent; cursor: pointer; }
.quote-line { display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) minmax(76px, .25fr) auto; gap: 10px; }
.quote-line select, .quote-line input { min-width: 0; width: 100%; }
.quote-line .form-group { min-width: 0; }
.line-remove { align-self: center; font: inherit; font-size: .86rem; background: transparent; border: 0; color: var(--navy-800); text-decoration: underline; cursor: pointer; }
#quote-add-line { margin: 0 0 18px; font-size: .87rem; }
.sr-selection { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 680px) {
  .core-pair { grid-template-columns: 1fr; }
  .quote-tray { width: calc(100% - 16px); bottom: max(6px, env(safe-area-inset-bottom)); padding: 8px; }
  .quote-tray summary, .quote-tray .btn { font-size: .88rem; }
  .quote-tray .btn { padding: 8px 12px; }
  .quote-line { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 8px; }
  .quote-line .form-group:first-child { grid-column: 1 / -1; }
  .quote-line .form-group { margin-bottom: 8px; }
}

