/* ===========================================================
   DingTruck — design system repris du site vitrine MiamDrive
   Thème sombre, accent orange (#ff6b35 → #ffa94d).
   Tous les noms de classes historiques sont conservés et
   restylés : chaque page (vitrine, espace pro, back-office)
   hérite du même look sans modification de template.
   =========================================================== */
:root {
  /* Palette MiamDrive */
  --bg:        #0f1115;
  --card:      #171a21;
  --card-2:    #1c2029;
  --ink:       #f5f6f8;
  --muted:     #a6adbb;
  --brand:     #ff6b35;
  --brand-2:   #ffa94d;
  --line:      #262b36;
  --ok:        #37d399;
  --bad:       #ff5d6c;

  /* Alias hérités (référencés par d'anciens templates / règles) */
  --white:     #ffffff;
  --ink-soft:  var(--muted);
  --tangerine: var(--brand);
  --orange:    var(--brand);
  --honey:     var(--brand-2);
  --green:     var(--ok);
  --red:       var(--bad);

  --radius:    16px;
  --shadow:    0 12px 32px rgba(0,0,0,.35);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.28);
  --glow:      0 22px 60px rgba(255,107,53,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.container { max-width: 880px; margin: 0 auto; padding: 24px 20px 64px; }
.container-wide { max-width: 1120px; }

/* ---------- Header sticky flouté (MiamDrive) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(15,17,21,.78);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 22px; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand .dot { color: var(--brand-2); }
.topbar nav { display: flex; align-items: center; gap: 14px; }
.topbar nav a { font-weight: 600; font-size: 14.5px; color: var(--muted); }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 56px 24px 44px;
  background: radial-gradient(1100px 460px at 50% -12%, rgba(255,107,53,.14) 0%, transparent 62%);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 16px; font-weight: 850;
}
.hero p.lead, .hero .lead {
  font-size: clamp(16px, 2.4vw, 20px); color: var(--muted);
  max-width: 720px; margin: 0 auto 28px;
}
.hero .lead strong { color: var(--ink); }

/* Accent dégradé réutilisable (titres) */
.grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .02em; margin-bottom: 18px;
}
.badge-warn { background: rgba(255,169,77,.12); color: var(--brand-2); border-color: rgba(255,169,77,.35); margin-right: 8px; }
.badge-ok { background: rgba(55,211,153,.12); color: #7ce7bd; border-color: rgba(55,211,153,.35); margin-right: 8px; }

/* ---------- Cartes ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 22px;
}
.card h2, .card h3 { margin-top: 0; color: var(--ink); }
.card h3 { margin: .2rem 0 .5rem; font-size: 1.06rem; }
.card p { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); display: grid; gap: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; font-weight: 700;
  padding: 12px 22px; border-radius: 12px; font-size: 15px; line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #1a1003; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--brand); filter: none; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=time], input[type=date],
input[type=datetime-local], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: var(--card-2); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #6b7280; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #20242e; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
.check input { margin-top: 4px; width: auto; accent-color: var(--brand); }
.check label { margin: 0; font-weight: 600; color: var(--muted); font-size: .95rem; }

/* ---------- Pills / stats ---------- */
.pill {
  display: inline-block; background: rgba(255,169,77,.12); color: var(--brand-2);
  border: 1px solid rgba(255,169,77,.35);
  border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: .8rem;
}
.stat { background: var(--card-2); border-radius: 14px; padding: 18px; text-align: center; border: 1px solid var(--line); }
.stat .num {
  font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--muted); font-size: .85rem; font-weight: 700; }
.seg { color: var(--muted); font-weight: 700; font-size: .9rem; }

