/*
 * The dashboards' design system (/espace, /admin, /admin/site, /login), 2026-10-14.
 * Inter, warm neutrals, LYA's slate blue (#567385, from the logo) as the one accent,
 * hairline cards, light only (Christophe, 2026-10-14: « remove dark color keep only
 * light »). admin.css, site-editor.css and
 * login.css are layered on it. Every class the scripts write is styled here or there:
 * renaming one means changing dashboard.js / admin.js too.
 */

/* Inter (SIL Open Font License), served from here like the public site's fonts:
   @fontsource-variable/inter 5.2.8, weights 100–900, latin and latin-ext. */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin-ext.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:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin.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}

/* ------------------------------------------------------------------ tokens */
:root{
  color-scheme:light;
  --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
  --sidebar-w:252px;
  --radius-sm:6px;--radius:8px;--radius-lg:12px;--radius-xl:16px;

  --bg:#f9f9f8;--bg-sidebar:#f4f4f2;
  --surface:#fff;--surface-2:#fafaf9;--surface-3:#f1f0ee;
  --hover:rgba(28,25,23,.045);--active:rgba(28,25,23,.075);
  --border:#e7e5e2;--border-strong:#d6d3cf;--border-subtle:#f0eeeb;
  --text:#1c1917;--text-2:#57534e;--text-3:#78716c;
  --accent:#567385;--accent-hover:#465f6e;--accent-subtle:rgba(86,115,133,.08);--accent-border:rgba(86,115,133,.28);
  --ring:0 0 0 3px rgba(86,115,133,.22);
  --cream:#efe0cd;
  --primary:#1c1917;--primary-hover:#35312e;--on-primary:#fafaf9;
  --green:#15803d;--green-bg:#eefaf2;--green-dot:#22a35a;--green-border:#cbe9d6;
  --amber:#995807;--amber-bg:#fdf6e8;--amber-dot:#e0960b;--amber-border:#f1ddb0;
  --red:#b42318;--red-bg:#fdf1f0;--red-dot:#e5484d;--red-border:#f4cdca;
  --blue:#1d5bb8;--blue-bg:#eff5fe;--blue-dot:#3e83e6;--blue-border:#cddff7;
  --grey:#57534e;--grey-bg:#f1f0ee;--grey-dot:#a8a29e;--grey-border:#e2dfdb;
  --shadow-xs:0 1px 2px rgba(28,25,23,.05);
  --shadow-sm:0 1px 2px rgba(28,25,23,.04),0 2px 8px -2px rgba(28,25,23,.07);
  --shadow-lg:0 24px 64px -16px rgba(28,25,23,.28),0 8px 24px -8px rgba(28,25,23,.12);
  --scrim:rgba(20,18,16,.42);
  --toast-bg:#1c1917;--toast-text:#fafaf9;
}

/* -------------------------------------------------------------------- base */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 14px/1.5 var(--font);font-feature-settings:"cv11","ss03";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
h1,h2,h3{margin:0;color:var(--text);font-weight:600;letter-spacing:-.011em}
p{margin:0}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
svg{flex:none}
::selection{background:rgba(86,115,133,.22)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button:focus-visible,a:focus-visible{outline-offset:2px}

/* ------------------------------------------------------------------- shell */
.app-shell{min-height:100vh;min-height:100dvh}
.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:var(--sidebar-w);display:flex;flex-direction:column;background:var(--bg-sidebar);border-right:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:10px;margin:14px 12px 8px;padding:6px;border-radius:var(--radius);text-decoration:none;color:var(--text)}
.brand:hover{background:var(--hover)}
.brand-mark{width:30px;height:30px;border-radius:8px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.brand-text strong{font-size:13.5px;font-weight:600;letter-spacing:-.01em}
.brand-text small{color:var(--text-3);font-size:12px}
.nav{display:flex;flex:1;flex-direction:column;gap:1px;padding:8px 12px;overflow-y:auto}
.nav-label{margin:14px 8px 4px;color:var(--text-3);font-size:11.5px;font-weight:500}
.nav-item{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:6px 10px;border:0;border-radius:var(--radius);background:transparent;color:var(--text-2);cursor:pointer;font-size:13.5px;font-weight:500;text-align:left;text-decoration:none;transition:background-color .12s,color .12s}
.nav-item svg{width:17px;height:17px;color:var(--text-3);transition:color .12s}
.nav-item:hover{background:var(--hover);color:var(--text)}
.nav-item:hover svg{color:var(--text-2)}
.nav-item.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-xs),0 0 0 1px var(--border)}
.nav-item.active svg{color:var(--accent)}
.nav-item .badge,.badge{margin-left:auto;min-width:20px;padding:0 6px;border-radius:999px;background:var(--accent-subtle);box-shadow:inset 0 0 0 1px var(--accent-border);color:var(--accent);font-size:11.5px;font-weight:600;line-height:19px;text-align:center;font-variant-numeric:tabular-nums}
.account{display:flex;align-items:center;gap:10px;margin:8px 12px 12px;padding:10px 6px 0;border-top:1px solid var(--border)}
.account-text{display:flex;flex:1;flex-direction:column;min-width:0;line-height:1.3}
.account-text strong{overflow:hidden;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.account-text small{color:var(--text-3);font-size:12px}
.account form{margin:0}
.avatar{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:linear-gradient(140deg,#6d8a9c,#4a6475);color:#f6efe5;font-size:11.5px;font-weight:600;letter-spacing:.02em}
.avatar.large{width:56px;height:56px;font-size:18px}
.icon-button{display:inline-grid;place-items:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:var(--radius);background:transparent;color:var(--text-3);cursor:pointer;transition:background-color .12s,color .12s}
.icon-button:hover{background:var(--hover);color:var(--text)}
.icon-button svg{width:17px;height:17px}

.content{min-width:0;margin-left:var(--sidebar-w)}
.view{display:none;max-width:1240px;margin:0 auto;padding:36px 40px 72px;scroll-margin-top:120px}
.view.active{display:block;animation:view-in .18s ease-out}
/* « Retour à l'administration » (2026-10-19): above the view, on its left edge. */
.admin-back-row{max-width:1240px;margin:0 auto;padding:24px 40px 0}
.admin-back-row ~ .view{padding-top:20px}
.admin-back svg{width:15px;height:15px}
/* Opacity only: a transform on the view would make it the frame of the fixed « Enregistrer » bar. */
@keyframes view-in{from{opacity:0}to{opacity:1}}

/* The phone's bar and drawer (shell.js opens and closes it). */
.topbar{display:none}
.scrim{display:none}

/* ------------------------------------------------------------- page header */
.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin-bottom:24px}
.page-header > div:first-child{min-width:0;flex:1 1 320px}
.page-header h1{font-size:24px;line-height:1.25;letter-spacing:-.022em}
.page-header p{max-width:640px;margin-top:6px;color:var(--text-2);font-size:14px}
.page-header form{margin:0}

/* ----------------------------------------------------------------- buttons */
.button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 14px;border:1px solid transparent;border-radius:var(--radius);cursor:pointer;font-size:13.5px;font-weight:500;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s}
.button svg{width:16px;height:16px;margin-left:-2px}
.button-dark{background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-xs),inset 0 1px 0 rgba(255,255,255,.08)}
.button-dark:hover{background:var(--primary-hover)}
.button-light{border-color:var(--border-strong);background:var(--surface);color:var(--text);box-shadow:var(--shadow-xs)}
.button-light:hover{background:var(--surface-2);border-color:var(--text-3)}
.button.danger,.button.danger-light{border-color:var(--red-border);background:var(--surface);color:var(--red);box-shadow:var(--shadow-xs)}
.button.danger:hover,.button.danger-light:hover{background:var(--red-bg)}
.button:focus-visible{outline:0;box-shadow:var(--ring)}
.button:disabled{opacity:.5;cursor:not-allowed}
/* js/busy.js: a turning ring on the button whose request is on its way. It
   takes the place of the button's icon; the button keeps its colour. */
