:root {
  --fond: #07070a;
  --fond-2: #0d0d12;
  --carte: #111116;
  --carte-2: #18181f;
  --trait: #26262f;
  --texte: #f8f8f8;
  --texte-2: #9a9aab;
  --texte-3: #6c6c80;
  --or: #c9a66b;
  --or-clair: #dfc296;
  --or-sombre: #8b7346;
  --vert: #5fbf8a;
  --orange: #e0a14a;
  --rouge: #e06a5f;
  --clan: var(--or);
  --titre: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --corps: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.5 var(--corps);
}

h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.sur-titre {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
}

.discret { color: var(--texte-2); font-size: 0.9rem; }

.carte {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 20px;
}

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--trait);
  background: var(--carte-2);
  color: var(--texte);
  cursor: pointer;
  text-decoration: none;
}
.bouton:hover { border-color: var(--or-sombre); }
.bouton:disabled { opacity: 0.45; cursor: not-allowed; }
.bouton.principal { background: var(--or); border-color: var(--or); color: #17120a; font-weight: 600; }
.bouton.principal:hover { background: var(--or-clair); }
.bouton.danger { color: var(--rouge); }
.bouton.petit { min-height: 36px; padding: 6px 12px; font-size: 0.88rem; }
.bouton.lien { background: none; border: none; color: var(--texte-2); text-decoration: underline; padding: 8px; }

.champ {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--trait);
  background: var(--fond-2);
  color: var(--texte);
}
.champ::placeholder { color: var(--texte-3); }
textarea.champ { min-height: 120px; resize: vertical; }

:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 2px; }

label { display: block; }
.etiquette { display: block; font-size: 0.85rem; color: var(--texte-2); margin-bottom: 6px; }

.message { border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; }
.message.erreur { background: #2a1513; color: #f3b1aa; border: 1px solid #5a2a25; }
.message.succes { background: #12251b; color: #a9e3c2; border: 1px solid #25503a; }
.message.info { background: var(--fond-2); color: var(--texte-2); border: 1px solid var(--trait); }

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--clan);
  color: var(--clan);
  font-size: 0.82rem;
  white-space: nowrap;
}

dialog {
  width: min(92vw, 440px);
  background: var(--carte);
  color: var(--texte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 22px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }

.pile { display: grid; gap: 14px; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (prefers-reduced-motion: no-preference) {
  .apparait { animation: apparait 0.35s ease-out; }
  @keyframes apparait { from { opacity: 0; transform: translateY(6px); } }
}
