/*
Theme Name: Mili Menu
Theme URI: https://example.com
Author: Mili Menu
Author URI: https://example.com
Description: Mili Menu — Smart Digital Menus. Plateforme de menus interactifs et commandes en direct.
Version: 2.2.8
Text Domain: milimenu-saas
*/

:root {
  --bg: #ffffff;
  --bg-soft: #fff9f3;
  --tertiary: #fff9f3;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #ff8500;
  --secondary: #6b2e00;
  --primary-hover: #e67600;
  --accent: #ff8500;
  --danger: #ff6b6b;
  --radius: 14px;
  --site-header-height: 4.35rem;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  color: var(--text);
  overflow-x: clip;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

body.has-site-header {
  padding-top: var(--site-header-height);
}

.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: none;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.9rem;
  position: relative;
  flex-wrap: nowrap;
}

.site-header-start {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(107, 46, 0, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}

.site-nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--secondary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header-wrap.is-nav-open .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header-wrap.is-nav-open .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header-wrap.is-nav-open .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav-panel {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav {
  width: 100%;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-item {
  margin: 0;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav-link.is-active {
  background: rgba(255, 133, 0, 0.14);
  border-color: rgba(255, 133, 0, 0.32);
  color: var(--secondary);
  font-weight: 800;
  text-decoration: none;
}

@media (hover: hover) {
  .site-nav-link:hover:not(.is-active) {
    background: rgba(255, 133, 0, 0.06);
    border-color: rgba(255, 133, 0, 0.14);
    color: var(--secondary);
    text-decoration: none;
  }
}

.site-nav-link--btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.site-nav-link--btn:hover,
.site-nav-link--btn.is-active {
  background: #e67700;
  border-color: #e67700;
  color: #fff;
}

.site-nav-link--outline {
  background: transparent;
  color: var(--secondary);
  border-color: rgba(107, 46, 0, 0.18);
}

.site-nav-link--outline:hover,
.site-nav-link--outline.is-active {
  background: rgba(255, 249, 243, 0.9);
  color: var(--secondary);
}

.site-nav-link--logout {
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.16);
}

.site-nav-link--logout:hover {
  background: rgba(254, 226, 226, 0.7);
  border-color: rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}

.site-nav-backdrop {
  display: none;
}

body.logged-in .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.logged-in .site-header-start {
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
}

body.logged-in .site-header .brand {
  display: inline-flex;
  max-width: 100%;
}

body.logged-in .site-header .brand-logo {
  display: block;
  max-height: 32px;
  width: auto;
  height: auto;
  max-width: min(220px, calc(100vw - 5.5rem));
  object-fit: contain;
  object-position: left center;
}

body.logged-in .site-header .brand-name {
  font-size: 1rem;
}

body.logged-in .site-nav-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
}

body.logged-in .site-nav-panel {
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  right: 0;
  z-index: 1001;
  display: block;
  flex: none;
  justify-content: flex-start;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--secondary);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

body.logged-in .site-header-wrap.is-nav-open .site-nav-panel {
  max-height: calc(100vh - var(--site-header-height));
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

body.logged-in .site-nav {
  padding: 0.85rem max(1rem, env(safe-area-inset-left)) 1rem max(1rem, env(safe-area-inset-right));
}

body.logged-in .site-nav-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 249, 243, 0.9);
  border: 1px solid rgba(107, 46, 0, 0.1);
}

body.logged-in .site-nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

body.logged-in .site-nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  white-space: normal;
}

body.logged-in .site-header-wrap.is-nav-open {
  z-index: 1100;
}

body.logged-in .site-header-wrap.is-nav-open .site-nav-backdrop {
  display: block;
  pointer-events: auto;
}

body.logged-in .site-nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