/* ---------- Notices ---------- */
.notice { border-radius: 14px; padding: 16px 18px; font-weight: 600; margin: 14px 0; border: 1px solid var(--line); }
.notice.ok   { background: rgba(55,211,153,.10); color: #7ce7bd; border-color: rgba(55,211,153,.30); }
.notice.err, .notice.error { background: rgba(255,93,108,.10); color: #ff97a2; border-color: rgba(255,93,108,.30); }
.notice.info { background: rgba(255,169,77,.10); color: var(--brand-2); border-color: rgba(255,169,77,.30); }
/* Bandeau de statut (essai / abonnement) : fond blanc, texte noir — lisible sur le theme sombre */
.notice.status { background: #ffffff; color: #12141a; border-color: #d7dbe3; border-left: 4px solid var(--brand); }
.notice.status strong { color: #12141a; }
.notice.status a { color: var(--brand); font-weight: 700; text-decoration: underline; }
/* Boutons secondaires POSÉS SUR la carte claire .notice.status : le style global
   .btn.secondary a un texte clair (thème sombre) → illisible sur fond blanc. On force
   un texte sombre lisible ici (corrige « Réactiver » / « Résilier » le renouvellement). */
.notice.status .btn.secondary { background: #fff; color: #12141a; border-color: #c4c9d4; }
.notice.status .btn.secondary:hover { border-color: var(--brand); color: #12141a; }

/* ---------- Listes ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.list li:last-child { border-bottom: none; }
.muted { color: var(--muted); font-size: .95rem; }
a.muted:hover { color: var(--ink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: 32px 20px; margin-top: 50px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto 18px; text-align: left; }
footer .foot-cols strong { display: block; color: var(--ink); margin-bottom: 8px; }
footer .foot-cols a { display: block; margin: 4px 0; }
footer .foot-legal { border-top: 1px solid var(--line); padding-top: 14px; text-align: center; max-width: 960px; margin: 0 auto; }

/* ---------- Carte MapLibre ---------- */
#map { width: 100%; height: 68vh; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Pages légales ---------- */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.legal h1, .legal h2, .legal h3 { color: var(--ink); }
.legal a { color: var(--brand-2); }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal th { background: var(--card-2); color: var(--ink); }
.legal code { background: var(--card-2); padding: 2px 5px; border-radius: 5px; color: var(--brand-2); }

/* ===========================================================
   Composants pro / commercial
   =========================================================== */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.center { text-align: center; }
.small { font-size: .82rem; }
.req { color: var(--brand); }
.nav-pro {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #1a1003 !important; padding: 9px 16px; border-radius: 12px; font-weight: 700 !important;
}
.nav-pro:hover { text-decoration: none; filter: brightness(1.06); }

.section-title { text-align: center; margin: 52px 0 26px; font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -.02em; font-weight: 820; }
.ico { font-size: 2rem; line-height: 1; margin-bottom: 8px; }

/* Étapes "comment ça marche" */
.steps { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.step strong { color: var(--ink); }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; font-weight: 900;
  display: flex; align-items: center; justify-content: center; }
.step p { margin: 4px 0 0; color: var(--muted); }

/* Tarifs */
.pricing { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured {
  border: 1px solid var(--brand);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  box-shadow: 0 16px 44px rgba(255,107,53,.14);
}
.price-card .price { margin: 8px 0; }
.price-card .amount {
  font-size: 2.4rem; font-weight: 850; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-card .tagline { color: var(--muted); font-weight: 700; min-height: 42px; }
.ribbon { position: absolute; top: -12px; right: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; font-weight: 800; font-size: .78rem;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* Offre de lancement */
.price-card .price .ref { text-decoration: line-through; color: var(--muted); font-size: 1.25rem; font-weight: 800; margin-right: 10px; opacity: .7; }
.promo-flag { display: inline-block; background: rgba(255,169,77,.12); color: var(--brand-2); font-weight: 800; font-size: .9rem; padding: 7px 12px; border-radius: 12px; margin: 2px 0 10px; border: 1px solid rgba(255,169,77,.35); }
.launch-flash { display: inline-block; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; font-weight: 800; font-size: .95rem; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin: 0 auto 18px; }
.launch-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; text-align: center;
  background: linear-gradient(150deg, var(--card-2), var(--card)); border: 1px solid var(--brand); border-radius: var(--radius);
  padding: 16px 22px; max-width: 720px; margin: 0 auto 22px; }
.launch-banner .lb-tag { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; font-weight: 900; font-size: .9rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.launch-banner p { margin: 0; color: var(--ink); font-weight: 700; font-size: 1.02rem; }
/* Compteur d'offre de lancement (« X places restantes ») */
.launch-counter { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: linear-gradient(150deg, rgba(255,107,53,.12), rgba(255,169,77,.06));
  border: 1px solid var(--brand); border-radius: 999px; padding: 8px 10px 8px 18px; margin: 0 auto 14px;
  box-shadow: var(--shadow-sm); }
.launch-counter .lc-line { color: var(--ink); font-weight: 700; font-size: .98rem; }
.launch-counter .lc-badge { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; font-weight: 800;
  font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.launch-counter .lc-num { font-size: 1.25rem; font-weight: 900; line-height: 1; }
.launch-counter--inline { display: flex; margin: 12px 0 4px; padding: 8px 10px 8px 14px; }
/* Encadré compteur AUTONOME (hero Espace Pro) : gros chiffre centré sous l'annonce */
.launch-counter-box { display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 6px auto 20px; padding: 16px 36px; border: 2px solid var(--brand); border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,107,53,.14), rgba(255,169,77,.05));
  box-shadow: var(--shadow-sm); max-width: 340px; }
.launch-counter-box .lcb-num { font-size: 2.9rem; font-weight: 900; line-height: 1.05; color: var(--brand); }
.launch-counter-box .lcb-label { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 14px 0; flex: 1; }
.ticks li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-weight: 600; font-size: .92rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }

/* Packs SMS */
.pack { text-align: center; }
.pack h4 { margin: 0 0 8px; color: var(--ink); }
.pack-count { font-weight: 800; color: var(--ink); }
.pack-price { font-size: 1.6rem; font-weight: 850; margin: 4px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 24px; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Bandeaux d'appel */
.cta-final { text-align: center; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 24px; padding: 48px 26px; }
.cta-final h2 { margin-top: 0; }
.cta-final p { color: var(--muted); }
.pro-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(150deg, var(--card-2), var(--card)); border: 1px solid var(--brand); }
.pro-strip h2 { color: var(--ink); }
.pro-strip .btn { flex: none; }

/* Formulaires (inscription / connexion) */
.form-card { max-width: 560px; margin: 18px auto; }
.form-card fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 18px; margin: 0 0 18px; }
.form-card legend { font-weight: 800; color: var(--ink); padding: 0 8px; }
.form-card label { display: block; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.form-card small { display: block; margin-top: 4px; color: var(--muted); }

/* Pied de page en colonnes déjà couvert plus haut */

/* Carte (menu) — fiche établissement */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 14px 0; }
.menu-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card-2); display: flex; flex-direction: column; }
.menu-item img { width: 100%; height: 150px; object-fit: cover; display: block; }
.menu-item-body { padding: 12px 14px; }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.menu-price { font-weight: 850; color: var(--brand-2); white-space: nowrap; }
.menu-item-off { opacity: .62; }
.menu-item-off img { filter: grayscale(1); }
.menu-badge-off { display: inline-block; margin: 2px 0 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--bad); border: 1px solid var(--bad); }
.menu-card-actions { display: flex; align-items: center; gap: 12px; }
.menu-move { display: flex; gap: 6px; margin: 8px 0 2px; }
.menu-move form { margin: 0; }
.menu-move-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-size: 1.05rem; font-weight: 800; line-height: 1; cursor: pointer; }
.menu-move-btn:hover:not(:disabled) { border-color: var(--brand-2); color: var(--brand-2); }
.menu-move-btn:disabled { opacity: .35; cursor: default; }
.menu-edit-item > summary { list-style: none; display: inline-block; margin-top: 6px; }
.menu-edit-item > summary::-webkit-details-marker { display: none; }
.btn-link-danger { background: none; border: none; color: var(--bad); font-weight: 700; cursor: pointer; padding: 6px 0 0; text-decoration: underline; }

/* Lieux : ligne dépliable */
.loc-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.loc-row:last-of-type { border-bottom: none; }
.loc-row > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.loc-row > summary::-webkit-details-marker { display: none; }
.loc-row > summary::before { content: "▸"; color: var(--brand-2); font-weight: 900; margin-right: 4px; }
.loc-row[open] > summary::before { content: "▾"; }

/* Sélecteur de jours */
.day-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.day-check { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; user-select: none; color: var(--muted); }
.day-check input { margin: 0; accent-color: var(--brand); }

/* Tableau back-office super-admin */
.bo-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bo-table th, .bo-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bo-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* Panneaux d'onglets back-office restaurateur (la bascule est pilotée par la barre
   de navigation _nav.html sur le web et par la barre native dans l'appli). */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.btn-link { background: none; border: none; color: var(--brand-2); font-weight: 700; cursor: pointer; padding: 6px 0 0; text-decoration: underline; }

/* Bannière mode vacances (fiche publique) */
.closure-banner { background: rgba(255,169,77,.10); color: var(--brand-2); border: 1px solid rgba(255,169,77,.30);
  border-radius: 14px; padding: 16px 18px; font-weight: 700; margin: 14px 0; }

/* Liens site web + réseaux sociaux (fiche publique) */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.social-link { display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-2); color: var(--ink); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: .9rem; text-decoration: none;
  border: 1px solid var(--line); transition: border-color .15s ease, transform .05s ease; }
.social-link:hover { border-color: var(--brand); text-decoration: none; }
.social-link:active { transform: translateY(1px); }

/* Navigation de l'espace restaurateur */
.dash-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; margin: 4px 0 22px;
}
.dash-nav a {
  font-weight: 800; color: var(--muted); text-decoration: none;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.dash-nav a:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.dash-nav a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; }
