/* =========================================================
   Bakkerij Pascal NEVENS — styles (boutique + espace boulanger)
   ========================================================= */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4efe7;
  --surface-3: #ebe3d7;
  --text: #1f1a16;
  --muted: #6b6158;
  --subtle: #9a8f84;
  --border: #e9e1d6;
  --border-strong: #d8cdbe;
  --primary: #8a5a2b;
  --primary-soft: #f5ece1;
  --accent: #c9a56f;
  --dark: #231c17;
  --dark-2: #3a2f27;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #2f7a3e;
  --success-soft: #e6f2e8;
  --warning: #a8640f;
  --warning-soft: #fcf1df;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(35, 28, 23, 0.05);
  --shadow: 0 1px 2px rgba(35, 28, 23, 0.04), 0 10px 30px rgba(35, 28, 23, 0.07);
  --shadow-lg: 0 24px 64px rgba(35, 28, 23, 0.22);
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
a { color: var(--primary); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }
.muted { color: var(--muted); }
.hint { font-weight: 400; color: var(--subtle); font-size: 0.8rem; }
.icon { width: 18px; height: 18px; flex: none; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 600; color: var(--primary);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0.8rem 1.35rem;
  font: 600 0.95rem/1.1 var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--dark-2); }
.btn-primary:disabled { background: var(--surface-3); color: var(--subtle); cursor: not-allowed; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-danger-ghost { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.85rem; border-radius: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.btn-light:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.link-btn { background: none; border: none; color: var(--subtle); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 0.8rem; padding: 0; }
.link-btn:hover { color: var(--danger); }

/* ---------- Logo ---------- */
.monogram {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--dark); color: #f3e6d2; font-family: var(--font-title); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.06em; box-shadow: inset 0 0 0 2px var(--dark), inset 0 0 0 3px rgba(201, 165, 111, 0.55);
}
.monogram-light { background: #f3e6d2; color: var(--dark); box-shadow: inset 0 0 0 2px #f3e6d2, inset 0 0 0 3px rgba(35, 28, 23, 0.35); }
.monogram-sm { width: 34px; height: 34px; font-size: 0.8rem; }

/* ---------- En-tête boutique ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); min-width: 0; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.brand-text small { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.01em; }
.main-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.93rem; transition: color 0.15s; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch button {
  border: none; background: transparent; color: var(--muted); font: 600 0.75rem var(--font-body);
  letter-spacing: 0.04em; padding: 0.35rem 0.65rem; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.staff-button {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 42px; padding: 0 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none;
  font: 600 0.85rem var(--font-body); white-space: nowrap;
}
.staff-button:hover { border-color: var(--text); }
.staff-button .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .staff-button { padding: 0 0.7rem; }
  .staff-button span { display: none; }
}
/* Rubrique en cours dans le menu */
.main-nav a { position: relative; padding: 0.35rem 0; }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 2px; border-radius: 2px; background: var(--accent);
}
/* Menu ☰ sur téléphone */
.menu-toggle { display: none; height: 42px; width: 42px; }
.mobile-menu {
  display: grid; padding: 0.5rem 16px 1rem; background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(35, 28, 23, 0.12); animation: menu-in 0.18s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block; padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-family: var(--font-title); font-size: 1.2rem; font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--primary); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .menu-toggle { display: inline-grid; } }
@media (min-width: 761px) { .mobile-menu { display: none !important; } }
.contact-intro { margin: 0; }
.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; height: 42px; padding: 0 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--dark); background: var(--dark); color: #fff;
  font: 600 0.9rem var(--font-body); cursor: pointer; transition: background 0.15s;
}
.cart-button:hover { background: var(--dark-2); }
.cart-count {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--dark); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.cart-button.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { gap: 0.75rem; min-height: 64px; }
  .header-actions { margin-left: auto; gap: 0.5rem; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 0.9rem; line-height: 1.15; }
  .monogram { width: 34px; height: 34px; font-size: 0.75rem; }
  .cart-label { display: none; }
  .cart-button { padding: 0 0.75rem; }
}

