/* =====================================================================
   Ordo. - Feuille de style
   ===================================================================== */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --brand: #ff6a00; --brand-600: #e85d00; --brand-700: #c24e00; --brand-50: #fff4ec; --brand-100: #ffe4cf;
  --ink: #0f172a; --ink-2: #1e293b; --text: #0f172a; --text-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-2: #f1f5f9; --bg: #f7f7f5; --card: #ffffff;
  --green: #059669; --green-600: #047857; --green-50: #ecfdf5;
  --red: #dc2626; --red-50: #fef2f2; --yellow: #f59e0b; --yellow-50: #fffbeb; --blue: #2563eb; --blue-50: #eff6ff;
  /* anciens noms gardés pour compatibilité */
  --orange: var(--brand); --orange-d: var(--brand-600); --green-d: var(--green-600);
  --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 12px -2px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 24px 48px -16px rgba(15,23,42,.25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--brand-600); text-decoration: none; font-weight: 600; }
a:hover { color: var(--brand-700); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 1.75rem; font-weight: 800; } h2 { font-size: 1.2rem; font-weight: 750; } h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 1rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 1.25rem; }
.narrow { max-width: 480px; }
::selection { background: var(--brand-100); }

/* ---------------------------------------------------------------- Logo */
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 850; font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink); }
.brand::before { content: ''; width: 30px; height: 30px; border-radius: 9px; background: url('/icon.svg') center/cover; flex: none; margin-right: .5rem; }
.brand span { color: var(--brand); }
a.brand:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Barre du haut */
.topbar { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); color: var(--text); padding: .7rem 1.25rem; display: flex; align-items: center; gap: .9rem;
  position: sticky; top: 0; z-index: 20; min-height: 60px; }
.topbar .spacer { flex: 1; }
.topbar a:not(.btn):not(.brand), .topbar button.link { color: var(--text-2); font-weight: 600; font-size: .92rem; }
.topbar a:not(.btn):not(.brand):hover { color: var(--ink); }
.topbar .small { color: var(--muted); }
.topbar .btn.dark { background: var(--line-2); color: var(--ink); }
.topbar .btn.dark:hover { background: var(--line); }
.topbar .btn.ghost { color: var(--ink) !important; }
.badge-conn { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge-conn.on { background: var(--green-50); color: var(--green-600); } .badge-conn.off { background: var(--red-50); color: var(--red); }

/* ---------------------------------------------------------------- Cartes */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 1.25rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid > .card + .card, .grid > .card { margin-top: 0; }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpi { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; }
.kpi .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .82rem; font-weight: 500; margin-top: .15rem; }

/* ---------------------------------------------------------------- Formulaires */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--text-2); }
input, select, textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem;
  background: #fff; font-family: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #cbd5e1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,106,0,.14); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
input:disabled, select:disabled { background: var(--line-2); color: var(--muted); }
.field { margin-bottom: 1rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; color: var(--text-2); cursor: pointer; }

/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: var(--radius-sm);
  padding: .72rem 1.1rem; font-size: .97rem; font-weight: 700; cursor: pointer; background: var(--line-2); color: var(--ink);
  text-decoration: none; font-family: inherit; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--line); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.15); }
