* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f2f3f5;
  color: #1a1a2e;
}

.landing {
  min-height: 100vh;
  background: #4a2e1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
}
.landing .cup { font-size: 44px; margin-bottom: 6px; }
.landing h1 { color: #fff; font-size: 24px; margin: 0 0 2px; text-align: center; }
.landing .subtitle { color: #d9c3b0; margin: 0 0 28px; text-align: center; }

.week-nav {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.week-nav button {
  background: #6b4530;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
}
.week-nav .label { color: #f0e2d4; font-size: 14px; font-weight: 600; }

.days-list { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.day-card {
  background: #6b4530;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
}
.day-card.filled { background: #3f7a4f; }
.day-card .day-name { font-weight: 700; text-transform: capitalize; }
.day-card .day-date { color: #e6d5c5; font-size: 13px; }
.day-card.filled .day-date { color: #d7ecdc; }
.day-card .status { font-size: 13px; }

.admin-link { margin-top: 30px; color: #b39a86; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* App shell (detail screens) */
.app-header {
  background: #3a2417;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.app-header .title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; text-transform: capitalize; }
.app-header .date { color: #cbb6a4; font-size: 13px; margin-top: 2px; }
.back-btn {
  background: #5a3a26;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}

.content { padding: 20px 16px 90px; max-width: 620px; margin: 0 auto; }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

/* Name picker */
.names-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.name-btn {
  background: #6b4530;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.name-btn.autre { background: #4a2e1f; color: #d9c3b0; grid-column: 1 / span 2; }

/* Pointage (identique style app nettoyage) */
.pointage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; }
.pointage-grid .label { color: #888; font-size: 13px; margin-bottom: 10px; }
.geo-status { background: #eef0f4; border-radius: 10px; padding: 12px 8px; color: #888; font-size: 14px; margin-bottom: 6px; }
.geo-status.ok { background: #e4f7ea; color: #1f9d4e; font-weight: 600; }
.geo-status.err { background: #fdecec; color: #d33; font-weight: 600; }
.sortie-btn { width: 100%; background: #6b4530; color: #fff; border: none; border-radius: 10px; padding: 12px 8px; font-size: 14px; cursor: pointer; margin-bottom: 6px; }
.sortie-btn:disabled { background: #cdd3e0; cursor: not-allowed; }
.time-value { color: #444; font-size: 14px; font-weight: 600; }
.time-placeholder { color: #bbb; }

/* Questions */
.question-row {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.question-row .q-text { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.yn-buttons { display: flex; gap: 10px; }
.yn-btn {
  flex: 1;
  border: 2px solid #d8dbe3;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  color: #666;
}
.yn-btn.yes.active { background: #e4f7ea; border-color: #3fce7a; color: #1f9d4e; }
.yn-btn.no.active { background: #fdecec; border-color: #e05555; color: #c62828; }

.reminder-box {
  background: #fff6e0;
  border: 1px solid #f0d896;
  border-radius: 12px;
  padding: 14px 16px;
  color: #8a6d1f;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Admin */
.admin-login {
  min-height: 100vh;
  background: #2b2b47;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login h2 { color: #fff; margin-bottom: 18px; }
.admin-login input {
  width: 100%;
  max-width: 300px;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  margin-bottom: 12px;
}
.admin-login button {
  background: #3f6fce;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
}
.admin-login .error { color: #ff8080; font-size: 13px; margin-bottom: 10px; }

.admin-tabs { display: flex; background: #1c1c30; padding: 0 12px; }
.admin-tabs .tab { flex: 1; text-align: center; color: #a9abcf; padding: 12px 8px; cursor: pointer; font-size: 14px; border-bottom: 3px solid transparent; }
.admin-tabs .tab.active { color: #ff5c6c; border-bottom-color: #ff5c6c; font-weight: 600; }

.stat-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.stat-row .q-text { font-size: 14px; max-width: 70%; }
.stat-pct { font-weight: 700; font-size: 16px; }
.stat-pct.good { color: #1f9d4e; }
.stat-pct.bad { color: #c62828; }

.pay-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.pay-row .info .d { font-weight: 700; font-size: 14px; text-transform: capitalize; }
.pay-row .info .n { color: #888; font-size: 13px; }
.pay-toggle { display: flex; gap: 8px; }
.pay-btn { border: 2px solid #d8dbe3; background: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: #666; font-size: 13px; }
.pay-btn.yes.active { background: #e4f7ea; border-color: #3fce7a; color: #1f9d4e; }
.pay-btn.no.active { background: #fdecec; border-color: #e05555; color: #c62828; }

.loading-text { text-align: center; color: #999; padding: 40px 0; }
.recap-badge { display: inline-block; background: #e4f7ea; color: #1f9d4e; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
