/* =========================================================
   Trouvez Votre Parfum — Design premium, luxe, sobre
   ========================================================= */

:root {
  --ivory: #fbf7f0;
  --off-white: #fffaf3;
  --beige: #efe7da;
  --black: #151515;
  --gold: #b8955b;
  --gray: #6f6a64;
  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --radius: 18px;
  --shadow-soft: 0 10px 40px rgba(21, 21, 21, 0.06);
  --shadow-card: 0 20px 60px rgba(21, 21, 21, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1.2rem;
}

/* ---------- Boutons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--off-white);
}
.btn-primary:hover { background: var(--gold); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover { background: var(--black); color: var(--off-white); }
.btn-secondary.small, .btn-primary.small { padding: 0.6rem 1.4rem; font-size: 0.82rem; }

/* ---------- Page d'accueil ---------- */
.home-screen {
  position: relative;
  z-index: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 6vw 6vh;
  overflow: hidden;
}

.home-inner { position: relative; z-index: 1; max-width: 780px; text-align: center; margin: 0 auto; }

.home-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 112px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(184, 149, 91, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 0 1.1rem;
}

.home-topbar-logo {
  display: block;
  width: 141px;
  height: 100px;
  object-fit: contain;
}

.home-topbar-link {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(21, 21, 21, 0.7);
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.home-topbar-link:hover {
  color: var(--black);
  border-color: rgba(184, 149, 91, 0.55);
}

/* ---------- Vidéo de fond immersive (page d'accueil) ---------- */
.home-video-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--black);
}

.home-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.04);
  object-fit: cover;
  object-position: center center;
}

.home-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.55));
}

.home-video-bg ~ .home-inner .eyebrow { color: var(--gold); }
.home-video-bg ~ .home-inner .home-title { color: var(--off-white); }
.home-video-bg ~ .home-inner .home-subtitle { color: rgba(255, 250, 243, 0.82); }

.home-video-bg ~ .home-inner .choice-card {
  background: rgba(21, 21, 21, 0.45);
  border-color: rgba(184, 149, 91, 0.35);
  backdrop-filter: blur(6px);
}
.home-video-bg ~ .home-inner .choice-card h2,
.home-video-bg ~ .home-inner .choice-index { color: var(--off-white); }
.home-video-bg ~ .home-inner .choice-card p { color: rgba(255, 250, 243, 0.72); }
.home-video-bg ~ .home-inner .choice-card:hover { border-color: var(--gold); background: rgba(21, 21, 21, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .home-video-bg video { display: none; }
  .home-video-bg { background: var(--black); }
}

@media (max-width: 820px) {
  .home-video-bg video {
    display: block;
    width: 100vw;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.03);
    object-fit: cover;
    object-position: center center;
  }
  .home-video-bg { background: var(--black); }
  .home-screen {
    min-height: 100svh;
    width: 100%;
    padding: 132px 0 6vh;
  }
  .home-topbar {
    height: 96px;
    justify-content: center;
    padding: 0 0.8rem;
  }
  .home-topbar-logo { width: 120px; height: 76px; }
  .home-topbar-link {
    position: static;
    transform: none;
    font-size: 0.64rem;
    padding: 0.3rem 0.56rem;
    white-space: nowrap;
    display: none;
  }
  .home-inner {
    max-width: 100%;
    margin-top: 0.65rem;
    padding: 0 5vw;
  }
  .home-title { margin-bottom: 1.1rem; }
  .home-subtitle { font-size: 1rem; line-height: 1.58; }
  .home-choices { gap: 1rem; }
  .choice-card { padding: 1.2rem; }
}

