@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap");
:root {
  --bg: #f7f6f2;
  --paper: #fffefa;
  --ink: #24322b;
  --muted: #788179;
  --line: #e5e7df;
  --green: #36745c;
  --green-light: #e8f0e8;
  --rose: #fff0e8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 29px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand span {
  font-size: 22px;
  color: var(--ink);
}
.brand small {
  display: block;
  font:
    11px "DM Sans",
    sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 26px;
}
nav a:hover {
  color: var(--green);
}
.hero {
  padding: 65px 0 55px;
  max-width: 800px;
}
.eyebrow,
.section-tag {
  color: var(--green);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}
.hero h1,
h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.13;
  margin: 16px 0 20px;
  letter-spacing: -1.8px;
}
em {
  color: var(--green);
  font-weight: 500;
}
.hero p {
  max-width: 590px;
  font-size: 16px;
  line-height: 1.8;
  color: #626c65;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}
.hero-meta span {
  padding: 10px 17px;
  border: 1px solid #dfe5db;
  background: #ecf1ea;
  border-radius: 50px;
  color: #42654f;
  font-size: 12px;
}
.columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 14px #1b302008;
}
.panel h2 {
  font-size: 30px;
  margin: 11px 0 10px;
}
.sub {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 23px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
input,
select {
  background: white;
  border: 1px solid #d9ded6;
  border-radius: 8px;
  padding: 13px 12px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  width: 100%;
  height: 44px;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #36745c18;
}
.pair,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vote-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 22px;
}
.vote-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
}
.vote-card strong {
  font-weight: 700;
  text-transform: capitalize;
}
.vote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.vote-options label {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}
.vote-options input {
  width: auto;
  accent-color: var(--green);
}
button,
.outline {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font:
    600 13px "DM Sans",
    sans-serif;
  padding: 13px 17px;
  transition: 0.15s;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #295b46;
}
.outline {
  border: 1px solid var(--line);
  background: #fff;
}
.quiet {
  background: #e9eee8;
  color: var(--ink);
}
.message {
  min-height: 17px;
  color: var(--green);
  font-size: 13px;
}
.result-row {
  margin: 20px 0;
}
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  text-transform: capitalize;
}
.result-head small {
  color: var(--muted);
}
.bar {
  display: flex;
  overflow: hidden;
  height: 9px;
  border-radius: 8px;
  background: #e7e8e4;
}
.bar .yes {
  background: #519a76;
}
.bar .maybe {
  background: #e2b766;
}
.bar .no {
  background: #d99d90;
}
.aside-note {
  background: #eff5ee;
  color: #53715e;
  line-height: 1.7;
  padding: 18px;
  border-radius: 10px;
  margin-top: 38px;
}
.foot {
  padding: 40px 0;
  color: #9aa29c;
  font-size: 12px;
}
.login {
  max-width: 500px;
  margin: 85px auto;
}
.login h1 {
  font-size: 38px;
}
.admin-heading {
  padding: 50px 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.admin-heading h1 {
  font-size: 45px;
  margin: 10px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.metric {
  background: var(--paper);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric small {
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
  font-family: Georgia, serif;
  font-weight: 500;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 34px 0 15px;
}
.tab {
  background: none;
  color: var(--muted);
}
.tab.active {
  background: var(--green);
  color: white;
}
.hidden {
  display: none;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 12px 0 18px;
}
.toolbar input {
  flex: 1;
}
.toolbar select {
  width: 210px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
}
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 50px;
  background: #edf0ea;
  color: #536b59;
  font-size: 11px;
}
.pill.Confirmé {
  background: #e3f4e7;
  color: #1d7444;
}
.pill.Absent {
  background: #fae7e5;
  color: #a94d49;
}
.mini {
  background: none;
  border: 1px solid var(--line);
  padding: 6px 9px;
  margin: 2px;
}
.mini.danger {
  color: #bd6560;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.about-list { padding-left: 22px; line-height: 1.8; }
.about-list li { margin-bottom: 18px; }
nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
@media (max-width: 700px) {
  .head { flex-wrap: wrap; gap: 15px; padding: 15px 0; }
  .head nav { flex-wrap: wrap; gap: 16px; }
}
.date-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 24px;
}
.date-form label {
  flex: 1;
  min-width: 160px;
  margin: 0;
}
.date-form button {
  margin-bottom: 0;
}
.date-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.date-item small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.space-top {
  margin-top: 20px;
}
.empty {
  color: var(--muted);
  padding: 20px 0;
}
.status-yes {
  color: #2e8762;
  font-weight: 700;
}
.status-maybe {
  color: #b28a33;
}
.status-no {
  color: #b96862;
}
@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding-top: 42px;
  }
  .admin-heading h1 {
    font-size: 36px;
  }
}
@media (max-width: 500px) {
  .shell {
    width: calc(100% - 24px);
  }
  .panel {
    padding: 19px;
  }
  .pair,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .head {
    min-height: 72px;
  }
  .brand span {
    font-size: 18px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  .toolbar {
    flex-direction: column;
  }
  .toolbar select {
    width: 100%;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

textarea {
  background: #fff;
  border: 1px solid #d9ded6;
  border-radius: 8px;
  padding: 13px 12px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  width: 100%;
  resize: vertical;
  outline: none;
}
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #36745c18;
}
.hero {
  max-width: none;
  min-height: 335px;
  background:
    linear-gradient(
      90deg,
      rgba(17, 35, 27, 0.88) 0%,
      rgba(24, 44, 33, 0.76) 43%,
      rgba(19, 35, 28, 0.04) 100%
    ),
    url("/static/images/apero-hero.jpg") center center/cover no-repeat;
  border-radius: 17px;
  margin: 28px 0;
  padding: 46px 40px 42px;
  color: white;
}
.hero .eyebrow,
.hero em {
  color: #d2edc7;
}
.hero h1 {
  max-width: 770px;
  font-size: clamp(35px, 5vw, 62px);
}
.hero p {
  color: #e8eee8;
  max-width: 570px;
}
.hero-meta span {
  background: #ffffffed;
  border-color: transparent;
  color: #274a33;
}
.dietary-cell {
  white-space: normal;
  min-width: 190px;
  max-width: 300px;
}
.shopping-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 28px;
}
.shopping-form {
  background: #f4f7f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 10px 0;
}
.shopping-done td:nth-child(2) {
  text-decoration: line-through;
  color: #89938c;
}
.shopping-done {
  background: #eff6ee;
}
.shopping-metrics .metric {
  padding: 16px;
}
.shopping-metrics .metric strong {
  font-size: 24px;
}
.shopping-form .form-grid {
  grid-template-columns: 2fr 1fr 1fr;
}
.shopping-form input,
.shopping-form select {
  width: 100%;
}
#shopping-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
@media (max-width: 700px) {
  .hero {
    padding: 32px 20px;
    min-height: 300px;
    background-position: 55% center;
  }
  .shopping-form .form-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-wrap: wrap;
  }
}
