/* ============================================================
   La Danse de l'Ombre — Boutique en ligne
   Design: dark romantasy avec accents dorés
   ============================================================ */

:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #111118;
  --color-bg-card: #16161f;
  --color-surface: #1c1c28;
  --color-gold: #c9a84c;
  --color-gold-light: #e4cc7a;
  --color-gold-dark: #a07d2e;
  --color-text: #e8e4de;
  --color-text-muted: #9a9490;
  --color-text-dim: #6b6660;
  --color-accent: #8b3a4a;
  --color-accent-light: #b04e62;
  --color-border: #2a2a35;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;

  --container-max: 1100px;
  --section-pad: clamp(4rem, 10vw, 8rem);
  --radius: 8px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-gold-light);
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.section-title--light {
  color: var(--color-text);
}

/* ======================== BUTTONS ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-bg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-ghost:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

/* ======================== NAV ======================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.nav-logo:hover {
  color: var(--color-gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

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

.nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  color: var(--color-gold) !important;
}

.nav-cta:hover {
  background: rgba(201, 168, 76, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  transition: all 0.3s;
}

/* ======================== HERO ======================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139, 58, 74, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    var(--color-bg);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-genre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.4s forwards;
}

.hero-title-line1 {
  display: block;
  background: linear-gradient(135deg, var(--color-text), var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.4s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

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

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================== SYNOPSIS ======================== */

.synopsis {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.synopsis-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-3d {
  perspective: 800px;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 260px;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    8px 8px 30px rgba(0, 0, 0, 0.6),
    2px 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: rotateY(-8deg);
  transition: transform 0.5s var(--ease-out);
  overflow: hidden;
}

.book-cover:hover {
  transform: rotateY(0deg);
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 12px 12px 4px;
}

.synopsis-content p {
  margin-bottom: 1.2rem;
  color: var(--color-text);
  font-weight: 300;
  font-size: 1.05rem;
}

.synopsis-content strong {
  color: var(--color-gold);
  font-weight: 600;
}

.synopsis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tag {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: rgba(201, 168, 76, 0.08);
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

/* ======================== EXTRAIT ======================== */

.extrait {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 58, 74, 0.1) 0%, transparent 50%),
    var(--color-bg);
}

.extrait-card {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}

.extrait-ornament {
  position: absolute;
  top: -0.2rem;
  left: 2rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-gold);
  opacity: 0.2;
  line-height: 1;
}

.extrait-text p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.extrait-text p:last-child {
  margin-bottom: 0;
}

.extrait-source {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  text-align: right;
}

/* ======================== DETAILS ======================== */

.details {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.detail-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.detail-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  color: var(--color-gold);
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ======================== AUTEUR ======================== */

.auteur {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.auteur-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
}

.auteur-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  object-fit: cover;
  object-position: center top;
}

.auteur-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.auteur-text p {
  color: var(--color-text-muted);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ======================== ACHETER ======================== */

.acheter {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    var(--color-bg-alt);
  text-align: center;
}

.acheter-intro {
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 500px;
  margin: -0.5rem auto 3rem;
}

.acheter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.price-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: var(--color-gold);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

.price-card--featured:hover {
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.15);
}

.price-card-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.price-card--featured .price-card-badge {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.price-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

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

.price-card-stock {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-light);
  background: rgba(176, 78, 98, 0.12);
  border: 1px solid rgba(176, 78, 98, 0.25);
  border-radius: 50px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.8rem;
}

.modal-stock {
  background: rgba(176, 78, 98, 0.1);
  border: 1px solid rgba(176, 78, 98, 0.2);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.price-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.price-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
}

.price-card-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 1.5rem;
}

.price-currency {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-top: 0.3rem;
}

.price-amount {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.price-cents {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.price-card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.price-card-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-left: 1.5rem;
  position: relative;
}

.price-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

.price-card-features li:last-child {
  border-bottom: none;
}

.btn-buy {
  width: 100%;
  margin-top: auto;
}

/* ======================== NEWSLETTER ======================== */

.newsletter {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.newsletter-inner {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.newsletter-inner > p {
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.newsletter-form input::placeholder {
  color: var(--color-text-dim);
}

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

.newsletter-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 0.8rem;
}

/* ======================== FOOTER ======================== */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold);
}

.footer-brand p {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  letter-spacing: 0.04em;
}

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

/* ======================== MODAL ======================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, background 0.3s;
}

.modal-close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.modal-content .modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content .modal-form input {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

.modal-success {
  text-align: center;
  padding: 1rem 0;
}

.modal-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-success h3 {
  margin-bottom: 0.8rem;
}

/* ======================== RESPONSIVE ======================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: flex;
  }

  .synopsis-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .synopsis-book {
    display: flex;
    justify-content: center;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .auteur-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .auteur-img {
    margin: 0 auto;
  }

  .acheter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .extrait-card {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .acheter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ======================== CHECKOUT ======================== */

.checkout {
  padding-top: 100px;
  padding-bottom: var(--section-pad);
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 58, 74, 0.08) 0%, transparent 50%),
    var(--color-bg);
}