/* ---------- Parallax de fond (page d'accueil) ---------- */
.parallax-scene {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.parallax-glow {
  border-radius: 50%;
  filter: blur(60px);
}

.parallax-glow-a {
  top: 8%;
  left: 8%;
  width: 32vw;
  height: 32vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(circle, rgba(184, 149, 91, 0.22), transparent 70%);
}

.parallax-glow-b {
  bottom: 6%;
  right: 10%;
  width: 26vw;
  height: 26vw;
  max-width: 340px;
  max-height: 340px;
  background: radial-gradient(circle, rgba(184, 149, 91, 0.16), transparent 70%);
}

.parallax-bottle {
  top: 50%;
  left: 50%;
  width: 220px;
  height: 350px;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.08;
}
.parallax-bottle svg { width: 100%; height: 100%; }

.parallax-particles {
  inset: 0;
}
.parallax-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  box-shadow: 0 0 8px 1px rgba(184, 149, 91, 0.4);
}
.parallax-particles span:nth-child(1) { top: 18%; left: 22%; }
.parallax-particles span:nth-child(2) { top: 32%; left: 78%; width: 3px; height: 3px; }
.parallax-particles span:nth-child(3) { top: 62%; left: 12%; width: 4px; height: 4px; }
.parallax-particles span:nth-child(4) { top: 74%; left: 68%; }
.parallax-particles span:nth-child(5) { top: 44%; left: 48%; width: 3px; height: 3px; }
.parallax-particles span:nth-child(6) { top: 12%; left: 60%; width: 4px; height: 4px; }
.parallax-particles span:nth-child(7) { top: 85%; left: 40%; width: 3px; height: 3px; }
.parallax-particles span:nth-child(8) { top: 55%; left: 88%; }

@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transition: none !important; transform: none !important; }
}

@media (max-width: 820px) {
  .parallax-scene { display: none; }
}

.home-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.4rem;
}

.home-screen--typewriter .home-subtitle {
  opacity: 0;
  transform: translateY(12px);
}

.home-screen--typewriter .home-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}

.typewriter-line {
  display: block;
}

.typewriter-accent {
  color: var(--gold);
}

.typewriter-char {
  animation: typewriterCharIn 0.35s ease both;
}

.typewriter-space {
  display: inline-block;
  width: 0.28em;
}

.typewriter-cursor {
  display: inline-block;
  width: 0.08em;
  min-width: 3px;
  height: 0.92em;
  margin-left: 0.04em;
  background: var(--gold);
  vertical-align: -0.06em;
  box-shadow: 0 0 12px rgba(184, 149, 91, 0.75);
  animation: typewriterCursorBlink 0.85s step-end infinite;
}

.typewriter-cursor.is-done {
  animation: typewriterCursorBlink 1.1s step-end 3;
  opacity: 0;
}

@keyframes typewriterCharIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes typewriterCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-char { animation: none; }
  .typewriter-cursor { display: none; }
  .home-screen--typewriter .home-subtitle {
    opacity: 1;
    transform: none;
  }
}

.home-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.home-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.choice-card {
  position: relative;
  background: var(--off-white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.choice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}

.choice-index {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.choice-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.8rem 0 0.6rem;
}

.choice-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.choice-arrow {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.choice-card:hover .choice-arrow { transform: translateX(6px); }

/* ---------- Quiz ---------- */
.quiz-screen {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4vh 6vw 8vh;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.quiz-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 6vh;
}

.btn-back {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-back:hover { border-color: var(--gold); background: var(--beige); }

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--beige);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.4s ease;
}

.quiz-steps { position: relative; z-index: 1; }

.quiz-step {
  display: none;
  animation: fadeSlideIn 0.5s ease;
}
.quiz-step.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 0 0 2.6rem;
  line-height: 1.25;
}

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

.options-grid-images {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.option-btn-image {
  padding: 0;
  overflow: hidden;
  text-align: center;
  align-items: center;
}

.option-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.option-btn-image .option-label {
  display: block;
  width: 100%;
  padding: 0.8rem 0.6rem 0.2rem;
  font-weight: 500;
}

.option-btn-image .option-hint {
  display: block;
  width: 100%;
  padding: 0 0.9rem 0.9rem;
  text-align: center;
}

.option-btn-image.selected .option-image {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

@media (max-width: 820px) {
  .options-grid-images { grid-template-columns: repeat(2, 1fr); }
}

.option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  text-align: left;
  padding: 1.3rem 1.5rem;
  border-radius: 14px;
  border: 1.5px solid var(--beige);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.option-label { font-size: 1.02rem; }
.option-hint { font-size: 0.82rem; color: var(--gray); font-style: italic; }

.option-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.option-btn.selected {
  border-color: var(--gold);
  background: var(--beige);
}

.gift-options {
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
}

.gift-options-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--black);
}