@keyframes busy-turn{to{transform:rotate(360deg)}}
button[data-busy]::before,.upload-button.busy::before{content:"";display:inline-block;flex:none;box-sizing:border-box;width:14px;height:14px;margin-right:7px;vertical-align:-2px;border:2px solid rgba(128,128,128,.3);border-color:color-mix(in srgb,currentColor 25%,transparent);border-top-color:currentColor;border-radius:50%;animation:busy-turn .7s linear infinite}
.button[data-busy]::before,.upload-button.busy::before{margin-right:0}
button[data-busy] svg{display:none}
.icon-button[data-busy]::before{margin:0}
button[data-busy],button[data-busy]:disabled{opacity:1;cursor:progress}
.link-button{padding:0;border:0;background:none;color:var(--red);cursor:pointer;font-size:12.5px;font-weight:500}
.link-button:hover{text-decoration:underline;text-underline-offset:3px}

/* ------------------------------------------------------------------- forms */
input:not([type]),input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],input[type=url],input[type=number],select,textarea{
  display:block;width:100%;min-height:36px;padding:7px 11px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:14px;line-height:1.4;box-shadow:var(--shadow-xs);transition:border-color .12s,box-shadow .12s;appearance:none;-webkit-appearance:none}
textarea{min-height:72px;padding:9px 11px;line-height:1.55;resize:vertical}
input::placeholder,textarea::placeholder{color:var(--text-3);opacity:.8}
/* js/password-eye.js: the eye inside a password field. Edge's own is hidden, or there are two. */
.password-field{position:relative}
.password-field input{padding-right:40px}
input::-ms-reveal{display:none}
.password-toggle{position:absolute;top:0;right:0;bottom:0;display:grid;place-items:center;width:38px;padding:0;border:0;border-radius:0 var(--radius) var(--radius) 0;background:none;color:var(--text-3);cursor:pointer;transition:color .12s}
.password-toggle:hover{color:var(--text)}
.password-toggle:focus-visible{outline-offset:-4px;border-radius:var(--radius)}
.password-toggle svg{width:17px;height:17px}
.password-toggle .eye-off,.password-toggle[aria-pressed=true] .eye{display:none}
.password-toggle[aria-pressed=true] .eye-off{display:block}
input:hover,select:hover,textarea:hover{border-color:var(--text-3)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:var(--ring)}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
/* js/select.js: a select's open list, drawn here instead of by the operating system. */
.select-list{position:fixed;z-index:80;box-sizing:border-box;max-width:calc(100vw - 16px);margin:0;padding:4px;overflow:auto;overscroll-behavior:contain;list-style:none;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-lg);color:var(--text);font:400 13.5px/1.35 var(--font);animation:select-in .12s ease-out}
.select-list.up{animation-name:select-in-up}
@keyframes select-in{from{opacity:0;transform:translateY(-3px)}}
@keyframes select-in-up{from{opacity:0;transform:translateY(3px)}}
.select-list [role=option]{position:relative;display:flex;align-items:center;min-height:32px;padding:6px 32px 6px 10px;border-radius:var(--radius-sm);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}
.select-list [role=option].in-group{padding-left:18px}
.select-list [role=option].active{background:var(--hover)}
.select-list [role=option][aria-selected=true]{font-weight:500}
.select-list [role=option][aria-selected=true]::after{content:"";position:absolute;top:50%;right:10px;width:14px;height:14px;margin-top:-7px;background:var(--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.select-list [role=option][aria-disabled=true]{color:var(--text-3);cursor:default}
.select-list [role=option][aria-disabled=true].active{background:none}
.select-list .select-group{padding:10px 10px 4px;color:var(--text-3);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.select-list .select-group:first-child{padding-top:6px}
.select-list .select-empty{padding:8px 10px;color:var(--text-3)}
select[aria-expanded=true]{border-color:var(--accent);box-shadow:var(--ring);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 14 5-5 5 5'/%3E%3C/svg%3E")}
@media (pointer:coarse){.select-list [role=option]{min-height:40px}}
@media (prefers-reduced-motion:reduce){.select-list{animation:none}}
select{padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;cursor:pointer}
input[type=color]{display:block;width:100%;height:36px;padding:3px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);cursor:pointer;box-shadow:var(--shadow-xs)}
input[type=color]::-webkit-color-swatch-wrapper{padding:0}
input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
input[type=color]::-moz-color-swatch{border:0;border-radius:5px}
input[type=file]{display:block;width:100%;color:var(--text-2);font-size:13px}
input[type=file]::file-selector-button{margin-right:10px;padding:6px 12px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text);cursor:pointer;font:500 13px var(--font)}
input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;width:16px;height:16px;flex:none;margin:0;border:1px solid var(--border-strong);border-radius:4px;background:var(--surface);cursor:pointer;box-shadow:var(--shadow-xs);transition:background-color .12s,border-color .12s}
input[type=checkbox]::before{content:"";width:10px;height:10px;transform:scale(0);transition:transform .1s ease-in-out;background:var(--on-primary);clip-path:polygon(14% 44%,0 59%,40% 100%,100% 22%,85% 8%,39% 69%)}
input[type=checkbox]:checked{border-color:var(--primary);background:var(--primary)}
input[type=checkbox]:checked::before{transform:scale(1)}
input[type=checkbox]:focus-visible{outline:0;box-shadow:var(--ring)}
/* A checkbox drawn as a switch. */
input[type=checkbox].switch{width:32px;height:18px;border-radius:999px;border:0;background:var(--border-strong);box-shadow:inset 0 1px 2px rgba(0,0,0,.08);place-content:center start;padding:2px}
input[type=checkbox].switch::before{width:14px;height:14px;border-radius:50%;background:#fff;clip-path:none;transform:none;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s ease}
input[type=checkbox].switch:checked{background:var(--accent)}
input[type=checkbox].switch:checked::before{transform:translateX(14px)}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.form-grid .full{grid-column:1/-1}
.form-grid label,dialog label,.search-panel label,.filters label{display:flex;flex-direction:column;gap:6px;color:var(--text);font-size:13px;font-weight:500}
.form-grid .check,.check-line{flex-direction:row;align-items:center;gap:10px;color:var(--text);font-size:13.5px;font-weight:400;cursor:pointer}
.attention{border-color:var(--amber-border)!important;background-color:var(--amber-bg)!important}
.panel-note{margin-top:10px;color:var(--text-3);font-size:12.5px;line-height:1.55}
.form-error{margin-top:14px;padding:9px 12px;border:1px solid var(--red-border);border-radius:var(--radius);background:var(--red-bg);color:var(--red);font-size:13px;line-height:1.5}
.field-title{margin:20px 0 0;color:var(--text);font-size:13px;font-weight:600}
.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:16px}
/* A form that ends its card gets the card's footer: a quiet band, buttons on the right. */
.panel > form:last-child > .form-actions:last-child,.panel > form:last-child > .form-actions.inline:last-child{margin:20px -20px -20px;padding:12px 20px;border-top:1px solid var(--border);border-radius:0 0 var(--radius-lg) var(--radius-lg);background:var(--surface-2)}

/* ------------------------------------------------------------------- cards */
.panel,.establishment-card{position:relative;padding:20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs)}
.panel h3,.panel-heading h3{font-size:14.5px;letter-spacing:-.006em}
.panel-sub,.panel > h3 + .panel-note{margin-top:3px;color:var(--text-3);font-size:13px;line-height:1.5}
.panel-sub + .form-grid,.panel-sub + form > .form-grid:first-child{margin-top:18px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.notice{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;border:1px solid var(--accent-border);border-radius:var(--radius);background:var(--accent-subtle);color:var(--text-2);font-size:13px;line-height:1.55}
.notice svg{width:16px;height:16px;margin-top:2px;color:var(--accent)}
.error-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:12px 14px;border:1px solid var(--red-border);border-radius:var(--radius);background:var(--red-bg);color:var(--red);font-size:13.5px}
.empty-card{margin-top:16px;padding:40px 24px;text-align:center}
.empty-card h3{font-size:15px}
.empty-card p{max-width:480px;margin:8px auto 0;color:var(--text-2);font-size:13.5px;line-height:1.6}

