/* ===== Sono Presta 29 — Espace admin ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #16233B;
  --ink-light: #22335A;
  --gold: #D6A94A;
  --gold-dark: #B98A2E;
  --sea: #3E7068;
  --cream: #F7F2E7;
  --coral: #C1523A;
  --text-dark: #1C1B18;
  --text-muted: #6B6558;
  --border: #E4DCC8;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--ink); }

.topbar {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.topbar .brand .bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}
.topbar .brand .bars span {
  width: 3px;
  background: var(--gold);
  border-radius: 1px;
}
.topbar .brand .bars span:nth-child(1) { height: 40%; }
.topbar .brand .bars span:nth-child(2) { height: 100%; }
.topbar .brand .bars span:nth-child(3) { height: 65%; }
.topbar .brand .bars span:nth-child(4) { height: 85%; }

.topbar nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.topbar nav a { color: #DCE2EE; text-decoration: none; }
.topbar nav a:hover { color: #fff; }
.topbar nav .user { color: var(--gold); font-weight: 600; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.subtitle { color: var(--text-muted); margin: 0 0 24px; font-size: 14px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink-light); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-dark); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: var(--coral); }

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters select, .filters input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22,35,59,0.08);
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FBF8F1; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge.a-venir { background: #FCEFD8; color: var(--gold-dark); }
.badge.confirme { background: #E1EEE9; color: var(--sea); }
.badge.termine { background: #E7E4DC; color: var(--text-muted); }
.badge.annule { background: #F6DFDA; color: var(--coral); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(22,35,59,0.08);
  margin-bottom: 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
input[type=text], input[type=date], input[type=number], input[type=tel],
input[type=email], input[type=password], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
textarea { resize: vertical; min-height: 80px; }
.checkbox-row { display: flex; gap: 18px; flex-wrap: wrap; }
.checkbox-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }

.info-line { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.info-line .label { color: var(--text-muted); min-width: 170px; }

.link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FBF8F1;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
}
.link-box input {
  border: none;
  background: transparent;
  font-family: monospace;
  font-size: 13px;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.login-card {
  background: #fff;
  padding: 40px 36px;
  border-radius: 12px;
  width: 340px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.login-card h1 { text-align: center; }
.login-card .subtitle { text-align: center; }
.error-msg {
  background: #F6DFDA;
  color: var(--coral);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.success-msg {
  background: #E1EEE9;
  color: var(--sea);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