.dash-nav-out { margin-left: auto; color: var(--bad) !important; }
.dash-nav-out:hover { background: rgba(255,93,108,.12) !important; color: var(--bad) !important; }
@media (max-width: 640px) {
  .dash-nav { border-radius: 18px; }
  .dash-nav-out { margin-left: 0; }

  /* Espace pro sur téléphone : on empile tout en une colonne pour éviter
     tout débordement horizontal (cartes stats, raccourcis, grilles). */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-wide { padding-left: 14px; padding-right: 14px; max-width: 100%; }
  /* Garde-fou : jamais de scroll horizontal dans l'appli / sur mobile. */
  html, body { overflow-x: hidden; }
  /* Champs et blocs pré-formatés ne poussent pas la page au-delà de l'écran. */
  input, select, textarea, .card, pre, table { max-width: 100%; }
  input, select, textarea { box-sizing: border-box; }
}

@media (max-width: 860px) {
  .pro-strip { text-align: center; justify-content: center; }
}

/* ===========================================================
   Navigation espace pro — MOBILE d'abord (appli)
   Barre du haut (hamburger) + tiroir latéral + barre du bas.
   Sur grand écran : onglets horizontaux classiques.
   =========================================================== */

.dash-h1 { margin: .3rem 0 .8rem; font-size: 1.5rem; font-weight: 850; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: .2rem 0 1.1rem; }
.section-intro { margin: .2rem 0 12px; }

