/* ====== Le Génie du Cadeau — styles ====== */
:root {
  --violet: #6c4bd8;
  --violet-dark: #533aa8;
  --gold: #f5b942;
  --bg: #f7f5ff;
  --card: #ffffff;
  --text: #2a2440;
  --muted: #7a7392;
  --green: #2eaf6e;
  --red: #e0556a;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(80, 60, 160, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.container { max-width: 880px; margin: 0 auto; padding: 0 1rem; }

/* Header / footer */
.site-header {
  background: linear-gradient(120deg, var(--violet), var(--violet-dark));
  color: #fff;
  padding: 1rem 0;
}
.site-header .container { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 700; }
.tagline { opacity: .85; font-size: .95rem; }
.site-footer { margin-top: 4rem; padding: 2rem 0; color: var(--muted); font-size: .9rem; text-align: center; }
.site-footer a { color: var(--violet); }

/* Écrans */
.screen { display: none; padding: 2.5rem 0; }
.screen.active { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* Accueil */
.hero { text-align: center; padding: 3rem 0; }
.hero h1 { font-size: 2.2rem; line-height: 1.25; }
.hero em { color: var(--violet); font-style: normal; }
.hero p { max-width: 560px; margin: 1rem auto 2rem; color: var(--muted); font-size: 1.1rem; }

/* Boutons */
.btn {
  border: 0; border-radius: 12px; padding: .8rem 1.4rem;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-lg { font-size: 1.2rem; padding: 1rem 2.4rem; }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }

/* Choix profil */
.profile-step h3 { font-size: 1.3rem; margin: 2rem 0 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: .7rem; }
.choice {
  background: var(--card); border: 2px solid #e6e1f5; border-radius: 14px;
  padding: .9rem 1.3rem; font-size: 1.02rem; cursor: pointer;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.choice:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Quiz */
.quiz-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.genie { font-size: 2.4rem; }
.quiz-progress { color: var(--muted); font-size: .95rem; }

.question-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; text-align: center;
}
.question-text { font-size: 1.45rem; font-weight: 600; margin: 0 0 1.6rem; }
.answer-buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn-yes { background: var(--green); color: #fff; min-width: 130px; }
.btn-no  { background: var(--red); color: #fff; min-width: 130px; }
.btn-idk { background: #ece9f7; color: var(--text); min-width: 150px; }

/* Proposition */
.proposal-card {
  background: linear-gradient(135deg, #fff8e8, #fff);
  border: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem; text-align: center;
}
.proposal-card h3 { margin-top: 0; font-size: 1.3rem; }
.proposal-product img { max-width: 260px; width: 100%; border-radius: 12px; }
.proposal-product .p-title { font-weight: 700; font-size: 1.15rem; margin: .6rem 0 .2rem; }
.proposal-product .p-price { color: var(--violet); font-weight: 700; font-size: 1.1rem; }
.verdict-buttons { display: flex; flex-direction: column; gap: .6rem; max-width: 480px; margin: 1.2rem auto 0; }
.verdict-parfait { background: var(--green); color: #fff; }
.verdict-bien { background: #8fd3a8; color: #14502c; }
.verdict-bof { background: #f3d9a4; color: #6b4e0e; }
.verdict-non { background: var(--red); color: #fff; }

/* Résultats */
.results { margin-top: 2.4rem; }
.results h3 { color: var(--muted); font-weight: 600; }
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.result-card {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .12s;
  display: flex; flex-direction: column;
}
.result-card:hover { transform: translateY(-3px); }
.result-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0eefa; }
.result-card .r-title {
  font-size: .88rem; font-weight: 600; padding: .5rem .6rem 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.result-card .r-price { padding: .2rem .6rem .6rem; color: var(--violet); font-weight: 700; }

.restart-line { text-align: center; margin-top: 2.5rem; }

/* Loader */
.loading .question-card, .loading .proposal-card { opacity: .5; pointer-events: none; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.6rem; }
  .question-text { font-size: 1.2rem; }
}
