/* =====================================================================
   ANASA — Pilates & Wellness · Design system
   Identité : noir espresso + sable ANASA (#EBDAC6), olive du coffee bar,
   typographie géométrique Jost (esprit Futura), motif chevrons Λ V.
   ===================================================================== */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/jost-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/jost-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jost-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jost-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #14110F;
  --ink-2: #1F1B18;
  --ink-3: #2B2622;
  --sand: #EBDAC6;
  --sand-2: #DCC6AC;
  --sand-3: #C8AE90;
  --linen: #F6F0E8;
  --paper: #FFFCF8;
  --taupe: #8C7764;
  --taupe-2: #6B5B4D;
  --line: #E6DACB;
  --line-dark: #3A332D;
  --olive: #5F5C2C;
  --olive-2: #4B4922;
  --olive-ink: #F1EBD4;
  --ok: #4F6B4A;
  --ok-bg: #E7EEE2;
  --warn: #9A6A1F;
  --warn-bg: #F6EBD6;
  --danger: #A3412E;
  --danger-bg: #F6E2DC;
  --info: #3F5A6B;
  --info-bg: #E2EBF0;
  --muted-bg: #EFE9E1;

  --font: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(20, 17, 15, .05), 0 8px 24px -12px rgba(20, 17, 15, .18);
  --sidebar: 252px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--linen); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sand-3); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; color: var(--sand); text-decoration: none; }
