/* Fenêtre « Réserver une table » : la mise en page du Pavillon Lamartine (récapitulatif des étapes à gauche,
   une question à droite), aux couleurs de Sept à Huitre. */

html.fetes-fige { overflow: hidden; }

.resa {
	width: min(940px, calc(100vw - 32px));
	max-width: none;
	max-height: min(760px, calc(100vh - 32px));
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--bleu);
	color: #fff;
	font: 400 .9375rem/1.55 var(--texte);
	box-shadow: 0 30px 80px rgb(0 0 0 / .5);
	overflow: hidden;
}
.resa[open] { display: flex; animation: resa-entree .35s cubic-bezier(.2, .7, .2, 1); }
.resa::backdrop { background: rgb(9 19 33 / .7); }
@keyframes resa-entree { from { opacity: 0; transform: translateY(24px); } }
.resa ::selection { background: var(--creme); color: var(--bleu); }

.resa__form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.resa__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.resa__marque { margin: 0; font: 400 1.35rem/1 var(--display); text-transform: uppercase; }
.resa__fermer { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: transparent; color: #fff; font-size: 1rem; cursor: pointer; }
.resa__fermer:hover { border-color: #fff; }

.resa__grille { display: grid; grid-template-columns: 250px 1fr; flex: 1; min-height: 0; }
.resa__recap { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; background: var(--bleu-fonce); }
.resa__etapes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.resa__etapes button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.resa__etapes button:disabled { opacity: .45; cursor: default; }
.resa__etapes button.is-on { background: rgb(255 255 255 / .1); }
.resa__etapes b { display: block; font: 400 1.05rem/1.1 var(--display); text-transform: uppercase; }
.resa__etapes button span span { color: var(--texte-doux); font-size: .82rem; }
.resa__num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; font-size: .85rem; }
.resa__etapes .is-on .resa__num { border-color: var(--creme); background: var(--creme); color: var(--bleu); }
.resa__etapes .is-fait .resa__num { border-color: var(--rouge-titre); background: var(--rouge-titre); color: #fff; }
.resa__tel { margin: 0; color: var(--texte-doux); font-size: .85rem; }
.resa__tel a { color: #fff; }

.resa__panneau { display: flex; flex-direction: column; min-height: 0; padding: 22px 26px 18px; overflow-y: auto; }
.resa__compteur { margin: 0 0 10px; color: var(--texte-doux); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.resa__etape { flex: 1; margin: 0; padding: 0; border: 0; min-width: 0; }
.resa__titre { display: block; margin: 0 0 20px; padding: 0; font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); text-transform: uppercase; outline: none; }
.resa__aide { margin: 12px 0 0; color: var(--texte-doux); font-size: .85rem; }
.resa__etape .resa__aide:first-of-type { margin: -8px 0 16px; }
.resa__note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: rgb(255 255 255 / .08); font-size: .9rem; }
.resa__note a { color: #fff; }

.resa__couverts { display: flex; flex-wrap: wrap; gap: 10px; }
.resa__rond, .resa__groupe { min-width: 54px; height: 54px; padding: 0 18px; border: 2px solid rgb(255 255 255 / .3); border-radius: 999px; background: transparent; color: #fff; font: 400 1.35rem/1 var(--display); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.resa__rond { padding: 0; }
.resa__groupe { font-size: 1rem; text-transform: uppercase; }
.resa__rond:hover, .resa__groupe:hover { border-color: #fff; }
.resa__rond.is-on, .resa__groupe.is-on { border-color: var(--creme); background: var(--creme); color: var(--bleu); }

.cal { max-width: 420px; }
.cal__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__mois { margin: 0; font: 400 1.2rem/1 var(--display); text-transform: uppercase; }
.cal__nav { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__jours, .cal__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__jours { margin-bottom: 4px; color: var(--texte-doux); font-size: .72rem; text-transform: uppercase; }
.cal__j { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.cal__j--ouvert:hover { background: rgb(255 255 255 / .12); }
.cal__j--hors, .cal__j--ferme { opacity: .28; cursor: default; }
.cal__j--exception { color: var(--rouge-titre); text-decoration: line-through; }
.cal__j--complet { color: var(--rouge-titre); text-decoration: line-through; opacity: .7; cursor: default; }
.cal__j--tard { opacity: .55; }
.cal__j--auj { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
.cal__j.is-on { background: var(--creme); color: var(--bleu); }

.resa__service + .resa__service { margin-top: 18px; }
.resa__service-t { margin: 0 0 10px; color: var(--texte-doux); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.resa__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.resa__pill { min-width: 84px; padding: 11px 14px; border: 2px solid rgb(255 255 255 / .3); border-radius: 999px; background: transparent; color: #fff; font: 400 1.05rem/1 var(--display); cursor: pointer; }
.resa__pill:hover:not(:disabled) { border-color: #fff; }
.resa__pill.is-on { border-color: var(--creme); background: var(--creme); color: var(--bleu); }
.resa__pill:disabled { opacity: .3; text-decoration: line-through; cursor: default; }
.resa__pill--complet:disabled { opacity: .45; border-style: dashed; }

.resa__champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.resa__champ { display: grid; gap: 5px; }
.resa__champ > span { color: var(--texte-doux); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.resa__champ > span small { letter-spacing: 0; text-transform: none; }
.resa__champ input { width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid transparent; border-radius: 6px; background: #fff; color: var(--bleu); font: inherit; color-scheme: light; }
.resa__champ input:focus { outline: 3px solid var(--rouge-titre); outline-offset: 1px; }
.resa__champ input[aria-invalid] { border-color: var(--rouge-titre); }
.resa__champ--large, .resa__consent { grid-column: 1 / -1; }
.resa__consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; color: var(--texte-doux); font-size: .82rem; }
.resa__consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--rouge); }
.resa__consent span { flex: 1; }
.resa__consent a { color: #fff; }
.resa__err { min-height: 0; color: #ffc4bf; font-size: .8rem; }
.resa__err:empty { display: none; }

.resa__nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .12); }
.resa__nav .btn { margin-left: auto; min-height: 48px; }
.resa__retour { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }
.resa__erreur { flex: 1; margin: 0; color: #ffc4bf; font-size: .85rem; }
.resa__erreur a { color: #fff; }

.resa__ok { flex: 1; }
.resa__kicker { margin: 0 0 6px; color: var(--texte-doux); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.resa__merci { margin: 0 0 12px; font: 400 clamp(2.2rem, 5.5vw, 3.2rem)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; outline: none; }
.resa__merci em { font-style: normal; color: var(--creme); }
.resa__quand { font-size: 1.05rem; }
.resa__lien { margin-top: 12px; padding: 6px 0; border: 0; border-bottom: 1px solid #fff; background: none; color: #fff; font: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 760px) {
	.resa { width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
	.resa__grille { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.resa__recap { padding: 10px 14px; }
	.resa__etapes { grid-template-columns: repeat(4, 1fr); gap: 4px; }
	.resa__etapes button { flex-direction: column; gap: 4px; padding: 6px 4px; text-align: center; }
	.resa__etapes b { font-size: .8rem; }
	.resa__etapes button span span, .resa__tel { display: none; }
	.resa__panneau { padding: 18px 16px 14px; }
	.resa__champs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .resa[open] { animation: none; } }
