:root {
  --panel: rgba(22, 26, 30, 0.78);
  --panel-solid: #1a1e22;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f1ec;
  --muted: #b7b3aa;
  --accent: #e4502f;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #cfe0ea; color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body[data-mode="visit"] #c { cursor: grab; }
body[data-mode="visit"] #c:active { cursor: grabbing; }

.glass { background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- barre haute */
#top { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); z-index: 5; }
.brand { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.brand strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { color: var(--muted); font-size: 12px; }
#panel-toggle { font-size: 18px; width: 36px; height: 36px; border-radius: 8px; }
#panel-toggle:hover { background: var(--line); }
nav { display: flex; background: rgba(255,255,255,.06); border-radius: 9px; padding: 3px; }
nav button { padding: 6px 12px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
nav button:hover { color: var(--text); }
nav button.on { background: #f3f1ec; color: #1a1e22; font-weight: 600; }
body[data-mode="visit"] .cuts { opacity: .45; }

/* ---------- panneau latéral */
#panel { position: fixed; top: 80px; left: 12px; bottom: 12px; width: 300px; border-radius: var(--radius);
  background: var(--panel); backdrop-filter: blur(10px); display: flex; flex-direction: column; z-index: 4;
  transition: transform .25s ease, opacity .25s; overflow: hidden; }
body:not(.panel-open) #panel { transform: translateX(-110%); opacity: 0; pointer-events: none; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 7px; border-radius: 8px; color: var(--muted); }
.tabs button.on { background: rgba(255,255,255,.1); color: var(--text); font-weight: 600; }
.tab { overflow-y: auto; padding: 4px 12px 14px; flex: 1; }
.tab h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 4px 6px; font-weight: 600; }
.tab ul { list-style: none; margin: 0; padding: 0; }
#rooms li { display: flex; gap: 4px; }
#rooms .go { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left;
  padding: 7px 8px; border-radius: 8px; min-width: 0; }
#rooms .go small { color: var(--muted); white-space: nowrap; }
#rooms .go:hover, #rooms .pics:hover { background: rgba(255,255,255,.08); }
#rooms .pics { padding: 4px 8px; border-radius: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.price { font-size: 26px; font-weight: 700; margin: 12px 4px 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 12px; }
.facts div { background: rgba(255,255,255,.06); border-radius: 8px; padding: 7px 9px; }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
#info p { margin: 8px 4px; color: #dcd8cf; }
.bul { padding-left: 20px !important; list-style: disc !important; color: #dcd8cf; }
.bul li { margin: 3px 0; }
.plans { display: flex; gap: 6px; margin: 0 4px; }
.plans button { flex: 1; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.08); }
.plans button:hover { background: rgba(255,255,255,.14); }
.note { font-size: 12px; color: var(--muted) !important; margin-top: 16px !important; }

/* ---------- mini-plan */
#mapbox { position: fixed; right: 12px; bottom: 12px; width: 280px; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); backdrop-filter: blur(10px); z-index: 4; }
#mapbox .levels { display: flex; gap: 4px; padding: 6px; }
#mapbox .levels button { flex: 1; padding: 4px; border-radius: 7px; color: var(--muted); font-size: 12px; }
#mapbox .levels button.on { background: rgba(255,255,255,.12); color: var(--text); font-weight: 600; }
#map { display: block; width: 100%; aspect-ratio: 29.5 / 24; cursor: crosshair; }

/* ---------- aide */
#hint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px;
  background: var(--panel); color: #e6e3dc; font-size: 12.5px; z-index: 3; white-space: nowrap; pointer-events: none;
  max-width: calc(100vw - 340px); overflow: hidden; text-overflow: ellipsis; }
kbd { font: 11px/1 ui-monospace, monospace; background: rgba(255,255,255,.14); border-radius: 4px; padding: 2px 4px; margin: 0 1px; }

/* ---------- étiquettes 3D */
#labels { position: fixed !important; inset: 0; pointer-events: none; z-index: 2; }
.lbl { display: flex; align-items: stretch; border-radius: 999px; overflow: hidden; pointer-events: auto;
  background: rgba(22,26,30,.82); box-shadow: 0 2px 10px rgba(0,0,0,.25); font-size: 12.5px; transform: translateY(-50%); }
.lbl button { padding: 5px 10px; white-space: nowrap; }
.lbl .nm { font-weight: 600; }
.lbl .ph { border-left: 1px solid var(--line); color: #ffd9cf; }
.lbl button:hover { background: rgba(255,255,255,.12); }

/* ---------- chargement */
#loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: #1a1e22; z-index: 20; transition: opacity .6s; font-size: 15px; }
#loading.done { opacity: 0; pointer-events: none; }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- galerie */
#lightbox { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: var(--panel-solid); color: var(--text);
  display: none; flex-direction: column; overflow: hidden; }
#lightbox[open] { display: flex; }
#lightbox::backdrop { background: rgba(8,10,12,.75); }
.lb-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
#lb-count { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
#lb-close { width: 34px; height: 34px; border-radius: 8px; font-size: 16px; }
#lb-close:hover { background: var(--line); }
.lb-stage { position: relative; display: grid; place-items: center; background: #0f1113; min-height: 0; flex: 1; }
#lb-img { max-width: 100%; max-height: calc(94vh - 190px); object-fit: contain; display: block; transition: opacity .2s; }
#lb-img.loading { opacity: .35; }
#lb-prev, #lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; font-size: 34px;
  background: rgba(0,0,0,.35); border-radius: 10px; }
#lb-prev { left: 10px; } #lb-next { right: 10px; }
#lb-prev:hover, #lb-next:hover { background: rgba(0,0,0,.6); }
#lb-desc { margin: 8px 14px 0; color: #d4d0c7; }
#lb-desc:empty { display: none; }
#lb-thumbs { display: flex; gap: 6px; padding: 10px 14px 12px; overflow-x: auto; }
#lb-thumbs button { flex: none; border-radius: 6px; overflow: hidden; opacity: .55; outline: 2px solid transparent; }
#lb-thumbs button.on { opacity: 1; outline-color: var(--accent); }
#lb-thumbs img { display: block; height: 58px; width: auto; }

/* ---------- mobile */
@media (max-width: 760px) {
  #top { top: 8px; left: 8px; right: 8px; gap: 8px; padding: 6px 8px; }
  .brand strong { font-size: 13px; }
  .brand span { display: none; }
  nav button { padding: 5px 9px; font-size: 13px; }
  .cuts { order: 5; }
  #panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 55vh; }
  body:not(.panel-open) #panel { transform: translateY(110%); }
  #mapbox { width: 170px; right: 8px; bottom: 8px; }
  body.panel-open #mapbox { display: none; }
  #hint { display: none; }
}

/* ---------- écran d'accueil */
#welcome { position: fixed; inset: 0; z-index: 15; overflow-y: auto; overscroll-behavior: contain; background: #f6f3ee; color: #1d2126; scroll-behavior: smooth; }
#welcome[hidden] { display: none; }
.w-hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; padding: 28px 28px 18px;
  background: linear-gradient(180deg, rgba(10,14,18,0) 35%, rgba(10,14,18,.8) 100%), url(../hero.jpg) center / cover no-repeat; }
