/* J3DLAB - Design System Industriel & Cyber-Tech */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg-main: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #141b2d;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-border: rgba(56, 189, 248, 0.15);
  
  --cyan: #00f0ff;
  --cyan-dim: #0284c7;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  
  --orange: #d0780a;
  --orange-light: #e58712;
  --orange-glow: rgba(208, 120, 10, 0.35);
  
  --green-online: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Blueprint / Tech Accents */
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.tech-tag.orange {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-online);
  box-shadow: 0 0 10px var(--green-online);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-header .tech-tag {
  margin-bottom: 16px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.15rem;
}

/* Glassmorphism Card with Precision Crosshairs */
.tech-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.08);
}

.tech-card:hover::before {
  opacity: 1;
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-logo span.j3d-white {
  color: #ffffff;
}

.brand-logo span.lab-orange {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #00a3ff 100%);
  color: #07090e;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.45);
}

.btn-orange {
  background: linear-gradient(135deg, #ff7a00 0%, #ff4d00 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 122, 0, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-call {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-call:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #ffffff;
}

/* HERO SECTION */
.hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 24px 0 36px 0;
  max-width: 600px;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--cyan);
  flex-shrink: 0;
}

/* 3D INTERACTIVE VIEWER HERO */
.viewer-3d-card {
  position: relative;
  background: linear-gradient(160deg, rgba(14, 19, 31, 0.9) 0%, rgba(7, 9, 14, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.12);
  overflow: hidden;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

.viewer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

.viewer-header-right {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

#canvas-container {
  width: 100%;
  height: 400px;
  position: relative;
  cursor: grab;
}

#canvas-container:active {
  cursor: grabbing;
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-btn-group {
  display: flex;
  gap: 6px;
}

.viewer-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.viewer-btn:hover, .viewer-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.viewer-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* STATS TICKER */
.stats-banner {
  background: rgba(14, 19, 31, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-left: 2px solid var(--cyan);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--orange);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SECTION GEMBA / TERRAIN DIFFERENCIATION */
.gemba-card {
  background: linear-gradient(145deg, #101626 0%, #090c14 100%);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.gemba-card::before {
  content: 'GEMBA';
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--font-heading);
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
}

.gemba-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.gemba-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.gemba-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--orange);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.comparison-box {
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
}

.comparison-row {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.comp-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.comp-badge.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-badge.good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}

a.service-mini-tag { color: var(--cyan); text-decoration: none; }
a.service-mini-tag:hover { text-decoration: underline; }

.service-mini-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

/* MATERIALS & TOLERANCES LAB */
.materials-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.material-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.mat-tab-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.mat-tab-btn:hover, .mat-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  color: var(--text-main);
}

.mat-tab-btn strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.mat-tab-btn span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mat-display-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 32px;
}

.mat-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.spec-cell {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--cyan);
}

.spec-cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-cell strong {
  font-size: 1.1rem;
  color: var(--text-main);
}

/* CALCULATOR / SIMULATOR */
.calc-card {
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.9) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control, select.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.file-dropzone {
  border: 2px dashed rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-dropzone:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan);
}

/* NDA TRUST BADGE */
.nda-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
}

.nda-icon {
  color: #10b981;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.nda-text h4 {
  font-size: 0.95rem;
  color: #34d399;
  margin-bottom: 4px;
}

.nda-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SEO & REGION GEO BAR */
.geo-section {
  background: rgba(10, 14, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0;
}

.geo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.geo-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  background: #040609;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* FLOATING STICKY ACTION BUTTONS */
.sticky-action-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-call-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10b981;
  color: #040609;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
  transition: var(--transition);
}

.float-call-btn:hover {
  transform: scale(1.05);
  background: #34d399;
}

.float-quote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.float-quote-btn:hover {
  background: var(--cyan);
  color: #07090e;
}

/* MODAL DE RÉSERVATION AUDIT */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 9, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--cyan);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px var(--cyan-glow);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 36px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .gemba-split, .calc-grid, .mat-display-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .material-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .sticky-action-dock {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: space-between;
  }
  .float-call-btn, .float-quote-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* ===== Pages « pièce cassée » (pb-*) : tracteur, moto, atelier, maison ===== */
.pb-page { max-width: 1100px; margin: 0 auto; padding: 130px 16px 80px; }
.pb-page h2 { font-family: var(--font-heading); color: var(--text-main); font-size: 1.5rem; line-height: 1.25; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--bg-card-border); }
.pb-page h3 { font-family: var(--font-heading); color: var(--text-main); font-size: 1.12rem; line-height: 1.3; margin-bottom: 6px; }
.pb-page p, .pb-page li { color: var(--text-muted); line-height: 1.7; }
.pb-page p + p { margin-top: 12px; }
.pb-page a:not(.btn) { color: var(--cyan); }
.pb-page img { display: block; max-width: 100%; height: auto; }
.pb-page section, .pb-page > nav { margin-top: 64px; }
.pb-page > section:first-child { margin-top: 0; }

