/* Oscar — version téléphone (mobile.html)
   Une application à onglets : écrans courts, gros boutons, rien qui bouge tout seul.
   Mêmes couleurs que la version ordinateur : nuit violette et or du logo. */

html.m {
  --bg: #0d0b10;
  --surface: #17131a;
  --surface-2: #221c25;
  --ink: #f6efe4;
  --muted: #cdbfab;
  --line: #352c36;
  --accent: #d9b45a;
  --accent-hover: #e6c574;
  --accent-soft: #2e2416;
  --accent-ink: #e6c574;
  --on-accent: #1a1408;
  --focus: #e6c574;
  --free: #7cc79a; --free-soft: #1f3327;
  --taken: #a59b91; --taken-soft: #2d2824;
  --danger: #f2857a; --danger-soft: #3d1f1c;
  --confirm: #7cc79a; --confirm-soft: #1f3327;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --top-h: 58px;
  --tabs-h: 66px;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}
.m-body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
.m-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#main { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 24px); }

/* ---------------------------------------------------------------- haut -- */
.m-top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: rgb(13 11 16 / .86); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.m-logo { margin-inline-end: auto; display: flex; }
.m-logo img { height: 38px; width: auto; }
.m-icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.m-icon-btn .icon { width: 18px; height: 18px; }
.m-icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.m-cta-sm { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none; }

/* ------------------------------------------------------------ onglets -- */
.m-tabs {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgb(18 15 21 / .94); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-top: 1px solid var(--line);
}
.m-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 500; }
.m-tabs .icon { width: 22px; height: 22px; }
.m-tabs a[aria-current="page"] { color: var(--accent); }