/* -------------------------------------------------------- pills and chips */
.pill,.establishment-tab em{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:999px;background:var(--grey-bg);box-shadow:inset 0 0 0 1px var(--grey-border);color:var(--grey);font-size:12px;font-style:normal;font-weight:500;line-height:1;white-space:nowrap}
.pill::before,.establishment-tab em::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--grey-dot)}
.pill:empty{display:none}
.pill.green,.establishment-tab em.tone-green{background:var(--green-bg);box-shadow:inset 0 0 0 1px var(--green-border);color:var(--green)}
.pill.green::before,.establishment-tab em.tone-green::before{background:var(--green-dot)}
.pill.amber,.establishment-tab em.tone-amber{background:var(--amber-bg);box-shadow:inset 0 0 0 1px var(--amber-border);color:var(--amber)}
.pill.amber::before,.establishment-tab em.tone-amber::before{background:var(--amber-dot)}
.pill.red,.establishment-tab em.tone-red{background:var(--red-bg);box-shadow:inset 0 0 0 1px var(--red-border);color:var(--red)}
.pill.red::before,.establishment-tab em.tone-red::before{background:var(--red-dot)}
.pill.blue{background:var(--blue-bg);box-shadow:inset 0 0 0 1px var(--blue-border);color:var(--blue)}
.pill.blue::before{background:var(--blue-dot)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.chips span{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:var(--radius-sm);background:var(--surface-3);color:var(--text-2);font-size:12.5px;font-weight:500}

/* Segmented control. */
.periods{display:inline-flex;gap:2px;padding:2px;border-radius:var(--radius);background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border-subtle)}
.periods button{min-height:28px;padding:0 11px;border:0;border-radius:6px;background:transparent;color:var(--text-2);cursor:pointer;font-size:13px;font-weight:500;white-space:nowrap;transition:background-color .12s,color .12s}
.periods button:hover{color:var(--text)}
.periods button.selected{background:var(--surface);color:var(--text);box-shadow:var(--shadow-xs),0 0 0 1px var(--border)}