.logo svg { height: 22px; width: auto; }
.logo-lg svg { height: 34px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .62em 1.35em; border-radius: var(--pill);
  border: 1px solid var(--ink); background: var(--ink); color: var(--sand); font-size: .92rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #F3E7D8; }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(20, 17, 15, .35); }
.btn-line:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.on-dark .btn-line, .btn-line.on-dark { color: var(--sand); border-color: rgba(235, 218, 198, .55); }
.on-dark .btn-line:hover, .btn-line.on-dark:hover { background: var(--sand); color: var(--ink); }
.btn-olive { background: var(--olive); border-color: var(--olive); color: var(--olive-ink); }
.btn-olive:hover { background: var(--olive-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--taupe-2); }
.btn-ghost:hover { background: var(--muted-bg); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(163, 65, 46, .4); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #435C3F; }
.btn-sm { min-height: 36px; padding: .4em 1em; font-size: .84rem; }
.btn-xs { min-height: 30px; padding: .25em .8em; font-size: .78rem; }
.btn-lg { min-height: 54px; padding: .8em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .ic-svg { flex: none; }
.link { color: var(--taupe-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sand-3); }
.link:hover { color: var(--ink); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .7em; border-radius: var(--pill); font-size: .76rem; font-weight: 500; line-height: 1.4; white-space: nowrap; background: var(--muted-bg); color: var(--taupe-2); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-ink { background: var(--ink); color: var(--sand); }
.badge-sand { background: var(--sand); color: var(--ink); }
.badge-olive { background: var(--olive); color: var(--olive-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .label { font-size: .84rem; color: var(--taupe-2); font-weight: 500; }
.hint { font-size: .8rem; color: var(--taupe); margin-top: 2px; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: .6em .9em; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sand-3); box-shadow: 0 0 0 3px rgba(200, 174, 144, .25); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7764' fill='none' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input-sm, .select-sm { min-height: 38px; padding: .35em .7em; font-size: .9rem; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.phone-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.file-drop { border: 1.5px dashed var(--sand-3); border-radius: var(--r); padding: 18px; text-align: center; color: var(--taupe-2); background: var(--paper); }
.file-drop input { margin-top: 8px; max-width: 100%; }
.seg { display: inline-flex; padding: 4px; background: var(--muted-bg); border-radius: var(--pill); gap: 2px; flex-wrap: wrap; }
.seg a, .seg button, .seg label { border: 0; background: transparent; padding: .45em 1.05em; border-radius: var(--pill); font-size: .88rem; color: var(--taupe-2); text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg .on, .seg input:checked + span { background: var(--ink); color: var(--sand); }
.seg label { padding: 0; }
.seg label span { display: block; padding: .45em 1.05em; border-radius: var(--pill); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.on-dark .seg { background: var(--ink-3); }
.on-dark .seg a, .on-dark .seg button { color: var(--sand-2); }
.on-dark .seg .on { background: var(--sand); color: var(--ink); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-size: .94rem; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: #36502F; border-color: #CFDCC7; }
.flash-error { background: var(--danger-bg); color: #7E2E1F; border-color: #EBC7BE; }
.flash-info { background: var(--info-bg); color: #2F4654; }
.flash-warning { background: var(--warn-bg); color: #6E4C15; }

/* ---------- Cartes & blocs ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.12rem; }
.card-ink { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.card-flat { background: transparent; border-style: dashed; }
.muted { color: var(--taupe); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--taupe); }
.empty .ic-svg { margin: 0 auto 10px; color: var(--sand-3); }
.empty p { max-width: 36ch; margin: 0 auto 14px; }

/* Stat tiles (admin) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; display: block; }
.stat .k { font-size: .82rem; color: var(--taupe); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 1.7rem; font-weight: 400; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .s { font-size: .78rem; color: var(--taupe); }
.stat.alert { border-color: #E9C9A8; background: #FBF2E6; }
a.stat:hover { border-color: var(--sand-3); }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 500; color: var(--taupe); font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBF7F1; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #F0E7DB; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-muted td { color: var(--taupe); }
.table .actions { text-align: right; white-space: nowrap; }
.table a.rowlink { text-decoration: none; font-weight: 500; }
@media (max-width: 760px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.cards td { border: 0; padding: 3px 0; }
  .table.cards td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 96px; color: var(--taupe); font-size: .78rem; }
  .table.cards .actions { text-align: left; padding-top: 8px; }
}

/* Listes simples */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #F0E7DB; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 500; }
.list .m { font-size: .84rem; color: var(--taupe); }

/* Avatar */
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: .86rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   SITE PUBLIC
   ===================================================================== */
.pub { background: var(--ink); color: var(--sand); }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.wrap-narrow { width: min(820px, 100% - 32px); margin: 0 auto; }

/* Bandeau d'annonce */
.topbar-promo { background: var(--sand); color: var(--ink); font-size: .88rem; text-align: center; padding: 9px 16px; position: relative; z-index: 60; }
.topbar-promo a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.topbar-promo.theme-olive { background: var(--olive); color: var(--olive-ink); }
.topbar-promo.theme-olive a { color: var(--olive-ink); }
.topbar-promo.theme-dark { background: var(--ink-3); color: var(--sand); }
.topbar-promo.theme-dark a { color: var(--sand); }
.topbar-promo .tp-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: .6; width: 32px; height: 32px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 17, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(235, 218, 198, .1); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); opacity: .82; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.on { opacity: 1; border-bottom-color: var(--sand); }
.site-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sand); background: transparent; border: 1px solid rgba(235, 218, 198, .25); text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--sand); }
.icon-btn .count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--sand); color: var(--ink); font-size: .7rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--sand); padding: 22px 24px 40px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu nav a { display: block; font-size: 1.9rem; font-weight: 300; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-actions { margin-left: auto; }
  .site-actions .hide-m { display: none; }
}

/* Hero vidéo */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 15, .25) 0%, rgba(20, 17, 15, var(--shade, .55)) 55%, rgba(20, 17, 15, .96) 100%); }
.hero-inner { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 120px 0 56px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; }
.hero-kicker { font-size: .95rem; color: var(--sand-2); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--sand-2); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.4rem); font-weight: 500; line-height: .92; letter-spacing: -.035em; color: var(--sand); margin: 0 0 22px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34ch; color: #E9DCCB; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-info { display: grid; gap: 1px; background: rgba(235, 218, 198, .18); border: 1px solid rgba(235, 218, 198, .18); border-radius: var(--r); overflow: hidden; backdrop-filter: blur(6px); }
.hero-info > div { background: rgba(20, 17, 15, .55); padding: 14px 18px; }
.hero-info .k { font-size: .78rem; color: var(--sand-3); }
.hero-info .v { font-size: .98rem; color: var(--sand); }
.hero-info a { text-decoration: none; }
@media (max-width: 860px) {
  .hero { min-height: 88vh; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 140px; gap: 26px; }
  .hero-info { grid-template-columns: 1fr 1fr; }
  .hero-info > div:last-child { grid-column: 1 / -1; }
}

/* Motif chevrons Λ V (signature ANASA) */
.chevrons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 10px; color: var(--sand); }
.chevrons span { display: flex; justify-content: center; }
.chevrons svg { width: 30px; height: 26px; }
.chevrons span:nth-child(odd) svg { transform: rotate(180deg); }
.chevrons span { opacity: .18; animation: chev 6s var(--ease) infinite; }
@keyframes chev { 0%, 100% { opacity: .14; } 50% { opacity: .9; } }
.hero-chevrons { position: absolute; right: max(16px, calc((100vw - 1180px) / 2)); top: 120px; width: 300px; z-index: -1; }
@media (max-width: 860px) { .hero-chevrons { width: 190px; top: 96px; opacity: .6; } }
.chev-rule { display: flex; gap: 14px; justify-content: center; color: var(--sand-3); padding: 6px 0; }
.chev-rule svg { width: 14px; height: 12px; }
.chev-rule span:nth-child(even) svg { transform: rotate(180deg); }

/* Sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-light { background: var(--linen); color: var(--ink); }
.sec-paper { background: var(--paper); color: var(--ink); }
.sec-dark { background: var(--ink); color: var(--sand); }
.sec-olive { background: var(--olive); color: var(--olive-ink); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 400; letter-spacing: -.025em; }
.sec-head p { margin: 10px 0 0; max-width: 52ch; opacity: .78; }

/* Espaces (4 univers) */
.spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.space { padding: 26px 22px 30px; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-height: 290px; transition: background .25s var(--ease); }
.space:last-child { border-right: 0; }
.space:hover { background: var(--ink-2); }
.space .cap { font-size: 3.2rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.space .cap small { font-size: .9rem; letter-spacing: 0; margin-left: 6px; color: var(--sand-3); }
.space h3 { margin: auto 0 0; font-size: 1.35rem; font-weight: 500; }
.space p { font-size: .92rem; color: var(--sand-2); margin: 0; opacity: .85; }
.space .go { font-size: .85rem; color: var(--sand-3); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .spaces { grid-template-columns: 1fr 1fr; } .space:nth-child(2) { border-right: 0; } .space:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); } .space { min-height: 230px; } }
@media (max-width: 520px) { .spaces { grid-template-columns: 1fr; } .space { border-right: 0; border-bottom: 1px solid var(--line-dark); min-height: 0; } .space h3 { margin-top: 14px; } }

