/* Jetons de design — repris du faire-part Lakisane & Arthur (terracotta) */
:root {
  --maroon: #5a1a12;
  --maroon-2: #6e2416;
  --terra-800: #7f2d17;
  --terra-700: #9a3b1e;
  --terra-600: #b5582a;
  --terra-500: #c4562b;
  --terra-400: #d9774a;
  --terra-300: #e9a07a;
  --sand: #d4bba3;
  --sand-2: #e6d5c4;
  --cream: #f6eee6;
  --paper: #fffaf5;
  --ink: #3b1a12;
  --muted: #8a6a5c;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --err: #b42318;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(90, 26, 18, .35);
  --shadow-sm: 0 6px 18px -8px rgba(90, 26, 18, .3);
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Sorts Mill Goudy', 'Cormorant Garamond', Georgia, serif;
  --f-script: 'Pinyon Script', cursive;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); line-height: 1.6; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--terra-700); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.btn {
  --bg: var(--terra-500);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border: 0; border-radius: 999px;
  background: var(--bg); color: #fff; font-family: var(--f-ui); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  box-shadow: 0 10px 24px -10px rgba(154, 59, 30, .7); transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(154, 59, 30, .75); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--terra-700); box-shadow: inset 0 0 0 1.5px var(--terra-400); }
.btn.light { background: var(--paper); color: var(--terra-700); }
.btn.dark { background: var(--maroon); }
.btn.sm { padding: .55em 1.1em; font-size: .85rem; }

.field { display: grid; gap: .35rem; text-align: left; }
.field label { font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--terra-700); }
.input {
  width: 100%; padding: .9em 1.1em; border-radius: 14px; border: 1.5px solid var(--sand-2); background: #fff;
  font-family: var(--f-ui); font-size: 1rem; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus { border-color: var(--terra-400); box-shadow: 0 0 0 4px rgba(217, 119, 74, .18); }

.toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9999; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--maroon); color: #fff; padding: .85em 1.2em; border-radius: 14px; font-family: var(--f-ui); font-size: .92rem; box-shadow: var(--shadow); animation: toastIn .35s ease both; pointer-events: auto; }
.toast.ok { background: #24583a; }
.toast.err { background: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Icônes au trait (js/icons.js) */
.ic { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.22em; margin-right: .45em; stroke-width: 1.5; }
.ic.after { margin: 0 0 0 .45em; }
.btn .ic, button .ic { transition: transform .25s ease; }
.btn:hover .ic.after { transform: translateX(3px); }