/* --------------------------------------------------- the owner's venues */
.establishment-tabs{display:flex;gap:8px;margin-bottom:16px;overflow-x:auto;scrollbar-width:none;padding:1px}
.establishment-tabs::-webkit-scrollbar{display:none}
.establishment-tab{display:flex;align-items:center;gap:10px;min-width:240px;max-width:320px;flex:0 0 auto;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);color:var(--text);cursor:pointer;text-align:left;box-shadow:var(--shadow-xs);transition:border-color .12s,box-shadow .12s}
.establishment-tab:hover{border-color:var(--border-strong)}
.establishment-tab.selected{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.establishment-tab span:nth-child(2){flex:1;min-width:0}
.establishment-tab b{display:block;overflow:hidden;font-size:13.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.establishment-tab small{display:block;color:var(--text-3);font-size:12px}
.mini-mark,.place-mark{display:grid;place-items:center;flex:none;overflow:hidden;font-weight:600;letter-spacing:.02em}
.mini-mark{width:32px;height:32px;border-radius:8px;font-size:11.5px}
.mustard{background:var(--cream);color:#567385}
.purple{background:#567385;color:var(--cream)}
.pink{background:#e9d2d0;color:#7a4b49}

.notice + .establishment-card,#venue > .notice{margin-bottom:16px}
.establishment-summary{display:flex;align-items:center;gap:14px}
.place-mark{width:48px;height:48px;border-radius:10px;font-size:15px;box-shadow:0 0 0 1px rgba(0,0,0,.05)}
.place-mark img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.establishment-summary > div:nth-child(2){min-width:0}
.title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.title-row h2{font-size:19px;letter-spacing:-.018em}
.title-row p,.establishment-summary p{margin-top:2px;color:var(--text-2);font-size:13.5px}
.completion{margin-left:auto;text-align:right;white-space:nowrap}
.completion span{display:block;color:var(--text-3);font-size:12.5px}
.completion b{display:block;font-size:22px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.progress{height:6px;margin-top:16px;overflow:hidden;border-radius:999px;background:var(--surface-3)}
.progress i{display:block;height:100%;border-radius:999px;background:var(--accent);transition:width .4s ease}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tags:empty{display:none}
.tags span{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 10px;border:1px dashed var(--border-strong);border-radius:var(--radius-sm);color:var(--text-2);font-size:12.5px}
.tags span::before{content:"";width:9px;height:9px;border:1.5px solid var(--text-3);border-radius:50%}

/* Three figures in one strip, hairlines between them. */
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs)}
.metric{position:relative;display:flex;flex-direction:column;gap:2px;padding:16px 20px;box-shadow:1px 0 0 var(--border),0 1px 0 var(--border)}
.metric span{color:var(--text-2);font-size:13px;font-weight:500}
.metric strong{margin-top:4px;font-size:24px;font-weight:600;letter-spacing:-.022em;font-variant-numeric:tabular-nums;line-height:1.2}
.metric small{color:var(--text-3);font-size:12px}
.metric-date{font-size:18px!important;line-height:1.55!important}
.booking-commission{margin-top:4px;color:var(--text-2);font-size:13px;font-variant-numeric:tabular-nums}
.booking-note{margin:12px 0 0;color:var(--text-3);font-size:12.5px}

.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;margin-top:24px;align-items:start}
.left-column,.right-column{display:flex;flex-direction:column;gap:16px;min-width:0}

/* Photos. */
.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.photo-items{display:contents}
.photo-card{display:flex;flex-direction:column;gap:6px;min-width:0}
.photo-card-actions{display:flex;gap:6px}
.photo-card-actions button{display:inline-flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:32px;padding:0 8px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);cursor:pointer;font-size:12.5px;font-weight:500;line-height:1.2;text-align:center;box-shadow:var(--shadow-xs)}
.photo-card-actions button:hover{background:var(--surface-2)}
.photo-card-actions .remove{flex:0 0 34px;margin-left:auto;padding:0;color:var(--red)}
.photo-card-actions .remove:hover{border-color:var(--red-border);background:var(--red-bg)}
.photo-card-actions svg{width:16px;height:16px}
.photo-card-actions button:disabled{opacity:.6;cursor:progress}
.photo-grid:empty{display:none}
.photo-grid figure{position:relative;margin:0;aspect-ratio:1;overflow:hidden;border-radius:var(--radius);background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border)}
.photo-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.photo-grid figure:hover img{transform:scale(1.03)}
.photo-grid figcaption{position:absolute;top:6px;left:6px;padding:2px 7px;border-radius:999px;background:rgba(20,18,16,.62);color:#fff;font-size:11px;font-weight:500;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.photo-actions{position:absolute;right:6px;bottom:6px;left:6px;display:flex;justify-content:flex-end;gap:4px}
.photo-actions button{padding:4px 8px;border:0;border-radius:6px;background:rgba(255,255,255,.92);color:#1c1917;cursor:pointer;font-size:11.5px;font-weight:500;box-shadow:0 1px 3px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.photo-actions button:hover{background:#fff}
.photo-actions button.remove{color:#b42318}
.photo-actions button:disabled{opacity:.6;cursor:progress}
.upload-button{min-height:30px;padding:0 11px;font-size:13px}
.upload-button.busy{cursor:progress;pointer-events:none}

/* Facts. */
.facts{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;margin:14px 0 0;font-size:13.5px}
.facts dt{color:var(--text-3)}
.facts dd{margin:0;min-width:0;overflow-wrap:anywhere}

/* Map. */
.map{height:260px;margin:16px 0 10px;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-3);z-index:0}
.map-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}
.map-tools .button{min-height:30px;font-size:13px}
.leaflet-container{font-family:var(--font)!important}

.form-actions.inline{gap:8px}

/* Category pickers. */
.category-list{display:grid;gap:8px;max-height:420px;margin-top:14px;overflow:auto;padding:1px}
.category-group{padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.category-group label{display:flex;align-items:center;gap:9px;color:var(--text);font-size:13.5px;cursor:pointer}
.category-group > label{font-weight:600}
.category-group .subs{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 0 25px}
.category-group .subs label{font-weight:400;color:var(--text-2)}
.category-group small{color:var(--text-3);font-weight:400}

#create{margin-bottom:16px}

/* The owner's venue page (2026-10-17, « easier for establishments, they are
   not friendly with tech »): one column, what is missing first, four numbered
   steps, one save bar, the Lya team's tools folded at the end. */
/* One centred column, the page header with it: no empty right half. */
.venue-head{position:relative;padding:22px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs)}
.venue-updated{margin-top:2px;color:var(--text-3);font-size:12.5px}
.progress-line{display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;margin-top:22px;font-size:16px}
.progress-line span{color:var(--text-2);font-size:14px}
.venue-head .progress{height:8px;margin-top:10px}
.todo-list{display:grid;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.todo-list:empty{display:none}
.todo-list li{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 14px;border:1px solid var(--amber-border);border-radius:var(--radius);background:var(--amber-bg);font-size:14.5px}
.todo-list li::before{content:"";width:10px;height:10px;flex:none;border:2px solid var(--amber-dot);border-radius:50%}
.todo-list li span{flex:1;min-width:0}
.todo-list li .todo-who{flex:none;color:var(--text-3);font-size:12.5px}
.todo-list .button{min-height:34px}
.venue-head .booking-note{margin-top:14px;color:var(--text-2);font-size:13.5px}
.link-quiet{margin-top:12px;padding:0;border:0;background:none;color:var(--accent);cursor:pointer;font-size:13px;font-weight:500}
.link-quiet:hover{text-decoration:underline;text-underline-offset:3px}
.step{margin-top:16px;padding:22px}
.step h3{display:flex;align-items:center;gap:10px;font-size:16.5px}
.step-number{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--primary);color:var(--on-primary);font-size:13.5px;font-weight:600}
.step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.step-head .panel-sub{margin-top:3px;margin-left:38px;font-size:13.5px}
.photo-add{width:38px;min-height:38px;flex:none;padding:0}
.photo-add svg{width:19px;height:19px}
.photo-add.busy{cursor:progress;pointer-events:none}
.photo-add.busy svg{display:none}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Step 2's languages (2026-10-17): a segmented switch at the top right. */
.lang-tabs{display:inline-flex;flex:none;gap:2px;padding:3px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2)}
.lang-tab{position:relative;min-width:42px;min-height:30px;padding:0 10px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2);cursor:pointer;font-size:12.5px;font-weight:600;letter-spacing:.04em;transition:background-color .12s,color .12s,box-shadow .12s}
.lang-tab:hover{color:var(--text)}
.lang-tab[aria-selected="true"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-xs),0 0 0 1px var(--border)}
.lang-tab.missing{background:var(--amber-bg);color:var(--amber);box-shadow:inset 0 0 0 1px var(--amber-border)}
.lang-tab.missing[aria-selected="true"]{box-shadow:var(--shadow-xs),inset 0 0 0 1px var(--amber-dot)}
.lang-tab.missing::after{content:"";position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:var(--amber-dot)}
.lang-panels{margin-top:16px}
.lang-panel{display:flex;flex-direction:column;gap:6px;color:var(--text);font-size:13px;font-weight:500}
.lang-name{display:flex;align-items:baseline;gap:4px}
.optional{margin-left:4px;color:var(--text-3);font-size:12px;font-weight:400}
.badge.warn{background:var(--amber-bg);box-shadow:inset 0 0 0 1px var(--amber-border);color:var(--amber)}
/* « Horaires d'ouverture »: the week grid (2026-10-17, js/hours.js). */
.hours{display:grid;gap:10px}
.hours [data-hours-panel="grid"]{display:grid;gap:10px}
.field-label{color:var(--text);font-size:13px;font-weight:500}
.hours-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.lang-tab.wide{min-width:0;padding:0 12px;letter-spacing:0}
.hours-hint{margin:0;color:var(--text-3);font-size:12.5px;font-weight:400;line-height:1.5}
.hours-note{margin:0;padding:8px 10px;border:1px solid var(--amber-border);border-radius:var(--radius);background:var(--amber-bg);color:var(--amber);font-size:12.5px}
.hours-grid{display:grid;grid-template-columns:40px repeat(48,minmax(0,1fr)) 118px;grid-auto-rows:28px;row-gap:4px;margin-top:4px;user-select:none;-webkit-user-select:none;touch-action:none}
.hours-grid > span:first-child{grid-row:1}
.hours-hour{align-self:end;padding-left:2px;border-left:1px solid var(--border);color:var(--text-3);font-size:10.5px;font-variant-numeric:tabular-nums;line-height:1.2}
.hours-day{align-self:center;color:var(--text-2);font-size:12.5px;font-weight:600}
.hours-cell{background:var(--surface-3);cursor:crosshair;transition:background-color .06s}
.hours-cell.night{background:color-mix(in srgb,var(--surface-3) 80%,var(--text-3))}
.hours-cell.hour{box-shadow:inset 1px 0 0 var(--surface)}
.hours-cell.on{background:var(--accent)}
.hours-cell.on.hour{box-shadow:inset 1px 0 0 color-mix(in srgb,var(--accent) 70%,#fff)}
.hours-sum{align-self:center;overflow:hidden;padding-left:12px;color:var(--text);font-size:12px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.hours-sum.closed{color:var(--text-3)}
.hours-tools{display:flex;flex-wrap:wrap;gap:6px}
.chip{min-height:30px;padding:0 11px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);color:var(--text-2);cursor:pointer;font-size:12.5px;font-weight:500;transition:background-color .12s,color .12s,border-color .12s}
.chip:hover{border-color:var(--text-3);color:var(--text)}
.hours [data-hours-panel="text"]{display:flex;flex-direction:column;gap:6px}
.hours-preview{padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2)}
.hours-preview span{display:block;margin-bottom:4px;color:var(--text-3);font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.hours-preview p{margin:0;color:var(--text);font-size:13.5px;line-height:1.55;white-space:pre-line}
.hours-preview p.empty{color:var(--text-3)}
@media (max-width:640px){
  .hours-grid{grid-template-columns:34px repeat(48,minmax(0,1fr));grid-auto-rows:30px}
  .hours-sum{display:none}
  .hours-hour.minor{visibility:hidden}
}
@media (max-width:640px){
  .step-head{flex-wrap:wrap}
  .step-head .lang-tabs{margin-left:38px}
}
.step > .panel-sub{margin-left:38px;font-size:13.5px}
.step .form-grid label{font-size:14px}
.step input:not([type=checkbox]),.step textarea{font-size:15px}
.step input:not([type=checkbox]){min-height:42px}
details.more{margin-top:14px}
details.more > summary{width:fit-content;color:var(--accent);cursor:pointer;font-size:13.5px;font-weight:500}
details.more > .form-grid{margin-top:12px}
.flash{animation:flash 1.8s ease-out}
@keyframes flash{0%,45%{box-shadow:0 0 0 4px rgba(86,115,133,.35)}100%{box-shadow:none}}
.save-bar{position:sticky;bottom:16px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:10px 12px;flex-wrap:wrap;margin-top:16px;padding:12px 14px 12px 18px;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-lg)}
.save-bar > span{font-size:14px;font-weight:500}
.save-actions{display:flex;gap:8px}
.save-actions .button{min-height:38px;padding:0 16px;font-size:14px}
.save-bar .form-error{flex-basis:100%;margin:0}
/* The partner space's pages, 2026-10-18 (the owner: « same margin and padding … two sections
   in the same line »): every view the same width (.view, 1240), and a main column with a
   summary column beside it; stacked under 1180 px, the summary first where it says so. */
.split{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"main side";gap:24px;align-items:start}
.split-main{grid-area:main;min-width:0}
.split-side{grid-area:side;position:sticky;top:24px;display:grid;gap:16px;min-width:0}
.split-main > .panel:first-child,.split-main > form > .step:first-child,.split-main > .tickets:first-child{margin-top:0}
.side-card{padding:18px}
.side-title{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--text-2);letter-spacing:.02em;text-transform:uppercase}
.side-filter{display:grid;gap:2px}
.side-filter button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:0 12px;border:0;border-radius:var(--radius);background:transparent;color:var(--text-2);cursor:pointer;font-size:14px;font-weight:500;text-align:left}
.side-filter button:hover{background:var(--hover);color:var(--text)}
.side-filter button.selected{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--border)}
.side-filter b{min-width:20px;color:var(--text-3);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.split-side .venue-head{padding:20px}
.split-side .save-bar{position:static;margin:0;box-shadow:var(--shadow-xs)}
.split-side .save-bar:not(.dirty) > span{color:var(--text-3);font-weight:400}
.split-side .save-bar .save-actions{margin-left:auto}
.split-side .save-bar #save-submit:disabled{opacity:.45;cursor:default}
/* The fiche's right column (2026-10-19): the commission first, scrolling away with
   the page; the summary and « Enregistrer » under it stay in view (the column
   stretches to the row so its sticky part has room to stick). */
#venue .split-side{position:static;align-self:stretch;display:flex;flex-direction:column;gap:16px}
#venue .side-sticky{position:sticky;top:24px;display:grid;gap:16px}
.commission-panel{padding:20px;border-color:var(--border-strong)}
.commission-panel .form-grid{grid-template-columns:minmax(0,1fr) 96px;gap:12px}
/* A percentage has no currency: its box takes the whole line. */
.commission-panel #commission-amount:has(+ #commission-currency[hidden]){grid-column:1 / -1}
@media (max-width:1180px){
  /* Stacked: the fiche's summary first, then the commission. */
  #venue .side-sticky{position:static;order:-1}
  .split{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "side"}
  .split.side-first{grid-template-areas:"side" "main"}
  .split-side{position:static}
  /* On a narrower screen « Enregistrer » is the bar at the foot of the screen again. */
  .split-side .save-bar{position:fixed;z-index:20;left:calc(var(--sidebar-w) + 24px);right:24px;bottom:16px;box-shadow:var(--shadow-lg)}
  .split-side .save-bar:not(.dirty){display:none}
}
@media (max-width:900px){
  .split-side .save-bar{left:16px;right:16px;bottom:calc(10px + env(safe-area-inset-bottom))}
}
.team-tools{margin-top:28px;border:1px dashed var(--border-strong);border-radius:var(--radius-lg)}
.team-tools > summary{padding:14px 18px;color:var(--text-2);cursor:pointer;font-size:14px;font-weight:500}
.team-tools > summary:hover{color:var(--text)}
.team-tools[open] > summary{border-bottom:1px dashed var(--border-strong)}
.team-grid{display:grid;gap:16px;padding:16px}

/* Bon plan. */

/* Search (the Lya team opens a venue by name). */
.search-panel{margin-bottom:16px;padding:16px}
.search-panel > label{margin-bottom:8px;color:var(--text-2);font-size:13px}
.search-field{position:relative;display:block}
.search-field > svg{position:absolute;top:50%;left:13px;width:17px;height:17px;transform:translateY(-50%);color:var(--text-3);pointer-events:none}
.search-field input{min-height:44px;padding-left:40px;padding-right:44px;font-size:15px}
.search-field kbd{position:absolute;top:50%;right:10px;transform:translateY(-50%)}
kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border:1px solid var(--border);border-bottom-width:2px;border-radius:5px;background:var(--surface-2);color:var(--text-3);font:500 11.5px var(--mono)}
.hits{display:flex;flex-direction:column;gap:2px;max-height:360px;margin-top:8px;overflow:auto}
.hits:empty{display:none}
.hit{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 12px;border:0;border-radius:var(--radius);background:transparent;color:var(--text);cursor:pointer;font-size:14px;text-align:left}
.hit b{overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.hit small{flex:none;color:var(--text-3);font-size:12.5px;white-space:nowrap}
.hit:hover,.hit:focus-visible{outline:0;background:var(--hover)}
.hit:focus-visible{box-shadow:inset 0 0 0 1px var(--accent-border)}

/* Requests, tickets, visits. */
.tickets{display:grid;gap:10px;margin-top:14px}
.tickets:empty{display:none}
.ticket{padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs)}
.panel .ticket{box-shadow:none}
.ticket header{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap}
.ticket header b{font-size:14px;font-weight:600}
.ticket header small{color:var(--text-3);font-size:12.5px}
.ticket header .pill{margin-left:auto}
.ticket p{margin-top:8px;color:var(--text-2);font-size:13.5px;line-height:1.6;white-space:pre-line}
.ticket .reply{margin-top:12px;padding:10px 12px;border-left:2px solid var(--accent);border-radius:0 var(--radius) var(--radius) 0;background:var(--accent-subtle)}
.ticket .reply b{display:block;margin-bottom:2px;color:var(--text);font-size:12.5px;font-weight:600}
.ticket .reply p{margin-top:0}
.visit-photo{display:block;width:100%;max-height:200px;margin-top:10px;border-radius:var(--radius);object-fit:cover}
.ticket .actions-line{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:12.5px}
.ticket .actions-line a{color:var(--accent);font-weight:500;text-decoration:none}
.booking-when{margin-top:8px;font-size:15px;font-weight:600;letter-spacing:-.01em}
.booking-when::first-letter{text-transform:uppercase}
.booking-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
/* A request's card opens its page (2026-10-19); the page itself: the request, who asked, the answer. */
.ticket-link{cursor:pointer;transition:border-color .15s,box-shadow .15s}
.ticket-link:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.ticket-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.booking-guest{margin-top:4px;font-size:13.5px;font-weight:500;overflow-wrap:anywhere}
.booking-actions .ticket-more{margin-right:auto;align-self:center;color:var(--accent);font-size:13px;font-weight:500;text-decoration:none}
.booking-actions .ticket-more:hover{text-decoration:underline}
.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;color:var(--text-2);font-size:13.5px;font-weight:500;text-decoration:none}
.back-link:hover{color:var(--text)}
.back-link svg{width:15px;height:15px}
.booking-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
.booking-card-head > div{min-width:0}
.booking-card-head h2{font-size:18px;line-height:1.3;letter-spacing:-.015em;overflow-wrap:anywhere}
.booking-card-head small{display:block;margin-top:2px;color:var(--text-3);font-size:13px}
.booking-card .booking-when{margin-top:16px;font-size:20px}
.booking-note-block{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}
.booking-note-block h3{color:var(--text-2);font-size:13px}
.booking-note-block p{margin-top:6px;font-size:14px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.booking-note-block p.muted,.guest-line.muted{color:var(--text-3)}
.guest-name{font-size:16px;font-weight:600;letter-spacing:-.01em;overflow-wrap:anywhere}
.guest-lines{display:grid;gap:6px;margin-top:10px}
.guest-line{display:flex;align-items:center;min-height:38px;padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius);color:var(--text);font-size:14px;font-variant-numeric:tabular-nums;text-decoration:none;overflow-wrap:anywhere}
a.guest-line:hover{background:var(--hover);border-color:var(--border-strong)}
#booking-answer .booking-actions .button{flex:1}
.refuse-form label{display:grid;gap:8px;color:var(--text-2);font-size:13.5px;line-height:1.5}
.refuse-form textarea{width:100%;resize:vertical}
.refuse-form .form-error{margin-top:8px}
#bookings-list{margin-top:0}
#bookings-empty,#visits-empty{padding:24px 0;text-align:center}

