/* Page publique de réservation : vitrine aux couleurs du prestataire (--brand). */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  --brand: #8a3a5c;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 22%, #fff);
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --bg: #f7f5f6; --surface: #fff; --ink: #221d24; --muted: #6c6570; --line: #e9e4ea;
  --ok: #23774c; --bad: #b0344a; --r: 16px; --shadow: 0 1px 2px rgba(30, 20, 35, .05), 0 8px 24px rgba(30, 20, 35, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Couverture */
.cover { position: relative; height: clamp(180px, 34vw, 380px); overflow: hidden;
  background: radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--brand) 55%, #fff) 0, transparent 45%),
              radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--brand) 35%, #000) 0, transparent 50%), var(--brand); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .25)); }
.monogram { position: absolute; right: max(16px, 6vw); bottom: -0.18em; font-size: clamp(120px, 22vw, 280px); font-weight: 800; letter-spacing: -.04em; color: rgba(255, 255, 255, .14); line-height: 1; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.main { flex: 999 1 600px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.side { flex: 1 1 300px; display: grid; gap: 16px; margin-top: 20px; }

/* Identité */
.identity { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 28px; margin-top: -64px; position: relative; z-index: 1; }
.identity h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.tagline { margin: 6px 0 0; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; align-items: center; }
.facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a:hover { border-color: var(--brand); color: var(--brand); }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.on { color: var(--ok); background: #e3f3ea; }
.status.off { color: var(--muted); background: #f0edf1; }

.important { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--r); padding: 16px 20px; }
.important strong { color: var(--brand-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.important p { margin: 4px 0 0; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--surface); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 12px; }
.steps li.now { color: var(--ink); box-shadow: inset 0 0 0 2px var(--brand); }
.steps li.now span, .steps li.past span { background: var(--brand); color: #fff; }

.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 26px 28px; scroll-margin-top: 16px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel h2, .about h2, .box h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.search { flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--line); border-radius: 12px; background: #faf9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236c6570' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 13px center no-repeat; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 -4px 6px; scrollbar-width: none; position: sticky; top: 0; z-index: 2; background: var(--surface); padding-top: 6px; }
.tab { flex: 0 0 auto; width: 104px; display: grid; justify-items: center; gap: 7px; border: 0; background: none; color: var(--ink); padding: 4px 2px 6px; cursor: pointer; font-weight: 700; font-size: 12.5px; line-height: 1.25; text-align: center; }
.tab-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: background .15s, color .15s, transform .15s; }
.tab:hover .tab-ico { transform: translateY(-2px); }
.tab-tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tab[aria-selected="true"] .tab-ico { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.tab[aria-selected="true"] .tab-tx { color: var(--brand-dark); }
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cat-ico { display: flex; align-items: center; gap: 10px; }
.cat-ico span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.cat-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.cat { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 0 10px; }
.sub { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; }
.empty { padding: 20px 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.card-svc { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s; }
.card-svc:hover { border-color: var(--brand-line); }
.card-svc.on { border-color: var(--brand); background: var(--brand-soft); }
.card-svc .tx { min-width: 0; }
.card-svc h4 { margin: 0; font-size: 15px; line-height: 1.3; }
.card-svc p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.card-svc .meta { display: flex; gap: 10px; align-items: baseline; margin-top: 4px; font-size: 13px; color: var(--muted); }
.card-svc .meta strong { color: var(--ink); font-size: 14px; }
.add { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--brand); color: var(--brand); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.add[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* Barre de sélection */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.bar-in { max-width: 1180px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.bar-in div { display: grid; line-height: 1.3; }
.bar-in span { color: var(--muted); font-size: 14px; }
body.with-bar { padding-bottom: 86px; }
@media (prefers-reduced-motion: no-preference) { .bar { animation: up .2s ease-out; } @keyframes up { from { transform: translateY(100%); } } }

.recap { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; }
.recap div { display: grid; min-width: 0; }
.recap span { color: var(--muted); font-size: 14px; }
.recap.big strong { font-size: 18px; }
.link { border: 0; background: none; color: var(--brand); font-weight: 700; cursor: pointer; padding: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .radio { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.radio { display: inline-flex; align-items: center; gap: 8px; }
.radio input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }

.days-nav { display: flex; gap: 6px; align-items: stretch; }
.days { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.nav { flex: 0 0 36px; font-size: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav:disabled { opacity: .3; cursor: default; }
.day { flex: 0 0 58px; display: grid; justify-items: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; cursor: pointer; }
.day .w, .day .m { font-size: 12px; color: var(--muted); }
.day .d { font-size: 20px; font-weight: 800; line-height: 1.25; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.day[aria-pressed="true"] .w, .day[aria-pressed="true"] .m { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { font-weight: 700; padding: 11px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--brand); color: var(--brand); }

form { display: grid; gap: 14px; }
form .cat { margin: 18px 0 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
label small, legend small { font-weight: 400; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
input, textarea { font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 100%; min-width: 0; }
input:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.err { color: var(--bad); margin: 10px 0 0; font-weight: 700; }
.btn { display: inline-block; font-weight: 800; font-size: 16px; border: 0; border-radius: 12px; padding: 14px 22px; background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: var(--bad); }

.done { text-align: center; }
.done h2 { margin: 10px 0; color: var(--ok); }
.done .when { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.done p { margin: 4px 0; }
.done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); margin: 0 auto; position: relative; }
.tick::after { content: ""; position: absolute; left: 21px; top: 12px; width: 11px; height: 22px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }

.about { background: var(--surface); border-radius: var(--r); padding: 22px 26px; }
.about p { margin: 10px 0 0; color: #463f49; line-height: 1.7; }
.box { background: var(--surface); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.box p { margin: 10px 0 0; }
.hours { margin: 12px 0 0; display: grid; gap: 2px; font-size: 14px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 8px; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; color: var(--muted); text-align: right; }
.hours .today { background: var(--brand-soft); } .hours .today dt, .hours .today dd { color: var(--brand-dark); font-weight: 800; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.notice { background: var(--surface); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }

/* Pages simples (annulation, introuvable) */
.hero { background: var(--brand); color: #fff; padding: 34px 0 30px; }
.hero h1 { margin: 0; font-size: 28px; }
.hero .tagline { color: rgba(255, 255, 255, .85); }
.wrap { max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main.wrap { padding-top: 24px; padding-bottom: 40px; }
.card { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.card form { display: block; margin-bottom: 12px; }

@media (max-width: 760px) {
  .identity { margin-top: -40px; padding: 20px; }
  .panel { padding: 20px 16px 22px; }
  .row { grid-template-columns: 1fr; }
  .steps li { justify-content: center; }
  .steps li:not(.now) { font-size: 0; flex: 0 0 auto; }
  .nav { display: none; }
  .side { margin-top: 0; }
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gbox h2 { display: flex; align-items: center; gap: 8px; }
.g-logo { width: 20px; height: 20px; }
.gmap { margin-top: 12px; border-radius: 12px; overflow: hidden; height: 250px; background: #eef1f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none' stroke='%23b8c1d1' stroke-width='1.6'%3E%3Cpath d='M20 34s-10-8.6-10-17a10 10 0 0 1 20 0c0 8.4-10 17-10 17z'/%3E%3Ccircle cx='20' cy='17' r='3.5'/%3E%3C/svg%3E") center 38% no-repeat; }
.gmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.gmap-load { width: 100%; height: 100%; border: 0; background: none; cursor: pointer; display: grid; align-content: end; gap: 4px; padding: 16px; color: var(--ink); font-weight: 700; }
.gmap-load span { justify-self: center; background: #fff; border-radius: 999px; padding: 9px 16px; box-shadow: var(--shadow); }
.gmap-load small { font-weight: 400; color: var(--muted); font-size: 12px; }
.gmap-load:hover span { color: var(--brand); }
.pill.star { background: #fff8e1; border-color: #f3d27a; }
.gbadge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gstars { color: #f5b400; letter-spacing: 1px; }
.gbadge strong { font-weight: 800; color: var(--ink); }
.gbadge span:last-child { color: var(--muted); }
.facts a.gb-link { border: 0; background: #fff8e1; border-radius: 999px; padding: 4px 12px; }
.facts a.gb-link:hover { background: #ffefc2; }
.gscore { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gscore b { font-size: 40px; line-height: 1; font-weight: 800; }
.gscore div { display: grid; }
.gstars.big { font-size: 20px; }
/* Bouton de retour à l'accueil de la plateforme */
.home-btn { position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1d2a3d; text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); transition: transform .15s; }
.home-btn:hover { transform: translateX(-2px); color: #1865e0; }
.home-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.home-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(120deg, #1865e0, #16b6f5); color: #fff; font-size: 10px; font-weight: 800; }
@media (max-width: 420px) { .home-tx { display: none; } .home-btn { padding-right: 8px; } }
.home-ic { width: 26px; height: 26px; display: block; }
/* Bouton retour : la règle « .cover img » (photo plein cadre) ne doit pas toucher l'icône */
.cover .home-btn img.home-ic { position: static; width: 20px; height: 20px; object-fit: contain; flex: none; }
.cover .home-btn { gap: 6px; padding: 7px 14px 7px 10px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.cover .home-btn svg { width: 16px; height: 16px; }
