/*
 * SPN Premium Design System
 * Mobile-first, High Contrast, Accessibility AA
 */
:root {
  --bg-deep: #060912;
  --bg-surface: #0d1220;
  --bg-accent: #111827;
  --gold-primary: #C8973A;
  --gold-light: #e0ae52;
  --gold-dim: rgba(200, 151, 58, 0.12);
  --text-main: #f0e8d8;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --border-gold: rgba(200, 151, 58, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--white);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 1rem; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background-color: var(--bg-surface); }

/* Hero Section */
.hero-premium {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(circle at center, rgba(200,151,58,0.1) 0%, transparent 70%);
  position: relative;
}

.hero-premium h1 span { color: var(--gold-primary); }

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--gold-dim);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-price {
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Call to Actions */
.btn-premium {
  display: inline-block;
  background: var(--gold-primary);
  color: var(--bg-deep);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-premium:hover {
  background: var(--gold-light);
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(200,151,58,0.3);
}

/* Multi-step Form */
.configurator-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-gold);
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.step {
  z-index: 2;
  background: var(--bg-deep);
  border: 2px solid var(--border-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-dim);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-deep);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 8px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .configurator-container { padding: 1.5rem; }
}

/* ==========================================================
 * t795u — Refonte visuelle premium (photos immersives, cartes illustrées, CTA visibles)
 * ========================================================== */
.pv-page { padding-bottom: 0; }
.pv-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2rem);
  background: rgba(6, 9, 18, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
}
.pv-brand { font-weight: 800; color: var(--gold-primary); text-decoration: none; letter-spacing: .04em; }
.pv-nav-actions { display: flex; align-items: center; gap: 1rem; }
.pv-nav-link { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.pv-nav-cta {
  background: var(--gold-primary); color: var(--bg-deep); font-weight: 800; font-size: .85rem;
  text-decoration: none; padding: .55rem 1rem; border-radius: 999px; white-space: nowrap;
}
.pv-nav-cta:hover { background: var(--gold-light); }

/* Hero immersif */
.pv-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 860px); display: flex; align-items: flex-end; justify-content: center;
  padding: 7rem 0 3.5rem; text-align: left; background: var(--bg-deep);
}
.pv-hero-media, .pv-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-hero-media img { object-fit: cover; object-position: center; z-index: -2; }
.pv-hero-media { z-index: -2; }
.pv-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,9,18,.25) 0%, rgba(6,9,18,.55) 45%, rgba(6,9,18,.94) 100%);
}
.pv-hero-inner { position: relative; }
.pv-hero h1 { font-size: clamp(2rem, 6.4vw, 3.6rem); max-width: 18ch; margin-bottom: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.pv-hero h1 span { color: var(--gold-primary); }
.pv-kicker {
  display: inline-block; margin-bottom: 1rem; padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--border-gold); background: rgba(6,9,18,.55);
  color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pv-lead { font-size: clamp(1rem, 2.4vw, 1.2rem); color: #e5ded0; max-width: 60ch; margin-bottom: 2rem; }
.pv-hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.pv-hero--compact { min-height: clamp(320px, 46vh, 460px); padding: 6rem 0 4.5rem; align-items: flex-end; }
.pv-hero--compact h1 { max-width: 22ch; font-size: clamp(1.8rem, 5.4vw, 3rem); }
.pv-hero--compact .pv-lead { margin-bottom: 0; }

.pv-btn-ghost {
  display: inline-block; padding: 1rem 1.6rem; border-radius: 8px; font-weight: 700; text-decoration: none;
  color: var(--white); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06);
  transition: var(--transition-smooth); text-align: center;
}
.pv-btn-ghost:hover { border-color: var(--gold-primary); color: var(--gold-light); }

/* Badges de provenance (honnêteté des visuels) */
.pv-badge {
  position: absolute; left: .6rem; bottom: .6rem; z-index: 2;
  font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: #e8e2d6;
  background: rgba(6,9,18,.68); padding: .2rem .5rem; border-radius: 4px;
}
.pv-badge--reel { color: var(--gold-light); }
.pv-badge--hero { left: auto; right: .8rem; bottom: auto; top: 4.6rem; }
.pv-hero--compact .pv-badge--hero { top: .8rem; bottom: auto; }

/* Bandeau "en bref" */
.pv-strip {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
  margin-top: -1.5rem; position: relative; z-index: 3;
}
.pv-strip li {
  background: var(--bg-surface); border: 1px solid var(--border-gold); border-radius: 12px;
  padding: 1rem 1.2rem; color: var(--text-muted); font-size: .92rem;
}
.pv-strip strong { display: block; color: var(--white); font-size: 1rem; }

.pv-h2 { text-align: center; }
.pv-sub { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 2.5rem; }
.pv-center { text-align: center; margin-top: 2rem; }

/* Cartes illustrées */
.pv-grid { margin-top: 0; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.pv-card { padding: 0; }
.pv-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-surface); }
.pv-card-media .pv-pic, .pv-card-media img { display: block; width: 100%; height: 100%; }
.pv-card-media img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pv-card:hover .pv-card-media img { transform: scale(1.05); }
.pv-chip {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  background: var(--gold-primary); color: var(--bg-deep); font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em; padding: .3rem .6rem; border-radius: 999px;
}
.pv-card-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.pv-card-body h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.pv-card .service-desc { font-size: .95rem; margin-bottom: 1rem; }
.pv-card .service-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.pv-card .service-price { font-size: .95rem; margin-bottom: 1.25rem; }
.pv-card .btn-premium { width: 100%; }
.pv-card-ctas { display: grid; gap: .6rem; margin-top: auto; }

