/* Boidin Audition — landing PLV
   Une seule vue : produit + devis. Palette bleu/blanc inspirée de Krys. */

:root {
  --blue: #0069b4;
  --blue-dark: #00477e;
  --blue-light: #eef5fb;
  --blue-border: #d5e5f2;
  --ink: #16283a;
  --ink-soft: #52667a;
  --line: #dde6ed;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(9, 42, 71, 0.05), 0 12px 32px rgba(9, 42, 71, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--blue-light), transparent 70%),
    radial-gradient(900px 420px at -10% 100%, var(--blue-light), transparent 65%),
    var(--bg);
  line-height: 1.55;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Héro : tout tient dans le premier écran ---- */
.hero { padding: 28px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: start;
}

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.lead {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0 0 14px;
}

/* Points clés */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
}

.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--blue-border);
  border-radius: 999px;
  padding: 5px 12px;
}

.chip-strong {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---- Visuel produit : aperçu 3D + photos ---- */
.stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 350px;
  width: 100%;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fdfeff, var(--blue-light));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-3d,
.stage-3d canvas,
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-3d canvas { display: block; touch-action: none; cursor: grab; }
.stage-3d canvas:active { cursor: grabbing; }

#viewer-fallback,
.stage-photo {
  object-fit: contain;
  padding: 12px;
}

.stage-photo { background: #fff; object-fit: cover; padding: 0; }

.viewer-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 8px 2px 10px;
  min-height: 1.2em;
}

.thumbs {
  display: flex;
  gap: 8px;
}

.thumb {
  width: 58px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-3d span {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.thumb:hover { border-color: var(--blue); }

.thumb.is-active {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* ---- Carte devis / commande ---- */
.order-card {
  background: #fff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.order-card h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--blue-dark);
}

.order-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.form-success {
  background: #e8f6ec;
  border: 1px solid #bfe3ca;
  color: #1d6b38;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin: 0 0 16px;
}

.form-row { margin-bottom: 12px; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.label-soft { font-weight: 400; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
}

textarea { resize: vertical; }

/* Estimation intégrée à la carte */
.cost-sim {
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
}

.cost-lines { margin: 0; }

.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  font-size: 0.88rem;
}

.cost-line dt { color: var(--ink-soft); }
.cost-line dd { margin: 0; font-variant-numeric: tabular-nums; }

.cost-subtotal {
  border-top: 1px solid var(--blue-border);
  margin-top: 4px;
  padding-top: 6px;
  font-weight: 600;
}

.cost-subtotal dt { color: var(--ink); }

.cost-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-dark);
}

.cost-total dt { color: var(--blue-dark); }

.sim-hint {
  font-size: 0.78rem;
  color: var(--blue-dark);
  margin: 8px 0 0;
  font-weight: 600;
}

.sim-hint.is-free { color: #1d7a3e; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-full { width: 100%; }

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
  text-align: center;
}

.form-note a { color: var(--blue); }

/* ---- Infos pratiques compactes ---- */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 0 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.facts strong {
  display: block;
  color: var(--blue-dark);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

/* ---- Pied de page ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--blue); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .stage { max-height: 300px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .form-row-split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
}