/* Profile. */
.profile-card{padding:24px}
.panel.profile-card > form:last-child > .form-actions:last-child{margin:20px -24px -24px;padding:12px 24px}
.profile-heading{display:flex;align-items:center;gap:16px}
.profile-heading h2{font-size:18px;letter-spacing:-.015em}
.profile-heading p{margin-top:2px;color:var(--text-2);font-size:13.5px}
.profile-facts{margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}
.profile-card + form{margin-top:16px}
/* « Mon profil » with inputs (2026-10-17). */
.profile-card + .profile-card{margin-top:16px}
.profile-title{font-size:15px;font-weight:600;letter-spacing:-.01em}
.profile-form{display:grid;gap:16px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}
.profile-title + .profile-form{margin-top:14px;padding-top:0;border-top:0}
.profile-form label,.profile-field{display:flex;flex-direction:column;gap:6px;color:var(--text);font-size:13px;font-weight:500}
.profile-form small{margin-top:-2px;color:var(--text-3);font-size:12.5px;font-weight:400}
.profile-form > small{margin-top:-10px}
.field-static{margin:0;padding:7px 0;color:var(--text-2);font-size:14px;font-weight:400;overflow-wrap:anywhere}
.phone-field{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:8px}
.profile-form .form-error{margin-top:0}
@media (max-width:640px){.phone-field{grid-template-columns:minmax(0,1fr)}}

