/* ===== Design System ===== */
:root {
  /* Parchment-inspired palette */
  --parchment: #f5f0e6;
  --parchment-light: #faf8f3;
  --parchment-dark: #e8e0d0;
  --ink: #1a1612;
  --ink-light: #3d3632;
  --ink-faded: #6b635a;

  /* Accent colors - futuristic */
  --accent: #c9a962;
  --accent-glow: rgba(201, 169, 98, 0.4);
  --accent-dark: #a68b4b;

  /* Functional */
  --success: #5d8c61;
  --error: #a65353;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Typography */
  --font-main: "Space Grotesk", sans-serif;
  --font-accent: "Crimson Pro", serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

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

button {
  font-family: inherit;
  cursor: none;
}

@media (max-width: 768px) {
  button {
    cursor: pointer;
  }
}

/* ===== Custom Cursor ===== */
.cursor,
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor {
  width: 40px;
  height: 40px;
  border: 1px solid var(--parchment-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--ease-out),
    height 0.3s var(--ease-out),
    border-color 0.3s;
}

.cursor.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--parchment-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to bottom, var(--parchment) 0%, transparent 100%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--parchment);
  font-size: 1.1rem;
  font-weight: 700;
}

.logo-text {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.lang-toggle {
  min-width: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(26, 22, 18, 0.2);
  background: rgba(250, 248, 243, 0.85);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
}

.lang-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--parchment);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-faded);
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.nav-packs-active::after {
  width: 100%;
}

.nav-link.nav-packs-active {
  color: var(--ink);
}

.nav-cta {
  padding: var(--space-xs) var(--space-sm);
  background: var(--ink);
  color: var(--parchment) !important;
  transition:
    background 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--ink-light);
  transform: translateY(-2px);
}

/* ===== Hamburger Menu & Mobile Nav ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  display: none; /* hidden on desktop */
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
  padding: 4px 12px;
  font-family: var(--font-main);
  transition: color 0.3s;
}

@media (max-width: 768px) {
  .header {
    padding: var(--space-sm);
  }

  .nav-right {
    gap: var(--space-sm);
  }

  .lang-toggle {
    min-width: 48px;
    padding: 7px 9px;
    background: rgba(250, 248, 243, 0.95);
    border-color: rgba(26, 22, 18, 0.3);
  }

  .nav-hamburger {
    display: flex;
  }

  /* Overlay Menu */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--parchment);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 4000;
    padding: var(--space-2xl) var(--space-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-close {
    display: block;
  }

  .nav-links .nav-link {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  
  .nav-links .nav-link::after {
    display: none; /* Pas de soulignement au hover sur mobile */
  }

  .nav-links .nav-cta {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-xl);
    background: var(--ink);
    color: var(--parchment) !important;
    font-size: 1.1rem;
  }
}

/* On cache le texte du logo sur les très petits écrans pour faire de la place aux boutons */
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
}

/* ===== Section Indicator ===== */
.section-indicator {
  position: fixed;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink-faded);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.indicator-dot.active {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.3);
}

.indicator-dot:hover {
  border-color: var(--ink);
}

@media (max-width: 768px) {
  .section-indicator {
    right: var(--space-sm);
  }
}

/* ===== Main Container ===== */
.main-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .main-container {
    scroll-snap-type: none;
  }
  .section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}

.section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-xl) var(--space-lg);
}

/* ===== Hero Section ===== */
.section-hero {
  background: var(--parchment);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1400px;
  width: 100%;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
}

.title-accent {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-light);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--ink-faded);
  max-width: 480px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--ink);
  color: var(--parchment);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: var(--space-sm);
  width: fit-content;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.4s var(--ease-out);
  z-index: 0;
}

.hero-cta span,
.hero-cta svg {
  position: relative;
  z-index: 1;
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover::before {
  left: 0;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-cta:hover {
  color: var(--ink);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbit-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0.15;
}

.orbit-1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: rotate 30s linear infinite;
}

.orbit-2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation: rotate 20s linear infinite reverse;
}

.orbit-3 {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation: rotate 15s linear infinite;
}

.core {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.p1 {
  top: 0;
  left: 50%;
  animation: orbit1 30s linear infinite;
}

.p2 {
  top: 15%;
  left: 85%;
  animation: orbit2 20s linear infinite;
}

.p3 {
  top: 70%;
  left: 20%;
  animation: orbit3 15s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit1 {
  from {
    transform: rotate(0deg) translateX(200px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(200px) rotate(-360deg);
  }
}

@keyframes orbit2 {
  from {
    transform: rotate(0deg) translateX(140px) rotate(0deg);
  }
  to {
    transform: rotate(-360deg) translateX(140px) rotate(360deg);
  }
}

@keyframes orbit3 {
  from {
    transform: rotate(0deg) translateX(80px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(80px) rotate(-360deg);
  }
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--ink-faded);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-faded), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-visual {
    display: none;
  }
}

/* ===== Services Section ===== */
.section-services {
  background: var(--ink);
  color: var(--parchment);
}

.services-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--ink-light);
}

