:root {
  --violet: #543266;
  --teal: #007d83;
  --paper: #f5f3ee;
  --ink: #262531;
  --line: #dedbd5;
  --muted: #706d77;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
h2 {
  font-size: 29px;
}
h3 {
  font-size: 17px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}
button:hover {
  border-color: var(--teal);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary,
.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}
button.teal {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
button.danger {
  color: #a02c37;
  border-color: #d9afb4;
}
.ghost {
  background: transparent;
}
label {
  display: block;
  font-weight: 600;
  margin: 0 0 15px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #ccc8c2;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 80px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8bd4d1;
  outline-offset: 2px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 17px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.test-banner {
  padding: 7px 20px;
  text-align: center;
  background: #e6dfeb;
  color: #51365e;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.login-shell {
  max-width: 1150px;
  min-height: calc(100vh - 30px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 90px;
  padding: 65px 40px;
}
.intro h1 {
  font-size: 70px;
  line-height: 1.12;
  color: var(--violet);
}
.intro > p {
  font-size: 17px;
}
.color-lines {
  display: flex;
  width: 160px;
  height: 5px;
  gap: 8px;
  margin: 35px 0;
}
.color-lines span {
  width: 50%;
  background: var(--teal);
}
.color-lines span + span {
  background: var(--violet);
}
.login-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px #30213b09;
}
.login-card .primary {
  width: 100%;
}
.login-card h2 {
  margin-bottom: 10px;
}
#workspace {
  display: flex;
  min-height: calc(100vh - 30px);
}
[hidden] {
  display: none !important;
}
aside {
  width: 230px;
  background: #30233c;
  color: #fff;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 30px;
  bottom: 0;
}
.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 44px;
}
.brand span {
  color: #87d7d4;
}
.brand small {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  margin-top: 5px;
  color: #d0c4d5;
}
nav button {
  width: 100%;
  text-align: left;
  background: none;
  color: #e0d7e6;
  border: 0;
  margin-bottom: 8px;
  padding: 12px;
}
nav button.active {
  background: #ffffff18;
  border-left: 3px solid #8ed7d2;
  border-radius: 0 5px 5px 0;
}
.aside-bottom {
  margin-top: auto;
  font-size: 12px;
}
.aside-bottom button {
  margin-top: 12px;
  color: white;
  border-color: #ffffff30;
  font-size: 12px;
}
.workspace-main {
  margin-left: 230px;
  padding: 38px 45px 70px;
  width: calc(100% - 230px);
  max-width: 1600px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
header .eyebrow {
  margin-bottom: 8px;
}
.connected {
  font-size: 12px;
  color: var(--teal);
}
.offline {
  color: #9b303b;
}
.hero {
  background: var(--violet);
  color: white;
  padding: 30px 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  border-radius: 3px;
}
.hero h2 {
  margin-bottom: 10px;
  max-width: 620px;
}
.hero p {
  margin-bottom: 0;
  color: #e0d5e6;
}
.hero .date {
  font-family: Georgia, serif;
  font-size: 28px;
  text-align: right;
  min-width: 140px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
}
.stat strong {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  display: block;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 24px;
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.zone-card {
  background: white;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
}
.zone-card.z2 {
  border-top-color: var(--teal);
}
.zone-card.z3 {
  border-top-color: #958b74;
}
.zone-card strong {
  font-size: 26px;
  font-family: Georgia, serif;
}
.badge {
  font-size: 12px;
  display: inline-block;
  border-radius: 4px;
  padding: 4px 8px;
  background: #eee7f3;
  color: var(--violet);
  white-space: nowrap;
}
.badge.z2 {
  background: #dff1ef;
  color: #006d72;
}
.badge.z3 {
  background: #f0ede5;
  color: #5b5140;
}
.badge.cancel {
  background: #fae5e7;
  color: #92313c;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 320px;
  margin: 0;
}
.toolbar select {
  width: auto;
  margin: 0;
}
.toolbar .spacer {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  padding: 13px 15px;
  background: #edeae5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #67616b;
}
td {
  padding: 14px 15px;
  border-bottom: 1px solid #ebe8e2;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.table-wrap button {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.scan-result {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-top: 6px solid var(--violet);
  margin-top: 20px;
}
.scan-result.z2 {
  border-top-color: var(--teal);
}
.scan-result.z3 {
  border-top-color: #958b74;
}
.scan-result h2 {
  margin: 14px 0;
}
.status {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.status.alert {
  color: #a02c37;
}
.placement {
  font-size: 21px;
  margin: 18px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.note {
  background: #f5f2e9;
  padding: 14px;
  font-size: 13px;
}
.instruction {
  margin-bottom: 20px;
  max-width: 800px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  padding: 30px;
  width: min(760px, 94vw);
  max-height: 90vh;
  border-radius: 9px;
  color: var(--ink);
}
dialog::backdrop {
  background: #20152ba0;
}
.close {
  float: right;
  padding: 2px 10px;
  font-size: 25px;
  margin-bottom: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 15px 24px;
  background: #282433;
  color: white;
  border-radius: 7px;
  box-shadow: 0 5px 25px #0003;
  z-index: 10;
}
#reader {
  max-width: 450px;
  margin: 20px auto;
}
#reader video {
  border-radius: 8px;
}
#scan-input {
  font-family: monospace;
}
.invitation-page {
  max-width: 740px;
  margin: 40px auto;
  padding: 50px;
  background: white;
  border: 1px solid var(--line);
  text-align: center;
}
.invitation-page h1 {
  font-size: 34px;
}
.invitation-page .guest-name {
  font-family: Georgia, serif;
  font-size: 29px;
  color: var(--violet);
  margin: 25px 0;
}
.invitation-page img {
  width: 225px;
  height: 225px;
}
.invitation-page .actions {
  justify-content: center;
}
.invitation-page .event-title {
  font-family: Georgia, serif;
  font-size: 22px;
}
.separator {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.print-only {
  display: none;
}
@media (max-width: 1000px) {
  .workspace-main {
    padding: 30px 22px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .zone-grid {
    gap: 10px;
  }
  .login-shell {
    gap: 35px;
  }
  .intro h1 {
    font-size: 55px;
  }
}
@media (max-width: 700px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    gap: 20px;
  }
  .intro h1 {
    font-size: 42px;
  }
  .intro .muted,
  .color-lines {
    display: none;
  }
  aside {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .brand {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .brand small {
    display: none;
  }
  #workspace {
    display: block;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    font-size: 12px;
    margin: 0;
  }
  .aside-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .aside-bottom button {
    margin: 0;
  }
  .workspace-main {
    width: 100%;
    margin: 0;
    padding: 25px 16px;
  }
  header {
    display: block;
  }
  h1 {
    font-size: 30px;
  }
  .hero {
    padding: 23px;
    display: block;
  }
  .hero .date {
    text-align: left;
    font-size: 20px;
    margin-top: 20px;
  }
  .zone-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .stat {
    padding: 17px;
  }
  .invitation-page {
    margin: 15px;
    padding: 25px;
  }
  .test-banner {
    font-size: 9px;
  }
  .toolbar input {
    max-width: none;
  }
  dialog {
    padding: 20px;
  }
}
@media print {
  body {
    background: white;
  }
  .test-banner,
  aside,
  header,
  .toolbar,
  button,
  .no-print,
  #toast {
    display: none !important;
  }
  .workspace-main {
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .invitation-page {
    border: 0;
    margin: 0;
    max-width: none;
    padding: 15mm;
  }
  .print-only {
    display: block;
  }
  .table-wrap {
    border: 0;
    overflow: visible;
  }
  table {
    font-size: 10px;
  }
  th,
  td {
    padding: 6px;
  }
  tr {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  .badge {
    border: 1px solid #777;
  }
  .panel {
    border: 0;
    padding: 0;
  }
  a {
    color: black;
    text-decoration: none;
  }
}

@media screen and (max-width: 700px) {
  .table-wrap:has(#rows) {
    border: 0;
    background: transparent;
  }
  .table-wrap:has(#rows) thead {
    display: none;
  }
  #rows {
    display: block;
  }
  #rows tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border: 1px solid var(--line);
    margin-bottom: 12px;
    padding: 10px;
  }
  #rows td {
    border: 0;
    padding: 8px;
  }
  #rows td:first-child,
  #rows td:last-child {
    grid-column: 1/-1;
  }
  #rows td:nth-child(3)::before {
    content: "Placement : ";
    color: var(--muted);
  }
  #rows td:nth-child(4) {
    grid-column: 1/-1;
  }
  #rows td:nth-child(4)::before {
    content: "État : ";
    color: var(--muted);
  }
}

.login-logo{width:100px;height:100px;object-fit:contain;margin-bottom:20px;border-radius:50%}@media(max-width:700px){.login-logo{width:70px;height:70px}}