/* Help. */
.faq{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-xs)}
.faq details + details{border-top:1px solid var(--border)}
.faq summary{position:relative;display:block;padding:15px 48px 15px 18px;cursor:pointer;font-size:14px;font-weight:500;list-style:none;transition:background-color .12s}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{background:var(--surface-2)}
.faq summary::after{content:"";position:absolute;top:50%;right:20px;width:7px;height:7px;margin-top:-5px;border-right:1.5px solid var(--text-3);border-bottom:1.5px solid var(--text-3);transform:rotate(45deg);transition:transform .15s}
.faq details[open] summary::after{margin-top:-2px;transform:rotate(-135deg)}
.faq p{padding:0 18px 16px;color:var(--text-2);font-size:13.5px;line-height:1.65}

/* ---------------------------------------------------------------- dialogs */
dialog{width:min(520px,calc(100vw - 32px));max-height:min(86vh,760px);padding:24px;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg)}
dialog[open]{animation:dialog-in .16s ease-out}
dialog::backdrop{background:var(--scrim);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
dialog h2{padding-right:32px;font-size:17px;letter-spacing:-.015em}
dialog p{margin-top:6px;color:var(--text-2);font-size:13.5px;line-height:1.6}
dialog label{margin-top:16px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin:24px -24px -24px;padding:14px 24px;border-top:1px solid var(--border);background:var(--surface-2)}
.close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-3);cursor:pointer;font-size:20px;line-height:1}
.close:hover{background:var(--hover);color:var(--text)}