.service-item {
  background: var(--ink);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition: all 0.4s var(--ease-out);
  cursor: default;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease-out);
  z-index: 0;
}

.service-item:hover::before {
  height: 100%;
}

.service-item:hover {
  color: var(--ink);
}

.service-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.5;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s;
}

.service-item:hover .service-number {
  opacity: 1;
}

.service-item h3 {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--ink-faded);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  opacity: 0.8;
  transition:
    color 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out);
  margin-top: auto;
}

.service-item:hover .service-desc {
  color: var(--ink);
  opacity: 1;
}

.services-statement {
  text-align: center;
  position: relative;
}

.statement-text {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--parchment);
  opacity: 0.9;
}

.statement-text em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
}

.statement-line {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-md) auto 0;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-item {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Avantages Section ===== */
.section-avantages {
  background: var(--parchment-light);
}

.avantages-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.avantage-card {
  position: relative;
  background: var(--parchment);
  border: 1px solid var(--parchment-dark);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.avantage-card:hover .card-glow {
  opacity: 1;
}

.avantage-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
}

.card-icon {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 1;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--ink);
  transition: stroke 0.3s var(--ease-out);
}

.avantage-card:hover .card-icon svg {
  stroke: var(--accent-dark);
}

.avantage-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.avantage-card p {
  font-size: 0.9rem;
  color: var(--ink-faded);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .avantages-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .avantages-content {
    grid-template-columns: 1fr;
  }

  .avantage-card {
    padding: var(--space-md);
  }
}

/* ===== Devis Section ===== */
.section-devis {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
  color: var(--parchment);
}

.devis-container {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.devis-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 33.33%;
  transition: width 0.5s var(--ease-out);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faded);
  transition: color 0.3s;
}

.step-label.active {
  color: var(--accent);
}

/* Devis Steps */
.devis-steps {
  position: relative;
  min-height: 300px;
}

.devis-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: all 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.devis-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: relative;
}

.devis-step.exit {
  transform: translateX(-60px);
}

.step-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.step-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.input-wrapper {
  position: relative;
  margin-top: var(--space-md);
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-main);
  font-size: 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--parchment);
  outline: none;
  transition: border-color 0.3s;
}

.input-wrapper textarea {
  min-height: 120px;
  resize: none;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: var(--ink-faded);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--accent);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.input-wrapper input:focus ~ .input-line,
.input-wrapper textarea:focus ~ .input-line {
  width: 100%;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.step-next,
.step-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s var(--ease-out);
}

.step-next:hover,
.step-submit:hover {
  background: var(--parchment);
  transform: translateY(-2px);
}

.step-next svg,
.step-submit svg,
.step-back svg {
  width: 18px;
  height: 18px;
}

.step-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: transparent;
  color: var(--parchment);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s var(--ease-out);
}

.step-back:hover {
  border-color: var(--parchment);
}

/* Success State */
.devis-success {
  text-align: center;
  align-items: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.5s var(--ease-out);
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
}

.success-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.success-text span {
  color: var(--accent);
  font-weight: 600;
}

.step-reset {
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  color: var(--parchment);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.step-reset:hover {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--parchment);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* AI Badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.ai-icon {
  font-size: 1rem;
}

/* AI Loading */
.ai-loading {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.ai-loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.ai-icon-large {
  font-size: 2.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-message {
  color: var(--ink-faded);
  font-size: 1rem;
  text-align: center;
}

.section-devis .loading-message {
  color: rgba(255, 255, 255, 0.6);
}

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

/* Estimate Result */
.estimate-result {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--accent);
  margin-bottom: var(--space-md);
}

.estimate-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.estimate-price {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: var(--space-sm);
}

.estimate-summary {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
}

.estimate-warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--accent);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.estimate-warning svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--accent);
}

/* Skip Button */
.step-skip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.85rem;
  border: none;
  transition: all 0.3s var(--ease-out);
}

.step-skip:hover {
  color: var(--parchment);
}

/* Success Estimate Display */
.success-estimate {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(201, 169, 98, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.success-estimate:empty {
  display: none;
}

/* ===== Footer ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  font-size: 2rem;
  color: var(--ink-faded);
  pointer-events: none;
  z-index: 100;
}

.footer a {
  pointer-events: auto;
  transition: color 0.3s;
}

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

@media (max-width: 768px) {
  .footer {
    padding: var(--space-sm);
    font-size: 0.7rem;
  }
}

/* ===== Utilities ===== */
.shake {
  animation: shake 0.5s var(--ease-out);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(-10px);
  }
  80% {
    transform: translateX(10px);
  }
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Selection ===== */
::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ===== Scrollbar ===== */
.main-container::-webkit-scrollbar {
  width: 0;
}