/* Resa Resto — carte de réservation à accordéons (téléphone = ordinateur). */
.resaresto {
  --resa-accent: #990000;
  --resa-accent-ink: #fff;
  --resa-dark: #2b2d31;
  --resa-beige: #f0e2cc;
  --resa-line: rgba(0, 0, 0, .18);
  --resa-muted: rgba(0, 0, 0, .6);
  --resa-panel: #f5f5f5;
  font: inherit;
  line-height: 1.5;
  padding: 1rem 0;
}
.resaresto *, .resaresto *::before, .resaresto *::after { box-sizing: border-box; }
.resaresto [hidden] { display: none !important; }

.resa-card { max-width: 38rem; margin: 0 auto; background: #fff; color: #3b3f45; border-radius: 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); overflow: hidden; }
.resa-head { text-align: center; padding: 1.4rem 1rem .4rem; font-size: 1.6rem; color: var(--resa-accent); }
.resa-groups { text-align: center; margin: .4rem 1.5rem 1rem; color: #555; }

/* Accordéons */
.resa-acc { border-top: 1px solid var(--resa-line); }
.resa-acc-h { width: 100%; display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.3rem; background: transparent; border: 0; font: inherit; font-size: 1.35rem; color: inherit; cursor: pointer; text-align: left; }
.resa-acc-h b { flex: 1; font-weight: 600; }
.resa-acc-h .chev { flex: none; transition: transform .15s; }
.resa-acc.is-open { background: var(--resa-panel); }
.resa-acc.is-open .chev { transform: rotate(180deg); }
.resa-acc-b { padding: .4rem 1.3rem 1.6rem; }

/* Couverts */
.resa-guests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 40rem) { .resa-guests { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.resa-chip { font: inherit; font-size: 1.2rem; padding: 1.1rem 0; background: var(--resa-panel); color: inherit; border: 1.5px solid #8a8d92; border-radius: 10px; cursor: pointer; }
.resa-chip[aria-pressed="true"] { background: var(--resa-dark); border-color: var(--resa-dark); color: #fff; }

/* Date */
.resa-next { text-align: center; margin: .6rem 0 1rem; }
.resa-next span { display: inline-block; background: #c9c9c9; border-radius: 999px; padding: .3rem 1.2rem; font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; }
.resa-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.resa-tile { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 1.1rem .3rem; background: var(--resa-panel); color: inherit; border: 1.5px solid #8a8d92; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.resa-tile b { font-weight: 600; }
.resa-tile[aria-pressed="true"] { background: var(--resa-dark); border-color: var(--resa-dark); color: #fff; }
.resa-tile-other { background: #e6e6e6; }
.resa-other { margin-top: 1rem; }
.resa-days { display: flex; align-items: flex-start; gap: .5rem; }
.resa-days-list { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem .2rem; }
.resa-nav { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--resa-dark); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.resa-nav:disabled { opacity: .25; cursor: not-allowed; }
.resa-day { display: flex; flex-direction: column; align-items: center; gap: .2rem; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.resa-day-n { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--resa-beige); border: 1px solid var(--resa-beige); }
.resa-day-w { font-size: .85rem; }
.resa-day[aria-pressed="true"] .resa-day-n { background: var(--resa-dark); border-color: var(--resa-dark); color: #fff; }
.resa-day.is-closed .resa-day-n { background: #fff; border-color: #bbb; color: #aaa; }
.resa-day.is-full .resa-day-n { background: #fff; border: 1px dashed #aaa; color: #aaa; }
.resa-day:disabled { cursor: not-allowed; }
.resa-other-date { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .95rem; }
.resa-other-date input { font: inherit; padding: .4rem .6rem; border: 1px solid var(--resa-line); border-radius: 6px; background: #fff; }

/* Horaires */
.resa-subtitle { margin: 1.2rem 0 .6rem; font-size: 1.15rem; font-weight: 700; color: #2b2d31; }
.resa-subtitle:first-child { margin-top: .4rem; }
.resa-slot { width: 100%; display: flex; align-items: center; gap: .8rem; margin: 0 0 .6rem; padding: 1.15rem 1rem; font: inherit; font-size: 1.2rem; color: inherit; background: var(--resa-panel); border: 1.5px solid #8a8d92; border-radius: 12px; cursor: pointer; text-align: left; }
.resa-slot .dot { width: .9rem; height: .9rem; border-radius: 50%; flex: none; background: #2da44e; }
.resa-slot .dot.ko { background: #bbb; }
.resa-slot em { margin-left: auto; font-style: normal; font-size: .9rem; color: var(--resa-muted); }
.resa-slot[aria-pressed="true"] { background: var(--resa-dark); border-color: var(--resa-dark); color: #fff; }
.resa-slot:disabled { opacity: .55; cursor: not-allowed; }
.resa-hint { color: var(--resa-muted); font-size: .95rem; }

/* Bouton Réserver */
.resa-cta { padding: 1.3rem 1.3rem 1.5rem; border-top: 1px solid var(--resa-line); }
.resa-cta .resa-btn { width: 100%; }

/* 4. Coordonnées */
.resa-recap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; padding: 1rem 0; border-bottom: 1px solid var(--resa-line); font-size: 1.15rem; }
.resa-recap span::before { margin-right: .5rem; }
.resa-recap [data-recap-date]::before { content: "\1F4C5"; }
.resa-recap [data-recap-guests]::before { content: "\1F465"; }
.resa-recap [data-recap-address]::before { content: "\1F4CD"; }
.resa-notice { color: #e00000; font-size: 1.05rem; padding: 1rem 0 1rem 3.2rem; margin: 0; border-bottom: 1px solid var(--resa-line); position: relative; }
.resa-notice::before { content: "\1F441"; color: #222; position: absolute; left: .6rem; top: .8rem; font-size: 1.6rem; }

.resa-form { display: grid; gap: 1rem; margin-top: 1rem; }
.resa-form label { display: block; }
.resa-form label > span:first-child { display: block; margin-bottom: .25rem; font-size: .95rem; color: var(--resa-muted); }
.resa-form input[type="text"], .resa-form input[type="email"], .resa-form input[type="tel"], .resa-form select, .resa-form textarea {
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--resa-line); border-radius: 3px; padding: .6rem .7rem; width: 100%;
}
.resa-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.resa-row-phone { grid-template-columns: 1fr 1fr; }
.resa-form label.resa-check { display: flex; gap: .6rem; align-items: flex-start; }
.resa-form label.resa-check > span:first-child { display: inline; margin: 0; color: inherit; font-size: 1rem; }
.resa-form label.resa-check.is-required > span:first-of-type { color: var(--resa-accent); }
.resa-check input { margin-top: .35rem; flex: none; }
.resa-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.resa-error { color: #b00020; font-weight: 600; margin: 0; }
.resa-actions-center { display: flex; justify-content: center; }
.resa-btn { font: inherit; padding: .8rem 2.2rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; cursor: pointer; border: 1px solid var(--resa-line); background: transparent; color: inherit; }
.resa-btn-primary { background: var(--resa-accent); border-color: var(--resa-accent); color: var(--resa-accent-ink); }
.resa-btn-primary:hover:not(:disabled) { filter: brightness(1.15); }
.resa-btn-primary:disabled { opacity: .6; cursor: wait; }

/* RGPD */
.resa-rgpd { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--resa-line); font-size: .85rem; }
.resa-rgpd p { margin: .2rem 0 .8rem; }
.resa-rgpd dl { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1rem; margin: 0; }
.resa-rgpd dt { font-weight: 700; }
.resa-rgpd dd { margin: 0; font-weight: 600; }

/* 5. Confirmation */
.resa-done { text-align: center; padding: 2rem 0; }
.resa-done:focus { outline: none; }
.resa-check-circle { width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--resa-accent); color: #fff; font-size: 2.6rem; display: grid; place-items: center; }
.resa-done .resa-title { font-size: 1.9rem; margin: 0 0 .5rem; }
.resa-summary { font-size: 1.15rem; }
.resa-ref { white-space: nowrap; letter-spacing: .02em; }
.resa-copy { margin-left: .3rem; padding: .15rem .6rem; font: inherit; font-size: .85rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; vertical-align: middle; }
.resa-copy:hover { background: rgba(0,0,0,.06); }

.resaresto :focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }


[data-view="details"], .resa-done { padding: 1rem 1.3rem 1.6rem; }
.resa-btn-primary { background: var(--resa-dark); border-color: var(--resa-dark); }
.resa-btn-primary:disabled { background: #fff; color: #999; border-color: var(--resa-line); opacity: 1; cursor: not-allowed; }
.resa-btn { border-radius: 12px; padding: 1.05rem 1.5rem; font-size: 1.15rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.resa-check-circle { background: var(--resa-accent); }
.resa-back-top { margin: 0 0 .5rem; }
@media (max-width: 40rem) {
  .resa-days-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .resa-recap { grid-template-columns: 1fr; text-align: left; }
  .resa-row, .resa-row-phone { grid-template-columns: 1fr; }
  .resa-rgpd dl { grid-template-columns: 1fr; gap: .1rem; }
  .resa-rgpd dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .resaresto * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
