/* styles/tokens.css */
/* Jetons de l'admin (admin/public/admin.css) + jetons propres au PMS.
   Toutes les couleurs des écrans passent par ces variables : un seul endroit à ajuster. */
:root {
  color-scheme: light;
  /* Admin */
  --ink: #263e31;
  --text: #34413a;
  --muted: #778078;
  --green: #466750;
  --green-dark: #35523e;
  --sage: #e6ecdf;
  --cream: #f7f8f3;
  --paper: #ffffff;
  --line: #e3e7df;
  --warning: #936328;
  --warning-bg: #fbf2e3;

  /* Surfaces et textes dérivés */
  --sidebar: #eef1e7;
  --sidebar-line: #e0e5d9;
  --nav-hover: #e4e9dc;
  --nav-active: #dce5d3;
  --field: #fcfdf9;
  --field-line: #dce3d4;
  --soft: #f2f5ee;
  --soft-2: #eaf0e4;
  --subtle: #929a8e;
  --focus: #719a78;
  --overlay: rgba(33, 53, 34, 0.38);
  --shadow-sm: 0 1px 2px rgba(38, 62, 49, 0.06);
  --shadow-md: 0 6px 22px rgba(38, 62, 49, 0.10);
  --shadow-lg: 0 18px 50px rgba(38, 62, 49, 0.18);

  /* Tons sémantiques (texte / fond) */
  --ok: #3f6e45;        --ok-bg: #e6f0e1;
  --info: #3b5f8a;      --info-bg: #e5edf6;
  --warn: #936328;      --warn-bg: #fbf2e3;
  --danger: #a23b32;    --danger-bg: #f8e4e1;
  --violet: #6b4e8f;    --violet-bg: #eee8f5;
  --neutral: #6f786c;   --neutral-bg: #eff1ec;

  /* États de séjour (barres du planning) */
  --st-confirmed: #dfe9d6;     --st-confirmed-ink: #2f4c35;  --st-confirmed-edge: #9fb893;
  --st-inhouse: #466750;       --st-inhouse-ink: #ffffff;    --st-inhouse-edge: #35523e;
  --st-checkedout: #eceee8;    --st-checkedout-ink: #7d857a; --st-checkedout-edge: #d3d8cd;
  --st-pending: #fbf2e3;       --st-pending-ink: #7d5421;    --st-pending-edge: #d9b77f;
  --st-noshow: #f3e3e0;        --st-noshow-ink: #8c3f35;     --st-noshow-edge: #d9a59d;
  --st-unassigned: #f8e4e1;    --st-unassigned-ink: #8c2f27; --st-unassigned-edge: #cf7b70;
  --st-block: repeating-linear-gradient(135deg, #e7e9e3 0 6px, #f2f3ef 6px 12px);
  --st-block-ink: #69705f;

  /* Paiement (pastilles) */
  --pay-paid: #4d8a56;
  --pay-due: #c28a2c;
  --pay-incident: #c0473b;
  --pay-card: #5b7fb3;

  /* Couleurs des maisons (repères, jamais du texte long) */
  --house-cp: #8a5f9e;   /* Chambres Panda */
  --house-mb: #3f7f7a;   /* Maison Beauval */
  --house-mc: #a8683a;   /* Maison du Châtelain */
  --house-co: #5569a3;   /* La Collégiale */
  --house-mf: #b0577b;   /* Maison des Fleurs */

  /* Canaux */
  --ch-booking: #2f5f9e;
  --ch-direct: #466750;
  --ch-whatsapp: #2f8f5b;

  /* Mise en page */
  --sidebar-w: 246px;
  --topbar-h: 64px;
  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 12px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e5ede4; --text: #cdd6cb; --muted: #97a294; --green: #8fc49c; --green-dark: #a9d7b4;
    --sage: #22302a; --cream: #121915; --paper: #18211c; --line: #2b3831; --warning: #e3b56f; --warning-bg: #2c2417;
    --sidebar: #151d18; --sidebar-line: #26322b; --nav-hover: #1f2a23; --nav-active: #263429;
    --field: #1b251f; --field-line: #2e3b33; --soft: #1b241f; --soft-2: #213028; --subtle: #8a9587; --focus: #8fc49c;
    --overlay: rgba(4, 8, 6, 0.6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
    --ok: #8fcf98; --ok-bg: #1d3323; --info: #9dbfe8; --info-bg: #1c2a3b; --warn: #e3b56f; --warn-bg: #33291a;
    --danger: #f0998f; --danger-bg: #3a201d; --violet: #c7aee6; --violet-bg: #2b2238; --neutral: #a6b0a3; --neutral-bg: #232b26;
    --st-confirmed: #2a3d2f; --st-confirmed-ink: #d6ead8; --st-confirmed-edge: #4f6e55;
    --st-inhouse: #6aa377; --st-inhouse-ink: #0f1a12; --st-inhouse-edge: #8fc49c;
    --st-checkedout: #232a25; --st-checkedout-ink: #8e998b; --st-checkedout-edge: #36413a;
    --st-pending: #3a2f1c; --st-pending-ink: #f0cf98; --st-pending-edge: #7b6035;
    --st-noshow: #3b2522; --st-noshow-ink: #f2b3aa; --st-noshow-edge: #7a4038;
    --st-unassigned: #45221e; --st-unassigned-ink: #ffc2b8; --st-unassigned-edge: #a0493f;
    --st-block: repeating-linear-gradient(135deg, #252c27 0 6px, #1d231f 6px 12px); --st-block-ink: #a1ab9d;
    --pay-paid: #7fc28a; --pay-due: #e3b56f; --pay-incident: #f0857a; --pay-card: #8fb2e6;
    --ch-booking: #8fb2e6; --ch-direct: #8fc49c; --ch-whatsapp: #7fd3a2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5ede4; --text: #cdd6cb; --muted: #97a294; --green: #8fc49c; --green-dark: #a9d7b4;
  --sage: #22302a; --cream: #121915; --paper: #18211c; --line: #2b3831; --warning: #e3b56f; --warning-bg: #2c2417;
  --sidebar: #151d18; --sidebar-line: #26322b; --nav-hover: #1f2a23; --nav-active: #263429;
  --field: #1b251f; --field-line: #2e3b33; --soft: #1b241f; --soft-2: #213028; --subtle: #8a9587; --focus: #8fc49c;
  --overlay: rgba(4, 8, 6, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  --ok: #8fcf98; --ok-bg: #1d3323; --info: #9dbfe8; --info-bg: #1c2a3b; --warn: #e3b56f; --warn-bg: #33291a;
  --danger: #f0998f; --danger-bg: #3a201d; --violet: #c7aee6; --violet-bg: #2b2238; --neutral: #a6b0a3; --neutral-bg: #232b26;
  --st-confirmed: #2a3d2f; --st-confirmed-ink: #d6ead8; --st-confirmed-edge: #4f6e55;
  --st-inhouse: #6aa377; --st-inhouse-ink: #0f1a12; --st-inhouse-edge: #8fc49c;
  --st-checkedout: #232a25; --st-checkedout-ink: #8e998b; --st-checkedout-edge: #36413a;
  --st-pending: #3a2f1c; --st-pending-ink: #f0cf98; --st-pending-edge: #7b6035;
  --st-noshow: #3b2522; --st-noshow-ink: #f2b3aa; --st-noshow-edge: #7a4038;
  --st-unassigned: #45221e; --st-unassigned-ink: #ffc2b8; --st-unassigned-edge: #a0493f;
  --st-block: repeating-linear-gradient(135deg, #252c27 0 6px, #1d231f 6px 12px); --st-block-ink: #a1ab9d;
  --pay-paid: #7fc28a; --pay-due: #e3b56f; --pay-incident: #f0857a; --pay-card: #8fb2e6;
  --ch-booking: #8fb2e6; --ch-direct: #8fc49c; --ch-whatsapp: #7fd3a2;
}

/* styles/base.css */
/* Base typographique, alignée sur l'admin (Inter, 14 px, ton sage). */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 520; letter-spacing: -0.9px; color: var(--ink); text-wrap: balance; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 560; letter-spacing: -0.3px; color: var(--ink); text-wrap: balance; }
h3 { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink); }
svg { display: block; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.eyebrow { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #88917c; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; scroll-behavior: auto !important; }
}

/* styles/components.css */
/* ─── Boutons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 7px 13px; border-radius: 7px;
  font-size: 13px; font-weight: 550; white-space: nowrap; line-height: 1.2;
  border: 1px solid transparent; transition: background .14s, border-color .14s, box-shadow .14s, color .14s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }
.btn-secondary { background: var(--field); color: var(--text); border-color: var(--field-line); }
.btn-secondary:hover:not(:disabled) { background: var(--soft-2); }
.btn-ghost { color: var(--green-dark); }
.btn-ghost:hover:not(:disabled) { background: var(--soft-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(0.95); }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-sm { min-height: 28px; padding: 4px 10px; font-size: 12px; }
.btn-lg { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 7px;
  border: 1px solid var(--line); background: var(--field); color: #657460;
}
.icon-btn:hover { background: var(--soft-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.plain { border-color: transparent; background: transparent; }
.link-btn { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; padding: 0; }
.link-btn:hover { color: var(--ink); }

/* ─── Champs ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 560; color: var(--ink); }
.field-hint { font-size: 11px; color: var(--muted); }
.field-error { font-size: 11px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 36px; padding: 7px 10px; border-radius: 7px;
  border: 1px solid var(--field-line); background: var(--field); color: var(--text);
  transition: border-color .14s, box-shadow .14s;
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:hover, .select:hover, .textarea:hover { border-color: #c5d0bb; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-with-icon > .input { padding-left: 34px; }
.check { display: inline-flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .14s, background .14s;
}
.radio-card:hover { border-color: #c5d0bb; }
.radio-card.selected { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--paper)); }
.radio-card input { accent-color: var(--green); margin-top: 3px; }

/* Compteur +/- (adultes, enfants) */
.counter { display: inline-flex; align-items: center; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); }
.counter button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--green-dark); }
.counter button:hover:not(:disabled) { background: var(--soft-2); }
.counter output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Sélecteur segmenté */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.segmented button { padding: 5px 11px; border-radius: 6px; font-size: 12px; font-weight: 550; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ─── Pastilles, badges ───────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap;
  background: var(--neutral-bg); color: var(--neutral);
}
.pill svg { width: 12px; height: 12px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.solid { background: var(--green); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--muted); }
.channel-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--paper); font-size: 11px; font-weight: 600; color: var(--muted); font-family: var(--font); }