.gift-options-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.gift-options-hint {
  margin: 0.6rem 0 0 1.85rem;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

.gift-options-continue {
  margin-top: 1.4rem;
}

.multi-select-hint {
  color: var(--gray);
  font-size: 0.88rem;
  margin: -1.6rem 0 1.6rem;
}

/* ---------- Saisie budget maximal ---------- */
.budget-input {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.budget-input-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 1.4rem;
  border: 1.5px solid var(--beige);
  border-radius: 14px;
  background: var(--off-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.budget-input-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 91, 0.18);
}

.budget-input-field input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 600;
  color: var(--black);
  appearance: textfield;
  -moz-appearance: textfield;
}

.budget-input-field input::-webkit-outer-spin-button,
.budget-input-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.budget-input-currency {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.budget-input-hint {
  margin: 1.2rem 0 0;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

.budget-input-error {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: #a14a3a;
  line-height: 1.4;
}

.budget-input-continue {
  margin-top: 2rem;
}

.budget-input-skip {
  display: block;
  margin: 1.1rem auto 0;
  border: none;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.budget-input-skip:hover {
  color: var(--black);
}

.quiz-nav {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
}

/* ---------- Recherche parfum ---------- */
.search-box { position: relative; margin-bottom: 2rem; }

.search-box input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  border: 1.5px solid var(--beige);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.search-box input:focus { border-color: var(--gold); }

.search-results {
  position: relative;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--beige);
  background: var(--off-white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search-result-item:hover { border-color: var(--gold); background: var(--beige); }

.search-result-item img {
  width: 46px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--beige);
}

.search-result-item .sr-name { font-weight: 500; }
.search-result-item .sr-brand { color: var(--gray); font-size: 0.85rem; }

.selected-perfume-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1.5px solid var(--gold);
  background: var(--beige);
  margin-bottom: 2rem;
}
.selected-perfume-card img { width: 60px; height: 74px; object-fit: cover; border-radius: 8px; }

/* ---------- Résultat ---------- */
.result-screen { position: relative; flex: 1; padding: 6vh 6vw 10vh; max-width: 1000px; margin: 0 auto; width: 100%; overflow: hidden; }
.result-empty, .result-inner { position: relative; z-index: 1; }

/* Variante allégée du parallax pour les écrans avec beaucoup de contenu (quiz, résultat) */
.parallax-scene-subtle .parallax-glow { filter: blur(70px); }
.parallax-scene-subtle .parallax-glow-a { opacity: 0.6; }
.parallax-scene-subtle .parallax-glow-b { opacity: 0.6; }
.parallax-scene-subtle .parallax-particles span { opacity: 0.2; }

.result-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.result-subtitle { color: var(--gray); margin: 0 0 3rem; font-size: 1.02rem; }

.result-main-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  background: var(--off-white);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--beige);
  margin-bottom: 3.5rem;
}

.result-image img, .alt-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.result-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--gold);
}
.result-image-placeholder.small { font-size: 1.6rem; }

.result-score {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.9rem;
}

.result-details h2 { font-family: var(--font-title); font-size: 2rem; margin: 0 0 0.2rem; }
.result-brand { color: var(--gray); margin: 0 0 0.4rem; }

.result-price {
  margin: 0.8rem 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(184, 149, 91, 0.08);
  border: 1px solid rgba(184, 149, 91, 0.22);
}

.result-price-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.result-price-label-referral {
  margin: 0.8rem 0 0.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

.result-price-original {
  margin: 0.15rem 0 0.5rem;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  line-height: 1.1;
}

.result-price-estimate {
  margin: 0.15rem 0 0;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.1;
}

.result-price-estimate-referral {
  margin: 0.25rem 0 0;
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 149, 91, 0.28);
  box-shadow: 0 5px 14px rgba(21, 21, 21, 0.08);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}

.result-price-badge-large {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #d4a94a);
  color: var(--off-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(184, 149, 91, 0.35);
}

.alt-card .result-price-estimate-referral { font-size: 1.5rem; }
.alt-card .result-price-badge-large { font-size: 0.72rem; padding: 0.18rem 0.45rem; }
.alt-card .result-price-label-referral { font-size: 0.78rem; }

.alt-card .result-price-estimate {
  font-size: 1.25rem;
}

.alt-card .result-price {
  margin: 0.6rem 0 0.8rem;
  padding: 0.85rem;
}

.result-price-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--off-white);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.result-price-note {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--gray);
}

