:root{
  --bg:#070a14;
  --card:#0b1023;
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.7);
  --orange:#ff8a00;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% 20%, rgba(255,138,0,.12), transparent 55%),
              radial-gradient(1200px 700px at 60% 60%, rgba(63,81,181,.10), transparent 60%),
              var(--bg);
  color:var(--text);
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
}

.shell{ width:min(860px, 100%); }

.top{ margin-bottom:14px; }

.progress-wrap{
  display:flex;
  align-items:center;
  gap:14px;
}

.progress-track{
  flex:1;
  height:6px;
  background:rgba(255,255,255,.12);
  border-radius:999px;
  overflow:hidden;
}

.progress-bar{
  height:100%;
  width:0%;
  background:var(--orange);
  border-radius:999px;
  transition: width .28s ease;
}

.progress-text{
  font-variant-numeric: tabular-nums;
  color:var(--muted);
  min-width:64px;
  text-align:right;
}

.card {
  background: linear-gradient(180deg, #db06060a, rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:16px;
  padding: 28px 28px; /* réduire le padding pour mobile */
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
}

.question-area{
  margin-bottom:1px; 
}

.tiny {
  color:var(--muted);
  font-size:30px;
  letter-spacing:.2px; 
}

.question {
  margin:15px 0 0;
  font-size:15px;
  line-height:1.6rem; 
}

.choices{
  display:flex;          /* met les boutons côte à côte */
  gap:12px;
  justify-content:center;
  margin:22px 0 18px;
}

.choice{
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  border-radius:40px;
  width: 122px;
  height: 55px;
  padding:14px 16px;
  text-align:center;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.choice:last-child{
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  width: 122px;
  border-radius:40px;
  padding:14px 16px;
  text-align:center;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}

.choice:hover{
  transform: translateY(-1px);
  border-color: rgba(255,138,0,.35);
}
.choice:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.choice-val{
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:14px 16px;
  text-align:left;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}

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

.btn{
  border-radius:10px;
  padding:10px 14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.15);
  color:var(--text);
  cursor:pointer;
}
.btn.ghost{
  background:transparent;
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.status{
  color:var(--muted);
  font-size:13px;
  min-height:18px;
}

.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
    text-align: left;
}

.text-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,138,0,.15);
}

.choice.text-submit {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  text-align: center;
}
.choice.text-submit:hover {
  background: #ff9b33;
  border-color: #ff9b33;
}


/* Spécifique à l'email */
.email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  text-align: left;
}

/* Garder le style normal pour l'email */
.email-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,138,0,.15);
}

/* Quand il y a un email + bouton valider */
.email-input,
.choice.text-submit {
  display: block;
}

/* Forcer l'empilement vertical pour l'email */
.choices:has(.email-input) {
  flex-direction: column;
  align-items: stretch;
}

.finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.finish-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #54eb72;
  color: #000;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finish-text {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  max-width: 420px;
}


.slide-in {
  animation: slideFromRight 0.6s ease forwards;
}

@keyframes slideFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .card {
    padding: 28px 24px;
  }
}

@media (max-width: 767px) {
  .card {
    padding: 28px 16px;
  }
}


.heart {
  font-size: 40px;          /* taille de base */
  color: red;               /* optionnel */
  display: inline-block;    /* important pour le scale */
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
