/* hotel-direct — souverain : fontes système, zéro ressource externe. */

:root {
  --paper: #fbf7ee;
  --ink: #2a2a28;
  --ink-soft: #5c5647;
  --ink-faint: #8a7f63;
  --line: #e6dec9;
  --accent: #b5502f;
  --accent-soft: #f3ecd9;
  --ok: #3b6d11;
  --err: #a32d2d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.embed .wrap { padding: 8px 8px 24px; }

header.site { text-align: center; margin-bottom: 20px; }
header.site .site-logo { max-height: 84px; max-width: 220px; width: auto; margin: 4px auto 12px; display: block; object-fit: contain; }
header.site h1 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; margin: 0 0 4px; font-weight: 500; }
header.site p { color: var(--ink-soft); font-size: 14px; margin: 0; }
footer.site .site-address { white-space: normal; line-height: 1.5; margin: 0 0 6px; }

.lang-switch { text-align: right; font-size: 13px; margin-bottom: 8px; }
.lang-switch a { color: var(--ink-faint); text-decoration: none; padding: 2px 6px; }
.lang-switch a.active { color: var(--accent); font-weight: 600; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 12px 8px; font-size: 15px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-soft); font-family: inherit;
}
.tabs button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }

label { display: block; font-size: 13px; color: var(--ink-soft); margin: 14px 0 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 70px; resize: vertical; }

.row { display: flex; gap: 12px; }
.row > div { flex: 1; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slots button {
  padding: 8px 14px; font-size: 15px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.slots button.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.rooms-list { margin-top: 8px; }
.room-choice {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer;
  width: 100%; background: #fff; color: var(--ink); text-align: left;
  font-family: inherit; font-size: 15px;
}
.room-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.room-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.room-choice .name { font-weight: 600; }
.room-choice .meta { font-size: 13px; color: var(--ink-soft); }

button.primary {
  display: block; width: 100%; margin-top: 20px; padding: 13px;
  font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
}
button.primary:disabled { opacity: 0.5; cursor: default; }

.notice { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.notice.ok { background: #eaf3de; color: var(--ok); }
.notice.err { background: #fcebeb; color: var(--err); }
.notice.info { background: var(--accent-soft); color: var(--ink-soft); }
.notice.warn { background: #faeeda; color: #854f0b; border: 1px solid #efd9ad; }

/* Jauge de remplissage par service (vue du jour admin) */
.gauge { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.gauge-label { flex: 0 0 150px; color: var(--ink-soft); }
.gauge-bar { flex: 1; height: 10px; background: #eee7d4; border-radius: 999px; overflow: hidden; }
.gauge-fill { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.gauge.warm .gauge-fill { background: #ba7517; }
.gauge.full .gauge-fill { background: var(--err); }
.gauge-num { flex: 0 0 auto; color: var(--ink-soft); white-space: nowrap; }
.gauge.warm .gauge-num { color: #854f0b; font-weight: 600; }
.gauge.full .gauge-num { color: var(--err); font-weight: 600; }

.hp { position: absolute; left: -9999px; top: -9999px; }

footer.site { text-align: center; margin-top: 24px; font-size: 12px; color: var(--ink-faint); }

/* ── Menu public (ardoise / photo / PDF) ── */
.ardoise-pub {
  background: #2b2b28; border: 10px solid #4a3a28; border-radius: 10px;
  padding: 26px; color: #f0e9d6; box-shadow: 0 14px 34px rgba(38, 30, 15, 0.25);
}
.ardoise-pub .date {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #c9b98d;
  margin-bottom: 12px;
}
.ardoise-pub ul { list-style: none; margin: 0; padding: 0; }
.ardoise-pub li {
  padding: 9px 0; font-family: Georgia, 'Times New Roman', serif; font-size: 18px;
  border-bottom: 1px dashed rgba(240, 233, 214, 0.2);
}
.ardoise-pub li:last-child { border-bottom: none; }
.menu-photo { width: 100%; border-radius: 10px; box-shadow: 0 10px 28px rgba(38, 30, 15, 0.2); }
.menu-pdf { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 10px; }

/* ── Pages message / annulation ── */
.message-page { max-width: 480px; margin: 60px auto; padding: 0 16px; text-align: center; }
.message-page .badge { font-size: 40px; }
.message-page p { font-size: 17px; }

/* ── Admin ── */
.admin body, body.admin { background: #f4f2ec; }
.admin-wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 60px; }
.admin-wrap h1 { font-size: 22px; }
.admin-wrap h2 { font-size: 17px; margin: 28px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.pending-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pending-item:last-child { border-bottom: none; }
.pending-item .what { flex: 1 1 260px; }
.pending-item .who { font-size: 13px; color: var(--ink-soft); }
.badge-conflict { background: #fcebeb; color: var(--err); font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.btn { padding: 8px 14px; font-size: 14px; cursor: pointer; font-family: inherit; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn.small { padding: 4px 10px; font-size: 13px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.list th { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.cal-grid { border-collapse: collapse; font-size: 11px; }
.cal-grid th, .cal-grid td { border: 1px solid var(--line); padding: 3px 4px; text-align: center; min-width: 22px; }
.cal-grid td.booked { background: var(--accent); }
.cal-grid td.closed { background: var(--ink-faint); }
.cal-grid td.free { background: #fff; }
.legend { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.legend span { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); vertical-align: -2px; margin: 0 4px 0 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.form-grid label { margin-top: 0; }
.hint { font-size: 12px; color: var(--ink-faint); }
.login-box { max-width: 360px; margin: 80px auto; }

@media (max-width: 640px) {
  .row { flex-direction: column; gap: 0; }
}

/* ── Publication des menus (admin, téléphone d'abord) ── */
.menu-slot { padding: 12px 0; border-top: 1px solid var(--line); }
.menu-slot:first-of-type { border-top: none; }
.menu-slot h3 a { margin-left: 10px; font-weight: 400; }
.menu-publish { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.menu-cam { display: inline-block; cursor: pointer; padding: 12px 16px; font-size: 15px; }
.menu-text { flex: 1 1 240px; min-height: 74px; }
.menu-send { padding: 12px 20px; font-size: 15px; }

/* ── Admin sur mobile : le patron n'a pas de PC (principe 10.07) ── */
@media (max-width: 640px) {
  .admin-wrap table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-wrap .form-grid { grid-template-columns: 1fr; }
  .pending-item .what { flex-basis: 100%; }
  .pending-item button { flex: 1; padding: 12px 8px; }
}
