* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #00d4ff;
  --bg-dark: #020617;
  --text-light: #e5e7eb;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  background: radial-gradient(circle at 0% 0%, #0f172a 0, #020617 55%);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ───────────────── TOP BAR / HEADER ───────────────── */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: relative;
  z-index: 10;
}

/* Pastille KUCK */
.brand-pill {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  max-width: 460px;
}

/* Logo KUCK */
.top-bar .brand-pill > img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

/* Bloc texte (KUCK + sous-titre) */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 5px;
}

.qr-guidance {
  margin-top: 16px;
  text-align: center;
}

.guidance-text {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  display: inline-block;
  transition: all 0.2s ease;
}

.guidance-text:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #cbd5f5;
}

/* Badge "Demo" */
.badge-beta {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
}

/* ───────────────── LAYOUT PRINCIPAL ───────────────── */

.main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 0 40px 40px;
  align-items: center;
}

.copy-block {
  max-width: 520px;
  position: relative;
  z-index: 5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #93c5fd;
  margin-bottom: 14px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

h1 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  margin-bottom: 16px;
}

h1 span {
  color: #00d4ff;
}

.subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 22px;
}

.points {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cbd5f5;
}

.point-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/*
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-main {
  background: var(--primary);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-main:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.75);
}

.cta-main span {
  font-size: 18px;
}

.cta-note {
  font-size: 12px;
  color: #9ca3af;
}
*/

/* ───────────────── CARTE VIEWER ───────────────── */

.viewer-card {
  position: relative;
  border-radius: 26px;
  padding: 14px;
  background: radial-gradient(circle at top left, #1d293b 0, #020617 45%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  min-height: 320px;
}

.viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.viewer-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
}

.viewer-meta {
  font-size: 11px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.viewer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.viewer-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

model-viewer {
  width: 100%;
  height: min(60vh, 480px); /* ↓ un peu plus petit qu'avant */
  border-radius: 20px;
  overflow: hidden;
  background: #020617;

  /* 👉 Remonter légèrement le modèle 3D */
  --model-viewer-ui-hover-highlight: none;
  object-position: 50% 40%; /* 40% = remonte le modèle */
}

.viewer-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
}

.viewer-footer-legend {
  display: flex;
  gap: 8px;
  align-items: center;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-dot.blue {
  background: #60a5fa;
}

.legend-dot.green {
  background: #22c55e;
}

/* Bouton AR personnalisé */
.ar-button {
  background: #00d4ff;
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Effet hover */
.ar-button:hover {
  transform: translateX(-50%) translateY(-1px);
  background: #00b8e6;
  box-shadow: 0 18px 44px rgba(0, 212, 255, 0.88);
}

/* ───────────────── BOUTON CTA PRINCIPAL ───────────────── */

.cta-main {
  background: var(--primary);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-main:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.75);
}

.cta-main span {
  font-size: 18px;
}

/* ───────────────── QR ACTIONS ───────────────── */

.qr-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 900px) {
  .qr-actions {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

.cta-secondary {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
  backdrop-filter: blur(8px);
}

.cta-secondary:hover {
  background: rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* ───────────────── RESPONSIVE ───────────────── */

@media (max-width: 900px) {
  .top-bar {
    padding: 14px 18px;
    justify-content: center;
  }

  .brand-pill {
    max-width: 380px;
    padding: 8px 16px;
  }

  .top-bar .brand-pill > img {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .badge-beta {
    font-size: 10px;
    padding: 3px 8px;
  }

  .qr-actions {
    margin-top: 20px;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 18px 26px;
    gap: 20px;
  }

  .viewer-card {
    order: -1; /* viewer au-dessus du texte en mobile */
  }

  model-viewer {
    height: 340px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