.result-price-label,
.result-price-label-referral { position: relative; }

.referral-info-trigger {
  display: inline-block;
  margin-left: 0.35rem;
  cursor: pointer;
  font-size: 0.68rem;
  color: var(--gold);
  vertical-align: middle;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.referral-info-trigger:hover,
.referral-info-trigger:focus { color: var(--dark); }

.referral-info-bubble {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--beige);
  border-radius: 0.6rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--dark);
}
.referral-info-bubble.is-visible { display: block; }
.referral-info-bubble ul {
  margin: 0.4rem 0 0.4rem 1.1rem;
  padding: 0;
}
.referral-info-bubble li { margin-bottom: 0.3rem; }
.referral-info-note {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--gray);
  font-style: italic;
}

.referral-banner {
  margin: 2.5rem 0 0;
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.96), rgba(45, 38, 28, 0.96));
  border: 1px solid rgba(184, 149, 91, 0.45);
  color: var(--off-white);
  box-shadow: var(--shadow-card);
  animation: bannerEntrance 0.8s ease-out, bannerGlow 2.5s ease-in-out 1s infinite alternate;
  scroll-margin-top: 1.5rem;
}

@keyframes bannerEntrance {
  0% { opacity: 0; transform: translateY(-20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bannerGlow {
  0% { box-shadow: var(--shadow-card), 0 0 0 0 rgba(184, 149, 91, 0); border-color: rgba(184, 149, 91, 0.45); }
  100% { box-shadow: var(--shadow-card), 0 0 18px 2px rgba(184, 149, 91, 0.25); border-color: rgba(184, 149, 91, 0.8); }
}

.referral-banner-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--gold);
}

.referral-banner-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.referral-banner-text + .referral-banner-text {
  margin-top: 0.75rem;
}

.referral-banner-text strong {
  color: var(--gold);
  font-weight: 600;
}

.referral-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.referral-banner-btn {
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
}

.referral-banner-link {
  color: rgba(255, 250, 243, 0.88);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.referral-banner-link:hover {
  color: var(--gold);
}

.referral-banner-note {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 250, 243, 0.72);
}

/* Pastille discrète mobile → ancre vers la vignette en bas */
.referral-mobile-teaser {
  display: none;
}

@media (max-width: 820px) {
  .referral-mobile-teaser {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: -0.6rem 0 1.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--beige);
    background: var(--off-white);
    color: var(--black);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .referral-mobile-teaser-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gray);
  }

  .referral-mobile-teaser-badge {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(184, 149, 91, 0.16);
    color: #8a6a35;
    font-weight: 600;
    font-size: 0.78rem;
  }

  .referral-mobile-teaser-hint {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 0.95rem;
  }
}

.result-rating { color: var(--gold); font-size: 0.95rem; margin: 0 0 1.2rem; }
.result-rating.small { font-size: 0.82rem; margin: 0.3rem 0 0.6rem; }
.result-votes { color: var(--gray); font-size: 0.85rem; }
.result-reason { line-height: 1.7; margin: 0 0 1.6rem; }

.result-tags-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin: 0 0 0.6rem; }
.result-tags-block.small h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); margin: 0.8rem 0 0.4rem; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.pill { background: var(--beige); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.pill-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.pill.small { padding: 0.25rem 0.7rem; font-size: 0.75rem; }

.result-actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

.alt-title { font-family: var(--font-title); font-size: 1.4rem; margin: 0 0 1.4rem; }
.alt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.alt-card { background: var(--off-white); border: 1px solid var(--beige); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow-soft); }
.alt-card h4 { font-family: var(--font-title); font-size: 1.2rem; margin: 0.6rem 0 0.1rem; }
.alt-brand { color: var(--gray); font-size: 0.88rem; margin: 0 0 0.6rem; }
.alt-reason { font-size: 0.85rem; line-height: 1.55; color: var(--black); margin: 0.4rem 0 0; }

.result-restart { text-align: center; margin-top: 4rem; }
.link-restart { color: var(--gray); text-decoration: underline; }

