/* ═══════════════════════════════════════════════════════
   VAL YOUR STOCK — PWA Mobile v4 · Tactile Entrepôt
   Palette teal officielle · Dark mode auto
   Cibles tactiles 44px+ · Gestes natifs
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── Tokens dark (défaut entrepôt) ─────────────────────── */
:root {
  --bg:        #0a1419;
  --surface:   #122029;
  --surface2:  #1a2e3a;
  --surface3:  #234052;
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.16);
  --text:      #e6f4f1;
  --text2:     rgba(230,244,241,.65);
  --text3:     rgba(230,244,241,.38);

  /* Palette teal Val Your Stock */
  --accent:    #14b8a6;
  --accent2:   #0d7a8c;
  --accent3:   #2dd4bf;
  --accent-bg: rgba(20,184,166,.12);
  --accent-glow: 0 0 24px rgba(20,184,166,.35);

  /* Sémantiques tactiles */
  --blue:      #38bdf8;
  --blue-bg:   rgba(56,189,248,.12);
  --green:     #22c55e;
  --green-bg:  rgba(34,197,94,.12);
  --amber:     #fbbf24;
  --amber-bg:  rgba(251,191,36,.12);
  --red:       #f87171;
  --red-bg:    rgba(248,113,113,.12);
  --purple:    #a78bfa;
  --purple-bg: rgba(167,139,250,.12);

  --shadow:    0 8px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --safe-top:  env(safe-area-inset-top, 0px);
  --safe-bot:  env(safe-area-inset-bottom, 0px);
  --nav-h:     68px;
  --top-h:     56px;

  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light mode (rare en entrepôt, mais supporté) */
@media (prefers-color-scheme: light) {
  :root.auto-theme {
    --bg:        #f0f7f8;
    --surface:   #ffffff;
    --surface2:  #e6f4f1;
    --surface3:  #d1ebe6;
    --border:    rgba(10,58,66,.1);
    --border2:   rgba(10,58,66,.18);
    --text:      #0a3a42;
    --text2:     #0f766e;
    --text3:     #6b8a90;
  }
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  user-select: none;
  -webkit-user-select: none;
}
/* Empêche le zoom iOS sur les inputs */
input, select, textarea, button { font-size: 16px; font-family: inherit; }

/* ═══════════════════════════════════════════════════════
   TOPBAR — Hauteur réduite, avatar, scan rapide
   ═══════════════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--top-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: linear-gradient(180deg, rgba(10,20,25,.98), rgba(10,20,25,.92));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 14px; gap: 10px;
}
.topbar-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #fff, #f0fdfa);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(20,184,166,.4);
  padding: 4px;
}
.topbar-logo img { width: 100%; height: 100%; object-fit: contain; }
.topbar-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.topbar-sub   { font-size: 10px; color: var(--text3); letter-spacing: .02em; margin-top: -1px; }

.topbar-btn {
  min-width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text2); cursor: pointer;
  text-decoration: none; flex-shrink: 0; position: relative;
  transition: transform .1s, background .15s;
}
.topbar-btn:active { transform: scale(.92); background: var(--surface3); }
.topbar-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800;
  border-radius: 20px; padding: 1px 5px; min-width: 17px; text-align: center;
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px rgba(248,113,113,.5);
}

/* ═══════════════════════════════════════════════════════
   PAGE LAYOUT
   ═══════════════════════════════════════════════════════ */
.page {
  padding-top: calc(var(--top-h) + var(--safe-top) + 12px);
  padding-bottom: calc(var(--nav-h) + var(--safe-bot) + 12px);
  padding-left: 14px; padding-right: 14px;
  min-height: 100vh;
}

.greeting {
  margin-bottom: 14px;
}
.greeting-name { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.greeting-sub  { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   BIG SCAN BUTTON — Cœur de l'app entrepôt
   ═══════════════════════════════════════════════════════ */
.scan-cta {
  width: 100%;
  background: linear-gradient(135deg, #0d7a8c 0%, #14b8a6 100%);
  border: none; border-radius: 22px;
  padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(20,184,166,.35), inset 0 1px 0 rgba(255,255,255,.15);
  position: relative; overflow: hidden;
  margin-bottom: 18px;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  transition: transform .12s;
}
.scan-cta::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.scan-cta:active { transform: scale(.98); }

.scan-cta-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.22);
}
.scan-cta-text { flex: 1; text-align: left; }
.scan-cta-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.scan-cta-sub   { font-size: 12px; opacity: .85; margin-top: 2px; }
.scan-cta-arrow { font-size: 24px; opacity: .8; }

/* ═══════════════════════════════════════════════════════
   STATS COMPACTES
   ═══════════════════════════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 18px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; opacity: .8;
}
.stat-card.accent::before { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.stat-card.blue::before   { background: linear-gradient(90deg, var(--blue), #67e8f9); }
.stat-card.amber::before  { background: linear-gradient(90deg, var(--amber), #fde68a); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--purple), #d8b4fe); }

.stat-icon  { font-size: 22px; margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat-label { font-size: 11px; color: var(--text3); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   QUICK ACTIONS — Boutons larges 88px min
   ═══════════════════════════════════════════════════════ */
.section-label {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 20px 0 10px;
  display: flex; align-items: center; gap: 6px;
}

.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 18px;
}
.quick-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; min-height: 92px;
  text-decoration: none; color: var(--text);
  transition: transform .12s, border-color .15s;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.quick-btn:active { transform: scale(.97); }
