/* La Voix du Cœur — prune / rose / or, mobile d'abord */
:root {
  --prune: #4a1533;
  --prune-clair: #6d2149;
  --rose: #e75480;
  --rose-clair: #fbe3ec;
  --rose-pale: #fff5f8;
  --or: #c9a227;
  --or-clair: #f3e5b5;
  --texte: #2b1620;
  --texte-doux: #6b4a5a;
  --fond: #fffafc;
  --blanc: #ffffff;
  --bordure: #e8ccd6;
  --vert: #2e7d4f;
  --rouge: #a83232;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
}

.entete {
  background: linear-gradient(160deg, var(--prune), var(--prune-clair));
  color: #fff;
  text-align: center;
  padding: 1rem 1rem 0.75rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}

.logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; }
.nom-marque { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }
.slogan { margin: 0.4rem 0 0.6rem; color: var(--or-clair); font-style: italic; font-size: 1.05rem; }

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; padding-bottom: 0.25rem; }
.nav button {
  background: transparent; border: 1px solid rgba(255,255,255,0.45); color: #fff;
  border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.9rem; cursor: pointer;
}
.nav button:hover, .nav button.actif { background: var(--rose); border-color: var(--rose); }

main { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.ecran h2 { color: var(--prune); margin-top: 0.5rem; }
.intro { color: var(--texte-doux); }
.aide { color: var(--texte-doux); font-size: 0.9rem; }
.note { color: var(--texte-doux); font-size: 0.9rem; }
.obligatoire { color: var(--rose); }
.erreur { color: var(--rouge); font-weight: 600; }

.message {
  border-radius: 0.6rem; padding: 0.75rem 1rem; margin-bottom: 1rem;
  background: var(--rose-clair); border: 1px solid var(--rose); color: var(--prune);
}
.message.ok { background: #e6f4ea; border-color: var(--vert); color: #1c4d2e; }
.message.erreur-msg { background: #fdecea; border-color: var(--rouge); color: var(--rouge); }

.hero { text-align: center; padding: 0.5rem 0 1rem; }
.logo-hero { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--or); }
.hero h1 { color: var(--prune); font-size: 1.7rem; line-height: 1.25; }
.accroche { font-size: 1.05rem; color: var(--texte-doux); }

.carte {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 0.9rem;
  padding: 1rem 1.2rem; margin-top: 1rem; box-shadow: 0 2px 8px rgba(74,21,51,0.06);
}
.carte h2, .carte h3 { color: var(--prune); margin-top: 0.2rem; }
.etapes { padding-left: 1.2rem; }
.etapes li { margin-bottom: 0.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.actions .btn { flex: 1 1 auto; }

.btn {
  border: none; border-radius: 999px; padding: 0.75rem 1.4rem; font-size: 1rem;
  cursor: pointer; text-align: center; line-height: 1.2;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-principal { background: var(--rose); color: #fff; font-weight: 700; }
.btn-principal:hover { background: #d1446f; }
.btn-secondaire { background: var(--blanc); color: var(--prune); border: 2px solid var(--prune); font-weight: 600; }
.btn-danger { background: var(--rouge); color: #fff; font-weight: 700; }
.btn-texte { background: none; color: var(--prune-clair); text-decoration: underline; padding: 0.4rem 0.6rem; font-size: 0.95rem; }

form label { display: block; margin-bottom: 0.9rem; font-weight: 600; color: var(--prune); }
form input[type="email"], form input[type="text"], form input[type="date"],
form input[type="number"], form input[type="password"], form select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.8rem;
  font-size: 1rem; border: 1px solid var(--bordure); border-radius: 0.6rem; background: var(--blanc);
}
form input:focus, form select:focus { outline: 2px solid var(--rose); border-color: var(--rose); }
fieldset { border: 1px solid var(--bordure); border-radius: 0.6rem; margin-bottom: 0.9rem; padding: 0.8rem; }
legend { font-weight: 600; color: var(--prune); padding: 0 0.4rem; }
.rangee { display: flex; gap: 1rem; }
.rangee label { flex: 1; }
.choix-ligne { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; color: var(--texte); margin-bottom: 0.5rem; cursor: pointer; }
.choix-ligne input { margin-top: 0.25rem; accent-color: var(--rose); width: 1.1rem; height: 1.1rem; }
.consentement { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: var(--texte); background: var(--rose-pale); border: 1px solid var(--bordure); border-radius: 0.6rem; padding: 0.8rem; cursor: pointer; }
.consentement input { margin-top: 0.2rem; accent-color: var(--rose); width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

.reglements-texte {
  white-space: pre-wrap; background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: 0.9rem; padding: 1rem 1.2rem; max-height: 55vh; overflow-y: auto;
  font-size: 0.95rem; margin-bottom: 1rem;
}

.progression { margin-bottom: 0.5rem; }
.progression p { margin: 0.2rem 0; }
.barre-progression { height: 10px; background: var(--rose-clair); border-radius: 999px; overflow: hidden; }
#barre-progression-remplissage { height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--or)); transition: width 0.3s ease; }
.section-question { color: var(--or); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

.bloc-etape { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 0.9rem; padding: 1rem; margin: 0.8rem 0; }
.bloc-etape h3 { color: var(--prune); margin: 0 0 0.3rem; font-size: 1.05rem; }
.choix { display: grid; gap: 0.5rem; }
.choix button {
  text-align: left; background: var(--rose-pale); border: 2px solid var(--bordure);
  border-radius: 0.7rem; padding: 0.75rem 0.9rem; font-size: 1rem; color: var(--texte); cursor: pointer;
}
.choix button:hover { border-color: var(--rose); }
.choix button.choisi { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 700; }
.choix button:disabled { opacity: 0.45; cursor: not-allowed; }
.choix-tout { margin-top: 0.6rem; background: var(--or-clair); border-radius: 0.6rem; padding: 0.6rem 0.8rem; font-weight: 600; color: var(--prune); }

.liste-photos { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.photo-ligne { display: flex; justify-content: space-between; align-items: center; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 0.6rem; padding: 0.6rem 0.9rem; }
.photo-ligne .btn { padding: 0.4rem 0.9rem; font-size: 0.9rem; }

.match-carte { text-align: center; }
.match-pourcentage { font-size: 2.4rem; font-weight: 800; color: var(--rose); margin: 0.2rem 0; }
.match-nom { font-size: 1.3rem; font-weight: 700; color: var(--prune); }
.pourquoi { text-align: left; }
.pourquoi li { margin-bottom: 0.4rem; }
.compteur { font-size: 1.4rem; font-weight: 700; color: var(--prune); text-align: center; }
video.video-match { width: 100%; border-radius: 0.9rem; background: #000; }

.onglets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.onglet { flex: 1; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 0.6rem; padding: 0.6rem 0.4rem; cursor: pointer; font-size: 0.95rem; color: var(--prune); }
.onglet.actif { background: var(--prune); color: #fff; border-color: var(--prune); font-weight: 700; }
.panneau-onglet { margin-top: 0.5rem; }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tableau th, .tableau td { border-bottom: 1px solid var(--bordure); padding: 0.5rem 0.3rem; text-align: left; vertical-align: top; }
.tableau th { color: var(--prune); }
.alerte { background: #fff3cd; border: 1px solid var(--or); border-radius: 0.6rem; padding: 0.6rem 0.9rem; }
.membre-ligne { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; align-items: center; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 0.6rem; padding: 0.6rem 0.9rem; margin-bottom: 0.5rem; }

.modale { position: fixed; inset: 0; background: rgba(43,22,32,0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.modale-boite { background: var(--blanc); border-radius: 1rem; padding: 1.4rem; max-width: 420px; width: 100%; }
.modale-boite h2 { color: var(--prune); margin-top: 0; }

.pied { text-align: center; color: var(--texte-doux); font-size: 0.9rem; padding: 1rem; border-top: 1px solid var(--bordure); }

@media (min-width: 700px) {
  main { max-width: 720px; }
  .hero h1 { font-size: 2.1rem; }
  .choix { grid-template-columns: 1fr 1fr; }
  .choix button { min-height: 3.2rem; }
}