.result-empty { text-align: center; padding: 10vh 0; }
.result-empty p { color: var(--gray); max-width: 34rem; margin: 0 auto 2rem; line-height: 1.6; }
.result-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.budget-fallback-banner {
  margin: -1.4rem 0 2.4rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
}

.budget-fallback-banner p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

.budget-fallback-banner a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.budget-over-badge {
  display: inline-block;
  margin: 0.55rem 0 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(184, 149, 91, 0.14);
  color: #8a6a35;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.budget-over-badge.small {
  margin-top: 0.4rem;
  font-size: 0.72rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .home-choices { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .result-main-card { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .quiz-screen, .result-screen { padding-left: 5vw; padding-right: 5vw; }
  .home-topbar {
    height: 86px;
    padding: 0 0.6rem;
  }
  .home-topbar-logo { width: 104px; height: 66px; }
  .home-title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .home-subtitle { font-size: 0.95rem; }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--ivory); font-family: var(--font-body); color: var(--black); }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 3rem 2rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-family: var(--font-title); font-size: 1.8rem; margin: 0; }
.admin-nav { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-nav a { padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--beige); font-size: 0.9rem; }
.admin-nav a.active, .admin-nav a:hover { background: var(--black); color: var(--off-white); border-color: var(--black); }
.admin-nav a.admin-logout {
  margin-left: auto;
  border-color: rgba(21, 21, 21, 0.25);
  color: var(--gray);
}
.admin-nav a.admin-logout:hover {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.admin-card { background: var(--off-white); border: 1px solid var(--beige); border-radius: 16px; padding: 1.6rem; margin-bottom: 1.6rem; box-shadow: var(--shadow-soft); }

.admin-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
}
.admin-kpi {
  background: #fff;
  border: 1px solid var(--beige);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-soft);
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3px solid var(--gold);
}
.admin-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.admin-kpi-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}
.admin-kpi-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(184, 149, 91, 0.12);
  color: var(--gold);
  font-size: 0.72rem;
  white-space: nowrap;
}
.admin-kpi-value {
  margin: 0.55rem 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--black);
}
.admin-kpi-value-sm {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0.35rem 0 0;
}
.admin-kpi-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.8rem;
  color: var(--gray);
}
.admin-kpi-footer strong { color: var(--black); font-weight: 600; }
.admin-kpi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding: 1.15rem 1rem;
}
.admin-kpi-half {
  padding: 0.15rem 0.35rem;
}
.admin-kpi-half + .admin-kpi-half {
  border-left: 1px solid var(--beige);
  padding-left: 0.9rem;
}
.admin-dashboard-columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.admin-dashboard-columns .admin-card { margin-bottom: 0; }
@media (max-width: 980px) {
  .admin-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .admin-kpi-strip,
  .admin-dashboard-columns { grid-template-columns: 1fr; }
  .admin-kpi-split { grid-template-columns: 1fr; }
  .admin-kpi-half + .admin-kpi-half {
    border-left: 0;
    border-top: 1px solid var(--beige);
    padding-left: 0.35rem;
    padding-top: 0.75rem;
  }
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--beige); }
.admin-table th { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--gray); }
.admin-table img { width: 34px; height: 42px; object-fit: cover; border-radius: 4px; }

.admin-form label { display: block; font-size: 0.82rem; color: var(--gray); margin: 1rem 0 0.3rem; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid var(--beige); font-family: var(--font-body); font-size: 0.95rem;
}
.admin-form textarea { min-height: 90px; }

.settings-preview {
  position: relative;
  margin-top: 1.5rem;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--beige);
}
.settings-preview-video {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(184, 149, 91, 0.7), transparent 55%),
    linear-gradient(135deg, #2a2218 0%, #151515 100%);
}
.settings-preview-overlay {
  position: absolute;
  inset: 0;
}
.settings-preview-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--off-white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  z-index: 1;
  pointer-events: none;
}

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; }
.badge-active { background: #e5f3e5; color: #2f7a2f; }
.badge-inactive { background: #f3e5e5; color: #a33; }

.login-box { max-width: 380px; margin: 12vh auto; text-align: center; }
.login-box h1 { font-family: var(--font-title); margin-bottom: 1.6rem; }
.flash-error { color: #a33; margin-top: 1rem; font-size: 0.9rem; }
