/* ============================================================
   Pass Dabali - Styles applicatifs (complement Tailwind)
   ============================================================ */

/* --- Police / base --- */
html { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; overscroll-behavior-y: none; }

/* --- Zone sure iOS (encoches) --- */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
.safe-top { padding-top: env(safe-area-inset-top, 0px); }
.nav-bottom { padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px)); }

/* --- Bottom-sheet modales mobiles --- */
.modal-overlay { transition: opacity .25s ease; }
.modal-sheet { transition: transform .3s cubic-bezier(.32,.72,.35,1); }
.modal-overlay.hidden-sheet { opacity: 0; pointer-events: none; }
.modal-overlay.hidden-sheet .modal-sheet { transform: translateY(100%); }

/* --- Alerte sante clignotante --- */
@keyframes pdBlink { 0%,100% { background:#dc2626; } 50% { background:#f87171; } }
.pd-blink { animation: pdBlink 1s infinite; }

/* --- Bandeau allergie --- */
@keyframes pdPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55);} 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0);} }
.pd-alert-pulse { animation: pdPulse 1.6s infinite; }

/* --- Scrollbars discrets --- */
.pd-scroll { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.pd-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.pd-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Carte virtuelle --- */
.pd-card {
  background: linear-gradient(135deg, #2C3E50 0%, #34495e 55%, #FF6B00 160%);
}
.pd-qr-blur { filter: blur(6px); user-select: none; pointer-events: none; }

/* --- Compteur solidarite --- */
@keyframes pdCount { from { opacity:.2; transform: translateY(6px);} to { opacity:1; transform:none;} }
.pd-count { animation: pdCount .6s ease; }

/* --- Pin input --- */
.pin-input { letter-spacing: .9em; text-align: center; font-size: 1.35rem; }

/* --- Feuille sticky footer desktop --- */
.pd-app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.pd-app-main { flex: 1 1 auto; }

/* Toasts */
.pd-toast { animation: pdToastIn .3s ease; }
@keyframes pdToastIn { from { opacity:0; transform: translateY(12px);} to { opacity:1; transform:none;} }
