Replace [BRAND] with your actual app name everywhere. Language: French only. Currency: DA (format with spaces: "42 500 DA"). No server. No external APIs. All data lives in src/data/mockData.js.
Theme: Light mode ONLY. Main background and sidebar both pure white (#FFFFFF). Cards are white with a subtle shadow (shadow-[0_4px_20px_rgba(0,0,0,0.05)]) so they float visibly against the white background with hairlines (#E5E5E5) separating internal sections. No dark: classes.
Stack: React, React Router, Tailwind CSS (CSS-first @theme only in index.css), lucide-react icons (monochrome #555, always paired with text on buttons — never inside colored circles, never alone without purpose), Recharts (recharts — one simple bar chart), Inter font. Plain JSX, no TypeScript. No version numbers in code comments.
Layout: Fixed left sidebar (240px, full viewport height, overflow-hidden, no scrollbar, bg-white, right hairline separator) + main content (ml-[240px] bg-white min-h-screen p-8). Sidebar top: brand ([BRAND] lowercase, bold, period included). Sidebar middle: organized into sections with small uppercase section titles (text-[10px] uppercase tracking-[0.1em] text-[#999] mb-2 mt-5) — "Principal" (Dashboard, Ventes, Stock), "Opérations" (Opérateurs, Dépenses, Caisse), "Analyse" (Rapports, Paramètres). Sidebar items: py-2.5 px-3, icon (w-4 h-4 text-[#777]) + label (text-[13px] text-[#555]). Active: text-[#111] font-semibold bg-[#F8F8F6] rounded-[8px]. No left stripe indicators.
Sidebar bottom (balanced spacing, not bunched at top):
code
Collapsible toggle: small ChevronLeft button (w-8 h-8 rounded-full hover:bg-[#F5F5F0] flex items-center justify-center) toggles sidebar to w-[72px] (icons only). Transition duration-300.
Hairline (h-px bg-[#E5E5E5] my-3).
User row: circle (w-8 h-8 rounded-full bg-[#111] text-white text-[11px] font-bold, initials), name (text-[12px] font-medium), role (text-[10px] text-[#999]).
The full offline shop management application "atelier." has been built with all requested features, French UI, exact design system (light mode, white backgrounds, precise shadows/hairlines, tokens via CSS @theme, lucide icons paired with labels, Recharts bar chart, etc.), working modals, live POS cart, Excel import simulation, collapsible sidebar, status colors, DA formatting, and all pages fully implemented using only local mock data. The project builds and runs cleanly.
Cards: bg-white rounded-[12px] shadow-[0_4px_20px_rgba(0,0,0,0.05)] px-6 py-5. Internal sections separated by border-t border-hairline.
Buttons: Primary bg-[#111] text-white rounded-[8px] px-4 py-2.5 text-[13px] font-medium hover:bg-[#333]. Ghost text-[#555] hover:text-[#111] hover:bg-[#F5F5F0] px-3 py-2 rounded-[6px] text-[13px] flex items-center gap-2. All interactive buttons include a lucide-react icon.
Inputs: bg-input border border-hairline rounded-[8px] px-3 py-2.5 text-[13px] focus:border-[#111] focus:ring-1 focus:ring-[#111]/10.
Tables: Header text-[10px] uppercase tracking-[0.06em] text-text-muted font-medium. Rows text-[13px] text-text-main. Separators border-b border-hairline. Hover hover:bg-[#F8F8F6].
Status dots/text: Small colored text/pills only — text-green-600 for available, text-amber-500 for low, text-red-500 for out. No background fills unless a very subtle bg-green-50 pill for quantity badges (matching the image).
No emojis anywhere. Only lucide-react icons.
PAGE SPECIFICATIONS
DASHBOARD (/)
Header: "Tableau de bord" (text-2xl font-bold).
Metric cards (grid-cols-4 gap-5):
code
Layout inside card: Title/label on top (text-[11px] uppercase tracking-[0.08em] text-[#999] font-medium), value/number below (text-[28px] font-bold text-[#111] tracking-tight).
Example: "Ventes du jour" (top), "42 500 DA" (bottom).
No icon backgrounds. If icon present: small w-4 h-4 monochrome beside the label or none.
Row 2 — Chart card (full width):
code
Title: "Évolution mensuelle des ventes"
Recharts BarChart. 6 months (Jan–Juin). Bars: #111 fill, fillOpacity={0.9}. Hairline grid (#F0F0F0). No legend.
Row 3 — Two cards (grid-cols-2):
code
Left: "Produits les plus vendus" — 5-row table.
Right: "Dernières transactions" — 5 rows with status dots.
VENTES (/ventes)
Workspace layout: Merged with background. No large enclosing white cards for the split panes. Left and right sit directly on #FFFFFF background, separated by a vertical hairline (w-px bg-hairline).
Left Pane (~58%):
code
Header bar (merged, no card): Title "Point de vente" (text-xl font-bold) on left. Search input (Rechercher...) + barcode input (Scanner un code-barres) in center/right. Both inputs have Search and ScanLine icons.
Category pills: Tous, Cosmétique, Téléphones, Accessoires, Vêtements. Active: bg-[#111] text-white rounded-full px-3 py-1 text-[11px] font-medium. Inactive: bg-[#F8F8F6] text-[#777] rounded-full px-3 py-1 text-[11px].
Product Grid (grid-cols-4 gap-4): Vertical portrait cards (aspect-[3/4]). White card with shadow (shadow-[0_2px_12px_rgba(0,0,0,0.05)] rounded-[10px]).
Top: Image (aspect-[4/3] or square, object-cover). Mandatory. If no image: bg-[#F5F3F0] with product initial (text-4xl font-light text-[#CCC] centered).
Middle: Category (text-[10px] text-[#999] uppercase), Product name (text-[13px] font-medium text-[#111]), Price (text-[14px] font-bold text-[#111]).
Bottom: Quantity pill (text-[11px] font-medium). Green for available (text-green-600 bg-green-50 px-2 py-0.5 rounded-full), orange for low, red for out.
Click: adds to cart (right pane).
Image / List toggle: At top right of product area, two icon buttons (Image, List). Active filled #111, inactive #CCC.
Bottom Mode Tabs (locked to bottom of left pane only, never crosses divider): Vente | Retour | Commande | Devis | Facture. Style: text-[11px] uppercase tracking-[0.05em]. Active: bold #111 with border-b-2 border-[#111]. Inactive: #999. Separated by hairline from product grid.
Right Pane (~42%, independent full height):
code
Background: transparent or very subtle #FAFAF8. No rounded card wrapper.
Header: "Panier" (text-lg font-semibold) with ShoppingCart icon. Below: Client dropdown (Client 01 — Comptoir).
Empty state (visible by default): Centered. Large ShoppingCart icon (w-12 h-12 text-[#CCC]). Text: "Le panier est vide" (text-base font-medium). Sub: "Sélectionnez des produits à gauche" (text-[13px] text-[#999]).
Cart list (when items added): Rows separated by border-b border-hairline. Each row: name (text-[13px]), unit price (text-[11px] text-[#999]), quantity controls (- / 2 / +), row total (text-[13px] font-medium), X remove (Trash2 icon button).
Totals: Subtotal line, Total (text-2xl font-bold text-[#111]).
Confirm button: Full width bg-[#111] text-white rounded-[10px] py-3.5 text-[14px] font-medium shadow-[0_4px_12px_rgba(0,0,0,0.15)]. Label adapts to mode.
Secondary actions (with icons): Vider (Trash2 icon + text, ghost) En attente (Clock or Pause icon + text, ghost). No plain text-only buttons.
Payment Modal: Centered overlay. Three options (Espèces, Crédit, Mixte) as rows with hairline separators. Cash input calculates "Monnaie à rendre". Confirm: black primary. Cancel: ghost.
STOCK (/stock)
Header: "Gestion du Stock" (text-2xl font-bold). Subtitle: "16 produits — 2 en rupture" (text-[13px] text-[#777]).
Top right: "Importer Excel" (ghost button with Upload icon) + "Ajouter un produit" (primary black with Plus icon).
Filter bar (flex gap-3):
code
Search (Search icon).
Category dropdown (Tous).
Stock status dropdown (Tous).
Image / List toggle (Image / Grid icons).
Grid view (grid-cols-4 gap-5): Same vertical product cards as POS. Image mandatory. Category, name, price, quantity pill (colored text).
List view: Table with small square thumbnail (w-12 h-12 rounded-[6px]), Référence, Désignation, Catégorie, Prix d'achat, Prix vente, Quantité (colored text pill), Actions (Eye, Edit, Trash2 — monochrome).
Add Product Modal (max-w-2xl): Two columns. Fields: Désignation, Référence, Code-barres (ScanLine icon input), Catégorie, Fournisseur, Prix d'achat, Prix de vente, Marge (auto-calc, text-[11px] text-[#999]), Quantité, Unité (dropdown: Pièce, Kg, L, etc.), Stock minimum, Date d'expiration. Image upload preview (default placeholder if none). Variant toggle shows attribute rows. Save black / Cancel ghost.
Excel Import Demo: Clicking "Importer Excel" triggers hidden . On selection, simulate import: inject 3 mock products from a hardcoded import array into the state, refresh grid, show brief success message: "Importation réussie — 3 produits ajoutés".
OPÉRATEURS (/operateurs)
Header: "Opérateurs" (text-2xl font-bold).
Navigation (underlined text tabs — exactly like your image):
"Ajouter un client" (Plus icon + text, primary black if Clients active).
"Ajouter un fournisseur" (Plus icon + text, primary black if Fournisseurs active).
Table (w-full): Nom, Téléphone, Adresse, Volume (DA), Solde (dot green if 0, dot red if <0), Actions (Eye, Edit, Trash2).
Detail (click or Eye): Slide-over or large modal. Client header info. Balance displayed prominently. "Régler une dette" button (black primary) opens small payment modal (amount input). Transaction history table below.
DÉPENSES (/depenses)
Opérateurs: Two cards side-by-side — "Top Débiteurs" (ranked list) and "Top Fournisseurs" (ranked).
Zakat: Card with stock value display, Nissab input (970 000 DA default). If value > threshold: result 2.5% in large bold (text-3xl). Else: muted text "Le seuil du Nissab n'est pas atteint".
Diagramme: Bar chart (BarChart), toggle 6 mois | 12 mois | Année (text with underline active). Two series possible but keep simple — single series or two with different shades.
PARAMÈTRES (/parametres)
Activation: Machine serial (font-mono text-[11px] bg-[#F8F8F6] px-3 py-2 rounded-[6px]). Key input. Status display: "Version d'essai — 5 jours restants" (warning text) OR "Licence activée" (text-green-600 with CheckCircle icon).
CRITICAL BEHAVIOR & DATA RULES
code
All buttons open working state-based modals.
POS cart updates live; quantity +/- works; X removes; total calculates.
Product images mandatory in Stock and POS grid. Default placeholder: bg-[#F5F3F0] + initial letter (Inter light, #CCC, text-5xl).
Excel import is a working demo: file picker → injects 3 mock products.
Client/Fournisseur add buttons are visible and open real forms.
Period total displayed prominently in Dépenses for both tabs.
Sidebar collapsible via chevron toggle (72px collapsed, 240px expanded).
All numeric formatting via formatDA(n) → "X XXX DA".
Desktop only (min-w-[1280px]). No mobile.
No emojis. Only lucide-react icons (Search, ScanLine, ShoppingCart, Plus, Trash2, Edit, Eye, Clock, Upload, Check, ChevronLeft, etc.).
All text in French. No English UI strings.
Generate the complete folder structure, all components, all pages, all mock data, and all working state. Build it.