:root{
  --bg:#101010;--panel:#181818;--panel2:#222;--text:#f7f4e9;--muted:#b8b2a2;
  --yellow:#f2c230;--yellow2:#ffd95a;--danger:#ee5b5b;--ok:#50c878;--line:#333;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
a{color:inherit}.wrap{max-width:1100px;margin:auto;padding:0 16px}
.topbar{position:sticky;top:0;z-index:20;background:rgba(12,12,12,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.topbar .inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px}
.brand{font-weight:900;letter-spacing:.04em;font-size:1.25rem}.brand span{color:var(--yellow)}
.pill{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:#202020;border:1px solid #353535;font-size:.88rem}
.dot{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(80,200,120,.13)}
.dot.off{background:var(--danger);box-shadow:0 0 0 3px rgba(238,91,91,.13)}
.hero{min-height:360px;display:grid;place-items:end start;background:
 linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.9)),
 url('/assets/chez-buena-facade.jpg') center/cover no-repeat;border-bottom:1px solid var(--line)}
.hero .content{padding:44px 16px 28px;max-width:1100px;width:100%;margin:auto}
.eyebrow{color:var(--yellow);font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:.82rem}
h1{font-size:clamp(2rem,6vw,4.6rem);margin:.3rem 0 .5rem;line-height:.95}
.hero p{max-width:640px;color:#eee;font-size:1.04rem}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer;background:var(--yellow);color:#141414;box-shadow:none}
.btn:hover{filter:brightness(1.04)}.btn.secondary{background:#292929;color:white;border:1px solid #444}
.btn.danger{background:var(--danger);color:white}.btn.ok{background:var(--ok);color:#0a2513}
.btn.small{padding:8px 10px;border-radius:9px;font-size:.9rem}.btn:disabled{opacity:.45;cursor:not-allowed}
.section{padding:28px 0}.section h2{margin:0 0 14px;font-size:1.45rem}
.notice{padding:14px 16px;border:1px solid #3b3420;background:#211d12;border-radius:14px;color:#f6df96;margin:14px 0}
.categories{display:flex;gap:8px;overflow:auto;padding-bottom:8px}.chip{white-space:nowrap;background:#202020;color:#ddd;border:1px solid #393939;border-radius:999px;padding:9px 13px;cursor:pointer}.chip.active{background:var(--yellow);color:#111;border-color:var(--yellow)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:15px}
.menu-card{display:flex;flex-direction:column;min-height:180px}.menu-card h3{margin:0 0 7px}.menu-card p{color:var(--muted);margin:0 0 16px;line-height:1.45;flex:1}.price{font-weight:900;font-size:1.2rem;color:var(--yellow)}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.muted{color:var(--muted)}
.cartbar{position:sticky;bottom:12px;z-index:15;margin:12px auto 20px;max-width:650px;padding:0 16px}.cartbutton{width:100%;display:flex;align-items:center;justify-content:space-between;background:var(--yellow);color:#111;border:0;border-radius:15px;padding:14px 16px;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.35);cursor:pointer}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.76);z-index:50;display:none;align-items:flex-end;justify-content:center}.modal.open{display:flex}.sheet{background:#161616;width:min(720px,100%);max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;border:1px solid #393939;padding:18px}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.close{background:#292929;color:white;border:0;border-radius:50%;width:38px;height:38px;font-size:1.3rem;cursor:pointer}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid #2d2d2d}.qty{display:flex;gap:8px;align-items:center}.qty button{width:30px;height:30px;border:0;border-radius:8px;background:#2b2b2b;color:white;cursor:pointer}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}
label{font-weight:700;font-size:.92rem}input,select,textarea{background:#0f0f0f;color:white;border:1px solid #414141;border-radius:10px;padding:11px}textarea{min-height:78px;resize:vertical}
.total{font-size:1.25rem;font-weight:900;color:var(--yellow)}
.track{border-left:4px solid var(--yellow);background:#191919;padding:16px;border-radius:10px;margin:14px 0}.status{font-weight:900}.status.pending{color:#f4cb50}.status.accepted,.status.preparing{color:#6bc6ff}.status.ready,.status.completed{color:var(--ok)}.status.refused{color:var(--danger)}
.pro-layout{display:grid;grid-template-columns:1fr;gap:16px}.pro-head{padding:20px 0}.pro-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.order-card{background:#171717;border:1px solid #383838;border-radius:16px;padding:16px}.order-card.new{border-color:var(--yellow);box-shadow:0 0 0 1px rgba(242,194,48,.15)}
.order-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.order-title h3{margin:0}.order-meta{color:var(--muted);font-size:.92rem;line-height:1.5}.order-items{margin:12px 0;padding:10px 0;border-top:1px solid #2d2d2d;border-bottom:1px solid #2d2d2d}.order-line{display:flex;justify-content:space-between;gap:10px;padding:4px 0}.order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.counter{background:#2b2b2b;border-radius:999px;padding:4px 9px;font-size:.85rem}
.footer{padding:35px 0 100px;color:#8f8a7d;text-align:center;font-size:.9rem}
@media(max-width:720px){.formgrid,.columns{grid-template-columns:1fr}.hero{min-height:300px}.hero .content{padding-bottom:22px}.topbar .inner{min-height:58px}.hide-mobile{display:none}}

/* --- Chez Buena V2 : comptes, créneaux, rôles et mobile --- */
[hidden]{display:none!important}
.top-actions{display:flex;align-items:center;gap:8px}.pro-label{font-size:.62em;color:#aaa}.mini{font-size:.84rem}.wrap-row{flex-wrap:wrap}.inline-link{color:var(--yellow);font-weight:800;text-decoration:underline;text-underline-offset:2px}.phone{background:#4f87d7;color:white}.pay{background:#74d38f;color:#092913}.paid-text{color:var(--ok)}
.sheet h2{margin:.2rem 0}.account-sheet{width:min(760px,100%)}.small-sheet{width:min(560px,100%)}.tabbar{display:flex;gap:8px;margin:8px 0 16px}.account-form{margin-top:10px}.account-summary{margin:12px 0}.account-actions{margin:18px 0 10px}.order-number-link{padding:0;border:0;background:transparent;color:var(--yellow);font:inherit;font-weight:950;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.order-number-link:hover{filter:brightness(1.1)}
.login-stage{min-height:62vh;display:grid;place-items:center;padding:35px 0}.login-card{width:min(520px,100%);padding:24px}.login-title{font-size:clamp(2rem,5vw,3rem);margin:.25rem 0 1rem}.pro-title{font-size:clamp(2rem,5vw,3.5rem);margin:.25rem 0}.service-badge{padding:11px 14px;border-radius:12px;border:1px solid #444;background:#252525;font-weight:900}.service-badge.mode-online{border-color:#2e7745;color:#8ee6a9}.service-badge.mode-phone{border-color:#486991;color:#9cc8ff}.service-badge.mode-closed{border-color:#784444;color:#ff9a9a}
.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.service-mode.selected{outline:3px solid rgba(242,194,48,.35);outline-offset:2px}.service-help{margin-top:12px}.settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.settings-grid>.card{min-width:0}.compact-form{margin-top:12px}.security-card{max-width:760px}
.schedule-editor{display:grid;gap:8px;margin:14px 0}.schedule-row{display:grid;grid-template-columns:100px 1fr 1fr;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #2b2b2b}.time-pair{display:flex;align-items:center;gap:6px;min-width:0}.time-pair input{width:100%;min-width:0;padding:9px}.staff-list{margin-top:14px;display:grid;gap:8px}.staff-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #2d2d2d}.danger-box{border:1px solid #613737;background:#251717;border-radius:14px;padding:14px;margin:12px 0}.confirm-check{display:flex;align-items:flex-start;gap:9px;font-weight:700}.confirm-check input{width:auto;margin-top:3px}.note-box{padding:10px;margin:8px 0;background:#202020;border:1px solid #373737;border-radius:12px}.detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:12px 0}.detail-hero h3{margin:.2rem 0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.detail-items{font-size:1.02rem}
select option:disabled{color:#777}.status.completed{color:var(--ok)}.status.refused{color:var(--danger)}

@media(max-width:850px){.service-grid{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}.schedule-row{grid-template-columns:90px 1fr}.schedule-row .time-pair:last-child{grid-column:2}.detail-grid{grid-template-columns:1fr}}
@media(max-width:720px){
  .hide-small{display:none}.top-actions{gap:6px}.topbar .btn.small{padding:8px 10px}.service-grid{grid-template-columns:1fr}.schedule-row{grid-template-columns:1fr}.schedule-row .time-pair:last-child{grid-column:auto}.staff-row{align-items:flex-start}.sheet{padding:16px 14px calc(18px + env(safe-area-inset-bottom));max-height:94vh}.modal{padding-top:env(safe-area-inset-top)}.order-title{align-items:flex-start}.order-card{padding:14px}.cartbar{bottom:8px}.field input,.field select,.field textarea{font-size:16px}.topbar .inner{padding-top:env(safe-area-inset-top)}
}
@media(max-width:420px){.hero{min-height:270px}.hero .content{padding-top:34px}.brand{font-size:1.05rem}.btn{padding:11px 13px}.row.wrap-row{align-items:flex-start}.price{font-size:1.08rem}}

.table-reservation-alert{margin:12px 0 18px;padding:13px 15px;border:1px solid #8c2f2f;background:#2a1111;color:#ff6565;border-radius:14px;font-weight:950;text-align:center;letter-spacing:.01em}

.text-link-button{background:transparent;border:0;color:var(--yellow);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px 0;margin-top:2px}
.text-link-button:hover{filter:brightness(1.08)}

/* --- V2.3 : illustrations menu + rappel numéro de commande --- */
.menu-card{position:relative;overflow:hidden}
.menu-visual{height:82px;display:grid;place-items:center;margin:-2px 0 10px;border-radius:13px;background:linear-gradient(145deg,#232323,#191919);border:1px solid #303030;font-size:3.25rem;line-height:1;user-select:none}
.counter-number-notice{margin-top:12px;padding:12px 14px;border-radius:12px;border:1px solid #5b4b1b;background:#28210d;color:#ffe79a;line-height:1.45}
@media(max-width:420px){.menu-visual{height:72px;font-size:2.9rem}}

/* V2.4 — solde en direct réservé au gérant */
.manager-revenue{margin-top:14px;display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #51451f;border-radius:16px;background:linear-gradient(135deg,#211d10,#171717);max-width:560px}.manager-revenue[hidden]{display:none!important}.manager-revenue-icon{font-size:1.8rem}.manager-revenue-total{font-size:1.65rem;font-weight:950;color:var(--yellow);line-height:1.05;margin:2px 0}.live-pill{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:.78rem;font-weight:900;color:#bce8c7;background:#15351f;border:1px solid #285d39;border-radius:999px;padding:6px 9px;white-space:nowrap}.live-dot{width:8px;height:8px;border-radius:50%;background:#63d687;box-shadow:0 0 0 3px #63d68722}@media(max-width:480px){.manager-revenue{align-items:flex-start}.live-pill{margin-left:0}.manager-revenue{flex-wrap:wrap}}

/* --- V2.6 : photos réalistes pour les articles --- */
.menu-visual:has(.menu-photo){padding:0;overflow:hidden;background:#151515}
.menu-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* --- V2.7 : burgers animés + contact / GPS cliquables --- */
.burger-floaters{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:1;
}
.hero, .hero-section, main{
  position:relative;
}
.burger-floater{
  position:absolute;
  font-size:clamp(2.2rem,5vw,4.6rem);
  filter:drop-shadow(0 10px 12px rgba(0,0,0,.35));
  opacity:.94;
  user-select:none;
}
.burger-floater-a{
  top:10%;
  right:5%;
  animation:buenaBurgerFloatA 4.8s ease-in-out infinite;
}
.burger-floater-b{
  top:58%;
  right:15%;
  font-size:clamp(1.8rem,4vw,3.4rem);
  opacity:.72;
  animation:buenaBurgerFloatB 5.8s ease-in-out infinite;
}
.burger-floater-c{
  top:30%;
  left:3%;
  font-size:clamp(1.6rem,3.5vw,3rem);
  opacity:.55;
  animation:buenaBurgerFloatC 6.5s ease-in-out infinite;
}
@keyframes buenaBurgerFloatA{
  0%,100%{transform:translateY(0) rotate(-5deg)}
  50%{transform:translateY(-13px) rotate(6deg)}
}
@keyframes buenaBurgerFloatB{
  0%,100%{transform:translate(0,0) rotate(4deg)}
  50%{transform:translate(-8px,-10px) rotate(-5deg)}
}
@keyframes buenaBurgerFloatC{
  0%,100%{transform:translateY(0) rotate(0)}
  50%{transform:translateY(10px) rotate(8deg)}
}

.quick-contact-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  max-width:1100px;
  margin:16px auto;
  padding:0 16px;
}
.quick-contact-btn{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  background:var(--panel, #181818);
  border:1px solid var(--line, #333);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.quick-contact-btn:active{transform:scale(.985)}
.quick-contact-btn strong,.quick-contact-btn small{display:block}
.quick-contact-btn small{margin-top:2px;opacity:.78}
.quick-contact-icon{font-size:1.7rem;line-height:1}
.inline-contact-link{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media (hover:hover) and (pointer:fine){
  .quick-contact-btn:hover{
    transform:translateY(-2px);
    border-color:var(--yellow,#f3c533);
  }
}
@media (max-width:640px){
  .quick-contact-actions{grid-template-columns:1fr}
  .burger-floater-c{display:none}
}
@media (prefers-reduced-motion:reduce){
  .burger-floater{animation:none !important}
  .quick-contact-btn{transition:none}
}

/* --- V2.8 : visuels réalistes générés sur toutes les cartes --- */
.menu-visual:has(.menu-photo){
  padding:0;
  overflow:hidden;
  background:#111;
}
.menu-photo{
  display:block;
  width:100%;
  height:100%;
  min-height:145px;
  object-fit:cover;
  object-position:center;
}
@media (max-width:640px){
  .menu-photo{min-height:125px}
}


/* --- V2.10 : gestion de la carte par le gérant --- */
.menu-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.menu-admin-preview{height:170px;border:1px dashed #484848;border-radius:14px;background:#111;display:grid;place-items:center;overflow:hidden;margin-bottom:9px}
.menu-admin-preview img{width:100%;height:100%;object-fit:cover}
.menu-admin-placeholder{font-size:2rem}
.menu-admin-list-card{margin-top:16px}
.manager-menu-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.manager-menu-row{appearance:none;border:1px solid #383838;background:#171717;color:var(--text);border-radius:13px;padding:8px;display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:9px;text-align:left;cursor:pointer;min-width:0}
.manager-menu-row:hover{border-color:var(--yellow)}
.manager-menu-thumb{width:62px;height:50px;border-radius:9px;overflow:hidden;background:#222;display:grid;place-items:center}
.manager-menu-thumb img{width:100%;height:100%;object-fit:cover}
.manager-menu-copy{min-width:0}
.manager-menu-copy strong,.manager-menu-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.manager-menu-copy small{color:var(--muted);margin-top:3px}
#editMenuImage,#newMenuImage{padding:10px;background:#101010;border:1px solid #414141;border-radius:10px;width:100%}
@media(max-width:900px){.manager-menu-list{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.menu-admin-grid,.manager-menu-list{grid-template-columns:1fr}.manager-menu-row{grid-template-columns:58px 1fr auto}}

/* --- V2.11 : choix sauces / formules --- */
.option-fields{display:grid;gap:12px;margin:14px 0}
.option-price-help{margin:12px 0}
.order-option-details{display:block;color:var(--muted);font-weight:500;margin-top:3px;line-height:1.35}




/* --- V2.14 : déplacement simple par flèches latérales --- */
.dashboard-section{
  position:relative;
}
.dashboard-move-tools{
  position:absolute;
  right:8px;
  top:8px;
  z-index:20;
  display:none;
  flex-direction:column;
  gap:6px;
  padding:5px;
  border:1px solid #454545;
  border-radius:12px;
  background:#111111e8;
  backdrop-filter:blur(6px);
}
.dashboard-move-tools button{
  width:42px;
  height:42px;
  border:1px solid #505050;
  border-radius:9px;
  background:#262626;
  color:#f3c533;
  font-size:1.25rem;
  line-height:1;
  font-weight:950;
  cursor:pointer;
  touch-action:manipulation;
}
.dashboard-move-tools button:active{
  transform:scale(.96);
}
.dashboard-move-tools button:disabled{
  opacity:.25;
  cursor:not-allowed;
}
@media (hover:hover) and (pointer:fine){
  .dashboard-move-tools button:hover{
    border-color:#f3c533;
    background:#303030;
  }
}
@media(max-width:640px){
  .dashboard-move-tools{
    right:6px;
    top:6px;
    gap:4px;
    padding:4px;
  }
  .dashboard-move-tools button{
    width:40px;
    height:40px;
    font-size:1.2rem;
  }
  .dashboard-section > .panel-title,
  .dashboard-section > h2,
  .dashboard-section > .section-title{
    padding-right:54px;
  }
}


/* --- V2.16 : prise en charge des commandes par le personnel --- */
.handled-by{
  margin:9px 0 4px;
  padding:8px 10px;
  border-radius:10px;
  background:#1b211c;
  border:1px solid #344a38;
  font-size:.9rem;
}
.handled-by.handled-empty{
  color:var(--muted);
  background:#191919;
  border-color:#353535;
}
.staff-role-pill{
  display:inline-block;
  margin-left:5px;
  padding:2px 7px;
  border-radius:999px;
  background:#2a2a2a;
  color:var(--muted);
  font-size:.75rem;
  vertical-align:1px;
}
.staff-timeline{
  margin:16px 0;
  padding:14px;
  border:1px solid #3b3b3b;
  border-radius:14px;
  background:#151515;
}
.staff-timeline h3{margin:0 0 9px}
.staff-action{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:9px 0;
  border-top:1px solid #2d2d2d;
  align-items:center;
}
.staff-action:first-of-type{border-top:0}
.staff-action span{min-width:0}
.staff-action small{
  display:block;
  color:var(--muted);
  margin-top:2px;
}
.staff-action em{
  color:var(--muted);
  font-style:normal;
  font-size:.78rem;
}
@media(max-width:600px){
  .staff-action{align-items:flex-start;flex-direction:column;gap:4px}
}


/* --- V2.17 : gestion des mots de passe et autorisations serveurs --- */
.staff-admin-card{
  border-top:1px solid #303030;
  padding:14px 0;
}
.staff-admin-card:first-child{border-top:0}
.staff-admin-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.staff-permissions{
  margin-top:12px;
  padding:12px;
  border:1px solid #383838;
  border-radius:12px;
  background:#151515;
}
.permission-title{margin-bottom:8px;font-weight:800}
.permission-check{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:7px 0;
  cursor:pointer;
  font-weight:700;
}
.permission-check input{
  width:auto;
  margin-top:3px;
  accent-color:var(--yellow);
}
.staff-password-admin{
  margin-top:12px;
}
.staff-password-admin>label{
  display:block;
  margin-bottom:6px;
  font-size:.88rem;
  font-weight:800;
}
.staff-password-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.staff-password-row input{
  min-width:0;
  background:#101010;
  color:#fff;
  border:1px solid #414141;
  border-radius:10px;
  padding:10px;
}
@media(max-width:650px){
  .staff-admin-head{flex-direction:column}
  .staff-password-row{grid-template-columns:1fr}
  .staff-password-row .btn{width:100%}
}

.link-button{background:none;border:0;padding:0;color:inherit;text-align:left;cursor:pointer;font:inherit}


/* --- V2.19 : Galerie Chez Buena --- */
.client-gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.gallery-photo-card{
  appearance:none;
  border:1px solid #353535;
  background:#151515;
  color:var(--text);
  padding:0;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  text-align:left;
  min-width:0;
}
.gallery-photo-card img{
  width:100%;
  aspect-ratio:4/3;
  display:block;
  object-fit:cover;
}
.gallery-photo-card span{
  display:block;
  padding:10px 12px;
  font-weight:800;
}
.gallery-lightbox-sheet{max-width:900px}
.gallery-lightbox-image{
  width:100%;
  max-height:70vh;
  object-fit:contain;
  display:block;
  border-radius:14px;
  background:#0b0b0b;
}
.gallery-upload-card{margin-bottom:14px}
.gallery-admin-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.gallery-admin-card{
  border:1px solid #353535;
  border-radius:15px;
  overflow:hidden;
  background:#161616;
}
.gallery-admin-image{
  height:220px;
  background:#0f0f0f;
}
.gallery-admin-image img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-admin-fields{padding:12px}
.gallery-admin-fields>label{display:block;font-weight:800}
.gallery-admin-fields input[type="text"]{
  width:100%;
  margin-top:6px;
  background:#101010;
  color:#fff;
  border:1px solid #414141;
  border-radius:10px;
  padding:10px;
}
.gallery-visible-check{
  display:flex!important;
  align-items:center;
  gap:8px;
  margin-top:11px;
  font-weight:700!important;
}
.gallery-visible-check input{width:auto;accent-color:var(--yellow)}
.gallery-admin-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}
@media(max-width:820px){
  .client-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-admin-list{grid-template-columns:1fr}
}
@media(max-width:520px){
  .client-gallery{grid-template-columns:1fr}
  .gallery-admin-actions .btn{flex:1 1 calc(50% - 7px)}
}


/* --- V2.20 : menu trois-points côté client --- */
.client-more-wrap{
  position:relative;
  flex:0 0 auto;
}
.client-more-btn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid #444;
  background:#292929;
  color:#fff;
  font-size:1.65rem;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:0 0 6px;
  touch-action:manipulation;
}
.client-more-btn:active{transform:scale(.97)}
.client-more-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:min(270px,calc(100vw - 24px));
  padding:7px;
  border:1px solid #414141;
  border-radius:14px;
  background:#171717;
  box-shadow:0 14px 34px rgba(0,0,0,.5);
  z-index:80;
}
.client-more-menu[hidden]{display:none}
.client-more-menu button{
  display:flex;
  align-items:center;
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#fff;
  text-align:left;
  font-weight:800;
  cursor:pointer;
}
.client-more-menu button:active{background:#2b2b2b}
@media (hover:hover) and (pointer:fine){
  .client-more-menu button:hover{background:#2b2b2b}
  .client-more-btn:hover{border-color:var(--yellow)}
}
@media(max-width:520px){
  .top-actions{gap:5px}
  #accountBtn{
    max-width:150px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .client-more-btn{width:40px;height:40px}
}


/* --- V2.21 : activation/désactivation des flèches du tableau --- */
#proApp.move-controls-enabled .dashboard-move-tools{
  display:flex;
}
.move-toggle-btn{
  white-space:nowrap;
}
.move-toggle-btn.ok{
  border-color:#2f8d57;
}
@media(max-width:620px){
  .move-toggle-btn{
    padding-left:10px;
    padding-right:10px;
    min-height:40px;
  }
  .topbar .top-actions{
    gap:5px;
  }
}
@media(max-width:430px){
  .move-toggle-btn{
    font-size:0;
    width:42px;
    padding:0;
  }
  .move-toggle-btn::after{
    content:"↕️";
    font-size:1.05rem;
  }
  .move-toggle-btn[aria-pressed="true"]::after{
    content:"↕️✓";
  }
}


/* --- V2.23 : galerie dans une vue séparée --- */
.gallery-view-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.client-gallery-view{
  padding-top:22px;
}
body.client-gallery-mode .client-main-view{
  display:none !important;
}
@media(max-width:620px){
  .gallery-view-head .btn{
    width:100%;
  }
}


/* --- V2.24 : avis après commande --- */
.customer-review{
  margin-top:14px;
  padding:14px;
  border:1px solid #454545;
  border-radius:14px;
  background:#171717;
}
.customer-review h3{margin:4px 0 12px}
.customer-review .field{margin-bottom:10px}
.customer-review select,
.customer-review textarea{
  width:100%;
  background:#101010;
  color:#fff;
  border:1px solid #444;
  border-radius:10px;
  padding:10px;
}
.customer-review-sent{
  border-color:#5e5224;
  background:#211d10;
}
.review-stars-display{
  color:#f3c533;
  font-size:1.25rem;
  letter-spacing:2px;
  font-weight:900;
  white-space:nowrap;
}
.reviews-list{display:grid;gap:12px}
.manager-review-card{margin:0}
.review-card-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.review-card-head>div:first-child{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.manager-review-comment{
  margin:12px 0;
  white-space:pre-wrap;
  line-height:1.5;
}
@media(max-width:600px){
  .review-card-head{flex-direction:column}
}


/* --- V2.26 : suppression d'un article --- */
.menu-edit-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.menu-edit-actions .btn{
  flex:1 1 220px;
}


/* --- V2.27 : suppression d'un compte serveur --- */
.staff-admin-head-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media(max-width:650px){
  .staff-admin-head-actions{
    width:100%;
    justify-content:stretch;
  }
  .staff-admin-head-actions .btn{
    flex:1 1 140px;
  }
}


/* --- V2.30 : bons Cuisine --- */
.kitchen-send{
  border-color:#8a6d1e;
}
.kitchen-sent-pill{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 10px;
  border-radius:10px;
  background:#292414;
  border:1px solid #6f5a1c;
  font-size:.86rem;
  font-weight:850;
  margin-right:7px;
}
.kitchen-ticket-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.kitchen-ticket{
  background:#fff;
  color:#111;
  border:2px solid #111;
  border-radius:4px;
  padding:14px;
  min-width:0;
}
.kitchen-ticket-number{
  font-size:1.35rem;
  font-weight:950;
  text-align:center;
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:2px dashed #222;
}
.kitchen-ticket-items{
  display:grid;
  gap:10px;
}
.kitchen-ticket-line{
  font-size:1.08rem;
  line-height:1.25;
}
.kitchen-ticket-line strong{
  display:block;
}
.kitchen-ticket-line small{
  display:block;
  margin-top:3px;
  font-size:.88rem;
  color:#333;
}
.kitchen-ticket-note{
  margin-top:12px;
  padding-top:10px;
  border-top:2px dashed #222;
  font-size:.95rem;
}
.kitchen-account-note{
  margin-top:12px;
}
@media(max-width:900px){
  .kitchen-ticket-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .kitchen-ticket-grid{grid-template-columns:1fr}
  .kitchen-ticket{font-size:1.03rem}
}


/* --- V2.31 : validation "Prêt" depuis la cuisine --- */
.kitchen-ready-btn{
  width:100%;
  margin-top:14px;
  min-height:48px;
  font-size:1.05rem;
  font-weight:900;
}


/* --- V2.35 : sonneries + synchronisation auto + cuisine --- */
.sound-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sound-choice{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #3f3f3f;border-radius:10px;background:#171717;font-size:.88rem;font-weight:800}
.sound-choice select{background:#0f0f0f;color:#fff;border:1px solid #4a4a4a;border-radius:8px;padding:7px 9px}
.kitchen-ticket-status{margin-top:12px;padding:8px 10px;text-align:center;border:1px solid #bbb;background:#f1f1f1;font-weight:900}
.kitchen-ticket-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.kitchen-ticket-actions .btn{width:100%;min-height:48px}
@media(max-width:600px){
  .sound-controls{width:100%}
  .sound-choice{flex:1 1 170px}
  .kitchen-ticket-actions{grid-template-columns:1fr}
}


/* --- V2.38 : heure prévue visible sur les bons Cuisine --- */
.kitchen-ticket-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.kitchen-ticket-time{
  font-weight:900;
  font-size:1.02rem;
  padding:7px 10px;
  border-radius:10px;
  background:#fff4cc;
  color:#111;
  border:1px solid #e0c36b;
}
@media(max-width:600px){
  .kitchen-ticket-head{align-items:flex-start}
  .kitchen-ticket-time{width:100%;text-align:center}
}


/* --- V2.40 : horaires dynamiques côté client --- */
.restaurant-hours{
  margin-top:12px;
  display:grid;
  gap:6px;
}
.restaurant-hours-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding-bottom:5px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.restaurant-hours-row:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.restaurant-hours-row span{
  min-width:82px;
}
.restaurant-hours-row strong{
  color:var(--text, #fff);
  text-align:right;
  font-weight:700;
}
@media(max-width:520px){
  .restaurant-hours-row{
    gap:8px;
  }
  .restaurant-hours-row strong{
    font-size:.92rem;
  }
}


/* --- V2.43 : priorité Cuisine par heure de retrait --- */
.kitchen-ticket-time{
  min-width:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:10px 16px;
}
.kitchen-ticket-time-label{
  font-size:.72rem;
  line-height:1;
  letter-spacing:.12em;
  font-weight:900;
  opacity:.72;
}
.kitchen-ticket-time strong{
  display:block;
  font-size:2.15rem;
  line-height:1;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.kitchen-ticket-next{
  border-width:2px;
}
.kitchen-next-label{
  margin:-2px -2px 12px;
  padding:7px 10px;
  text-align:center;
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.08em;
  border-radius:10px 10px 0 0;
  background:#f7c928;
  color:#111;
}
@media(max-width:600px){
  .kitchen-ticket-time{
    min-width:0;
    width:100%;
    padding:12px 10px;
  }
  .kitchen-ticket-time strong{
    font-size:2.45rem;
  }
}


/* --- V2.45 : avis clients publics --- */
.client-reviews-view{
  padding-top:22px;
}
body.client-reviews-mode .client-main-view{
  display:none !important;
}
.reviews-summary{
  margin:4px 0 18px;
}
.reviews-score{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:16px;
  border:1px solid #3d3d3d;
  border-radius:15px;
  background:#171717;
}
.reviews-score strong{
  font-size:1.9rem;
  line-height:1;
  color:var(--yellow);
}
.reviews-score small{
  color:var(--muted);
}
.client-reviews-list{
  display:grid;
  gap:12px;
}
.public-review-card{
  padding:16px;
  border:1px solid #3d3d3d;
  border-radius:15px;
  background:#171717;
}
.public-review-card p{
  margin:12px 0 0;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.public-review-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.public-review-stars{
  color:var(--yellow);
  letter-spacing:.08em;
  font-size:1.05rem;
  margin-top:3px;
}
@media(max-width:620px){
  .client-reviews-view .gallery-view-head .btn{
    width:100%;
  }
  .public-review-head{
    flex-direction:column;
    gap:6px;
  }
}