.w-card { max-width: 640px; min-width: 0; width: 100%; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.w-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
#welcome h1 { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; }
.w-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.w-facts li { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; font-size: 14px; text-shadow: none; }
.w-text { margin: 0 0 8px; font-size: 15px; max-width: 560px; }
.w-price { margin: 0 0 16px; font-size: 24px; font-weight: 700; }
.w-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.w-actions button, .w-actions a { padding: 11px 18px; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600;
  backdrop-filter: blur(6px); text-decoration: none; text-shadow: none; }
.w-actions button:hover, .w-actions a:hover { background: rgba(255,255,255,.28); }
.w-actions .w-primary { background: #f3f1ec; color: #1a1e22; }
.w-actions .w-primary:hover { background: #fff; }
.w-down { justify-self: center; margin-top: 22px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; opacity: .9;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.w-down span { font-size: 20px; animation: w-bob 1.8s ease-in-out infinite; }
@keyframes w-bob { 50% { transform: translateY(5px); } }
.w-more { max-width: 1080px; margin: 0 auto; padding: 8px 28px 48px; }
.w-sec { padding: 30px 0; border-bottom: 1px solid #e3ddd3; }
.w-sec:last-child { border-bottom: 0; }
.w-sec h2 { margin: 0 0 10px; font-size: 26px; }
.w-sec h3 { margin: 0 0 10px; font-size: 17px; }
.w-sec p { line-height: 1.6; }
.w-lead { font-size: 17px; max-width: 760px; margin: 0; }
.w-sub { margin: 0 0 16px; color: #6b6760; }
.w-small { font-size: 13px; color: #6b6760; }
.w-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.w-room { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.w-ph { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #ddd; border-radius: 0; }
.w-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.w-ph:hover img { transform: scale(1.04); }
.w-ph span { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.w-rt { padding: 10px 12px 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.w-rt small { color: #6b6760; white-space: nowrap; }
.w-3d { margin: 4px 12px 12px; align-self: flex-start; padding: 6px 12px; border-radius: 8px; background: #eee9e0; color: #1d2126; font-weight: 600; font-size: 13px; }
.w-3d:hover { background: #e2dccf; }
.w-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.w-cols p { margin: 0 0 10px; }
.w-list { margin: 0; padding-left: 18px; line-height: 1.6; }
.w-equip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.w-equip li { background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.w-equip span { color: #6b6760; font-size: 14px; }
.w-plans { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.w-plans button { padding: 9px 14px; border-radius: 9px; background: #fff; color: #1d2126; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.w-end { text-align: center; }
.w-end .w-actions { justify-content: center; }
.w-end .w-actions button, .w-end .w-actions a { background: #e9e3d8; color: #1d2126; backdrop-filter: none; }
.w-end .w-actions .w-primary { background: #1d2126; color: #fff; }
.w-note { margin-top: 18px; }
.w-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 760px; }
.w-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.w-form small { font-weight: 400; color: #6b6760; }
.w-form input, .w-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #d8d1c4; border-radius: 9px; background: #fff; color: #1d2126; }
.w-form input:focus, .w-form textarea:focus { outline: 2px solid #1d2126; outline-offset: 0; }
.w-full { grid-column: 1 / -1; }
.w-hp { position: absolute; left: -9999px; }
.w-send { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.w-send button { padding: 11px 22px; border-radius: 10px; background: #1d2126; color: #fff; font-weight: 600; }
.w-send button:disabled { opacity: .5; }
.w-status { font-size: 14px; color: #3c5a3a; }
#home-btn { padding: 6px 11px; border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; white-space: nowrap; }
#home-btn:hover { background: rgba(255,255,255,.22); }
#brand-home { cursor: pointer; }
@media (max-width: 760px) { .w-hero { padding: 18px 18px 12px; } .w-text { display: none; } .w-facts li { font-size: 13px; padding: 5px 10px; }
  .w-actions button, .w-actions a { padding: 10px 13px; } .w-more { padding: 0 16px 36px; } .w-sec { padding: 22px 0; } .w-sec h2 { font-size: 22px; }
  .w-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .w-rt { flex-direction: column; gap: 0; padding: 8px 10px 2px; } .w-3d { margin: 4px 10px 10px; }
  #home-btn { padding: 6px 8px; } }

/* langues : un seul bloc visible */
html[lang="en"] [data-l="fr"], html[lang="fr"] [data-l="en"] { display: none !important; }
.w-lang { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.w-lang a { padding: 7px 13px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; backdrop-filter: blur(6px); }
.w-lang a:hover { background: rgba(0,0,0,.65); }
.lang-btn { padding: 6px 10px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: none; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.w-map { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.1); aspect-ratio: 4 / 3; background: #dfe7ea; }
.w-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.w-small a { color: inherit; }
.w-faq { display: grid; gap: 10px; max-width: 820px; }
.w-faq details { background: #fff; border-radius: 10px; padding: 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.w-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: #6b6760; }
.w-faq details[open] summary::after { content: '−'; }
.w-faq details p { margin: 0 0 16px; color: #3b3f44; }
.w-plans-c { justify-content: center; margin: 4px 0 18px; }
