/* Salon prive : page de reservation et page de confirmation.
   Toutes les classes sont prefixees "pr-" pour ne rien toucher au reste du site. */

.pr {
    --pr-accent: #e55a29;
    --pr-accent-dark: #b8431a;
    --pr-ink: #1f1a17;
    --pr-muted: #6f6660;
    --pr-line: #e8e1db;
    --pr-soft: #faf6f2;
    --pr-ok: #1f8a4c;
    padding: 48px 0 72px;
    color: var(--pr-ink);
    font-size: 16px;
    line-height: 1.5;
}
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }

.pr-preview {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff4d6;
    border: 1px solid #f0d58a;
    color: #6b4e00;
    font-weight: 600;
    font-size: 14px;
}

.pr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (min-width: 992px) {
    .pr-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; }
    .pr-info { position: sticky; top: 24px; }
}

/* ---- Colonne d'information ---- */
.pr-info {
    background: var(--pr-soft);
    border: 1px solid var(--pr-line);
    border-radius: 16px;
    padding: 28px;
}
.pr-info__store {
    margin: 0 0 6px;
    color: var(--pr-accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pr-info__name { margin: 0 0 12px; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--pr-ink); }
.pr-info__desc { margin: 0 0 20px; color: var(--pr-muted); }
.pr-info__sub { margin: 20px 0 6px; font-size: 15px; font-weight: 700; color: var(--pr-ink); }
.pr-info__small { margin: 0; color: var(--pr-muted); font-size: 14px; }

.pr-facts { margin: 0 0 16px; padding: 0; }
.pr-facts > div { padding: 12px 0; border-top: 1px solid var(--pr-line); }
.pr-facts dt { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--pr-muted); }
.pr-facts dd { margin: 0; font-weight: 600; color: var(--pr-ink); }
.pr-facts__line { display: block; }

.pr-info__contact {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--pr-line);
    font-style: normal;
    font-size: 14px;
    color: var(--pr-muted);
}
.pr-info__contact span { display: block; }
.pr-info__contact a { color: var(--pr-accent-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pr-info__contact a:hover { text-decoration: underline; }

/* ---- Formulaire ---- */
.pr-form {
    position: relative;
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 16px;
    padding: 28px;
}
.pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pr-alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid #f3b7b0;
    color: #8a1c12;
    font-size: 14px;
    font-weight: 600;
}
.pr-alert ul { margin: 0; padding-left: 18px; }

.pr-step { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.pr-step legend {
    float: none;
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--pr-ink);
}
.pr-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pr-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex: none;
}

