/*
 * Page de réservation aux couleurs du restaurant (inspirée d'Overfull), avec la police et la forme des cases Kouver.
 * --pc : couleur du restaurant (fond) · --ac : couleur d'accent (cases choisies, bouton) · --on : texte sur l'accent
 * html.kres-light : la couleur du restaurant est claire, les textes passent en foncé.
 */
html.kres{--field:rgba(255,255,255,.13);--fieldfocus:rgba(255,255,255,.2);--fieldline:rgba(255,255,255,.28);--ink:#fff;--ink2:rgba(255,255,255,.8);--ink3:rgba(255,255,255,.62);--line:rgba(255,255,255,.2);--box:rgba(255,255,255,.42);--soft:rgba(255,255,255,.1);--soft2:rgba(255,255,255,.17);--shadow:0 10px 30px rgba(0,0,0,.16)}
html.kres.kres-light{--field:rgba(255,255,255,.42);--fieldfocus:rgba(255,255,255,.7);--fieldline:rgba(0,0,0,.12);--ink:#1E1E1E;--ink2:rgba(0,0,0,.72);--ink3:rgba(0,0,0,.55);--line:rgba(0,0,0,.13);--box:rgba(0,0,0,.28);--soft:rgba(0,0,0,.045);--soft2:rgba(0,0,0,.08);--shadow:0 10px 30px rgba(0,0,0,.1)}
html.kres,html.kres body{background:var(--pc)!important}
html.kres body{color:var(--ink);font-family:Quicksand,sans-serif}
html.kres body{position:relative}
html.kres body::before{content:"";position:absolute;inset:0 0 auto 0;height:520px;pointer-events:none;z-index:0;background:linear-gradient(180deg,rgba(255,255,255,.13) 0,rgba(255,255,255,.05) 55%,rgba(255,255,255,0) 100%)}
html.kres.kres-light body::before{background:linear-gradient(180deg,rgba(255,255,255,.22) 0,rgba(255,255,255,.08) 55%,rgba(255,255,255,0) 100%)}
html.kres .menuHauteurMob{position:relative;z-index:1;padding-top:0!important;margin-top:0!important}
html.kres #formpaiement{max-width:600px;margin:0 auto;padding:0 6px 48px}
html.kres #rowResa,html.kres #row2Resa{margin:0}
html.kres #formpaiement *{font-family:Quicksand,sans-serif}

/* ---------- haut de page ---------- */
.kres-top{text-align:center;padding:12px 0 22px}
.kres-bar{display:flex;justify-content:space-between;align-items:center;min-height:34px;margin:0 0 14px}
.kres-lang{display:flex;gap:2px;background:var(--soft);border-radius:999px;padding:3px}
.kres-lang a{color:var(--ink3)!important;font-weight:700;font-size:13px;letter-spacing:.04em;text-decoration:none!important;padding:4px 10px;border-radius:999px;line-height:1.3}
.kres-lang a.on{color:var(--on)!important;background:var(--ac)}
.kres-back{color:var(--ink2)!important;font-size:14px;font-weight:700;text-decoration:none!important;padding:6px 2px}
.kres-back:hover{color:var(--ink)!important}
.kres-logo{display:inline-grid;place-items:center;width:124px;height:124px;border-radius:50%;background:#fff;overflow:hidden;box-shadow:var(--shadow);margin:0 0 16px}
.kres-logo img{width:100%;height:100%;object-fit:contain}
.kres-logo.wide{width:auto;height:auto;max-width:min(320px,86%);border-radius:0;background:none;box-shadow:none;overflow:visible;margin:4px 0 14px}
.kres-logo.wide img{width:100%;height:auto;max-height:96px}
html.kres-wordmark .kres-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.kres-name{font-weight:700;font-size:32px;line-height:1.12;color:var(--ink);margin:0 0 6px;letter-spacing:-.01em}
.kres-tag{font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink2);margin:0}
.kres-addr{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ink3);margin:8px 0 0}
html.kres h2.titreResa{display:none}

/* message d'accueil du restaurant */
html.kres .kac-txt{color:var(--ink2);font-size:15px;line-height:1.55;text-align:center;margin:0 auto 8px;max-width:520px}
html.kres .kac-txt *{color:inherit!important;background:transparent!important;font-size:inherit!important}
html.kres .kac-more{color:var(--ink)!important;text-decoration:underline;text-underline-offset:3px;display:block;margin:0 auto 10px!important}

/* ---------- lignes repliables ---------- */
html.kres .krm{gap:0;margin-top:0!important;border-bottom:1px solid var(--line)}
html.kres #kacN{border-top:1px solid var(--line)}
html.kres .krm-h{background:transparent!important;border:0!important;border-radius:0!important;color:var(--ink)!important;min-height:76px;padding:0 4px!important;gap:14px!important;box-shadow:none!important}
html.kres .krm-h>svg:first-child{box-sizing:content-box;color:var(--ink)!important;stroke:var(--ink)!important;width:22px!important;height:22px!important;padding:10px;border-radius:50%;background:var(--soft2)}
html.kres .krm-t{font-size:19px;font-weight:700;color:var(--ink);line-height:1.25}
html.kres .krm-chev{color:var(--ink2);width:20px;height:20px}
html.kres .krm-h:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;border-radius:12px!important}
html.kres .krm-b{background:transparent;border:0;border-radius:0;margin:0;padding:2px 2px 26px;gap:14px}
html.kres .krm-pill{align-self:center;background:var(--soft2);color:var(--ink);border-radius:999px;padding:6px 16px;font-size:13px;letter-spacing:.02em;text-transform:none;font-weight:700}