/* 1. Haut de page */
.pb-intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.pb-intro h1 { font-family: var(--font-heading); color: var(--text-main); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 14px 0 16px; }
.pb-intro p { font-size: 1.05rem; }
.pb-phrases { list-style: none; margin: 16px 0; padding: 14px 18px; background: rgba(208, 120, 10, 0.08); border-left: 3px solid var(--orange); border-radius: var(--radius-sm); }
.pb-phrases li { color: var(--text-main); font-style: italic; }
.pb-phrases li + li { margin-top: 4px; }
.pb-intro-photo { margin: 0; border: 1px solid var(--bg-card-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.pb-intro-photo img { width: 100%; }
.pb-intro-photo figcaption, .pb-photos figcaption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-main); }
.pb-intro-photo figcaption { padding: 10px 14px; }

/* 2. Étapes */
.pb-etapes-liste { list-style: none; counter-reset: pb-etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pb-etapes-liste li { counter-increment: pb-etape; position: relative; padding: 46px 18px 20px; background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: var(--radius-md); }
.pb-etapes-liste li::before { content: counter(pb-etape); position: absolute; top: 14px; left: 18px; font-family: var(--font-mono); font-weight: 700; color: var(--cyan); }
.pb-etapes-liste p { font-size: 0.95rem; }

/* 3. Exemples réels */
.pb-exemple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: var(--radius-lg); overflow: hidden; }
.pb-exemple + .pb-exemple { margin-top: 24px; }
.pb-exemple-sans-photo { grid-template-columns: 1fr; }
.pb-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #fff; align-content: start; }
.pb-photos figure { margin: 0; position: relative; }
.pb-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pb-photos figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(7, 9, 14, 0.82); padding: 3px 8px; border-radius: var(--radius-sm); }
.pb-photos.pb-entieres img { object-fit: contain; background: #fff; }
.pb-exemple-texte { padding: 22px 24px 24px; align-self: center; }
.pb-exemple-texte p { font-size: 0.97rem; }
.pb-plus { margin-top: 20px; }

/* 4. Matière */
.pb-matiere-liste { margin: 14px 0 0 20px; }
.pb-matiere-liste li + li { margin-top: 8px; }
.pb-matiere-liste strong { color: var(--text-main); }

/* 5. Questions */
.pb-question { padding: 18px 0; border-bottom: 1px solid var(--bg-card-border); }
.pb-question:last-child { border-bottom: none; }

/* 6. Appel final */
.pb-appel { padding: 32px 24px; text-align: center; background: var(--bg-surface); border: 1px solid var(--bg-card-border); border-radius: var(--radius-lg); }
.pb-appel h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 10px; }
.pb-appel-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 14px; }
.pb-appel .btn { white-space: normal; }
.pb-appel-mail { font-size: 0.92rem; }

/* 7. Pages voisines */
.pb-voisines ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pb-voisines li a { display: inline-block; padding: 10px 16px; border: 1px solid var(--bg-card-border); border-radius: var(--radius-full); background: var(--bg-card); text-decoration: none; }
.pb-voisines li a:hover { border-color: var(--cyan); }

/* Pied de page */
.pb-foot { text-align: center; padding: 32px 16px; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--bg-card-border); }
.pb-foot-liens { margin-top: 10px; }
.pb-foot a { color: var(--text-muted); margin: 0 8px; display: inline-block; }

/* Téléphone : l'en-tête garde le bouton d'appel, le bouton « Demander un prix » est dans la page */
@media (max-width: 480px) {
  .pb-entete .nav-actions .btn-cyan { display: none; }
}

@media (max-width: 800px) {
  .pb-intro, .pb-exemple { grid-template-columns: 1fr; }
  .pb-page section, .pb-page > nav { margin-top: 48px; }
}

/* Photos très larges (grilles de moto) et photo seule */
.pb-exemple-large { grid-template-columns: 1fr; }
.pb-photos.pb-larges { align-items: center; }
.pb-photos.pb-larges img { aspect-ratio: auto; object-fit: contain; }
.pb-photos.pb-une { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .pb-photos.pb-larges { grid-template-columns: 1fr; }
}
.pb-matiere-liste + p { margin-top: 12px; }

/* Téléphone : rien ne doit dépasser sur le côté de l'accueil (17/11) */
@media (max-width: 1024px) {
  .hero-grid, .mat-display-card, .gemba-split { grid-template-columns: minmax(0, 1fr); }
}
.viewer-controls { flex-wrap: wrap; gap: 10px; }
.mode-btn-group { flex-wrap: wrap; }
.hero-trust-row { flex-wrap: wrap; gap: 12px 24px; }
.footer-bottom { flex-wrap: wrap; gap: 14px 20px; }
.footer-bottom > div { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 480px) {
  .hero-ctas .btn { white-space: normal; text-align: center; }
  .mat-display-card { padding: 20px; }
  .tech-tag { white-space: normal; }
}
@media (max-width: 360px) {
  .btn-call { padding: 10px 12px; gap: 6px; font-size: 0.85rem; }
}
