body {
  min-height: 100dvh;
  font-size: 16px;
}

.bandeau {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff4d6;
  color: #7a5200;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px;
}

.entete {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 8px;
}

.logo {
  height: 34px;
  width: auto;
}

.profil {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 30px;
  padding: 5px 14px 5px 6px;
  box-shadow: var(--ombre);
  font-weight: 600;
  font-size: 14px;
  max-width: 60%;
}

.profil .av {
  font-size: 22px;
}

.profil .nom {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app {
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
  padding: 8px 18px 32px;
  max-width: 520px;
  margin: 0 auto;
}

.carte {
  background: #fff;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--ombre);
}

.pastille {
  font-size: 12px;
  padding: 6px 14px;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  margin: 14px 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin: 10px 0 16px;
}

.doux {
  color: var(--texte);
  line-height: 1.5;
}

.petit {
  font-size: 13px;
  color: var(--texte);
  line-height: 1.5;
  margin-top: 14px;
}

label,
.label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 20px 0 8px;
}

input[type="text"],
input:not([type]),
textarea {
  width: 100%;
  font-size: 17px;
  padding: 14px 16px;
  border: 2px solid #ecdcd2;
  border-radius: 16px;
  background: #fffaf6;
  color: var(--expresso);
  outline: none;
  font-family: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--brique);
}

textarea {
  resize: none;
  min-height: 110px;
}

.avatars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.avatars button {
  aspect-ratio: 1;
  font-size: clamp(20px, 6.5vw, 28px);
  padding: 0;
  min-width: 0;
  background: #fff6f0;
  border-radius: 16px;
  border: 2px solid transparent;
  min-height: 48px;
}

.avatars button[aria-checked="true"] {
  border-color: var(--brique);
  background: var(--peche);
  transform: scale(1.06);
}

.bouton {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  background: var(--brique);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 16px;
}

.bouton:disabled {
  opacity: 0.5;
}

.erreur {
  color: var(--rouge);
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  min-height: 1em;
}

/* Attente */
.attente {
  text-align: center;
  padding: 40px 20px;
}

.attente .grand {
  font-size: 64px;
  display: block;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

/* Question */
.chrono {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: var(--texte);
  margin-bottom: 6px;
}

.chrono b {
  font-family: Nunito, sans-serif;
  font-size: 22px;
  color: var(--brique);
  min-width: 3ch;
  text-align: right;
}

.barre {
  height: 8px;
  border-radius: 4px;
  background: #f2e4dc;
  overflow: hidden;
  margin-bottom: 14px;
}

.barre i {
  display: block;
  height: 100%;
  background: var(--brique);
  transition: width 0.25s linear;
}

.capture {
  display: block;
  width: 100%;
  max-height: 46dvh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ombre);
  margin-bottom: 14px;
}

.choix {
  display: grid;
  gap: 10px;
}

.choix button {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ombre);
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: var(--expresso);
  border: 2px solid transparent;
}

.choix button .lettre {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Nunito, sans-serif;
  font-weight: 900;
}

.choix button:active {
  transform: scale(0.98);
}

.duo {
  grid-template-columns: 1fr 1fr;
}

.duo button {
  justify-content: center;
  min-height: 84px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.duo .piege {
  background: var(--rouge);
}

.duo .pas-piege {
  background: var(--vert);
}

.mots {
  display: grid;
  gap: 8px;
}

/* Résultat */
.resultat {
  text-align: center;
  padding: 30px 20px;
}

.resultat .grand {
  font-size: 60px;
  display: block;
}

.resultat.bon {
  background: var(--vert-clair);
}

.resultat.faux {
  background: #fff1e6;
}

.points {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--vert);
  margin-top: 6px;
}

.gestes {
  text-align: left;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.gestes li {
  list-style: none;
  background: #fff6f0;
  border-radius: 14px;
  padding: 10px 14px;
}
