/* Une seule colonne, pensée d'abord pour un téléphone. Le mode sombre suit le réglage de l'appareil. */
:root {
  --fond: #f4f1ec;
  --carte: #ffffff;
  --texte: #222222;
  --doux: #666666;
  --trait: #d9d4cb;
  --accent: #2f6f4f;
  --sur-accent: #ffffff;
  --alerte: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1b1a18;
    --carte: #2a2826;
    --texte: #eeeeee;
    --doux: #aaaaaa;
    --trait: #45423e;
    --accent: #6fbf95;
    --sur-accent: #10231a;
    --alerte: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
header {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--trait);
}
header nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
header form { margin: 0; }
.marque { font-weight: 700; color: var(--texte); text-decoration: none; }
main { max-width: 34rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.4rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
a { color: var(--accent); }
.carte, main > form {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: .6rem;
  padding: 1rem;
  margin: 0 0 1rem;
}
.carte > :first-child { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }
label { display: block; margin: .75rem 0 .25rem; font-weight: 600; }
label:first-of-type { margin-top: 0; }
input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%;
  padding: .6rem .7rem;
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: .4rem;
}
button {
  margin-top: 1rem;
  padding: .65rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--sur-accent);
  background: var(--accent);
  border: 0;
  border-radius: .4rem;
  cursor: pointer;
}
button.discret {
  margin: 0;
  padding: .25rem 0;
  font-weight: 400;
  color: var(--accent);
  background: none;
  text-decoration: underline;
}
button.danger { background: var(--alerte); color: var(--carte); }
.erreur { color: var(--alerte); font-weight: 600; }
.doux { color: var(--doux); }
ul.liste { list-style: none; padding: 0; }
ul.liste.carte { padding: .4rem 1rem; }
ul.liste li {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-top: 1px solid var(--trait);
}
ul.liste li:first-child { border-top: 0; }
ul.liste form { margin: 0; }
.lien-a-copier { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
