/* Calendrier de réservation (booking.js) */
.booking{border:0;border-radius:16px;padding:24px;max-width:min(920px,calc(100vw - 24px));width:100%;max-height:calc(100vh - 24px);overflow:auto;color:var(--ink,#284D63);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.booking::backdrop{background:rgba(40,77,99,.55)}
.booking__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.booking__head h2{margin:0;font-size:1.4rem}
.booking__close{min-width:44px;min-height:44px;border:0;background:transparent;font-size:2rem;line-height:1;cursor:pointer;color:inherit;border-radius:8px}
.booking__sim{background:#F6EFEA;border-left:4px solid #D78F6B;padding:8px 12px;border-radius:6px;font-size:.9rem;margin:0 0 14px}
.booking__nav{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.booking__scroll{overflow-x:auto}
.booking__grid{border-collapse:separate;border-spacing:4px;width:100%;min-width:560px}
.booking__grid th{font-size:.85rem;font-weight:700;color:#384E5B;text-align:center;padding:4px 2px}
.booking__grid tbody th{text-align:right;padding-right:6px;white-space:nowrap}
.cell{display:block;width:100%;height:36px;border-radius:6px;border:1px solid #cfe3e6;background:#E6F3F5;cursor:pointer;color:#fff;font-weight:700}
.cell:hover:not(:disabled){background:#cde8ec}
.cell--no{background:repeating-linear-gradient(45deg,#f4f4f4,#f4f4f4 6px,#eaeaea 6px,#eaeaea 12px);border-color:#eee;cursor:not-allowed}
.cell--sel{background:#167C8C;border-color:#167C8C}
.cell:focus-visible,.booking__close:focus-visible{outline:3px solid #D78F6B;outline-offset:2px}
.booking__legend{font-size:.9rem;margin:12px 0}
.lg{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin:0 2px 0 10px;border:1px solid #cfe3e6}
.lg--free{background:#E6F3F5}.lg--sel{background:#167C8C}.lg--no{background:#e5e5e5}
.booking__sum{background:#F6EFEA;border-radius:10px;padding:12px 14px;margin:8px 0 14px;font-weight:700}
.booking__err{color:#9b2c1f;font-weight:700}.booking__ok{font-weight:700;color:#167C8C}
.booking__form label{display:block;font-weight:700;margin-bottom:4px}
.booking__input{width:100%;font:inherit;padding:10px;border:1px solid #384E5B;border-radius:8px}
.booking__consent{display:flex;gap:8px;align-items:flex-start}.booking__consent label{font-weight:400;margin:0}
.booking__hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.booking__actions{display:flex;gap:10px;flex-wrap:wrap}
.booking .btn:disabled{opacity:.5;cursor:not-allowed}
@media (prefers-reduced-motion:no-preference){.cell{transition:background .15s}}

/* ===== Habillage charte PAGAWY (Suite 91) : Charter, bleus de la charte, terracotta en accent ===== */
.booking{font-family:var(--font-main,Charter,Georgia,serif);background:#fff;border-radius:20px;padding:28px 28px 24px;border-top:6px solid #167C8C}
.booking__head h2{font-size:clamp(1.25rem,2.4vw,1.6rem);text-transform:none;letter-spacing:0;color:#284D63}
.booking__close{color:#284D63;border-radius:50%}.booking__close:hover{background:#EAF2FA}
.booking__sim{background:#EAF2FA;border-left-color:#D78F6B}
.booking__sub{margin:0 0 10px;color:#284D63;font-size:1.1rem}
.booking__dur{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:12px 14px;background:#EAF2FA;border-radius:14px}
.booking__dur-label{font-weight:700;color:#284D63;margin-right:4px}
.chipbtn{min-width:48px;min-height:44px;padding:0 16px;border:2px solid #167C8C;border-radius:999px;background:#fff;color:#167C8C;font:inherit;font-weight:700;cursor:pointer}
.chipbtn:hover{background:#A7E0E0;color:#284D63}
.chipbtn[aria-pressed="true"]{background:#167C8C;color:#fff}
.chipbtn:focus-visible{outline:3px solid #D78F6B;outline-offset:2px}
.booking .btn{border-radius:999px}
.booking .btn--ghost{background:#fff;color:#284D63;border:2px solid #B8CBD0}
.booking .btn--ghost:hover:not(:disabled){background:#EAF2FA;color:#284D63;border-color:#167C8C}
.booking__nav strong{color:#284D63;text-align:center;flex:1 1 200px}
.booking__grid th{color:#284D63;font-weight:700}
.cell{height:40px;border-radius:10px;border:1px solid #A7E0E0;background:#EAF2FA;color:#fff;font-size:1.05rem}
.cell--free:not(.cell--sel)::after{content:"+";color:#167C8C;font-weight:700;opacity:0}
.cell--free:hover::after,.cell--free:focus-visible::after{opacity:1}
.cell:hover:not(:disabled){background:#A7E0E0}
.cell--no{background:repeating-linear-gradient(135deg,#F5F4F4,#F5F4F4 6px,#E6EBED 6px,#E6EBED 12px);border-color:#E6EBED}
.cell--sel{background:#167C8C;border-color:#167C8C}
.lg--free{background:#EAF2FA;border-color:#A7E0E0}.lg--no{background:repeating-linear-gradient(135deg,#F5F4F4,#F5F4F4 3px,#E6EBED 3px,#E6EBED 6px)}
.booking__sum{background:#EAF2FA;border-left:4px solid #D78F6B;border-radius:10px;color:#284D63}
.booking__input{border:2px solid #B8CBD0;border-radius:12px;padding:12px;color:#384E5B}
.booking__input:focus{outline:3px solid #A7E0E0;border-color:#167C8C}
.booking__form p{margin:0 0 14px}
.booking__consent input{width:22px;height:22px;flex:none;accent-color:#167C8C}
@media (max-width:640px){.booking{padding:18px 14px 16px;border-radius:16px}.booking__grid{min-width:520px}.cell{height:44px}}
.cell--sel:hover:not(:disabled){background:#167C8C}
@media (max-width:640px){.booking__nav{display:grid;grid-template-columns:1fr 1fr}.booking__nav strong{grid-column:1/-1;order:-1;flex:none}.booking__nav .btn{padding:.6rem .8rem;font-size:.95rem;justify-content:center}.booking__dur{padding:10px}}
.booking__note{margin:0 0 12px;color:#384E5B}

/* ===== Suite 491 : vue « jours » des agendas, choix des machines, habillage ===== */
.booking__head{padding-bottom:12px;border-bottom:1px solid #E6EBED}
.booking__nav{margin-bottom:14px}
.bkdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 14px}
.bkday{display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px 8px 12px;border:1px solid #D5E7EA;border-radius:14px;background:#fff}
.bkday--today{border-color:#167C8C;box-shadow:0 0 0 2px #A7E0E066}
.bkday--closed,.bkday--none{background:#F7F8F9;border-color:#E6EBED}
.bkday__head{display:flex;flex-direction:column;align-items:center;margin:0;line-height:1.15;color:#284D63}
.bkday__dow{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#167C8C}
.bkday__num{font-size:1.6rem;font-weight:700}
.bkday__mon{font-size:.8rem;color:#384E5B}
.bkday__tag{margin-top:4px;padding:1px 8px;border-radius:999px;background:#167C8C;color:#fff;font-size:.7rem;font-weight:700}
.bkday__msg{margin:auto 0;padding:6px 0;text-align:center;font-size:.85rem;color:#7a8a92}
.bkday__slots{display:flex;flex-direction:column;gap:6px}
.bkslot{min-height:40px;border:2px solid #167C8C;border-radius:10px;background:#fff;color:#167C8C;font:inherit;font-weight:700;cursor:pointer}
.bkslot:hover{background:#A7E0E0;color:#284D63}
.bkslot--sel,.bkslot--sel:hover{background:#167C8C;color:#fff}
.bkslot:focus-visible{outline:3px solid #D78F6B;outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.bkslot{transition:background .15s,color .15s}}
@media (max-width:900px){.bkdays{grid-template-columns:repeat(2,minmax(0,1fr))}.bkday__slots{flex-direction:row;flex-wrap:wrap}.bkslot{flex:1 1 56px}
  .bkday{padding:10px}.bkday__head{flex-direction:row;align-items:baseline;gap:6px;flex-wrap:wrap;justify-content:flex-start}.bkday__num{font-size:1.3rem}}
@media (max-width:440px){.bkdays{grid-template-columns:1fr}}
.bkm{margin:0 0 16px;padding:12px 14px 6px;border:2px solid #D5E7EA;border-radius:14px}
.bkm legend{padding:0 6px;font-weight:700;color:#284D63}
.bkm__hint{margin:0 0 8px;font-size:.9rem;color:#384E5B}
.bkm__group{border-top:1px solid #E6EBED}
.bkm__group:first-of-type{border-top:0}
.bkm__group summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-weight:700;color:#284D63;list-style:none}
.bkm__group summary::-webkit-details-marker{display:none}
.bkm__group summary::after{content:"+";font-size:1.3rem;color:#167C8C;margin-left:auto;padding-left:8px}
.bkm__group[open] summary::after{content:"–"}
.bkm__count{padding:1px 10px;border-radius:999px;background:#167C8C;color:#fff;font-size:.8rem;font-weight:700}
.bkm__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:2px 12px;padding:0 0 10px}
.bkm__item{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;font-weight:400;cursor:pointer}
.bkm__item input{width:22px;height:22px;flex:none;accent-color:#167C8C}
.booking__form textarea.booking__input{resize:vertical;min-height:80px}
@media (max-width:900px){.bkday--closed,.bkday--none{flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px}.bkday--closed .bkday__msg,.bkday--none .bkday__msg{margin:0;padding:0}}