/* ------------------------------------------------------------------ toast */
.toast{position:fixed;z-index:60;bottom:24px;left:50%;max-width:calc(100vw - 32px);padding:10px 16px;border-radius:10px;background:var(--toast-bg);color:var(--toast-text);font-size:13.5px;font-weight:500;box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transform:translate(-50%,12px);transition:opacity .18s,transform .18s,visibility .18s}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

/* -------------------------------------------------------------- responsive */
@media (max-width:1180px){
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;height:56px;padding:0 12px;padding-top:env(safe-area-inset-top);border-bottom:1px solid var(--border);background:rgba(249,249,248,.86);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px)}
  .topbar-brand{display:flex;align-items:center;gap:9px;min-width:0;color:var(--text);font-size:14px;font-weight:600;letter-spacing:-.01em;text-decoration:none}
  .topbar-brand img{width:26px;height:26px;border-radius:7px}
  .topbar-title{overflow:hidden;color:var(--text-3);font-size:14px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
  .topbar-title::before{content:"/";margin:0 8px 0 2px;color:var(--border-strong)}
  .topbar-title:empty{display:none}
  .topbar .icon-button{width:36px;height:36px;color:var(--text)}
  .topbar .icon-button svg{width:20px;height:20px}
  .sidebar{width:min(300px,84vw);box-shadow:none;transform:translateX(-102%);transition:transform .24s cubic-bezier(.32,.72,0,1),box-shadow .24s;padding-bottom:env(safe-area-inset-bottom)}
  .nav-open .sidebar{transform:none;box-shadow:var(--shadow-lg)}
  .scrim{position:fixed;inset:0;z-index:25;display:block;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity .24s}
  .nav-open .scrim{opacity:1;pointer-events:auto}
  .nav-open{overflow:hidden}
  .nav-item{min-height:40px;font-size:14.5px}
  .content{margin-left:0}
  .view{padding:24px 16px 56px}
  .admin-back-row{padding:16px 16px 0}
  .admin-back-row ~ .view{padding-top:16px}
}
@media (max-width:640px){
  .page-header{align-items:stretch;flex-direction:column;margin-bottom:20px}
  .page-header > div:first-child{flex:none}
  .page-header h1{font-size:22px}
  .page-header > .button,.page-header > form .button{width:100%}
  .page-header .periods{display:flex;width:100%}
  .page-header .periods button{flex:1}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .panel,.establishment-card{padding:16px}
  .panel > form:last-child > .form-actions:last-child,.panel > form:last-child > .form-actions.inline:last-child{margin:18px -16px -16px;padding:12px 16px}
  .panel > form:last-child > .form-actions .button{flex:1}
  .establishment-tab{min-width:220px}
  .establishment-summary{flex-wrap:wrap}
  .completion{flex-basis:100%;display:flex;align-items:baseline;justify-content:space-between;margin:4px 0 0;text-align:left}
  .completion b{font-size:16px}
  .metric{padding:12px 14px}
  .metric strong{font-size:19px}
  .metric-date{font-size:14px!important;line-height:1.85!important}
  .metric small{font-size:11.5px}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .venue-head,.step{padding:16px}
  .step > .panel-sub{margin-left:0;margin-top:6px}
  .todo-list li{flex-wrap:wrap}
  .save-bar{bottom:calc(10px + env(safe-area-inset-bottom))}
  .save-actions{width:100%}
  .save-actions .button{flex:1}
  .panel-heading .periods{width:100%}
  .panel-heading .periods button{flex:1}
  .booking-actions .button{flex:1}
  .booking-actions{flex-wrap:wrap}
  .booking-actions .ticket-more{flex-basis:100%;margin-bottom:2px}
  .booking-card .booking-when{font-size:17px}
  .facts{grid-template-columns:minmax(0,1fr);gap:2px}
  .facts dd{margin-bottom:8px}
  dialog{width:100%;max-width:100%;max-height:90vh;margin:auto 0 0;padding:20px 16px;border-width:1px 0 0;border-radius:var(--radius-xl) var(--radius-xl) 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  dialog[open]{animation:sheet-in .22s cubic-bezier(.32,.72,0,1)}
  .modal-actions{margin:20px -16px calc(-20px - env(safe-area-inset-bottom));padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .modal-actions .button{flex:1}
  .toast{bottom:calc(16px + env(safe-area-inset-bottom))}
}
@keyframes sheet-in{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Skeletons (2026-10-18, the owner: « show skeleton places, then load the data »): grey
   shapes only where data will land, the size of what replaces them; the frame — titles,
   buttons, card outlines — is drawn for real. Removed by the scripts when the data arrives. */
.sk{display:block;border-radius:6px;background:linear-gradient(90deg,var(--surface-3) 0%,var(--surface-2) 50%,var(--surface-3) 100%);background-size:200% 100%;animation:sk-shine 1.3s ease-in-out infinite}
@keyframes sk-shine{from{background-position:100% 0}to{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.sk{animation:none}}
.sk-line{height:11px;margin-top:8px}
.sk-title{height:18px;width:45%;border-radius:7px}
.sk-num{height:26px;width:40%;margin-top:10px;border-radius:7px}
.sk-bar{height:8px;margin-top:12px;border-radius:999px}
.sk-todo{height:44px;margin-top:10px;border-radius:var(--radius)}
.sk-mark{width:48px;height:48px;flex:none;border-radius:12px}
.sk-head{display:flex;align-items:center;gap:14px}
.sk-stack{flex:1;min-width:0}
.sk-stack .sk-title{width:60%}
.sk-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.sk-photo{aspect-ratio:1;border-radius:var(--radius)}
.sk-box{height:150px;margin-top:16px;border-radius:var(--radius)}
.sk-card .sk-line:first-child{margin-top:0}
.ticket.sk-card{display:block}
tr.sk-row td{padding-top:14px;padding-bottom:14px}
tr.sk-row .sk-line{margin-top:0}
.journal li.sk-row{list-style:none;padding:10px 0;border-bottom:1px solid var(--border-subtle,var(--border))}
.metric.sk-card .sk-line:first-child{margin-top:0}
@media (max-width:640px){.sk-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fidélité (lya-supabase 0119): the code a client shows, and who is coming for what. */
.loyalty-form{display:flex;gap:8px}
.loyalty-form input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:.14em;font-variant-numeric:tabular-nums}
.loyalty-form input::placeholder{text-transform:none;letter-spacing:0}
#loyalty-card .form-error{margin-top:8px}
.loyalty-list{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.loyalty-list li{display:grid;gap:2px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius)}
.loyalty-list li b{font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
.loyalty-list li small{color:var(--text-3);font-size:12px}
.loyalty-list li.used{opacity:.6}
/* The bill of a percentage booking (lya-supabase 0120). */
.bill-row{display:flex;gap:8px}
.bill-row input{flex:1;min-width:0;font-variant-numeric:tabular-nums}
.bill-row select{width:88px;flex:none}
.bill-entry .panel-note{margin-top:8px}
.bill-value{margin:0;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.booking-commission.due{color:var(--amber);font-weight:500}