/* Photos réelles SPN */
.pv-real figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-accent); }
.pv-real img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-real figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem;
  font-size: .78rem; color: var(--gold-light); font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(6,9,18,.85));
}
.pv-band { aspect-ratio: 16 / 9; margin-bottom: 1rem !important; }
.pv-real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pv-real-grid figure { aspect-ratio: 4 / 5; }

/* Étapes */
.pv-steps-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.pv-steps-list li { background: var(--bg-accent); border: 1px solid var(--border-gold); border-radius: 14px; padding: 1.5rem; }
.pv-steps-list span {
  display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold-dim); color: var(--gold-primary); font-weight: 800; margin-bottom: .8rem;
}
.pv-steps-list h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pv-steps-list p { color: var(--text-muted); font-size: .92rem; }

/* CTA final */
.pv-final {
  text-align: center; padding: 4.5rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(200,151,58,.22), transparent 65%), var(--bg-surface);
  border-top: 1px solid var(--border-gold);
}
.pv-final p { color: var(--text-muted); margin: .4rem 0 1.8rem; }

/* Barre CTA collante (mobile) */
.pv-sticky { display: none; }
@media (max-width: 767px) {
  .pv-sticky {
    display: grid; grid-template-columns: 1fr auto; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
    margin-bottom: var(--cmp-h, 0px);
    background: rgba(6,9,18,.94); border-top: 1px solid var(--border-gold);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .pv-sticky .btn-premium, .pv-sticky .pv-btn-ghost { padding: .8rem 1rem; font-size: .9rem; }
  .pv-page:has(.pv-sticky) footer { padding-bottom: 6rem !important; }
  .pv-page:has(.pv-sticky) #knzo-chat-btn { bottom: calc(92px + var(--cmp-h, 0px)) !important; }
  .pv-nav-link:not(:only-child) { display: none; }
  .pv-hero { min-height: 82vh; padding: 5.5rem 0 2.5rem; }
  .pv-hero-ctas .btn-premium, .pv-hero-ctas .pv-btn-ghost { flex: 1 1 100%; }
  .pv-strip { margin-top: 1.25rem; }
  .pv-real-grid { grid-template-columns: repeat(2, 1fr); }
  .pv-hide-sm { display: none; }
  .pv-hero--compact { min-height: 0; padding: 3rem 0 3.75rem; }
  .pv-hero--compact .pv-kicker { font-size: .7rem; }
}

/* Configurateur sous le hero compact */
.pv-config-wrap { position: relative; z-index: 3; margin-top: -2.5rem; padding-bottom: 4rem; }
.pv-config-wrap .configurator-container { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.pv-config-wrap .configurator-container h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.pv-reassure { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; margin-top: 1.5rem; color: var(--text-muted); font-size: .88rem; }
.pv-reassure li::before { content: '✓ '; color: var(--gold-primary); font-weight: 800; }

/* Apparition douce (uniquement si JS actif et mouvement autorisé) */
.pv-js .pv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.pv-js .pv-reveal.pv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pv-js .pv-reveal { opacity: 1; transform: none; }
  .pv-card:hover .pv-card-media img { transform: none; }
}
