/* Secret Santa : feuille de style commune. Sobre, pensée pour téléphone. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2933;
  background: #f5f6f8;
}
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
p { margin: 0 0 0.75rem; }

section, .carte {
  background: #fff;
  border: 1px solid #d5d9de;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, textarea, select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #8a939c;
  border-radius: 4px;
}
textarea { min-height: 7rem; resize: vertical; }

button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #1f5f8b;
  border: 1px solid #1f5f8b;
  border-radius: 4px;
  cursor: pointer;
}
button.secondaire { color: #1f5f8b; background: #fff; }
button.danger { color: #9b1c1c; background: #fff; border-color: #9b1c1c; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

:focus-visible { outline: 3px solid #e8a200; outline-offset: 2px; }

.erreur {
  color: #7a1212;
  background: #fdeaea;
  border: 1px solid #d99;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.erreur:empty { display: none; }
.bandeau {
  background: #fff4cc;
  border: 1px solid #e0c36a;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.libre { white-space: pre-line; }
.discret { color: #52606d; }

ul.liste { list-style: none; margin: 0 0 1rem; padding: 0; }
ul.liste > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid #e4e7eb;
}
ul.liste > li:first-child { border-top: 0; }
ul.liste .texte { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }

.suivi > li { display: block; }
.suivi dl { margin: 0.25rem 0 0.5rem; }
.suivi dt { font-weight: 600; float: left; clear: left; margin-right: 0.4rem; }
.suivi dd { margin: 0 0 0.15rem; overflow-wrap: anywhere; }
.suivi form { margin-top: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.resultat { font-size: 1.4rem; font-weight: 700; }

@media (min-width: 40rem) {
  main { padding: 2rem 1rem; }
  .ligne { display: flex; gap: 0.75rem; align-items: flex-end; }
  .ligne > * { flex: 1 1 0; }
  .ligne > button { flex: 0 0 auto; margin-bottom: 0.75rem; }
}
