/* Rubrique 04 : connexion OTP et gestion des participants */
.boot { padding: 120px var(--gutter); text-align: center; color: var(--grey-85); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.signin { background: var(--black); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.signin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.signin h1 { margin: 0 0 24px; font-weight: 200; text-transform: uppercase; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: .05em; }
.signin-grid > div > p { color: var(--grey-45); }
.audiences { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.audiences li { padding-left: 22px; position: relative; color: rgba(255,255,255,.85); font-size: 15px; }
.audiences li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--green); }
.card-form { background: var(--white); color: var(--black); padding: clamp(28px, 4vw, 44px); }
.form-title { margin: 0 0 6px; font-size: 22px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.card-form .hint { margin: 0 0 28px; font-size: 14px; color: var(--grey-85); }
.btn-block { width: 100%; }
.row-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 16px 0 0; }

.app-bar { background: var(--black); color: var(--white); padding: 40px 0 36px; }
.app-bar-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.app-bar .eyebrow { color: var(--grey-45); margin-bottom: 12px; }
.app-title { margin: 0; font-weight: 200; text-transform: uppercase; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: .05em; }
.who-am-i { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: rgba(255,255,255,.8); }
.who-am-i .link-btn { color: var(--white); }
.app-body { padding-top: 32px; padding-bottom: 96px; }

.stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--grey-13); margin-bottom: 28px; }
.stat { flex: 1 1 140px; padding: 16px 20px; border-right: 1px solid var(--grey-13); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: 28px; font-weight: 300; line-height: 1.1; }
.stat .l { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--grey-45); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters input[type="search"], .filters select { min-height: 42px; width: auto; font-size: 15px; }
.filters input[type="search"] { width: 200px; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--grey-85); cursor: pointer; }
.inline-check input { width: 16px; height: 16px; min-height: 0; accent-color: var(--black); }

.table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--black); }
table.guests { min-width: 900px; }
table.guests th, table.guests td { padding: 14px 16px 14px 0; font-size: 15px; vertical-align: top; }
table.guests td.nowrap { white-space: nowrap; }
table.guests th { white-space: nowrap; border-bottom-color: var(--grey-13); }
table.guests td.name { font-weight: 400; min-width: 160px; }
table.guests td .sub { display: block; font-size: 13px; color: var(--grey-45); }
table.guests tr.is-cancelled td { color: var(--grey-45); }
table.guests tr.is-cancelled td.name { text-decoration: line-through; }
table.guests td.actions { text-align: right; white-space: nowrap; }
.status { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--grey-13); color: var(--grey-85); white-space: nowrap; }
.empty { padding: 40px 0; color: var(--grey-85); }

dialog#guest-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; color: var(--black); }
dialog#guest-dialog::backdrop { background: rgba(0,0,0,.6); }
#guest-form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--grey-13); }
.dlg-head h2 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.icon-close { width: 40px; height: 40px; border: 1px solid var(--grey-13); border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.icon-close:hover { border-color: var(--black); }
.dlg-body { padding: 8px 28px 8px; overflow-y: auto; }
.dlg-note { font-size: 14px; color: var(--grey-85); margin: 14px 0 6px; }
fieldset { border: 0; padding: 0; margin: 20px 0 4px; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--black); font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0 20px; }
.dlg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--grey-13); background: var(--grey-05); }
.dlg-foot .spacer { flex: 1; }

@media (max-width: 760px) {
  .signin-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .filters input[type="search"] { width: 100%; }
  .filters { width: 100%; }
  .filters select { flex: 1; }
  .toolbar .btn-dark { width: 100%; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 18px; padding-right: 18px; }
  .dlg-foot .btn { flex: 1; }
  .dlg-foot .spacer { display: none; }
  table.guests { min-width: 640px; }
  table.guests th:nth-child(6), table.guests td:nth-child(6),
  table.guests th:nth-child(7), table.guests td:nth-child(7) { display: none; }
}
