/* Magic Shop — base commune (formulaire + ERP) */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/poppins-400.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/poppins-500.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/poppins-700.woff) format('woff'); }

:root {
  --pink: #FFC1C2; --pink-50: #FFF6F6; --pink-100: #FFE9EA; --pink-200: #FFD6D7; --rose: #F0708A; --rose-d: #D8506E;
  --butter: #FFF0BD; --butter-2: #FFE79A; --orange: #FA7D1D; --orange-d: #D96410; --orange-soft: #FFE3CC;
  --teal: #074B53; --teal-2: #0E6670; --teal-3: #1F8794; --teal-d: #033A41; --teal-soft: #DCEFF0;
  --ink: #053840; --muted: #4A7178; --line: #F1CACB; --line-2: #E7D7D8; --white: #fff;
  --ok: #1F8F5F; --ok-soft: #DDF3E8; --warn: #B36B00; --warn-soft: #FFEFC9; --bad: #C8383B; --bad-soft: #FFE1E1;
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --shadow-s: 0 2px 8px -2px rgba(7, 75, 83, .18);
  --shadow: 0 12px 32px -14px rgba(7, 75, 83, .35);
  --shadow-l: 0 30px 70px -24px rgba(7, 75, 83, .45);
  --f-display: 'Poppins', 'Baloo Bhaijaan 2', 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-body: 'Poppins', 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--pink-50); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.2; color: var(--teal); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.25rem; border-radius: 999px; font-weight: 700; font-family: var(--f-display); font-size: .95rem; transition: transform .18s var(--ease-spring), box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(7, 75, 83, .7); }
.btn-primary:hover { background: var(--teal-2); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 18px -8px rgba(250, 125, 29, .8); }
.btn-orange:hover { background: var(--orange-d); }
.btn-soft { background: var(--pink-100); color: var(--teal); }
.btn-soft:hover { background: var(--pink-200); }
.btn-line { border: 2px solid var(--line-2); background: #fff; color: var(--teal); }
.btn-line:hover { border-color: var(--teal-3); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 36px; padding: 0 .9rem; font-size: .82rem; }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--pink-100); color: var(--teal); white-space: nowrap; }

/* toasts */
.toasts { position: fixed; z-index: 100; inset-inline: 0; bottom: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--teal-d); color: #fff; padding: .7rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); font-size: .9rem; max-width: 92vw; animation: toast-in .35s var(--ease-spring), toast-out .3s ease 2.8s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

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