    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f1f5f9; color: #1a1a1a; max-width: 430px; margin: 0 auto; min-height: 100vh; }

    /* JEU D'ICÔNES */
    .ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .ico-sm { width: 15px; height: 15px; }
    .ico-md { width: 24px; height: 24px; }
    .ico-lg { width: 28px; height: 28px; }
    .ico-xl { width: 42px; height: 42px; stroke-width: 1.5; }
    .ico-inline { vertical-align: -3px; margin-right: 6px; }

    /* LOGIN */
    .login-screen { position: fixed; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; z-index: 200; }
    .login-screen.hidden { display: none; }
    .login-logo { width: 80px; height: 80px; margin-bottom: 16px; border-radius: 20px; }
    .login-title { font-size: 28px; font-weight: 700; color: #085041; margin-bottom: 4px; }
    .login-sub { font-size: 13px; color: #94a3b8; margin-bottom: 32px; letter-spacing: 1px; }
    .login-form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
    .login-input { padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e2e8f0; font-size: 15px; outline: none; background: #f8fafc; width: 100%; }
    .login-input:focus { border-color: #1D9E75; background: #fff; }
    .login-btn { background: linear-gradient(135deg, #2dd4a0, #085041); color: #fff; border: none; border-radius: 12px; padding: 15px; font-size: 15px; font-weight: 600; cursor: pointer; }
    .login-error { font-size: 13px; color: #DC2626; text-align: center; display: none; }

    /* SPLASH */
    #splash { position: fixed; inset: 0; z-index: 100; transition: opacity 0.5s; }
    #splash.hidden { opacity: 0; pointer-events: none; }
    .splash-inner { position: absolute; inset: 0; background: linear-gradient(160deg, #2dd4a0 0%, #1D9E75 45%, #085041 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .splash-bar { width: 48px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; margin-top: 40px; }
    .splash-progress { height: 100%; background: #fff; border-radius: 2px; animation: progress 1.8s ease forwards; }
    @keyframes progress { from { width: 0% } to { width: 100% } }

    /* APP */
    #app { display: none; flex-direction: column; min-height: 100vh; }
    #app.visible { display: flex; }
    .page { display: none; flex: 1; overflow-y: auto; padding-bottom: 100px; }
    .page.active { display: block; }

    /* HEADER */
    .page-header { padding: max(52px, calc(44px + env(safe-area-inset-top))) 20px 28px; position: relative; overflow: hidden; }
    .page-header::after { content: ''; position: absolute; bottom: -30px; left: 0; right: 0; height: 60px; background: #f1f5f9; border-radius: 30px 30px 0 0; }
    .page-header-green { background: linear-gradient(160deg, #1D9E75 0%, #0f9e6e 100%); }
    .page-header-orange { background: linear-gradient(160deg, #f59e0b 0%, #d97706 100%); }
    .page-header-blue { background: linear-gradient(160deg, #1e40af 0%, #1d4ed8 100%); }
    .page-header-purple { background: linear-gradient(160deg, #7c3aed 0%, #6d28d9 100%); }
    .page-header-teal { background: linear-gradient(160deg, #0891b2 0%, #0e7490 100%); }
    .page-header-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
    .page-header-title { font-size: 26px; font-weight: 700; color: #fff; }
    .page-header-count { position: absolute; top: max(52px, calc(44px + env(safe-area-inset-top))); right: 20px; font-size: 28px; font-weight: 700; color: #fff; text-align: right; line-height: 1; }
    .page-header-count span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); display: block; }

    /* STAT CARDS */
    .stat-cards { display: flex; gap: 10px; padding: 0 20px; margin-top: -10px; position: relative; z-index: 1; margin-bottom: 16px; }
    .stat-card { flex: 1; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
    .stat-card-icon { margin-bottom: 4px; color: #fff; opacity: 0.9; }
    .stat-card-value { font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
    .stat-card-label { font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 500; }

    /* ALERT BANNER */
    .alert-banner { margin: 0 20px 16px; border-radius: 16px; padding: 14px; border: 1px solid #fed7aa; background: linear-gradient(135deg, #fff7ed, #fff3e4); display: flex; align-items: center; gap: 12px; cursor: pointer; }
    .alert-banner-icon { width: 40px; height: 40px; border-radius: 12px; background: #ffedd5; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
    .alert-banner-title { font-size: 14px; font-weight: 600; color: #9a3412; }
    .alert-banner-sub { font-size: 12px; color: #c2410c; margin-top: 1px; }

    /* SECTION TITLE */
    .section-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; padding: 0 20px 10px; }

    /* QUICK ACTION */
    .quick-actions { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .quick-action { background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; box-shadow: 0 1px 8px rgba(0,0,0,0.06); transition: transform 0.15s; }
    .quick-action:active { transform: scale(0.97); }
    .quick-action-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
    .quick-action-title { font-size: 14px; font-weight: 600; color: #1e293b; }
    .quick-action-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
    .quick-action-arrow { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #f8fafc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

    /* TIP */
    .tip-card { margin: 0 20px 20px; border-radius: 16px; padding: 16px; border: 1px solid #d1fae5; background: linear-gradient(135deg, #f0fdf8, #e6faf4); display: flex; gap: 12px; }
    .tip-title { font-size: 12px; font-weight: 700; color: #1D9E75; margin-bottom: 3px; }
    .tip-text { font-size: 12px; color: #475569; line-height: 1.5; }

    /* INVENTAIRE */
    .search-bar { margin: 16px 20px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .search-bar input { flex: 1; border: none; outline: none; font-size: 14px; color: #1e293b; background: transparent; }
    .search-bar input::placeholder { color: #94a3b8; }
    .filter-tabs { display: flex; gap: 8px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; border: 1.5px solid #e2e8f0; background: #fff; color: #64748b; transition: all 0.15s; flex-shrink: 0; }
    .filter-tab.active { background: #1D9E75; color: #fff; border-color: #1D9E75; }
    .product-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
    .product-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.15s; position: relative; overflow: hidden; }
    .product-card:active { transform: scale(0.98); }
    .product-card-img { width: 56px; height: 56px; border-radius: 12px; background: #f8fafc; border: 1px solid #f1f5f9; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
    .product-card-name { font-size: 15px; font-weight: 600; color: #1e293b; }
    .product-card-brand { font-size: 12px; color: #94a3b8; margin-top: 1px; }
    .product-card-footer { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
    .expiry-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
    .expiry-badge.urgent { background: #fee2e2; color: #dc2626; }
    .expiry-badge.soon { background: #fef3c7; color: #d97706; }
    .expiry-badge.ok { background: #dcfce7; color: #16a34a; }
    .product-card-date { font-size: 11px; color: #94a3b8; }
    .product-card-price { font-size: 11px; color: #94a3b8; }
    .nutriscore { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .nutriscore-a { background: #1D9E75; }
    .nutriscore-b { background: #85bb2f; }
    .nutriscore-c { background: #f9c74f; }
    .nutriscore-d { background: #f77f00; }
    .nutriscore-e { background: #e63946; }
    .expiry-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 16px 16px; }
    .delete-btn { width: 32px; height: 32px; border-radius: 50%; background: #fff0f0; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto; }
    .empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 14px; }
    .reset-btn { margin: 0 20px 16px; background: #fff; border: 1.5px solid #fecaca; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: #dc2626; font-size: 13px; font-weight: 500; width: calc(100% - 40px); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    /* PARCOURS COURSES : choix, capture, import */
    .page-section { padding: 16px 20px; }
    .option-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #e8eef5; border-radius: 18px; padding: 16px; margin-bottom: 12px; cursor: pointer; box-shadow: 0 2px 10px rgba(15,23,42,0.05); transition: border-color 0.15s, transform 0.1s; }
    .option-card:active { transform: scale(0.99); }
    .option-card.selected { border-color: #1D9E75; background: #f6fffb; }
    .option-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
    .option-title { font-size: 15px; font-weight: 700; color: #1e293b; }
    .option-sub { font-size: 12px; color: #94a3b8; margin-top: 3px; line-height: 1.4; }

    .capture-stage { background: #0f172a; border-radius: 18px; overflow: hidden; position: relative; margin-bottom: 12px; }
    .capture-stage video { width: 100%; display: block; max-height: 62vh; object-fit: cover; background: #000; }
    .capture-guide { position: absolute; inset: 8% 18%; border: 2px dashed rgba(255,255,255,0.55); border-radius: 12px; pointer-events: none; }
    .capture-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; font-size: 12px; text-align: center; }
    .capture-bar { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 12px; }
    .shutter { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #1D9E75; background: #fff; cursor: pointer; flex-shrink: 0; }
    .shutter:active { background: #f0fdf8; }
    .shutter-inner { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #2dd4a0, #1D9E75); }
    .shots-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
    .shot { position: relative; flex-shrink: 0; }
    .shot img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; border: 1.5px solid #e2e8f0; }
    .shot-remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
    .shot-index { position: absolute; bottom: 4px; left: 4px; background: rgba(15,23,42,0.75); color: #fff; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 5px; }

    .dropzone { border: 2px dashed #cbd5e1; border-radius: 18px; padding: 28px 20px; text-align: center; background: #fff; cursor: pointer; }
    .dropzone.hover { border-color: #1D9E75; background: #f6fffb; }
    .dropzone-title { font-size: 14px; font-weight: 700; color: #334155; margin-top: 8px; }
    .dropzone-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

    .btn-primary { width: 100%; padding: 16px; border: none; border-radius: 14px; background: linear-gradient(135deg, #2dd4a0, #085041); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .btn-primary:disabled { opacity: 0.5; cursor: default; }
    .btn-ghost { width: 100%; padding: 14px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; }
    .btn-camera { background: linear-gradient(135deg, #1D9E75, #16a085); color: #fff; border: none; border-radius: 14px; padding: 16px; font-size: 15px; font-weight: 600; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

    .analysis-state { background: #fff; border: 1px solid #f1f5f9; border-radius: 18px; padding: 28px 20px; text-align: center; box-shadow: 0 2px 10px rgba(15,23,42,0.05); }
    .analysis-spinner { width: 34px; height: 34px; border: 3px solid #e2e8f0; border-top-color: #1D9E75; border-radius: 50%; margin: 0 auto 14px; animation: spin 0.9s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* VÉRIFICATION DU TICKET */
    .review-header { background: linear-gradient(135deg, #f0fdf8, #dcfce7); border: 1px solid #bbf7d0; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
    .review-header-title { font-size: 14px; font-weight: 700; color: #085041; }
    .review-header-sub { font-size: 12px; color: #16a34a; margin-top: 3px; }
    .review-warning { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 12px 14px; font-size: 12px; color: #92400e; margin-bottom: 12px; line-height: 1.45; }
    .review-item { background: #fff; border: 1.5px solid #eef2f7; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
    .review-item.excluded { opacity: 0.45; }
    .review-item.doubt { border-color: #fed7aa; background: #fffdf8; }
    .review-top { display: flex; align-items: center; gap: 10px; }
    .review-check { width: 24px; height: 24px; flex-shrink: 0; accent-color: #1D9E75; }
    .review-name { flex: 1; border: none; border-bottom: 1.5px solid transparent; font-size: 14px; font-weight: 600; color: #1e293b; padding: 4px 2px; background: transparent; min-width: 0; }
    .review-name:focus { outline: none; border-bottom-color: #1D9E75; }
    .review-grid { display: grid; grid-template-columns: 62px 78px 1fr; gap: 8px; margin-top: 10px; }
    .review-field { display: flex; flex-direction: column; gap: 3px; }
    .review-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
    .review-input { width: 100%; border: 1.5px solid #e8eef5; border-radius: 9px; padding: 8px 7px; font-size: 13px; background: #f8fafc; color: #1e293b; }
    .review-input:focus { outline: none; border-color: #1D9E75; background: #fff; }
    .doubt-pill { font-size: 10px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
    .review-summary { position: sticky; bottom: 96px; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border: 1px solid #e8eef5; border-radius: 18px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(15,23,42,0.12); margin-top: 6px; }
    .review-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; margin-bottom: 10px; }
    .review-summary-strong { font-weight: 700; color: #1e293b; }
    .review-actions { display: flex; gap: 10px; }

    /* CONSOMMÉ / POUBELLE */
    .consume-banner { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid #fecaca; border-radius: 16px; padding: 16px; text-align: center; margin-bottom: 12px; }
    .consume-banner-title { font-size: 15px; font-weight: 700; color: #b91c1c; }
    .consume-banner-sub { font-size: 12px; color: #dc2626; margin-top: 4px; line-height: 1.45; }
    .consume-log { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
    .consume-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
    .consume-row-icon { width: 30px; height: 30px; border-radius: 9px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .consume-row.error { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
    .pick-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
    .pick-row:active { background: #f8fafc; }
    .pick-name { flex: 1; font-size: 14px; font-weight: 600; color: #1e293b; }
    .pick-qty { font-size: 12px; color: #94a3b8; }

    /* Formulaire produit (ajout manuel) */
    .add-form { background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 18px; margin-top: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .form-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin: 12px 0 6px; display: block; }
    .form-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #e2e8f0; font-size: 14px; background: #f8fafc; outline: none; margin-bottom: 4px; }
    .form-input:focus { border-color: #1D9E75; background: #fff; }
    .form-actions { display: flex; gap: 10px; margin-top: 14px; }
    .btn-cancel { flex: 1; padding: 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; }
    .btn-add { flex: 1; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, #2dd4a0, #085041); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
    .product-preview { display: flex; align-items: center; gap: 12px; background: #f8fafc; border-radius: 12px; padding: 12px; margin-bottom: 6px; }
    .product-preview-placeholder { width: 44px; height: 44px; border-radius: 10px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }

    /* ALERTES */
    .alert-group-title { display: flex; align-items: center; gap: 8px; padding: 16px 20px 8px; }
    .alert-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    .alert-group-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #64748b; flex: 1; }
    .alert-group-count { width: 24px; height: 24px; border-radius: 50%; background: #f1f5f9; font-size: 12px; font-weight: 700; color: #64748b; display: flex; align-items: center; justify-content: center; }
    .alert-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
    .alert-card { background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; }
    .alert-card-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #f8fafc; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
    .alert-card-name { font-size: 14px; font-weight: 600; color: #1e293b; }
    .alert-card-brand { font-size: 12px; color: #94a3b8; margin-top: 1px; }
    .alert-card-date { font-size: 11px; color: #64748b; margin-top: 3px; }
    .alert-pill { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-left: auto; flex-shrink: 0; }
    .alert-pill.urgent { background: #f97316; color: #fff; }
    .alert-pill.expired { background: #ef4444; color: #fff; }
    .alert-pill.soon { background: #fef3c7; color: #d97706; }

    /* STATS */
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; }
    .stat-tile { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .stat-tile-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .stat-tile-icon { display: inline-flex; color: #94a3b8; }
    .stat-tile-label { font-size: 11px; color: #94a3b8; font-weight: 500; }
    .stat-tile-value { font-size: 24px; font-weight: 700; }
    .stat-tile-unit { font-size: 13px; font-weight: 500; color: #94a3b8; margin-left: 3px; }
    .stats-section { padding: 0 20px 16px; }
    .stats-section-title { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
    .donut-container { display: flex; align-items: center; gap: 20px; }
    .donut-legend { display: flex; flex-direction: column; gap: 8px; }
    .donut-legend-item { display: flex; align-items: center; gap: 8px; }
    .donut-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    .donut-label { font-size: 13px; color: #64748b; }
    .donut-count { font-size: 13px; font-weight: 700; color: #1e293b; margin-left: auto; }
    .nutri-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .nutri-bar-badge { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
    .nutri-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
    .nutri-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
    .nutri-bar-count { font-size: 12px; font-weight: 700; color: #1e293b; width: 20px; text-align: right; }
    .waste-card { border-radius: 16px; padding: 16px; border: 1px solid #fecaca; background: linear-gradient(135deg, #fff5f5, #ffe4e4); margin: 0 20px 16px; }
    .waste-tag { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #fee2e2; color: #dc2626; margin: 4px 4px 0 0; }

    /* RECETTES */
    .recette-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin: 0 20px 12px; }
    .recette-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
    .recette-meta { display: flex; gap: 12px; margin-bottom: 10px; }
    .recette-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #64748b; }
    .recette-ingredients { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
    .recette-tag { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; background: #f0fdf8; color: #1D9E75; border: 1px solid #bbf7d0; }
    .recette-tag.urgent { background: #fef3c7; color: #d97706; border-color: #fde68a; }
    .recette-steps { font-size: 13px; color: #475569; line-height: 1.6; }
    .recette-steps p { margin-bottom: 4px; }
    .recette-generate-btn { width: calc(100% - 40px); margin: 0 20px 16px; padding: 16px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
    .recette-loading { text-align: center; padding: 40px 20px; color: #94a3b8; }
    .recette-loading-spinner { width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top-color: #7c3aed; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* COURSES */
    .courses-progress { margin: 0 20px 16px; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .courses-progress-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
    .courses-progress-fill { height: 100%; background: linear-gradient(90deg, #1D9E75, #2dd4a0); border-radius: 4px; transition: width 0.4s ease; }
    .courses-item { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #f1f5f9; box-shadow: 0 1px 4px rgba(0,0,0,0.04); cursor: pointer; transition: all 0.2s; }
    .courses-item.done { opacity: 0.6; }
    .courses-item-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
    .courses-item.done .courses-item-check { background: #1D9E75; border-color: #1D9E75; }
    .courses-item-name { font-size: 14px; font-weight: 500; color: #1e293b; flex: 1; }
    .courses-item.done .courses-item-name { text-decoration: line-through; color: #94a3b8; }
    .courses-item-delete { width: 28px; height: 28px; border-radius: 50%; background: #f8fafc; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .courses-add-row { display: flex; gap: 10px; padding: 0 20px 16px; }
    .courses-add-input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #e2e8f0; font-size: 14px; outline: none; background: #fff; }
    .courses-add-input:focus { border-color: #1D9E75; }
    .courses-add-btn { padding: 12px 16px; border-radius: 12px; background: #1D9E75; color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; }

    /* MODAL PRODUIT */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 50; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .modal-overlay.open { opacity: 1; pointer-events: all; }
    .modal { background: #fff; border-radius: 24px 24px 0 0; padding: 12px 20px 40px; width: 100%; max-height: 85vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); position: relative; }
    .modal-overlay.open .modal { transform: translateY(0); }
    .modal-handle { width: 36px; height: 4px; background: #e2e8f0; border-radius: 2px; margin: 0 auto 16px; }
    .modal-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 60px; }
    .modal-close { position: absolute; top: 16px; right: 20px; width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .modal-title { font-size: 22px; font-weight: 700; color: #1e293b; }
    .modal-brand { font-size: 14px; color: #94a3b8; margin-top: 3px; }
    .modal-expiry-banner { border-radius: 12px; padding: 12px 14px; margin: 12px 0; display: flex; align-items: center; gap: 10px; }
    .modal-expiry-banner.urgent { background: #fee2e2; }
    .modal-expiry-banner.ok { background: #f0fdf8; }
    .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
    .info-box { background: #f8fafc; border-radius: 12px; padding: 12px; }
    .info-box-label { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
    .info-box-value { font-size: 16px; font-weight: 700; color: #1e293b; }
    .nutri-section { margin: 14px 0; }
    .nutri-title { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
    .nutri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .nutri-item { background: #f8fafc; border-radius: 10px; padding: 10px; text-align: center; }
    .nutri-item-value { font-size: 14px; font-weight: 700; color: #1e293b; }
    .nutri-item-label { font-size: 10px; color: #94a3b8; margin-top: 2px; }
    .modal-delete { width: 100%; padding: 14px; border: 1.5px solid #fecaca; border-radius: 12px; background: #fff; color: #dc2626; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 10px; }

    /* NAVBAR FLOTTANTE */
    .navbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; padding: 0 12px; padding-bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; pointer-events: none; }
    .navbar-inner { background: rgba(255,255,255,0.97); border: 1px solid rgba(0,0,0,0.06); border-radius: 24px; display: flex; align-items: center; justify-content: space-around; padding: 10px 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08); pointer-events: all; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
    .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 4px 0; position: relative; }
    .nav-label { font-size: 10px; color: #94a3b8; font-weight: 600; }
    .nav-item.active .nav-label { color: #1D9E75; }
    .nav-icon-wrap { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: background 0.2s; }
    .nav-item.active .nav-icon-wrap { background: #f0fdf8; }
    .nav-scanner-btn { width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(135deg, #1D9E75, #085041); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(29,158,117,0.4); }
    .nav-badge { position: absolute; top: -2px; right: 50%; transform: translateX(16px); background: #ef4444; color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

    /* TOAST */
    .toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 20px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.3s; pointer-events: none; white-space: nowrap; z-index: 200; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
    .toast.show { opacity: 1; }
    .loading { text-align: center; padding: 40px 20px; color: #94a3b8; font-size: 14px; }
    #camera-video video { width: 100% !important; border-radius: 12px; }
    #camera-video canvas { display: none; }

    /* Icône des états vides et des placeholders produit */
    .empty-icon { color: #cbd5e1; margin-bottom: 10px; }
    .placeholder-icon { color: #94a3b8; }
