/* Sondage anonyme — habillage sobre, palette du projet.
   Aucun asset partagé avec web/ (§5 ARCHITECTURE.md). */

:root {
  --creme: #f2ede2;
  --briques: #cdc7b8;
  --encre: #2b2a33;
  --vert: #6cbf73;
  --ambre: #e0a458;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Ce qui n'est PAS enregistré doit se voir en grand : c'est le coeur du produit. */
.bandeau-anonymat {
  background: var(--vert);
  color: #10321a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.bandeau-titre {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.bandeau-detail {
  margin: 0;
  font-size: 0.95rem;
}

.titre {
  font-size: 1.4rem;
  margin: 0 0 20px;
}

.question-bloc {
  background: #fff;
  border: 1px solid var(--briques);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.question-libelle {
  font-weight: 600;
  margin: 0 0 12px;
}

/* Échelle */
.echelle {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.echelle label {
  flex: 1;
  text-align: center;
}

.echelle input[type="radio"] {
  display: none;
}

.echelle-case {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 2px solid var(--briques);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.echelle input[type="radio"]:checked + .echelle-case {
  background: var(--ambre);
  border-color: var(--ambre);
  color: #402700;
}

.echelle-libelles {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: 6px;
  color: #5a5847;
}

/* Choix */
.choix-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--briques);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.choix-option input[type="radio"] {
  width: 20px;
  height: 20px;
}

.choix-option:has(input:checked) {
  border-color: var(--ambre);
  background: #fff6ea;
}

/* Texte libre */
textarea {
  width: 100%;
  min-height: 90px;
  border: 2px solid var(--briques);
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.aide {
  font-size: 0.8rem;
  color: #5a5847;
  margin: 4px 0 0;
}

.bouton-envoyer {
  width: 100%;
  min-height: 48px;
  background: var(--ambre);
  color: #402700;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.bouton-envoyer:active {
  filter: brightness(0.95);
}

.confirmation {
  background: var(--vert);
  color: #10321a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.confirmation-titre {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.erreur {
  background: #f6d6c9;
  color: #6b2a0f;
  border-radius: 10px;
  padding: 12px;
  margin-top: 16px;
}

.chargement {
  color: #5a5847;
}
