/* Mister Jack — base épurée (principes Apple : police système, hiérarchie par graisse, matériaux translucides) */
:root {
  --rouge: #E3151A; --rouge-f: #C81116; --noir: #1D1D1F; --noir-2: #2C2C2E; --noir-3: #3A3A3C;
  --fond: #F5F5F7; --carte: #FFFFFF; --creme: #F5F5F7; --papier: #FFFFFF;
  --gris: #6E6E73; --gris-2: #86868B; --ligne: #E5E5EA; --sep: rgba(60,60,67,.12);
  --vert: #248A3D; --ambre: #B25000; --bleu: #0071E3;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 18px; --ombre: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
  --ressort: cubic-bezier(.32,.72,0,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 17px/1.47 var(--texte); letter-spacing: -0.01em; color: var(--noir); -webkit-font-smoothing: antialiased; background: var(--fond); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.trame, .trame-claire { background-image: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--noir); color: #fff; font-weight: 600; font-size: 16px; transition: transform .1s ease-out, background .2s, opacity .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.rouge { background: var(--rouge); }
.btn.rouge:hover { background: var(--rouge-f); }
.btn.clair { background: rgba(120,120,128,.12); color: var(--noir); }
.btn.blanc { background: #fff; color: var(--noir); }
.btn:disabled { opacity: .35; pointer-events: none; }

.champ { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--gris); }
.champ input, .champ select, .champ textarea { min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 0; background: rgba(118,118,128,.12);
  color: var(--noir); font-size: 17px; outline: none; transition: box-shadow .15s, background .15s; }
.champ input:focus, .champ select:focus, .champ textarea:focus { box-shadow: 0 0 0 3px rgba(0,113,227,.35); background: #fff; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); background: rgba(29,29,31,.88);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: #fff; padding: 13px 20px; border-radius: 16px;
  font-weight: 500; font-size: 15px; z-index: 999; transition: transform .45s var(--ressort); max-width: 92vw; box-shadow: var(--ombre); }
.toast.on { transform: translate(-50%, 0); }
.toast.err { background: rgba(200,17,22,.92); }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media print { .no-print { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-reduced-transparency: reduce) { * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }

/* Jamais de défilement horizontal sur mobile */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