.quick-btn-icon { font-size: 28px; }
.quick-btn-icon.accent { color: var(--accent); }
.quick-btn-icon.blue   { color: var(--blue); }
.quick-btn-icon.green  { color: var(--green); }
.quick-btn-icon.amber  { color: var(--amber); }
.quick-btn-icon.purple { color: var(--purple); }
.quick-btn-icon.red    { color: var(--red); }
.quick-btn-label { font-size: 12.5px; font-weight: 600; color: var(--text2); text-align: center; line-height: 1.3; }

/* ═══════════════════════════════════════════════════════
   ITEM LIST (arrivages, équipements...)
   ═══════════════════════════════════════════════════════ */
.list-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px;
}
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  min-height: 64px;
  transition: background .12s;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--surface2); }

.list-item-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.list-item-icon.blue   { background: var(--blue-bg);   color: var(--blue); }
.list-item-icon.green  { background: var(--green-bg);  color: var(--green); }
.list-item-icon.amber  { background: var(--amber-bg);  color: var(--amber); }
.list-item-icon.red    { background: var(--red-bg);    color: var(--red); }
.list-item-icon.purple { background: var(--purple-bg); color: var(--purple); }

.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub   { font-size: 12px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list-item-right { text-align: right; flex-shrink: 0; }
.list-item-right-val { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text); }
.list-item-right-sub { font-size: 11px; color: var(--text3); margin-top: 1px; }

.list-arrow { font-size: 18px; color: var(--text3); flex-shrink: 0; }

/* List header */
.list-header {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2);
}
.list-header-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.list-header-link  { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.badge-teal   { background: var(--accent-bg); color: var(--accent); }
.badge-blue   { background: var(--blue-bg); color: var(--blue); }
.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-amber  { background: var(--amber-bg); color: var(--amber); }
.badge-red    { background: var(--red-bg); color: var(--red); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-gray   { background: var(--surface3); color: var(--text2); }

/* ═══════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding-bottom: var(--safe-bot);
  background: linear-gradient(0deg, rgba(10,20,25,.98), rgba(10,20,25,.92));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 4px;
  text-decoration: none; color: var(--text3);
  font-size: 10px; font-weight: 600;
  background: none; border: none; cursor: pointer;
  position: relative; min-height: 60px;
  font-family: inherit;
}
.nav-item:active { background: var(--surface2); }
.nav-item-icon { font-size: 22px; margin-bottom: 3px; transition: transform .15s; }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-item-icon { transform: scale(1.12); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 3px; background: var(--accent);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 12px var(--accent);
}

/* Scan button au centre, surélevé */
.nav-scan {
  position: relative; margin: -22px 6px 0;
  min-width: 56px; min-height: 56px;
}
.nav-scan-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  box-shadow: 0 6px 20px rgba(20,184,166,.45), inset 0 1px 0 rgba(255,255,255,.2);
  border: 3px solid var(--bg);
  transition: transform .12s;
}
.nav-scan:active .nav-scan-circle { transform: scale(.94); }
.nav-scan-label { font-size: 10px; color: var(--text2); margin-top: 4px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   SCAN OVERLAY (caméra plein écran)
   ═══════════════════════════════════════════════════════ */
.scan-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: #000;
  display: none; flex-direction: column;
}
.scan-overlay.open { display: flex; }
.scan-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.scan-frame {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; max-width: 320px; aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.6);
}
.scan-frame::before, .scan-frame::after,
.scan-frame > *::before, .scan-frame > *::after {
  content: ''; position: absolute;
  width: 32px; height: 32px;
  border: 4px solid var(--accent);
}
.scan-frame::before { top: -4px; left: -4px;  border-right: none; border-bottom: none; border-radius: 20px 0 0 0; }
.scan-frame::after  { top: -4px; right: -4px; border-left:  none; border-bottom: none; border-radius: 0 20px 0 0; }
.scan-frame-corners > *::before { bottom: -4px; left: -4px;  border-right: none; border-top: none; border-radius: 0 0 0 20px; }
.scan-frame-corners > *::after  { bottom: -4px; right: -4px; border-left:  none; border-top: none; border-radius: 0 0 20px 0; }