/* Changement d'écran : un fondu court, sans glissement */
.view.enter { animation: mFade .22s ease-out; }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ communs -- */
.m-head { padding: 22px 18px 6px; }
.m-head h1 { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1.1; outline: none; }
.m-head p { margin-top: 8px; color: var(--muted); }
.m-h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 0 18px; }
.m-sub { margin: 2px 18px 12px; color: var(--muted); font-size: 14px; }
.m-block { padding: 26px 0 0; }
.m-note { margin: 12px 18px 0; color: var(--muted); font-size: 13px; }
.m-card { margin: 14px 14px 0; padding: 18px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.m-step-title { font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin: 0 0 12px; padding: 0; }
.m-card .m-step-title + .seg + .m-step-title { margin-top: 20px; }
.visit-days + .m-step-title { margin-top: 20px; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px var(--font); text-decoration: none; cursor: pointer; color: var(--ink); background: var(--surface-2);
}
.m-btn .icon { width: 18px; height: 18px; }
.m-btn-gold { background: var(--accent); color: var(--on-accent); }
.m-btn-line { background: transparent; border-color: var(--line); }
.m-btn-glass { background: rgb(246 239 228 / .14); border-color: rgb(246 239 228 / .28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.m-btn-block { width: 100%; }
.m-btn:active, .m-cta-sm:active { transform: scale(.98); }

/* ------------------------------------------------------------- accueil -- */
.m-hero { position: relative; height: calc(100svh - var(--top-h) - var(--tabs-h) - 8px); min-height: 460px; max-height: 760px; overflow: hidden; }
.m-hero img { width: 100%; height: 100%; object-fit: cover; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(13 11 16 / .96) 0%, rgb(13 11 16 / .7) 34%, transparent 62%); }
.m-hero-text { position: absolute; z-index: 1; inset-inline: 18px; bottom: 22px; }
.m-kicker { color: var(--accent); font-size: 13px; letter-spacing: .03em; }
.m-hero h1 { font-family: var(--display); font-size: 2.3rem; font-weight: 600; line-height: 1.06; margin-top: 6px; }
.m-hero-text > p:not(.m-kicker) { margin-top: 10px; color: #eadfcf; }
.m-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.m-hero-actions .m-btn { padding: 0 10px; font-size: 15px; }

.m-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 18px 6px; scrollbar-width: none; }
.m-rail::-webkit-scrollbar { display: none; }
.m-moment { flex: none; width: 64vw; max-width: 300px; margin: 0; scroll-snap-align: start; scroll-margin-inline: 18px; }
.m-moment img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.m-moment figcaption { margin-top: 8px; font-size: 15px; }
.m-moment b { color: var(--accent); font-weight: 600; margin-inline-end: 6px; font-variant-numeric: tabular-nums; }

.m-facts { list-style: none; margin: 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-facts li { padding: 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.m-facts b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--accent); }
.m-facts span { display: block; font-size: 12.5px; color: var(--muted); }
.m-row-link { display: flex; align-items: center; justify-content: space-between; margin: 10px 14px 0; min-height: 56px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.m-row-link .icon { color: var(--muted); }

/* -------------------------------------------------------------- salles -- */
.m-rooms { display: grid; gap: 14px; padding: 14px 14px 0; }
.m-room { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.m-room img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.m-room-body { padding: 14px 16px 16px; }
.m-room-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-room h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.m-chip { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.m-room p { margin: 6px 0 14px; color: var(--muted); }
.m-room .m-btn { width: 100%; }

/* ------------------------------------------------------------- visite -- */
.m-body .visit-days button { min-width: 96px; border-radius: 14px; padding: 10px 14px; }
.m-body .visit-times { grid-template-columns: repeat(4, 1fr); }
.m-body .vt { min-height: 48px; border-radius: 12px; }
.m-more { margin: 2px 0 14px; }
.m-more summary { cursor: pointer; color: var(--accent); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.m-body input[type="text"], .m-body input[type="tel"], .m-body input[type="email"], .m-body input[type="number"], .m-body input[type="date"], .m-body select, .m-body textarea { min-height: 52px; border-radius: 12px; font-size: 16px; background: #110e14; }
.m-body .field label, .m-body .field .label { font-size: 15px; }

/* ----------------------------------------------------------- réserver -- */
.m-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.m-progress span { display: block; height: 100%; width: 33%; background: var(--accent); transition: width .25s ease-out; }
.m-step-count { margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.m-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.m-step legend { margin-bottom: 14px; }
.m-body .choice { min-height: 56px; border-radius: 14px; }
.add-slot { min-height: 44px; }
.m-step-nav { display: flex; gap: 10px; margin-top: 8px; }
.m-step-nav .m-btn { flex: 1; }
.m-step-nav #stepPrev { flex: 0 0 auto; }
.m-recap { margin-top: 6px; padding: 14px; border-radius: 14px; background: var(--accent-soft); }
.m-recap-title { font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }
.m-recap ul { margin: 0 0 4px; padding-inline-start: 18px; }
.m-recap li, .m-recap p { font-size: 14.5px; }

/* ------------------------------------------------------------ contact -- */
.m-actions { display: grid; gap: 10px; padding: 14px 14px 0; }
.m-action { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.m-action > span:nth-child(2) { flex: 1; }
.m-action b { display: block; font-size: 16px; }
.m-action small { display: block; color: var(--muted); font-size: 13.5px; }
.m-action-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgb(217 180 90 / .14); color: var(--accent); }
.m-action-wa .m-action-ic { background: #1f8f4e; color: #fff; }
.m-action .icon { width: 22px; height: 22px; }
.m-action > span:last-child .icon { width: 18px; height: 18px; color: var(--muted); }

.m-place { margin: 16px 14px 26px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.m-map { position: relative; height: 220px; aspect-ratio: auto; background: #15121a; }
.m-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.92); }
.m-map .map-load { background: transparent; color: var(--ink); }
.m-place-body { padding: 14px 16px 16px; }
.m-place-body h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.m-place-body h2 small { display: block; font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--muted); }
.m-status { display: flex; gap: 8px; margin-top: 10px; font-size: 14.5px; }
.place-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.place-dot.on { background: #4cc38a; }
.m-place-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 14px; }
.m-dist { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 1.2em; }

.m-body .faq { margin: 10px 14px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.m-body .faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.m-body .faq summary { padding: 16px 2px; font-size: 16px; font-weight: 500; }
.m-body .faq details p { padding: 0 2px 16px; }

.m-foot { margin: 30px 18px 0; text-align: center; color: var(--muted); font-size: 14px; }
.m-foot img { width: 120px; height: auto; margin: 0 auto 10px; }
.m-foot a { color: var(--ink); }
.m-foot-small { margin-top: 8px; font-size: 12.5px; }
.m-foot .linkish { margin-top: 12px; min-height: 44px; color: var(--muted); }

.m-body .toast { bottom: calc(var(--tabs-h) + 16px); }
.m-body .done { padding: 10px 0; }

/* Ouverte sur un grand écran (choix « Version téléphone ») : on garde la largeur d'un téléphone */
@media (min-width: 640px) {
  .m-top, #main { max-width: 480px; margin-inline: auto; }
  .m-tabs { inset-inline: calc(50% - 240px); border-inline: 1px solid var(--line); }
  .m-body { background: #08070a; }
  #main { background: var(--bg); min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  .view.enter { animation: none; }
  .m-progress span { transition: none; }
}