.checkout-header {
  text-align: center;
  margin-bottom: 3rem;
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--color-border);
  color: var(--color-text-dim);
  background: var(--color-bg-card);
  transition: all 0.3s var(--ease-out);
}

.checkout-step.active .step-number {
  border-color: var(--color-gold);
  color: var(--color-bg);
  background: var(--color-gold);
}

.checkout-step.done .step-number {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.15);
}

.step-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color 0.3s;
}

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

.checkout-step.done .step-label {
  color: var(--color-text-muted);
}

.checkout-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 0.5rem;
  margin-bottom: 1.2rem;
  transition: background 0.3s;
}

.checkout-step-line.done {
  background: var(--color-gold);
}

/* ── Checkout sections ── */

.checkout-section {
  display: none;
  max-width: 700px;
  margin: 0 auto;
}

.checkout-section.active {
  display: block;
  animation: fade-up 0.5s var(--ease-out);
}

.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.checkout-section-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Order recap ── */

.order-recap {
  display: flex;
  gap: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.recap-img {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.recap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.recap-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recap-details h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.recap-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.recap-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.recap-price-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recap-price-amount {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* ── Checkout form ── */

.checkout-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9490' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input::placeholder {
  color: var(--color-text-dim);
}

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

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--color-accent);
}

/* ── Shipping options ── */

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shipping-option {
  cursor: pointer;
}

.shipping-option input[type="radio"] {
  display: none;
}

.shipping-option-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
}

.shipping-option input:checked + .shipping-option-content {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.05);
}

.shipping-option:hover .shipping-option-content {
  border-color: rgba(201, 168, 76, 0.4);
}

.shipping-option-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-gold);
}

.shipping-option-text {
  flex: 1;
}

.shipping-option-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.shipping-option-text span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.shipping-option-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  flex-shrink: 0;
}

.shipping-digital-notice {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  color: var(--color-gold);
}

.shipping-digital-notice h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin: 1rem 0 0.5rem;
}

.shipping-digital-notice p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.mr-widget-placeholder,
.mr-widget-info {
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ── Payment ── */

.payment-recap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.payment-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.payment-recap-row:last-child {
  border-bottom: none;
}

.payment-recap-total {
  padding-top: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.payment-recap-total span:last-child {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-gold);
}

.stripe-placeholder {
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.stripe-placeholder-content {
  color: var(--color-text-muted);
}

.stripe-placeholder-content svg {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.stripe-placeholder-content p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.stripe-placeholder-sub {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.btn-pay {
  width: 100%;
  font-size: 1.05rem;
  padding: 1rem;
}

.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-secure-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 1rem;
}

/* ── Checkout actions ── */

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── Checkout responsive ── */

@media (max-width: 768px) {
  .order-recap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .recap-img {
    width: 160px;
  }

  .recap-price {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    gap: 0;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .checkout-actions {
    flex-direction: column-reverse;
  }
}

/* ── Stripe redirect notice ── */

.stripe-redirect-notice {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  color: var(--color-gold);
}

.stripe-redirect-notice p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.checkout-error {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(176, 78, 98, 0.12);
  border: 1px solid rgba(176, 78, 98, 0.3);
  border-radius: var(--radius);
  color: var(--color-accent-light);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Code promo ── */

.promo-section {
  margin-bottom: 1.25rem;
}

.promo-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.promo-input {
  flex: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
}

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

.promo-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-dim);
}

.promo-btn {
  white-space: nowrap;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.promo-feedback {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
}

.promo-success {
  color: #7acc80;
  background: rgba(100, 200, 100, 0.08);
  border: 1px solid rgba(100, 200, 100, 0.2);
}

.promo-error {
  color: var(--color-accent-light);
  background: rgba(176, 78, 98, 0.08);
  border: 1px solid rgba(176, 78, 98, 0.2);
}

.promo-discount-row {
  font-size: 0.85rem;
  color: var(--color-gold) !important;
  border-top: 1px solid var(--color-border);
  padding-top: 0.5rem !important;
  margin-top: -0.2rem;
}

/* ── Mondial Relay widget overrides ── */

#mondial-relay-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
  min-height: 400px;
}

.mr-selected-info {
  padding: 0.8rem 1.2rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Success page ── */

.success-page {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}

.success-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-message {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.success-details {
  margin-bottom: 2.5rem;
}

.success-actions {
  margin-top: 2rem;
}