/* ---- Calendrier ---- */
.pr-cal { max-width: 440px; }
.pr-cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pr-cal__title { font-size: 16px; font-weight: 700; }
.pr-cal__nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--pr-line);
    background: #fff;
    color: var(--pr-ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.pr-cal__nav:hover:not(:disabled) { border-color: var(--pr-accent); color: var(--pr-accent-dark); }
.pr-cal__nav:disabled { opacity: .35; cursor: default; }

.pr-cal__head, .pr-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pr-cal__head { margin-bottom: 6px; }
.pr-cal__head span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pr-muted);
    text-transform: capitalize;
}
.pr-cal__day {
    aspect-ratio: 1 / 1;
    min-height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #b9b1ab;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.pr-cal__day.is-free {
    background: #fff;
    border-color: var(--pr-line);
    color: var(--pr-ink);
    cursor: pointer;
}
.pr-cal__day.is-free:hover { border-color: var(--pr-accent); color: var(--pr-accent-dark); }
.pr-cal__day.is-full { color: #b9b1ab; text-decoration: line-through; background: #f4efea; }
.pr-cal__day.is-selected, .pr-cal__day.is-selected:hover {
    background: var(--pr-accent);
    border-color: var(--pr-accent);
    color: #fff;
}
.pr-cal__day:focus-visible, .pr-cal__nav:focus-visible, .pr-btn:focus-visible {
    outline: 3px solid rgba(229, 90, 41, .35);
    outline-offset: 2px;
}

.pr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--pr-muted); }
.pr-legend li { display: flex; align-items: center; gap: 6px; }
.pr-legend__dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--pr-line); background: #fff; }
.pr-legend__dot--full { background: #f4efea; border-color: #f4efea; }
.pr-legend__dot--off { background: transparent; border-style: dashed; }

/* ---- Creneaux ---- */
.pr-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 440px; }
.pr-service {
    position: relative;
    display: block;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--pr-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.pr-service input { position: absolute; opacity: 0; pointer-events: none; }
.pr-service__name { display: block; font-weight: 700; color: var(--pr-ink); }
.pr-service__time { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--pr-ink); }
.pr-service__state { display: block; margin-top: 4px; font-size: 13px; color: var(--pr-ok); font-weight: 600; }
.pr-service:hover { border-color: var(--pr-accent); }
.pr-service.is-checked { border-color: var(--pr-accent); box-shadow: inset 0 0 0 1px var(--pr-accent); background: #fff6f1; }
.pr-service:focus-within { outline: 3px solid rgba(229, 90, 41, .35); outline-offset: 2px; }
.pr-service.is-disabled { background: var(--pr-soft); cursor: default; }
.pr-service.is-disabled:hover { border-color: var(--pr-line); }
.pr-service.is-disabled .pr-service__name,
.pr-service.is-disabled .pr-service__time { color: #b9b1ab; }
.pr-service.is-disabled .pr-service__state { color: var(--pr-muted); font-weight: 500; }

/* ---- Choix du salon ---- */
.pr-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pr-room {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--pr-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pr-ink);
    text-decoration: none;
}
.pr-room:hover { border-color: var(--pr-accent); color: var(--pr-ink); text-decoration: none; }
.pr-room:focus-visible { outline: 3px solid rgba(229, 90, 41, .35); outline-offset: 2px; }
.pr-room.is-checked { border-color: var(--pr-accent); box-shadow: inset 0 0 0 1px var(--pr-accent); background: #fff6f1; }
.pr-room__name { display: block; font-weight: 800; font-size: 17px; }
.pr-room__cap { display: block; margin-top: 2px; font-size: 14px; color: var(--pr-muted); }

/* ---- Champs ---- */
.pr-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 576px) {
    .pr-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-field--wide { grid-column: 1 / -1; }
}
.pr-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--pr-ink); }
.pr-field label small { font-weight: 400; color: var(--pr-muted); }
.pr-field input, .pr-field select, .pr-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #cfc6bf;
    border-radius: 10px;
    background: #fff;
    color: var(--pr-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
}
.pr-field textarea { min-height: 96px; resize: vertical; }
.pr-field input:focus, .pr-field select:focus, .pr-field textarea:focus {
    outline: none;
    border-color: var(--pr-accent);
    box-shadow: 0 0 0 3px rgba(229, 90, 41, .2);
}
.pr-field ::placeholder { color: #a39a93; }

.pr-accept { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--pr-muted); cursor: pointer; }
.pr-accept input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--pr-accent); }
.pr-accept a { color: var(--pr-accent-dark); font-weight: 600; white-space: nowrap; }

/* ---- Envoi ---- */
.pr-submit { padding-top: 20px; border-top: 1px solid var(--pr-line); }
.pr-submit__choice { margin: 0 0 14px; }
.pr-submit__choice span { display: block; font-size: 13px; font-weight: 600; color: var(--pr-muted); }
.pr-submit__choice strong { font-size: 17px; color: var(--pr-ink); }
.pr-submit__hint { margin: 12px 0 0; font-size: 13px; color: var(--pr-muted); }
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 32px;
    border: 0;
    border-radius: 99px;
    background: var(--pr-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}
.pr-btn:hover { background: var(--pr-accent-dark); color: #fff; text-decoration: none; }
@media (max-width: 575px) {
    .pr { padding: 28px 0 56px; }
    .pr-info, .pr-form { padding: 20px 16px; }
    .pr-btn { width: 100%; }
    .pr-info__name { font-size: 24px; }
}

/* ---- Page de confirmation ---- */
.pr-done { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--pr-line); border-radius: 16px; padding: 32px 28px; }
.pr-done__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    background: #fff4d6;
    color: #6b4e00;
}
.pr-done__badge--confirmed { background: #e3f4ea; color: #14613a; }
.pr-done__badge--cancelled { background: #f1ecea; color: #5d544e; }
.pr-done h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--pr-ink); }
.pr-done__text { margin: 0 0 20px; color: var(--pr-muted); }
.pr-done dl { margin: 0 0 20px; padding: 0; }
.pr-done dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--pr-line); }
.pr-done dt { margin: 0; font-weight: 500; color: var(--pr-muted); }
.pr-done dd { margin: 0; font-weight: 700; text-align: right; color: var(--pr-ink); }
.pr-done__small { margin: 0 0 20px; font-size: 13px; color: var(--pr-muted); }
.pr-done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pr-done__actions a:not(.pr-btn) { color: var(--pr-accent-dark); font-weight: 700; text-decoration: none; }
@media (max-width: 575px) {
    .pr-done { padding: 24px 16px; }
    .pr-done dl > div { flex-direction: column; gap: 2px; }
    .pr-done dd { text-align: left; }
}

