/* Le Pessaquai — mise en page commune (boutons autocollants, cartes, backoffice).
   Les couleurs sont dans brand.css, chargé juste avant. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--wine-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.center { text-align: center; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 48px 20px; }
.wrap.narrow { max-width: 640px; }
.intro { max-width: 56ch; }

/* ---------- Boutons autocollants ---------- */
.btn {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 22px;
  border: var(--bd);
  border-radius: 999px;
  box-shadow: var(--hard-s);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  background: var(--cream);
  color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--wine-2); color: var(--cream); }
.btn-green { background: var(--sage); color: var(--ink); }
.btn-cream { background: var(--cream); }
.btn-small { padding: 6px 14px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Barre du haut ---------- */
.topbar {
  background: var(--wine-2);
  border-bottom: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  position: relative;
  z-index: 10;
}
.brand { text-decoration: none; line-height: 1.1; }
.brand-name {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--cream);
}
.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--sage);
}
.brand-sub i { display: none; }
.brand-sub b { font-size: .5rem; }
.mainnav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mainnav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
}
.mainnav a:hover { border-bottom-color: var(--sage); }
.mainnav .nav-admin { color: var(--gold-l, var(--gold)); }
.langs { color: var(--cream); font-weight: 800; }
.langs a { border: none; padding: 0 3px; opacity: .8; }
.langs a.on, .langs a:hover { opacity: 1; border: none; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 4px; background: var(--cream); border-radius: 2px; margin: 5px 0; }

/* ---------- Héros : la devanture ---------- */
.hero {
  background:
    radial-gradient(rgba(var(--ink-rgb), .06) 1.6px, transparent 1.6px) 0 0 / 26px 26px,
    var(--paper);
  padding: 40px 20px 56px;
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.facade {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1487;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--river-l);
  overflow: hidden;
}
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero-sub { font-size: 1.12rem; max-width: 52ch; margin: 0 auto 24px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.wave { line-height: 0; background: var(--paper); }
.wave svg { width: 100%; height: 60px; }

/* ---------- Bande bordeaux ---------- */
.band { background: var(--wine-2); padding: 8px 0 40px; }
.band .wrap { padding-top: 24px; padding-bottom: 12px; }
.band h3 { color: var(--wine-2); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.card {
  background: var(--cream);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--hard);
  padding: 22px;
}
.card-flat { box-shadow: none; background: var(--paper-2); }
.infos h2 { margin-top: .4em; }

/* ---------- Carte (menu) ---------- */
.menu-page h1 { text-align: center; }
.menu-cat { margin: 40px 0; }
.menu-cat h2 span {
  display: inline-block;
  background: var(--wine-2);
  color: var(--cream);
  border: var(--bd);
  border-radius: 12px;
  box-shadow: var(--hard-s);
  padding: 6px 18px;
  font-size: 1.25rem;
}
.menu-note { font-style: italic; color: var(--muted); margin-top: 10px; }
.menu-list { list-style: none; margin: 18px 0 0; padding: 0; }
.menu-list li { padding: 10px 0; }
.mi-head { display: flex; align-items: baseline; gap: 10px; }
.mi-name { font-weight: 800; font-size: 1.05rem; }
.dots { flex: 1; border-bottom: 3px dotted rgba(var(--ink-rgb), .35); transform: translateY(-4px); }
.mi-price { font-weight: 800; color: var(--wine-2); white-space: nowrap; }
.mi-desc { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Formulaires ---------- */
.form label { display: block; font-weight: 800; margin-bottom: 14px; }
.form input, .form select, .form textarea, .filter-bar input, .inline-form select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  margin-top: 5px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.form small { display: block; font-weight: 400; margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; align-items: end; }
.form .btn { margin-top: 6px; }
.form-links { margin: 16px 0 0; font-size: .95rem; }
.checks span { display: block; font-weight: 700; margin-bottom: 6px; }
.checks input { width: auto; margin-right: 6px; }

/* ---------- À emporter ---------- */
.order-cat { margin-bottom: 22px; }
.order-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 2px dashed rgba(var(--ink-rgb), .2);
}
.order-line:last-child { border-bottom: none; }
.ol-info { flex: 1; }
.ol-info small { display: block; color: var(--muted); }
.order-line .qty { width: 74px; padding: 8px; border: 2.5px solid var(--ink); border-radius: 10px; font: inherit; text-align: center; }
.order-total { font-size: 1.1rem; }

/* ---------- Compte ---------- */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.row-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--hard-s); }
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 6px;
  background: var(--paper-2);
}
.tag-pending { background: var(--gold); }
.tag-confirmed, .tag-ready { background: var(--sage); }
.tag-cancelled { background: var(--danger-soft); }
.tag-collected { background: var(--paper-2); }