/* Planning (liste horaire) */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 18px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 66px; padding: 10px 0; border-radius: var(--r); border: 1px solid var(--line); text-align: center; text-decoration: none; background: var(--paper); cursor: pointer; }
.day .d { font-size: .76rem; color: var(--taupe); text-transform: capitalize; }
.day .n { font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.day.on { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.day.on .d { color: var(--sand-3); }
.day.closed { opacity: .45; }
.sched-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.timetable { border-top: 1px solid var(--line); }
.slot { display: grid; grid-template-columns: 96px minmax(0, 1fr) 180px auto; gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.slot:hover { background: rgba(235, 218, 198, .25); }
.slot .time { font-size: 1.45rem; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.slot .time small { display: block; font-size: .78rem; color: var(--taupe); letter-spacing: 0; }
.slot .what h3 { margin: 0 0 3px; font-size: 1.12rem; }
.slot .what .m { font-size: .86rem; color: var(--taupe); }
.places { font-size: .82rem; color: var(--taupe-2); }
.places .bar { height: 4px; border-radius: 4px; background: var(--muted-bg); margin-top: 6px; overflow: hidden; }
.places .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.places.full .bar i { background: var(--danger); }
.slot.is-past { opacity: .5; }
.space-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: .15em .65em; border-radius: var(--pill); border: 1px solid var(--line); color: var(--taupe-2); margin-right: 6px; }
.space-tag.reformer { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.space-tag.mat { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.space-tag.sauna { background: #F1DED0; color: #6E3F25; border-color: #F1DED0; }
.space-tag.massage { background: #E6E3D3; color: var(--olive-2); border-color: #E6E3D3; }
.space-tag.duo { background: var(--sand-2, #EBDAC6); color: var(--ink); border: 1px dashed var(--ink); }
@media (max-width: 720px) {
  .slot { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 14px; padding: 16px 2px; }
  .slot .time { font-size: 1.2rem; grid-row: span 2; align-self: start; }
  .slot .places { grid-column: 2; }
  .slot .cta { grid-column: 2; }
}

/* Tarifs */
.price-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price { padding: 8px 28px 10px; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 10px; }
.price:first-child { border-left: 0; padding-left: 0; }
.price h3 { font-size: 1.3rem; margin: 0; }
.price .amount { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: .9rem; letter-spacing: 0; margin-left: 6px; color: var(--sand-3); font-weight: 400; }
.price .per { font-size: .86rem; color: var(--sand-3); }
.price p { color: var(--sand-2); font-size: .94rem; margin: 0; flex: 1; }
.price .btn { align-self: flex-start; margin-top: 8px; }
.price.featured .amount { color: #fff; }
.sec-light .price { border-left-color: var(--line); }
.sec-light .price .per, .sec-light .price .amount small { color: var(--taupe); }
.sec-light .price p { color: var(--taupe-2); }
@media (max-width: 860px) { .price-cols { grid-template-columns: 1fr; } .price { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line-dark); } .price:first-child { border-top: 0; } }
.price-group { margin-bottom: 56px; }
.price-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--line-dark); padding-bottom: 12px; margin-bottom: 24px; }
.price-group-head h3 { margin: 0; font-size: 1.45rem; font-weight: 400; }
.price-group-head p { margin: 0; color: var(--sand-3); font-size: .9rem; max-width: 520px; text-align: right; }
.price-cols.cols-1 { grid-template-columns: 1fr; }
.price-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-main, .price-buy { display: flex; flex-direction: column; gap: 10px; }
.price-main { flex: 1; }
.price-sp { align-self: flex-start; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-3); border: 1px solid var(--line-dark); border-radius: 99px; padding: 3px 10px; }
.price.featured .price-sp { color: var(--sand); border-color: var(--sand-3); }
.price.wide { flex-direction: row; align-items: center; gap: 40px; padding: 30px 34px; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(235, 218, 198, .04); }
.price.wide .price-buy { min-width: 260px; }
.price.wide h3 { font-size: 1.6rem; }
@media (max-width: 860px) {
  .price-cols.cols-2 { grid-template-columns: 1fr; }
  .price-group-head { flex-direction: column; gap: 4px; }
  .price-group-head p { text-align: left; }
  .price.wide { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 20px; }
  .price.wide .price-buy { min-width: 0; }
}
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 46px; border-top: 1px solid var(--line-dark); }
.rules > div { padding: 22px 24px 0 0; }
.rules strong { display: block; font-weight: 500; margin-bottom: 4px; }
.rules p { color: var(--sand-3); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* Bien-être */
.well-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.well { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: var(--sand); background: var(--ink-3); isolation: isolate; text-decoration: none; }
.well img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.well:hover img { transform: scale(1.04); }
.well::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 15, 0) 30%, rgba(20, 17, 15, .88)); }
.well .in { padding: 26px; width: 100%; }
.well h3 { font-size: 2rem; font-weight: 400; margin-bottom: 6px; }
.well ul { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 6px; }
.well li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; border-bottom: 1px solid rgba(235, 218, 198, .18); padding-bottom: 6px; }
@media (max-width: 760px) { .well-grid { grid-template-columns: 1fr; } .well { min-height: 320px; } }

/* Carte du coffee bar (reprend la carte plastifiée) */
.menu-board { border: 1px solid rgba(241, 235, 212, .4); border-radius: 6px; padding: 30px clamp(18px, 4vw, 44px); position: relative; }
.menu-board::before, .menu-board::after { content: "ΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛVΛV"; position: absolute; left: 0; right: 0; text-align: center; font-size: .78rem; letter-spacing: .6em; color: rgba(241, 235, 212, .55); overflow: hidden; white-space: nowrap; }
.menu-board::before { top: 10px; }
.menu-board::after { bottom: 10px; }
.menu-cols { columns: 4 230px; column-gap: 38px; padding: 16px 0; }
.menu-cat { break-inside: avoid; margin-bottom: 26px; }
.menu-cat h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin: 0 0 10px; }
.menu-item { display: flex; align-items: baseline; gap: 6px; font-size: .9rem; padding: 3px 0; }
.menu-item .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .lead { flex: 1; border-bottom: 1px dotted rgba(241, 235, 212, .5); transform: translateY(-4px); min-width: 14px; }
.menu-item .p { white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item.out .n, .menu-item.out .p { opacity: .45; text-decoration: line-through; }
.menu-note { text-align: center; margin-top: 4px; }
.menu-note strong { color: #E3DA86; font-weight: 500; letter-spacing: .06em; }

/* Produits (boutique / commande) */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
.product { display: flex; flex-direction: column; gap: 8px; }
.product .ph { aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--muted-bg); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; color: var(--sand-3); }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .ph .badge { position: absolute; top: 10px; left: 10px; }
.product h3 { font-size: 1rem; margin: 4px 0 0; }
.product .desc { font-size: .85rem; color: var(--taupe); margin: 0; }
.product .pr { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.product form { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--paper); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--taupe-2); }
.qty input { width: 34px; border: 0; text-align: center; background: none; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Liste « commander au bar » */
.order-menu { display: grid; gap: 28px; }
.om-cat h3 { font-size: 1.05rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.om-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.om-row .n { font-weight: 500; }
.om-row .s { font-size: .8rem; color: var(--taupe); }
.om-row .p { font-variant-numeric: tabular-nums; }
.om-row form { display: flex; gap: 6px; align-items: center; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; position: sticky; top: var(--header-h); background: var(--linen); z-index: 5; padding-top: 10px; }
.cat-chips a { flex: none; text-decoration: none; padding: .4em 1em; border-radius: var(--pill); border: 1px solid var(--line); font-size: .86rem; background: var(--paper); }

/* Panier flottant */
.cart-fab { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--sand); padding: 10px 10px 10px 20px; border-radius: var(--pill); box-shadow: 0 12px 30px rgba(20, 17, 15, .35); text-decoration: none; max-width: calc(100% - 32px); }
.cart-fab .btn { min-height: 38px; }
body.has-bottom-nav .cart-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* Promos */
.promo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.promo { border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; position: relative; overflow: hidden; text-decoration: none; isolation: isolate; }
.promo h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; margin: 0; max-width: 18ch; }
.promo p { margin: 0; max-width: 46ch; opacity: .85; }
.promo .btn { align-self: flex-start; margin-top: auto; }
.promo.has-img { color: var(--sand); }
.promo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 17, 15, .85), rgba(20, 17, 15, .2)); }
.theme-dark { background: var(--ink-3); color: var(--sand); }
.theme-sand { background: linear-gradient(180deg, #FBF6F0, var(--sand)); color: var(--ink); }
.theme-olive { background: var(--olive); color: var(--olive-ink); }
.theme-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

/* Popup promo */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 17, 15, .6); backdrop-filter: blur(4px); }
.modal-box { width: min(480px, 100%); border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: pop .35s var(--ease); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-box.wide { width: min(640px, 100%); }
.modal-box .x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(20, 17, 15, .55); color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 2; }
.modal-box .img { aspect-ratio: 16 / 10; background: var(--ink-3); }
.modal-box .img img { width: 100%; height: 100%; object-fit: cover; }
.modal-box .body { padding: 24px; }
.modal-box.theme-dark .body, .modal-box.theme-olive .body { color: inherit; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--sand-2); padding: 70px 0 40px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--sand); font-size: .95rem; margin-bottom: 14px; }
.site-footer a { text-decoration: none; color: var(--sand-2); }
.site-footer a:hover { color: var(--sand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); margin-top: 46px; padding-top: 22px; font-size: .82rem; color: var(--taupe); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 44; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
body.has-bottom-nav .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-cart .wa-float { display: none; }

/* Pages publiques intérieures */
.page-hero { padding: 70px 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; letter-spacing: -.03em; margin: 0 0 10px; }
.page-hero p { max-width: 54ch; opacity: .8; margin: 0; }
.crumb { font-size: .86rem; opacity: .7; margin-bottom: 18px; display: inline-flex; gap: 6px; text-decoration: none; }

/* Fiche cours */
.course-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.course-media { border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3); aspect-ratio: 16 / 10; position: relative; }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-media .time-badge { position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--sand); padding: 8px 14px; border-radius: var(--pill); font-size: 1rem; }
.booking-box { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .course-head { grid-template-columns: 1fr; } .booking-box { position: static; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .94rem; }
.kv dt { color: var(--taupe); }
.kv dd { margin: 0; }

/* Créneaux bien-être */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots label { position: relative; }
.slots input { position: absolute; opacity: 0; }
.slots span { display: block; text-align: center; padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-variant-numeric: tabular-nums; cursor: pointer; }
.slots input:checked + span { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.slots input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.slots input:focus-visible + span { outline: 2px solid var(--sand-3); outline-offset: 2px; }
.svc-pick { display: grid; gap: 10px; }
.svc-pick label { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.svc-pick input { accent-color: var(--ink); width: 18px; height: 18px; }
.svc-pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.svc-pick .grow { flex: 1; }
.steps-head { display: flex; gap: 10px; align-items: baseline; margin: 26px 0 12px; }
.steps-head .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--sand); display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; flex: none; }
.steps-head h3 { margin: 0; font-size: 1.1rem; }

/* Auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(0, 520px); background: var(--linen); }
.auth-art { position: relative; background: var(--ink); color: var(--sand); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-art img, .auth-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 15, .2), rgba(20, 17, 15, .9)); }
.auth-art h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 400; max-width: 14ch; letter-spacing: -.03em; }
.auth-main { padding: 40px clamp(20px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.auth-main h1 { font-size: 2rem; font-weight: 500; }
.auth-main .alt { margin-top: 18px; font-size: .92rem; color: var(--taupe-2); }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { min-height: 200px; padding: 22px; } .auth-art h2 { font-size: 1.8rem; } }

/* =====================================================================
   APPLICATION (cliente, coach, admin)
   ===================================================================== */
.app { background: var(--linen); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--ink); color: var(--sand); display: flex; flex-direction: column; padding: 22px 14px 16px; z-index: 40; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.s-brand { display: block; padding: 4px 10px 22px; text-decoration: none; }
.s-brand .logo svg { height: 20px; }
.s-brand small { display: block; font-size: .78rem; color: var(--sand-3); margin-top: 8px; }
.s-group { font-size: .72rem; color: var(--taupe); padding: 16px 12px 6px; letter-spacing: .04em; }
.s-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--sand-2); text-decoration: none; font-size: .93rem; position: relative; }
.s-link:hover { background: var(--ink-2); color: var(--sand); }
.s-link.active { background: var(--sand); color: var(--ink); }
.s-link .s-badge { margin-left: auto; background: var(--sand); color: var(--ink); border-radius: 10px; font-size: .72rem; padding: 0 7px; font-weight: 600; }
.s-link.active .s-badge { background: var(--ink); color: var(--sand); }
.s-spacer { flex: 1; min-height: 16px; }
.app-main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; background: rgba(246, 240, 232, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-title { font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { display: flex; align-items: center; gap: 8px; }
.tb-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.tb-icon:hover { background: var(--muted-bg); }
.tb-icon .badge-n { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .66rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.page { padding: 26px 28px 60px; width: 100%; max-width: 1240px; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-size: 1.7rem; margin: 0; }
.mobile-only { display: none !important; }
.bottom-nav { display: none; }
@media (max-width: 960px) {
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .topbar { padding: 0 14px; height: 58px; }
  .page { padding: 18px 16px 110px; }
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--taupe); font-size: .7rem; padding: 4px 0; border-radius: 12px; position: relative; }
  .bottom-nav a.active { color: var(--sand); }
  .bottom-nav a.active::before { content: ""; position: absolute; top: -8px; width: 22px; height: 2px; background: var(--sand); border-radius: 2px; }
  .bottom-nav .nb { position: absolute; top: 0; right: calc(50% - 20px); background: var(--sand); color: var(--ink); border-radius: 8px; font-size: .62rem; padding: 0 5px; font-weight: 600; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
}

/* Soldes par espace (cliente) */
.wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wallet-item { border-radius: var(--r); padding: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.wallet-item.reformer { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.wallet-item .k { font-size: .84rem; opacity: .75; }
.wallet-item .v { font-size: 2.2rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wallet-item .v.neg { color: var(--danger); }
.wallet-item.reformer .v.neg { color: #F0A592; }
.wallet-item .s { font-size: .78rem; opacity: .7; }
.welcome { background: var(--ink); color: var(--sand); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; margin-bottom: 18px; isolation: isolate; }
.welcome h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin: 0 0 6px; }
.welcome p { color: var(--sand-2); margin: 0 0 16px; }
.welcome .chevrons { position: absolute; right: 16px; top: 16px; width: 170px; z-index: -1; opacity: .7; }
@media (max-width: 600px) { .welcome .chevrons { width: 110px; opacity: .35; } }

.resa { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #F0E7DB; }
.resa:last-child { border-bottom: 0; }
.resa .date { text-align: center; border-radius: 12px; background: var(--muted-bg); padding: 6px 0; }
.resa .date .d { font-size: .72rem; color: var(--taupe); text-transform: capitalize; }
.resa .date .n { font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.resa .t { font-weight: 500; }
.resa .m { font-size: .84rem; color: var(--taupe); }
@media (max-width: 560px) { .resa { grid-template-columns: 52px minmax(0, 1fr); } .resa > :last-child { grid-column: 2; } }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #F0E7DB; text-decoration: none; }
.notif.unread .t::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 8px; vertical-align: middle; }
.notif .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--muted-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.notif.promo .ic { background: var(--sand); }
.notif img.th { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }

/* Install / notif banners */
.install-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 440px; margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--ink); color: var(--sand); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transform: translateY(140%); transition: transform .4s var(--ease); }
.install-banner.show { transform: none; }
body.has-bottom-nav .install-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
.install-banner .ib-logo { width: 42px; height: 42px; border-radius: 10px; flex: none; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.install-banner .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .84rem; }
.install-banner .ib-text strong { font-weight: 500; font-size: .95rem; }
.install-banner .ib-text span { color: var(--sand-3); }
.ib-close { background: none; border: 0; color: var(--sand-3); font-size: 1.4rem; cursor: pointer; width: 34px; height: 34px; }
.ios-install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 91; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.ios-install .ib-close { position: absolute; right: 8px; top: 8px; color: var(--taupe); }
.ios-install ol { margin: 10px 0 0; padding-left: 20px; font-size: .92rem; }

/* Alerte temps réel (admin / équipe) */
.live-alert { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 120; width: min(520px, calc(100% - 24px)); }
.live-alert-inner { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--sand); border: 1px solid var(--sand-3); border-radius: 16px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: pulse 1.4s ease-in-out infinite; }
.live-alert .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-alert .txt span { font-size: .84rem; color: var(--sand-3); }
@keyframes pulse { 0%, 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, .35); } 50% { box-shadow: 0 0 0 6px rgba(235, 218, 198, .25), 0 16px 40px rgba(0, 0, 0, .35); } }

/* Admin : tabs, toolbar, calendrier, POS */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--taupe-2); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .94rem; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.toolbar .field { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .h { font-size: .74rem; color: var(--taupe); text-align: center; padding-bottom: 4px; }
.cal a { min-height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; padding: 6px 8px; display: flex; flex-direction: column; font-size: .8rem; }
.cal a .n { font-weight: 500; font-size: .95rem; }
.cal a .c { margin-top: auto; color: var(--taupe); font-size: .72rem; }
.cal a.out { opacity: .4; }
.cal a.today { border-color: var(--sand-3); }
.cal a.on { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.cal a.on .c { color: var(--sand-3); }

.agenda { display: grid; grid-template-columns: 64px repeat(var(--cols, 2), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.agenda .col-h { padding: 10px; font-weight: 500; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: .92rem; }
.agenda .col-h:first-child { border-left: 0; }
.agenda .hours, .agenda .col { position: relative; }
.agenda .col { border-left: 1px solid var(--line); background-image: repeating-linear-gradient(180deg, transparent 0, transparent 59px, #F0E7DB 59px, #F0E7DB 60px); }
.agenda .hr { height: 60px; font-size: .74rem; color: var(--taupe); padding: 2px 8px; text-align: right; }
.agenda .ev { position: absolute; left: 6px; right: 6px; border-radius: 10px; padding: 6px 8px; font-size: .78rem; overflow: hidden; text-decoration: none; background: var(--ink); color: var(--sand); border: 1px solid var(--ink); }
.agenda .ev.unpaid { background: var(--warn-bg); color: var(--warn); border-color: #E7CFA5; }
.agenda .ev.pending { background: var(--info-bg); color: var(--info); border-color: #C8D7E0; border-style: dashed; }
.agenda .ev.block { background: repeating-linear-gradient(45deg, #EFE9E1, #EFE9E1 6px, #E6DFD5 6px, #E6DFD5 12px); color: var(--taupe-2); border-color: var(--line); }
.agenda .ev.done { opacity: .6; }
.agenda .ev strong { display: block; font-weight: 500; }

.pos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-item { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 92px; position: relative; }
.pos-item:hover { border-color: var(--ink); }
.pos-item:active { transform: scale(.98); }
.pos-item .n { font-weight: 500; font-size: .92rem; line-height: 1.25; }
.pos-item .p { margin-top: auto; font-variant-numeric: tabular-nums; color: var(--taupe-2); font-size: .88rem; }
.pos-item .st { position: absolute; top: 8px; right: 8px; font-size: .68rem; }
.pos-item.out { opacity: .4; pointer-events: none; }
.pos-item.kitchen { border-left: 3px solid var(--olive); }
.pos-item.shop { border-left: 3px solid var(--ink); }
.pos-cart { position: sticky; top: 80px; }
.pos-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #F0E7DB; font-size: .9rem; }
.pos-total { display: flex; justify-content: space-between; font-size: 1.4rem; padding: 14px 0; font-variant-numeric: tabular-nums; }
.pay-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-modes label span { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; cursor: pointer; background: var(--paper); }
.pay-modes input { position: absolute; opacity: 0; }
.pay-modes input:checked + span { background: var(--ink); color: var(--sand); border-color: var(--ink); }
@media (max-width: 1100px) { .pos { grid-template-columns: 1fr; } .pos-cart { position: static; } }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kanban .col h3 { font-size: .98rem; display: flex; justify-content: space-between; margin-bottom: 10px; }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.ticket .ref { font-weight: 500; }
.ticket ul { margin: 8px 0; padding-left: 18px; font-size: .9rem; }
@media (max-width: 960px) { .kanban { grid-template-columns: 1fr; } }

.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--muted-bg); flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--sand-3); }
.media-preview { border-radius: var(--r); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; position: relative; }
.media-preview video, .media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-preview .ovl { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: var(--sand); background: linear-gradient(180deg, transparent 30%, rgba(20, 17, 15, .85)); }
.media-preview .ovl strong { font-size: 1.6rem; font-weight: 500; line-height: 1; }
.receipt { max-width: 560px; margin: 0 auto; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-size: .92rem; }

@media print {
  .sidebar, .topbar, .bottom-nav, .no-print, .install-banner, .live-alert { display: none !important; }
  .app-main { margin: 0; }
  body { background: #fff; }
}

/* ---------- Fenêtre de choix & suppléments ---------- */
.opt-modal .modal-box { width: min(520px, 100%); display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.opt-head { background: var(--ink); color: var(--sand); padding: 18px 56px 18px 20px; }
.opt-head h2 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.opt-head p { margin: 4px 0 0; font-size: .86rem; color: var(--sand-3); }
.opt-head .x { background: rgba(235, 218, 198, .15); }
.opt-body { padding: 6px 20px 16px; overflow-y: auto; flex: 1; }
.opt-group { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.opt-group:last-child { border-bottom: 0; }
.opt-group-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.opt-group-h strong { font-weight: 500; }
.opt-group-h .rule { font-size: .78rem; color: var(--taupe); }
.opt-group-h .rule.req { color: var(--warn); }
.opt-group-h .rule.ok { color: var(--ok); }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; background: var(--paper); }
.opt-row.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-row .nm { flex: 1; }
.opt-row .pr { font-size: .86rem; color: var(--taupe-2); font-variant-numeric: tabular-nums; }
.opt-row .mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--sand-3); flex: none; display: flex; align-items: center; justify-content: center; }
.opt-row.multi .mark { border-radius: 6px; }
.opt-row.on .mark { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.opt-row.disabled { opacity: .45; pointer-events: none; }
.opt-row .stepper { display: inline-flex; align-items: center; gap: 6px; }
.opt-row .stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1rem; }
.opt-row .stepper span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.opt-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.opt-foot .qty button { width: 38px; height: 38px; }
.opt-foot .btn { flex: 1; }
.opt-err { color: var(--danger); font-size: .84rem; padding: 0 20px 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 130; background: var(--ink); color: var(--sand); padding: 12px 18px; border-radius: var(--pill); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: all .3s var(--ease); max-width: calc(100% - 32px); font-size: .92rem; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--danger); color: #fff; }
body.has-bottom-nav .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
.opt-row .mark { color: transparent; font-size: .75rem; }
.opt-row.on .mark { color: var(--sand); }
.opt-foot .btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; padding-left: 14px; padding-right: 14px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.cart-list > li { flex-wrap: wrap; }
@media (max-width: 560px) {
  .cart-list > li .grow { flex: 1 1 calc(100% - 70px); }
  .cart-list > li form.qty { margin-left: 64px; }
  .cart-list > li > strong { margin-left: auto; }
}
.btn.is-off { opacity: .5; }
.app-main:has(.page-title) .tb-title { visibility: hidden; }
.topbar-promo { padding-left: 40px; padding-right: 44px; }
.hero-info a { white-space: nowrap; }
.pos-jump { display: none; }
@media (max-width: 1100px) {
  .pos-jump { display: flex; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; justify-content: space-between; align-items: center; background: var(--ink); color: var(--sand); padding: 10px 10px 10px 18px; border-radius: var(--pill); margin-top: 14px; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
}

/* Cartes produits : bouton toujours aligné en bas */
.products { align-items: stretch; }
.product { height: 100%; }
.product .pr { margin-top: auto; padding-top: 4px; }
.product > .btn:last-child { margin-top: 10px; }
/* Vidéo Vimeo / YouTube en fond (couvre tout le header) */
.hero-media { container-type: size; overflow: hidden; }
.hero-media iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-media img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-preview iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.02); border: 0; pointer-events: none; }

/* ---------- Galerie du studio ---------- */
.gallery { --gpad: 16px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 340px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gpad); padding: 4px var(--gpad) 18px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #2a2420; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 10px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 640px) { .gallery { grid-auto-columns: 72vw; } }

/* ---------- Capsules vidéo ---------- */
.capsules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.capsule { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 16; background: #000; cursor: pointer; }
.capsule video { width: 100%; height: 100%; object-fit: cover; display: block; }
.capsule-sound { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,17,15,.55); color: #fff; backdrop-filter: blur(6px); }
.capsule-sound svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .capsules { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62vw; overflow-x: auto; scroll-snap-type: x mandatory; } .capsule { scroll-snap-align: start; } }
td.num, .table .num { white-space: nowrap; }

/* ---------- Coffee bar : commande plus visible ---------- */
.btn-order { gap: .55em; box-shadow: 0 0 0 0 rgba(235, 218, 198, .55); animation: orderPulse 2.6s ease-out infinite; }
.btn-order svg { width: 18px; height: 18px; }
.btn-order .arr { transition: transform .2s ease; }
.btn-order:hover .arr { transform: translateX(4px); }
.btn-order:hover { animation: none; }
@keyframes orderPulse { 0% { box-shadow: 0 0 0 0 rgba(235, 218, 198, .55); } 70% { box-shadow: 0 0 0 14px rgba(235, 218, 198, 0); } 100% { box-shadow: 0 0 0 0 rgba(235, 218, 198, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-order { animation: none; } }
.menu-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 18px; font-size: .84rem; color: #E3DA86; letter-spacing: .02em; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #9BD27A; box-shadow: 0 0 0 0 rgba(155, 210, 122, .6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(155, 210, 122, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(155, 210, 122, 0); } }
button.menu-item { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; padding: 4px 8px; margin: 0 -8px; width: calc(100% + 16px); transition: background .15s ease; }
button.menu-item .add { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; line-height: 1; border: 1px solid rgba(241, 235, 212, .55); color: #F1EBD4; margin-left: 4px; align-self: center; transition: background .15s, color .15s, transform .15s; }
button.menu-item:hover, button.menu-item:focus-visible { background: rgba(241, 235, 212, .12); }
button.menu-item:hover .add, button.menu-item:focus-visible .add { background: #F1EBD4; color: var(--olive-2, #4a4c22); transform: scale(1.1); }
button.menu-item:active { background: rgba(241, 235, 212, .2); }
.menu-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 22px; border-radius: 14px; background: rgba(20, 17, 15, .28); }
.menu-cta strong { display: block; font-weight: 500; }
.menu-cta span { font-size: .88rem; opacity: .85; }
@media (max-width: 720px) { .menu-cta { flex-direction: column; align-items: stretch; text-align: center; } .menu-cta .btn { justify-content: center; } }
.foot-bottom .credit { display: inline-block; margin-top: 6px; } .foot-bottom .credit strong { color: var(--sand); font-weight: 500; }
.att-row .grow { flex: 1 1 170px; min-width: 0; } .att-row .grow .m { overflow-wrap: anywhere; } @media (max-width: 560px) { .att-row .seg { margin-left: 50px; } }
.health-note { margin-top: 6px; font-size: .82rem; color: #8A3B12; background: #FBEBDD; border-radius: 8px; padding: 4px 8px; display: inline-flex; gap: 6px; align-items: flex-start; }

/* ---------- Tarifs : version compacte sur mobile ---------- */
@media (max-width: 640px) {
  #tarifs .sec-head { margin-bottom: 18px; }
  .price-group { margin-bottom: 30px; }
  .price-group-head { margin-bottom: 12px; padding-bottom: 8px; }
  .price-group-head h3 { font-size: 1.12rem; }
  .price-group-head p { font-size: .8rem; line-height: 1.4; }
  .price-cols { gap: 10px; }
  .price, .price.wide, .price:first-child {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
    padding: 14px 16px; border: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark);
    border-radius: 14px; background: rgba(235, 218, 198, .035);
  }
  .price.featured { border-color: rgba(235, 218, 198, .55); background: rgba(235, 218, 198, .08); }
  .price .price-main { gap: 4px; min-width: 0; }
  .price .price-main p { display: none; }
  .price h3, .price.wide h3 { font-size: 1rem; line-height: 1.25; }
  .price-sp { font-size: .6rem; padding: 2px 8px; letter-spacing: .12em; }
  .price .price-buy, .price.wide .price-buy { align-items: flex-end; text-align: right; gap: 2px; min-width: 0; }
  .price .amount { font-size: 1.45rem; letter-spacing: -.02em; }
  .price .amount small { font-size: .62rem; margin-left: 3px; }
  .price .per { font-size: .7rem; line-height: 1.3; max-width: 130px; }
  .price .btn { margin-top: 6px; min-height: 34px; padding: .35em .95em; font-size: .78rem; align-self: flex-end; }
  #tarifs .rules { margin-top: 26px; }
  #tarifs .rules > div { padding-top: 14px; }
  #tarifs .rules p { font-size: .82rem; }
}
@media (max-width: 640px) {
  .price, .price.wide, .price:first-child {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "sp amt" "name amt" "per btn";
    gap: 4px 12px; padding: 13px 15px;
  }
  .price .price-main, .price .price-buy, .price.wide .price-main, .price.wide .price-buy { display: contents; }
  .price .price-sp { grid-area: sp; justify-self: start; }
  .price h3 { grid-area: name; align-self: center; }
  .price .amount { grid-area: amt; justify-self: end; align-self: center; }
  .price .per { grid-area: per; max-width: none; text-align: left; align-self: center; color: var(--sand-3); }
  .price .btn { grid-area: btn; margin-top: 0; justify-self: end; }
  .price-group-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 640px) { .price > p { display: none; } }
@media (max-width: 640px) { .price .amount { font-size: 1.45rem !important; } .price-sp { white-space: nowrap; } .card-ink:has(.price-cols) { padding: 16px 14px; } }
/* Barre panier + toasts : largeur au contenu (évite l'écrasement sur mobile) et pas de chevauchement */
.cart-fab { width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; }
.cart-fab [data-cart-label] { overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; bottom: 86px; }
body.has-bottom-nav .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
/* Équipe : accès par module */
.perm-box { margin: 10px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.perm-h { font-weight: 500; font-size: .9rem; margin-bottom: 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin-bottom: 10px; }
.perm { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.perm:has(input:checked) { border-color: var(--ink); background: #F6EFE6; }
.perm input { margin-top: 3px; accent-color: var(--ink); }
.perm strong { display: block; font-size: .84rem; font-weight: 500; }
.perm small { display: block; font-size: .72rem; color: var(--taupe); line-height: 1.35; }
/* Fiche stock d'un article */
.stock-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.sh-img { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--muted-bg); display: grid; place-items: center; color: var(--taupe); }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-move { border-left: 1px solid var(--line); padding-left: 20px; }
@media (max-width: 980px) { .stock-head { grid-template-columns: 72px minmax(0, 1fr); } .sh-img { width: 72px; height: 72px; } .sh-move { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }
.stock-chart svg { width: 100%; height: 120px; display: block; }
.stock-chart rect { transition: opacity .15s; } .stock-chart rect:hover { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: .3em .85em; border-radius: var(--pill); border: 1px solid var(--line); font-size: .82rem; text-decoration: none; color: var(--taupe-2); background: var(--paper); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.table tr.is-cancelled td { opacity: .55; }
.table tr.is-cancelled td:nth-child(3) .badge { text-decoration: line-through; }
/* Admin · liste des forfaits */
.pk-list { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pk-group { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pk-group-h { padding: 12px 16px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--line); background: #FBF6EF; }
.pk-group-h .muted { margin-left: 6px; letter-spacing: 0; }
.pk-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 64px 120px 56px auto; gap: 12px; align-items: center; padding: 13px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); transition: background .15s; }
.pk-group-h + .pk-row { border-top: 0; }
.pk-row:hover { background: #FBF6EF; }
.pk-row.is-edit { background: #F4EADF; box-shadow: inset 3px 0 0 var(--ink); }
.pk-row.is-off { opacity: .55; }
.pk-title { font-weight: 500; line-height: 1.3; }
.pk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.pk-tags .space-tag { margin-right: 0; white-space: nowrap; }
.pk-flag { display: inline-flex; align-items: center; white-space: nowrap; font-size: .72rem; padding: .15em .6em; border-radius: var(--pill); background: var(--sand); color: var(--ink); }
.pk-flag.off { background: var(--muted-bg); color: var(--taupe); }
.pk-cell { display: flex; flex-direction: column; min-width: 0; }
.pk-cell .k { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe); }
.pk-cell .v { font-size: .95rem; white-space: nowrap; }
.pk-cell .s { font-size: .7rem; color: var(--taupe); line-height: 1.3; }
.pk-price .v { font-weight: 500; }
.pk-edit { justify-self: end; font-size: .78rem; padding: .35em .9em; border: 1px solid var(--line); border-radius: var(--pill); white-space: nowrap; }
.pk-row:hover .pk-edit, .pk-row.is-edit .pk-edit { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.pk-form { position: sticky; top: 84px; }
@media (max-width: 1180px) { .pk-row { grid-template-columns: minmax(0, 1fr) repeat(3, auto); } .pk-row .pk-cell:nth-of-type(5), .pk-row .pk-cell:nth-of-type(3) { display: none; } .pk-edit { display: none; } }
@media (max-width: 860px) { .pk-form { position: static; } }
@media (max-width: 560px) { .pk-row { grid-template-columns: minmax(0, 1fr) auto; } .pk-row .pk-cell { display: none; } .pk-row .pk-cell.pk-price { display: flex; text-align: right; } }
