/* Charivari — Vocabulaire. Couleurs reprises de la présentation :
   fond jaune, bandeau vert, lettres noires sur tuiles blanches. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", system-ui, sans-serif;
  background: #ffc61a;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.cache { display: none !important; }
.vue { flex: 1; width: min(1100px, 100%); margin: 0 auto; padding: 16px clamp(12px, 3vw, 32px) 32px; }
.petit { font-size: 0.92rem; opacity: 0.85; }
.centre { text-align: center; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }

.bandeau {
  background: #00a651;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,0.18);
  margin-bottom: 18px;
}
.bandeau h1 { margin: 0; color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: 1px; }
.bandeau-sous { display: block; font-size: 0.52em; font-weight: normal; letter-spacing: 4px; }

.carte {
  background: #fff8e6;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.carte h2 { margin-top: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1.05rem;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}
button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
button:disabled { opacity: 0.45; cursor: default; }
button.principal { background: #00a651; color: #fff; font-weight: bold; }
button.secondaire { display: block; margin: 4px auto 0; }
button.gros { display: block; width: 100%; font-size: 1.5rem; padding: 16px; margin-top: 12px; }
label.fichier { display: inline-block; border-radius: 12px; padding: 12px 18px; font-size: 1.05rem; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,0.2); cursor: pointer; }

/* ---- Accueil : choix des listes ---- */
.liste-choix {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 10px; padding: 10px 14px; margin: 8px 0;
  font-size: 1.15rem; cursor: pointer;
}
.liste-choix input { width: 26px; height: 26px; accent-color: #00a651; }
.liste-choix .nb { margin-left: auto; opacity: 0.7; font-size: 0.95rem; white-space: nowrap; }
.etiquette-integree { background: #00a651; color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 0.75rem; }
.total-selection { font-weight: bold; font-size: 1.15rem; }

/* ---- Jeu ---- */
.jeu-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.jeu-selection { font-weight: bold; font-size: 1.05rem; }
.jeu-progression { font-size: 1.3rem; font-weight: bold; margin-top: 2px; }
.jeu-outils { display: flex; gap: 8px; }
button.outil { font-size: 1.3rem; padding: 8px 14px; }

.zone-mot {
  min-height: 46vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 8px;
}
.mot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(4px, 1vw, 12px);
  transition: opacity 0.9s ease;
}
.mot.lettre-par-lettre { }
.tuile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
  font-weight: bold;
  line-height: 1;
  padding: 0.18em 0.22em;
  min-width: 0.95em;
  text-align: center;
  transition: background-color 0.6s ease, color 0.6s ease;
}
.tuile.indice1 { background: #ff7f00; color: #fff; }
.tuile.indice2 { background: #2e7cf6; color: #fff; }
.mot.solution .tuile { background: #00a651; color: #fff; }
.mot.estompe { opacity: 0; }

.jeu-boutons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.jeu-boutons button { font-size: 1.25rem; padding: 14px 26px; }
.jeu-boutons button.principal { font-size: 1.4rem; }

/* ---- Fin ---- */
.fin-texte { font-size: clamp(4rem, 18vw, 10rem); font-weight: bold; text-align: center; margin: 10vh 0 8px; }

/* ---- Paramètres ---- */
.barre { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.barre .nav-titre { font-weight: bold; font-size: 1.3rem; letter-spacing: 2px; }
.reglage { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 1.02rem; }
.reglage input[type="checkbox"] { width: 24px; height: 24px; accent-color: #00a651; flex: none; margin-top: 2px; }
.ligne-delai { align-items: center; margin-left: 34px; }
.ligne-delai input[type="number"] { width: 80px; font-size: 1.05rem; padding: 6px 8px; border-radius: 8px; border: 2px solid #d8c690; font-family: inherit; }
.ligne-delai select { font-size: 1.05rem; padding: 6px 8px; border-radius: 8px; border: 2px solid #d8c690; font-family: inherit; }

.liste-gestion {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border-radius: 10px; padding: 10px 14px; margin: 8px 0;
}
.liste-gestion .nom { font-weight: bold; font-size: 1.1rem; }
.liste-gestion .nb { opacity: 0.7; }
.liste-gestion .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.liste-gestion .actions button { padding: 8px 12px; font-size: 0.95rem; }
button.danger { background: #e0483e; color: #fff; }

.editeur { margin-top: 18px; border-top: 2px dashed #d8c690; padding-top: 12px; }
.champ { display: block; margin: 10px 0; }
.champ span { display: block; font-weight: bold; margin-bottom: 4px; }
.champ input[type="text"], .champ textarea {
  width: 100%; font-family: inherit; font-size: 1.05rem;
  padding: 10px; border-radius: 10px; border: 2px solid #d8c690; background: #fff;
}

.pied { text-align: center; padding: 14px; font-size: 0.95rem; }
.pied a { color: inherit; font-weight: bold; }