/* ---------- cases : même forme, contour fin ; la case choisie prend la couleur d'accent ---------- */
html.kres .kac-num,html.kres .kac-day,html.kres .time-slot-button,html.kres .krm-o>span,html.kres .kbo-o{background:var(--soft)!important;border:1.5px solid var(--box)!important;color:var(--ink)!important;box-shadow:none!important;border-radius:12px!important;transition:background-color .15s ease,border-color .15s ease,transform .1s ease}
html.kres .kac-num:hover,html.kres .kac-day:hover,html.kres .time-slot-button:hover,html.kres .krm-o:hover>span,html.kres .kbo-o:hover{border-color:var(--ink)!important;background:var(--soft2)!important}
html.kres .kac-num:active,html.kres .kac-day:active,html.kres .time-slot-button:active{transform:scale(.97)}
html.kres .kac-num{height:52px;font-size:18px}
html.kres .kac-day{min-height:70px;gap:2px}
html.kres .kac-day b{font-size:15px;font-weight:700}
html.kres .kac-day small,html.kres .krm-o small,html.kres .kbo-o small{color:var(--ink3)!important;font-size:13px}
html.kres .krm-o b,html.kres .kbo-o b{color:var(--ink)!important}
html.kres .kac-num.on,html.kres .kac-day.on,html.kres .time-slot-button.active,html.kres .krm-o input:checked+span{background:var(--ac)!important;border-color:var(--ac)!important;color:var(--on)!important;box-shadow:0 6px 16px rgba(0,0,0,.14)!important}
html.kres .kac-day.on b,html.kres .kac-day.on small,html.kres .krm-o input:checked+span b,html.kres .krm-o input:checked+span small{color:var(--on)!important}
html.kres .krm-r{border-color:var(--box);background:transparent}
html.kres .krm-o input:checked+span .krm-r{border-color:var(--on)}
html.kres .krm-r::after{background:var(--on)}
html.kres .krm-o.off>span{opacity:.4;background:transparent!important}
html.kres .time-slot-button{font-size:18px!important;line-height:1.2!important;padding:12px 0!important;min-height:58px}
html.kres .time-slot-button:disabled,html.kres .time-slot-button[disabled]{opacity:.3}
html.kres .kac-to{color:inherit;opacity:.75;font-size:12px;margin-top:2px}
html.kres .kac-svc{color:var(--ink3);letter-spacing:.14em;font-size:11.5px;margin-top:10px}
html.kres .kac-sel select,html.kres #kacDb .form-control{background:var(--soft)!important;border:1.5px solid var(--box)!important;color:var(--ink)!important;border-radius:12px!important;min-height:52px}
html.kres #kacDb .form-control::placeholder{color:var(--ink2)}
html.kres #kacDb .position-absolute{top:14px!important;left:14px!important}
html.kres #kacDb .position-absolute svg{stroke:var(--ink)}
html.kres #kacDb .pl-40{padding-left:46px!important}
@media (min-width:576px){html.kres #tsl:not([style*="none"]){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}html.kres #tsl .time-slot-button{width:auto!important;margin:0!important}html.kres #tsl .kac-svc{grid-column:1/-1}}

/* encarts */
html.kres .kac-svcmsg,html.kres .kac-end,html.kres .krm-note,html.kres .kac-hint,html.kres .fondInfo,html.kres .krm-info{background:var(--soft2)!important;color:var(--ink)!important;border-radius:12px;border:0}
html.kres .kac-end,html.kres .kac-end *{padding:12px 16px;font-family:Quicksand,sans-serif!important;font-weight:600}
html.kres .kac-end *{padding:0}
html.kres .kac-end svg{color:var(--ink)}
html.kres .kac-close{background:var(--soft2)!important;color:var(--ink)!important;border-radius:12px}
html.kres .kac-hint{padding:12px 16px;text-align:center}

/* ---------- bouton principal ---------- */
html.kres #suivant,html.kres #saveResa,html.kres #saveResa2,html.kres #acompteMessage,html.kres #kwlSend{display:block;width:100%;max-width:600px;height:58px;margin:26px auto 8px!important;background:var(--ac)!important;color:var(--on)!important;border:0!important;border-radius:14px!important;font-size:18px;font-weight:700;letter-spacing:.01em;box-shadow:var(--shadow);filter:none;transition:transform .1s ease,filter .15s ease}
html.kres #suivant:not(:disabled):hover,html.kres #saveResa:not(:disabled):hover,html.kres #acompteMessage:not(:disabled):hover{filter:brightness(.95)}
html.kres #suivant:not(:disabled):active,html.kres #saveResa:not(:disabled):active,html.kres #acompteMessage:not(:disabled):active{transform:scale(.99)}
html.kres #suivant:disabled,html.kres #saveResa:disabled,html.kres #acompteMessage:disabled{background:transparent!important;color:var(--ink3)!important;border:1.5px dashed var(--box)!important;box-shadow:none;opacity:1}

/* ---------- étape 2 : récapitulatif et coordonnées ---------- */
html.kres .validResa{background:var(--soft2)!important;box-shadow:none!important;color:var(--ink);border-radius:16px!important;padding:18px!important}
html.kres .validResa-text{color:var(--ink3)!important;text-transform:uppercase;letter-spacing:.14em;font-size:11.5px!important;font-weight:700!important}
html.kres .validResa-params{color:var(--ink)}
html.kres .validResa-content{font-size:18px!important;font-weight:700}
html.kres .validResa .iconResa,html.kres .validResa .iconResa1{display:none!important}
html.kres .validResa .rose,html.kres .validResa .quick{color:var(--ink2)!important;font-size:14px}
html.kres .validResa img.icon{filter:brightness(0) invert(1);opacity:.75;width:18px}
html.kres.kres-light .validResa img.icon{filter:brightness(0);opacity:.55}
html.kres #editResa svg rect{fill:var(--ac)}
html.kres #editResa svg path{fill:var(--on)}
.kres-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin:20px 0 4px;padding:0!important}
.kres-f{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.kres-f>span{font-size:13.5px;font-weight:700;color:var(--ink2)}
.kres-wide{grid-column:1/-1}
/* champs discrets, teintés aux couleurs du restaurant (plus de grands blocs blancs) */
html.kres .kres-f .form-control{height:46px;border-radius:10px;border:1.5px solid var(--fieldline);background:var(--field)!important;color:var(--ink)!important;font-size:16px;font-weight:600;padding:0 13px;box-shadow:none}
html.kres .kres-f .form-control::placeholder{color:var(--ink3);font-weight:500}
html.kres .kres-f select.form-control option{color:#1E1E1E}
html.kres .kres-f textarea.form-control{height:auto;min-height:72px;padding:11px 13px}
html.kres .kres-f .form-control:focus{border-color:var(--ac);background:var(--fieldfocus)!important;box-shadow:0 0 0 3px var(--soft2)}
.kres-tel{display:flex;align-items:stretch;background:var(--field);border-radius:10px;overflow:hidden;border:1.5px solid var(--fieldline)}
.kres-tel:focus-within{border-color:var(--ac);background:var(--fieldfocus)}
html.kres .kres-tel .form-control{border:0!important;border-radius:0!important;height:43px;background:transparent!important}
html.kres .kres-tel .kres-code{flex:0 0 auto;width:auto;min-width:78px;max-width:96px;padding:0 6px 0 12px!important;background:transparent!important;color:var(--ink)!important;font-weight:700;border-right:1px solid var(--fieldline)!important;-webkit-appearance:auto;appearance:auto}
.kres-tel .form-control:not(.kres-code){flex:1;min-width:0}
html.kres #row2Resa .petit15.text-grey,html.kres #row2Resa label:not(.kres-f),html.kres #row2Resa .text-grey{color:var(--ink2)!important}
html.kres #row2Resa a{color:var(--ink)!important;text-decoration:underline;text-underline-offset:3px}
html.kres #row2Resa .form-check-input,html.kres #row2Resa input[type=checkbox]{-webkit-appearance:none;appearance:none;cursor:pointer;width:20px;height:20px;border-radius:6px;accent-color:var(--ac);flex:0 0 auto;background-color:var(--field);border:1.5px solid var(--box)}
html.kres #row2Resa .form-check-input:checked,html.kres .kwl-check:checked{background-color:var(--ac)!important;border-color:var(--ac)!important;background-image:var(--chk)!important;background-size:16px 16px!important;background-repeat:no-repeat!important;background-position:center!important}
html.kres .kwl-check{-webkit-appearance:none;appearance:none;border-radius:6px;background-color:var(--field);border:1.5px solid var(--box)}
/* cases à cocher : case et texte alignés, une par ligne */
html.kres #row2Resa p.form-check{display:flex;gap:10px;align-items:flex-start;padding-left:0;margin-right:0;width:100%;font-size:14.5px;line-height:1.45}
html.kres #row2Resa p.form-check .form-check-input{float:none;margin:1px 0 0}

/* pied */
.kres-foot{text-align:center;color:var(--ink3);font-size:12.5px;margin:30px 0 0;letter-spacing:.02em}
.kres-foot a{display:inline-flex;align-items:center;gap:8px;color:var(--ink3)!important;text-decoration:none!important}
.kres-foot a:hover{color:var(--ink2)!important}
.kres-klogo{display:inline-block;width:76px;height:15px;background:var(--ink2);-webkit-mask:var(--logo) center/contain no-repeat;mask:var(--logo) center/contain no-repeat}

@media (max-width:575px){
  .kres-top{padding-top:8px}
  .kres-logo{width:108px;height:108px}
  .kres-name{font-size:28px}
  html.kres .krm-t{font-size:18px}
  html.kres .krm-h{min-height:70px}
  html.kres .kac-nums{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px}
  html.kres #tsl:not([style*="none"]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html.kres #tsl .time-slot-button{width:auto!important;margin:0!important}
  html.kres #tsl .kac-svc{grid-column:1/-1}
  .kres-fields{grid-template-columns:1fr}
}

/* ---------- calendrier dans la page (case « Autres dates ») : aux couleurs du restaurant ---------- */
html.kres #kacDb .position-relative{position:absolute!important;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
html.kres .kac-other{gap:4px!important}
html.kres .kac-other svg{color:var(--ink);opacity:.9}
html.kres .kac-other.on svg{color:var(--on)}
.kac-cal[hidden]{display:none!important}
.kac-cal{margin-top:4px}
.ui-datepicker.kres-dp{position:static!important;display:block;width:auto!important;max-width:440px;margin:0 auto!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0 0!important;font-family:Quicksand,sans-serif;color:var(--ink)}
.kres-dp .ui-datepicker-header{background:none!important;border:0!important;padding:0 0 12px;position:relative;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.kres-dp .ui-datepicker-title{font-weight:700;font-size:17px;color:var(--ink);margin:0;line-height:44px}
.kres-dp .ui-datepicker-prev,.kres-dp .ui-datepicker-next{position:absolute!important;top:0!important;width:44px!important;height:44px!important;border-radius:12px;background:transparent!important;border:1.5px solid var(--box)!important;cursor:pointer;display:grid!important;place-items:center}
.kres-dp .ui-datepicker-prev{left:0!important}.kres-dp .ui-datepicker-next{right:0!important}
.kres-dp .ui-datepicker-prev:hover,.kres-dp .ui-datepicker-next:hover{background:var(--soft2)!important;border-color:var(--ink)!important}
.kres-dp .ui-datepicker-prev span,.kres-dp .ui-datepicker-next span{display:none!important}
.kres-dp .ui-datepicker-prev::before,.kres-dp .ui-datepicker-next::before{content:"";display:block;width:9px;height:9px;border:solid var(--ink);border-width:0 2px 2px 0;transform:rotate(135deg);margin-left:3px}
.kres-dp .ui-datepicker-next::before{transform:rotate(-45deg);margin:0 3px 0 0}
.kres-dp .ui-datepicker-prev.ui-state-disabled{opacity:.3;cursor:default}
.kres-dp table{width:100%;border-collapse:separate;border-spacing:0 6px;margin:0;font-size:16px}
.kres-dp th{font-size:12px;font-weight:700;color:var(--ink3);padding:2px 0 6px;text-transform:uppercase;letter-spacing:.06em}
.kres-dp td,.kres-dp td.ui-datepicker-current-day,.kres-dp td.ui-datepicker-today{padding:0 2px;border:0!important;background:transparent!important;text-align:center}
.kres-dp td a,.kres-dp td span{display:inline-grid!important;place-items:center;width:44px;height:44px;max-width:100%;border-radius:50%!important;border:1.5px solid var(--box)!important;background:transparent!important;color:var(--ink)!important;font-weight:700;text-align:center!important;padding:0!important;text-decoration:none;box-shadow:none!important}
.kres-dp td a:hover{background:var(--soft2)!important;border-color:var(--ink)!important}
.kres-dp td.ui-state-disabled span{border-color:transparent!important;color:var(--ink3)!important;opacity:.55;font-weight:600}
.kres-dp td.ui-datepicker-today a{border-style:dashed!important}
.kres-dp td a.ui-state-active,.kres-dp td.ui-datepicker-current-day a{background:var(--ac)!important;border-color:var(--ac)!important;color:var(--on)!important}
.kres-dp .ui-datepicker-buttonpane{display:none}
@media (max-width:575px){.kres-dp td a,.kres-dp td span{width:40px;height:40px}}

/* ---------- dans le site du restaurant (bouton Kouver) ---------- */
html.kres-embed .kres-back{display:none}
html.kres-embed .kres-top{padding-top:4px}
html.kres-embed #formpaiement{padding-bottom:20px}

/* Pastilles de disponibilité sous les créneaux */
html.kres .time-slot-button{position:relative}
html.kres .time-slot-button::after{content:"";position:absolute;top:7px;right:7px;width:7px;height:7px;border-radius:50%;background:#2FB774}
html.kres .time-slot-button.kac-few::after{background:#F29A38}
html.kres .kac-leg{display:flex;clear:both;grid-column:1/-1;flex-basis:100%;width:100%;box-sizing:border-box;align-items:center;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--ink2);margin:10px 4px 0}
html.kres .kac-leg[hidden]{display:none}
html.kres .kac-leg i{width:7px;height:7px;border-radius:50%;background:#2FB774;display:inline-block}
html.kres .kac-leg i.few{background:#F29A38}
html.kres .kac-leg span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}

/* En-tête du site (restaurateur connecté) : il ne doit jamais recouvrir le haut de la page de réservation */
html.kres .container-fluid.header{position:relative!important;top:auto!important;z-index:1060} /* au-dessus du contenu : le menu du compte (Profil, Déconnexion…) reste cliquable */
html.kres #mySidenav{z-index:1061}
html.kres body{padding-top:0!important}
/* Sur mobile, la page de réservation montre ce que voit le client : pas de barre blanche du site,
   seulement un lien discret pour revenir à l'espace restaurateur */
html.kres .kres-mine{display:none}
@media (max-width:767px){
  html.kres .container-fluid.header{display:none!important}
  html.kres .kres-mine{display:block;text-align:center;font-size:12.5px;font-weight:700;color:var(--ink2);text-decoration:none;padding:9px 12px;background:var(--soft);border-bottom:1px solid var(--line)}
}
/* Refus du serveur et erreur de saisie : lisibles sur la couleur du restaurant, quelle qu'elle soit */
.kres-errors{background:#fff;color:#8A1C1C;border-radius:12px;padding:12px 16px;margin:0 0 16px;font-weight:600;font-size:14.5px;line-height:1.4}
.kres-errors p{margin:0}
.kres-errors p+p{margin-top:6px}
.kres-fielderr{color:var(--ac);font-size:13px;font-weight:600;margin-top:6px;line-height:1.35}
#card-errors{color:var(--ac);font-size:13.5px;font-weight:600;margin-top:10px;line-height:1.35}
#card-errors:empty{display:none}