/* ---------- Accueil ---------- */
.hero { padding: 80px 0 64px; background: linear-gradient(180deg, #f5ede1 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin: 1rem 0 1.1rem; text-wrap: balance; }
.hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-info {
  list-style: none; margin: 0; padding: 0.5rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-info li { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.hero-info li:last-child { border-bottom: none; }
.hero-side { position: relative; }
.hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-side.has-photo .hero-info {
  position: relative; margin: -48px -20px 0 -64px; padding: 0.3rem 1.1rem;
  grid-template-columns: 1fr 1fr; display: grid; column-gap: 1.25rem;
}
.hero-side.has-photo .hero-info li { padding: 0.6rem 0; border-bottom: none; gap: 0.7rem; min-width: 0; }
.hero-side.has-photo .hero-info li:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
.hero-side.has-photo .hero-info li > span:last-child { min-width: 0; }
.hero-side.has-photo .info-icon { width: 32px; height: 32px; border-radius: 8px; }
.hero-side.has-photo .info-icon .icon { width: 17px; height: 17px; }
.hero-side.has-photo .hero-info strong,
.hero-side.has-photo .hero-info .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-side.has-photo .hero-info strong { font-size: 0.87rem; }
.hero-side.has-photo .hero-info .muted { font-size: 0.78rem; }
@media (max-width: 1100px) {
  .hero-side.has-photo .hero-info { margin-left: -32px; margin-right: 0; }
}
@media (max-width: 860px) {
  .hero-side.has-photo .hero-info { margin: -36px 10px 0; padding: 0.3rem 0.9rem; column-gap: 0.9rem; }
  .hero-side.has-photo .hero-info .muted { white-space: normal; }
}
@media (max-width: 480px) {
  .hero-side.has-photo .hero-info strong { font-size: 0.82rem; }
  .hero-side.has-photo .info-icon { display: none; }
}
.star { color: var(--accent); }
.info-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.info-icon .icon { width: 20px; height: 20px; }
.hero-info strong { display: block; font-weight: 600; font-size: 0.95rem; }
.hero-info .muted { display: block; font-size: 0.88rem; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Ons verhaal / Notre histoire ---------- */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.story-text { padding: 3rem 2.75rem; display: grid; gap: 0.9rem; align-content: center; }
.story-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0.2rem 0 0.4rem; }
.story-text p { margin: 0; color: var(--muted); line-height: 1.75; }
.story-text p.story-lead { color: var(--text); font-size: 1.12rem; font-weight: 500; line-height: 1.6; }
.story-photo { min-height: 360px; background: var(--surface-2); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#histoire.no-photo .story { grid-template-columns: 1fr; }
#histoire.no-photo .story-text { max-width: 760px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .story-text { padding: 1.75rem 1.5rem; }
}

/* ---------- Page « Ma commande » ---------- */
.order-page { max-width: 620px; padding-top: 2.5rem; padding-bottom: 4rem; }
.order-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 1.75rem; display: grid; gap: 1.1rem; }
.order-sheet-head { display: flex; align-items: center; gap: 1rem; }
.order-sheet-head h1 { font-size: 1.6rem; margin: 0; }
.order-sheet-head h1 .muted { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
.order-sheet-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--warning-soft); color: var(--warning); }
.order-sheet-icon .icon { width: 26px; height: 26px; }
.order-sheet-icon.status-prete, .order-sheet-icon.status-retiree { background: var(--success-soft); color: var(--success); }
.order-sheet-icon.status-annulee, .order-sheet-icon.is-error { background: var(--danger-soft); color: var(--danger); }
.order-status-text { margin: 0.2rem 0 0; font-weight: 600; color: var(--warning); }
.order-status-text.status-prete, .order-status-text.status-retiree { color: var(--success); }
.order-status-text.status-annulee { color: var(--danger); }
.order-notice { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-weight: 500; }
.order-sheet .confirm-box { margin: 0; }
.order-sheet-actions { display: grid; gap: 0.6rem; justify-items: start; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.order-sheet-actions .hint { margin: 0; }
.order-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }

/* ---------- Page de confidentialité ---------- */
.legal { max-width: 760px; padding-top: 3rem; padding-bottom: 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.25rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: #3d332b; line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.25rem 0; }

/* ---------- Barre panier fixe (téléphone) ---------- */
.cart-bar { display: none; }
@media (max-width: 760px) {
  .cart-bar:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 25;
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem; border: none; border-radius: 14px;
    background: var(--dark); color: #fff; font: 600 0.98rem var(--font-body); cursor: pointer; box-shadow: var(--shadow-lg);
    animation: bar-in 0.25s ease;
  }
  .cart-bar-count {
    min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--dark);
    display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
  }
  .cart-bar-label { flex: 1; text-align: left; }
  .cart-bar strong { font-variant-numeric: tabular-nums; }
  body.has-cart-bar { padding-bottom: 84px; }
  body.has-cart-bar .toast { bottom: 92px; }
}
@keyframes bar-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Comment ça marche ---------- */
.how { position: relative; margin-top: -30px; }
.how-steps {
  list-style: none; margin: 0; padding: 1.1rem 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.how-steps li { display: flex; align-items: center; gap: 0.85rem; }
.how-num {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--dark); color: #f3e6d2; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem;
}
.how-text { display: grid; gap: 0.1rem; }
.how-text strong { font-weight: 600; font-size: 0.95rem; }
.how-text span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) {
  .how { margin-top: -20px; }
  .how-steps { grid-template-columns: 1fr; gap: 0.85rem; padding: 1rem 1.1rem; }
}

