/* K Bistro · parcours de réservation */
.rhead { background: var(--noir) var(--hex); color: #F3E6D6; padding: 140px 0 40px; }
.rhead .kick { color: var(--copper-3); }
.rhead h1 { font-size: clamp(38px, 5vw, 62px); }
.steps { list-style: none; display: flex; gap: 6px; margin: 34px 0 0; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 2px solid rgba(231, 167, 116, .22); font-size: 13.5px; color: #B9A38E; }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(231, 167, 116, .4); font-size: 13px; font-weight: 600; flex: none; }
.steps li em { font-style: normal; }
.steps li.cur { border-color: var(--copper-2); color: #FFF4E8; }
.steps li.cur span { background: var(--copper); border-color: var(--copper); color: #FFF7EE; }
.steps li.done { border-color: rgba(207, 122, 69, .7); color: #E3CDB6; }
.steps li.done span { background: rgba(207, 122, 69, .2); color: var(--copper-3); }

.rbody { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 44px; padding-bottom: 110px; }
.rbody--full { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.rcard { background: #FFFCF8; border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.rcard--flat { background: none; border: 0; padding: 0 0 8px; }
.rcard h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 18px; }
.rcard h3 { font-size: 26px; margin-bottom: 14px; }
.rc-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--copper); font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; cursor: pointer; }
.racts { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }

.rside { position: sticky; top: 96px; background: var(--brown) var(--hex); color: #F3E6D6; border-radius: 4px; padding: 26px; box-shadow: var(--shadow); }
.rside h3 { font-size: 26px; margin-bottom: 16px; color: #FFF4E8; }
.sum { margin: 0; display: grid; gap: 10px; }
.sum div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
.sum dt { color: #B9A38E; } .sum dd { margin: 0; font-weight: 600; }
.rcard .sum dt, .conf .sum dt { color: var(--muted); }
.sum--lg div { grid-template-columns: 120px minmax(0, 1fr); font-size: 15.5px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sum--lg div:last-child { border: 0; }
.sum__menus { margin: 18px 0; padding: 16px 0; border-top: 1px solid rgba(231, 167, 116, .25); border-bottom: 1px solid rgba(231, 167, 116, .25); display: grid; gap: 8px; font-size: 14.5px; }
.sum__menus div, .sum__tot div { display: flex; justify-content: space-between; gap: 10px; }
.rside .note { color: #B9A38E; margin: 0; }
.sum__tot { display: grid; gap: 8px; font-size: 14.5px; }
.sum__tot div:first-child b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: #FFF4E8; }
.sum__tot div:nth-child(2) b { color: var(--copper-3); }
.sum__tot .muted { color: #B9A38E; }
.rbar { display: none; }

/* Nombre de convives */
.qty { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.qty button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--copper); background: none; color: var(--copper); font-size: 24px; cursor: pointer; transition: .2s; }
.qty button:hover { background: var(--copper); color: #FFF7EE; }
.qty output { font-family: var(--serif); font-size: 52px; min-width: 52px; text-align: center; line-height: 1; color: var(--brown); }
.qty span { color: var(--muted); }

/* Calendrier */
.cal { max-width: 460px; }
.cal__hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal__hd b { font-family: var(--serif); font-size: 24px; font-weight: 500; text-transform: capitalize; }
.cal__hd button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 20px; cursor: pointer; }
.cal__hd button[disabled] { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal__grid i { font-style: normal; text-align: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 4px; }
.cal__grid button { aspect-ratio: 1; border-radius: 3px; border: 1px solid transparent; background: none; font-size: 15px; cursor: pointer; position: relative; transition: .15s; }
.cal__grid button.ok { background: #F7EBDD; border-color: #EAD3BB; font-weight: 600; color: var(--brown); }
.cal__grid button.ok:hover { border-color: var(--copper); }
.cal__grid button.full { color: #B39A85; text-decoration: line-through; cursor: not-allowed; }
.cal__grid button.no { color: #CDBBA9; cursor: not-allowed; }
.cal__grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ibis); }
.cal__grid button.sel { background: var(--copper); border-color: var(--copper); color: #FFF7EE; }
.cal__leg { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cal__leg span { display: inline-flex; align-items: center; gap: 6px; }
.cal__leg u { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.l-ok { background: #F7EBDD; border: 1px solid #EAD3BB; } .l-full { background: repeating-linear-gradient(45deg, #E6D6C5 0 2px, transparent 2px 5px); } .l-no { background: #EFE5DA; }
.slots__day { font-family: var(--serif); font-size: 22px; margin: 26px 0 6px; color: var(--brown); }
.slots h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.slots__row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-width: 92px; padding: 10px 14px; border: 1px solid #DDC6AE; background: #FFFCF8; border-radius: 3px; cursor: pointer; text-align: left; transition: .15s; }
.slot b { display: block; font-size: 17px; }
.slot small { font-size: 12px; color: var(--muted); }
.slot:hover:not([disabled]) { border-color: var(--copper); }
.slot.sel { background: var(--copper); border-color: var(--copper); color: #FFF7EE; }
.slot.sel small { color: #FFE3CC; }
.slot[disabled] { opacity: .45; cursor: not-allowed; background: #F4ECE2; }

/* Convives et menus */
.tally { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.tally__i { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: var(--sand); border-radius: 99px; font-size: 13.5px; }
.tally__c { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ibis); }
.tally__c.ok { color: #4F6B2E; }
.tally i, .fl, .guest__flag, .chip-l i { display: inline-flex; width: 18px; height: 12px; border-radius: 1px; overflow: hidden; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.tally i u, .fl u, .guest__flag u, .chip-l i u { flex: 1; text-decoration: none; }
.allsame { font-size: 14.5px; margin-bottom: 6px; }
.allsame summary { cursor: pointer; color: var(--copper); font-weight: 600; }
.allsame__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-l { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #DDC6AE; border-radius: 99px; background: #FFFCF8; cursor: pointer; font-size: 14px; }
.chip-l:hover { border-color: var(--copper); }
.guest { border: 1px solid var(--line); background: #FFFCF8; border-radius: 4px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.guest.open { border-color: var(--copper-2); box-shadow: var(--shadow); }
.guest.has:not(.open) { background: #FBF3E9; }
.guest__toggle { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: none; border: 0; cursor: pointer; text-align: left; }
.guest__toggle > span:nth-child(2) { flex: 1; display: grid; }
.guest__toggle b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.guest__toggle small { color: var(--muted); font-size: 13.5px; }
.guest__toggle em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--copper); }
.guest__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--brown); font-weight: 700; flex: none; }
.guest.has .guest__n { background: var(--copper); color: #FFF7EE; }
.guest__flag { width: 26px; height: 17px; }
.guest__bd { padding: 0 20px 20px; }
.guest__name { max-width: 360px; margin-bottom: 16px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mcard { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid #E3CCB4; background: #FFF; border-radius: 4px; overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.mcard:hover { transform: translateY(-2px); border-color: var(--copper-2); }
.mcard.on { border-color: var(--copper); box-shadow: 0 0 0 2px var(--copper); }
.mcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mcard__img i { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; }
.mcard__img i u { flex: 1; text-decoration: none; }
.mcard__bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mcard__bd b { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.1; }
.mcard__bd small { font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.mcard__ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mcard__ft em { font-style: normal; font-weight: 700; color: var(--brown); }
.mcard__sel { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--copper); color: var(--copper); }
.mcard.on .mcard__sel { background: var(--copper); color: #FFF7EE; }

/* Récapitulatif */
.recap-big { font-family: var(--serif); font-size: 28px; color: var(--brown); margin-bottom: 16px; }
.qlist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.qlist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #F8EEE2; border-radius: 3px; }
.qlist small { color: var(--muted); margin-left: 6px; }
.qlist--sm li { padding: 8px 12px; font-size: 14px; }
.gtable { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 16px; }
.gtable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.gtable td { padding: 10px 6px; border-bottom: 1px solid #EFE2D3; }
.gtable .num { text-align: right; white-space: nowrap; }
.totals { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.totals small { display: block; color: var(--muted); font-size: 12.5px; }
.totals div:first-child b { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.totals .hl { background: #FBEEDF; margin: 0 -12px; padding: 10px 12px; border-radius: 3px; }
.totals .hl b { color: var(--copper); font-size: 18px; }
.accept { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 16px; cursor: pointer; }
.accept input { width: 20px; height: 20px; accent-color: var(--copper); margin-top: 2px; flex: none; }

/* Paiement simulé */
.sim-banner { background: repeating-linear-gradient(-45deg, #FBEEDF 0 12px, #F8E6D2 12px 24px); border: 1px dashed #D9A16E; color: #6E3A16; padding: 14px 16px; border-radius: 3px; font-size: 14px; margin-bottom: 24px; }
.sim-banner b { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 4px; color: var(--copper); }
.pay__amt { display: grid; gap: 2px; margin-bottom: 24px; }
.pay__amt small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.pay__amt b { font-family: var(--serif); font-size: 64px; font-weight: 500; line-height: 1; color: var(--brown); }
.pay__amt span { color: var(--muted); font-size: 14px; }
.pay__h { font-family: var(--sans); font-size: 14px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pm { display: block; cursor: pointer; }
.pm input { position: absolute; opacity: 0; }
.pm__card { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--copper); border-radius: 4px; background: #FFF; }
.pm__card i { grid-row: span 2; width: 32px; height: 22px; border-radius: 3px; background: linear-gradient(135deg, var(--copper-2), var(--bronze)); }
.pm__card small { color: var(--muted); font-size: 13px; }
.fakecard { width: min(330px, 100%); aspect-ratio: 1.586; margin: 20px 0; border-radius: 12px; padding: 20px; position: relative; color: #FFF0DF; background: linear-gradient(135deg, #2B1A12 0%, #5A3420 55%, #9A5A2E 100%); box-shadow: 0 20px 40px -20px rgba(40, 20, 10, .7); overflow: hidden; }
.fakecard::before { content: ""; position: absolute; inset: 0; background: var(--hex); opacity: .7; }
.fakecard__chip { width: 42px; height: 32px; border-radius: 5px; background: linear-gradient(135deg, #E7C08F, #B98A57); position: relative; }
.fakecard img { position: absolute; top: 18px; right: 18px; width: 40px; opacity: .9; filter: brightness(1.6) saturate(.6); }
.fakecard p { position: absolute; left: 20px; bottom: 34px; margin: 0; font-size: 18px; letter-spacing: .14em; }
.fakecard small { position: absolute; left: 20px; bottom: 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.pay__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.paying { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 16px; background: #F8EEE2; border-radius: 3px; font-size: 14.5px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--copper); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation */
.conf { text-align: center; }
.conf__seal { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #FBEEDF; box-shadow: 0 0 0 1px var(--copper-3), 0 0 0 10px #FCF6EE, 0 0 0 11px var(--line); animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.conf h2 { max-width: 22ch; margin: 0 auto; }
.conf__ref { margin: 22px auto 30px; display: inline-grid; gap: 4px; padding: 14px 30px; border: 1px solid var(--copper-3); border-radius: 3px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.conf__ref b { font-family: var(--serif); font-size: 34px; color: var(--copper); letter-spacing: .06em; font-weight: 600; text-transform: none; }
.conf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; text-align: left; }
.conf__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Pastilles de statut (partagées avec l'admin) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--sand); color: var(--brown); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--pending { background: #FBEBD0; color: #8A5414; }
.pill--confirmed { background: #E5EDD9; color: #43602A; }
.pill--cancelled { background: #F4DCD6; color: #9A2C22; }
.pill--done { background: #E8E1DA; color: #5C4A3D; }
.pill--sim_success { background: #E1ECE4; color: #2E6142; }
.pill--sim_failed { background: #F6DCD4; color: #A0321E; }

@media (max-width: 1100px) {
  .rbody { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
}
@media (max-width: 860px) {
  .rhead { padding: 108px 0 26px; }
  .steps li em { display: none; }
  .steps li.cur em { display: inline; }
  .rbody { grid-template-columns: minmax(0, 1fr); padding-top: 26px; padding-bottom: 120px; }
  .rside { position: static; order: 2; }
  .rbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(5vw, 16px) calc(12px + env(safe-area-inset-bottom)); background: rgba(23, 16, 12, .96); color: #F3E6D6; backdrop-filter: blur(8px); border-top: 1px solid rgba(207, 122, 69, .4); }
  .rbar div { display: grid; line-height: 1.2; }
  .rbar small { color: #B9A38E; font-size: 12.5px; }
  .rbar b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
  .rbar .btn { margin: 0; }
  body:has(.rbar) .demo-pill { bottom: 84px; }
  .conf__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .steps li.cur em { display: none; }
  .steps li { justify-content: center; }
  .rcard { padding: 18px; }
  .mcards { grid-template-columns: minmax(0, 1fr); }
  .mcard { flex-direction: row; }
  .mcard__img { width: 108px; aspect-ratio: auto; flex: none; }
  .mcard__img i { top: 0; bottom: 0; left: auto; width: 4px; height: auto; flex-direction: column; }
  .guest__toggle { padding: 14px; gap: 10px; }
  .guest__bd { padding: 0 12px 14px; }
  .guest__toggle em { display: none; }
  .tally__c { margin-left: 0; width: 100%; }
  .sum--lg div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pay__amt b { font-size: 52px; }
  .pay__acts .btn, .conf__acts .btn { width: 100%; margin: 0; }
  .racts .btn { padding: 0 18px; }
  .conf__ref b { font-size: 28px; }
  .slot { min-width: calc(33.33% - 6px); }
}