/* Ligne de scan animée */
.scan-line {
  position: absolute; left: 8%; right: 8%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
  animation: scan-sweep 2s linear infinite;
}
@keyframes scan-sweep {
  0%   { top: 15%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

.scan-topbar {
  position: relative; z-index: 2;
  padding: calc(var(--safe-top) + 14px) 14px 14px;
  display: flex; align-items: center; gap: 12px;
}
.scan-topbar-close {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
}
.scan-topbar-title { color: #fff; font-family: var(--font-head); font-size: 16px; font-weight: 700; flex: 1; }
.scan-topbar-flash {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
}
.scan-topbar-flash.on { background: var(--accent); border-color: var(--accent); }

.scan-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 20px 16px calc(var(--safe-bot) + 24px);
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  text-align: center;
}
.scan-info-text { color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.scan-manual-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}

/* Result sheet en bas */
.scan-result-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: var(--bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 18px 16px calc(var(--safe-bot) + 20px);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 -8px 28px rgba(0,0,0,.4);
}
.scan-result-sheet.open { transform: none; }
.scan-result-handle {
  width: 40px; height: 4px; background: var(--border2);
  border-radius: 4px; margin: 0 auto 14px;
}
.scan-result-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 12px;
  border: 2px solid var(--green);
  animation: scan-success-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes scan-success-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.scan-result-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.scan-result-ref {
  font-family: 'Courier New', monospace; font-size: 14px;
  color: var(--accent); text-align: center; margin-bottom: 16px; font-weight: 600;
  letter-spacing: .03em;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  font-family: inherit;
  min-height: 48px;
  transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(20,184,166,.4);
}
.btn-secondary {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text);
}
.btn-block { width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ═══════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text2); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}
.form-control {
  width: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-family: inherit;
  font-size: 15px; outline: none;
  transition: border-color .15s, background .15s;
  min-height: 50px;
}
.form-control:focus {
  border-color: var(--accent); background: var(--surface2);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.form-control::placeholder { color: var(--text3); }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

/* ═══════════════════════════════════════════════════════
   STATUS PILL (entrepôt actions rapides)
   ═══════════════════════════════════════════════════════ */
.action-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 18px 16px calc(var(--safe-bot) + 20px);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 -8px 28px rgba(0,0,0,.4);
}
.action-sheet.open { transform: none; }
.action-sheet-handle {
  width: 40px; height: 4px; background: var(--border2);
  border-radius: 4px; margin: 0 auto 14px;
}
.action-sheet-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.action-sheet-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.action-sheet-overlay.open { opacity: 1; pointer-events: auto; }

.action-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border-radius: var(--radius);
  cursor: pointer;
  min-height: 60px;
  background: none; border: none; width: 100%;
  font-family: inherit; color: var(--text);
  text-align: left;
}
.action-item:active { background: var(--surface2); }
.action-item-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.action-item-text { flex: 1; }
.action-item-title { font-size: 14px; font-weight: 600; }
.action-item-sub   { font-size: 12px; color: var(--text3); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════
   ANNONCES BANNER
   ═══════════════════════════════════════════════════════ */
.annonce {
  display: flex; gap: 12px; padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid transparent;
  align-items: flex-start;
}
.annonce.urgent  { background: var(--red-bg);    border-color: rgba(248,113,113,.25); }
.annonce.warning { background: var(--amber-bg);  border-color: rgba(251,191,36,.25); }
.annonce.info    { background: var(--accent-bg); border-color: rgba(20,184,166,.25); }
.annonce-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.annonce.urgent  .annonce-icon { color: var(--red); }
.annonce.warning .annonce-icon { color: var(--amber); }
.annonce.info    .annonce-icon { color: var(--accent); }
.annonce-title { font-size: 14px; font-weight: 700; }
.annonce-msg   { font-size: 12px; color: var(--text2); margin-top: 3px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.empty {
  text-align: center; padding: 40px 20px; color: var(--text3);
}
.empty i { font-size: 48px; opacity: .4; display: block; margin-bottom: 12px; }
.empty h3 { font-family: var(--font-head); font-size: 15px; color: var(--text2); margin-bottom: 4px; }
.empty p { font-size: 13px; }

/* ═══════════════════════════════════════════════════════
   PULL TO REFRESH (visuel basique)
   ═══════════════════════════════════════════════════════ */
.refresh-indicator {
  display: flex; justify-content: center; align-items: center;
  height: 0; overflow: hidden;
  transition: height .2s;
  color: var(--accent);
}
.refresh-indicator.visible { height: 40px; }
.refresh-indicator i {
  font-size: 22px;
  animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   TOAST notification
   ═══════════════════════════════════════════════════════ */
.toast {
  position: fixed; top: calc(var(--top-h) + var(--safe-top) + 12px);
  left: 14px; right: 14px;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.visible { transform: none; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--accent); }
.toast-icon { font-size: 20px; }
.toast.success .toast-icon { color: var(--green); }
.toast.error   .toast-icon { color: var(--red); }
.toast.info    .toast-icon { color: var(--accent); }
.toast-text { flex: 1; font-size: 14px; }

/* ═══════════════════════════════════════════════════════
   UTILS
   ═══════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text3); }

/* Réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