/* ---------- Backoffice ---------- */
.admtabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.admtabs a {
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  padding: 7px 16px;
  border: var(--bd);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--hard-s);
}
.admtabs a.on { background: var(--wine-2); color: var(--cream); }
.admtabs > a, .admcat > summary { line-height: 1.4; }
.admcat { position: relative; }
.admcat > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  font-size: .95rem;
  padding: 7px 16px;
  border: var(--bd);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--hard-s);
  white-space: nowrap;
}
.admcat > summary::-webkit-details-marker { display: none; }
.admcat > summary::after { content: ' ▾'; font-size: .8em; }
.admcat[open] > summary::after { content: ' ▴'; }
.admcat.on > summary { background: var(--wine-2); color: var(--cream); }
.admcat > summary small { font-weight: 700; opacity: .85; }
.admcat-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--paper-2);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--hard);
}
.admtabs .admcat-menu a {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 12px;
}
.admtabs .admcat-menu a:hover { background: var(--cream); }
.admtabs .admcat-menu a.on { background: var(--wine-2); color: var(--cream); }
.admcat { max-width: 100%; }
@media (max-width: 600px) {
  .admcat-menu { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
}
@media (max-width: 420px) {
  .admcat > summary { white-space: normal; border-radius: 20px; }
}
.stat { text-align: center; padding: 16px; }
.stat b { display: block; font-family: 'Fraunces', serif; font-size: 2.4rem; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar input { width: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--cream); border: var(--bd); border-radius: var(--r); box-shadow: var(--hard); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 2px solid rgba(var(--ink-rgb), .15); vertical-align: top; }
.table th { background: var(--wine-2); color: var(--cream); font-size: .9rem; }
.table tr:last-child td { border-bottom: none; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { width: auto; margin: 0; }
.cat-sep { margin: 34px 0 14px; }
.item-form { margin-bottom: 18px; }

/* ---------- Planning (backoffice) ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 26px; }
.chip {
  font: inherit;
  font-weight: 800;
  padding: 8px 14px;
  border: var(--bd);
  border-radius: 12px;
  background: var(--sage);
  color: var(--ink);
  box-shadow: var(--hard-s);
  cursor: pointer;
  text-align: center;
  min-width: 84px;
}
.chip small { display: block; font-weight: 600; font-size: .72rem; color: inherit; opacity: .85; }
.chip.off { background: var(--danger-soft); text-decoration: line-through; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip { transition: opacity .15s ease, background .15s ease; }
.chip:hover:not(:disabled) { transform: translate(-1px, -1px); }

/* ---------- Live ---------- */
.live-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #c33; border: 2px solid var(--ink); vertical-align: middle; }
.live-dot.on { background: var(--sage); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; }
.ltable { padding: 14px; }
.lt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.lt-head b { font-size: 1.1rem; margin-right: auto; }
.lt-head .lt-timer { font-weight: 800; font-size: .85rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 10px; }
.lt-head .lt-total { font-weight: 900; color: var(--wine); }
.lt-head .lt-party { font-weight: 700; }
.lt-actions { display: flex; gap: 6px; margin: 2px 0 10px; }
.li-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 7px; padding: 4px 0 0; font-weight: 700; }
.li-row label { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.li-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-row.done label span { text-decoration: line-through; opacity: .5; }
.li-row input { width: 18px; height: 18px; flex: none; }
.li-sub { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 1px 0 6px 26px; }
.li-price { font-weight: 800; font-size: .85rem; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.li-badge { font-weight: 900; font-size: .72rem; text-transform: uppercase; background: var(--gold); border: 2px solid var(--ink); border-radius: 99px; padding: 0 7px; white-space: nowrap; }
.li-tools { display: inline-flex; gap: 4px; }
.btn-mini { padding: 1px 6px; font-size: .76rem; border: 2px solid var(--ink); border-radius: 7px; background: var(--cream); font-weight: 900; cursor: pointer; line-height: 1.5; }
.li-tools .btn-mini { opacity: .85; }
.li-tools .btn-mini:hover { opacity: 1; background: var(--gold); }
.btn-mini:hover { background: var(--paper-2); }
.btn-mini.cooking { background: var(--gold); animation: cookpulse 1.6s ease-in-out infinite; }
@keyframes cookpulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .btn-mini.cooking { animation: none; } }
.lt-add { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.lt-add select { flex: 1; min-width: 0; padding: 7px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; }
.lt-add input { width: 62px; padding: 7px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; text-align: center; }
.lorder { padding: 12px 16px; margin-bottom: 12px; }
.lorder-items { font-size: .95rem; margin-top: 4px; }
.add-form summary { cursor: pointer; font-weight: 800; font-family: 'Fraunces', serif; }
.add-form { margin-bottom: 20px; }
.add-form h4 { margin: 14px 0 2px; }
.tag-arrived { background: var(--sage); }

/* ---------- Archives / Stocks / Courses ---------- */
.row-done { opacity: .7; }
.row-tools { display: inline-flex; gap: 6px; vertical-align: middle; }
.table td { vertical-align: middle; }
.table td .inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 2px 6px 2px 0; vertical-align: middle; }
.table td .inline-form select { padding: 6px 8px; }
/* colonne d'actions (formulaires en ligne) : assez large pour ses boutons ; une simple colonne « Statut » reste étroite */
.table td:last-child:has(form, .row-tools) { min-width: 230px; }
.stock-chip .chip-tag { display: none; margin-left: 8px; font-size: .75rem; font-weight: 900; color: #fff; background: var(--wine); border-radius: 99px; padding: 1px 8px; }
.stock-chip.off { background: var(--danger-soft); text-decoration: line-through; }
.stock-chip.off .chip-tag { display: inline-block; text-decoration: none; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; }
.shop-row .shop-btns { margin-left: auto; display: inline-flex; gap: 6px; }
.mi-soldout { color: var(--wine); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--wine); border-radius: 99px; padding: 1px 8px; margin-left: 8px; }
.mi-off .mi-name, .mi-off .mi-price, .mi-off .mi-desc { opacity: .45; }

/* ---------- Encaissement ---------- */
.pay-head { display: flex; gap: 22px; flex-wrap: wrap; font-size: 1.05rem; }
.pay-head .wine { color: var(--wine); }
.pay-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 2px dashed rgba(var(--ink-rgb), .15); }
.pay-line .pl-name { flex: 1; min-width: 0; font-weight: 700; }
.pay-line .pl-sel { display: inline-flex; align-items: center; gap: 8px; }
.pay-line .pl-n { min-width: 18px; text-align: center; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* ---------- Divers ---------- */
.flash {
  max-width: 1020px;
  margin: 20px auto 0;
  padding: 12px 18px;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--hard-s);
  font-weight: 800;
}
.flash-ok { background: var(--sage); }
.flash-err { background: var(--danger-soft); }

.footer { background: var(--ink); color: var(--cream); margin-top: 60px; padding: 40px 22px 20px; border-top: 4px solid var(--ink-2); }
.foot-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.footer h4 { color: var(--sage); margin: 0 0 8px; letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; }
.footer a { color: var(--cream); }
.foot-note { text-align: center; margin: 30px 0 0; font-size: .85rem; opacity: .7; }
.foot-note a { color: inherit; }
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }

/* ---------- Pré-commande & alertes ---------- */
.preorder summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; font-family: 'Fraunces', serif; }
.preorder[open] summary { margin-bottom: 8px; }
.preorder h4 { margin: 16px 0 2px; }
.preorder { margin-bottom: 18px; }
.note-warn {
  background: var(--gold);
  border: var(--bd);
  border-radius: 10px;
  box-shadow: var(--hard-s);
  padding: 10px 14px;
  font-weight: 700;
  margin: 4px 0 14px;
}
.form + .btn, form > .btn { margin-top: 4px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .burger { display: block; }
  .mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wine-2);
    border-bottom: 4px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 22px 14px;
    gap: 2px;
  }
  .mainnav > a { padding: 9px 0 7px; }
  .mainnav .langs { padding: 9px 0 5px; }
  .mainnav.open { display: flex; }
  .cards3, .grid2, .grid4, .acc-grid, .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 32px 16px; }
  .table { display: block; overflow-x: auto; }
  .table > tbody { display: table; width: 100%; }   /* l'en-tête va jusqu'au bord, même avec peu de colonnes */
  .row-card { flex-direction: column; align-items: flex-start; }
}

/* u15 : filtres entrées/plats/desserts, groupes, notes d'article */
.live-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.live-filter .btn.on { background: var(--sage); }
.li-group-head { margin: 8px 0 2px; padding: 3px 8px; background: rgba(var(--ink-rgb), .06); border-radius: 8px; font-weight: 800; }
.li-group-head.all { background: var(--gold); border: 2px solid var(--ink); }
.li-group-head label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.li-note { font-size: .88rem; font-weight: 700; background: rgba(var(--gold-rgb), .28); border-left: 4px solid var(--wine); border-radius: 0 8px 8px 0; padding: 3px 9px; margin: 0 0 7px 26px; }

