/* Couleurs : pour changer le vert, modifie seulement --vert */
:root {
  --noir: #0f0f0f;
  --blanc: #ffffff;
  --vert: #22c55e;           /* À REMPLACER par le vert exact du quiz */
  --texte-sur-vert: #0f0f0f;
  --gris: #a3a3a3;
  --gris-trait: #5c5c5c;
  --gris-fond: #1a1a1a;
  --alerte: #ffb4a8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.entete { padding: 24px 16px 8px; text-align: center; }
.entete img { width: 150px; height: auto; }

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  text-align: center;
}

h1, h2 {
  font-family: "Schibsted Grotesk", Inter, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: 28px; margin-bottom: 8px; }
h1:focus { outline: none; }
h2 { font-size: 20px; margin: 28px 0 12px; }

p { margin: 0 0 12px; }
.intro { color: var(--gris); margin-bottom: 24px; }
.petit { font-size: 14px; color: var(--gris); }

/* Champs */
.champ { display: block; margin-bottom: 14px; text-align: center; }
.champ span { display: block; margin-bottom: 6px; font-weight: 500; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  background: transparent;
  border: 1.5px solid var(--blanc);
  border-radius: 27px;
  color: var(--blanc);
  font: inherit;
  font-size: 16px;
  text-align: center;
}
textarea { min-height: 90px; border-radius: 22px; text-align: left; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--gris); }

/* Boutons */
button, .bouton {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bouton {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 24px;
  border-radius: 28px;
  border: 1.5px solid var(--blanc);
  background: var(--blanc);
  color: var(--noir);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.bouton.secondaire { background: transparent; color: var(--blanc); }
.bouton:disabled { opacity: .45; cursor: not-allowed; }
.bouton + .bouton { margin-top: 10px; }
.lien {
  display: inline-block;
  min-height: 44px;
  padding: 10px 14px;
  background: none;
  border: 0;
  color: var(--blanc);
  text-decoration: underline;
}
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }

/* Bulles */
.article { margin-bottom: 12px; }
.bulle {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: transparent;
  border: 1.5px solid var(--blanc);
  border-radius: 26px;
  color: var(--blanc);
  text-align: center;
  transition: background-color .12s, color .12s, border-color .12s;
}
.bulle[aria-pressed="true"] {
  background: var(--vert);
  border-color: var(--vert);
  color: var(--texte-sur-vert);
  font-weight: 600;
}
.bulle-article {
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 24px;
  text-align: left;
  justify-content: flex-start;
}
.bulle-article:disabled {
  border-color: var(--gris-trait);
  color: var(--gris);
  cursor: not-allowed;
}
.photo {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: var(--gris-fond);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 24px;
  color: var(--blanc);
}
.photo { position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bulle-article:disabled .photo { opacity: .45; }
.infos { flex: 1; min-width: 0; }
.infos strong { display: block; font-weight: 600; }
.infos small { display: block; font-size: 14px; font-weight: 400; }
.prix { flex: none; font-weight: 600; }
.raison { display: block; margin-top: 2px; font-size: 13px; color: var(--alerte); }

.motifs { padding: 14px 0 8px; }
.motifs p { font-weight: 500; margin-bottom: 10px; }
.motifs .bulle { margin-bottom: 8px; font-size: 15px; min-height: 48px; }
.motifs textarea { margin-bottom: 8px; }

/* Barre du bas */
.barre {
  position: sticky;
  bottom: 0;
  margin: 20px -16px -40px;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--noir) calc(100% - 20px), rgba(15, 15, 15, 0));
}
.aide-barre { font-size: 14px; color: var(--gris); margin-bottom: 8px; }

/* Récap */
.carte {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1.5px solid var(--blanc);
  border-radius: 24px;
  text-align: left;
}
.ligne { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.ligne span:last-child { flex: none; white-space: nowrap; }
.ligne.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1.5px solid var(--blanc);
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.ligne .offert { color: var(--vert); font-weight: 600; }
.reserve { margin: 10px 0 0; font-size: 13px; color: var(--gris); text-align: center; }

.message {
  margin: 16px 0;
  padding: 14px 18px;
  border: 1.5px solid var(--alerte);
  border-radius: 20px;
  color: var(--alerte);
}

/* Frise */
.frise { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.etape {
  position: relative;
  min-height: 62px;
  padding: 0 0 22px 42px;
  color: var(--gris);
}
.etape::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: -2px;
  width: 2px;
  background: var(--gris-trait);
}
.etape:last-child { min-height: 0; padding-bottom: 0; }
.etape:last-child::before { display: none; }
.pastille {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gris-trait);
  border-radius: 50%;
  background: var(--noir);
}
.etape strong { display: block; font-weight: 500; }
.etape small { display: block; font-size: 13px; }
.etape.passee { color: var(--blanc); }
.etape.passee::before { background: var(--vert); }
.etape.passee .pastille { background: var(--vert); border-color: var(--vert); }
.etape.passee .pastille::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--noir);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.etape.encours { color: var(--blanc); }
.etape.encours .pastille {
  left: -3px;
  top: -2px;
  width: 26px;
  height: 26px;
  background: var(--vert);
  border-color: var(--vert);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .25);
}
.etape.encours strong {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.liste-retour { text-align: left; }
.ligne-retour { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gris-trait); }
.photo.petite { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
.ligne-retour:last-child { border-bottom: 0; }
.petit a { color: inherit; text-decoration: underline; }
.ligne-retour small { display: block; color: var(--gris); font-size: 14px; }

ol.conseils { margin: 0; padding-left: 20px; text-align: left; }
ol.conseils li { margin-bottom: 8px; }

.chargement { padding: 60px 0; color: var(--gris); }

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