/* Sous-navigation « chips » (sauts de section internes) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.chips a { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: .86rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.chips a:hover { border-color: var(--brand); text-decoration: none; }

/* Sous-onglets Marketing : chaque section (Vitrine, Plats, Fidélité, Lieux,
   Créneaux) s'affiche SEULE → lecture aérée, opérations non noyées. La barre
   de sous-onglets reste collée en haut pendant le défilement d'une section. */
.mk-subnav { position: sticky; top: 0; z-index: 5; background: var(--bg);
  padding: 10px 0; margin: 6px 0 14px; }
.chip-btn { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: .86rem; color: var(--ink);
  white-space: nowrap; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn.active { background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff; }
.mk-group { display: none; }
.mk-group.active { display: block; }

/* Cartes de raccourci « Mon compte » (abonnement, crédits, parrainage) */
.acct-card .acct-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-card h2 { margin: .1rem 0; font-size: 1.12rem; }
.acct-card p { margin: .25rem 0 0; }

/* Barre supérieure (mobile) : hamburger + titre de section */
.dash-topbar { display: none; align-items: center; gap: 8px;
  position: sticky; top: 0; z-index: 30;
  margin: -24px -20px 14px; padding: 8px 12px;
  background: rgba(15,17,21,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.dash-title { font-weight: 850; font-size: 1.05rem; flex: 1; }
.dash-topbar-out { font-size: .82rem; color: var(--muted); font-weight: 700; }
.dt-burger { width: 42px; height: 42px; display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: 12px; }
.dt-burger:hover { background: var(--card-2); }
.dt-burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* Onglets horizontaux : desktop uniquement (réutilise le style .dash-nav) */
.dash-nav-desktop { display: flex; }

/* Tiroir latéral (drawer) — ouverture 100 % CSS via la case #dt-drawer */
.dt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .2s ease; }
#dt-drawer:checked ~ .dt-overlay { opacity: 1; visibility: visible; }
.dt-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
  width: 84%; max-width: 320px; background: var(--card); border-right: 1px solid var(--line);
  box-shadow: var(--shadow); transform: translateX(-100%); transition: transform .22s ease;
  overflow-y: auto; padding: 14px 12px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; }
#dt-drawer:checked ~ .dt-drawer { transform: none; }
.dt-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; }
.dt-drawer-brand { font-weight: 850; font-size: 1.1rem; }
.dt-drawer-close { font-size: 1.2rem; cursor: pointer; color: var(--muted);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.dt-drawer-close:hover { background: var(--card-2); color: var(--ink); }
.dt-drawer-group { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em;
  color: var(--muted); margin: 14px 10px 4px; font-weight: 800; }
.dt-drawer-link { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px;
  padding: 12px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.dt-drawer-link > span { width: 24px; text-align: center; font-size: 1.1rem; }
.dt-drawer-link em { flex-basis: 100%; margin-left: 36px; font-style: normal;
  font-weight: 500; font-size: .78rem; color: var(--muted); }
.dt-drawer-link:hover { background: var(--card-2); text-decoration: none; }
.dt-drawer-link.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1003; }
.dt-drawer-link.on em { color: #4a2e0a; }
.dt-drawer-logout { margin-top: auto; color: var(--bad); }
.dt-drawer-logout:hover { background: rgba(255,93,108,.12); }

/* Barre d'accès rapide en bas (mobile) */
.dash-bottombar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  justify-content: space-around; align-items: stretch;
  background: rgba(23,26,33,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.dash-bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px 6px; font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.dash-bottombar a .i { font-size: 1.3rem; line-height: 1; }
.dash-bottombar a.on { color: var(--brand-2); }
.dash-bottombar a:active { background: var(--card-2); }

@media (max-width: 860px) {
  .dash-nav-desktop { display: none; }
  .dash-topbar { display: flex; }
  .dash-bottombar { display: flex; }
  .container { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) {
  .dt-burger, .dt-drawer, .dt-overlay, .dash-topbar, .dash-bottombar { display: none; }
}

/* ---------------------------------------------------------------------------
   Magazine / blog (SEO)
--------------------------------------------------------------------------- */
.blog-hero { padding: 22px 0 6px; }
.blog-hero .container { padding-bottom: 8px; }
.blog-hero h1 { margin: .2rem 0 .4rem; }
.blog-hero .crumb { color: var(--muted); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--card); }
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip-on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1206; border-color: transparent; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.blog-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cover-ph { display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: linear-gradient(135deg, rgba(255,107,53,.16), rgba(255,169,77,.08)); }
.blog-card-body { padding: 14px 16px 18px; }
.blog-card-body h2, .blog-card-body h3 { margin: .5rem 0 .4rem; font-size: 1.12rem; color: var(--ink); line-height: 1.25; }
.blog-card-body h3 { font-size: 1.02rem; }
.blog-meta { color: var(--muted); font-size: .82rem; margin: .5rem 0 0; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 10px; }

.blog-article { max-width: 760px; }
.blog-article .crumbs { font-size: .85rem; margin: 6px 0 14px; }
.blog-article .crumbs a { color: var(--muted); }
.blog-article h1 { margin: .3rem 0 .5rem; line-height: 1.15; }
.blog-hero-img { width: 100%; border-radius: var(--radius); margin: 16px 0 8px; box-shadow: var(--shadow-sm); }
.prose { font-size: 1.06rem; line-height: 1.75; color: #d9dde6; }
.prose h2 { color: var(--ink); margin: 1.8rem 0 .6rem; font-size: 1.5rem; }
.prose h3 { color: var(--ink); margin: 1.4rem 0 .5rem; font-size: 1.2rem; }
.prose p { margin: 0 0 1.05rem; }
.prose a { color: var(--brand-2); }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose blockquote { margin: 1.2rem 0; padding: 4px 16px; border-left: 3px solid var(--brand);
  color: var(--muted); background: var(--card); border-radius: 0 12px 12px 0; }
.prose img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.blog-cta { margin: 34px 0 10px; text-align: center; background: linear-gradient(135deg, rgba(255,107,53,.12), rgba(255,169,77,.06)); }
.related { margin-top: 34px; }
.related h2 { margin-bottom: 6px; }

/* --- Cartes multiples par catégorie (dashboard « Mes cartes » + fiche publique) --- */
.menu-card-block { border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); padding: 16px; margin-top: 16px; }
.menu-card-block.menu-card-new { background: rgba(255,107,53,.05); border-style: dashed; }
.menu-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.menu-card-name { display: block; font-size: 1.08rem; margin-top: 6px; }
.cat-badge { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,107,53,.14); color: var(--brand-2); border: 1px solid rgba(255,169,77,.35); }
.menu-card-settings, .menu-add-item { margin-top: 12px; }
.menu-card-settings > summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.menu-add-item > summary { cursor: pointer; list-style: none; margin-top: 4px; }
.menu-add-item > summary::-webkit-details-marker { display: none; }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; }
.check-line input { width: auto; margin: 0; }
/* Carte servie sous une présence (fiche publique) */
.service-cards { display: block; margin-top: 4px; font-size: .85rem;
  color: var(--brand); font-weight: 600; }
/* Attribution d'une carte à des emplacements (dashboard) */
.menu-card-locs { margin: 8px 0 0; font-size: .85rem; }
.loc-assign { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(255,107,53,.04); }
.loc-assign legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.loc-assign-hint { margin: 0 0 4px; font-size: .82rem; line-height: 1.35; }
/* Filtre de catégorie sur la carte publique */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0 0 14px; }
.cat-filter select { max-width: 320px; }
.cat-filter .count { color: var(--muted); font-size: .85rem; }
/* Badges de catégories sur la fiche publique */
.truck-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }

/* Landing pro (/food-truck) — 26/07/2026 : passages-clés plus contrastants + rythme
   vertical un peu plus aéré. Réutilise les tokens existants (--ink = couleur d'emphase). */
.landing-pro p.center strong,
.landing-pro .card p strong { color: var(--ink); font-weight: 800; }
.landing-pro .section-title { margin-top: 60px; }
.landing-pro .bene-intro { max-width: 720px; margin: 0 auto 30px; }
.landing-pro .bene-close { max-width: 720px; margin: 30px auto 0; }

/* ---- Home publique : bandeau de lancement, bloc découverte, badges stores ----
   Glue de mise en page uniquement — réutilise les tokens et composants existants
   (aucun nouveau langage visuel). */
/* Bandeau de lancement de la HOME = bulle rectangulaire arrondie qui FLOTTE (marges
   en haut et sur les côtés), pas un bandeau collé bord à bord.
   ⚠ Classe DÉDIÉE `.home-launch` (PAS `.launch-banner`, déjà utilisée par la landing
   pro et la page abonnement avec un tout autre design — collision de nom à éviter). */
.home-launch { padding: 16px 16px 0; }
.home-launch-bubble { max-width: 1080px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #12141a;
  border-radius: 16px; padding: 14px 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.home-launch .lb-text { margin: 0; font-weight: 800; font-size: .98rem; line-height: 1.35; }
.home-launch .lb-text span { color: #3a2a10; font-weight: 600; }
.home-launch .lb-pro { color: #12141a; font-weight: 800; white-space: nowrap; text-decoration: underline; }
/* Retour discret en tête des pages de contenu (fiche food truck, etc.). */
.back-link { display: inline-block; margin: 0 0 14px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.back-link:hover { color: var(--ink); text-decoration: none; }
.near-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; margin: -10px 0 8px; }
.near-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.near-search input { width: auto; min-width: 210px; margin: 0; }
.near-hint { text-align: center; margin: 0 0 18px; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 22px 0 8px; }
.store-badges a { display: inline-block; transition: transform .12s ease, filter .12s ease; }
.store-badges a:hover { transform: translateY(-1px); filter: brightness(1.05); }
.store-badges img { height: 54px; width: auto; display: block; }
@media (max-width: 640px) {
  .home-launch { padding: 12px 12px 0; }
  .home-launch-bubble { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .near-search input { min-width: 0; flex: 1; }
}
