:root {
  /* Couleur principale Santy — Pantone 633C */
  --primary: #007197;
  --primary-dark: #00506b;
  /* Gamme chromatique secondaire Santy */
  --accent-peach: #f8b480;
  --accent-gold: #f2b325;
  --accent-cream: #f6e0a4;
  --accent-blue-grey: #bbccdb;

  --bg: #f4f7f9;
  --card-bg: #ffffff;
  --border: #dde5ea;
  --text: #17242b;
  --text-muted: #5c6b72;
  --success: #1c7c3f;
  --success-bg: #e7f6ec;
  --danger: #b3261e;
  --danger-bg: #fce8e6;
  --radius: 10px;
  --font-brand: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-brand);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, label, button, .btn, .pill {
  font-weight: 600;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header.app-header {
  background: var(--primary);
  color: #fff;
  padding: 18px 16px;
  /*border-bottom: 3px solid var(--accent-peach);*/
}

header.app-header .wrap {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

header.app-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

header.app-header .brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

header.app-header h1 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

header.app-header nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  margin-left: 16px;
  font-size: 0.9rem;
  font-weight: 400;
}

header.app-header nav a:hover { opacity: 1; text-decoration: underline; }

h2 { font-size: 1.1rem; margin-top: 0; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.muted { color: var(--text-muted); font-size: 0.92rem; }

label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 14px;
  background: #fff;
  color: var(--text);
}

button, .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .btn:hover { background: var(--primary-dark); }

button.secondary, .btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

button.danger, .btn.danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.pill {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }

.slot-btn {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  padding: 12px 6px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.slot-btn:hover, .slot-btn.selected { background: var(--primary); color: #fff; }

.lieu-block, .date-block { display: none; }
.lieu-block.active, .date-block.active { display: block; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.92rem; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { background: #e7f1f4; }

.status-libre { color: var(--success); }
.status-reserve { color: var(--text-muted); }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters > div { min-width: 160px; }
.filters label { margin-bottom: 6px; }
.filters input, .filters select { margin-bottom: 0; }

.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }

.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #e7f1f4;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  word-break: break-all;
}

footer.app-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
footer.app-footer p { margin: 0; }
footer.app-footer .footer-logo { height: 22px; width: auto; opacity: 0.85; }

.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo img { height: 42px; width: auto; }