.btn.primary:hover { background: var(--brand-600); color: #fff; }
.btn.green { background: var(--green); color: #fff; } .btn.green:hover { background: var(--green-600); color: #fff; }
.btn.red { background: var(--red); color: #fff; } .btn.red:hover { background: #b91c1c; color: #fff; }
.btn.dark { background: var(--ink); color: #fff; } .btn.dark:hover { background: var(--ink-2); color: #fff; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #cbd5e1; background: #fff; }
.btn.sm { padding: .45rem .75rem; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: .95rem 1.4rem; font-size: 1.06rem; border-radius: 12px; }
.btn.xl { padding: 1.05rem 1.7rem; font-size: 1.1rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.white { background: #fff; color: var(--ink); } .btn.white:hover { background: var(--brand-50); }

/* ---------------------------------------------------------------- Onglets */
.tabs { display: flex; gap: .25rem; overflow-x: auto; padding: .6rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 60px; z-index: 15; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: .55rem .95rem; border-radius: 99px; font-weight: 600; font-size: .92rem;
  cursor: pointer; white-space: nowrap; color: var(--muted); font-family: inherit; transition: background .15s, color .15s; }
.tabs button:hover { background: var(--line-2); color: var(--ink); }
.tabs button.active { background: var(--ink); color: #fff; }
.tabs .count { background: var(--red); color: #fff; border-radius: 99px; padding: .05rem .45rem; font-size: .72rem; margin-left: .3rem; font-weight: 700; }

/* ---------------------------------------------------------------- Tableaux */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; font-weight: 700; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: .4rem .6rem; }

/* ---------------------------------------------------------------- Pastilles */
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--text-2); white-space: nowrap; }
.pill.green { background: var(--green-50); color: var(--green-600); } .pill.orange { background: var(--brand-50); color: var(--brand-700); }
.pill.red { background: var(--red-50); color: var(--red); } .pill.blue { background: var(--blue-50); color: var(--blue); }
.pill.gray { background: var(--line-2); color: var(--text-2); }

/* ---------------------------------------------------------------- Notifications */
#toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
#toast .t { background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 92vw; animation: toastIn .2s ease-out; }
#toast .t.err { background: var(--red); } #toast .t.ok { background: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- Fenêtre modale */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: #fff; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 1.4rem; box-shadow: var(--shadow-lg); animation: up .2s ease-out; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(24px); opacity: .6; } }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 22px; } }

/* =====================================================================
   ÉCRAN CAISSE
   ===================================================================== */
.start-overlay { position: fixed; inset: 0; background: radial-gradient(circle at 50% 30%, #1e293b, #0b1120); color: #fff; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 1rem; }
.start-overlay h1 { color: #fff; font-size: 2rem; }
.start-overlay .btn { font-size: 1.3rem; padding: 1.2rem 2.2rem; border-radius: 16px; box-shadow: 0 0 0 8px rgba(255,106,0,.18); }
.alarm-banner { background: var(--red); color: #fff; padding: .85rem 1.25rem; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: .8rem; }
.alarm-banner.urgent { animation: flash .5s infinite; }
body.alarm .board-col.new { animation: glow 1s infinite; }
@keyframes flash { 50% { background: #7f1d1d; } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px var(--red); } }
.board { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); padding: 1.25rem; }
.board-col { background: #eeeeec; border-radius: 18px; padding: .8rem; min-height: 140px; }
.board-col > h3 { display: flex; justify-content: space-between; align-items: center; padding: .2rem .3rem .5rem; font-size: .95rem; }
.order { background: #fff; border-radius: 14px; padding: .9rem 1rem; margin-bottom: .7rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-left: 5px solid var(--line); }
.order.st-nouvelle { border-left-color: var(--red); }
.order.st-nouvelle.blink { animation: blink 1s infinite; }
.order.st-en_cours { border-left-color: var(--yellow); }
.order.st-servie { border-left-color: var(--green); }
@keyframes blink { 50% { background: var(--red-50); } }
.order .head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.order .tbl { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.order ul { margin: .5rem 0; padding-left: 1.1rem; }
.order li { margin: .1rem 0; }
.order .meta { font-size: .8rem; color: var(--muted); }
.order .actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.call { background: var(--yellow-50); border: 1px solid #fde68a; border-radius: 14px; padding: .8rem 1rem; margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: .6rem; }
.call.addition { background: var(--blue-50); border-color: #bfdbfe; }

/* =====================================================================
   MENU CLIENT
   ===================================================================== */
.hero { background: linear-gradient(135deg, var(--brand) 0%, #ff8c32 60%, #ffa95a 100%); color: #fff; padding: 1.6rem 1.25rem 1.4rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero h1 { margin: 0; color: #fff; font-size: 1.6rem; }
.hero .tbl { opacity: .95; margin-top: .35rem; font-weight: 600; display: inline-block; background: rgba(255,255,255,.2); padding: .2rem .7rem; border-radius: 99px; font-size: .9rem; }
.cats { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 1.25rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; padding: .45rem .9rem; border-radius: 99px; background: var(--line-2); color: var(--ink); font-weight: 600; font-size: .88rem; }
.cats a:hover { background: var(--brand-50); color: var(--brand-700); }
.prod { display: flex; gap: .9rem; align-items: center; background: #fff; padding: .85rem; border-radius: 14px; margin-bottom: .6rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prod img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; background: var(--line-2); }
.prod .info { flex: 1; min-width: 0; }
.prod .name { font-weight: 700; }
.prod .price { color: var(--brand-600); font-weight: 800; margin-top: .1rem; }
.prod.out { opacity: .5; }
.qty { display: flex; align-items: center; gap: .45rem; }
.qty button { width: 38px; height: 38px; border-radius: 50%; border: 0; font-size: 1.3rem; font-weight: 800; cursor: pointer; background: var(--line-2); color: var(--ink); display: grid; place-items: center; font-family: inherit; }
.qty button.plus { background: var(--brand); color: #fff; box-shadow: 0 4px 10px -2px rgba(255,106,0,.45); }
.qty span { min-width: 1.4rem; text-align: center; font-weight: 800; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: .8rem 1.25rem calc(.8rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 30; }
.cartbar .btn { box-shadow: 0 10px 24px -8px rgba(255,106,0,.6); }
.pad-bottom { padding-bottom: 110px; }
.fab-row { display: flex; gap: .5rem; padding: .9rem 1.25rem .3rem; }
.fab-row .btn { font-size: .92rem; }

/* Statut client */
.steps { display: flex; justify-content: space-between; gap: .35rem; margin: .5rem 0 1.2rem; }
.steps div { flex: 1; text-align: center; padding: .65rem .2rem; border-radius: 12px; background: var(--line-2); font-weight: 700; font-size: .82rem; color: var(--muted); }
.steps div.done { background: var(--green); color: #fff; }
.steps div.cur { background: var(--brand); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,106,0,.18); } }

/* =====================================================================
   PAGE D'ACCUEIL
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(226,232,240,.7); }
.site-header .inner { max-width: 1160px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a { color: var(--text-2); font-weight: 600; font-size: .93rem; }
.site-header nav a:hover { color: var(--ink); }
.site-header .spacer { flex: 1; }
@media (max-width: 760px) { .site-header nav, .site-header .hide-sm { display: none; } }

.lp-hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 85% -10%, rgba(255,106,0,.16), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, rgba(5,150,105,.10), transparent 60%), #fffdfa; }
.lp-hero .inner { max-width: 1160px; margin: 0 auto; padding: 4.5rem 1.25rem 4rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .lp-hero .inner { grid-template-columns: 1fr; padding-top: 2.5rem; gap: 2.5rem; } }
@media (max-width: 560px) { .lp-hero .row .btn { width: 100%; } .lp-hero .lead { font-size: 1.05rem; } .eyebrow { font-size: .7rem; letter-spacing: .1em; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: var(--ink); box-shadow: var(--shadow-sm); }
.eyebrow b { background: var(--brand); color: #fff; padding: .15rem .55rem; border-radius: 99px; letter-spacing: .02em; font-size: .72rem; }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; margin: 1.1rem 0 1rem; font-weight: 850; }
.lp-hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.lp-hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 540px; margin-bottom: 1.8rem; }
.trust { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; color: var(--text-2); font-size: .9rem; font-weight: 500; }
.trust span::before { content: '✓'; color: var(--green); font-weight: 900; margin-right: .35rem; }

/* Maquette téléphone + caisse */
.mock { position: relative; height: 520px; }
@media (max-width: 900px) { .mock { height: 470px; max-width: 440px; margin: 0 auto; width: 100%; } }
.phone { position: absolute; left: 6%; top: 0; width: 255px; height: 510px; background: var(--ink); border-radius: 40px; padding: 11px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone .screen { width: 100%; height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden; }
.phone .ph-hero { background: linear-gradient(135deg, var(--brand), #ff9a45); color: #fff; padding: 30px 16px 16px; }
.phone .ph-hero b { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.phone .ph-hero small { background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 99px; font-size: .7rem; font-weight: 600; }
.phone .ph-item { display: flex; align-items: center; gap: 10px; background: #fff; margin: 9px 10px 0; padding: 10px; border-radius: 12px; border: 1px solid var(--line); font-size: .78rem; }
.phone .ph-item .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); display: grid; place-items: center; font-size: 1.05rem; }
.phone .ph-item div { flex: 1; } .phone .ph-item div b { display: block; font-size: .8rem; } .phone .ph-item div span { color: var(--brand-600); font-weight: 800; }
.phone .ph-item i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.phone .ph-cta { margin: 14px 10px 0; background: var(--brand); color: #fff; text-align: center; padding: 11px; border-radius: 12px; font-weight: 800; font-size: .8rem; box-shadow: 0 8px 16px -6px rgba(255,106,0,.6); }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: .9rem 1rem; }
.float-card.ticket { right: 0; top: 70px; width: 250px; border-left: 5px solid var(--red); animation: bob 4s ease-in-out infinite; }
.float-card.ticket .ring { display: flex; align-items: center; gap: .5rem; color: var(--red); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.float-card.ticket .ring::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: ping 1.2s infinite; }
.float-card.ticket h4 { margin: .4rem 0 .2rem; font-size: 1.15rem; letter-spacing: -.02em; }
.float-card.ticket ul { margin: 0 0 .7rem; padding-left: 1rem; font-size: .85rem; color: var(--text-2); }
.float-card.ticket .b { display: flex; gap: .4rem; } .float-card.ticket .b span { flex: 1; text-align: center; font-size: .75rem; font-weight: 700; padding: .45rem; border-radius: 8px; }
.float-card.stock { right: 8%; bottom: 20px; width: 215px; animation: bob 5s ease-in-out infinite reverse; }
.float-card.stock .l { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.float-card.stock .v { font-size: 1.25rem; font-weight: 800; margin: .15rem 0 .4rem; }
.bar { height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .bar i { display: block; height: 100%; width: 72%; background: var(--green); border-radius: 99px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 100% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }

.for-who { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.for-who .inner { max-width: 1160px; margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: .95rem; }

.section { max-width: 1160px; margin: 0 auto; padding: 5rem 1.25rem; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head .kicker { color: var(--brand-600); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.035em; margin: .6rem 0 .8rem; font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

.steps-lp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
@media (max-width: 900px) { .steps-lp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-lp { grid-template-columns: 1fr; } }
.step-lp { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; position: relative; box-shadow: var(--shadow-sm); }
.step-lp::before { counter-increment: s; content: counter(s); position: absolute; top: 1.3rem; right: 1.3rem; font-weight: 850; font-size: 2.6rem; color: var(--line-2); line-height: 1; }
.step-lp .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--brand-50); margin-bottom: 1rem; }
.step-lp h3 { font-size: 1.08rem; } .step-lp p { color: var(--text-2); font-size: .94rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .9rem; }
.feature h3 { font-size: 1.05rem; } .feature p { color: var(--text-2); font-size: .94rem; margin: 0; }
.ico.o { background: var(--brand-50); } .ico.g { background: var(--green-50); } .ico.b { background: var(--blue-50); } .ico.y { background: var(--yellow-50); } .ico.r { background: var(--red-50); }

.dark-band { background: var(--ink); color: #fff; }
.dark-band .section-head h2 { color: #fff; } .dark-band .section-head p { color: #cbd5e1; }
.dark-band .section-head .kicker { color: #ffb37a; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 20px; padding: 1.6rem; }
.pillar .big { font-size: 1.5rem; font-weight: 850; letter-spacing: -.03em; color: #fff; margin-bottom: .5rem; }
.pillar .big span { color: var(--brand); }
.pillar p { color: #cbd5e1; margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); text-align: left; }
.price-card h3 { font-size: 1rem; color: var(--text-2); font-weight: 700; }
.price-card .p { font-size: 2.1rem; font-weight: 850; letter-spacing: -.04em; color: var(--ink); margin: .3rem 0 0; }
.price-card .p small { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.price-card .desc { color: var(--muted); font-size: .88rem; margin: .3rem 0 1rem; min-height: 2.6em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .92rem; flex: 1; }
.price-card li { padding: .35rem 0 .35rem 1.6rem; position: relative; color: var(--text-2); }
.price-card li::before { content: '✓'; position: absolute; left: 0; top: .32rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: .7rem; font-weight: 900; display: grid; place-items: center; }
.price-card.best { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-lg); position: relative; }
.price-card.best h3, .price-card.best .p { color: #fff; } .price-card.best li { color: #e2e8f0; } .price-card.best .desc, .price-card.best .p small { color: #94a3b8; }
.price-card.best li::before { background: rgba(255,106,0,.2); color: #ffb37a; }
.price-card .tag { position: absolute; top: -12px; left: 1.6rem; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .7rem; border-radius: 99px; letter-spacing: .04em; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; margin-bottom: .7rem; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: .8rem 0 0; }

.cta-band { max-width: 1160px; margin: 0 auto 5rem; padding: 0 1.25rem; }
.cta-band .box { background: linear-gradient(135deg, var(--brand) 0%, #ff8a2b 100%); border-radius: 28px; padding: 3.5rem 2rem; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band .box::before, .cta-band .box::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-band .box::before { width: 300px; height: 300px; left: -80px; top: -120px; } .cta-band .box::after { width: 220px; height: 220px; right: -50px; bottom: -110px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.035em; position: relative; }
.cta-band p { color: #fff3e8; font-size: 1.1rem; position: relative; margin-bottom: 1.6rem; }
.cta-band .btn { position: relative; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer .inner { max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* =====================================================================
   PAGES DE CONNEXION / INSCRIPTION
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none !important; } }
.auth-side { background: radial-gradient(600px 400px at 100% 0%, rgba(255,106,0,.35), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(5,150,105,.25), transparent 60%), var(--ink);
  color: #fff; padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 0; height: 100vh; }
.auth-side .brand { color: #fff; } .auth-side .brand:hover { color: #fff; }
.auth-side h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 1.2rem; font-weight: 800; }
.auth-side h2 span { color: var(--brand); }
.auth-side ul { list-style: none; padding: 0; margin: 0; }
.auth-side li { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; color: #e2e8f0; }
.auth-side li b { color: #fff; display: block; }
.auth-side li .i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1rem; }
.auth-side .foot { color: #94a3b8; font-size: .85rem; }
.auth-main { display: flex; flex-direction: column; padding: 1.5rem; }
.auth-main .top { display: flex; justify-content: space-between; align-items: center; }
.auth-main .top .brand { visibility: hidden; }
@media (max-width: 900px) { .auth-main .top .brand { visibility: visible; } .auth-box { margin: 1.5rem auto auto; padding-top: 1rem; } }
@media (max-width: 480px) { .auth-main .top .hide-xs { display: none; } }
.auth-main .top a:not(.brand) { font-size: .92rem; color: var(--text-2); }
.auth-box { width: 100%; max-width: 460px; margin: auto; padding: 2rem 0; }
.auth-box h1 { font-size: 1.9rem; letter-spacing: -.035em; margin-bottom: .4rem; }
.auth-box > p.muted { margin-bottom: 1.6rem; }
.form-section { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.4rem 0 .9rem; display: flex; align-items: center; gap: .7rem; }
.form-section::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-section:first-of-type { margin-top: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.legal { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--line-2); border-radius: 12px; padding: 4px; margin-bottom: 1.5rem; }
.segmented button { border: 0; background: transparent; padding: .65rem; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--muted); cursor: pointer; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.divider { text-align: center; color: var(--faint); font-size: .85rem; margin: 1.4rem 0; }

/* PIN */
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.staff-list button { padding: 1rem .6rem; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .98rem; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: .35rem; transition: border-color .15s, transform .1s, box-shadow .15s; color: var(--ink); }
.staff-list button:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.staff-list button.sel { border-color: var(--brand); background: var(--brand-50); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--brand), #ffa95a); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 300px; margin: 1.2rem auto; }
.pinpad button { padding: 1.05rem; font-size: 1.5rem; font-weight: 700; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; font-family: inherit; color: var(--ink); transition: background .1s; }
.pinpad button:active { background: var(--line-2); }
.pin-dots { display: flex; justify-content: center; gap: .8rem; min-height: 1.2rem; margin: 1rem 0 .4rem; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.pin-dots i.on { background: var(--brand); }

/* ---------------------------------------------------------------- Impression QR */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; padding: 1.25rem; max-width: 1160px; margin: 0 auto; }
.qr-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); break-inside: avoid; page-break-inside: avoid;
  display: flex; flex-direction: column; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qr-top { background: linear-gradient(135deg, var(--brand), #ff8c32); color: #fff; font-weight: 800; font-size: 1.05rem; padding: .75rem 1rem; letter-spacing: -.01em; }
.qr-body { padding: 1.1rem 1.2rem .9rem; flex: 1; }
.qr-title { font-size: 1.85rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.qr-sub { color: var(--brand-600); font-weight: 700; margin: .35rem 0 .9rem; font-size: .95rem; }
.qr-frame { display: inline-block; padding: .7rem; border: 3px solid var(--ink); border-radius: 18px; background: #fff; }
.qr-frame img { display: block; width: 170px; height: 170px; }
.qr-table { margin-top: .8rem; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.qr-table span { color: var(--muted); font-weight: 700; font-size: 1rem; }
.qr-steps { display: flex; justify-content: center; gap: .9rem; margin: .8rem 0 .5rem; font-size: .78rem; font-weight: 700; color: var(--text-2); }
.qr-steps span { display: inline-flex; align-items: center; gap: .3rem; }
.qr-steps b { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: .7rem; }
.qr-help { font-size: .78rem; color: var(--muted); }
.qr-foot { border-top: 1px dashed var(--line); padding: .5rem; font-size: .72rem; color: var(--faint); font-weight: 600; }
.qr-foot i { color: var(--brand); font-style: normal; }
@media print {
  @page { size: A4; margin: 10mm; }
  .no-print { display: none !important; }
  body { background: #fff; }
  .qr-sheet { grid-template-columns: repeat(2, 1fr); gap: 8mm; padding: 0; max-width: none; }
  .qr-card { box-shadow: none; border: 1px solid #cbd5e1; }
}

/* Petits écrans : barre du haut plus compacte */
@media (max-width: 480px) {
  .topbar { gap: .5rem; padding: .6rem .8rem; }
  .badge-conn { font-size: 0; padding: .35rem; }
  .badge-conn::before { content: '●'; font-size: .8rem; }
  .topbar .btn.sm { padding: .4rem .55rem; }
}

/* Numéros des serveurs + barre équipe (caisse) */
.num-badge { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; border-radius: 7px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: middle; }
.team-bar { display: flex; gap: .5rem; align-items: center; overflow-x: auto; padding: .6rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.team-bar::-webkit-scrollbar { display: none; }
.team-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .4rem .3rem .3rem; border-radius: 99px; background: var(--line-2); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.team-chip i { font-style: normal; font-weight: 800; padding: .05rem .45rem; border-radius: 99px; background: #fff; font-size: .75rem; }
.team-chip.green i { color: var(--green-600); } .team-chip.orange i { color: var(--brand-700); } .team-chip.red { background: var(--red-50); } .team-chip.red i { color: var(--red); }
.team-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.team-pick button { text-align: left; padding: .65rem .7rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; font-weight: 700; color: var(--ink); }
.team-pick button:hover { border-color: var(--brand); }
.team-pick button small { display: block; color: var(--muted); font-weight: 500; margin-top: .2rem; }
.team-pick button.full { background: var(--red-50); border-color: #fecaca; }
.my-load { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 99px; font-weight: 700; font-size: .85rem; background: var(--green-50); color: var(--green-600); }
.my-load.full { background: var(--red-50); color: var(--red); }
.alert-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.25rem; background: var(--yellow-50); border-bottom: 1px solid #fde68a; font-weight: 600; font-size: .92rem; }

/* Les messages ne cachent pas le bouton du bas */
body.pad-bottom #toast { bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

/* Vue des tables (caisse) */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.table-tile { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: .9rem 1rem; cursor: pointer; font-family: inherit; color: var(--ink);
  min-height: 118px; transition: transform .1s, box-shadow .15s; border-top-width: 5px; }
.table-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.table-tile .tt-name { font-size: 1.1rem; letter-spacing: -.02em; }
.table-tile .tt-state { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-tile .tt-total { font-size: 1.45rem; font-weight: 850; letter-spacing: -.03em; margin-top: .3rem; }
.table-tile.free { background: #fafafa; border-top-color: var(--line); }
.table-tile.new { border-top-color: var(--red); } .table-tile.new .tt-state { color: var(--red); }
.table-tile.cur { border-top-color: var(--yellow); } .table-tile.cur .tt-state { color: #b45309; }
.table-tile.served { border-top-color: var(--green); } .table-tile.served .tt-state { color: var(--green-600); }

/* Rapports */
.trend { font-size: .75rem; font-weight: 800; padding: .1rem .45rem; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.trend.up { background: var(--green-50); color: var(--green-600); } .trend.down { background: var(--red-50); color: var(--red); }
.days-chart { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 1.2rem; overflow-x: auto; }
.days-chart .day { flex: 1; min-width: 26px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.days-chart .day i { width: 100%; max-width: 38px; background: linear-gradient(180deg, #ff8c32, var(--brand)); border-radius: 6px 6px 2px 2px; }
.days-chart .amt { font-size: .65rem; color: var(--muted); font-weight: 700; }
.days-chart .lbl { font-size: .68rem; color: var(--muted); }

.rp-row { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rp-row::-webkit-scrollbar { display: none; }
.rp-custom { margin-top: .5rem; }
@media (max-width: 640px) {
  .topbar #estName, .topbar #me { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { padding: .8rem .85rem; }
  .kpi .v { font-size: 1.15rem; }
  .rp-dates { display: none; }
  .container { padding: 1rem .9rem; }
}

/* Service du jour */
.start-info { min-height: 1.6rem; }
.resp-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; background: var(--green-50); color: var(--green-600); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.svc-banner { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; flex-wrap: wrap; }
.svc-banner.on { background: var(--green-50); color: var(--green-600); border: 1px solid #a7f3d0; }
.svc-banner.off { background: var(--line-2); color: var(--text-2); border: 1px solid var(--line); }
@media (max-width: 640px) { .resp-chip { display: none; } }
.creds { margin-top: .9rem; display: grid; gap: .5rem; text-align: left; }
.creds input { background: #1e293b; border-color: #334155; color: #fff; }
.creds input::placeholder { color: #94a3b8; }

/* Justification des écarts d'inventaire */
.gap-why { display: grid; gap: .35rem; margin-top: .35rem; min-width: 220px; }
.gap-why select, .gap-why input { padding: .45rem .6rem; font-size: .88rem; }
.gap-why select { border-color: #fca5a5; }
.why { font-size: .82rem; } .why b { color: var(--ink); }

.code-chip { display: inline-block; min-width: 1.6rem; padding: .05rem .4rem; border-radius: 6px; background: var(--line-2); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 800; color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; vertical-align: middle; }
.code-chip:empty { display: none; }

.bell { position: relative; }
.bell .count { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; border-radius: 99px; padding: 0 .4rem; font-size: .7rem; font-weight: 800; }
.notice { padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line); margin-bottom: .5rem; }
.notice.unread { background: var(--brand-50); border-color: var(--brand-100); }
.cats a.active { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- Icônes */
svg.i { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none; vertical-align: -0.2em; display: inline-block; }
svg.i.emo { margin-right: .05em; }
.c-g { color: var(--green); } .c-r { color: var(--red); } .c-a { color: #d97706; } .c-y { color: #eab308; } .c-o { color: var(--brand); }
.c-b { color: var(--blue); } .c-m { color: var(--faint); }
.btn svg.i { width: 1.1em; height: 1.1em; }
h1 svg.i, h2 svg.i, h3 svg.i { color: var(--brand); }

/* =====================================================================
   V2 : coque de l'espace gestion (menu latéral) + finitions générales
   ===================================================================== */
:root { --bg: #f5f6f8; --line: #e8ebf0; --side: #0b1220; --side-2: #111a2e; }
body.shell-body { background: var(--bg); }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: #b4bdcc; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.side-logo { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 16px; }
.side .brand { color: #fff; font-size: 1.3rem; }
.side-close { display: none; background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.side-est { display: flex; align-items: center; gap: 10px; background: var(--side-2); border: 1px solid #1d2840; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.side-est .av, .side-me .pic { width: 36px; height: 36px; border-radius: 10px; background: #1e293b; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.side-est b, .side-me b { color: #fff; display: block; font-size: .88rem; line-height: 1.25; }
.side-est small, .side-me small { color: #8792a6; font-size: .76rem; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #5b6880; font-weight: 700; padding: 14px 10px 6px; }
.side nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent;
  color: #b4bdcc; font: 600 .92rem var(--font); cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.side nav button svg.i { width: 19px; height: 19px; color: #7d889c; }
.side nav button:hover { background: #141e33; color: #fff; }
.side nav button.active { background: rgba(255,106,0,.15); color: #fff; }
.side nav button.active svg.i { color: var(--brand); }
.side nav .count { margin-left: auto; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; padding: .05rem .45rem; border-radius: 99px; }
.side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid #1d2840; }
.side-me .pic { border-radius: 50%; background: linear-gradient(135deg, #ff8c32, var(--brand)); }
.side-out { background: none; border: 0; color: #8792a6; cursor: pointer; padding: 6px; border-radius: 8px; }
.side-out:hover { color: #fff; background: #141e33; }
.side-shade { display: none; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.page-head { display: flex; align-items: center; gap: 12px; padding: 22px 32px 6px; }
.page-head h1 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.page-head p { margin: 2px 0 0; font-size: .9rem; }
.page-head p::first-letter { text-transform: uppercase; }
.burger { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; place-items: center; cursor: pointer; color: var(--ink); }
.btn.icon-only { width: 42px; height: 42px; padding: 0; position: relative; }
.bell .count { position: absolute; top: -5px; right: -5px; }
.page { padding: 14px 32px 48px; }
.page > section { max-width: 1200px; }
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 8px 32px 0; padding: .7rem 1rem; border-radius: 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100); font-size: .9rem; flex-wrap: wrap; }
.shell-main .alarm-banner { margin: 8px 32px 0; border-radius: 12px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.side-open .side { transform: none; }
  body.side-open .side-shade { display: block; position: fixed; inset: 0; background: rgba(11,18,32,.5); z-index: 35; }
  .side-close { display: block; }
  .burger { display: grid; }
  .page-head { padding: 14px 16px 4px; }
  .page-head h1 { font-size: 1.3rem; }
  .page-head p { display: none; }
  .page { padding: 10px 14px 40px; }
  .plan-banner, .shell-main .alarm-banner { margin: 8px 14px 0; }
  .hide-sm { display: none; }
}

/* Cartes et chiffres clés, version 2 */
.card { border-radius: 16px; border-color: var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card h2 { font-size: 1.05rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.kpi { border-radius: 16px; border-color: var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: 1rem 1.1rem; position: relative; }
.kpi .v { font-size: 1.55rem; letter-spacing: -.035em; }
.kpi .ki { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.kpi .ki svg.i { width: 18px; height: 18px; }
.ki.o { background: var(--brand-50); color: var(--brand); } .ki.g { background: var(--green-50); color: var(--green); } .ki.r { background: var(--red-50); color: var(--red); }
.ki.b { background: var(--blue-50); color: var(--blue); } .ki.v { background: #f5f3ff; color: #7c3aed; } .ki.y { background: var(--yellow-50); color: #d97706; }
.kpi:has(.ki) .l { padding-right: 2.4rem; }
th { background: transparent; border-bottom: 1px solid var(--line); }
.table-wrap table tr:hover td { background: #fafbfc; }

.donut-wrap { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.legend-row { display: flex; align-items: center; gap: .55rem; margin: .45rem 0; font-size: .9rem; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-row b { margin-left: auto; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.hbars .row-h { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .6rem; align-items: center; margin: .3rem 0; font-size: .82rem; }
.hbars .track { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.hbars .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffa25c, var(--brand)); }
.who { display: flex; align-items: center; gap: .6rem; }
.who .pic { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .78rem; flex: none; }
.who small { display: block; color: var(--muted); font-size: .76rem; }
.kpis-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kpi .l { color: var(--muted); font-weight: 600; font-size: .84rem; margin: 0 0 .5rem; }
.kpi-sub { font-size: .78rem; color: var(--muted); margin-top: .35rem; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 1rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.vbars .vb { flex: 1; min-width: 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.vbars .vb i { width: 100%; max-width: 36px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #ffa25c, var(--brand)); }
.vbars .vb i.lo { background: #ffd8bd; }
.vbars .amt { font-size: .66rem; color: var(--muted); font-weight: 700; }
.vbars .lbl { position: absolute; bottom: -1.4rem; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.vbars + * { margin-top: 1.8rem; }
.vbars { margin-bottom: 1.6rem; }
.mini-bar { display: inline-block; vertical-align: middle; width: 90px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.welcome-card { border: 1.5px solid var(--brand-100); background: linear-gradient(180deg, #fff, var(--brand-50)); margin-bottom: 1rem; }
.svc-banner { border-radius: 14px; padding: .9rem 1rem; }

.grid2 > .card, .grid.wide > .card { margin-top: 0; }
.vbars { height: 220px; align-items: stretch; padding-top: .4rem; border-bottom: 0; margin-bottom: 0; }
.vbars .vb { justify-content: flex-end; }
.vbars .bar-area { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.vbars .lbl { position: static; padding-top: .35rem; }
.vbars + * { margin-top: 0; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: .45rem .8rem; border-radius: 8px; font: 600 .86rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); } .seg button.on { background: var(--ink); color: #fff; }
.period-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.period-dates input[type=date] { width: 150px; padding: .45rem .6rem; font-size: .88rem; }
@media (max-width: 640px) { .period-dates { display: none; } }
.svc-banner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

@media (min-width: 961px) { .shell { background: linear-gradient(90deg, var(--side) 252px, transparent 252px); } }
.legend-row { white-space: nowrap; }
.kpi .v { overflow-wrap: normal; }

.empty-col { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.2rem 1rem; color: var(--muted); font-size: .9rem; text-align: center; }
.empty-col svg.i { width: 30px; height: 30px; opacity: .45; }

.pay-first { margin: .8rem 1rem 0; padding: .7rem .9rem; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-weight: 600; font-size: .92rem; display: flex; gap: .5rem; align-items: center; }

/* ---------- Aide (menu latéral) */
.side-help { margin-top: 4px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; color: #b4bdcc; font-weight: 600; font-size: .93rem; text-decoration: none; }
.side-link:hover { background: #141e33; color: #fff; }
.side-link svg.i { width: 19px; height: 19px; color: #7d889c; }
/* ---------- Démo */
.demo-dock { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.demo-dock.lift { bottom: 92px; }
.demo-fab { display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 99px; padding: .6rem .95rem; background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff; font: 600 .9rem var(--font); cursor: pointer; box-shadow: 0 10px 28px rgba(124,58,237,.35); }
.demo-fab svg.i { width: 17px; height: 17px; }
.demo-panel { width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 24px 60px rgba(15,23,42,.25); }
.demo-role { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .55rem .65rem; margin-bottom: .4rem; cursor: pointer; color: var(--ink); font: inherit; text-decoration: none; }
.demo-role:hover { border-color: #c4b5fd; background: #faf5ff; }
.demo-role.on { border-color: #7c3aed; background: #f5f3ff; }
.demo-role b { display: block; font-size: .92rem; } .demo-role small { color: var(--muted); font-size: .78rem; }
.demo-role .ri { width: 34px; height: 34px; border-radius: 10px; background: #f3e8ff; color: #7c3aed; display: grid; place-items: center; flex: none; }
.demo-role .ri svg.i { width: 18px; height: 18px; }
.demo-tip { display: flex; gap: .5rem; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: .55rem .65rem; font-size: .8rem; margin-top: .3rem; }
.demo-tip svg.i { flex: none; width: 16px; height: 16px; margin-top: 1px; }
@media print { .demo-dock { display: none; } }
/* ---------- Page formation */
.fm-body { background: #fff; }
.fm-hero { background: radial-gradient(1200px 400px at 80% -10%, #fff1e6, transparent), #fff; border-bottom: 1px solid var(--line); }
.fm-hero .inner { max-width: 1100px; margin: 0 auto; padding: 3.2rem 1.2rem 2.4rem; }
.fm-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; margin: .6rem 0 .5rem; }
.fm-hero h1 em { font-style: normal; color: var(--brand); }
.fm-hero .lead { max-width: 640px; color: var(--text-2); font-size: 1.08rem; }
.fm-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin-top: 1.6rem; }
.fm-roles a { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: .15s; }
.fm-roles a:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(255,106,0,.12); transform: translateY(-1px); }
.fm-roles span { font-size: 1.3rem; color: var(--brand); } .fm-roles span svg.i { width: 24px; height: 24px; }
.fm-roles small { color: var(--muted); }
.fm-note { margin-top: 1rem; }
.fm-main { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
.fm-sec { padding: 3rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.fm-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: .3rem 0 .6rem; }
.fm-tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .82rem; color: var(--brand-600, #c2410c); background: #fff4ec; border-radius: 99px; padding: .25rem .7rem; }
.fm-tag svg.i { width: 15px; height: 15px; }
.fm-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.fm-split.rev > figure { order: -1; }
.fm-flow { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.fm-flow li { counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.4rem; border: 1px solid var(--line); border-radius: 14px; background: #fafbfc; }
.fm-flow li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.fm-flow b { display: block; margin-bottom: .2rem; } .fm-flow span { color: var(--text-2); font-size: .93rem; }
.fm-steps { padding-left: 1.2rem; margin: .8rem 0; } .fm-steps li { margin: .45rem 0; color: var(--text-2); line-height: 1.5; } .fm-steps b { color: var(--ink); }
.fm-keep { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: .75rem .9rem; color: #14532d; font-size: .93rem; }
.fm-keep b { display: block; margin-bottom: .15rem; }
.fm-phone { margin: 0; justify-self: center; } .fm-phone img { width: 290px; max-width: 100%; border-radius: 34px; border: 9px solid #0f172a; box-shadow: 0 30px 60px rgba(15,23,42,.22); display: block; }
.fm-shot { margin: 0; } .fm-shot img, .fm-wide img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15,23,42,.14); display: block; }
.fm-wide { margin: 1rem 0 1.4rem; }
.fm-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: .8rem 0; }
.fm-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: #fff; } .fm-card h3 { margin: 0 0 .35rem; font-size: 1.02rem; display: flex; gap: .4rem; align-items: center; } .fm-card p { margin: 0; color: var(--text-2); font-size: .93rem; }
.fm-memo .fm-card { border-width: 2px; border-color: #ffd7bd; }
.fm-q { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: .5rem 0; background: #fff; }
.fm-q summary { font-weight: 700; cursor: pointer; } .fm-q p { color: var(--text-2); margin: .5rem 0 0; }
.fm-cta { text-align: center; margin: 3rem 0; padding: 2.6rem 1.2rem; border-radius: 22px; background: linear-gradient(135deg, #ff6a00, #f43f5e); color: #fff; }
.fm-cta h2 { color: #fff; margin: 0 0 .4rem; } .fm-cta p { opacity: .92; }
.fm-foot { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 2rem; }
@media (max-width: 860px) { .fm-split { grid-template-columns: 1fr; gap: 1.4rem; } .fm-split.rev > figure { order: 0; } }
@media print {
  .site-header, .fm-hero .row, .fm-cta, .fm-roles, .fm-note, .demo-dock, .fm-foot { display: none !important; }
  .fm-sec { padding: 1.2rem 0; break-inside: avoid-page; } .fm-hero .inner { padding: 1rem 0; }
  .fm-phone img { width: 200px; box-shadow: none; } .fm-shot img, .fm-wide img { box-shadow: none; }
  .fm-q { break-inside: avoid; } .fm-q p { display: block; }
}
.fm-ghost-w { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.55) !important; }