/* ---------- Catalogue ---------- */
.section { padding-top: 72px; padding-bottom: 8px; }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.3rem; }
.section-head p { margin: 0; color: var(--muted); }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 1.5rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--border-strong); background: transparent; border-radius: 999px;
  padding: 0.5rem 1.1rem; font: 500 0.9rem var(--font-body); color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); }
.product-visual { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
button.product-visual { display: block; width: 100%; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
button.product-visual.placeholder { display: grid; }
.product-title-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.product-title-btn:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Fiche produit */
.dialog.dialog-product { width: min(880px, calc(100% - 32px)); overflow-y: auto; }
.product-sheet { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, 0.92); }
.sheet-visual { background: var(--surface-2); min-height: 420px; min-width: 0; overflow: hidden; }
.sheet-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-visual.placeholder { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 15%, #fbf7f0 0%, #efe6d8 60%, #e8dcc9 100%); }
.sheet-visual .placeholder-mark { font-size: 5rem; }
.sheet-info { padding: 2rem 1.75rem 1.75rem; display: grid; gap: 0.9rem; align-content: start; }
.sheet-info h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0; }
.sheet-desc { margin: 0; color: var(--muted); line-height: 1.6; }
.sheet-info .allergens { margin: 0; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--border); }
.sheet-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.sheet-price { display: grid; justify-items: end; gap: 0.1rem; }
.sheet-price strong { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-price .muted { font-size: 0.82rem; }
.sheet-add { margin-top: 0.25rem; padding: 0.95rem 1.35rem; }
.sheet-incart { margin: 0; text-align: center; }
.qty-input { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty-input button { width: 44px; border: none; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qty-input button:hover { background: var(--surface-3); }
.qty-input .icon { width: 16px; height: 16px; }
.qty-input input {
  width: 64px; border: none; border-radius: 0; text-align: center; font-weight: 600; font-size: 1.05rem; padding: 0.6rem 0.25rem;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input input:focus { box-shadow: inset 0 0 0 2px rgba(138, 90, 43, 0.25); }
@media (max-width: 720px) {
  .product-sheet { grid-template-columns: 1fr; }
  .sheet-visual { min-height: 0; aspect-ratio: 16 / 10; }
  .sheet-info { padding: 1.4rem 1.25rem 1.5rem; }
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.product-card:hover .product-visual img { transform: scale(1.04); }
.product-visual.placeholder {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 15%, #fbf7f0 0%, #efe6d8 60%, #e8dcc9 100%);
}
.placeholder-mark { font-family: var(--font-title); font-weight: 500; font-size: 3.4rem; color: #c9b597; line-height: 1; }
.product-visual .badge { position: absolute; top: 12px; left: 12px; }
.product-visual .badge-featured { left: auto; right: 12px; background: var(--dark); color: #f3e6d2; border-color: var(--dark); letter-spacing: 0.04em; }
.product-visual .badge-featured::before { content: "★ "; color: var(--accent); }
.product-body { padding: 1.05rem 1.15rem 0.25rem; flex: 1; }
.product-body h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.product-desc {
  margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.allergens { margin: 0; font-size: 0.75rem; color: var(--subtle); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.15rem 1.15rem; }
.price { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.card-qty { display: inline-flex; align-items: center; gap: 0.15rem; background: var(--dark); color: #fff; border-radius: 8px; padding: 3px; }
.card-qty button { width: 30px; height: 30px; display: grid; place-items: center; border: none; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.card-qty button:hover { background: rgba(255, 255, 255, 0.15); }
.card-qty .icon { width: 15px; height: 15px; }
.card-qty span { min-width: 1.6rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.product-card.is-unavailable .product-visual > img,
.product-card.is-unavailable .placeholder-mark { filter: grayscale(1); opacity: 0.55; }
.product-card.is-unavailable:hover { transform: none; box-shadow: none; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.92); color: var(--muted); padding: 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border);
}

/* ---------- Gâteaux sur mesure ---------- */
.cake-card {
  display: grid; grid-template-columns: 1fr 1.25fr; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.cake-intro { position: relative; overflow: hidden; background: var(--dark); color: #e9dccb; padding: 2.75rem 2.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cake-intro .eyebrow { color: var(--accent); }
.cake-intro h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0.2rem 0 0.3rem; }
.cake-intro p { margin: 0; color: #cdbda8; max-width: 380px; position: relative; z-index: 1; }
.cake-delay {
  margin-top: auto !important; padding-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff !important; font-weight: 500; font-size: 0.92rem;
}
.cake-delay .icon { color: var(--accent); }
.cake-art { position: absolute; right: -36px; bottom: -36px; width: 210px; height: 210px; color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.cake-art .icon { width: 100%; height: 100%; stroke-width: 1; }
.cake-form { padding: 2.5rem; display: grid; gap: 1.15rem; }
.cake-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.cake-price strong { display: block; font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .cake-card { grid-template-columns: 1fr; }
  .cake-intro, .cake-form { padding: 1.75rem 1.5rem; }
  .cake-art { width: 150px; height: 150px; }
}

/* ---------- Formulaires ---------- */
label { display: grid; gap: 0.4rem; font-weight: 500; font-size: 0.875rem; color: var(--text); }
input, select, textarea {
  font: 400 0.95rem var(--font-body); padding: 0.72rem 0.85rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6158' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.14); }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: 0.875rem; margin-bottom: 0.4rem; padding: 0; }
.size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-option { display: block; position: relative; }
.size-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-option span {
  display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: all 0.15s;
}
.size-option span:hover { border-color: var(--text); }
.size-option input:checked + span { background: var(--dark); color: #fff; border-color: var(--dark); }
.size-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-error ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Panier ---------- */
.overlay { position: fixed; inset: 0; background: rgba(25, 19, 15, 0.45); z-index: 30; backdrop-filter: blur(2px); }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--bg); z-index: 40;
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s; box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: none; visibility: visible; }
.drawer-head, .dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); }
.drawer-head h2, .dialog-head h2 { margin: 0; font-size: 1.35rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: grid; gap: 0.75rem; align-content: start; }
.drawer-foot { padding: 1.1rem 1.5rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface); display: grid; gap: 0.9rem; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.total-row strong { font-family: var(--font-title); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-note { margin: 0; font-size: 0.85rem; color: var(--warning); background: var(--warning-soft); padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); }
.cart-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem;
}
.line-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.line-thumb .placeholder-mark { font-size: 1.4rem; }
.line-thumb .icon { width: 24px; height: 24px; color: var(--primary); }
.line-info { display: grid; gap: 0.15rem; min-width: 0; }
.line-info strong { font-weight: 600; font-size: 0.95rem; }
.line-info small { color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.line-price { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.line-warning { color: var(--danger) !important; font-weight: 600; }
.line-actions { display: grid; justify-items: end; gap: 0.4rem; }
.qty { display: flex; align-items: center; gap: 0.25rem; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.qty button { width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); }
.qty button .icon { width: 14px; height: 14px; }
.qty span { min-width: 1.4rem; text-align: center; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; justify-items: center; gap: 0.75rem; }
/* Espace boulanger : boutons de jour et liste vide */
.date-nav .btn.is-current { background: var(--dark); color: #fff; border-color: var(--dark); }
.empty-orders { display: grid; gap: 0.75rem; padding: 0.5rem 0; }
.empty-orders p { margin: 0; }
.next-orders {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); font-weight: 500;
}
.next-orders .icon { color: var(--primary); }
.next-orders span { flex: 1; min-width: 180px; }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--subtle); }
.empty-icon .icon { width: 26px; height: 26px; }
.empty p { margin: 0; }

/* ---------- Fenêtre de commande ---------- */
.dialog {
  border: none; border-radius: 20px; padding: 0; width: min(580px, calc(100% - 32px)); max-height: calc(100% - 32px);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(25, 19, 15, 0.5); backdrop-filter: blur(2px); }
.dialog-body { padding: 1.4rem 1.5rem; display: grid; gap: 1rem; }
.dialog-foot { padding: 0 1.5rem 1.5rem; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; font-size: 0.9rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-variant-numeric: tabular-nums; }
.summary-total { border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 600; }
.pay-info { margin: 0; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.pay-info .icon { color: var(--primary); }
.confirm { padding: 2.5rem 1.75rem 1.75rem; text-align: center; display: grid; gap: 0.75rem; justify-items: center; }
.confirm h2, .confirm p { margin: 0; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.confirm-icon .icon { width: 34px; height: 34px; }
.confirm-box { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.4rem 1.1rem; text-align: left; margin: 0.5rem 0; }
.confirm-box div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.confirm-box div:last-child { border-bottom: none; }
.confirm-box span { color: var(--muted); font-size: 0.9rem; }
.confirm-box strong { text-align: right; font-weight: 600; }
.confirm .btn { width: 100%; }

/* ---------- Messages ---------- */
.app-status {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin: 1rem 0; display: grid; gap: 0.6rem; justify-items: start;
}
.app-status p { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--dark); color: #fff;
  padding: 0.8rem 1.25rem; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: 0.25s;
  z-index: 50; font-weight: 500; font-size: 0.92rem; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 80px; background: var(--dark); color: #cdbda8; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; align-items: start; padding-top: 3rem; padding-bottom: 2rem; }
.footer-col { display: grid; gap: 0.6rem; align-content: start; }
.footer-address { margin: 0.4rem 0 0; color: #cdbda8; max-width: 260px; }
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; max-width: 260px; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.hours-list li.is-closed { color: #8d7d6a; }
.hours-list li.is-today { color: #fff; font-weight: 600; }
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.5rem; color: #e2d4c1; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links .icon { width: 16px; height: 16px; color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; padding-top: 1.25rem; padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: #9c8c78;
}
.footer-bottom span { margin-right: auto; }
.footer-bottom a { color: #b9a892; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.privacy-note { margin: -0.4rem 0 0; font-size: 0.8rem; color: var(--subtle); }
.privacy-note a { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand .monogram { background: #f3e6d2; color: var(--dark); box-shadow: none; }
.footer-name { font-family: var(--font-title); font-weight: 600; color: #fff; font-size: 1.05rem; }
.footer-col { display: grid; gap: 0.25rem; }
.footer-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 600; color: var(--accent); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom span { width: 100%; }
}

/* =========================================================
   Espace boulanger
   ========================================================= */
body.admin { background: #f6f3ee; }
.admin-header { background: var(--dark); color: #fff; }
.admin-header .brand { color: #fff; }
.admin-header .brand-text small { color: #b9a892; }
.admin-header .header-actions { margin-left: auto; }
.admin-header .lang-switch { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.admin-header .lang-switch button { color: #b9a892; }
.admin-header .lang-switch button[aria-pressed="true"] { background: #f3e6d2; color: var(--dark); }
.header-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #e2d4c1; text-decoration: none; font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.header-link:hover { color: #fff; }
.header-link .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .header-link span, #logoutBtn span { display: none; }
  #logoutBtn { padding: 0.55rem; }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0 1.25rem; }
.toolbar-title { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.toolbar h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0; }
.date-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.date-nav input { width: auto; padding: 0.5rem 0.7rem; height: 38px; }
.live {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--surface-3); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.on { color: var(--success); background: var(--success-soft); }
.live.on::before { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.stat span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat strong { display: block; font-size: 1.85rem; font-family: var(--font-title); font-weight: 600; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.admin-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.25rem; margin: 1.25rem 0 3rem; align-items: start; }
.side-col { display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .admin-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.25rem; }
.select-sm, .panel-head select { width: auto; padding: 0.45rem 2.2rem 0.45rem 0.75rem; font-size: 0.875rem; }
.sub-title { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 1.4rem 0 0.5rem; }

.order-list { display: grid; gap: 0.75rem; }
/* Messages des clients */
.tab-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--dark); font-size: 0.7rem; font-weight: 700; display: inline-grid; place-items: center; }
.tab-badge[hidden] { display: none !important; }
.message-list { display: grid; gap: 0.9rem; max-width: 860px; }
.message-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 1.4rem; display: grid; gap: 0.7rem; overflow: hidden; }
.message-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border-strong); }
.message-card.status-nouveau::before { background: var(--accent); }
.message-card.status-nouveau { box-shadow: 0 0 0 2px rgba(201, 165, 111, 0.35); }
.message-card.status-traite { opacity: 0.7; }
.message-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.msg-subject { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.msg-status { font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 0.15rem 0.6rem; background: var(--surface-2); color: var(--muted); }
.status-nouveau .msg-status { background: var(--warning-soft); color: var(--warning); }
.status-traite .msg-status { background: var(--success-soft); color: var(--success); }
.msg-date { margin-left: auto; font-size: 0.82rem; }
.message-text { margin: 0; white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.msg-delete { margin-left: auto; }

/* Rapport des ventes */
.sales-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.period-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.period-range { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; }
.period-range label { min-width: 150px; }
.sales-tables { margin-top: 1.25rem; }
.stat-sub { display: block; margin-top: 0.15rem; font-size: 0.75rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--danger) !important; }
.prod-table tfoot th { border-bottom: none; border-top: 2px solid var(--border-strong); color: var(--text); font-size: 0.9rem; text-transform: none; letter-spacing: 0; }

/* Horaires par jour et fermetures */
.day-hours { display: grid; gap: 0.35rem; }
.day-row { display: grid; grid-template-columns: minmax(130px, 1fr) auto auto auto 1fr; align-items: center; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.day-row:last-child { border-bottom: none; }
.day-row select { width: auto; }
.day-row .day-closed-label { display: none; color: var(--subtle); font-size: 0.85rem; }
.day-row.is-closed select, .day-row.is-closed > .muted { display: none; }
.day-row.is-closed .day-closed-label { display: inline; }
@media (max-width: 560px) {
  .day-row { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 0.35rem; }
  .day-row select { padding: 0.4rem 1.7rem 0.4rem 0.5rem; background-position: right 0.4rem center; font-size: 0.85rem; }
  .day-row .check-row span { font-size: 0.9rem; }
}
.closures-panel { margin-top: 1.25rem; max-width: 760px; }
.closure-form { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 0.75rem; align-items: end; }
@media (max-width: 760px) { .closure-form { grid-template-columns: 1fr 1fr; } .closure-reason, .closure-form .btn { grid-column: 1 / -1; } }
.closure-banner { display: grid; gap: 0.5rem; margin: 0 0 1rem; }
.closure-banner p {
  display: flex; align-items: center; gap: 0.75rem; margin: 0; padding: 0.85rem 1rem; border-radius: var(--radius);
  background: var(--warning-soft); color: #6b4209; border: 1px solid #f0dcb8; font-size: 0.93rem;
}
.closure-banner .icon { color: var(--warning); }
/* Champ piège anti-robots : invisible pour les personnes */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hidden-note { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
.hidden-note .link-btn { font-size: 0.85rem; color: var(--primary); }
.order-card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 1.3rem;
  background: var(--surface); display: grid; gap: 0.6rem; overflow: hidden;
}
.order-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warning); }
.order-card.status-prete::before { background: var(--success); }
.order-card.status-retiree::before { background: var(--subtle); }
.order-card.status-annulee::before { background: var(--danger); }
.order-card.status-retiree, .order-card.status-annulee { background: #fbfaf8; }
.order-card.status-retiree .order-items, .order-card.status-annulee .order-items { opacity: 0.6; }
.order-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.slot-pill { background: var(--dark); color: #fff; border-radius: 8px; padding: 0.3rem 0.65rem; font-weight: 600; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.order-id { font-weight: 600; font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em; }
.status-select {
  width: auto; margin-left: auto; padding: 0.38rem 2.1rem 0.38rem 0.75rem; font-size: 0.82rem; font-weight: 600;
  border-radius: 999px; border-color: transparent; background-color: var(--warning-soft); color: var(--warning);
}
.status-prete .status-select { background-color: var(--success-soft); color: var(--success); }
.status-retiree .status-select { background-color: var(--surface-3); color: var(--muted); }
.status-annulee .status-select { background-color: var(--danger-soft); color: var(--danger); }
.order-customer { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.88rem; color: var(--muted); }
.order-customer span, .order-customer a { display: inline-flex; align-items: center; gap: 0.35rem; overflow-wrap: anywhere; }
.order-customer .icon { width: 15px; height: 15px; color: var(--subtle); }
.order-customer a { color: var(--text); text-decoration: none; }
.order-customer a:hover { text-decoration: underline; }
.order-items { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.order-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--border); font-variant-numeric: tabular-nums; }
.order-items li:last-child { border-bottom: none; }
.order-items small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.order-note { display: flex; gap: 0.5rem; align-items: flex-start; background: var(--surface-2); border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.86rem; margin: 0; color: var(--muted); }
.order-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.order-total { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.btn-done { background: var(--success-soft); color: var(--success); border-color: transparent; }
.btn-done:hover { background: #d7ebdb; }
.lang-pill { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 0.2rem 0.45rem; }
.panel-tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.inline-select { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.inline-select select { width: auto; }

.prod-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.prod-table th, .prod-table td { text-align: left; padding: 0.6rem 0.25rem; border-bottom: 1px solid var(--border); }
.prod-table th { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.prod-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prod-qty { font-weight: 700; font-size: 1.05rem; }

.avail-list { display: grid; }
.product-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.product-row:last-child { border-bottom: none; }
.product-row.is-busy { opacity: 0.5; pointer-events: none; }
.product-row-name { font-weight: 500; font-size: 0.92rem; min-width: 0; overflow-wrap: anywhere; }
.thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .placeholder-mark { font-size: 1.15rem; }
.row-actions { display: flex; align-items: center; gap: 0.4rem; }
.row-actions .icon-btn { width: 34px; height: 34px; }
.row-actions .icon { width: 16px; height: 16px; }
.photo-btn { position: relative; }
.photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-btn:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.danger-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.switch { position: relative; width: 40px; height: 22px; flex: none; cursor: pointer; margin-left: 0.25rem; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: 0.2s; }
.switch .track::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Onglets de l'espace boulanger ---------- */
.admin-tabs { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tabs-inner { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.admin-tabs button {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: none; background: none; border: none; cursor: pointer;
  color: #b9a892; font: 500 0.92rem var(--font-body); padding: 0.85rem 1rem; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.admin-tabs button:hover { color: #fff; }
.admin-tabs button.active { color: #fff; border-bottom-color: var(--accent); }
.admin-tabs .icon { width: 17px; height: 17px; }

.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 2rem 0 1.25rem; }
.view-head h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 0.3rem; }
.view-head p { margin: 0; max-width: 620px; }
.view { padding-bottom: 3rem; }
.product-groups { display: grid; gap: 1.25rem; }
.product-groups.is-busy { opacity: 0.6; pointer-events: none; }
.count-pill { font-size: 0.75rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0.15rem 0.6rem; }

.admin-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.admin-row:last-child { border-bottom: none; }
.admin-row .thumb { width: 52px; height: 52px; border-radius: 10px; }
.admin-row.is-off .thumb, .admin-row.is-off .admin-row-info, .admin-row.is-off .admin-row-meta { opacity: 0.5; }
.admin-row.is-archived { grid-template-columns: 52px minmax(0, 1fr) auto; }
.admin-row-info { display: grid; gap: 0.1rem; min-width: 0; }
.admin-row-info strong { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.admin-row-info .muted { font-size: 0.82rem; }
.admin-row-meta { display: grid; justify-items: end; gap: 0.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-row-meta strong { font-weight: 600; }
.admin-row-meta .muted { font-size: 0.8rem; }
.admin-row .row-actions .icon-btn:disabled { opacity: 0.35; cursor: default; }
.thumb-icon { color: var(--primary); }
.thumb-icon .icon { width: 22px; height: 22px; }
.tag-warn { justify-self: start; font-size: 0.72rem; font-weight: 600; color: var(--warning); background: var(--warning-soft); border-radius: 6px; padding: 0.1rem 0.45rem; }
@media (max-width: 640px) {
  .admin-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0.75rem; }
  .admin-row .thumb { width: 44px; height: 44px; }
  .admin-row .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .admin-row-meta { grid-column: 3; grid-row: 1; }
}

.check-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--dark); margin: 0; }
.archived-toggle { margin: 1.5rem 0 1rem; color: var(--muted); font-size: 0.9rem; }

.check-grid, .day-picker { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.check-chip { display: block; position: relative; font-weight: 500; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-block; padding: 0.45rem 0.8rem; border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 0.85rem; cursor: pointer; transition: all 0.15s; background: var(--surface);
}
.check-chip span:hover { border-color: var(--text); }
.check-chip input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.check-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.form-stack { display: grid; gap: 1.1rem; align-content: start; }
.form-stack .panel-head { margin-bottom: 0; }
.form-stack .hint { margin: 0 0 0.6rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }
.settings-form { display: grid; gap: 1.25rem; max-width: 760px; }
.sticky-actions { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, #f6f3ee 35%); }
.form-row-3 { grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 560px) { .form-row-3 { grid-template-columns: 1fr; } }

.size-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.75rem; }
.size-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.4rem 0.35rem 0.8rem;
  border-radius: 999px; background: var(--surface-2); font-weight: 500; font-size: 0.88rem;
}
.size-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: var(--muted); }
.size-chip button:hover { background: var(--surface-3); color: var(--danger); }
.size-chip .icon { width: 13px; height: 13px; }
.inline-add { display: flex; gap: 0.5rem; }
.inline-add input { max-width: 140px; }

.dialog-wide { width: min(760px, calc(100% - 32px)); }
.dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.dialog .dialog-body { overflow-y: auto; }
.dialog-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.dialog-actions .spacer { flex: 1; }
.photo-field { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.photo-preview {
  width: 160px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; flex: none;
  background: radial-gradient(120% 90% at 30% 15%, #fbf7f0 0%, #efe6d8 60%, #e8dcc9 100%); display: grid; place-items: center;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview .placeholder-mark { font-size: 2.6rem; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-actions label.btn { cursor: pointer; position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

.login-card {
  max-width: 420px; margin: 4rem auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); padding: 2.25rem 2rem; text-align: center;
}
.login-card .monogram { margin: 0 auto 1.1rem; width: 52px; height: 52px; font-size: 1.1rem; }
.login-card h1 { font-size: 1.7rem; margin-bottom: 0.25rem; }
.login-form { display: grid; gap: 1rem; margin-top: 1.5rem; text-align: left; }

@media print {
  .no-print, .live { display: none !important; }
  body, body.admin { background: #fff; }
  .admin-grid { grid-template-columns: 1fr; }
  .panel, .stat, .order-card { border-color: #ccc; break-inside: avoid; box-shadow: none; }
}
