/* =====================================================================
   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('/logo-anim.svg') center/cover; flex: none; margin-right: .5rem; box-shadow: 0 0 0 0 rgba(255,106,0,0); transition: box-shadow .3s, transform .3s; }
.brand:hover::before { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 18px 2px rgba(255,106,0,.45); }
.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; }

/* ---------- Choix de la langue */
.lang-sw { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; background: #fff; gap: 2px; flex: none; }
.lang-sw button { border: 0; background: transparent; font: 700 .74rem var(--font); color: var(--muted); padding: .28rem .55rem; border-radius: 99px; cursor: pointer; letter-spacing: .04em; }
.lang-sw button.on { background: var(--ink); color: #fff; }
.lang-sw.floating { position: fixed; top: 10px; right: 10px; z-index: 60; box-shadow: 0 6px 18px rgba(15,23,42,.15); }
.side-me + .lang-sw, .side .lang-sw { margin: 0 8px 8px; align-self: flex-start; background: #141e33; border-color: #1e293b; }
.side .lang-sw button.on { background: #fff; color: #0b1220; }
.site-header .lang-sw { margin-right: .4rem; }

/* =================================================================== SALLE DE SPORT */
img.av, span.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; color: #fff; font-weight: 800; background: #e2e8f0; }
.pill.violet { background: #f5f3ff; color: #7c3aed; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; text-align: left; }
.link-btn:hover b, .link-btn:hover { color: var(--brand-600, #c2410c); }
.mono { display: block; font-family: ui-monospace, monospace; background: #fff; border: 1px solid var(--line); padding: .5rem .7rem; border-radius: 10px; word-break: break-all; }
.modal.wide { max-width: 860px; }

/* ---------- Pointage du membre (téléphone) */
.pt-body { background: radial-gradient(900px 500px at 50% -10%, #1e293b, #0b1220); min-height: 100vh; color: #fff; }
.pt-wrap { max-width: 460px; margin: 0 auto; padding: max(1.2rem, env(safe-area-inset-top)) 1rem 2rem; }
.pt-head { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 1.2rem; }
.pt-logo { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), #f43f5e); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.pt-head h1 { font-size: 1.45rem; margin: 0; color: #fff; } .pt-clock { margin: 0; color: #94a3b8; font-size: .88rem; }
.pt-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 1.4rem; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.pt-card h2 { margin: 0 0 .3rem; }
.pt-pin { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }
.pt-result { border-radius: 24px; padding: 1.6rem 1.3rem; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.35); animation: up .25s ease-out; }
.pt-result.in { background: linear-gradient(160deg, #059669, #047857); }
.pt-result.out { background: linear-gradient(160deg, #2563eb, #1d4ed8); }
.pt-result.bad { background: linear-gradient(160deg, #dc2626, #b91c1c); }
.pt-big { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; }
.pt-sub { opacity: .92; margin: .3rem 0 1.1rem; font-size: 1.05rem; }
.pt-who { display: flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.14); border-radius: 18px; padding: .8rem; text-align: left; }
.pt-who img.av, .pt-who span.av { border: 3px solid rgba(255,255,255,.8); }
.pt-name { font-size: 1.3rem; font-weight: 800; } .pt-plan { font-size: .92rem; opacity: .95; margin-top: .15rem; }
.pt-plan .muted { color: rgba(255,255,255,.8); }
.pt-note { margin-top: .8rem; border-radius: 14px; padding: .75rem .9rem; font-size: 1rem; background: rgba(255,255,255,.16); }
.pt-note.pay { background: #fff; color: #9a3412; font-size: 1.1rem; }
.pt-note.warn { background: #fef3c7; color: #92400e; }
.pt-note.ok { background: rgba(255,255,255,.18); }

/* ---------- Écran d'accueil */
.acc-body { background: var(--bg, #f4f5f7); }
.acc-search { position: relative; display: flex; gap: .7rem; padding: .9rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.search-box { flex: 1; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 .8rem; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.search-box input { border: 0; outline: 0; padding: .75rem 0; width: 100%; font: inherit; background: transparent; box-shadow: none; }
.search-results { position: absolute; left: 1.25rem; right: 1.25rem; top: calc(100% - .3rem); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 30; max-height: 60vh; overflow-y: auto; padding: .4rem; }
.mrow { display: flex; align-items: center; gap: .7rem; width: 100%; border: 0; background: #fff; padding: .6rem .7rem; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); border-bottom: 1px solid #f1f5f9; }
.mrow:hover { background: #fff7f0; }
.mrow b { display: block; } .mrow small { color: var(--muted); font-size: .8rem; }
.mrow-r { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; justify-content: flex-end; max-width: 50%; }
.mrow-r small { width: 100%; text-align: right; }
.acc-main { padding: 1rem 1.25rem 2rem; }
.acc-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; margin-top: 1rem; align-items: start; }
.acc-grid .card { margin-top: 0; }
.acc-grid h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
@media (max-width: 1100px) { .acc-grid { grid-template-columns: 1fr 1fr; } .acc-feed { grid-column: 1 / -1; } }
@media (max-width: 720px) { .acc-grid { grid-template-columns: 1fr; } .acc-search { flex-wrap: wrap; } }
.due-row { display: flex; align-items: center; gap: .6rem; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .5rem; background: #fff; }
.due-row.acked { background: #fffbeb; border-color: #fde68a; }
.due-row b { display: block; } .due-row small { color: var(--muted); font-size: .8rem; }
.due-row .amt { font-size: 1.05rem; white-space: nowrap; }
.present-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.pres { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: .7rem .4rem; cursor: pointer; font: inherit; color: var(--ink); }
.pres:hover { border-color: var(--brand); }
.pres b { font-size: .88rem; } .pres small { font-size: .72rem; color: var(--muted); }
.dot-due { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #fff; }
.feed-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .2rem; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: .9rem; }
.feed-row:hover { background: #fafafa; }
.feed-t { font-variant-numeric: tabular-nums; font-weight: 700; width: 3rem; }
.feed-k { font-size: .78rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; white-space: nowrap; }
.feed-k.in { background: var(--green-50); color: var(--green-600); } .feed-k.out { background: var(--blue-50); color: var(--blue); }

/* ---------- Fiche membre et ventes */
.mb-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .8rem; }
.mb-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.debt-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--red-50); border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: .6rem .8rem; }
.ref-line { background: #faf5ff; border-radius: 10px; padding: .5rem .7rem; color: #5b21b6; }
.access-box { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0; }
.access-box > div { background: #0f172a; color: #fff; border-radius: 14px; padding: .8rem 1rem; }
.access-box small { display: block; color: #94a3b8; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.access-box b { font-size: 1.5rem; font-family: ui-monospace, monospace; letter-spacing: .05em; }
.big-amount { font-size: 1.8rem; font-weight: 900; letter-spacing: -.02em; margin: .2rem 0 .6rem; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.pay-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .9rem .6rem; font: 600 .95rem var(--font); cursor: pointer; text-align: left; display: flex; gap: .5rem; align-items: center; }
.pay-btn:hover { border-color: var(--brand); background: #fff7f0; }
.plan-pick { display: grid; gap: .5rem; margin: .6rem 0; }
.plan-opt { display: flex; align-items: center; gap: .7rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--brand); background: #fff7f0; }
.plan-opt span { flex: 1; } .plan-opt span b { display: block; } .plan-opt small { color: var(--muted); font-size: .8rem; }
.plan-opt .pp { white-space: nowrap; }
.ref-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: .6rem .7rem; margin-top: .4rem; }
.nm-photo { display: flex; gap: .9rem; align-items: flex-start; }
.photo-pick { width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; cursor: pointer; overflow: hidden; flex: none; background: #f8fafc; text-align: center; font-size: 1.6rem; }
.photo-pick small { display: block; font-size: .72rem; color: var(--muted); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.mini-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.mlist { padding: .6rem; }

/* ---------- Gestion : formules, QR */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.plan-card.off { opacity: .6; }
.plan-card h3 { margin: .2rem 0 0; } .pc-price { font-size: 1.5rem; font-weight: 900; } .pc-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.gqr-card .qr-img { width: min(320px, 100%); border: 1px solid var(--line); border-radius: 16px; padding: .6rem; background: #fff; }
.steps-list li { margin: .45rem 0; color: var(--text-2); }
.fm-feat { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fm-feat span { font-size: 1.3rem; color: var(--brand); } .fm-feat small { color: var(--muted); }

/* ---------- Affiche QR (impression A4) */
.qr-print-body { background: #e2e8f0; }
.qr-toolbar { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 1rem; }
.qr-poster { width: 210mm; min-height: 287mm; margin: 0 auto 2rem; background: #fff; padding: 18mm 16mm; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6mm; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.qp-gym { font-size: 26pt; font-weight: 800; color: #0f172a; }
.qp-title { font-size: 46pt; line-height: 1; font-weight: 900; letter-spacing: -.02em; color: var(--brand); }
.qp-sub { font-size: 18pt; color: #334155; }
.qr-poster img { width: 120mm; height: 120mm; }
.qp-steps { text-align: left; font-size: 15pt; color: #0f172a; margin: 0; }
.qp-steps li { margin: 2mm 0; }
.qp-foot { margin-top: auto; font-size: 12pt; color: #64748b; }
@media print { .qr-print-body { background: #fff; } .no-print { display: none !important; } .qr-poster { box-shadow: none; margin: 0; width: auto; min-height: auto; } @page { size: A4; margin: 8mm; } }

.pt-result .pt-big svg.i, .pt-result .pt-sub svg.i, .pt-note.ok svg.i { color: #fff !important; }
@media (max-width: 720px) {
  .acc-body .topbar { flex-wrap: wrap; gap: .5rem; }
  .acc-body .topbar #gymName, .acc-body .topbar #me { display: none; }
  .acc-body .kpis-4 { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .acc-body .kpi .v { font-size: 1.35rem; }
  .acc-body .kpi .kpi-sub { display: none; }
  .acc-main { padding: .8rem; }
  .acc-search { padding: .7rem .8rem; }
  #newMember { width: 100%; }
}
.plan-opt input[type=radio] { width: 20px; height: 20px; flex: none; padding: 0; margin: 0; box-shadow: none; border: 0; accent-color: var(--brand); }
/* ---------- Reçu */
.rc-body { background: #f1f5f9; min-height: 100vh; }
.rc-wrap { max-width: 440px; margin: 0 auto; padding: 2rem 1rem; }
.rc-card { background: #fff; border-radius: 20px; padding: 1.4rem; box-shadow: 0 20px 50px rgba(15,23,42,.12); border-top: 6px solid var(--brand); }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; } .rc-head b { display: block; font-size: 1.15rem; } .rc-head small { color: var(--muted); }
.rc-amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -.02em; margin: .8rem 0; }
.rc-table td { padding: .45rem .2rem; border-bottom: 1px dashed #e2e8f0; } .rc-table td:first-child { color: var(--muted); width: 38%; }
.rc-note { margin-top: 1rem; background: #fff7ed; border-radius: 12px; padding: .7rem .8rem; font-size: .9rem; }
/* ---------- Contrôle */
.ctl-big { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ctl-big input { width: 140px; font-size: 1.5rem; text-align: center; font-weight: 800; }
.gap-pos { color: var(--red); font-weight: 800; } .gap-ok { color: var(--green-600); font-weight: 800; }
.notice-row { display: flex; gap: .7rem; padding: .65rem .2rem; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.notice-row.unread { background: #fff7ed; border-radius: 10px; padding-left: .6rem; }
.notice-row .nt { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.bell-btn { position: relative; } .bell-btn .count { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 800; padding: .05rem .4rem; }
.qp-rule { font-size: 14pt; background: #fff7ed; border: 2px solid #fed7aa; border-radius: 14px; padding: 4mm 6mm; color: #7c2d12; }
.pt-note.pay small { display: block; font-size: .82rem; color: #9a3412; margin-top: .3rem; }

/* ---------- Inscription : choix de l'activité */
.act-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.act-pick button { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .8rem .9rem; cursor: pointer; font: inherit; color: var(--ink); }
.act-pick button span { font-size: 1.4rem; } .act-pick button small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.act-pick button.on { border-color: var(--brand); background: #fff7f0; box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
@media (max-width: 480px) { .act-pick { grid-template-columns: 1fr; } }

.seg-link { color: var(--brand-600, #c2410c); font-weight: 700; text-decoration: none; }

/* ---------- Téléphone : la barre du haut passe sur deux lignes au lieu de déborder */
html, body { max-width: 100%; overflow-x: clip; }
.tabs, .team-bar { max-width: 100vw; }
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; row-gap: .45rem; column-gap: .45rem; padding-top: .55rem; padding-bottom: .55rem; }
  .topbar > .small:not(.brand):not(#linkGestion), .topbar #me, .topbar #estName, .topbar #gymName { display: none; }
  .topbar .spacer { flex: 1 0 auto; }
  .topbar .btn.sm { padding: .42rem .65rem; font-size: .82rem; }
  .topbar .lang-sw button { padding: .22rem .45rem; }
  .topbar .resp-chip { font-size: .78rem; }
}

/* Fenêtres : les grilles de boutons (paiement…) tiennent dans l'écran du téléphone */
.modal .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.modal .grid .btn { min-width: 0; white-space: normal; }

/* =================================================================== VISITE VIDÉO */
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.vt-card { position: relative; display: flex; flex-direction: column; gap: .3rem; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: .8rem; cursor: pointer; font: inherit; color: var(--ink); transition: .15s; overflow: hidden; }
.vt-card:hover { border-color: var(--brand); box-shadow: 0 12px 30px rgba(255,106,0,.15); transform: translateY(-2px); }
.vt-card img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); background: #f1f5f9; }
.vt-card img.ph { object-fit: contain; background: #0f172a; }
.vt-card b { font-size: 1rem; margin-top: .3rem; } .vt-card small { color: var(--muted); }
.vt-num { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 1; background: var(--ink); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.vt-ico { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 1; font-size: 1.2rem; }
.vt-play { position: absolute; top: 75px; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,106,0,.92); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.vt-player { position: fixed; inset: 0; z-index: 1000; background: #05080f; display: flex; flex-direction: column; color: #fff; }
.vt-top { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; gap: 1rem; }
.vt-title { display: flex; flex-direction: column; } .vt-title span { font-weight: 800; font-size: 1.05rem; } .vt-title small { color: #94a3b8; }
.vt-x { background: #1e293b; color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; flex: none; }
.vt-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: .4rem 1rem 6.5rem; }
.vt-frame { position: relative; width: min(100%, calc((100vh - 230px) * 1.684)); aspect-ratio: 1280 / 760; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vt-frame.phone { width: auto; height: min(100%, calc(100vh - 230px)); aspect-ratio: 624 / 1248; border-radius: 30px; border: 8px solid #1e293b; }
.vt-zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.3s cubic-bezier(.4,0,.2,1); }
.vt-zoom img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.vt-ring { position: absolute; border: 3px solid #ff6a00; border-radius: 12px; box-shadow: 0 0 0 4000px rgba(5,8,15,.38), 0 0 22px rgba(255,106,0,.8); opacity: 0; transition: opacity .5s .7s; pointer-events: none; animation: vtPulse 1.6s ease-in-out infinite; }
@keyframes vtPulse { 0%, 100% { box-shadow: 0 0 0 4000px rgba(5,8,15,.38), 0 0 10px rgba(255,106,0,.6); } 50% { box-shadow: 0 0 0 4000px rgba(5,8,15,.38), 0 0 28px rgba(255,106,0,1); } }
.vt-sub { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); width: min(880px, calc(100% - 2rem)); background: rgba(0,0,0,.82); color: #fff; font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1.45; padding: .75rem 1.1rem; border-radius: 12px; text-align: center; font-weight: 500; }
.vt-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,8,15,.6); }
.vt-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: #0b1220; }
.vt-bar button { background: #1e293b; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.05rem; cursor: pointer; flex: none; }
.vt-bar .vt-main { background: var(--brand); width: 52px; height: 52px; font-size: 1.2rem; }
.vt-prog { flex: 1; display: flex; gap: 4px; }
.vt-prog i { flex: 1; height: 5px; border-radius: 3px; background: #334155; } .vt-prog i.done { background: #94a3b8; } .vt-prog i.on { background: var(--brand); }
@media (max-width: 640px) { .vt-stage { padding-bottom: 7.5rem; } .vt-sub { font-size: 1rem; bottom: .6rem; } }

@media (max-width: 700px) { .act-pick { grid-template-columns: 1fr; } }

/* =================================================================== COMMERCE */
.pos-store { width: auto; max-width: 240px; padding: .42rem .6rem; font-size: .88rem; font-weight: 600; border-radius: 10px; }
.pos-body { background: var(--bg, #f4f5f7); }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1rem; padding: 1rem 1.25rem; align-items: start; }
.pos-left { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.pos-cats { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.pos-cats button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .4rem .85rem; font: 600 .86rem var(--font); cursor: pointer; white-space: nowrap; color: var(--text-2); }
.pos-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.pos-prod { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: .7rem; cursor: pointer; font: inherit; color: var(--ink); min-height: 104px; transition: .12s; }
.pos-prod:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(255,106,0,.12); }
.pos-prod:active { transform: scale(.98); }
.pos-prod b { font-size: .93rem; line-height: 1.25; } .pos-prod .pp { color: var(--brand-600, #c2410c); font-weight: 800; }
.pos-prod small { color: var(--muted); font-size: .76rem; margin-top: auto; }
.pos-prod.low small { color: #b45309; font-weight: 700; } .pos-prod.out { opacity: .55; } .pos-prod.out small { color: var(--red); font-weight: 700; }
.pos-cart { position: sticky; top: 72px; margin: 0; display: flex; flex-direction: column; gap: .4rem; max-height: calc(100vh - 90px); overflow-y: auto; }
.pos-lines { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0; }
.pos-line { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: 12px; }
.pos-line.warn { border-color: #fecaca; background: #fef2f2; }
.pos-line b { display: block; font-size: .9rem; } .pos-line small { color: var(--muted); font-size: .78rem; }
.pos-line .qty { display: flex; align-items: center; gap: 2px; }
.pos-line .qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.pos-line .qty input { width: 52px; text-align: center; padding: .3rem; }
.pos-price { width: 84px; padding: .2rem .35rem; font-size: .8rem; }
.pos-lt { white-space: nowrap; font-size: .92rem; min-width: 74px; text-align: right; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: .6rem; }
.pos-total b { font-size: 1.8rem; font-weight: 900; }
.pos-methods { grid-template-columns: repeat(3, 1fr) !important; }
.pos-methods .pay-btn { padding: .55rem .4rem; font-size: .82rem; }
.pay-btn.on { border-color: var(--brand); background: #fff7f0; box-shadow: 0 0 0 2px rgba(255,106,0,.2); }
.pos-client { justify-content: flex-start; text-align: left; }
.party-list { max-height: 50vh; overflow-y: auto; margin-top: .5rem; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #fff7f0; }
.lines-ed table input { width: 100%; padding: .4rem .5rem; } .lines-ed td { padding: .3rem; }
@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; padding: .7rem; }
  .pos-cart { position: static; max-height: none; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---------- Inscription : tuiles d'activité, étape 2 */
.act-tiles { display: grid; gap: .7rem; margin: 1.2rem 0 1rem; }
.act-tiles button { display: flex; align-items: center; gap: 1rem; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: .15s; }
.act-tiles button:hover, .act-tiles button:focus-visible { border-color: var(--brand); background: #fff7f0; box-shadow: 0 8px 22px rgba(255,106,0,.12); }
.act-tiles .ai { width: 52px; height: 52px; border-radius: 14px; background: #fff4ec; display: grid; place-items: center; font-size: 1.6rem; flex: none; color: var(--brand); }
.act-tiles .ai svg.i { width: 26px; height: 26px; }
.act-tiles b { font-size: 1.08rem; }
.act-tiles button::after { content: '›'; margin-left: auto; font-size: 1.6rem; color: var(--muted); }
.act-chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: #fff7f0; border-radius: 99px; padding: .45rem .9rem; font: inherit; cursor: pointer; margin-bottom: 1.2rem; color: var(--ink); }
.act-chip small { color: var(--brand-600, #c2410c); font-weight: 700; margin-left: .3rem; }
.act-chip svg.i { width: 18px; height: 18px; color: var(--brand); }

.who-chip { display: inline-flex; align-items: center; gap: .3rem; background: #f4f5f7; border-radius: 99px; padding: .1rem .55rem; margin: .1rem 0; }
.who-chip code { font-size: .78em; color: var(--muted); }

/* ---------- Touche futuriste : orbites de données derrière le téléphone (page d'accueil) */

.mock .orbit { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; opacity: .9; }
.mock .float-card { z-index: 3; }
.orbit .o { fill: none; stroke: rgba(255,106,0,.18); stroke-width: 1; }
.orbit .o.dash { stroke-dasharray: 2 7; stroke: rgba(255,106,0,.32); }
.orbit .spin { transform-origin: 280px 280px; animation: orbit 26s linear infinite; }
.orbit .spin.r { animation-duration: 38s; animation-direction: reverse; }
.orbit .spin.f { animation-duration: 16s; }
.orbit .node { fill: #ff6a00; filter: drop-shadow(0 0 6px rgba(255,106,0,.8)); }
.orbit .node.b { fill: #22c55e; filter: drop-shadow(0 0 6px rgba(34,197,94,.8)); }
.orbit .node.c { fill: #6366f1; filter: drop-shadow(0 0 6px rgba(99,102,241,.8)); }
.orbit .tag { font: 700 11px Inter, system-ui, sans-serif; fill: #64748b; letter-spacing: .08em; }
.orbit .link { stroke: rgba(255,106,0,.35); stroke-width: 1; stroke-dasharray: 3 5; animation: flow 1.6s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@media (max-width: 560px) { .mock .orbit { width: 420px; height: 420px; } }
@media (prefers-reduced-motion: reduce) { .orbit .spin, .orbit .link { animation: none; } }

/* ---------- Super-admin : tableau de bord de la plateforme */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.pbar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.pill.yellow { background: #fef3c7; color: #b45309; }
.card h3 .pill { margin-left: .3rem; vertical-align: middle; }
.grid-2 > * { min-width: 0; margin-top: 0 !important; }
.grid-2 .vbars { overflow-x: auto; }

/* ---------- Barbershop : salon (file d'attente en direct) */
.bb-salon { max-width: 1400px; }
.bb-actions { margin: .4rem 0 1rem; gap: .6rem; flex-wrap: wrap; }
.bb-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .bb-board { grid-template-columns: 1fr; } }
.bb-col { background: #f1f5f9; border-radius: 18px; padding: .8rem; min-height: 200px; }
.bb-col h2 { font-size: 1rem; margin: .2rem .3rem .8rem; display: flex; align-items: center; gap: .4rem; }
.bb-col h2 .count { background: var(--ink); color: #fff; border-radius: 99px; padding: 0 .55rem; font-size: .8rem; }
.bb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; margin-bottom: .6rem; box-shadow: var(--shadow-sm); border-left: 4px solid #eab308; }
.bb-card.rdv { border-left-color: var(--blue); } .bb-card.en_cours { border-left-color: var(--brand); } .bb-card.termine { border-left-color: var(--green-600); opacity: .9; } .bb-card.annule { border-left-color: #94a3b8; opacity: .6; }
.bb-num { font-size: 1.05rem; }
.bb-name { font-weight: 800; font-size: 1.08rem; margin: .25rem 0 .15rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.bb-btns { gap: .35rem; margin-top: .6rem; flex-wrap: wrap; }
.bb-mine { display: inline-flex; gap: .6rem; font-weight: 700; font-size: .9rem; align-items: center; }
.bb-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bb-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .45rem .7rem; font: 600 .9rem var(--font); cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--ink); }
.bb-chip small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.bb-chip.on { border-color: var(--brand); background: #fff4ec; box-shadow: 0 0 0 2px rgba(255,106,0,.15); }
.bb-sum { margin-top: .6rem; padding: .6rem .8rem; background: #f8fafc; border-radius: 10px; font-size: .95rem; }
.bb-reward { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: .6rem .7rem; margin: .6rem 0; }
.bb-barbers .mrow[disabled] { opacity: .5; cursor: not-allowed; }
.pill.orange { background: var(--brand-50); color: var(--brand-700); }

/* ---------- Barbershop : page publique de rendez-vous */
.rv-body { background: #f4f5f7; min-height: 100vh; }
.rv-head { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 1.6rem 1.25rem 2.6rem; display: flex; gap: 1rem; align-items: center; }
.rv-head h1 { color: #fff; margin: 0; font-size: 1.5rem; } .rv-head p { margin: .2rem 0 0; opacity: .75; }
.rv-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.rv-wrap { max-width: 640px; margin: -1.6rem auto 0; padding: 0 1rem; }
.rv-step { margin-bottom: .9rem; transition: opacity .2s; } .rv-step.rv-off { opacity: .45; pointer-events: none; }
.rv-step h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; }
.rv-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.rv-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.rv-svc { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .75rem .85rem; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: .15rem; }
.rv-svc span { color: var(--muted); font-size: .85rem; }
.rv-svc.on, .rv-chip.on, .rv-day.on { border-color: var(--brand); background: #fff4ec; box-shadow: 0 0 0 2px rgba(255,106,0,.18); }
.rv-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.rv-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: .5rem .95rem; font: 600 .92rem var(--font); cursor: pointer; color: var(--ink); }
.rv-days { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; } .rv-days::-webkit-scrollbar { display: none; }
.rv-day { flex: none; width: 62px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .45rem 0; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.rv-day b { font-size: 1.25rem; } .rv-day small { color: var(--muted); font-size: .72rem; }
.rv-recap { background: #f8fafc; border-radius: 12px; padding: .7rem .85rem; margin: .4rem 0 .9rem; font-size: .95rem; min-height: 1rem; }
.rv-done { text-align: left; } .rv-check { font-size: 3rem; text-align: center; }
.rv-when { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: .8rem 0 1rem; }
.rv-when small { color: var(--muted); text-transform: capitalize; } .rv-when b { font-size: 2.4rem; letter-spacing: -.03em; }
.rv-done h2 { text-align: center; }

/* ---------- Barbershop : espace client */
.rv-body #app { padding-bottom: 5.5rem; }
.rv-wrap .card { margin-bottom: .9rem; }
.rv-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15,23,42,.06); }
.rv-nav button { border: 0; background: none; font: 600 .72rem var(--font); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem 0; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-nav button span { font-size: 1.25rem; } .rv-nav button.on { color: var(--brand); }
@media (min-width: 700px) { .rv-nav { max-width: 640px; margin: 0 auto; border-radius: 18px 18px 0 0; border: 1px solid var(--line); } }
.rv-team { display: grid; gap: .9rem; }
.rv-member { display: flex; gap: .8rem; align-items: flex-start; }
.rv-member .pill { margin-left: .4rem; vertical-align: middle; }
.rv-av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: #e2e8f0; }
.rv-av-i { display: inline-grid; place-items: center; background: linear-gradient(135deg, #ff7a1a, #e85d00); color: #fff; font-weight: 800; font-size: .9em; }
.rv-chip-av { display: inline-flex; align-items: center; gap: .4rem; padding-left: .35rem; }
.rv-chip-av .rv-av { font-size: .65rem; }
.rv-ticket { text-align: left; border: 2px solid var(--brand-100); }
.rv-ticket.en_cours { border-color: #a7f3d0; background: #f0fdf4; }
.rv-pos { display: flex; flex-direction: column; align-items: center; margin: .8rem 0 .3rem; }
.rv-pos b { font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--brand); }
.rv-pos span { font-weight: 700; text-align: center; }
.rv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.rv-ph { border: 0; padding: 0; background: #f1f5f9; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 1; }
.rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: .35rem .5rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .74rem; text-align: left; }
.rv-profile { display: flex; gap: 1rem; align-items: center; }
.rv-photo { width: 84px; height: 84px; border-radius: 50%; position: relative; cursor: pointer; flex: none; background: linear-gradient(135deg, #ff7a1a, #e85d00); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.6rem; }
.rv-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rv-photo i { position: absolute; right: -2px; bottom: -2px; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-style: normal; font-size: .95rem; box-shadow: var(--shadow-sm); }
.rv-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; max-width: 320px; margin: 0 auto .6rem; }
.rv-stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.1rem; }
.rv-stamps span.on { border: 2px solid var(--brand); background: #fff4ec; }
.rv-del { position: absolute; top: .35rem; right: .35rem; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }

/* ---------- Groupe d'établissements */
.side-est-btn { cursor: pointer; transition: border-color .15s; } .side-est-btn:hover { border-color: var(--brand); }
.side-est-arrow { margin-left: auto; color: #8792a6; font-size: .8rem; }
.org-list .mrow.on { background: #fff4ec; }
.org-ic { width: 40px; height: 40px; border-radius: 12px; background: #f1f5f9; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.org-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.org-card { display: flex; flex-direction: column; gap: .5rem; margin: 0 !important; }
.org-card.cur { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255,106,0,.15); }
.org-card .v { font-size: 1.6rem; font-weight: 850; letter-spacing: -.03em; }
.act-tiles button.on { border-color: var(--brand); background: #fff7f0; box-shadow: 0 0 0 2px rgba(255,106,0,.15); }

/* ---------- Barbershop : conseil coiffure */
.rv-advice-cta { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; cursor: pointer; font: inherit; color: #fff; border: 0;
  background: linear-gradient(135deg, #0f172a, #312e81 60%, #7c3aed); }
.rv-advice-cta > span { font-size: 1.8rem; } .rv-advice-cta b { display: block; font-size: 1.05rem; } .rv-advice-cta small { opacity: .8; } .rv-advice-cta i { margin-left: auto; font-size: 1.6rem; font-style: normal; opacity: .7; }
.rv-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.rv-shape { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .8rem .3rem .6rem; cursor: pointer; font: 600 .88rem var(--font); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.rv-shape:hover { border-color: var(--brand); background: #fff7f0; }
.rv-shape i { display: block; border: 3px solid var(--brand); background: #fff4ec; }
.rv-shape.big { border: 0; background: none; padding: .4rem 0 0; pointer-events: none; }
.rv-wrap .center { text-align: center; }

.pay-box { border: 1px solid var(--line); border-radius: 12px; padding: .4rem .9rem .2rem; margin: .4rem 0 .8rem; }
.pay-box legend { font-weight: 700; padding: 0 .4rem; }
.emp-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.emp-stars { color: #f59e0b; letter-spacing: .05em; }
.emp-day { cursor: pointer; } .emp-day.on td { background: #fff4ec; } .rv-review { padding: .6rem 0; border-bottom: 1px solid var(--line-2); } .rv-review p { margin: .3rem 0 0; }

/* ---------- Barbershop : notes, galerie qui défile, animations */
.rv-rate { display: flex; justify-content: center; gap: .3rem; margin: .4rem 0; }
.rv-rate button { border: 0; background: none; font-size: 2.4rem; color: #e2e8f0; cursor: pointer; transition: transform .15s, color .15s; line-height: 1; }
.rv-rate button.on { color: #f59e0b; transform: scale(1.12); } .rv-rate button:active { transform: scale(.9); }
.rv-stars-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; display: block; margin: .15rem 0; }
.rv-marquee { overflow: hidden; margin: 0 -1rem .9rem; padding: 0 0 .2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-mq-track { display: flex; gap: .6rem; width: max-content; animation: rv-marquee linear infinite; }
.rv-marquee:hover .rv-mq-track { animation-play-state: paused; }
.rv-mq-ph { width: 132px; height: 132px; flex: none; border: 0; padding: 0; border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; background: #e2e8f0; box-shadow: var(--shadow-sm); }
.rv-mq-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; } .rv-mq-ph:hover img { transform: scale(1.06); }
.rv-mq-ph span { position: absolute; left: .4rem; bottom: .4rem; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: .1rem .45rem; border-radius: 99px; }
@keyframes rv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rv-view > * { animation: rv-up .38s cubic-bezier(.2,.8,.2,1) both; }
.rv-view > *:nth-child(2) { animation-delay: .05s; } .rv-view > *:nth-child(3) { animation-delay: .1s; } .rv-view > *:nth-child(4) { animation-delay: .15s; } .rv-view > *:nth-child(n+5) { animation-delay: .2s; }
.rv-in { animation: rv-up .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rv-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv-nav button { transition: color .2s, transform .2s; } .rv-nav button.on span { animation: rv-pop .35s cubic-bezier(.3,1.6,.5,1); } .rv-nav button:active { transform: scale(.92); }
@keyframes rv-pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.rv-count { display: inline-block; animation: rv-pop .5s cubic-bezier(.3,1.6,.5,1); }
.rv-svc, .rv-chip, .rv-day, .rv-shape, .bb-chip { transition: border-color .15s, background .15s, transform .12s, box-shadow .15s; }
.rv-svc:active, .rv-chip:active, .rv-day:active, .bb-chip:active { transform: scale(.97); }
.bb-card { animation: rv-up .3s ease both; transition: box-shadow .2s, transform .2s; } .bb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.page > section:not(.hidden) { animation: rv-up .3s cubic-bezier(.2,.8,.2,1) both; }
.modal { animation: rv-modal .25s cubic-bezier(.2,.8,.2,1); }
@keyframes rv-modal { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-view > *, .rv-in, .bb-card, .page > section, .modal, .rv-count { animation: none !important; } .rv-mq-track { animation: none; } }

.rv-hello { display: flex; align-items: center; gap: .8rem; background: #fff7f0; border: 1px solid var(--brand-100); border-radius: 14px; padding: .7rem .8rem; margin-bottom: 1rem; }
.rv-hello img, .rv-hello > span { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.rv-hello > span { display: grid; place-items: center; background: linear-gradient(135deg, #ff7a1a, #e85d00); color: #fff; font-weight: 800; font-size: 1.4rem; }
.rv-hello b { display: block; font-size: 1.05rem; } .rv-hello small { color: var(--muted); }
.bb-cph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Boutique du salon (espace client) */
.rv-nav.six { grid-template-columns: repeat(6, 1fr); } .rv-nav.six button { font-size: .66rem; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.sh-card { border: 1px solid var(--line); border-radius: 14px; padding: .55rem; display: flex; flex-direction: column; gap: .25rem; background: #fff; transition: box-shadow .2s, transform .2s; }
.sh-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.sh-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; font-size: 2.2rem; margin-bottom: .2rem; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-price { color: var(--brand-700); }
.sh-qty { display: inline-flex; align-items: center; gap: .4rem; background: #fff4ec; border-radius: 99px; padding: .15rem; }
.sh-qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.sh-qty button:disabled { opacity: .4; }
.sh-low { color: var(--red); font-weight: 600; }
.sh-total { border-top: 1px dashed var(--line); margin: .5rem 0 .8rem; padding-top: .5rem; font-size: 1.1rem; }
.sh-order { padding: .6rem 0; border-bottom: 1px solid var(--line-2); }

.side-back { display: block; color: #fff; background: rgba(255,106,0,.18); border: 1px solid rgba(255,106,0,.4); border-radius: 10px; padding: .55rem .8rem; margin-bottom: .6rem; font-weight: 700; font-size: .88rem; }
.pr-photo { width: 76px; height: 76px; border-radius: 14px; background: #f1f5f9; display: grid; place-items: center; font-size: 1.6rem; cursor: pointer; flex: none; overflow: hidden; border: 1.5px dashed var(--line); }
.pr-photo img { width: 100%; height: 100%; object-fit: cover; }
#shopBtn .count { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; margin-left: .2rem; }

/* ---------- Fidélité */
.bb-loyal { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .6rem 0; }
@media (max-width: 520px) { .bb-loyal { grid-template-columns: 1fr; } }
.rv-pts { color: var(--brand); }
.rv-reward { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; margin-bottom: .5rem; }
.rv-reward.ok { border-color: #a7f3d0; background: #f0fdf4; }
.rv-bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: .4rem 0 .25rem; }
.rv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a1a, #f59e0b); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rv-code { font: 800 1.6rem/1 var(--font); letter-spacing: .12em; text-align: center; background: #fff7f0; border: 2px dashed var(--brand); border-radius: 14px; padding: .9rem; margin: .6rem 0 .8rem; color: var(--brand-700); }
