/* ── Restaurateur ── */
.resto-body { background: #f4f5f7; min-height: 100vh; }

.resto-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.resto-login-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.resto-back { font-size:13px; color:var(--c-text-3); text-decoration:underline; display:block; margin-bottom:20px; }
.resto-logo { height:40px; margin-bottom:20px; }
.resto-login-title { font-size:1.4rem; font-weight:700; color:var(--c-navy); margin-bottom:6px; }
.resto-login-sub { font-size:13px; color:var(--c-text-3); margin-bottom:24px; }
.resto-login-form { display:flex; flex-direction:column; gap:10px; }
.resto-login-hint { font-size:11px; color:var(--c-text-3); margin-top:16px; }

.resto-header {
  background: var(--c-navy);
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.resto-header-back { color:rgba(255,255,255,.6); font-size:13px; text-decoration:none; }
.resto-header-back:hover { color:#fff; }
.resto-header-brand { flex:1; display:flex; align-items:center; gap:10px; }
.resto-header-logo { height:28px; filter:brightness(0) invert(1); }
.resto-header-nom { color:#fff; font-weight:600; font-size:15px; }
.resto-header-logout { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); color:#fff; padding:6px 14px; border-radius:6px; cursor:pointer; font-size:13px; font-family:var(--font-body); }

.resto-main { max-width: 800px; margin: 0 auto; padding: 28px 20px; display:flex; flex-direction:column; gap:24px; }

.resto-section {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.resto-section-header {
  padding: 18px 20px 0;
  display: flex; align-items: center; gap: 10px;
}
.resto-section-header h2 { font-size:16px; font-weight:700; color:var(--c-navy); flex:1; }
.resto-date-badge {
  background: var(--c-green-light); color:var(--c-green);
  font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px;
}
.resto-hint { font-size:12px; color:var(--c-text-3); }
.resto-empty { font-size:13px; color:var(--c-text-3); padding:16px 20px; margin:0; }

.resto-menu-actuel {
  padding: 12px 20px;
  background: var(--c-green-light);
  margin: 12px 20px;
  border-radius: 10px;
  font-size:13px; line-height:1.6;
  white-space: pre-wrap;
  display: none;
}
.resto-menu-actuel.visible { display: block; }

.resto-form-card {
  padding: 18px 20px;
  border-top: 1px solid var(--c-surface-2);
  display: flex; flex-direction:column; gap:10px;
}
.resto-form-card h3 { font-size:13px; font-weight:700; color:var(--c-text-2); margin:0 0 4px; }

.resto-photo-actuelle {
  padding: 12px 20px;
}
.resto-photo-actuelle img {
  width: 100%; max-height: 200px; object-fit:cover;
  border-radius: 10px; border:1px solid var(--c-border);
  display: block;
}

/* ── Éditeur de carte ── */
.carte-categories { display:flex; flex-direction:column; gap:12px; }
.carte-categorie {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}
.carte-categorie-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--c-surface-2);
  font-size:13px; font-weight:700; color:var(--c-navy);
}
.carte-categorie-header button {
  margin-left:auto; background:none; border:none;
  color:var(--c-red); cursor:pointer; font-size:16px; padding:0 4px;
}
.carte-lignes { padding:8px; display:flex; flex-direction:column; gap:6px; }
.carte-ligne {
  display:grid; grid-template-columns:1fr auto auto;
  gap:8px; align-items:center;
}
.carte-ligne input { font-size:13px; }
.carte-ligne .prix-input { width:80px; }
.carte-ligne .del-btn {
  background:none; border:none; color:var(--c-red); cursor:pointer; font-size:16px; padding:0 4px;
}
.carte-add-ligne {
  display:flex; gap:8px; padding:6px 8px 8px;
  border-top:1px dashed var(--c-border);
}
.carte-add-ligne input { font-size:12px; }

/* ── Preview carte ── */
.resto-carte-preview { padding:12px 20px; }
.carte-preview-section { margin-bottom:12px; }
.carte-preview-section h4 {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--c-text-3); margin:0 0 6px;
}
.carte-preview-item {
  display:flex; justify-content:space-between; align-items:baseline;
  padding:5px 0; border-bottom:1px dotted var(--c-border);
  font-size:13px;
}
.carte-preview-item:last-child { border-bottom:none; }
.carte-preview-prix { font-weight:600; color:var(--c-green); white-space:nowrap; margin-left:10px; }

/* ── Ligne carte : description large, prix compact ── */
.carte-add-ligne {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  padding: 8px 8px 10px;
  border-top: 1px dashed var(--c-border);
  align-items: center;
}
.carte-add-ligne input[placeholder="Nouveau plat"],
.carte-add-ligne input:first-child {
  /* Description : prend tout l'espace disponible */
  min-width: 0;
}
.carte-add-ligne .prix-input,
.carte-add-ligne input[placeholder="Prix"] {
  width: 90px !important;
  min-width: 0;
}

/* Lignes existantes : même ratio */
.carte-ligne {
  display: grid;
  grid-template-columns: 1fr 90px 32px;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
}
.carte-ligne input:first-child { min-width: 0; }
.carte-ligne .prix-input { width: 90px !important; min-width: 0; }