/* u16 : feu « Prêt » par section */
.li-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.li-fire { border: 2px solid var(--ink); border-radius: 99px; background: var(--cream); font-weight: 900; font-size: .74rem; padding: 1px 9px; cursor: pointer; white-space: nowrap; }
.li-fire { -webkit-touch-callout: none; user-select: none; }
.li-fire.on { background: var(--wine); color: var(--cream); animation: firepulse 1s ease-in-out infinite; }
@keyframes firepulse {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(var(--main-rgb), .25); }
}
.li-sep { border: 0; border-top: 2px dashed rgba(var(--ink-rgb), .4); margin: 10px 0 2px; }
@media (prefers-reduced-motion: reduce) { .li-fire.on { animation: none; } }

/* u17 : bouton Prépa */
.li-firewrap { display: inline-flex; gap: 5px; }
.li-fire.prep.on { background: var(--sage); color: var(--ink); animation: firepulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .li-fire.prep.on { animation: none; } }

/* u18 : page Accès */
.tbl-scroll { overflow-x: auto; }

/* u20 : quantité de stock */
.stock-row { display: inline-flex; align-items: center; gap: 4px; }
.stock-qty { width: 62px; padding: 3px 6px; border: 2px solid var(--ink); border-radius: 8px; font-weight: 800; }

/* u21 : section servie */
.li-sent { font-weight: 900; font-size: .78rem; color: var(--sage-d); border: 2px solid var(--sage-d); border-radius: 99px; padding: 1px 9px; white-space: nowrap; }

/* u22 : sous-catégories + pastilles couleur */
.stock-sub { width: 100%; font-weight: 900; font-size: .78rem; color: rgba(var(--ink-rgb), .55); margin: 8px 0 0; text-transform: uppercase; letter-spacing: .04em; }
.li-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 5px; }

/* u24 : barre d'enregistrement fixe (Carte) */
.save-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; justify-content: center; padding: 6px 0; }
.save-bar .btn { box-shadow: 0 4px 14px rgba(0,0,0,.28); font-size: 1.02rem; padding: 10px 26px; }

