/* ------------------------------------------------------------------
   Meeat — système de design (style Sunday)
   Blanc, noir, une seule couleur vive. Grotesque, très gros titres,
   photos en situation, coins arrondis généreux.
------------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --ink: #0a0a0a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: rgba(0, 0, 0, 0.10);
  --line-2: rgba(0, 0, 0, 0.06);
  --accent: #2ef27a;        /* la seule couleur vive : vert fluo */
  --accent-ink: #0f9a4a;    /* le même vert, lisible en texte */
  --accent-soft: #e4ffee;
  --ok: #1fa457;
  --warn: #f2a900;
  --danger: #e0301e;
  --radius: 24px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 40px rgba(0, 0, 0, 0.08);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-display: var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; overflow-x: hidden; max-width: 100vw; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }

/* Typo */
.t-hero { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 700; overflow-wrap: anywhere; }
.t-1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.t-2 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.t-3 { font-size: 18px; font-weight: 700; }
.t-sub { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); line-height: 1.4; font-weight: 400; }
.t-eyebrow { font-size: 13px; letter-spacing: 0.02em; color: var(--accent-ink); font-weight: 700; }
.t-muted { color: var(--ink-3); }
.t-small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* Layout */
.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g4, .g5 { grid-template-columns: 1fr; } .wrap { width: calc(100% - 32px); } }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-s { gap: 8px; } .gap-l { gap: 24px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }

/* Surfaces */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-s);
  padding: 22px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.pad-s { padding: 16px; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1;
  background: var(--ink); color: #fff; transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.primary:hover { background: #1fe06c; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn.soft { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.btn.soft:hover { background: rgba(0, 0, 0, 0.1); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(224, 48, 30, 0.3); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 16px 28px; font-size: 17px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.link { background: none; color: var(--accent); padding: 0; }
.btn.link:hover { text-decoration: underline; transform: none; }

/* Pastilles */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, 0.06); color: var(--ink-2); line-height: 1.3;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: rgba(31, 164, 87, 0.14); color: #167a41; }
.pill.warn { background: rgba(242, 169, 0, 0.18); color: #8a5f00; }
.pill.danger { background: rgba(224, 48, 30, 0.12); color: #a8231a; }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

/* États relation */
.etat { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #bbb); }
.etat-propose { --c: #d4d4d4; } .etat-assigne { --c: #b5b5b5; } .etat-en_sequence { --c: #7fb6ff; }
.etat-en_attente { --c: #f2a900; } .etat-conversation { --c: #ff8a3d; } .etat-rdv_planifie { --c: #ff6a1f; }
.etat-rdv_tenu { --c: #c2185b; } .etat-compte_attribue { --c: #1fa457; } .etat-perdu { --c: #9a9a9a; }
.etat-cooldown { --c: #dcdcdc; } .etat-ferme { --c: #555; }

/* Formulaires */
.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-s);
  padding: 13px 15px; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06); }
select.input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; padding-right: 42px; color: var(--ink);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 14px; line-height: 1.5; min-height: 52px;
}
select.input:invalid, select.input:has(option[value=""]:checked) { color: var(--ink-3); }
select.input option { color: var(--ink); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }

/* Révélations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }
.fade-up { animation: fadeUp 0.7s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.16); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.skeleton { background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.09), rgba(0,0,0,.05)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; height: 14px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow); transition: all 0.4s var(--ease); z-index: 100; pointer-events: none;
}
.toast.show { transform: translateX(-50%); opacity: 1; }
.toast.err { background: var(--danger); }
