/* Base */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 30% 20%, #2b4cff 0%, #0b0f1f 40%, #0a0c18 100%);
  color: #fff;
}

/* App + carte smartphone */
.app {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 420px; /* garde l'effet “smartphone” sur desktop */
}

.screen.active { display: block; }

.card {
  width: 100%;
  border-radius: 26px;
  padding: 16px;
  background: rgba(14, 18, 36, 0.65);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.40);
  backdrop-filter: blur(10px);
}

/* Pour éviter les textes qui sortent en résultat/analyse */
.scrollable {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-bottom: 18px;
}

/* Logo (fixe) */
.top-logo {
  display: block;
  width: 44px;
  height: auto;
  margin: 10px auto 6px auto;
}

/* Cover */
.cover-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  margin-bottom: 14px;
}

/* Progress */
.progress {
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 10px 0;
}

/* ✅ Typo question : plus fine + plus petite (retour “ancienne vibe”) */
.question-title {
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500; /* moins gras */
  margin: 10px 6px 14px 6px;
  letter-spacing: 0.1px;
}

/* Réponses */
.answers {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.answer-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  transition: transform 0.08s ease, filter 0.08s ease;
}

.answer-btn:hover { filter: brightness(1.05); }
.answer-btn:active { transform: scale(0.99); }

.answer-letter {
  display: inline-block;
  min-width: 26px;
  margin-right: 10px;
  opacity: 0.95;
  font-weight: 800;
}

.answer-btn.selected {
  outline: 2px solid rgba(255,255,255,0.55);
}

/* Boutons */
button {
  font-family: inherit;
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, #ff2d55 0%, #ff6a3d 100%);
  box-shadow: 0 14px 30px rgba(255, 45, 85, 0.25);
  cursor: pointer;
}

.btn-secondary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 15px;
  color: #111;
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  margin-top: 10px;
}

.btn-outline {
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.20);
  cursor: pointer;
  margin-top: 10px;
}

.hidden { display: none !important; }

/* Résultats */
.vibe-pill {
  display: inline-block;
  margin: 10px auto 12px auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.result-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain; /* évite de rogner */
  border-radius: 18px;
  display: block;
  margin: 8px 0 10px 0;
}

.result-title {
  text-align: center;
  margin: 8px 0 6px 0;
  font-size: 24px;
  font-weight: 900;
}

.result-short {
  text-align: center;
  margin: 0 10px 8px 10px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.95;
}

/* Bonus */
.bonus-title {
  text-align: center;
  margin: 10px 0 12px 0;
  font-size: 22px;
  font-weight: 900;
}

.bonus-content {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.bonus-card {
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.bonus-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 900;
}

.bonus-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

/* ===== AJOUT MINIMUM POUR PUBS (sans toucher au design global) ===== */
.ad-message{
  text-align: center;
  margin: 10px 8px 12px 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  opacity: 0.95;
}

.ad-slot{
  width: 100%;
  height: 140px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.22);
  margin-bottom: 14px;
}