/* ===== KTV : formule, forfaits, WeChat, regles ===== */
.pr-facts__line { display: block; }
.pr-facts__note { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--pr-muted); }
.pr-rules { margin: 0 0 8px; padding-left: 18px; font-size: 14px; color: var(--pr-muted); }
.pr-rules li { margin: 0 0 4px; }

.pr-wechat {
    display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px;
    border: 1px dashed #9fd5a8; border-radius: 12px; background: #f3fbf4;
}
.pr-wechat__qr { width: 112px; height: 112px; flex: none; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.pr-wechat__title { margin: 0 0 4px; font-weight: 800; color: var(--pr-ink); }
.pr-wechat__text { margin: 0 0 8px; font-size: 14px; color: var(--pr-muted); }
.pr-wechat__id { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.pr-wechat__id strong { font-size: 17px; letter-spacing: .02em; color: #07a14a; user-select: all; }
.pr-wechat__copy {
    border: 0; border-radius: 999px; padding: 6px 14px; background: #07c160; color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer;
}
.pr-wechat__copy:hover { background: #06a352; }
.pr-wechat__copy.is-done { background: var(--pr-ink); }
@media (max-width: 575px) {
    .pr-wechat { align-items: flex-start; }
    .pr-wechat__qr { width: 84px; height: 84px; }
}

.pr-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pr-type, .pr-pkg {
    position: relative; display: block; padding: 14px 16px; border: 1px solid var(--pr-line);
    border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.pr-type input, .pr-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pr-type__name { display: block; font-weight: 800; color: var(--pr-ink); }
.pr-type__desc { display: block; margin-top: 2px; font-size: 13px; color: var(--pr-muted); }
.pr-type:hover, .pr-pkg:hover { border-color: var(--pr-accent); }
.pr-type.is-checked, .pr-pkg.is-checked { border-color: var(--pr-accent); box-shadow: inset 0 0 0 1px var(--pr-accent); background: #fff6f1; }
.pr-type:focus-within, .pr-pkg:focus-within { outline: 3px solid rgba(229, 90, 41, .35); outline-offset: 2px; }

.pr-panel { margin-top: 16px; }
.pr-panel__note { margin: 10px 0 0; font-size: 13px; color: var(--pr-muted); }
.pr-packages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 576px) { .pr-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-pkg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pr-pkg__name { font-weight: 800; color: var(--pr-ink); }
.pr-pkg__price { font-size: 20px; font-weight: 800; color: var(--pr-accent-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-pkg__people { display: block; margin: 2px 0 8px; font-size: 13px; font-weight: 600; color: var(--pr-muted); }
.pr-pkg__items { margin: 0; padding-left: 18px; font-size: 13px; color: var(--pr-ink); }
.pr-pkg__items li { margin: 0 0 2px; }
.pr-pkg.is-disabled { background: var(--pr-soft); cursor: default; opacity: .55; }
.pr-pkg.is-disabled:hover { border-color: var(--pr-line); }
.pr-extension { margin-top: 14px; max-width: 320px; }

.pr-estimate {
    margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--pr-soft);
    font-weight: 700; color: var(--pr-ink); font-variant-numeric: tabular-nums;
}
.pr-req { color: #d9381e; font-weight: 700; margin-left: 2px; }
.pr-req-note { margin: -4px 0 12px; font-size: 13px; color: var(--pr-muted); }
.pr-field__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--pr-muted); }
.pr-offer { margin: 0 0 4px; font-weight: 700; }

/* ===== KTV v2 : salle attribuee, indications ===== */
.pr-hint { margin: 10px 0 0; font-size: 14px; color: var(--pr-muted); }
.pr-hint--warn { padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #6b4e00; font-weight: 600; }
.pr-assigned {
    margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
    background: #fff6f1; border: 1px solid var(--pr-accent); color: var(--pr-ink); font-weight: 700;
}
.pr-pkg__hint { display: block; margin: -4px 0 8px; font-size: 13px; font-weight: 600; color: #8a5a00; }
.pr-pkg__hint.is-block { color: #b3261e; }
.pr-pkg.is-disabled .pr-pkg__hint { opacity: 1; }
.pr-done__cancel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pr-line); }
.pr-done__cancel button {
    border: 1px solid #e2b3b0; background: #fff; color: #b3261e; border-radius: 999px;
    padding: 8px 18px; font-weight: 700; cursor: pointer;
}
.pr-done__cancel button:hover { background: #fdf0ef; }