body:not(.logged-in) .site-nav-panel {
  position: static;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: flex-end;
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:not(.logged-in) .site-nav-list {
  flex-wrap: nowrap;
}

body.mmsaas-orders-board-page .com-board-wrap {
  padding-top: 0;
}

body.mmsaas-orders-board-page .site-footer {
  margin-top: 1.5rem;
}

body.site-nav-open {
  overflow: hidden;
  touch-action: none;
}

body.logged-in .site-header-wrap:not(.is-nav-open) .site-nav-backdrop {
  display: none;
  pointer-events: none;
}

body.logged-in .site-nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

body.logged-in .site-nav-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.logged-in .site-nav-user-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

body.logged-in .site-nav-user-name {
  font-size: 0.92rem;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.logged-in .site-nav-user-avatar {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

.brand--has-logo .brand-name {
  display: none;
}

.brand-logo {
  display: block;
  max-height: 44px;
  max-width: min(220px, 70vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.site-header .nav-links {
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.site-header .nav-links .btn,
.site-header .nav-links .btn-outline {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 46, 0, 0.14);
  background: rgba(255, 249, 243, 0.7);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-profile-link:hover,
.nav-profile-link.is-active {
  border-color: rgba(255, 133, 0, 0.45);
  background: rgba(255, 133, 0, 0.08);
  text-decoration: none;
}

.nav-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.nav-profile-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.nav-home-link {
  font-size: 0.82rem;
}

.nav-logout-link {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.78rem !important;
}

.btn,
body:not(.mmsaas-menu-editor-page) button:not([class*="ccart"]):not([class*="cmg-"]):not(.site-nav-toggle):not(.site-nav-backdrop):not(.com-board-sound):not(.mmt-btn):not(.menu-dashboard-tool-btn),
input[type="submit"] {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover,
body:not(.mmsaas-menu-editor-page) button:not([class*="ccart"]):not([class*="cmg-"]):not(.site-nav-toggle):not(.site-nav-backdrop):not(.com-board-sound):not(.mmt-btn):not(.menu-dashboard-tool-btn):hover,
input[type="submit"]:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 133, 0, 0.45);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(255, 133, 0, 0.08);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

body.single-cmg_menu .container,
body.page-template-default:has(.cmg-menu) .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mmsaas-menu-editor-page {
  background: #f6f7f7;
}

body.mmsaas-menu-editor-page.has-site-header {
  padding-top: var(--site-header-height);
}

body.mmsaas-menu-tables-page.has-site-header {
  padding-top: var(--site-header-height);
}

body.mmsaas-menu-editor-page .container.mmsaas-menu-editor-page {
  width: min(1180px, 100%);
  max-width: 1180px;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  overflow-x: clip;
}

body.single-cmg_menu {
  overflow-x: hidden;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

body.single-cmg_menu .ccart,
body.single-cmg_menu .ccart-modal,
body.single-cmg_menu .ccart-sticky-checkout.is-visible {
  position: fixed;
  z-index: 100000;
}

.hero {
  padding: 3.5rem 0 2.2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin: 2rem 0 3.2rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.surface {
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.form-wrap {
  width: min(520px, 92%);
  margin: 2rem auto;
}

label {
  display: block;
  margin: 0.6rem 0 0.3rem;
  font-weight: 600;
}

body:not(.mmsaas-menu-editor-page) input[type="text"],
body:not(.mmsaas-menu-editor-page) input[type="email"],
body:not(.mmsaas-menu-editor-page) input[type="password"],
body:not(.mmsaas-menu-editor-page) input[type="tel"] {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.2);
  background: #ffffff;
  color: #111827;
}

.notice,
.error,
.success {
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0;
}

.notice {
  background: rgba(255, 133, 0, 0.12);
  border: 1px solid rgba(255, 133, 0, 0.4);
}

.error {
  background: rgba(255, 107, 107, 0.18);
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.success {
  background: rgba(48, 210, 162, 0.18);
  border: 1px solid rgba(48, 210, 162, 0.45);
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(31, 41, 55, 0.1);
}

.nav-text {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-text:hover {
  color: var(--primary);
}

/* ── Profile page ── */

.profile-page {
  padding-block: 2rem 3rem;
}

.profile-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-card-head h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  color: var(--secondary);
}

.profile-card-head p {
  margin: 0;
  color: var(--muted);
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(107, 46, 0, 0.08);
}

.profile-summary-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.profile-form-grid p {
  margin: 0 0 0.75rem;
}

.profile-form-full {
  grid-column: 1 / -1;
}

.profile-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.profile-password-fieldset {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 12px;
}

.profile-password-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--secondary);
}

.profile-password-hint {
  margin: 0 0 0.75rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* ── Homepage ── */

.home-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.home-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 133, 0, 0.12);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-slogan {
  display: block;
  margin: -0.35rem 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.home-hero {
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 1.5rem;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.home-hero-content,
.home-login-card {
  min-width: 0;
}

.home-hero-content h1 {
  font-size: clamp(1.55rem, 5.5vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.home-hero-content > p {
  max-width: 100%;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.home-features {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 1.25rem;
}

.home-feature {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 133, 0, 0.14);
}

.home-feature strong {
  font-size: 0.92rem;
}

.home-feature span {
  font-size: 0.82rem;
  color: var(--muted);
}

.home-login-card {
  position: sticky;
  top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.25rem);
  width: 100%;
  max-width: 100%;
}

.home-login-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.home-login-card > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-login-form {
  display: grid;
  gap: 0.15rem;
}

.home-login-form label {
  margin-top: 0.55rem;
  font-size: 0.88rem;
}

.home-remember {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 0.85rem !important;
  font-weight: 500 !important;
  font-size: 0.86rem !important;
}

.home-remember input {
  width: auto;
}

.home-login-submit {
  width: 100%;
  text-align: center;
}

.home-login-footer {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.home-login-card .csl-social-login {
  width: 100%;
  max-width: 100%;
}

.home-benefits {
  padding: 1rem 0 2.5rem;
}

/* ── Dashboard (logged in) ── */

.home-dashboard {
  padding: 2rem 0 2.5rem;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.dashboard-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.dashboard-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.dashboard-status-card {
  min-width: 0;
  width: 100%;
  max-width: 360px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(255, 133, 0, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 0.25rem;
}

.dashboard-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.dashboard-status-value {
  font-size: 1.15rem;
  font-weight: 800;
}

.dashboard-status-value--active,
.dashboard-status-value--trialing {
  color: #059669;
}

.dashboard-status-value--expired,
.dashboard-status-value--suspended {
  color: #dc2626;
}

.dashboard-status-trial {
  font-size: 0.82rem;
  color: var(--muted);
}

.dashboard-status-access {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-status-access.is-open {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.dashboard-status-access.is-closed {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.dashboard-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  border: 1px dashed rgba(255, 133, 0, 0.35);
}

.dashboard-empty strong {
  display: block;
  margin-bottom: 0.35rem;
}

.dashboard-empty p {
  margin: 0;
  color: var(--muted);
}

.dashboard-notice {
  margin: 0 0 1rem;
}

.dashboard-trial-offer {
  display: grid;
  gap: 0.45rem;
}

.dashboard-trial-offer .btn {
  justify-self: start;
}

.menu-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.1rem;
}

.menu-dashboard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.menu-dashboard-card-accent {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--menu-color, var(--primary)) 0%,
    color-mix(in srgb, var(--menu-color, var(--primary)) 55%, #fff) 100%
  );
}

.menu-dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1rem 1rem;
}

.menu-dashboard-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.menu-dashboard-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.menu-dashboard-card-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.menu-dashboard-tool-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  line-height: 0;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.menu-dashboard-tool-btn:hover {
  background: rgba(255, 133, 0, 0.08);
  color: #c2410c;
}

.menu-dashboard-tool-btn--primary,
.menu-dashboard-tool-btn--danger {
  color: var(--primary);
}

.menu-dashboard-tool-btn--primary:hover,
.menu-dashboard-tool-btn--danger:hover {
  background: rgba(255, 133, 0, 0.08);
  color: #c2410c;
}

.menu-dashboard-tool-btn:disabled {
  opacity: 0.45;
  cursor: wait;
}

.menu-dashboard-tool-icon,
.menu-dashboard-btn-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  line-height: 0;
  flex-shrink: 0;
}

.menu-dashboard-tool-icon svg,
.menu-dashboard-btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.menu-dashboard-thumb {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff4e8 100%);
  border: 1px solid rgba(255, 133, 0, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.menu-dashboard-thumb-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.menu-dashboard-thumb-fallback {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--primary);
}

.menu-dashboard-card-info {
  min-width: 0;
}

.menu-dashboard-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--secondary);
}

.menu-dashboard-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-dashboard-badge--online {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.menu-dashboard-badge--suspended {
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.menu-dashboard-badge--admin-suspended {
  color: #9a3412;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.menu-dashboard-badge--draft,
.menu-dashboard-badge--default {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.menu-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.menu-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0.45rem 0.62rem;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-dashboard-btn--primary {
  background: var(--menu-color, var(--primary));
  color: #fff;
  border-color: color-mix(in srgb, var(--menu-color, var(--primary)) 80%, #000);
}

.menu-dashboard-btn--primary:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.menu-dashboard-btn--ghost {
  background: #fff;
  color: var(--secondary);
  border-color: rgba(15, 23, 42, 0.12);
}

.menu-dashboard-btn--ghost:hover {
  background: #f8fafc;
  text-decoration: none;
}

.menu-dashboard-btn--tables {
  color: #166534;
  border-color: #bbf7d0;
  background: #f8fffb;
}

.menu-dashboard-btn--tables:hover {
  background: #ecfdf3;
}

.menu-dashboard-btn--muted {
  background: #f8fafc;
  color: var(--muted);
  border-color: #e2e8f0;
  cursor: default;
  grid-column: 1 / -1;
}

.menu-dashboard-card.is-suspended {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.menu-dashboard-card.is-admin-suspended {
  border-color: rgba(244, 63, 94, 0.22);
  background: linear-gradient(180deg, #fffafb 0%, #ffffff 100%);
}

.menu-dashboard-card.is-admin-suspended .menu-dashboard-card-accent {
  background: linear-gradient(90deg, #fb7185 0%, #fda4af 100%);
}

.menu-dashboard-card.is-suspended .menu-dashboard-card-accent {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.menu-dashboard-btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.menu-dashboard-feedback {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.menu-dashboard-feedback.is-error {
  color: #b91c1c;
}

.menu-dashboard-feedback.is-success {
  color: #15803d;
}

.btn-compact {
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dashboard-menu-request {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff9f3;
  border: 1px solid rgba(255, 133, 0, 0.22);
}

.dashboard-menu-request--pending {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.35);
}

.dashboard-menu-request strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--secondary);
  font-size: 0.92rem;
}

.dashboard-menu-request p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dashboard-menu-request a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.mmsaas-menu-request-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0 !important;
}

.mmsaas-menu-request-modal[hidden] {
  display: none !important;
}

.mmsaas-menu-request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.mmsaas-menu-request-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(107, 46, 0, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.mmsaas-menu-request-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(107, 46, 0, 0.1);
  background: linear-gradient(180deg, #fff9f3 0%, #fff 100%);
}

.mmsaas-menu-request-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--secondary);
}

.mmsaas-menu-request-modal-close {
  appearance: none;
  border: 1px solid rgba(107, 46, 0, 0.12);
  background: #fff;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mmsaas-menu-request-modal-body {
  padding: 16px;
}

.mmsaas-menu-request-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mmsaas-menu-request-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(107, 46, 0, 0.14);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}

.mmsaas-menu-request-input:focus {
  outline: none;
  border-color: rgba(255, 133, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.14);
}

.mmsaas-menu-request-modal-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.mmsaas-menu-request-modal-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.mmsaas-menu-request-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0 16px 16px;
}

.mmsaas-menu-request-feedback {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.88rem;
}

.mmsaas-menu-request-feedback.is-success {
  color: #15803d;
}

.mmsaas-menu-request-feedback.is-error {
  color: #b91c1c;
}

body.mmsaas-menu-request-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-login-card {
    position: static;
  }

  .dashboard-hero {
    flex-direction: column;
  }

  .dashboard-status-card {
    max-width: none;
  }

  body:not(.logged-in) .site-nav-list {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body:not(.logged-in) .site-nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 4rem;
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-block: 0.75rem;
  }

  .brand-logo {
    max-height: 34px;
    max-width: min(130px, 40vw);
  }

  .profile-form-grid,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn,
  .profile-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .home-hero-content > p,
  .home-feature span,
  .home-login-card > p,
  .home-login-footer,
  .card p {
    font-size: 0.9rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
    text-align: center;
  }

  .home-benefits {
    padding-bottom: 2rem;
  }

  .grid {
    margin-bottom: 2rem;
  }

  .home-dashboard {
    padding: 1.25rem 0 2rem;
  }

  .dashboard-hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }
}

@media (max-width: 380px) {
  .site-header .nav-links .btn,
  .site-header .nav-links .btn-outline {
    padding: 0.32rem 0.45rem;
    font-size: 0.66rem;
  }

  .brand-logo {
    max-width: min(100px, 36vw);
    max-height: 30px;
  }

  .home-slogan {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }
}

/* Masquer la barre WordPress pour les clients (espace client white-label) */
body.mmsaas-client-user,
body.mmsaas-client-user.admin-bar {
  margin-top: 0 !important;
}

body.mmsaas-client-user:not(.has-site-header) {
  padding-top: 0 !important;
}

body.mmsaas-client-user.has-site-header {
  padding-top: var(--site-header-height) !important;
}

body.mmsaas-client-user #wpadminbar {
  display: none !important;
}