/* u33 : caisse permanente, mouvements d'espèces, exports comptables */
.cash-top { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cash-big { font-size: 2rem; font-weight: 900; color: var(--wine); line-height: 1.1; }
.cash-mini { display: grid; gap: 4px; }
.cash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; align-items: flex-start; }
.cash-actions details > summary { list-style: none; cursor: pointer; display: inline-block; }
.cash-actions details > summary::-webkit-details-marker { display: none; }
.cash-actions details[open] { flex-basis: 100%; }
.cash-form { display: grid; gap: 8px; max-width: 520px; margin-top: 10px; padding: 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-2); }
.cash-form .checks span { display: inline-block; margin-right: 14px; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cx-item { display: block; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.cx-item:hover { background: var(--paper-2); }
.cx-zip { background: var(--cream); }

/* u34 : demandes de remboursement */
.rq-box { border-color: var(--wine); background: var(--paper-2); margin: 18px 0 24px; }
.rq-box h2 small { display: inline; font-size: .7em; }
.rq-ask > summary { list-style: none; cursor: pointer; display: inline-block; }
.rq-ask > summary::-webkit-details-marker { display: none; }
.rq-ask .cash-form { min-width: 260px; }
.rq-ask label { display: grid; gap: 4px; font-weight: 700; }
.rq-ask select, .rq-ask input[name=note] { width: 100%; padding: 7px 9px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: inherit; font-size: .95rem; }
.rq-ask label.checks { display: block; font-weight: 600; font-size: .92rem; }

/* u34 : Prépa / Prêt bien visibles — plus gros, lueur, clignotement couleur, plus rapide quand ça attend */
.li-fire { font-size: .82rem; padding: 4px 12px; transition: transform .15s; }
.li-fire:active { transform: scale(.94); }
.li-fire.on { animation: readyflash 1s ease-in-out infinite; position: relative; }
.li-fire.on.late { animation-duration: .55s; }
.li-fire.prep.on { animation: prepglow 1.2s ease-in-out infinite; }
.li-fire.prep.on.late { animation-duration: .7s; }
@keyframes readyflash {
  0%, 100% { transform: scale(1); background: var(--wine); color: var(--cream); box-shadow: 0 0 0 0 rgba(var(--main-rgb), .55); }
  50% { transform: scale(1.12); background: var(--gold); color: var(--ink); box-shadow: 0 0 0 7px rgba(var(--gold-rgb), .35), 0 0 16px 4px rgba(var(--gold-rgb), .55); }
}
@keyframes prepglow {
  0%, 100% { transform: scale(1); background: var(--sage); box-shadow: 0 0 0 0 rgba(var(--sage-rgb), .6); }
  50% { transform: scale(1.09); background: var(--sage-l); box-shadow: 0 0 0 6px rgba(var(--sage-rgb), .35), 0 0 14px 3px rgba(var(--sage-rgb), .6); }
}
@media (prefers-reduced-motion: reduce) {
  .li-fire.on, .li-fire.prep.on { animation: none; box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .6); }
}

/* u34 : planning tournant */
.rot-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.rot-form label { display: grid; gap: 4px; font-weight: 700; }
.rot-preview { margin-top: 12px; padding: 12px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--paper-2); }
.rot-weeks { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

/* ======================================================================
   LE PESSAQUAI — accueil, cartes planifiées, menu du jour, évènements
   ====================================================================== */
[hidden] { display: none !important; }
.wave { color: var(--wine-2); }
.btn-river { background: var(--river-d); color: var(--cream); }
.intro-c { max-width: 60ch; margin-left: auto; margin-right: auto; }
.crumb { margin: 0 0 14px; font-weight: 700; }
.crumb a { text-decoration: none; }
small.inline { display: inline; font-weight: 800; color: var(--ink); opacity: .7; letter-spacing: .08em; }

/* En-tête */
.brand-sub { display: block; letter-spacing: 2.5px; }
@media (max-width: 380px) {
  /* très petit écran : le nom tient sur une ligne */
  .brand-name { font-size: 1.12rem; letter-spacing: 2px; white-space: nowrap; }
  .brand-sub { letter-spacing: 1.5px; font-size: .5rem; white-space: nowrap; }
}
.foot-tag { font-family: 'Fraunces', Georgia, serif; font-style: italic; opacity: .85; }

/* Accueil : texte à gauche, illustration à droite (format portrait, le cadrage de la photo) */
.hero { padding: 34px 22px 46px; text-align: left; }
.hero-inner { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 54px; align-items: center; }
.hero-art { max-width: 500px; width: 100%; justify-self: end; }
.hero h1 { margin-left: 0; margin-right: 0; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.hero .hero-sub { margin-left: 0; margin-right: 0; }
.hero .cta-row { justify-content: flex-start; }
@media (max-width: 900px) {
  /* petit écran : l'illustration d'abord (recadrée par le bas), le texte centré dessous */
  .hero { text-align: center; padding: 20px 16px 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; justify-self: center; max-width: 460px; }
  .hero-art .facade { aspect-ratio: 1080 / 1420; border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
  .hero h1, .hero .hero-sub { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 16px;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: var(--bd);
  border-radius: 999px;
  box-shadow: var(--hard-s);
  transform: rotate(-1.5deg);
}
@media (max-width: 900px) {
  /* après la règle de base, sinon elle l'écrase */
  .hero-kicker { font-size: .7rem; letter-spacing: .08em; padding: 4px 12px; }
}
.hero h1 { max-width: 24ch; }
.band-quote {
  text-align: center;
  color: var(--cream);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  max-width: 34ch;
  margin: 6px auto 0;
  line-height: 1.35;
}
.band-quote small { display: block; margin-top: 10px; font-family: 'Nunito', sans-serif; font-style: normal; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.home-daily { padding-bottom: 0; }
.home-events { padding-bottom: 8px; }
.home-events h2, .infos h2 { text-align: center; }
.ev-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 18px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  font-weight: 700;
}
.ev-strip-date { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; }
.ev-strip-go { font-weight: 800; text-decoration: underline; }

/* Carte : choix du créneau */
.slot-pick { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 22px 0 6px; }
.slot-days, .slot-svc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 800;
  font-size: .93rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.pill:hover { transform: translate(-1px, -1px); }
.pill.on { background: var(--wine-2); color: var(--cream); }
.pill-svc { padding: 8px 22px; font-size: 1rem; }
.pill-svc.on { background: var(--river-d); }
.slot-date { display: inline-flex; gap: 6px; align-items: center; }
.slot-date input { font: inherit; font-weight: 700; padding: 5px 10px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); }
.slot-title { text-align: center; font-size: 1.15rem; margin: 18px 0 6px; }
.menu-page .note-warn { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Carte : les cartes servies */
.carte { --carte: var(--wine-2); }
.carte h2 span { background: var(--carte); color: var(--carte-ink, var(--cream)); }
.carte-cat { margin: 26px 0 0; font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--sage-d); }
.carte-cat + .menu-list { margin-top: 6px; }
.carte-price { display: inline-block; margin: 12px 0 0; padding: 3px 14px; font-weight: 800; background: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px; }
.other-cartes { margin-top: 50px; }
.carte-fold { margin: 14px 0; padding: 14px 20px; box-shadow: var(--hard-s); border-left: 10px solid var(--carte, var(--wine-2)); }
.carte-fold > summary { cursor: pointer; font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; }
.carte-fold > summary small { font-family: 'Nunito', sans-serif; color: var(--muted); margin-left: 8px; font-weight: 700; }
.menu-foot { margin: 34px auto 18px; font-size: .92rem; }

/* Menu du jour */
.daily { background: var(--paper-2); border-color: var(--ink); position: relative; margin: 26px auto; max-width: 820px; }
.daily > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 8px; }
.daily-tag {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.25rem;
  background: var(--river-d);
  color: var(--cream);
  border: var(--bd);
  border-radius: 12px;
  box-shadow: var(--hard-s);
  padding: 5px 16px;
  transform: rotate(-1deg);
}
.daily-prices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
.daily-prices b { color: var(--wine-2); white-space: nowrap; }
.daily-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 26px; }
.daily-cols h3 { margin: 12px 0 2px; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--sage-d); }
.daily-cols ul { list-style: none; margin: 0; padding: 0; }
.daily-cols li { padding: 4px 0; font-weight: 700; border-bottom: 2px dotted rgba(var(--ink-rgb), .22); }
.daily-cols li:last-child { border-bottom: 0; }