/* ─── Cartes, panneaux ────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.card-head h2, .card-head h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.card-body { padding: 0 20px 18px; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 7px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); min-width: 0; }
.callout { display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--radius); font-size: 13px; line-height: 1.45; background: var(--soft); border: 1px solid var(--line); }
.callout svg { width: 17px; height: 17px; margin-top: 1px; }
.callout.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn); }
.callout.danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 25%, transparent); color: var(--danger); }
.callout.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 22%, transparent); color: var(--info); }
.callout.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ─── Tableaux ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--soft); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--soft); }

/* ─── Onglets ─────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; padding: 10px 14px; font-size: 13px; font-weight: 550; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--green); }
.tab-count { font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--soft-2); color: var(--muted); line-height: 17px; }
.tab-count.alert { background: var(--danger-bg); color: var(--danger); }

/* ─── Fenêtres (dialogues) et tiroirs ─────────────────── */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade-in .14s ease-out; }
.dialog {
  width: min(640px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: pop-in .16s ease-out;
}
.dialog.wide { width: min(880px, 100%); }
.dialog.narrow { width: min(460px, 100%); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; }
.dialog-head h2 { font-size: 17px; }
.dialog-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dialog-body { padding: 4px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 14px 14px; flex-wrap: wrap; }
.drawer-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); pointer-events: auto;
  background: var(--paper); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slide-in .18s ease-out;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }

/* ─── Toasts ──────────────────────────────────────────── */
.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  border-radius: 10px; background: #26352b; color: #f2f6ef; box-shadow: var(--shadow-lg); font-size: 13px; animation: pop-in .16s ease-out;
  max-width: calc(100vw - 32px);
}
.toast button { color: #bfe0c4; font-weight: 650; padding: 4px 8px; border-radius: 6px; }
.toast button:hover { background: rgba(255, 255, 255, .08); }

/* ─── Divers ──────────────────────────────────────────── */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--green-dark); background: var(--sage); flex-shrink: 0; }
.progress { height: 6px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.skeleton { background: linear-gradient(90deg, var(--soft) 25%, var(--soft-2) 37%, var(--soft) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.proto-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--violet); background: var(--violet-bg);
  border: 1px dashed color-mix(in srgb, var(--violet) 45%, transparent); padding: 8px 11px; border-radius: 8px;
}
.proto-note svg { width: 15px; height: 15px; margin-top: 1px; }

/* ─── « Notifier le client » (08 §8) ──────────────────── */
.notify-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.notify-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--ink); }
.notify-row { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.notify-row + .notify-row { border-top: 1px dashed var(--line); padding-top: 10px; }
.notify-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--ink); }
.notify-label em { font-style: normal; color: var(--text); font-weight: 450; }
.notify-to { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.notify-reason { display: flex; flex-direction: column; gap: 6px; margin-left: 25px; font-size: 12px; color: var(--muted); }
.notify-reason.danger { color: var(--danger); }
.notify-actions { display: flex; gap: 14px; margin-left: 25px; font-size: 12px; }
.notify-preview { margin: 0 0 0 25px; white-space: pre-wrap; font: 12.5px/1.5 var(--font); color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.input-sm { min-height: 30px; padding: 5px 9px; font-size: 12px; }

/* styles/shell.css */
/* Coquille : reprise fidèle de la barre latérale et de l'en-tête de l'admin, plus la recherche et le « + ». */
.shell { min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--sidebar);
  border-right: 1px solid var(--sidebar-line); display: flex; flex-direction: column;
  padding: 26px 16px 18px; z-index: 40; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; color: #2e4737; font-size: 21px; letter-spacing: -.8px; font-weight: 730; white-space: nowrap; }
.brand small { font-size: 7.8px; letter-spacing: 1.12px; font-weight: 650; display: block; margin-top: 1px; }
.brand-icon { width: 36px; height: 40px; display: grid; place-items: center; color: #2e4737; }
.brand-icon svg { width: 36px; height: 36px; fill: currentColor; stroke: none; }
.brand-icon .panda-face { fill: #fbfcf8; stroke: currentColor; stroke-width: 1.2; }
.workspace { display: flex; gap: 9px; align-items: center; padding: 11px 10px; margin: 24px 0 22px; border: 1px solid #dce2d3; border-radius: 9px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .35); color: var(--text); }
.workspace-avatar { display: grid; place-items: center; width: 27px; height: 29px; border-radius: 6px; background: #dce4d3; color: #4c6247; font-weight: 700; font-family: Georgia, serif; font-size: 17px; }
.workspace small { font-size: 10px; display: block; color: var(--muted); font-weight: 400; margin-top: 1px; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.3px; font-weight: 700; color: #899180; padding: 0 13px; margin-bottom: 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 8px 12px; border-radius: 7px; font-size: 12.5px; color: #687264; margin: 1px 0; transition: background .16s, color .16s; width: 100%; text-align: left; }
.nav-link svg { width: 18px; height: 18px; stroke-width: 1.5; }
.nav-link:hover { background: var(--nav-hover); color: var(--ink); }
.nav-link.active { background: var(--nav-active); color: #344f39; font-weight: 620; }
.nav-link .nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 0 6px; line-height: 17px; border-radius: 999px; background: var(--danger-bg); color: var(--danger); }
.nav-link .nav-new { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .6px; color: var(--violet); }
.nav-link.off { opacity: .72; }
.sidebar-bottom { margin-top: auto; padding: 26px 12px 0; font-size: 10px; color: #71806d; display: flex; flex-direction: column; gap: 4px; }
.secure-label { display: flex; align-items: center; gap: 6px; color: #52674e; font-weight: 600; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 100%; background: #779570; }

.main-shell { margin-left: var(--sidebar-w); min-height: 100dvh; display: flex; flex-direction: column; }
/* Menu replié : icônes seules (préférence gardée dans le navigateur). */
.sidebar-toggle { display: flex; align-items: center; gap: 11px; min-height: 34px; margin-top: 18px; padding: 7px 12px; border: 0; border-radius: 7px; background: none; color: #7b8577; font: inherit; font-size: 11.5px; cursor: pointer; width: 100%; text-align: left; }
.sidebar-toggle:hover { background: var(--nav-hover); color: var(--ink); }
.sidebar-toggle svg { width: 18px; height: 18px; }
@media (min-width: 861px) {
  .shell.collapsed { --sidebar-w: 68px; }
  .shell.collapsed .sidebar { padding-inline: 10px; }
  .shell.collapsed .brand { padding: 0; justify-content: center; }
  .shell.collapsed .brand-text, .shell.collapsed .workspace, .shell.collapsed .nav-label, .shell.collapsed .nav-new,
  .shell.collapsed .nav-link > span:not(.nav-badge), .shell.collapsed .sidebar-toggle span, .shell.collapsed .sidebar-bottom { display: none; }
  .shell.collapsed nav { margin-top: 22px; }
  .shell.collapsed .nav-group + .nav-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sidebar-line); }
  .shell.collapsed .nav-link, .shell.collapsed .sidebar-toggle { justify-content: center; padding: 8px 0; position: relative; }
  .shell.collapsed .nav-link .nav-badge { position: absolute; top: 2px; right: 4px; margin: 0; min-width: 16px; padding: 0 4px; line-height: 15px; text-align: center; }
}

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: var(--topbar-h);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px;
  background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: saturate(1.4) blur(10px);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #929a8e; white-space: nowrap; }
.breadcrumb strong { font-weight: 550; color: #4e5b4d; }
.global-search { position: relative; flex: 1; max-width: 460px; margin-left: 12px; }
.global-search .input { background: var(--paper); padding-right: 64px; }
.global-search .kbd { position: absolute; right: 9px; top: 50%; translate: 0 -50%; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; max-height: 360px; overflow-y: auto; z-index: 45;
}
.search-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; border-radius: 7px; padding: 2px 6px 4px 0; }
.search-row:hover, .search-row[aria-selected="true"] { background: var(--soft); }
.search-results .search-main { display: flex; width: 100%; gap: 10px; align-items: center; padding: 7px 10px 2px; text-align: left; font-size: 13px; min-width: 0; }
.search-why { grid-column: 1; padding-left: 28px; }
.search-plan { grid-column: 2; grid-row: 1 / span 2; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.today { font-size: 12px; color: #7b8476; white-space: nowrap; }
.new-booking { gap: 6px; }
.mobile-menu { display: none; }
.demo-flag { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--violet); background: var(--violet-bg); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sidebar-scrim { position: fixed; inset: 0; background: var(--overlay); z-index: 35; }

.page { width: 100%; max-width: 1680px; margin: 0 auto; padding: 26px 28px 40px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.page.full { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .eyebrow { margin-bottom: 6px; }
.page-head p.lead { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 70ch; }

@media (max-width: 1120px) {
  :root { --sidebar-w: 214px; }
  .global-search { max-width: 320px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); width: 246px; transition: transform .2s ease; box-shadow: 5px 0 30px #24312315; }
  .sidebar.open { transform: none; }
  .main-shell { margin-left: 0; }
  .sidebar-toggle { display: none; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 16px; gap: 10px; }
  .breadcrumb { display: none; }
  .global-search { margin-left: 0; }
  .global-search .kbd, .today { display: none; }
  .page { padding: 18px 16px 32px; }
  .new-booking span.label { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand, :root:not([data-theme="light"]) .brand-icon { color: #cfe3d1; }
  :root:not([data-theme="light"]) .workspace { border-color: var(--line); background: rgba(255, 255, 255, .03); }
  :root:not([data-theme="light"]) .workspace-avatar { background: #26352c; color: #cfe3d1; }
  :root:not([data-theme="light"]) .nav-link { color: #a3ae9f; }
  :root:not([data-theme="light"]) .nav-link.active { color: #e2ede2; }
}
:root[data-theme="dark"] .brand, :root[data-theme="dark"] .brand-icon { color: #cfe3d1; }
:root[data-theme="dark"] .workspace { border-color: var(--line); background: rgba(255, 255, 255, .03); }
:root[data-theme="dark"] .workspace-avatar { background: #26352c; color: #cfe3d1; }
:root[data-theme="dark"] .nav-link { color: #a3ae9f; }
:root[data-theme="dark"] .nav-link.active { color: #e2ede2; }

/* Badge des tâches ouvertes (TSK-17 ; P-13 bis, à valider) : barre du haut, vers « Tâches à traiter » ; même compteur
   sur l'entrée « Vue d'ensemble » du menu. Rouge s'il y a une tâche urgente ou en retard, gris sinon. */
.topbar-tasks {
  position: relative; flex-shrink: 0; width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: #657460;
}
.topbar-tasks:hover { background: var(--soft-2); color: var(--ink); }
.topbar-tasks svg { width: 16px; height: 16px; }
.topbar-badge {
  position: absolute; top: -7px; right: -8px; min-width: 18px; padding: 0 5px; border-radius: 999px; border: 1.5px solid var(--paper);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums;
  background: var(--soft-2); color: var(--muted);
}
.topbar-tasks.alert .topbar-badge { background: var(--danger); color: #fff; }
.nav-link .nav-badge.neutral { background: var(--soft-2); color: var(--muted); }

/* styles/pages.css */
/* Pages communes : guide des prototypes, vue d'ensemble, vues non prototypées. */
.proto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.proto-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.proto-card-head { display: flex; align-items: baseline; gap: 10px; }
.proto-card-head h2 { font-size: 16px; }
.proto-id { font-size: 11px; font-weight: 700; color: var(--violet); background: var(--violet-bg); padding: 1px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.proto-questions ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.proto-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.overview-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.metric { display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.metric:hover { border-color: #b7c7ad; box-shadow: var(--shadow-md); }
.metric strong { font-size: 30px; font-weight: 560; letter-spacing: -1px; color: var(--ink); font-variant-numeric: tabular-nums; }
.placeholder-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.placeholder-card > div { flex: 1; min-width: 200px; }
.public-shell { min-height: 100dvh; background: var(--cream); }
.proto-links .btn { white-space: normal; text-align: left; justify-content: flex-start; max-width: 100%; line-height: 1.3; }
.proto-links .btn svg { flex-shrink: 0; }

/* Rapports (liens vers les registres sans entrée de menu). */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 18px; }
.reports-item { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.reports-item h3 { font-size: 14px; margin-bottom: 4px; }
.reports-item > svg:last-child { margin-left: auto; align-self: center; color: var(--muted); }
.reports-item.off { opacity: .7; }
a.reports-item:hover { border-color: var(--accent); }

/* Cartes « à valider » du guide : question à trancher, puis la recommandation proposée. */
.proto-decisions { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.proto-decisions li > span:first-child { display: block; }
.proto-reco { display: flex; align-items: flex-start; gap: 5px; margin-top: 3px; font-size: 12px; color: var(--ok); background: var(--ok-bg); border-radius: 6px; padding: 4px 8px; }
.proto-reco svg { flex-shrink: 0; margin-top: 2px; }
.proto-reco strong { font-weight: 650; }
.proto-card-head .proto-id { white-space: nowrap; flex-shrink: 0; }

/* screens/public/public.css */
/* Écrans publics (P-11 page de paiement, P-12 moteur de réservation) : coquille nue (app.tsx), mobile
   d'abord (390 px), élargi ensuite. Aucune couleur hors des jetons de src/styles/tokens.css. */

/* ─── Commun ────────────────────────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--field-line); background: var(--field); color: var(--text); font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--soft-2); }
.eng-illustration, .pay-house-dot { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   P-11 — Page de paiement
   ═══════════════════════════════════════════════════════════════════════ */
.pay-page { min-height: 100dvh; background: var(--cream); display: flex; flex-direction: column; }
.pay-brandbar { background: var(--paper); border-bottom: 3px solid var(--line); position: sticky; top: 0; z-index: 10; }
.pay-brandbar-inner {
  max-width: 640px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pay-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pay-house-dot { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }
.pay-house-name { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.2px; }
.pay-house-address { color: var(--muted); margin-top: 1px; }

.pay-container { max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; width: 100%; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.pay-card { display: flex; flex-direction: column; gap: 16px; }
.pay-card h1 { font-size: 21px; }
.pay-card > svg { color: var(--green); }

.pay-parties { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pay-parties li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.pay-parties li.current { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--paper)); }
.pay-parties li.done { opacity: .75; }
.pay-parties li > span:nth-child(2) { flex: 1; font-weight: 600; color: var(--ink); }
.pay-parties-index {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--soft-2); color: var(--muted); font-size: 11px; font-weight: 700;
}
.pay-parties li.current .pay-parties-index { background: var(--green); color: #fff; }
.pay-parties li.done .pay-parties-index { background: var(--ok-bg); color: var(--ok); }

.pay-reservations { display: flex; flex-direction: column; gap: 10px; }
.pay-res-line { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); display: flex; flex-direction: column; gap: 4px; }
.pay-balance { color: var(--green-dark); font-size: 16px; }

.pay-element { border: 1px solid var(--field-line); border-radius: var(--radius-lg); background: var(--field); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pay-element-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink); }
.pay-brand-detected { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--green-dark); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; }
.pay-element-form { display: flex; flex-direction: column; gap: 12px; }
.pay-element-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-test-hint { line-height: 1.5; }
.tds-content { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.tds-bank-mock { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }

.pay-success { align-items: center; text-align: center; }
.pay-success-icon { color: var(--ok); background: var(--ok-bg); border-radius: 50%; padding: 10px; }
.pay-success-parties { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.pay-success-parties li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius); background: var(--soft); font-size: 13px; }

.pay-legal { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

@media (min-width: 640px) {
  .pay-element-row { grid-template-columns: 1fr 1fr; }
  .pay-card { padding: 28px 32px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   P-12 — Moteur de réservation
   ═══════════════════════════════════════════════════════════════════════ */
/* `overflow-x: clip` (et non `hidden`, qui casserait l'en-tête collant) : absorbe les quelques pixels de la
   barre de défilement comptés dans le `100vw` de la bannière pleine largeur `.eng-search-hero`. Posé sur la
   page et non sur `.eng-container`, qui rognerait la bannière à la largeur du contenu (1 080 px). */
.eng-page { min-height: 100dvh; background: var(--cream); display: flex; flex-direction: column; overflow-x: clip; }
.eng-topbar {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 6px; gap: 10px; padding: 12px 16px;
}
.eng-wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); font-size: 15px; letter-spacing: -.3px; }
/* Pastille du compte à rebours + bouton de langue (10 MOT-19) : passent à la ligne plutôt que de déborder
   quand la maison + la pastille + « English » ne tiennent pas sur une seule ligne à 390 px. */
.eng-topbar-actions { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.eng-container { max-width: 1080px; margin: 0 auto; padding: 18px 16px 48px; width: 100%; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.eng-card { display: flex; flex-direction: column; gap: 16px; }
.eng-card h1 { font-size: 22px; }
.eng-center { align-items: center; text-align: center; padding: 40px 20px; }
.eng-footer { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); margin-top: auto; }

.eng-spinner {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--soft-2); border-top-color: var(--green);
  animation: eng-spin .8s linear infinite;
}
@keyframes eng-spin { to { transform: rotate(360deg); } }

/* Fil d'étapes (Baptiste, 27/09/2026, MOT-63, MOT-84) : grands ronds numérotés 1 à 4, libellés dessous,
   reliés par un trait, sur toute la largeur — comme le moteur actuel des sites ; même présentation en mobile,
   en plus petit. Étape faite : rond vert clair et numéro vert ; étape en cours : rond vert plein. */
.eng-steps { margin-bottom: 6px; }
.eng-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eng-steps li { position: relative; display: flex; justify-content: center; }
.eng-steps li:not(:first-child)::before {
  content: ""; position: absolute; top: 18px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0;
}
.eng-steps li.done::before, .eng-steps li.current::before { background: var(--green); }
.eng-steps li > span, .eng-steps li > button {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 14.5px; color: var(--subtle); background: none; border: 0; padding: 0 4px; text-align: center;
}
.eng-steps li.done > span, .eng-steps li.done > button { color: var(--muted); }
.eng-steps li.current > span, .eng-steps li.current > button { color: var(--ink); font-weight: 700; }
.eng-steps li.clickable > button { cursor: pointer; }
.eng-steps li.clickable > button:hover { color: var(--green-dark); }
.eng-steps li.clickable > button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.eng-steps-index {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper); border: 2px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.eng-steps li.current .eng-steps-index { background: var(--green); border-color: var(--green); color: #fff; }
.eng-steps li.done .eng-steps-index { background: var(--ok-bg); border-color: var(--green); color: var(--green-dark); }
.eng-steps li.clickable > button:hover .eng-steps-index { background: var(--soft-2); }
@media (max-width: 640px) {
  .eng-steps li:not(:first-child)::before { top: 15px; }
  .eng-steps li > span, .eng-steps li > button { font-size: 12px; gap: 5px; }
  .eng-steps-index { width: 32px; height: 32px; font-size: 14px; }
}

/* Options d'une chambre du panier (MOT-83) : repliées derrière un bouton à flèche, cases à cocher dessous. */
.eng-extras-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--field); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left;
}
.eng-extras-toggle > span:first-child { flex: 1; }
.eng-extras-toggle:hover { border-color: var(--green); }
.eng-extras-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eng-extras-toggle svg { transition: transform .15s ease; flex-shrink: 0; }
.eng-extras-toggle .eng-chevron-open { transform: rotate(180deg); }
.eng-extras-count { font-size: 12px; font-weight: 650; color: var(--green-dark); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; }
.eng-extras-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 4px 2px; }

/* Dates communes du panier (MOT-86) : une seule fois, en tête du bloc, en grand. */
.eng-cart-dates {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 12px;
  background: var(--soft); color: var(--ink); font-size: 18px; line-height: 1.35;
}
.eng-cart-dates svg { color: var(--green-dark); flex-shrink: 0; }
.eng-cart-dates-nights { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .eng-cart-dates { font-size: 15.5px; padding: 10px 12px; } }
.eng-extra-label { display: inline-flex; align-items: center; gap: 8px; }
.eng-extra-label svg { color: var(--muted); flex-shrink: 0; }

/* Recherche — bannière pleine largeur (Baptiste, 27/09/2026, MOT-66 précisée) : bord à bord, sans cadre
   arrondi ni marges latérales, nettement plus haute qu'avant ; la carte de recherche reste centrée dessus.
   `width: 100vw` + la marge négative « sort » du conteneur centré et padé `.eng-container` — la formule reste
   juste à toutes les largeurs car ce conteneur est lui-même centré par des marges symétriques (`margin: 0
   auto`, padding égal des deux côtés) : le calcul revient exactement au bord de la fenêtre, à 390 px comme à
   1440 px. `overflow-x: clip` de `.eng-page` couvre l'écart résiduel de la barre de défilement. */
.eng-search-hero {
  position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center;
  padding: 40px 14px; min-height: 480px;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.eng-search-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.eng-search { max-width: 520px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
@media (min-width: 720px) {
  .eng-search-hero { min-height: 640px; }
}
.eng-search-house {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px 5px 10px;
  border-radius: 999px; background: var(--soft); border-left: 3px solid var(--house, var(--line));
  font-size: 13px; font-weight: 650; color: var(--ink);
}
.eng-search-form { display: flex; flex-direction: column; gap: 14px; }

/* Récapitulatif et coordonnées sur une seule page (Baptiste, 27/09/2026, MOT-82) : coordonnées à gauche,
   résumé compact de la commande à droite, collant pendant la saisie ; en dessous de 900 px, le résumé passe
   au-dessus des coordonnées. */
.eng-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.eng-order-summary { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.eng-order-summary h2 { font-size: 17px; margin: 0; }
.eng-order-dates { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ink); font-weight: 600; }
.eng-order-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eng-order-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.eng-order-line p { margin: 0 0 2px; }
.eng-order-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--soft); display: block; }
.eng-order-price { white-space: nowrap; }
.eng-order-totals { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.eng-order-total { font-size: 16px; padding-top: 4px; }
@media (max-width: 900px) {
  .eng-checkout { grid-template-columns: minmax(0, 1fr); }
  .eng-order-summary { position: static; order: -1; }
}
/* Carte compacte de l'étape Dates (modèle de Baptiste, 27/09/2026, MOT-81) : bouton « Sélectionner des
   dates » qui ouvre le calendrier, séparateurs fins entre les blocs, comme le moteur actuel des sites. */
.eng-date-trigger {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px;
  font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.eng-date-trigger:hover { border-color: var(--green); }
.eng-search-sep { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.eng-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eng-child-ages { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }

.eng-cal-status { margin: 0 0 6px; min-height: 1.4em; }
.eng-cal-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-bottom: 2px; }
.eng-cal-months { display: flex; flex-direction: column; gap: 18px; }
.eng-cal-month-second { display: none; }
.eng-cal-month-label { font-size: 13px; font-weight: 650; color: var(--ink); text-align: center; margin: 0 0 4px; text-transform: capitalize; }
.eng-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 8px; }
.eng-cal-weekdays { margin-top: 0; }
.eng-cal-weekdays span { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.eng-cal-blank { min-height: 46px; }
.eng-cal-day {
  min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 7px; font-size: 12.5px; color: var(--text); background: transparent; transition: background .12s; padding: 3px 1px;
}
.eng-cal-day-num { font-weight: 600; }
.eng-cal-day-price { font-size: 9.5px; font-weight: 650; color: var(--green-dark); line-height: 1; }
.eng-cal-day:hover:not(:disabled) { background: var(--soft-2); }
.eng-cal-day:disabled { color: var(--subtle); opacity: .55; cursor: not-allowed; }
.eng-cal-day.unavailable .eng-cal-day-num { text-decoration: line-through; }
/* Survol (Baptiste, 27/09/2026) : plage arrivée → survol, plus claire que la sélection validée ci-dessous. */
.eng-cal-day.hover-range { background: var(--ok-bg); border-radius: 0; }
.eng-cal-day.hover-end { box-shadow: inset 0 0 0 2px var(--green); border-radius: 7px; }
.eng-cal-day.range { background: color-mix(in srgb, var(--green) 28%, var(--paper)); border-radius: 0; }
.eng-cal-day.range .eng-cal-day-price { color: var(--green-dark); }
.eng-cal-day.sel { background: var(--green); color: #fff; font-weight: 700; }
.eng-cal-day.sel .eng-cal-day-price { color: #fff; }
@media (min-width: 720px) {
  .eng-cal-months { flex-direction: row; gap: 28px; }
  .eng-cal-month { flex: 1; min-width: 0; }
  .eng-cal-month-second { display: block; }
}

/* Résultats : carte récapitulative (Baptiste, 27/09/2026, 10 MOT-xx) — dates/occupation + comparaison des 5
   maisons dans la même carte. */
.eng-results { display: flex; flex-direction: column; gap: 16px; }
.eng-recap { gap: 18px; }
.eng-recap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eng-recap-head h1 { font-size: 20px; }
.eng-recap-compare { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.eng-recap-compare-title { font-size: 14px; margin: 0; }

.eng-results-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.eng-illustration {
  border-radius: var(--radius-lg); display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.eng-illustration::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 10px, transparent 10px 20px);
}
.eng-illustration-icon { position: relative; z-index: 1; color: var(--ink); opacity: .55; }
.eng-illustration.small { aspect-ratio: 16/10; }
.eng-illustration.large { aspect-ratio: 21/9; }

/* Cartes de catégorie à ajout direct (Baptiste, 27/09/2026, 10 MOT-xx) : photo, rappel des personnes, lits à
   icônes, tarifs cliquables (ajoutent au panier sans quitter la page). */
.eng-category-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.eng-offer-card { overflow: hidden; display: flex; flex-direction: column; }
.eng-offer-card.sold-out { opacity: .75; }
.eng-offer-photo { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--soft); }
.eng-offer-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
/* Personnes et lits plus gros et plus visibles (Baptiste, 27/09/2026) : icônes 22-24 px (taille portée par le
   composant `Icon`, ici seulement le texte et l'espacement), sur les cartes de résultats comme sur les lignes
   du panier et du récapitulatif (mêmes classes, MOT-72/MOT-73). */
.eng-offer-occ { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.eng-offer-occ svg { color: var(--green-dark); flex-shrink: 0; }

.eng-beds-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 4px 0 6px; }
.eng-beds-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.eng-beds-item svg { color: var(--green-dark); flex-shrink: 0; }

.eng-offer-plans { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.eng-offer-plan {
  display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--field-line); background: var(--field); transition: border-color .12s, background .12s, transform .12s;
}
.eng-offer-plan:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--field)); transform: translateY(-1px); }
.eng-offer-plan:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.eng-offer-plan-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
.eng-offer-plan-add {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px;
  background: var(--green); color: #fff; box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.eng-offer-plan:hover .eng-offer-plan-add { background: var(--green-dark); }
.eng-offer-plan-price { font-size: 15.5px; }
.eng-offer-plan-price strong { font-size: 19px; }
.eng-offer-plan-unit { font-weight: 600; color: var(--ink); }
.eng-offer-details { align-self: flex-start; margin-top: 2px; display: inline-flex; align-items: center; gap: 4px; }
.eng-offer-details svg { transition: transform .15s ease; }
.eng-offer-details .eng-chevron-open { transform: rotate(180deg); }
.eng-offer-details-panel { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.eng-offer-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.eng-offer-facts li { display: flex; align-items: center; gap: 7px; }
.eng-offer-facts svg { color: var(--muted); flex-shrink: 0; }

/* Photos qui défilent sur la carte (MOT-79) : bande horizontale aimantée, flèches et compteur par-dessus. */
.eng-carousel { position: relative; }
.eng-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.eng-carousel-track::-webkit-scrollbar { display: none; }
.eng-carousel-track:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.eng-carousel-img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; scroll-snap-align: start; display: block; background: var(--soft); }
.eng-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.eng-carousel-btn.prev { left: 8px; }
.eng-carousel-btn.next { right: 8px; }
.eng-carousel-btn:disabled { opacity: 0; pointer-events: none; }
.eng-carousel-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eng-carousel-count { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums; }

.eng-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 16px; }
.eng-empty > svg { color: var(--muted); }

/* Badges maison par maison (D-45, 10 MOT-62) : même balisage/motif que le back-office (`.house-cards` /
   `.house-card`, StepAvailability.tsx + creation.css), sous des noms propres au moteur public pour ne jamais
   entrer en conflit avec les styles du back-office (même bundle). Grille, jamais de défilement : les 5
   maisons restent visibles, y compris à 390 px (empilées en une colonne, D-45 §1). */
.eng-house-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.eng-house-card {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap;
  padding: 11px 14px; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--house, var(--line));
  border-radius: var(--radius); background: var(--paper); transition: border-color .14s, box-shadow .14s, transform .14s;
}
.eng-house-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); border-left-color: var(--house); transform: translateY(-1px); }
.eng-house-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eng-house-card.full { background: var(--soft); }
.eng-house-card-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); font-size: 13px; }
.eng-house-card-from { font-size: 14px; white-space: nowrap; }
.eng-house-card-from strong { color: var(--ink); font-size: 16px; letter-spacing: -.2px; }
.eng-house-card-meta { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }

/* Titre des autres maisons (MOT-90) : une invitation, en grand. */
.eng-others-title { font-size: 22px; font-weight: 700; margin: 14px 0 -2px; color: var(--ink); text-wrap: balance; }
@media (max-width: 640px) { .eng-others-title { font-size: 18px; } }

/* Sections par maison (D-45) : une par maison, dans l'ordre des badges — même motif que le back-office
   (house-section), adapté au style public. */
.eng-house-section {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px;
  border-left: 4px solid var(--house, var(--line)); scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.eng-house-section-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 17px; margin: 0; }
.eng-house-zoo { font-size: 14px; font-weight: 600; color: var(--green-dark); }
.eng-house-address { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.eng-house-address svg { color: var(--green-dark); flex-shrink: 0; }
.eng-cart-line-address { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; color: var(--muted); }
.eng-cart-line-address svg { color: var(--green-dark); flex-shrink: 0; }
/* Panier réunissant plusieurs maisons (MOT-90) : petit « i » orange entre les dates et la première chambre. */
.eng-cart-multi-address { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13.5px; color: var(--ink); }
.eng-info-i {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: #e8811a; color: #fff; font: 700 13px/1 Georgia, 'Times New Roman', serif; font-style: italic;
}
.eng-house-full { display: flex; flex-direction: column; gap: 8px; font-size: 13px; padding: 2px 2px 4px; }
.eng-house-full > p { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.eng-house-others-note { font-size: 12px; color: var(--muted); margin-top: -2px; }

/* Fiche catégorie */
.eng-category { display: flex; flex-direction: column; gap: 12px; }
.eng-plans { display: flex; flex-direction: column; gap: 10px; }
.eng-plans .radio-card span { font-size: 13px; line-height: 1.5; }

/* Panier */
.eng-cart { display: flex; flex-direction: column; gap: 14px; }
.eng-cart-lines { display: flex; flex-direction: column; gap: 12px; }
.eng-cart-line { display: flex; flex-direction: column; gap: 10px; }
.eng-extras { display: flex; flex-direction: column; gap: 8px; }
.eng-cart-summary { display: flex; flex-direction: column; gap: 10px; }

/* Panier en haut de page (Baptiste, 27/09/2026, MOT-71) : entre la carte récapitulative et les sections de
   maison, pleine largeur — remplace la colonne collante/barre mobile fixe. `scroll-margin-top` : décalage sous
   l'en-tête collant pour la remontée automatique après un ajout (`scrollToCartPanel`, BookingEngine.tsx). */
.eng-cart-top { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.eng-cart-top h2 { font-size: 17px; margin: 0; }
.eng-cart-empty-hint { padding: 4px 2px; }

/* Ligne de panier riche (Baptiste, 27/09/2026, MOT-72, MOT-73) : photo, personnes modifiables, lits, condition
   d'annulation, prépaiement, prix — partagée par le panier du haut et le récapitulatif complet. */
.eng-cart-line-card { display: flex; gap: 14px; padding: 14px; align-items: flex-start; }
.eng-cart-line-photo { width: 128px; height: 128px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--soft); }
.eng-cart-line-photo.eng-illustration { display: grid; place-items: center; aspect-ratio: auto; }
.eng-cart-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* En-tête compact d'une ligne du panier (MOT-87) : nom | prix + annulation | retrait. */
.eng-cart-line-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: start; }
.eng-cart-line-title { display: flex; flex-direction: column; gap: 4px; }
.eng-cart-line-title h3 { margin: 0; }
.eng-cart-line-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.eng-cart-line-meta .eyebrow { margin: 0; }
.eng-cart-line-meta .eng-beds-row { margin: 0; gap: 12px; }
.eng-cart-line-meta .eng-beds-item { font-size: 13.5px; }
.eng-cart-line-meta .eng-beds-item svg { width: 20px; height: 20px; }
/* Adultes | Enfants | Options sur une ligne (MOT-89) ; en mobile, les options passent sous les compteurs. */
.eng-cart-line-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.eng-cart-line-controls .eng-extras-toggle { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
@media (max-width: 640px) {
  .eng-cart-line-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eng-cart-line-controls > :nth-child(3) { grid-column: 1 / -1; }
}
.eng-cart-line-body > .eng-offer-occ { margin: 2px 0 0; }
.eng-cart-line-pricebox { text-align: right; max-width: 280px; }
.eng-cart-line-pricebox .eng-cart-line-price { justify-content: flex-end; margin: 0; }
.eng-cart-line-cancel { margin: 2px 0 0; color: var(--ok); }
@media (max-width: 640px) {
  .eng-cart-line-head { grid-template-columns: minmax(0, 1fr) auto; }
  .eng-cart-line-pricebox { grid-column: 1 / -1; grid-row: 2; text-align: left; max-width: none; }
  .eng-cart-line-pricebox .eng-cart-line-price { justify-content: flex-start; }
}
.eng-cart-line-occ-edit { margin: 0; }
.eng-cart-line-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.eng-cart-line-price strong { font-size: 17px; }
@media (max-width: 560px) {
  .eng-cart-line-card { flex-direction: column; }
  .eng-cart-line-photo { width: 100%; height: 150px; }
}

/* Coordonnées */
.eng-consents { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; }
.eng-consents legend { font-size: 12px; font-weight: 650; color: var(--ink); padding: 0 0 6px; }
.eng-consents .check { font-size: 12.5px; }

/* Confirmation */
.eng-confirm { align-items: center; text-align: center; }
.eng-reservations { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.eng-reservations .pay-res-line { text-align: left; }

/* Fenêtre CGV / confidentialité */
.legal-doc { display: flex; flex-direction: column; gap: 14px; }
.legal-doc h3 { font-size: 13px; }
.legal-doc p { font-size: 12.5px; line-height: 1.6; color: var(--text); margin: 4px 0 0; }

/* ─── Élargissement bureau ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .eng-category-grid { grid-template-columns: repeat(2, 1fr); }
  /* Badges (D-45) : au-delà du mobile, carte « colonne » comme le back-office (nom, puis prix, puis ligne
     de métadonnées), plutôt que la ligne nom/prix du mobile. */
  .eng-house-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .eng-house-card { flex-direction: column; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; min-height: 82px; }
  .eng-house-card-meta { flex-basis: auto; }
}
@media (min-width: 900px) {
  .eng-category-grid { grid-template-columns: repeat(3, 1fr); }
  .eng-search { max-width: 640px; }
  .eng-search-row.eng-child-ages { grid-template-columns: repeat(4, 1fr); }
  .eng-house-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  /* 5 colonnes : les 5 maisons tiennent toutes sur un écran de bureau (D-45, testé à 1440 px). */
  .eng-house-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* styles/engine-real.css */
/* Interface réelle du moteur : seuls ajouts au CSS du prototype validé (chargé à la fin, n'en modifie aucune
   règle). Emplacement du vrai Stripe Payment Element (qui remplace les trois champs simulés) et du widget
   Turnstile, affiché seulement quand Cloudflare demande une vérification. */
.pay-stripe-element { min-height: 180px; }
.eng-turnstile:empty { display: none; }
.eng-turnstile { display: flex; justify-content: center; margin-top: 12px; }
