/* Réservation haut de gamme : formulaire à gauche, résumé collant à droite */
.book { padding-block: 104px; background: radial-gradient(900px 480px at 90% -10%, rgba(212,42,51,.16), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(242,183,5,.07), transparent 60%), var(--bg); border-top: 1px solid var(--line); }
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .bk { grid-template-columns: minmax(0, 1fr); } }

.bk__main {
  position: relative; display: flex; flex-direction: column; gap: 28px;
  background: linear-gradient(180deg, #1A1D22, #141619);
  border: 1px solid #2E3238; border-radius: 14px;
  padding: clamp(20px, 3.6vw, 44px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.bk__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #24272C; }
.bk__progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--red), #FF5A62); transition: width .45s cubic-bezier(.2,.8,.2,1); }

.bk__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bk__steps li { display: flex; align-items: center; gap: 9px; font: 600 14px/1 var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: #6E737B; transition: color .2s; }
.bk__steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #3A3F46; font: 700 13px/1 var(--f-body); letter-spacing: 0; transition: all .2s; }
.bk__steps li.is-on { color: var(--fg); }
.bk__steps li.is-on span { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(212,42,51,.2); }
.bk__steps li.is-done { color: #B9BDC3; }
.bk__steps li.is-done span { background: #2A2E34; border-color: #2A2E34; color: transparent; position: relative; }
.bk__steps li.is-done span::after { content: ""; position: absolute; width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) translate(1px, -1px); }
@media (max-width: 560px) { .bk__steps li:not(.is-on) { font-size: 0; gap: 0; } }

.bk__step { display: flex; flex-direction: column; gap: 20px; animation: bkIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes bkIn { from { opacity: 0; transform: translateY(10px); } }
.bk__title { display: flex; flex-direction: column; gap: 4px; }
.bk__title h3 { font: 800 clamp(24px, 3vw, 32px)/1.05 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.bk__title p { color: var(--muted); }

/* Filtres et tuiles de services */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 99px; border: 1px solid #3A3F46; background: transparent; color: #C9CCD1; font: 600 15px var(--f-body); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: #6B7078; color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #111; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 12px; background: #121417; border: 1px solid #2C3036; cursor: pointer; transition: border-color .15s, transform .15s, background .15s, box-shadow .15s; }
.tile:hover { border-color: #4D535B; transform: translateY(-2px); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.tile:has(input:checked) { border-color: var(--red); background: linear-gradient(180deg, rgba(212,42,51,.12), rgba(212,42,51,.03)); box-shadow: 0 10px 30px -18px rgba(212,42,51,.9); }
.tile__ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #1E2126; color: var(--red-hi); }
.tile__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile__check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #4A4F57; transition: all .15s; }
.tile:has(input:checked) .tile__check { background: var(--red); border-color: var(--red); }
.tile:has(input:checked) .tile__check::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.tile__name { font-weight: 600; font-size: 17px; line-height: 1.25; padding-right: 26px; }
.tile__desc { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tile__meta { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 600 12.5px/1 var(--f-body); padding: 6px 9px; border-radius: 6px; background: #1E2126; color: #C9CCD1; font-variant-numeric: tabular-nums; }
.tag--price { background: rgba(242,183,5,.12); color: var(--gold); }

/* Marques */
.brands { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .brands { grid-template-columns: repeat(2, 1fr); } }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 12px; background: #121417; border: 1px solid #2C3036; cursor: pointer; text-align: center; font-weight: 600; transition: all .15s; }
.brand-card:hover { border-color: #4D535B; }
.brand-card input { position: absolute; opacity: 0; pointer-events: none; }
.brand-card:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.brand-card:has(input:checked) { border-color: var(--red); background: linear-gradient(180deg, rgba(212,42,51,.14), rgba(212,42,51,.03)); }
.brand-card__mk { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #4A4F57; font: 800 15px/1 var(--f-display); font-stretch: 112%; color: var(--fg); }
.brand-card:has(input:checked) .brand-card__mk { border-color: var(--red); color: var(--red-hi); }

/* Champs à étiquette flottante */
.grid2, .grid3 { display: grid; gap: 14px; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid3 { grid-template-columns: 2fr 1fr 1.4fr; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 .fl:first-child { grid-column: 1 / -1; } }
.fl { position: relative; min-width: 0; }
.fl input, .fl select, .fl textarea { width: 100%; min-height: 58px; padding: 24px 16px 8px; background: #0F1113; border: 1px solid #353A41; border-radius: 10px; color: var(--fg); font: 500 17px var(--f-body); transition: border-color .15s, box-shadow .15s; }
.fl textarea { min-height: 96px; resize: vertical; }
.fl select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8D9299 50%), linear-gradient(135deg, #8D9299 50%, transparent 50%); background-position: calc(100% - 22px) 27px, calc(100% - 16px) 27px; background-size: 6px 6px; background-repeat: no-repeat; }
.fl label { position: absolute; left: 17px; top: 19px; color: #8D9299; font-size: 16px; pointer-events: none; transition: all .15s; }
.fl input:focus, .fl select:focus, .fl textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,183,5,.12); outline: none; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label,
.fl--up label { top: 9px; font-size: 12px; letter-spacing: .04em; color: #A9ADB4; }
.fl .is-bad, .is-bad { border-color: #FF5A62 !important; box-shadow: 0 0 0 4px rgba(255,90,98,.12) !important; }

/* Journées et heures */
.days { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.days__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3A3F46; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.days__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.days__nav:disabled { opacity: .25; cursor: default; }
@media (max-width: 560px) { .days { grid-template-columns: minmax(0, 1fr); } .days__nav { display: none; } }
.days__strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: thin; }
.day { flex: 0 0 84px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 12px; border: 1px solid #2C3036; background: #121417; color: var(--fg); cursor: pointer; font-family: var(--f-body); transition: all .15s; }
.day:hover:not(:disabled) { border-color: #5A6068; transform: translateY(-2px); }
.day__dow { font: 600 12px/1 var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.day__num { font: 800 28px/1.1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.day__mon { font-size: 13px; color: var(--muted); }
.day__free { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #3DDC84; }
.day:disabled { opacity: .38; cursor: default; }
.day:disabled .day__free { color: #8D9299; }
.day.is-sel { background: var(--red); border-color: var(--red); box-shadow: 0 12px 30px -14px rgba(212,42,51,.9); }
.day.is-sel .day__dow, .day.is-sel .day__mon, .day.is-sel .day__free { color: #fff; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; animation: bkIn .3s ease; }
@media (max-width: 560px) { .times { grid-template-columns: 1fr; } }
.times__group h4 { font: 600 13px var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time { min-height: 46px; border-radius: 10px; border: 1px solid #353A41; background: #0F1113; color: var(--fg); font: 600 16px var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: all .15s; }
.time:hover { border-color: var(--gold); }
.time.is-sel { background: var(--fg); border-color: var(--fg); color: #111; }
.times__none { color: #6E737B; font-size: 15px; padding: 10px 0; }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.seg legend { font: 600 13px var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.seg { flex-direction: row; flex-wrap: wrap; gap: 0; background: #0F1113; border: 1px solid #353A41; border-radius: 12px; padding: 4px; width: fit-content; max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 11px 18px; border-radius: 9px; font-weight: 600; color: #A9ADB4; transition: all .15s; }
.seg input:checked + span { background: #2A2E34; color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.seg label.is-off { opacity: .4; cursor: not-allowed; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }

.bk__err { color: #FF8A8F; min-height: 1.2em; margin: -14px 0 -10px; font-weight: 500; }
.bk__err:empty { display: none; }
.bk__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid #2A2E34; }
.bk__nav #wiz-next { margin-left: auto; }
.bk__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.bk__nav #wiz-next:hover svg { transform: translateX(3px); }

/* Résumé */
.bk__sum { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 14px; background: #F2EFE8; color: #15171A; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
@media (max-width: 960px) { .bk__sum { position: static; } }
.bk__sum-h { font: 800 22px/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.bk__sum dl { margin: 0; display: flex; flex-direction: column; }
.bk__sum dl > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid #D9D4C9; }
.bk__sum dt { font: 600 12px var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: #6A6E74; }
.bk__sum dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bk__sum dd.is-empty { color: #9A9EA4; font-weight: 500; }
.bk__sum dd ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
#sum-price { color: #A3222A; }
.bk__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: #3B3F45; }
.bk__trust li { padding-left: 22px; position: relative; }
.bk__trust li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid #A3222A; border-bottom: 2px solid #A3222A; transform: rotate(-45deg); }
.bk__trust a { color: #8A1C22; font-weight: 600; }

/* Confirmation */
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 10px; }
.done__ic { width: 64px; height: 64px; }
.done__ic circle { fill: none; stroke: #3DDC84; stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s ease forwards; }
.done__ic path { fill: none; stroke: #3DDC84; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .55s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font: 800 34px/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.done p { color: #CFD2D7; max-width: 60ch; }
.preview-note { background: rgba(242,183,5,.1); border: 1px solid rgba(242,183,5,.4); color: var(--gold); padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.consent input, .tile input, .brand-card input, .seg input { min-height: 0; }

/* Les éléments masqués restent masqués (filtres, étapes) */
[hidden] { display: none !important; }
