/* Fête à Mélanie — styles communs */
:root {
  --fond: #1d1030;
  --fond-2: #2b1747;
  --carte: #ffffff;
  --texte: #1f1630;
  --texte-doux: #6b5d80;
  --clair: #fff7fb;
  --rose: #ff4f9a;
  --rose-fonce: #d62f78;
  --or: #ffc53d;
  --vert: #22b573;
  --rouge: #ef4b4b;
  --bordure: #e6dcef;
  --rayon: 16px;
  --ombre: 0 8px 24px rgba(20, 5, 40, 0.25);
  --choix-a: #ff4f9a;
  --choix-b: #3d8bff;
  --choix-c: #ffb020;
  --choix-d: #22b573;
  --choix-e: #9b5cff;
  --choix-f: #ff7a3d;
  --choix-g: #18b8c9;
  --choix-h: #7a8699;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 20% 0%, var(--fond-2), var(--fond) 60%) fixed;
  background-color: var(--fond);
  color: var(--clair);
  min-height: 100vh;
  line-height: 1.4;
}

h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.15; }

button, input, select, textarea { font: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border: 0;
  border-radius: 12px;
  padding: 0.75em 1.2em;
  font-weight: 700;
  background: var(--rose);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { background: var(--rose-fonce); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.secondaire { background: rgba(255, 255, 255, 0.12); color: var(--clair); }
.btn.secondaire:hover { background: rgba(255, 255, 255, 0.2); }
.btn.danger { background: var(--rouge); }
.btn.petit { min-height: 36px; padding: 0.4em 0.8em; font-size: 0.9em; }
.btn.large { width: 100%; }

input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.8em 0.9em;
  border-radius: 12px;
  border: 2px solid var(--bordure);
  background: #fff;
  color: var(--texte);
  font-size: 1.05rem;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--or); outline-offset: 1px; }

.carte {
  background: var(--carte);
  color: var(--texte);
  border-radius: var(--rayon);
  padding: 1.2rem;
  box-shadow: var(--ombre);
}

.doux { color: var(--texte-doux); }
.centre { text-align: center; }
.cache { display: none !important; }

.statut {
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 0.75rem;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  z-index: 50;
}
.statut::before { content: "●"; margin-right: 0.35em; color: var(--or); }
.statut[data-etat="en-ligne"]::before { color: var(--vert); }
.statut[data-etat="hors-ligne"]::before { color: var(--rouge); }

.pastille {
  display: inline-block;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

.choix-0 { --c: var(--choix-a); }
.choix-1 { --c: var(--choix-b); }
.choix-2 { --c: var(--choix-c); }
.choix-3 { --c: var(--choix-d); }
.choix-4 { --c: var(--choix-e); }
.choix-5 { --c: var(--choix-f); }
.choix-6 { --c: var(--choix-g); }
.choix-7 { --c: var(--choix-h); }

.message {
  padding: 0.7em 1em;
  border-radius: 12px;
  background: #fff0f6;
  color: var(--rose-fonce);
  font-weight: 600;
}
.message.ok { background: #e8f8f0; color: #137a4c; }

@keyframes apparait {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
