/* =========================================================
   GeekGifts V2 — thème clair, moderne, quelques clins d'œil geek
   ========================================================= */

:root {
  --bg: #fff6e5;
  --bg-2: #ffeccc;
  --card: #ffffff;
  --ink: #1e1b3a;
  --muted: #5f5b7d;
  --line: #1e1b3a;
  --soft: #f4efff;

  --pink: #ff4f8b;
  --yellow: #ffc83d;
  --teal: #16c2a8;
  --violet: #6d5cff;
  --orange: #ff8a3d;

  --radius: 16px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(30, 27, 58, .06) 1.2px, transparent 1.2px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-size: 24px 24px, 100% 100%;
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main, .site-header, .site-footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Décor : petites références geek ---------- */
.deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.deco-item {
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: .9;
  animation: float 8s ease-in-out infinite;
}
.d-saber { top: 16%; left: 3%; width: 80px; height: 80px; }
.d-mushroom { top: 70%; left: 4%; animation-delay: -3s; }
.d-demo { top: 20%; right: 4%; animation-delay: -5s; }
.d-d20 { top: 62%; right: 3%; width: 50px; height: 50px; animation-delay: -2s; }
.d-ring { top: 44%; right: 9%; width: 38px; height: 38px; animation-delay: -6s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(6deg); } }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 138, 61, .35);
}
.logo-accent { color: var(--pink); }
.header-tag { display: none; font-size: .85rem; font-weight: 500; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 16px 0 40px; }
.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 4px;
}
.hero-sub { margin: 0 auto 28px; max-width: 520px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Quiz ---------- */
.quiz {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.progress-label { font-size: .85rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.progress-bar {
  flex: 1;
  height: 12px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink));
  transition: width .4s ease;
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.step-title {
  padding: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.step-help { margin: -8px 0 14px; color: var(--muted); font-size: .95rem; }
.sub-label { margin: 22px 0 10px; font-size: 1.05rem; letter-spacing: -.01em; }
.optional { font-weight: 500; color: var(--muted); font-size: .9rem; }

/* Âges */
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.age-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--soft);
  border-radius: 14px;
}
.age-box label { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input {
  width: 64px;
  padding: 10px 4px;
  font: 700 1.2rem var(--sans);
  color: var(--ink);
  text-align: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
  outline: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: 0 0 0 3px rgba(109, 92, 255, .35); }
.stepper-btn {
  width: 40px; height: 40px;
  font: 700 1.2rem var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.stepper-btn:active { transform: translateY(1px); }

/* Verbatims de geekitude */
.verbatims { display: grid; grid-template-columns: 1fr; gap: 8px; }
.verbatim { position: relative; cursor: pointer; }
.verbatim input { position: absolute; opacity: 0; pointer-events: none; }
.verbatim span {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 2px solid #e4def5;
  border-radius: 12px;
  font-size: .95rem;
  line-height: 1.4;
  transition: border-color .15s, background .15s, transform .15s;
}
.verbatim em { font-style: normal; }
.verbatim b { flex: none; font-size: 1.4rem; line-height: 1.1; font-weight: 400; }
.verbatim:hover span { border-color: var(--violet); transform: translateY(-1px); }
.verbatim input:checked + span {
  background: #fff4cf;
  border-color: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}
.verbatim input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Genre (facultatif) */
.genders { display: flex; flex-wrap: wrap; gap: 8px; }
.gender {
  flex: 1 1 120px;
  padding: 10px 14px;
  font: 600 .95rem var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 2px solid #e4def5;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.gender-wide { flex-basis: 100%; font-weight: 500; }
.gender:hover { border-color: var(--violet); }
.gender[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }

/* Occasions */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 110px;
  padding: 14px 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-weight: 600;
  text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s;
  user-select: none;
}
.choice-long span { font-size: .9rem; line-height: 1.3; }
.choice b { font-size: 1.9rem; line-height: 1; font-weight: 400; }
.choice:hover span { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.choice input:checked + span { background: var(--yellow); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.choice input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Passions */
.preset-hint {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #e5fbf6;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
}
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat, .tag {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.cat {
  padding: 10px 14px;
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: 12px;
}
.cat:hover { transform: translateY(-2px); box-shadow: 2px 2px 0 var(--ink); }
.cat.on { background: var(--violet); color: #fff; box-shadow: 2px 2px 0 var(--ink); }

.subs { display: grid; gap: 12px; margin-top: 14px; }
.sub {
  padding: 14px;
  background: var(--soft);
  border-radius: 14px;
  animation: step-in .3s ease both;
}
.sub-title { margin: 0 0 10px; font-weight: 700; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 7px 12px;
  font-size: .88rem;
  font-weight: 600;
  border: 2px solid #d9d2f0;
  border-radius: 999px;
}
.tag:hover { border-color: var(--violet); }
.tag.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.tag.on::before { content: "✓ "; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.field input:focus { box-shadow: 0 0 0 3px rgba(109, 92, 255, .35); }

/* Budget : double curseur */
.budget { padding: 8px 4px 0; text-align: center; }
.budget-values { margin: 0 0 18px; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.budget-sep { color: var(--muted); font-weight: 500; margin: 0 6px; }
.range { position: relative; height: 32px; }
.range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 10px;
  transform: translateY(-50%);
  background: var(--soft);
  border-radius: 999px;
}
.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink));
}
.range input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
  pointer-events: auto;
}
.range input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
  pointer-events: auto;
}
.range input::-moz-range-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--violet); outline-offset: 2px; }
.range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.budget-msg {
  margin: 18px 0 0;
  padding: 12px 16px;
  background: #fff4cf;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turnstile:not(:empty) { margin-top: 16px; display: flex; justify-content: center; }

.error {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: #ffe1ea;
  border: 2px solid var(--pink);
  border-radius: 10px;
  font-weight: 600;
  color: #b0124b;
}

.quiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.quiz-nav .btn-primary, .quiz-nav .btn-go { flex: 1; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font: 700 1rem var(--sans);
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-secondary { background: var(--yellow); }
.btn-go { background: var(--violet); color: #fff; }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* ---------- Chargement ---------- */
.loading { padding: 20px 0 60px; }
.loading-box { max-width: 420px; margin: 0 auto; padding: 28px 24px; text-align: center; }
.loading-sprite { font-size: 3rem; animation: hop .6s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-12px) rotate(-6deg); } }
.loading-title { margin: 12px 0 14px; font-weight: 700; font-size: 1.15rem; }
.loading-bar { height: 12px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.loading-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink));
  animation: load 9s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes load { to { width: 96%; } }
.loading-msg { margin: 14px 0 0; color: var(--muted); font-weight: 500; min-height: 3em; }

/* ---------- Résultats ---------- */
.results { padding: 8px 0 40px; scroll-margin-top: 16px; }
.shared-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.profile {
  padding: 22px;
  margin-bottom: 32px;
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: pop .45s ease both;
}
.profile .kicker { color: var(--yellow); }
.profile h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 4.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.profile-text { margin: 0 0 12px; font-size: 1.05rem; opacity: .95; }
.criteria { margin: 0; font-size: .85rem; opacity: .85; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

.block { margin-bottom: 36px; }
.block-title { margin: 0 0 18px; font-size: 1.35rem; letter-spacing: -.02em; }

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.gift {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  transition: transform .15s, box-shadow .15s;
  animation: card-in .45s ease both;
}
.gift:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.gift-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gift-emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 1.7rem;
  background: var(--soft);
  border-radius: 14px;
}
.price {
  padding: 5px 10px;
  font-weight: 700;
  font-size: .9rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.gift h4 { margin: 4px 0 0; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; }
.gift p { margin: 0; flex: 1; color: var(--muted); font-size: .95rem; }
.btn-amazon { margin-top: 4px; padding: 12px 16px; background: var(--yellow); font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }

/* Podium */
.gift-top3 { padding: 22px; }
.rank {
  position: absolute;
  top: -16px;
  left: 16px;
  padding: 3px 10px;
  font-size: .85rem;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: 999px;
}
.rank-1 { background: var(--yellow); }
.rank-2 { background: #e6ebf4; }
.rank-3 { background: #f6c9a3; }
.gift-top3.is-first { background: #fffbea; }
.gift-top3 .gift-top { margin-top: 6px; }
.gift-safe .gift-emoji { background: #dcf8f2; }
.gift-crazy .gift-emoji { background: #ffe1ea; }

/* ---------- Partage ---------- */
.share { padding: 22px; margin-bottom: 24px; background: var(--yellow); box-shadow: var(--shadow-lg); }
.share h3 { margin: 0 0 4px; font-size: 1.4rem; }
.share-sub { margin: 0 0 16px; color: #4a4560; }
.btn-share-main { width: 100%; margin-bottom: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  flex: 1 1 auto;
  padding: 10px 12px;
  font: 700 .88rem var(--sans);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.share-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.share-link {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  font: 500 .85rem var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
}
.sb-whatsapp { background: #25d366; color: var(--ink); }
.sb-copy { background: var(--card); color: var(--ink); }
.sb-pinterest { background: #e60023; }
.sb-facebook { background: #1877f2; }
.sb-x { background: #111; }
.sb-telegram { background: #229ed9; }
.sb-email { background: var(--violet); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.actions .btn { flex: 1 1 220px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 24px; padding-bottom: 36px; text-align: center; font-size: .8rem; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10;
  padding: 12px 18px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--pink);
  animation: toast-in .25s ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Breakpoints (mobile-first) ---------- */
@media (max-width: 639px) {
  .d-ring, .d-d20, .d-demo { display: none; }
  .deco-item { opacity: .35; }
  .d-saber { top: 34%; left: -14px; }
  .quiz { padding: 18px 16px; }
  .ages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .age-box { padding: 12px 4px; }
  .stepper { gap: 4px; }
  .stepper-btn { width: 34px; height: 38px; }
  .stepper input { width: 52px; font-size: 1.1rem; }
}
@media (min-width: 640px) {
  .header-tag { display: inline; }
  .quiz { padding: 28px; }
  .verbatims { grid-template-columns: 1fr 1fr; }
  .gender-wide { flex-basis: auto; flex-grow: 3; }
  .choices { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .profile { padding: 28px; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-top { align-items: end; }
  .grid-top .is-first { order: 2; top: -16px; }
  .grid-top .gift-top3:nth-child(2) { order: 1; }
  .grid-top .gift-top3:nth-child(3) { order: 3; }
  .share { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px 24px; align-items: center; }
  .share-head { grid-row: span 3; }
  .btn-share-main { margin: 0; }
  .share-link { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   AMBIANCE : plus de couleurs et de peps
   ========================================================= */

/* Taches de couleur douces en arrière-plan */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(28vmax 28vmax at 12% 18%, rgba(255, 79, 139, .16), transparent 70%),
    radial-gradient(32vmax 32vmax at 88% 12%, rgba(109, 92, 255, .16), transparent 70%),
    radial-gradient(30vmax 30vmax at 85% 80%, rgba(22, 194, 168, .16), transparent 70%),
    radial-gradient(26vmax 26vmax at 10% 85%, rgba(255, 200, 61, .22), transparent 70%);
  animation: blobs 22s ease-in-out infinite alternate;
}
@keyframes blobs { to { transform: translate(3vmax, -2vmax) rotate(4deg); } }

/* Pastilles au-dessus du titre */
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 18px; }
.sticker {
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  animation: wiggle 5s ease-in-out infinite;
}
.s1 { background: #ffd6e5; transform: rotate(-4deg); }
.s2 { background: #dcd6ff; transform: rotate(3deg); animation-delay: -1s; }
.s3 { background: #ffe6a3; transform: rotate(-2deg); animation-delay: -2s; }
.s4 { background: #c8f5ec; transform: rotate(4deg); animation-delay: -3s; }
.s5 { background: #ffd9bf; transform: rotate(-3deg); animation-delay: -4s; }
@keyframes wiggle { 50% { translate: 0 -4px; } }

.hl {
  background: linear-gradient(90deg, #ffc83d, #ff8ab3, #a99dff, #6ee3d0);
  background-size: 100% 34%;
  background-repeat: no-repeat;
  background-position: 0 88%;
}

/* Une couleur d'accent par étape du quiz */
.quiz { --accent: var(--violet); --accent-soft: #ece8ff; position: relative; overflow: hidden; }
.quiz[data-step="2"] { --accent: var(--pink); --accent-soft: #ffe3ee; }
.quiz[data-step="3"] { --accent: var(--teal); --accent-soft: #dcf8f2; }
.quiz[data-step="4"] { --accent: var(--orange); --accent-soft: #ffeadb; }
.quiz::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--accent);
  transition: background .3s;
}
.progress-label { color: var(--accent); }
.age-box, .sub { background: var(--accent-soft); transition: background .3s; }

/* Verbatims : cartes pastel */
.verbatim span { background: var(--tint, #fff); border-color: transparent; }
.verbatim b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 12px;
  font-size: 1.3rem;
}
.verbatim:hover span { border-color: var(--line); }
.verbatim input:checked + span { background: var(--tint, #fff4cf); border-color: var(--line); }
.verbatim input:checked + span b { background: var(--yellow); }

/* Occasions : une couleur chacune */
.choice:nth-child(1) span { background: #dcf8e8; }
.choice:nth-child(2) span { background: #ffe3ee; }
.choice:nth-child(3) span { background: #fff1c9; }
.choice:nth-child(4) span { background: #ece8ff; }
.choice input:checked + span { background: var(--yellow); }

/* Univers : couleur propre quand coché */
.cat.on { background: var(--cat, var(--violet)); color: var(--ink); }

/* Budget */
.budget-msg { background: var(--accent-soft); }

/* Profil */
.profile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6d5cff 0%, #9b5cff 55%, #ff4f8b 100%);
}
.profile::after {
  content: "🎮 ⚔️ 🎲";
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-size: 4.5rem;
  opacity: .18;
  transform: rotate(-10deg);
  pointer-events: none;
}

/* Titres de sections en pastilles */
.block-title {
  display: inline-flex;
  padding: 6px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.block-top .block-title { background: var(--yellow); }
.block-safe .block-title { background: #9ff0e1; }
.block-crazy .block-title { background: #ffb3cd; }

/* Cartes cadeaux : vignette illustrée (ou photo produit si disponible) */
.gift { padding: 0; overflow: visible; }
.gift-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  margin: 10px 10px 0;
  border-radius: 12px;
  background: var(--visual, linear-gradient(135deg, #ffe6a3, #ffb3cd));
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}
.gift-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .45) 2px, transparent 2px);
  background-size: 16px 16px;
}
.gift-big {
  position: relative;
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 6px 0 rgba(30, 27, 58, .18));
  transition: transform .25s;
}
.gift:hover .gift-big { transform: scale(1.12) rotate(-6deg); }
.gift-visual img { position: relative; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gift-visual .price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  transform: rotate(-4deg);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}
.gift-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 18px 18px; }
.gift-top3 { padding: 0; }
.gift-top3 .gift-visual { height: 170px; }
.rank { z-index: 2; }

.gift-top3 { --visual: linear-gradient(135deg, #ffe08a, #ffb36b); }
.gift-top3.is-first { --visual: linear-gradient(135deg, #ffd23f, #ff8a3d); }
.gift-safe { --visual: linear-gradient(135deg, #b8f3e6, #8fd3ff); }
.gift-crazy { --visual: linear-gradient(135deg, #ffc1d8, #c2b5ff); }

/* Confettis */
.confetti { position: fixed; inset: 0; z-index: 20; pointer-events: none; }

/* ---------- Pages légales ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.footer-links a:hover { border-color: var(--pink); }
.legal { max-width: 780px; margin: 8px auto 32px; padding: 24px 20px; line-height: 1.65; }
.legal h1 { margin: 0 0 4px; font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -.03em; }
.legal-date { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.legal h2 { margin: 28px 0 8px; font-size: 1.25rem; padding-bottom: 4px; border-bottom: 3px solid var(--yellow); display: inline-block; }
.legal h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.legal p, .legal li { color: #3d3a5c; }
.legal a { color: var(--violet); font-weight: 600; }
.legal-tldr { padding: 4px 18px; background: #dcf8f2; border-radius: 12px; }
@media (min-width: 640px) { .legal { padding: 36px 40px; } }