/* Évènements */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin: 22px 0 26px; }
.ev-grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ev-card {
  --ev: var(--river);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--hard);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ev-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.ev-pic { position: relative; height: 170px; background: var(--ev) center / cover no-repeat; border-bottom: var(--bd); }
.ev-card.noimg .ev-pic {
  height: 96px;
  background-image:
    radial-gradient(circle at 20% 130%, rgba(255, 255, 255, .28) 0 34%, transparent 35%),
    radial-gradient(circle at 78% -30%, rgba(255, 255, 255, .22) 0 40%, transparent 41%);
}
.ev-date {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 58px;
  padding: 5px 8px 6px;
  text-align: center;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  line-height: 1.05;
}
.ev-date small { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ev-date b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; }
.ev-body { padding: 16px 18px 18px; }
.ev-body h3 { margin-bottom: 4px; }
.ev-body p { margin: 0 0 8px; }
.ev-when { font-weight: 800; color: var(--river-d); font-size: .95rem; }
.ev-price { background: var(--gold); margin-left: 0; }
.ev-card.past, .ev-grid-past .ev-card { box-shadow: var(--hard-s); background: var(--paper-2); }
.ev-card.past .ev-pic, .ev-grid-past .ev-card .ev-pic { filter: saturate(.3) brightness(1.06); }
.ev-card.past h3, .ev-grid-past .ev-card h3 { font-weight: 700; }
.ev-past-t { margin-top: 44px; font-size: 1.3rem; }
.event-card { padding: 0; overflow: hidden; --ev: var(--river); border-top: 12px solid var(--ev); }
.event-img { width: 100%; max-height: 420px; object-fit: cover; border-bottom: var(--bd); }
.event-in { padding: 24px 26px 28px; }
.event-in h1 { margin-bottom: .3em; }
.event-teaser { font-size: 1.12rem; font-weight: 700; }
.event-body p { margin: 0 0 1em; }
.event-in .cta-row { justify-content: flex-start; margin-top: 18px; }
.ev-banner { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; padding: 14px 18px; background: var(--river-l); box-shadow: var(--hard-s); }
.ev-banner small { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--river-d); }
.ev-banner b { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; }

