/* Bloc 6 - thème public réservation */
:root {
  --resa-primary: #102f4e;
  --resa-accent: #c8a35c;
  --resa-surface: #ffffff;
  --resa-bg: #f4efe7;
  --resa-text: #1f2933;
  --resa-muted: #667085;
  --resa-border: rgba(16, 47, 78, .16);
  --resa-shadow: 0 24px 70px rgba(16, 47, 78, .18);
  --resa-radius: 24px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body.resa-public {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--resa-text);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--resa-accent) 26%, transparent) 0, transparent 34rem),
    linear-gradient(135deg, color-mix(in srgb, var(--resa-primary) 12%, var(--resa-bg)) 0%, var(--resa-bg) 45%, #fff 100%);
}

.resa-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
}

.resa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: stretch;
}

.resa-hero-panel,
.resa-card {
  background: color-mix(in srgb, var(--resa-surface) 94%, transparent);
  border: 1px solid var(--resa-border);
  border-radius: var(--resa-radius);
  box-shadow: var(--resa-shadow);
  backdrop-filter: blur(8px);
}

.resa-hero-panel {
  min-height: 100%;
  padding: clamp(26px, 4vw, 46px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resa-hero-panel::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid color-mix(in srgb, var(--resa-accent) 42%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 34px color-mix(in srgb, var(--resa-accent) 10%, transparent);
  pointer-events: none;
}

.resa-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.resa-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--resa-primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: .05em;
  border: 2px solid color-mix(in srgb, var(--resa-accent) 58%, #fff);
  flex: 0 0 auto;
}
.resa-brand-mark--logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.resa-brand-logo {
  display: block;
  width: var(--resa-logo-width, 118px);
  height: var(--resa-logo-height, 58px);
  max-width: min(42vw, 240px);
  max-height: 120px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}
.resa-brand-text { line-height: 1.25; min-width: 0; }
.resa-brand-kicker {
  color: var(--resa-accent);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.resa-brand-name { font-weight: 800; color: var(--resa-primary); }


.resa-title {
  margin: 0;
  color: var(--resa-primary);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.05em;
  position: relative;
  z-index: 1;
}
.resa-subtitle {
  max-width: 640px;
  margin: 22px 0 0;
  color: color-mix(in srgb, var(--resa-text) 78%, white);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.resa-intro-box {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--resa-primary) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--resa-primary) 14%, transparent);
  color: color-mix(in srgb, var(--resa-text) 86%, white);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.resa-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.resa-link {
  color: var(--resa-primary);
  text-decoration: none;
  font-weight: 750;
  border-bottom: 2px solid color-mix(in srgb, var(--resa-accent) 65%, transparent);
}

.resa-card { padding: clamp(20px, 3vw, 34px); }
.resa-card h1, .resa-card h2 { margin: 0 0 16px; color: var(--resa-primary); }
.resa-form { display: grid; gap: 16px; }
.resa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.resa-field { display: grid; gap: 7px; }
.resa-field-full { grid-column: 1 / -1; }
.resa-label { font-weight: 760; color: color-mix(in srgb, var(--resa-primary) 88%, black); font-size: .95rem; }
.resa-help { margin: 4px 0 0; color: var(--resa-muted); font-size: .92rem; line-height: 1.4; }
.resa-form input,
.resa-form select,
.resa-form textarea,
.resa-card input[type="text"] {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--resa-primary) 18%, #d0d5dd);
  background: #fff;
  color: var(--resa-text);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.resa-form textarea { min-height: 108px; resize: vertical; }
.resa-form input:focus,
.resa-form select:focus,
.resa-form textarea:focus,
.resa-card input[type="text"]:focus {
  border-color: var(--resa-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--resa-accent) 22%, transparent);
}
.resa-form input:disabled,
.resa-form select:disabled { background: #f2f4f7; color: #98a2b3; }

.resa-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.resa-btn,
.resa-card .btn,
.resa-form button,
.resa-card button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--resa-primary);
  color: #fff;
  box-shadow: 0 14px 26px rgba(16, 47, 78, .18);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.resa-btn:hover,
.resa-card .btn:hover,
.resa-form button:hover,
.resa-card button:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(16, 47, 78, .22); }
.resa-btn-secondary,
.resa-card .btn-secondary,
.resa-card .secondary { background: color-mix(in srgb, var(--resa-primary) 74%, #667085); }
.resa-btn-danger,
.resa-card .btn-danger { background: #b42318; }
.resa-form button:disabled,
.resa-card button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.resa-error,
p.error {
  color: #912018;
  background: #fff1f1;
  border: 1px solid #fecdca;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 6px 0 0;
}
.resa-notice,
.resa-card .notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--resa-accent) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--resa-accent) 40%, #fff);
  color: color-mix(in srgb, var(--resa-text) 88%, black);
  margin: 16px 0;
}
.resa-card .error {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff1f1;
  border: 1px solid #fecdca;
  color: #912018;
}

.resa-status-table,
.resa-card table { width: 100%; border-collapse: collapse; margin: 18px 0; overflow: hidden; border-radius: 16px; }
.resa-card th,
.resa-card td { padding: 12px 14px; border: 1px solid var(--resa-border); text-align: left; vertical-align: top; }
.resa-card th { background: color-mix(in srgb, var(--resa-primary) 8%, #fff); color: var(--resa-primary); width: 34%; }
.status-annulated { background-color: #7f1d1d !important; color: white !important; }
.status-validated { background-color: #166534 !important; color: white !important; }
.status-pending { background-color: #fef3c7 !important; color: #7c2d12 !important; }
.status-refused { background-color: #b42318 !important; color: white !important; }
.status-past { background-color: #667085 !important; color: white !important; }

.resa-footer-note { margin-top: 22px; color: var(--resa-muted); font-size: .88rem; line-height: 1.45; }

.resa-powered {
  width: min(100% - 32px, 1180px);
  margin: -18px auto 26px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--resa-primary) 54%, white);
  opacity: .72;
}
.resa-powered a,
.resa-powered span {
  color: inherit;
  text-decoration: none;
}
.resa-powered a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 880px) {
  .resa-hero { grid-template-columns: 1fr; }
  .resa-hero-panel { min-height: auto; }
}
@media (max-width: 640px) {
  .resa-page { width: min(100% - 20px, 1120px); padding: 14px 0 28px; }
  .resa-grid { grid-template-columns: 1fr; }
  .resa-card, .resa-hero-panel { border-radius: 18px; }
  .resa-title { font-size: 2.25rem; }
  .resa-card th, .resa-card td { display: block; width: 100%; }
  .resa-card tr { display: block; margin-bottom: 12px; border: 1px solid var(--resa-border); border-radius: 16px; overflow: hidden; }
}


@media (max-width: 720px) {
  .resa-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .resa-brand-logo {
    max-width: 100%;
    height: auto;
  }
}

/* Disponibilité indicative issue du plan de salle */
.resa-capacity {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--resa-primary) 16%, transparent);
  background: color-mix(in srgb, var(--resa-primary) 6%, #fff);
  color: color-mix(in srgb, var(--resa-primary) 86%, #111827);
  font-size: .92rem;
  line-height: 1.38;
}
.resa-capacity.is-warning {
  border-color: #fecdca;
  background: #fff1f1;
  color: #912018;
}