/* ---------- Backoffice : cartes, planning des cartes, menu du jour, évènements ---------- */
.carte-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 7px; vertical-align: baseline; }
h1 .carte-dot { width: 18px; height: 18px; }
a.card.carte-row { text-decoration: none; color: var(--ink); }
a.card.carte-row:hover { background: var(--paper-2); }
.carte-row-n { white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.form label.swatch, .swatch {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  background: var(--cream);
}
.swatch.none { background: repeating-linear-gradient(45deg, var(--cream) 0 5px, var(--paper) 5px 10px); }
.form .swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.swatch input:checked + span { position: absolute; inset: -7px; border: 3px solid var(--ink); border-radius: 50%; }
.swatch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.week-grid { border-collapse: separate; border-spacing: 6px; margin: 6px 0; }
.week-grid th { font-size: .82rem; font-weight: 800; text-align: center; padding: 2px 4px; white-space: nowrap; }
.week-grid tr > th:first-child { text-align: left; padding-right: 12px; }
.week-grid td { text-align: center; white-space: nowrap; }
.week-grid th small { display: block; font-weight: 700; }
.week-grid .is-today { color: var(--river-d); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.week-grid .is-past { opacity: .5; }
.form label.tick, .tick { display: inline-block; margin: 0; cursor: pointer; }
.form .tick input, .tick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.tick span { display: block; width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; }
.tick input:checked + span { background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231F3D30' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.tick input:indeterminate + span { background: var(--sage-l); }
.tick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.pick-cat { border: 2px dashed rgba(var(--ink-rgb), .3); border-radius: 12px; margin: 0 0 14px; padding: 6px 14px 12px; }
.pick-cat legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.pick-cat legend .tick span { width: 26px; height: 26px; border-radius: 8px; background-size: 17px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; }
.form label.pick { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 5px 6px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.form label.pick:hover { background: var(--paper-2); }
.form label.pick input { width: 18px; height: 18px; margin: 0; flex: none; transform: translateY(3px); }
.pick span { flex: 1; }
.form label.pick small { display: inline; margin: 0; color: var(--muted); white-space: nowrap; }
.pick.off span { opacity: .55; }

.plan-grid { width: 100%; }
.plan-name { min-width: 150px; }
.plan-name a { color: var(--ink); text-decoration: none; }
.plan-name a:hover { text-decoration: underline; }
.slot-btn {
  --carte: var(--sage-d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  margin: 1px;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: rgba(var(--ink-rgb), .45);
  background: #fff;
  border: 2.5px dashed rgba(var(--ink-rgb), .35);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.slot-btn.on { background: var(--carte); color: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); text-shadow: 0 0 2px rgba(0, 0, 0, .45); }
.slot-btn.st-added::after, .slot-btn.st-removed::after {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-size: .72rem;
  font-weight: 900;
  line-height: 13px;
  text-align: center;
  text-shadow: none;
  color: var(--ink);
}
.slot-btn.st-added::after { content: '+'; background: var(--gold); }
.slot-btn.st-removed { border: 2.5px solid var(--ink); background: repeating-linear-gradient(45deg, #fff 0 5px, var(--danger-soft) 5px 10px); color: rgba(var(--ink-rgb), .55); }
.slot-btn.st-removed::after { content: '−'; background: var(--danger-soft); }
.slot-btn.cur { outline: 3px solid var(--gold); outline-offset: 2px; }
button.slot-btn:hover { transform: translate(-1px, -1px); }
.plan-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; }
.plan-legend .slot-btn { width: 26px; height: 26px; font-size: .78rem; cursor: default; margin-left: 10px; }
.mdj-link { display: inline-block; margin: 0 2px; padding: 0 3px; font-size: .78rem; text-decoration: none; color: var(--muted); border-radius: 6px; }
.mdj-link.has { background: var(--sage); color: var(--ink); font-weight: 800; }
.mdj-link.closed { text-decoration: line-through; opacity: .6; }

.dm-days { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 14px 0 22px; }
.dm-day { text-align: center; padding: 4px 4px 6px; border: 2px solid transparent; border-radius: 12px; }
.dm-day > span { display: block; font-size: .74rem; font-weight: 800; margin-bottom: 3px; white-space: nowrap; }
.dm-day.on { border-color: var(--ink); background: var(--cream); }
.dm-day.is-today > span { color: var(--river-d); }
.dm-day .slot-btn { width: 30px; height: 30px; font-size: .86rem; }
.dm-pick input { font: inherit; font-weight: 700; padding: 5px 10px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.dm-course textarea { font-weight: 700; }
.inline-copy { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.inline-copy label { flex: 1; min-width: 220px; margin: 0; }
.inline-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 14px; }
.form .inline-checks label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 700; }
.form .inline-checks input { width: auto; margin: 0 4px 0 0; }
.item-cartes { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-left: 6px; }
.item-cartes .tag { text-decoration: none; color: var(--ink); margin-left: 0; }
.cat-edit { align-items: end; border-bottom: 2px dashed rgba(var(--ink-rgb), .2); padding-bottom: 10px; margin-bottom: 10px; }
.today-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 26px; padding: 14px 18px; box-shadow: var(--hard-s); }
.today-card .tag { margin: 2px 0 2px 6px; text-decoration: none; color: var(--ink); }
.ev-row { align-items: center; }
.ev-row-main { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: 1; min-width: 0; }
.ev-row .ev-date { position: static; flex: none; }
.ev-row .btn-row { margin-top: 0; flex-wrap: nowrap; }
.ev-thumb { max-width: 260px; border: var(--bd); border-radius: 12px; margin: 6px 0 10px; }
.form input[type="file"] { padding: 8px; background: var(--paper-2); }
.tbl { border-collapse: collapse; }
.tbl th, .tbl td { padding: 5px 8px; text-align: center; font-size: .86rem; }
.tbl tr > th:first-child { text-align: left; white-space: nowrap; }

@media (max-width: 900px) {
  .today-card { grid-template-columns: 1fr; }
  .ev-row .btn-row { flex-wrap: wrap; }
  .slot-btn { width: 32px; height: 32px; }
  .event-in { padding: 18px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card, .ev-card:hover, .pill:hover, button.slot-btn:hover { transition: none; transform: none; }
}

/* ---------- Finitions backoffice ---------- */
.admcat.on > summary small { color: var(--sage-l); opacity: 1; }
form.form > .card + .card, form.form > .card + .save-bar { margin-top: 18px; }
.card + h2, .tbl-scroll + h2, form + h2, .acc-grid + h2 { margin-top: 1.6em; }
.btn-row + h2 { margin-top: 1.2em; }
form.form + .btn-row, .add-form + .btn-row { margin-top: 18px; }
.form h3 small { display: inline; font-family: 'Nunito', sans-serif; font-size: .85rem; font-weight: 700; }
.plan-name small { display: block; margin: 1px 0 0 20px; font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- Passe de vérification (téléphone, contrastes) ---------- */
/* Une grille ne doit pas s'élargir à cause d'un tableau large : le tableau défile dans sa colonne. */
.acc-grid > *, .grid2 > *, .grid4 > *, .cards3 > *, .foot-grid > * { min-width: 0; }
.table + h2, .table + h3 { margin-top: 1.6em; }
.cards3.cards-2 { grid-template-columns: repeat(2, 1fr); }
/* Un tableau plus large que sa colonne défile dans son propre cadre, à toutes les largeurs :
   une longue adresse e-mail suffisait à faire défiler toute la page sur tablette en paysage.
   Au-dessus de 900 px, l'aspect ne change pas : pas de filet, seule l'ombre dessine le cadre. */
.table { display: block; overflow-x: auto; }
.table > tbody { display: table; width: 100%; }
@media (min-width: 901px) { .table { border-color: transparent; } }
/* Tablette en paysage, petite fenêtre : colonnes un peu plus serrées, la liste des comptes tient sans défiler à 1024 px. */
@media (min-width: 901px) and (max-width: 1060px) { .table th, .table td { padding-left: 8px; padding-right: 8px; } }
/* En-têtes cliquables (tri du tableau des ventes) : le lien prenait le vert de l'en-tête, donc
   exactement la couleur du fond — les titres de colonnes étaient invisibles. */
.table th a { color: inherit; text-underline-offset: 3px; }
/* Étiquettes d'état : jamais coupées en deux lignes ; l'étiquette d'évènement (texte libre) peut l'être, sans devenir ovale. */
.tag { white-space: nowrap; }
.tag.ev-price { white-space: normal; border-radius: 13px; }
/* Longues lignes de commande (cron, chemins) : elles passent à la ligne au lieu de pousser la page. */
code { overflow-wrap: anywhere; }
/* Service en direct, petit écran : les boutons « Prépa / Prêt » passent sous le nom de la section au lieu de pousser la page. */
.li-group-head { flex-wrap: wrap; }
.li-firewrap { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.lt-actions { flex-wrap: wrap; align-items: center; }
.lt-actions .btn { white-space: nowrap; }
/* Au doigt : petits boutons et champs de quantité assez grands pour être touchés sans viser. */
@media (pointer: coarse) {
  .btn-mini { min-width: 34px; min-height: 34px; padding: 3px 9px; font-size: .86rem; }
  .li-tools { display: inline-flex; flex-wrap: wrap; gap: 5px; }
  .stock-qty { min-height: 36px; width: 68px; font-size: 1rem; }
  .li-fire { padding: 5px 12px; font-size: .8rem; }
}
/* Plannings en grille sur téléphone : la colonne des noms reste visible pendant qu'on fait défiler les jours. */
@media (max-width: 700px) {
  .plan-grid { width: auto; }
  .plan-grid tr > th:first-child {
    position: sticky; left: 0; z-index: 2;
    width: 112px; min-width: 112px; max-width: 112px;
    padding: 2px 8px;
    white-space: normal;
    background: var(--cream);
    box-shadow: 0 -6px 0 var(--cream), 0 6px 0 var(--cream), 6px 0 6px -4px rgba(var(--ink-rgb), .25);
  }
  .plan-name small { white-space: normal; margin-left: 0; }
  .card.tbl-scroll:has(.plan-grid) { padding-left: 8px; }
}
