:root {
  --tdm-ink: #03131f;
  --tdm-deep: #041a2c;
  --tdm-blue: #075e89;
  --tdm-cyan: #2ad4f5;
  --tdm-white: #f8fcff;
  --tdm-muted: #9bb6c7;
  --tdm-line: rgba(255,255,255,.16);
  --tdm-panel: rgba(4,26,44,.82);
  --tdm-radius: 24px;
  --tdm-shadow: 0 24px 80px rgba(0,0,0,.32);
}

html { scroll-behavior: smooth; }
body { background: var(--tdm-ink); color: var(--tdm-white); }
body:has(.tdm-fullscreen) { margin: 0; overflow-x: hidden; }
.tdm-shell, .tdm-room-detail { color: var(--tdm-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.tdm-shell *, .tdm-room-detail *, .tdm-home * { box-sizing: border-box; }
.tdm-shell { min-height: 100vh; padding: 24px max(20px, env(safe-area-inset-left)) 80px; background: radial-gradient(circle at 50% -10%, #0d709a 0, #05253b 35%, var(--tdm-ink) 78%); }
.tdm-shell > * { max-width: 1180px; margin-inline: auto; }
.tdm-fullscreen { position: relative; min-height: 100svh; overflow: hidden; background: #021522; color: #fff; }
.tdm-home-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); animation: tdm-home-zoom 18s ease-out both; }
.tdm-home-bg--default { background-image: url('../img/hero-portrait.jpg'); }
.tdm-home-bg--custom { background-image: var(--tdm-home-image); }
.tdm-home-bg--video { transform: none; animation: none; overflow: hidden; background: #021522; }
.tdm-home-video { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: tdm-home-zoom 18s ease-out both; }
.tdm-home-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,9,18,.2), rgba(0,10,20,.12) 32%, rgba(0,10,20,.88) 84%, #020d15 100%); }
.tdm-home-content { position: relative; z-index: 2; min-height: 100svh; width: min(620px, 100%); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
.tdm-language-switcher { position: absolute; top: max(18px, env(safe-area-inset-top)); right: 20px; min-height: 40px; display: flex; align-items: center; padding: 7px 12px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(1,17,29,.45); backdrop-filter: blur(16px); font-size: 12px; letter-spacing: .08em; }
.tdm-language-switcher select { max-width: 130px; background: transparent; color: #fff; border: 0; }
.tdm-logo { width: min(470px, 92vw); height: auto; filter: drop-shadow(0 8px 26px rgba(0,0,0,.35)); }
.tdm-logo--animated { opacity: 0; transform: translateY(18px) scale(.72); animation: tdm-logo-pop .9s .2s cubic-bezier(.18,.89,.32,1.35) forwards; will-change: transform, opacity; }
.tdm-kicker { margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 750; color: #bdefff; }
.tdm-intro { max-width: 540px; margin: 0 0 24px; line-height: 1.62; font-size: clamp(15px, 3.8vw, 18px); color: rgba(255,255,255,.88); }
.tdm-dates { margin: 18px 0 0; font-size: 12px; letter-spacing: .05em; color: rgba(255,255,255,.66); }

.tdm-slide-entry { --tdm-slide-progress: 0%; position: relative; width: min(520px, 100%); min-height: 62px; display: grid; align-items: center; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); backdrop-filter: blur(18px); }
.tdm-slide-entry::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--tdm-slide-progress); background: linear-gradient(90deg, rgba(42,212,245,.25), rgba(42,212,245,.65)); transition: width .05s linear; }
.tdm-slide-entry input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.tdm-slide-label { position: relative; z-index: 2; padding: 0 68px 0 24px; font-weight: 750; font-size: 14px; letter-spacing: .02em; }
.tdm-slide-arrow { position: absolute; z-index: 3; left: calc(clamp(4px, var(--tdm-slide-progress), calc(100% - 56px))); width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--tdm-deep); font-size: 25px; font-weight: 900; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: left .08s linear, transform .2s ease; }
.tdm-slide-entry.is-complete .tdm-slide-arrow { transform: scale(1.08); }
.tdm-home-content { transition: opacity .42s ease, transform .58s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.tdm-entry-transition { position: absolute; z-index: 12; inset: 0; display: grid; place-items: center; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; background: radial-gradient(circle at center, rgba(42,212,245,.18), rgba(2,21,34,.18) 42%, rgba(2,13,21,.92) 100%); transition: opacity .22s ease, visibility 0s linear .8s; }
.tdm-entry-transition-wave { position: absolute; width: min(42vw, 240px); aspect-ratio: 1; border: 2px solid rgba(174,246,255,.75); border-radius: 50%; opacity: 0; transform: scale(.2); box-shadow: 0 0 60px rgba(42,212,245,.2), inset 0 0 60px rgba(42,212,245,.08); }
.tdm-entry-transition-glow { position: absolute; width: 42px; aspect-ratio: 1; border-radius: 50%; background: #baf6ff; box-shadow: 0 0 55px 22px rgba(42,212,245,.45); opacity: 0; transform: scale(.2); }
.tdm-entry-transition-arrow { position: relative; z-index: 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--tdm-deep); font-size: 31px; font-weight: 900; opacity: 0; transform: translateX(-38px) scale(.65); box-shadow: 0 12px 42px rgba(0,0,0,.3); }
.tdm-home.is-entering .tdm-home-content { opacity: 0; transform: scale(.94) translateY(-14px); filter: blur(3px); }
.tdm-home.is-entering .tdm-entry-transition { opacity: 1; visibility: visible; transition-delay: 0s; }
.tdm-home.is-entering .tdm-entry-transition-wave--one { animation: tdm-entry-wave .72s .02s cubic-bezier(.2,.8,.2,1) forwards; }
.tdm-home.is-entering .tdm-entry-transition-wave--two { animation: tdm-entry-wave .78s .16s cubic-bezier(.2,.8,.2,1) forwards; }
.tdm-home.is-entering .tdm-entry-transition-glow { animation: tdm-entry-glow .7s .12s ease-out forwards; }
.tdm-home.is-entering .tdm-entry-transition-arrow { animation: tdm-entry-arrow .6s .08s cubic-bezier(.18,.89,.32,1.28) forwards; }
.tdm-secondary-button, .tdm-primary-button, .tdm-small-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 999px; font-weight: 800; text-decoration: none !important; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.tdm-secondary-button { margin-top: 14px; color: #fff !important; border: 1px solid rgba(255,255,255,.25); padding: 0 22px; background: rgba(0,16,29,.4); }
.tdm-primary-button { padding: 0 26px; color: #032033 !important; background: linear-gradient(135deg, #fff 0%, #8deeff 100%); box-shadow: 0 14px 34px rgba(42,212,245,.2); }
.tdm-small-button { padding: 0 18px; background: #fff; color: var(--tdm-deep); }
.tdm-primary-button:hover, .tdm-secondary-button:hover, .tdm-small-button:hover { transform: translateY(-2px); }
.tdm-primary-button:disabled, .tdm-small-button:disabled { opacity: .55; cursor: wait; transform: none; }

.tdm-back { display: inline-flex; margin: 0 0 24px; color: #ccefff !important; text-decoration: none !important; font-weight: 750; }
.tdm-panel { width: min(680px, 100%); margin: 4vh auto 0; padding: clamp(24px, 6vw, 52px); border: 1px solid var(--tdm-line); border-radius: var(--tdm-radius); background: var(--tdm-panel); box-shadow: var(--tdm-shadow); backdrop-filter: blur(18px); text-align: center; }
.tdm-panel h1 { margin: 12px 0 14px; font-size: clamp(32px, 7vw, 54px); line-height: 1.02; }
.tdm-panel p { color: #c4d9e5; line-height: 1.65; }
.tdm-gate-logo { width: min(360px, 85%); height: auto; margin: 4px auto 20px; }
.tdm-step, .tdm-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; color: #83eaff; font-weight: 850; font-size: 11px; }
.tdm-success-icon { width: 74px; height: 74px; margin: 0 auto 12px; display: grid; place-items: center; border: 2px solid #9ef1cf; border-radius: 50%; color: #9ef1cf; font-size: 34px; }
.tdm-status { min-height: 28px; margin-top: 16px; font-size: 14px; line-height: 1.45; }
.tdm-status.is-error { color: #ffb4b4; }
.tdm-status.is-success { color: #9ef1cf; }
.tdm-status.is-loading { color: #a4eaff; }
.tdm-status.is-loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: tdm-spin .7s linear infinite; }
.tdm-qr-reader { width: min(430px, 100%); margin: 22px auto; overflow: hidden; border-radius: 18px; background: #00111c; }
.tdm-qr-reader video { border-radius: 14px; }
.tdm-manual-entry { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--tdm-line); color: #c8dbe7; text-align: left; }
.tdm-manual-entry summary { cursor: pointer; font-weight: 750; }
.tdm-manual-entry form { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.tdm-manual-entry label { flex: 1; font-size: 13px; }
.tdm-manual-entry input { width: 100%; min-height: 44px; margin-top: 7px; border: 1px solid var(--tdm-line); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; padding: 10px 12px; }

.tdm-section-header { max-width: 780px !important; padding: 36px 0 24px; }
.tdm-section-header h1 { margin: 10px 0 14px; font-size: clamp(42px, 9vw, 82px); line-height: .98; letter-spacing: -.04em; }
.tdm-section-header p { margin: 0; max-width: 620px; color: #abc5d4; font-size: 18px; line-height: 1.6; }
.tdm-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tdm-room-card { position: relative; min-height: 520px; overflow: hidden; border-radius: 28px; color: #fff !important; text-decoration: none !important; box-shadow: var(--tdm-shadow); isolation: isolate; }
.tdm-room-card > .tdm-room-card-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tdm-room-card:hover > .tdm-room-card-background { transform: scale(1.045); }
.tdm-room-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(2,18,31,.18) 36%, rgba(2,18,31,.94) 100%); }
.tdm-room-content { position: absolute; z-index: 2; inset: auto 0 0; display: flex; flex-direction: column; padding: 34px; }
.tdm-room-content small { text-transform: uppercase; letter-spacing: .14em; color: #83eaff; font-weight: 800; }
.tdm-room-content strong { margin-top: 8px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.035em; }
.tdm-room-card-title-image { display: block; width: min(82%, 430px); margin-top: 12px; }
.tdm-room-card-title-image img { position: static; display: block; width: 100%; height: auto; max-height: 150px; object-fit: contain; object-position: left center; transform: none !important; }
.tdm-room-content > span { margin-top: 12px; max-width: 520px; color: #d9e8ef; line-height: 1.5; }
.tdm-room-content em { margin-top: 22px; font-style: normal; font-weight: 850; color: #fff; }

.tdm-practical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.tdm-practical-grid article { padding: 26px; border: 1px solid var(--tdm-line); border-radius: 22px; background: rgba(255,255,255,.06); }
.tdm-practical-grid article > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(42,212,245,.16); color: #9cf0ff; font-weight: 900; font-size: 20px; }
.tdm-practical-grid h2 { margin: 18px 0 8px; }
.tdm-practical-grid p { margin: 0; color: #b8ceda; line-height: 1.55; }
.tdm-prose { font-size: 17px; line-height: 1.75; color: #c7dbe5; }
.tdm-prose p:last-child { margin-bottom: 0; }

.tdm-room-detail { background: var(--tdm-ink); min-height: 100vh; }
.tdm-room-hero { position: relative; min-height: min(72vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: radial-gradient(circle at 50% 20%, #0c6f96, #041a2c 72%); }
.tdm-room-hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tdm-room-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,8,15,.08), rgba(0,8,15,.15) 45%, #03131f 100%); }
.tdm-room-hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 60px; }
.tdm-room-hero-content h1 { margin: 10px 0; font-size: clamp(54px, 11vw, 132px); line-height: .88; letter-spacing: -.055em; }
.tdm-room-title--image { width: min(88%, 760px); }
.tdm-room-title--image img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; object-position: left center; }
.tdm-room-hero-content p { max-width: 700px; margin: 22px 0 0; font-size: clamp(18px, 3vw, 26px); line-height: 1.45; color: #d7e7ef; }
.tdm-room-body { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 90px; }
.tdm-room-nav { position: sticky; top: 10px; z-index: 10; display: flex; justify-content: space-between; gap: 14px; margin: 0 0 56px; padding: 13px 16px; border: 1px solid var(--tdm-line); border-radius: 999px; background: rgba(4,26,44,.78); backdrop-filter: blur(16px); }
.tdm-room-nav a { color: #e8f8ff !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }
.tdm-room-body > .tdm-prose { max-width: 780px; margin-bottom: 70px; font-size: clamp(18px, 2vw, 22px); }
.tdm-plan-section { margin: 0 0 90px; }
.tdm-plan-section h2, .tdm-artworks > h2, .tdm-opinion h2 { margin: 9px 0 24px; font-size: clamp(36px, 6vw, 66px); line-height: 1; letter-spacing: -.04em; }
.tdm-plan { position: relative; overflow: hidden; border: 1px solid var(--tdm-line); border-radius: 28px; background: #eaf3f6; box-shadow: var(--tdm-shadow); }
.tdm-plan img { display: block; width: 100%; height: auto; }
.tdm-plan-marker { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; color: #03131f; }
.tdm-plan-marker i { width: 25px; height: 25px; border: 6px solid #fff; border-radius: 50%; background: #09bce6; box-shadow: 0 3px 18px rgba(0,0,0,.35); animation: tdm-pulse 2s infinite; }
.tdm-plan-marker b { margin-top: 7px; padding: 6px 9px; border-radius: 8px; background: #fff; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.22); }

.tdm-artworks { margin-top: 40px; }
.tdm-artwork { scroll-margin-top: 100px; margin: 0 0 72px; border: 1px solid var(--tdm-line); border-radius: 30px; overflow: hidden; background: rgba(255,255,255,.035); transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease; }
.tdm-artwork.is-focused { border-color: #76eaff; box-shadow: 0 0 0 4px rgba(42,212,245,.18), 0 30px 90px rgba(0,0,0,.4); transform: translateY(-3px); }
.tdm-artwork > header { display: flex; align-items: baseline; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--tdm-line); }
.tdm-artwork > header h3 { margin: 0; font-size: clamp(25px, 4vw, 42px); line-height: 1.05; }
.tdm-artwork-number { color: #77e8fb; font-size: 12px; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }
.tdm-artwork-media { background: #010d15; }
.tdm-artwork-media img, .tdm-artwork-media video { display: block; width: 100%; max-height: 88vh; object-fit: contain; }
.tdm-artwork-copy { padding: clamp(24px, 5vw, 48px); }
.tdm-caption { margin: 0 0 18px; font-size: clamp(20px, 3vw, 28px); line-height: 1.45; color: #f4fbff; }
.tdm-credit { margin: 20px 0 0; color: #8ba9ba; font-size: 13px; }
.tdm-audio { margin-top: 26px; padding: 18px; border: 1px solid var(--tdm-line); border-radius: 16px; background: rgba(255,255,255,.04); }
.tdm-audio span { display: block; margin-bottom: 10px; font-weight: 800; }
.tdm-audio audio, .tdm-audio-visual audio { width: 100%; }
.tdm-audio-visual { min-height: 280px; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle, #0b779f, #03131f); }
.tdm-audio-visual > span { font-size: 80px; color: #9defff; }
.tdm-embed { position: relative; aspect-ratio: 16 / 9; }
.tdm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tdm-deep-link { display: inline-flex; margin-top: 24px; color: #88eafc !important; text-decoration: none !important; font-size: 13px; font-weight: 800; }

.tdm-opinion { margin-top: 100px; padding: clamp(28px, 6vw, 64px); border-radius: 30px; background: linear-gradient(145deg, #0b6083, #05263d 60%, #03131f); border: 1px solid rgba(255,255,255,.17); box-shadow: var(--tdm-shadow); }
.tdm-opinion form { display: grid; gap: 20px; }
.tdm-opinion label, .tdm-opinion legend { color: #d8eaf2; font-size: 13px; font-weight: 750; }
.tdm-opinion input[type="text"], .tdm-opinion select, .tdm-opinion textarea { width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(0,8,16,.35); color: #fff; font: inherit; }
.tdm-opinion textarea { min-height: 130px; resize: vertical; }
.tdm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tdm-rating { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.tdm-rating legend { width: 100%; margin-bottom: 8px; }
.tdm-rating input { position: absolute; opacity: 0; }
.tdm-rating span { display: inline-flex; min-width: 55px; justify-content: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; cursor: pointer; }
.tdm-rating input:checked + span { background: #fff; color: #05263d; border-color: #fff; }
.tdm-checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; }
.tdm-checkbox input { margin-top: 3px; }
.tdm-opinion .tdm-primary-button { justify-self: start; }
.tdm-opinion { position: relative; overflow: hidden; isolation: isolate; }
.tdm-opinion::before { content: ""; position: absolute; z-index: -1; inset: auto -12% -54% auto; width: 420px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(86,224,246,.2), rgba(86,224,246,0) 68%); pointer-events: none; }
.tdm-opinion-form-view { max-height: 2400px; opacity: 1; transform: translateY(0) scale(1); transform-origin: top center; overflow: hidden; transition: max-height .72s cubic-bezier(.2,.8,.2,1), opacity .3s ease, transform .42s cubic-bezier(.2,.8,.2,1); }
.tdm-opinion.is-submitting .tdm-opinion-form-view { opacity: .82; }
.tdm-opinion.is-submitting .tdm-opinion-submit { position: relative; padding-right: 54px; }
.tdm-opinion.is-submitting .tdm-opinion-submit::after { content: ""; position: absolute; top: 50%; right: 20px; width: 18px; height: 18px; margin-top: -9px; border: 2px solid rgba(3,19,31,.28); border-top-color: #03131f; border-radius: 50%; animation: tdm-spin .7s linear infinite; }
.tdm-opinion.is-complete .tdm-opinion-form-view { max-height: 0; opacity: 0; transform: translateY(-22px) scale(.985); pointer-events: none; }

.tdm-opinion-thanks { max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(28px) scale(.965); text-align: center; transition: max-height .72s cubic-bezier(.2,.8,.2,1), opacity .38s ease, transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s linear .72s; }
.tdm-opinion.is-complete .tdm-opinion-thanks { max-height: 760px; visibility: visible; opacity: 1; transform: translateY(0) scale(1); transition-delay: .08s, .2s, .16s, 0s; }
.tdm-opinion-thanks h2 { max-width: 760px; margin: 8px auto 14px; font-size: clamp(38px, 7vw, 70px); line-height: .98; letter-spacing: -.045em; }
.tdm-opinion-thanks h2:focus { outline: none; }
.tdm-opinion-thanks > p { max-width: 620px; margin: 0 auto 20px; color: #d8eaf2; font-size: clamp(16px, 2.4vw, 20px); line-height: 1.55; }
.tdm-opinion-thanks .tdm-primary-button { margin-top: 24px; }

.tdm-thanks-scene { position: relative; width: 154px; height: 154px; margin: 0 auto 20px; display: grid; place-items: center; }
.tdm-thanks-check { position: relative; z-index: 3; width: 120px; height: 120px; overflow: visible; }
.tdm-thanks-check-circle, .tdm-thanks-check-mark { fill: none; stroke: #b9f5ff; stroke-linecap: round; stroke-linejoin: round; }
.tdm-thanks-check-circle { stroke-width: 5; stroke-dasharray: 277; stroke-dashoffset: 277; transform: rotate(-90deg); transform-origin: center; }
.tdm-thanks-check-mark { stroke: #fff; stroke-width: 8; stroke-dasharray: 70; stroke-dashoffset: 70; }
.tdm-opinion.is-complete .tdm-thanks-check-circle { animation: tdm-check-draw .72s .28s cubic-bezier(.65,0,.35,1) forwards; }
.tdm-opinion.is-complete .tdm-thanks-check-mark { animation: tdm-check-draw .5s .82s cubic-bezier(.2,.8,.2,1) forwards; }

.tdm-thanks-ring { position: absolute; z-index: 1; inset: 50%; width: 88px; height: 88px; margin: -44px; border: 1px solid rgba(157,239,255,.55); border-radius: 50%; opacity: 0; }
.tdm-opinion.is-complete .tdm-thanks-ring--one { animation: tdm-water-ring 1.8s .35s ease-out infinite; }
.tdm-opinion.is-complete .tdm-thanks-ring--two { animation: tdm-water-ring 1.8s 1.15s ease-out infinite; }
.tdm-thanks-bubble { position: absolute; z-index: 2; width: 10px; height: 10px; border: 1px solid rgba(213,249,255,.88); border-radius: 50%; background: rgba(112,225,245,.14); opacity: 0; }
.tdm-thanks-bubble--one { left: 13px; bottom: 18px; width: 9px; height: 9px; }
.tdm-thanks-bubble--two { left: 32px; bottom: 5px; width: 15px; height: 15px; }
.tdm-thanks-bubble--three { right: 19px; bottom: 12px; width: 12px; height: 12px; }
.tdm-thanks-bubble--four { right: 6px; bottom: 39px; width: 7px; height: 7px; }
.tdm-thanks-bubble--five { left: 5px; bottom: 54px; width: 6px; height: 6px; }
.tdm-opinion.is-complete .tdm-thanks-bubble--one { animation: tdm-bubble-rise 2.4s .5s ease-in infinite; }
.tdm-opinion.is-complete .tdm-thanks-bubble--two { animation: tdm-bubble-rise 3s 1.25s ease-in infinite; }
.tdm-opinion.is-complete .tdm-thanks-bubble--three { animation: tdm-bubble-rise 2.7s .82s ease-in infinite; }
.tdm-opinion.is-complete .tdm-thanks-bubble--four { animation: tdm-bubble-rise 2.2s 1.55s ease-in infinite; }
.tdm-opinion.is-complete .tdm-thanks-bubble--five { animation: tdm-bubble-rise 2.55s 1.95s ease-in infinite; }

.tdm-thanks-rating { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,.2); font-size: clamp(28px, 5vw, 40px); }
.tdm-thanks-rating span { opacity: 0; transform: translateY(12px) scale(.5) rotate(-12deg); transition: opacity .25s ease, transform .42s cubic-bezier(.18,.89,.32,1.4), color .25s ease; }
.tdm-opinion.is-complete .tdm-thanks-rating span { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
.tdm-opinion.is-complete .tdm-thanks-rating span:nth-child(1) { transition-delay: .88s; }
.tdm-opinion.is-complete .tdm-thanks-rating span:nth-child(2) { transition-delay: .96s; }
.tdm-opinion.is-complete .tdm-thanks-rating span:nth-child(3) { transition-delay: 1.04s; }
.tdm-opinion.is-complete .tdm-thanks-rating span:nth-child(4) { transition-delay: 1.12s; }
.tdm-opinion.is-complete .tdm-thanks-rating span:nth-child(5) { transition-delay: 1.2s; }
.tdm-thanks-rating span.is-active { color: #fff2a8; text-shadow: 0 0 20px rgba(255,226,103,.34); }

@keyframes tdm-check-draw { to { stroke-dashoffset: 0; } }
@keyframes tdm-water-ring { 0% { opacity: .7; transform: scale(.72); } 85%,100% { opacity: 0; transform: scale(1.65); } }
@keyframes tdm-bubble-rise { 0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.7); } 18% { opacity: .78; } 100% { opacity: 0; transform: translate3d(3px, -92px, 0) scale(1.18); } }

@keyframes tdm-spin { to { transform: rotate(360deg); } }
@keyframes tdm-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(9,188,230,.5), 0 3px 18px rgba(0,0,0,.35); } 50% { box-shadow: 0 0 0 15px rgba(9,188,230,0), 0 3px 18px rgba(0,0,0,.35); } }
@keyframes tdm-home-zoom { from { transform: scale(1.08); } to { transform: scale(1.02); } }
@keyframes tdm-logo-pop { 0% { opacity: 0; transform: translateY(18px) scale(.72); } 62% { opacity: 1; transform: translateY(-5px) scale(1.045); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tdm-entry-wave { 0% { opacity: 0; transform: scale(.2); } 22% { opacity: .95; } 100% { opacity: 0; transform: scale(5.5); } }
@keyframes tdm-entry-glow { 0% { opacity: 0; transform: scale(.15); } 40% { opacity: .9; } 100% { opacity: 0; transform: scale(18); } }
@keyframes tdm-entry-arrow { 0% { opacity: 0; transform: translateX(-38px) scale(.65); } 45% { opacity: 1; transform: translateX(0) scale(1.08); } 100% { opacity: 0; transform: translateX(48px) scale(.92); } }

@media (min-width: 760px) {
  .tdm-home-bg--default { background-image: url('../img/hero-landscape.jpg'); }
}
@media (max-width: 780px) {
  .tdm-room-grid, .tdm-practical-grid, .tdm-form-grid { grid-template-columns: 1fr; }
  .tdm-room-card { min-height: 440px; }
  .tdm-room-content { padding: 25px; }
  .tdm-room-nav { top: 6px; border-radius: 18px; }
  .tdm-room-nav a { font-size: 12px; }
  .tdm-artwork > header { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .tdm-home-content { padding-inline: 16px; }
  .tdm-logo { width: 94vw; }
  .tdm-slide-entry { min-height: 58px; }
  .tdm-slide-label { padding-left: 62px; padding-right: 16px; font-size: 13px; }
  .tdm-manual-entry form { flex-direction: column; align-items: stretch; }
  .tdm-section-header h1 { font-size: 50px; }
  .tdm-room-hero-content h1 { font-size: 64px; }
  .tdm-room-body { width: min(100% - 24px, 1180px); }
  .tdm-room-hero-content { width: min(100% - 24px, 1180px); }
  .tdm-opinion { padding: 24px 18px; }
  .tdm-rating span { min-width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tdm-logo--animated { opacity: 1; transform: none; animation: none; }
  .tdm-home-bg, .tdm-home-video { animation: none; transform: none; }
  .tdm-home.is-entering .tdm-home-content { transition-duration: .1s; filter: none; }
  .tdm-home.is-entering .tdm-entry-transition-wave, .tdm-home.is-entering .tdm-entry-transition-glow, .tdm-home.is-entering .tdm-entry-transition-arrow { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Interactive exhibition plan */
.tdm-interactive-plan-section { margin: 8px 0 40px; }
.tdm-interactive-plan-section h2 { margin: 8px 0 22px; font-size: clamp(30px, 5vw, 56px); line-height: 1; letter-spacing: -.035em; }
.tdm-interactive-plan { position: relative; overflow: hidden; border: 1px solid var(--tdm-line); border-radius: 28px; background: #eaf3f6; box-shadow: var(--tdm-shadow); }
.tdm-interactive-plan > img { display: block; width: 100%; height: auto; }
.tdm-plan-zone-link { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 52px; min-height: 44px; border: 2px solid rgba(255,255,255,.95); border-radius: 12px; background: rgba(5,94,137,.78); color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 22px rgba(0,0,0,.28); backdrop-filter: blur(5px); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.tdm-plan-zone-link:hover, .tdm-plan-zone-link:focus-visible { transform: translate(-50%, -50%) scale(1.04); background: rgba(0,174,216,.9); box-shadow: 0 10px 28px rgba(0,0,0,.36); outline: 3px solid rgba(42,212,245,.35); }
.tdm-plan-zone-link span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px; text-align: center; font-size: clamp(10px, 1.5vw, 14px); font-weight: 850; line-height: 1.1; }
.tdm-plan-zone-link small { color: #d9f7ff; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.tdm-plan-current-zone { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 58px; min-height: 44px; border: 3px solid #fff; border-radius: 12px; background: rgba(9,188,230,.62); box-shadow: 0 0 0 5px rgba(9,188,230,.18), 0 8px 22px rgba(0,0,0,.32); animation: tdm-current-zone 2.2s ease-in-out infinite; }
.tdm-plan-current-zone b { padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.95); color: #03131f; font-size: 11px; text-align: center; }
.tdm-singular-main { min-height: 100vh; }
@keyframes tdm-current-zone { 0%,100% { box-shadow: 0 0 0 5px rgba(9,188,230,.18), 0 8px 22px rgba(0,0,0,.32); } 50% { box-shadow: 0 0 0 13px rgba(9,188,230,0), 0 8px 22px rgba(0,0,0,.32); } }
@media (max-width: 640px) {
  .tdm-interactive-plan { border-radius: 18px; }
  .tdm-plan-zone-link span { padding: 5px; font-size: 9px; }
}

/* Multiple floor / plan groups */
.tdm-plan-groups { display: grid; gap: 32px; }
.tdm-plan-group { margin: 0; }
.tdm-plan-group > h3 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 30px); color: #dff8ff; }
.tdm-plan-group + .tdm-plan-group { padding-top: 30px; border-top: 1px solid var(--tdm-line); }

/* Persistent GTranslate selector */
.tdm-language-switcher--global { position: fixed; z-index: 10020; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); box-shadow: 0 8px 26px rgba(0,0,0,.24); }
.tdm-language-switcher--inline { position: relative; inset: auto; display: inline-flex; }
.tdm-language-switcher .gtranslate_wrapper { display: flex; align-items: center; }
.tdm-language-switcher a { color: #fff !important; }
.tdm-language-switcher img { max-width: 24px; height: auto; }
.tdm-language-placeholder { white-space: nowrap; }

/* Bottom navigation inspired by native mobile applications */
.tdm-mobile-nav { display: none; }
@media (max-width: 900px) {
  body.tdm-has-mobile-nav { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.tdm-has-mobile-nav .tdm-shell,
  body.tdm-has-mobile-nav .tdm-room-body { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tdm-mobile-nav { position: fixed; z-index: 10010; left: 0; right: 0; bottom: 0; display: block; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(3,19,31,0), rgba(3,19,31,.9) 24%, rgba(3,19,31,.98)); pointer-events: none; }
  .tdm-mobile-nav-inner,
  .tdm-mobile-nav-template { width: min(620px, 100%); min-height: 64px; margin: 0 auto; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(5,35,54,.94); box-shadow: 0 16px 46px rgba(0,0,0,.38); backdrop-filter: blur(20px); pointer-events: auto; }
  .tdm-mobile-nav-inner { display: grid; grid-template-columns: repeat(var(--tdm-mobile-nav-columns, 1), minmax(0, 1fr)); padding: 5px; }
  .tdm-mobile-nav-item { position: relative; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 17px; color: #a9c4d2 !important; font-size: 10px; font-weight: 750; line-height: 1; text-decoration: none !important; transition: background .2s ease, color .2s ease, transform .2s ease; }
  .tdm-mobile-nav-item:hover,
  .tdm-mobile-nav-item:focus-visible { color: #fff !important; background: rgba(255,255,255,.08); outline: none; }
  .tdm-mobile-nav-item.is-active { color: #fff !important; background: linear-gradient(145deg, rgba(42,212,245,.24), rgba(7,94,137,.65)); }
  .tdm-mobile-nav-item.is-active::after { content: ""; position: absolute; bottom: 3px; width: 18px; height: 2px; border-radius: 999px; background: #8feeff; }
  .tdm-mobile-nav-icon { width: 23px; height: 23px; display: grid; place-items: center; }
  .tdm-mobile-nav-icon svg { width: 22px; height: 22px; fill: currentColor; }
  .tdm-mobile-nav--elementor .tdm-mobile-nav-template { overflow: hidden; }
}
@media (max-width: 520px) {
  .tdm-language-switcher--global { top: max(9px, env(safe-area-inset-top)); right: max(9px, env(safe-area-inset-right)); transform: scale(.92); transform-origin: top right; }
}
.tdm-language-engine { position: fixed !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; pointer-events: none !important; opacity: .001 !important; }

/* Compact animated flag selector (v0.3.2) */
.tdm-language-compact { position: relative; z-index: 10030; display: inline-flex; align-items: center; justify-content: center; font-family: inherit; }
.tdm-language-compact--global { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.tdm-language-compact-toggle,
.tdm-language-option { appearance: none; -webkit-appearance: none; border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(4,27,43,.9); box-shadow: 0 10px 28px rgba(0,0,0,.28); backdrop-filter: blur(18px); cursor: pointer; }
.tdm-language-compact-toggle { position: relative; width: 52px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 7px; border-radius: 16px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.tdm-language-compact-toggle:hover,
.tdm-language-compact-toggle:focus-visible { background: rgba(10,57,82,.96); border-color: rgba(143,238,255,.62); outline: none; transform: translateY(-1px); }
.tdm-language-current-flags,
.tdm-language-current-flag,
.tdm-language-flag { display: grid; place-items: center; }
.tdm-language-current-flag[hidden],
.tdm-language-option[hidden] { display: none !important; }
.tdm-flag-svg { display: block; width: 28px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 2px 6px rgba(0,0,0,.2); overflow: hidden; }
.tdm-language-chevron { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .72; transition: transform .24s ease; }
.tdm-language-compact.is-open .tdm-language-chevron { transform: rotate(180deg); }
.tdm-language-compact-menu { position: absolute; z-index: 3; top: calc(100% + 9px); right: 0; display: flex; flex-direction: column; gap: 7px; padding: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; background: rgba(2,19,31,.88); box-shadow: 0 16px 38px rgba(0,0,0,.38); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px) scale(.94); transform-origin: top right; transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility 0s linear .24s; }
.tdm-language-compact.is-open .tdm-language-compact-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
.tdm-language-option { width: 44px; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border-radius: 12px; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.tdm-language-option:hover,
.tdm-language-option:focus-visible { background: rgba(19,82,111,.98); border-color: rgba(143,238,255,.65); outline: none; transform: scale(1.06); }
.tdm-language-option .tdm-flag-svg { width: 25px; height: 17px; }
.tdm-language-option-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Language selector inside the native-like mobile navigation */
@media (max-width: 900px) {
  .tdm-mobile-nav--has-language .tdm-mobile-nav-inner { grid-template-columns: repeat(var(--tdm-mobile-nav-columns, 1), minmax(0, 1fr)); }
  .tdm-mobile-nav-language-item { position: relative; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 17px; color: #a9c4d2; font-size: 10px; font-weight: 750; line-height: 1; }
  .tdm-mobile-nav-language-label { display: block; }
  .tdm-language-compact--nav { z-index: 5; }
  .tdm-language-compact--nav .tdm-language-compact-toggle { width: 39px; height: 30px; padding: 3px 4px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; backdrop-filter: none; }
  .tdm-language-compact--nav .tdm-language-compact-toggle:hover,
  .tdm-language-compact--nav .tdm-language-compact-toggle:focus-visible { background: rgba(255,255,255,.08); transform: none; }
  .tdm-language-compact--nav .tdm-flag-svg { width: 24px; height: 16px; }
  .tdm-language-compact--nav .tdm-language-chevron { width: 9px; height: 9px; }
  .tdm-language-compact--nav .tdm-language-compact-menu { top: auto; right: 50%; bottom: calc(100% + 13px); transform: translate(50%, 8px) scale(.94); transform-origin: bottom center; }
  .tdm-language-compact--nav.is-open .tdm-language-compact-menu { transform: translate(50%, 0) scale(1); }
  .tdm-mobile-nav-elementor-shell { width: min(620px, 100%); min-height: 64px; margin: 0 auto; display: flex; align-items: stretch; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(5,35,54,.94); box-shadow: 0 16px 46px rgba(0,0,0,.38); backdrop-filter: blur(20px); pointer-events: auto; }
  .tdm-mobile-nav-elementor-shell .tdm-mobile-nav-template { width: auto; min-width: 0; flex: 1 1 auto; margin: 0; border: 0; border-radius: 22px 0 0 22px; background: transparent; box-shadow: none; backdrop-filter: none; }
  .tdm-mobile-nav-language-slot { width: 64px; flex: 0 0 64px; display: grid; place-items: center; border-left: 1px solid rgba(255,255,255,.12); pointer-events: auto; }
}

@media (max-width: 520px) {
  .tdm-language-compact--global { top: max(9px, env(safe-area-inset-top)); right: max(9px, env(safe-area-inset-right)); }
  .tdm-mobile-nav--has-language .tdm-mobile-nav-item,
  .tdm-mobile-nav--has-language .tdm-mobile-nav-language-item { font-size: 9px; }
  .tdm-mobile-nav--has-language .tdm-mobile-nav-icon { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .tdm-language-compact-menu,
  .tdm-language-chevron,
  .tdm-language-compact-toggle,
  .tdm-language-option { transition: none !important; }
}
.tdm-language-compact .screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Strict GTranslate language list (v0.3.4) */
.tdm-language-compact-menu {
  max-height: min(62vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.tdm-language-current-flag,
.tdm-language-flag,
.tdm-language-fallback-flag {
  line-height: 1;
}
.tdm-language-native-flag,
.tdm-language-emoji-flag,
.tdm-language-code-flag {
  display: block;
  width: 25px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.tdm-language-emoji-flag {
  width: auto;
  height: auto;
  min-width: 25px;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}
.tdm-language-code-flag {
  width: auto;
  min-width: 27px;
  height: 18px;
  padding: 2px 3px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.tdm-language-compact--nav .tdm-language-compact-menu {
  max-height: min(58vh, 470px);
}
.tdm-language-compact--nav .tdm-language-native-flag {
  width: 24px;
  height: 16px;
}

/* First-visit language notification (v0.3.5) */
.tdm-language-popup[hidden] { display: none !important; }
.tdm-language-popup {
  position: fixed;
  z-index: 10070;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  width: min(470px, calc(100vw - 24px));
  opacity: 0;
  transform: translate(-50%, -18px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tdm-language-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}
.tdm-language-popup.is-closing {
  opacity: 0;
  transform: translate(-50%, -12px) scale(.985);
}
.tdm-language-popup-card {
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(7,37,54,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  color: #071d2c;
  box-shadow: 0 18px 60px rgba(0,18,30,.28), 0 3px 12px rgba(0,18,30,.12);
  backdrop-filter: blur(20px);
}
.tdm-language-popup-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 10px;
  row-gap: 1px;
  margin: 0 1px 11px;
}
.tdm-language-popup-eyebrow {
  grid-column: 1 / -1;
  color: #006c99;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tdm-language-popup-title {
  color: #07131c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
.tdm-language-popup-subtitle {
  align-self: end;
  padding-bottom: 1px;
  color: #4d5f69;
  font-size: 12px;
  line-height: 1.25;
}
.tdm-language-popup-current { display: none !important; }
.tdm-language-popup-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: min(42vh, 228px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.tdm-language-popup .tdm-language-option {
  width: 100%;
  min-height: 43px;
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid #d9dee2;
  border-radius: 13px;
  background: #fff;
  color: #0a1821;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  transform: none;
}
.tdm-language-popup .tdm-language-option:hover,
.tdm-language-popup .tdm-language-option:focus-visible {
  border-color: #087ba6;
  background: #f3fbfe;
  color: #061923;
  box-shadow: 0 0 0 3px rgba(8,123,166,.12);
  outline: none;
  transform: none;
}
.tdm-language-popup .tdm-language-option.is-current {
  border-color: #071d2c;
  box-shadow: inset 0 0 0 1px #071d2c;
}
.tdm-language-popup .tdm-language-option-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}
.tdm-language-popup .tdm-language-native-flag,
.tdm-language-popup .tdm-flag-svg {
  width: 25px;
  height: 17px;
  flex: 0 0 auto;
}
body.tdm-language-popup-open .tdm-language-switcher--global,
body.tdm-language-popup-open .tdm-language-compact--global {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 380px) {
  .tdm-language-popup-card { padding: 13px; border-radius: 19px; }
  .tdm-language-popup-title { font-size: 23px; }
  .tdm-language-popup-subtitle { font-size: 11px; }
  .tdm-language-popup-options { gap: 6px; }
  .tdm-language-popup .tdm-language-option { min-height: 41px; padding: 7px 9px; }
  .tdm-language-popup .tdm-language-option-label { font-size: 12px; }
}
@media (max-width: 330px) {
  .tdm-language-popup-options { grid-template-columns: 1fr; max-height: min(48vh, 255px); }
}
@media (prefers-reduced-motion: reduce) {
  .tdm-language-popup { transition: none !important; }
}

/* Physical entry acknowledgement + session end modal (v0.4.1) */
.tdm-home-entry-status {
  margin: 0 auto 12px;
  width: min(560px, 100%);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background: rgba(3,23,38,.58);
  color: #e8fbff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(14px);
}
.tdm-home-entry-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 2px solid rgba(255,255,255,.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tdm-spin .7s linear infinite;
}
.tdm-home-entry-status.is-success { border-color: rgba(105,236,204,.5); background: rgba(4,70,67,.62); }
.tdm-home-entry-status.is-error { border-color: rgba(255,128,128,.55); background: rgba(92,22,27,.68); }

.tdm-session-expired-modal[hidden] { display: none !important; }
.tdm-session-expired-modal {
  position: fixed;
  z-index: 10090;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}
.tdm-session-expired-modal.is-visible { opacity: 1; pointer-events: auto; }
.tdm-session-expired-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,10,20,.76);
  backdrop-filter: blur(14px);
}
.tdm-session-expired-card {
  position: relative;
  width: min(510px, 100%);
  max-height: min(760px, calc(100dvh - 42px));
  overflow: auto;
  padding: 30px 24px 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(10,84,112,.98), rgba(3,27,45,.99) 58%, rgba(2,17,29,.99));
  color: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.48);
  text-align: center;
  transform: translateY(22px) scale(.96);
  transition: transform .45s cubic-bezier(.2,.85,.2,1);
}
.tdm-session-expired-modal.is-visible .tdm-session-expired-card { transform: translateY(0) scale(1); }
.tdm-session-expired-card h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(34px, 7vw, 54px);
  line-height: .98;
  letter-spacing: -.045em;
}
.tdm-session-expired-card > p {
  max-width: 420px;
  margin: 0 auto 24px;
  color: #d9edf4;
  font-size: 15px;
  line-height: 1.55;
}
.tdm-session-expired-icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.tdm-session-expired-icon svg {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  fill: none;
  stroke: #9ef3ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tdm-session-wave {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(126,235,255,.46);
  border-radius: 50%;
  animation: tdm-session-wave 2.2s ease-out infinite;
}
.tdm-session-wave--two { animation-delay: 1.1s; }
@keyframes tdm-session-wave {
  0% { opacity: .7; transform: scale(.72); }
  70%, 100% { opacity: 0; transform: scale(1.48); }
}
.tdm-session-expired-actions {
  display: grid;
  gap: 10px;
}
.tdm-session-expired-actions .tdm-primary-button,
.tdm-session-expired-actions .tdm-secondary-button {
  width: 100%;
  justify-content: center;
  margin: 0;
}
.tdm-session-socials {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.tdm-session-socials > span {
  display: block;
  margin-bottom: 12px;
  color: #b9d9e5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tdm-session-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tdm-session-social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.tdm-session-social-links a:hover,
.tdm-session-social-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.34);
  outline: none;
}
.tdm-session-social-links svg { width: 21px; height: 21px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; }
html.tdm-session-expired-open,
body.tdm-session-expired-open { overflow: hidden; }
.tdm-opinion-page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

@media (max-width: 480px) {
  .tdm-session-expired-card { padding: 25px 18px 19px; border-radius: 25px; }
  .tdm-session-expired-card h2 { font-size: clamp(32px, 11vw, 44px); }
  .tdm-session-expired-icon { width: 82px; height: 82px; }
  .tdm-session-expired-icon svg { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .tdm-session-expired-modal,
  .tdm-session-expired-card,
  .tdm-session-wave { transition: none !important; animation: none !important; }
}
.tdm-session-social-links .tdm-social-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.tdm-session-social-links .tdm-social-instagram svg circle { fill: none; }

/* Social navigation + page footer (v0.4.3) */
.tdm-page-socials {
  width: min(760px, calc(100% - 32px));
  margin: 42px auto 26px;
  padding: 26px 20px 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(7,52,73,.9), rgba(3,29,47,.96));
  box-shadow: 0 18px 52px rgba(0,0,0,.22);
  text-align: center;
  color: #fff;
}
.tdm-page-socials-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #8feeff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tdm-page-socials > strong {
  display: block;
  margin-bottom: 17px;
  font-size: clamp(19px, 4.7vw, 25px);
  line-height: 1.12;
}
.tdm-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tdm-social-link {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background: rgba(255,255,255,.075);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.tdm-social-link:hover,
.tdm-social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(143,238,255,.5);
  outline: none;
}
.tdm-social-link-icon,
.tdm-social-option-icon {
  display: grid;
  place-items: center;
}
.tdm-social-link-icon svg,
.tdm-social-option-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.35;
}
.tdm-social-link.tdm-social-instagram svg,
.tdm-social-option.tdm-social-instagram svg { fill: none; stroke-width: 1.9; }
.tdm-social-link-label { font-size: 11px; font-weight: 760; }
body.tdm-has-mobile-nav .tdm-page-socials { margin-bottom: calc(104px + env(safe-area-inset-bottom)); }

.tdm-social-compact {
  position: relative;
  z-index: 10035;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tdm-social-compact-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: rgba(4,27,43,.76);
  color: #a9c4d2;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.tdm-social-compact-toggle:hover,
.tdm-social-compact-toggle:focus-visible,
.tdm-social-compact.is-open .tdm-social-compact-toggle {
  color: #fff;
  background: rgba(255,255,255,.09);
  outline: none;
}
.tdm-social-compact-menu {
  position: absolute;
  z-index: 8;
  right: 50%;
  bottom: calc(100% + 13px);
  display: flex;
  flex-direction: column-reverse;
  gap: 7px;
  width: max-content;
  min-width: 148px;
  max-height: min(58vh, 420px);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  background: rgba(4,27,43,.97);
  box-shadow: 0 18px 46px rgba(0,0,0,.38);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(50%, 9px) scale(.94);
  transform-origin: bottom center;
  transition: opacity .2s ease, transform .22s ease, visibility .2s ease;
}
.tdm-social-compact.is-open .tdm-social-compact-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(50%, 0) scale(1);
}
.tdm-social-option {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: rgba(255,255,255,.055);
}
.tdm-social-option:hover,
.tdm-social-option:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: rgba(143,238,255,.35);
  outline: none;
}
.tdm-social-option-label { font-size: 12px; font-weight: 760; }

@media (max-width: 900px) {
  .tdm-mobile-nav-inner { grid-template-columns: repeat(var(--tdm-mobile-nav-columns, 1), minmax(0, 1fr)); }
  .tdm-mobile-nav-social-item,
  .tdm-mobile-nav-language-item,
  .tdm-mobile-nav-social-slot,
  .tdm-mobile-nav-language-slot {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #a9c4d2;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
  }
  .tdm-mobile-nav-social-item .tdm-social-compact-toggle,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle {
    width: 46px;
    height: 34px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .tdm-mobile-nav-social-item .tdm-social-compact-toggle:hover,
  .tdm-mobile-nav-social-item .tdm-social-compact-toggle:focus-visible,
  .tdm-mobile-nav-social-item .tdm-social-compact.is-open .tdm-social-compact-toggle,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle:hover,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle:focus-visible,
  .tdm-mobile-nav-social-slot .tdm-social-compact.is-open .tdm-social-compact-toggle { background: transparent; }
  .tdm-mobile-nav-social-label,
  .tdm-mobile-nav-language-label { pointer-events: none; }
  .tdm-mobile-nav-elementor-shell { display: flex; align-items: stretch; }
  .tdm-mobile-nav-social-slot,
  .tdm-mobile-nav-language-slot { width: 64px; flex: 0 0 64px; border-color: rgba(255,255,255,.12); pointer-events: auto; }
  .tdm-mobile-nav-social-slot { border-right: 1px solid rgba(255,255,255,.12); }
  .tdm-mobile-nav-language-slot { border-left: 1px solid rgba(255,255,255,.12); }
  .tdm-mobile-nav--has-socials.tdm-mobile-nav--elementor .tdm-mobile-nav-template { border-radius: 0; }
  .tdm-mobile-nav--has-socials.tdm-mobile-nav--elementor .tdm-mobile-nav-social-slot:first-child { border-radius: 22px 0 0 22px; }
}

@media (max-width: 520px) {
  .tdm-page-socials { width: calc(100% - 22px); margin-top: 30px; padding: 22px 14px 20px; border-radius: 22px; }
  .tdm-social-link { min-width: 44px; min-height: 44px; padding: 8px 10px; }
  .tdm-social-link-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tdm-social-compact-menu,
  .tdm-social-compact-toggle,
  .tdm-social-link { transition: none !important; }
}

/* Mobile social navigation refinements (v0.4.4)
 * Keep the standard icon + “Réseaux” label in the navigation bar.
 * The expanded network buttons are centred on the exact axis of the nav cell.
 */
@media (max-width: 900px) {
  .tdm-mobile-nav-social-item,
  .tdm-mobile-nav-social-slot {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 0;
  }

  .tdm-mobile-nav-social-item > .tdm-social-compact,
  .tdm-mobile-nav-social-slot > .tdm-social-compact {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 54px;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .tdm-mobile-nav-social-item .tdm-social-compact-toggle,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle {
    width: 100%;
    height: 100%;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 7px 4px 6px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    box-shadow: none;
    color: #a9c4d2;
    font: inherit;
    line-height: 1;
  }

  .tdm-mobile-nav-social-item .tdm-social-compact-toggle:hover,
  .tdm-mobile-nav-social-item .tdm-social-compact-toggle:focus-visible,
  .tdm-mobile-nav-social-item .tdm-social-compact.is-open .tdm-social-compact-toggle,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle:hover,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle:focus-visible,
  .tdm-mobile-nav-social-slot .tdm-social-compact.is-open .tdm-social-compact-toggle {
    background: transparent;
    color: #fff;
  }

  .tdm-mobile-nav-social-item .tdm-social-compact-toggle .tdm-mobile-nav-icon,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle .tdm-mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    margin: 0;
    line-height: 0;
  }

  .tdm-mobile-nav-social-item .tdm-social-compact-toggle .tdm-mobile-nav-icon svg,
  .tdm-mobile-nav-social-slot .tdm-social-compact-toggle .tdm-mobile-nav-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
  }

  .tdm-social-trigger-label {
    display: block;
    max-width: 100%;
    margin: 0;
    color: currentColor;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
  }

  /* Centre the flyout on the nav cell. Using left:50% avoids the visual
     offset that occurred with the former right:50% / translate(+50%) pair. */
  .tdm-social-compact--nav .tdm-social-compact-menu {
    left: 50%;
    right: auto;
    bottom: calc(100% + 13px);
    width: 60px;
    min-width: 60px;
    padding: 7px;
    align-items: center;
    overflow-x: hidden;
    transform: translate(-50%, 9px) scale(.94);
    transform-origin: bottom center;
  }

  .tdm-social-compact--nav.is-open .tdm-social-compact-menu {
    transform: translate(-50%, 0) scale(1);
  }

  .tdm-social-compact--nav .tdm-social-option {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    border-radius: 13px;
  }

  .tdm-social-compact--nav .tdm-social-option-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin: 0;
    line-height: 0;
  }

  .tdm-social-compact--nav .tdm-social-option-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .tdm-social-compact--nav .tdm-social-option-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

/* v0.4.5 — plan zoomable */
.tdm-plan-zoom { position: relative; }
.tdm-plan-zoom-controls { position: absolute; z-index: 12; top: 12px; right: 12px; display: flex; gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.32); border-radius: 14px; background: rgba(3,19,31,.8); box-shadow: 0 8px 24px rgba(0,0,0,.24); backdrop-filter: blur(14px); }
.tdm-plan-zoom-controls button { appearance: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: 800 17px/1 inherit; cursor: pointer; }
.tdm-plan-zoom-controls button:hover, .tdm-plan-zoom-controls button:focus-visible { background: rgba(42,212,245,.25); outline: 2px solid rgba(143,238,255,.5); }
.tdm-plan-viewport { position: relative; overflow: hidden !important; cursor: zoom-in; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.tdm-plan-zoom.is-zoomed .tdm-plan-viewport { cursor: grab; touch-action: none; }
.tdm-plan-zoom.is-dragging .tdm-plan-viewport, .tdm-plan-zoom.is-pinching .tdm-plan-viewport { cursor: grabbing; }
.tdm-plan-canvas { position: relative; width: 100%; transform: translate3d(0,0,0) scale(1); transform-origin: 0 0; will-change: transform; }
.tdm-plan-canvas > img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.tdm-plan-zoom-hint { margin: 8px 4px 0; color: #9fbcc9; font-size: 11px; text-align: right; }

/* v0.4.5 — seconde version : points colorés par salle */
.tdm-plan-point-link { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff !important; text-decoration: none !important; outline: none; }
.tdm-plan-point-circle { width: var(--tdm-point-size, 54px); height: var(--tdm-point-size, 54px); display: grid; place-items: center; overflow: hidden; border: 4px solid rgba(255,255,255,.98); border-radius: 50%; background: var(--tdm-point-color, #09bce6); box-shadow: 0 7px 22px rgba(0,0,0,.34), 0 0 0 4px color-mix(in srgb, var(--tdm-point-color, #09bce6) 25%, transparent); transition: transform .18s ease, box-shadow .18s ease; }
.tdm-plan-point-link:hover .tdm-plan-point-circle, .tdm-plan-point-link:focus-visible .tdm-plan-point-circle { transform: scale(1.08); box-shadow: 0 9px 28px rgba(0,0,0,.4), 0 0 0 7px color-mix(in srgb, var(--tdm-point-color, #09bce6) 30%, transparent); }
.tdm-plan-point-logo { width: var(--tdm-point-logo-size, 62%); height: var(--tdm-point-logo-size, 62%); object-fit: contain; opacity: 0; transform: scale(.72); transition: opacity .2s ease, transform .22s ease; filter: drop-shadow(0 1px 3px rgba(0,0,0,.22)); }
.tdm-plan-point-link.is-logo-visible .tdm-plan-point-logo { opacity: 1; transform: scale(1); }
.tdm-plan-point-label { max-width: 130px; display: flex; flex-direction: column; align-items: center; padding: 4px 7px; border-radius: 8px; background: rgba(3,19,31,.88); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.1; text-align: center; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.tdm-plan-point-label small { margin-top: 2px; color: #a9dce9; font-size: 8px; text-transform: uppercase; }
.tdm-plan-point-link.is-current .tdm-plan-point-circle { animation: tdm-point-current 2s ease-in-out infinite; }
@keyframes tdm-point-current { 0%,100% { box-shadow: 0 7px 22px rgba(0,0,0,.34), 0 0 0 4px rgba(143,238,255,.25); } 50% { box-shadow: 0 7px 22px rgba(0,0,0,.34), 0 0 0 13px rgba(143,238,255,0); } }

@media (max-width: 640px) {
  .tdm-plan-zoom-controls { top: 8px; right: 8px; }
  .tdm-plan-zoom-controls button { width: 34px; height: 34px; }
  .tdm-plan-point-label { max-width: 100px; font-size: 8px; }
  .tdm-plan-zoom-hint { text-align: left; }
}

@media (max-width: 900px) {
  .tdm-mobile-nav--many-items .tdm-mobile-nav-item,
  .tdm-mobile-nav--many-items .tdm-mobile-nav-language-item,
  .tdm-mobile-nav--many-items .tdm-social-compact-toggle { font-size: 8px; }
  .tdm-mobile-nav--many-items .tdm-mobile-nav-icon { width: 20px; height: 20px; }
  .tdm-mobile-nav--many-items .tdm-mobile-nav-icon svg { width: 19px; height: 19px; }
}


/* v0.4.6 — navigation truly responsive to the number of enabled items */
@media (max-width: 900px) {
  .tdm-mobile-nav--default .tdm-mobile-nav-inner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(var(--tdm-mobile-nav-columns, 1), minmax(0, 1fr)) !important;
  }
  .tdm-mobile-nav--default .tdm-mobile-nav-item,
  .tdm-mobile-nav--default .tdm-mobile-nav-social-item,
  .tdm-mobile-nav--default .tdm-mobile-nav-language-item {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* v0.4.6 — fields used by the Elementor "Modèle Œuvre" */
.tdm-artwork--model > .elementor,
.tdm-artwork--model > .elementor > .elementor-element,
.tdm-artwork--model .elementor-element { max-width: 100%; }
.tdm-artwork-field { box-sizing: border-box; }
.tdm-artwork-field--title { margin: 0; }
.tdm-artwork-field--summary { color: #d8e8ee; font-size: 1.02rem; line-height: 1.65; }
.tdm-artwork-field--summary > :first-child,
.tdm-artwork-field--description > :first-child { margin-top: 0; }
.tdm-artwork-field--summary > :last-child,
.tdm-artwork-field--description > :last-child { margin-bottom: 0; }
.tdm-artwork-field--media img,
.tdm-artwork-field--media video { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.tdm-artwork-field--audio audio { width: 100%; }
.tdm-elementor-placeholder { padding: 16px; border: 1px dashed rgba(0,0,0,.25); border-radius: 8px; font-size: 13px; }

.tdm-artwork-model-inner { width: 100%; }
.tdm-artwork-model-header { display: flex; align-items: baseline; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--tdm-line); }
.tdm-artwork-model-copy { padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.tdm-artwork-model-copy .tdm-artwork-field-value,
.tdm-artwork-model-copy .tdm-artwork-field { margin-top: 0; margin-bottom: 0; }
@media (max-width: 640px) {
  .tdm-artwork-model-header { align-items: flex-start; flex-direction: column; gap: 8px; }
}


/* v0.4.7 — repères de plan sans libellé */
.tdm-plan-labels-hidden .tdm-plan-point-link { gap: 0; }
.tdm-plan-labels-hidden .tdm-plan-zone-link { min-width: 0; min-height: 0; }
.tdm-plan-labels-hidden .tdm-plan-zone-link > span,
.tdm-plan-labels-hidden .tdm-plan-point-label,
.tdm-plan-labels-hidden .tdm-plan-current-zone > b { display: none !important; }

/* v0.4.7 — palette globale personnalisable */
body { background: var(--tdm-theme-bg, var(--tdm-ink)); color: var(--tdm-theme-text, var(--tdm-white)); }
.tdm-shell, .tdm-room-detail { color: var(--tdm-theme-text, var(--tdm-white)); }
.tdm-shell { background: radial-gradient(circle at 50% -10%, var(--tdm-theme-bg-alt, #05253b) 0, color-mix(in srgb, var(--tdm-theme-bg-alt, #05253b) 72%, var(--tdm-theme-bg, #03131f)) 38%, var(--tdm-theme-bg, #03131f) 80%); }
.tdm-fullscreen { background: var(--tdm-theme-bg, #03131f); color: var(--tdm-theme-text, #f8fcff); }
.tdm-section-header h1, .tdm-panel h1, .tdm-interactive-plan-section h2, .tdm-plan-section h2, .tdm-opinion-thanks h2 { color: var(--tdm-theme-heading, #fff); }
.tdm-section-header p, .tdm-panel p, .tdm-prose, .tdm-opinion-thanks > p, .tdm-dates, .tdm-intro { color: var(--tdm-theme-muted, #a9c4d2); }
.tdm-step, .tdm-eyebrow, .tdm-kicker { color: var(--tdm-theme-accent, #2ad4f5); }
.tdm-panel, .tdm-opinion, .tdm-page-socials { background: color-mix(in srgb, var(--tdm-theme-surface, #071d2c) 92%, transparent); border-color: var(--tdm-theme-border, #315365); }
.tdm-primary-button { background: linear-gradient(135deg, var(--tdm-theme-primary-button-bg, #8feeff), color-mix(in srgb, var(--tdm-theme-primary-button-bg, #8feeff) 72%, white)); color: var(--tdm-theme-primary-button-text, #032033) !important; }
.tdm-secondary-button, .tdm-small-button { background: var(--tdm-theme-secondary-button-bg, #0a3952); color: var(--tdm-theme-secondary-button-text, #fff) !important; border-color: var(--tdm-theme-border, #315365); }
.tdm-status.is-success, .tdm-success-icon { color: var(--tdm-theme-success, #9ef1cf); border-color: var(--tdm-theme-success, #9ef1cf); }
.tdm-status.is-error { color: var(--tdm-theme-danger, #ffb4b4); }
.tdm-thanks-rating span.is-active { color: var(--tdm-theme-warning, #fff2a8); }
.tdm-manual-entry input, .tdm-opinion input, .tdm-opinion select, .tdm-opinion textarea { background: var(--tdm-theme-input-bg, #0b2a3f); color: var(--tdm-theme-input-text, #fff); border-color: var(--tdm-theme-input-border, #315365); }
.tdm-plan-zone-link { background: color-mix(in srgb, var(--tdm-theme-plan-zone, #075e89) 82%, transparent); color: var(--tdm-theme-plan-zone-text, #fff) !important; }
.tdm-plan-zone-link:hover, .tdm-plan-zone-link:focus-visible { background: color-mix(in srgb, var(--tdm-theme-plan-zone-hover, #00aed8) 90%, transparent); }
.tdm-plan-current-zone { background: color-mix(in srgb, var(--tdm-theme-plan-zone-hover, #00aed8) 62%, transparent); }
.tdm-plan-current-zone b { color: var(--tdm-theme-accent-contrast, #032033); }
.tdm-language-compact-toggle, .tdm-language-option, .tdm-language-compact-menu, .tdm-language-popup-card, .tdm-session-expired-card { background-color: color-mix(in srgb, var(--tdm-theme-popup-bg, #071d2c) 94%, transparent); color: var(--tdm-theme-popup-text, #fff); border-color: var(--tdm-theme-border, #315365); }
.tdm-social-link, .tdm-social-compact-option { background: var(--tdm-theme-social-bg, #0a3952); color: var(--tdm-theme-social-icon, #fff) !important; border-color: var(--tdm-theme-border, #315365); }
@media (max-width: 900px) {
  .tdm-mobile-nav--default .tdm-mobile-nav-inner { background: color-mix(in srgb, var(--tdm-theme-nav-bg, #03131f) 96%, transparent); border-color: var(--tdm-theme-border, #315365); }
  .tdm-mobile-nav--default .tdm-mobile-nav-item, .tdm-mobile-nav--default .tdm-social-compact-toggle, .tdm-mobile-nav--default .tdm-language-compact-toggle { color: var(--tdm-theme-nav-text, #a9c4d2) !important; }
  .tdm-mobile-nav--default .tdm-mobile-nav-item.is-active { color: var(--tdm-theme-nav-active, #2ad4f5) !important; }
}

/* v0.4.7 — compléments palette */
@media (max-width: 900px) {
  .tdm-mobile-nav { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tdm-theme-nav-bg, #03131f) 90%, transparent) 24%, var(--tdm-theme-nav-bg, #03131f)); }
  .tdm-mobile-nav--default .tdm-mobile-nav-inner,
  .tdm-mobile-nav-elementor-shell { background: color-mix(in srgb, var(--tdm-theme-nav-bg, #03131f) 94%, white 6%); }
  .tdm-mobile-nav--default .tdm-mobile-nav-item.is-active { color: var(--tdm-theme-nav-active, #2ad4f5) !important; background: color-mix(in srgb, var(--tdm-theme-nav-active, #2ad4f5) 18%, transparent); }
  .tdm-mobile-nav--default .tdm-mobile-nav-item.is-active::after { background: var(--tdm-theme-nav-active, #2ad4f5); }
}
.tdm-language-popup-card,
.tdm-session-expired-card { background: linear-gradient(155deg, color-mix(in srgb, var(--tdm-theme-popup-bg, #071d2c) 82%, var(--tdm-theme-accent, #2ad4f5) 18%), var(--tdm-theme-popup-bg, #071d2c) 58%, color-mix(in srgb, var(--tdm-theme-popup-bg, #071d2c) 86%, black 14%)); color: var(--tdm-theme-popup-text, #fff); }
.tdm-language-compact-menu { background: color-mix(in srgb, var(--tdm-theme-popup-bg, #071d2c) 94%, transparent); }
.tdm-social-link,
.tdm-social-compact--nav .tdm-social-option { background: var(--tdm-theme-social-bg, #0a3952); color: var(--tdm-theme-social-icon, #fff) !important; border-color: var(--tdm-theme-border, #315365); }
.tdm-social-link svg,
.tdm-social-compact--nav .tdm-social-option svg { color: var(--tdm-theme-social-icon, #fff); fill: currentColor; stroke: currentColor; }

/* v0.4.9 — faible réseau / hors-ligne + optimisation */
.tdm-offline-panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin-top:24px;overflow:hidden}
.tdm-offline-panel-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:999px;background:var(--tdm-theme-accent,#2ad4f5);color:var(--tdm-theme-accent-contrast,#032033);font-size:28px;font-weight:800;line-height:1}
.tdm-offline-panel-copy h2{margin:.15rem 0 .5rem}
.tdm-offline-panel-copy p{margin:.4rem 0;color:var(--tdm-theme-muted,#a9c4d2)}
.tdm-offline-panel-copy .tdm-offline-note{font-size:.9rem}
.tdm-offline-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.tdm-offline-actions button{width:auto}
.tdm-offline-progress{height:7px;margin-top:15px;border-radius:999px;background:color-mix(in srgb,var(--tdm-theme-border,#315365) 55%,transparent);overflow:hidden}
.tdm-offline-progress span{display:block;width:0;height:100%;border-radius:inherit;background:var(--tdm-theme-accent,#2ad4f5);transition:width .25s ease}
.tdm-low-network .tdm-offline-panel{box-shadow:0 0 0 1px color-mix(in srgb,var(--tdm-theme-accent,#2ad4f5) 32%,transparent),0 14px 40px rgba(0,0,0,.2)}
.tdm-content-visibility .tdm-artwork{content-visibility:auto;contain-intrinsic-size:auto 760px}
@media (max-width:640px){.tdm-offline-panel{grid-template-columns:1fr}.tdm-offline-panel-icon{width:44px;height:44px;font-size:23px}.tdm-offline-actions{display:grid;grid-template-columns:1fr}.tdm-offline-actions button{width:100%}}

/* Groupes d'œuvres / carousel swipeable */
.tdm-artwork--carousel{position:relative}
.tdm-artwork-anchor{position:absolute;width:1px;height:1px;overflow:hidden;pointer-events:none;opacity:0}
.tdm-artwork-carousel{position:relative;width:100%;min-width:0;background:#010d15}
.tdm-artwork-carousel-track{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.tdm-artwork-carousel-track::-webkit-scrollbar{display:none}
.tdm-artwork-carousel-slide{flex:0 0 100%;width:100%;min-width:100%;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box}
.tdm-artwork-carousel-slide>.tdm-artwork-media{width:100%;height:100%}
.tdm-artwork-carousel-slide .tdm-artwork-media img,.tdm-artwork-carousel-slide .tdm-artwork-media video{display:block;width:100%;max-height:88vh;object-fit:contain}
.tdm-artwork-carousel-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px 14px;background:rgba(1,13,21,.96);border-top:1px solid var(--tdm-line)}
.tdm-artwork-carousel-arrow{appearance:none;border:1px solid var(--tdm-line);background:rgba(255,255,255,.06);color:var(--tdm-white);width:38px;height:38px;border-radius:999px;display:grid;place-items:center;font:inherit;font-size:25px;line-height:1;cursor:pointer}
.tdm-artwork-carousel-arrow:hover,.tdm-artwork-carousel-arrow:focus-visible{border-color:var(--tdm-cyan);background:rgba(255,255,255,.12)}
.tdm-artwork-carousel-dots{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
.tdm-artwork-carousel-dot{appearance:none;border:0;padding:0;width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.32);cursor:pointer;transition:width .22s ease,background .22s ease,transform .22s ease}
.tdm-artwork-carousel-dot.is-active{width:24px;background:var(--tdm-cyan);transform:scaleY(1.08)}
.tdm-artwork-carousel-count{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--tdm-muted);white-space:nowrap}
.tdm-artwork-carousel-count b{color:var(--tdm-white)}
.tdm-artwork-field--media>.tdm-artwork-carousel{width:100%}
@media(max-width:640px){.tdm-artwork-carousel-controls{gap:9px;padding-inline:11px}.tdm-artwork-carousel-arrow{width:34px;height:34px}.tdm-artwork-carousel-dot{width:7px;height:7px}.tdm-artwork-carousel-dot.is-active{width:20px}}
@media(prefers-reduced-motion:reduce){.tdm-artwork-carousel-track{scroll-behavior:auto}.tdm-artwork-carousel-dot{transition:none}}


/* v0.6.1 — protection dissuasive des médias.
   Important : sur le Web, ces règles ne peuvent pas empêcher une capture système à 100 %. */
html.tdm-media-protection-enabled .tdm-protected-media-node,
html.tdm-media-protection-enabled .tdm-artwork-media img,
html.tdm-media-protection-enabled .tdm-artwork-media video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
html.tdm-media-protection-enabled .tdm-artwork-media { position: relative; }
html.tdm-media-protection-enabled .tdm-media-watermarked::after {
  content: attr(data-tdm-watermark);
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 6;
  max-width: calc(100% - 28px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  opacity: var(--tdm-watermark-opacity,.24);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-artwork-media,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-room-card,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-room-hero-image,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-plan-image-layer,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-home-media {
  background: #000 !important;
  background-image: none !important;
}
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-artwork-media img,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-artwork-media video,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-room-card img,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-plan-image-layer img,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-home-media img,
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-media .tdm-home-media video {
  visibility: hidden !important;
  opacity: 0 !important;
}
html.tdm-media-protection-enabled.tdm-privacy-hidden.tdm-privacy-scope-screen::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: #000;
  pointer-events: all;
}
@media print {
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-artwork-media,
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-room-card,
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-room-hero-image,
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-plan-image-layer {
    background: #000 !important;
    background-image: none !important;
  }
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-artwork-media img,
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-artwork-media video,
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-room-card img,
  html.tdm-media-protection-enabled.tdm-media-protection-print .tdm-plan-image-layer img {
    visibility: hidden !important;
  }
}

/* v0.6.2 — contrôles de carousel positionnables dans le Modèle Œuvre Elementor. */
.tdm-artwork-carousel-controls--external{
  box-sizing:border-box;
  width:100%;
  border:1px solid var(--tdm-line);
}
.tdm-artwork-carousel-controls--external.tdm-artwork-carousel-controls--minimal{
  width:auto;
  padding:0;
  background:transparent;
  border-color:transparent;
}
.tdm-artwork-carousel-controls--external.tdm-artwork-carousel-controls--pill{
  width:max-content;
  max-width:100%;
  padding:8px 10px;
  border-radius:999px;
  background:var(--tdm-theme-surface, #071d2c);
}
.tdm-artwork-carousel-controls--external.tdm-artwork-carousel-controls--glass{
  width:max-content;
  max-width:100%;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(3,19,31,.68);
  border-color:rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(14px) saturate(1.25);
  backdrop-filter:blur(14px) saturate(1.25);
}
.tdm-artwork-carousel-controls--vertical{
  flex-direction:column;
  width:max-content;
}
.tdm-artwork-carousel-controls--vertical .tdm-artwork-carousel-dots,
.tdm-artwork-carousel-controls--vertical .tdm-artwork-carousel-pages{
  flex-direction:column;
}
.tdm-artwork-carousel-pages{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
}
.tdm-artwork-carousel-page{
  appearance:none;
  width:32px;
  height:32px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.32);
  border-radius:999px;
  background:transparent;
  color:var(--tdm-muted);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.tdm-artwork-carousel-page.is-active{
  background:var(--tdm-cyan);
  border-color:var(--tdm-cyan);
  color:var(--tdm-dark);
  transform:scale(1.05);
}
.tdm-artwork-carousel-controls--minimal .tdm-artwork-carousel-arrow{
  background:transparent;
  border-color:transparent;
}
.tdm-artwork-carousel-controls--minimal .tdm-artwork-carousel-arrow:hover,
.tdm-artwork-carousel-controls--minimal .tdm-artwork-carousel-arrow:focus-visible{
  background:rgba(255,255,255,.08);
}
.tdm-artwork-carousel-controls--display-count{
  min-height:0;
}
/* Dès qu'un contrôle externe est présent dans le même .tdm-artwork, les
   contrôles intégrés au média disparaissent. :has() évite le flash initial,
   la classe JS sert de repli sur les navigateurs plus anciens. */
.tdm-artwork--carousel:has([data-tdm-carousel-external-controls]) .tdm-artwork-carousel-controls--integrated,
.tdm-artwork-carousel--external-controls .tdm-artwork-carousel-controls--integrated{
  display:none!important;
}
@media(max-width:640px){
  .tdm-artwork-carousel-controls--external.tdm-artwork-carousel-controls--pill,
  .tdm-artwork-carousel-controls--external.tdm-artwork-carousel-controls--glass{max-width:100%}
  .tdm-artwork-carousel-page{width:30px;height:30px}
}
@media(prefers-reduced-motion:reduce){.tdm-artwork-carousel-page{transition:none}}


/* v0.6.3 — pagination du carousel avec les vrais numéros d’œuvre. */
.tdm-artwork-carousel-page--artwork-code{
  width:auto;
  min-width:52px;
  padding-inline:12px;
  white-space:nowrap;
  line-height:1;
}
.tdm-artwork-carousel-controls--vertical .tdm-artwork-carousel-page--artwork-code{
  width:auto;
  max-width:100%;
}
@media(max-width:640px){
  .tdm-artwork-carousel-page--artwork-code{min-width:46px;padding-inline:9px;font-size:11px}
}

/* v0.6.4 — pinch-to-zoom tactile : à 1× un doigt garde le scroll vertical, deux doigts contrôlent le plan. */
.tdm-plan-viewport { overscroll-behavior-x: contain; }
.tdm-plan-zoom.is-pinching .tdm-plan-viewport { touch-action: none; }


/* Artwork number search popup + locked rooms (v0.7.3) */
.tdm-artwork-search-modal[hidden] { display: none !important; }
.tdm-artwork-search-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.tdm-artwork-search-modal.is-visible { opacity: 1; pointer-events: auto; }
.tdm-artwork-search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 10, 20, .68);
  backdrop-filter: blur(9px);
}
.tdm-artwork-search-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 430px);
  padding: 24px;
  border: 1px solid var(--tdm-theme-border, rgba(255,255,255,.16));
  border-radius: 25px;
  background: color-mix(in srgb, var(--tdm-theme-popup-bg, #071d2c) 96%, transparent);
  color: var(--tdm-theme-popup-text, #fff);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  transform: translateY(18px) scale(.98);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.tdm-artwork-search-modal.is-visible .tdm-artwork-search-card { transform: translateY(0) scale(1); }
.tdm-artwork-search-card h2 { margin: 7px 0 7px; }
.tdm-artwork-search-card > p { margin: 0 0 18px; opacity: .82; }
.tdm-artwork-search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: inherit;
  font-size: 27px;
  line-height: 1;
}
.tdm-artwork-search-input-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: stretch; }
.tdm-artwork-search-input-row input {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--tdm-theme-form-border, rgba(255,255,255,.22));
  border-radius: 16px;
  padding: 0 15px;
  background: var(--tdm-theme-form-bg, #fff);
  color: var(--tdm-theme-form-text, #071d2c);
  font-size: 18px;
  text-transform: uppercase;
}
.tdm-artwork-search-help { margin: 9px 0 0; font-size: 12px; opacity: .68; }
.tdm-artwork-search-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tdm-artwork-search-trigger-icon { font-size: 1.25em; line-height: 1; }
html.tdm-artwork-search-open, body.tdm-artwork-search-open { overflow: hidden; }
.tdm-mobile-nav-item--button { appearance: none; border: 0; font: inherit; cursor: pointer; }
.tdm-room-card--locked { cursor: default; pointer-events: none; }
.tdm-room-card--locked .tdm-room-card-background { opacity: 1; }
.tdm-plan-zone-link.is-locked,
.tdm-plan-point-link.is-locked { cursor: default; pointer-events: none; }
.tdm-plan-zone-link.is-locked { opacity: .72; }
.tdm-plan-point-link.is-locked .tdm-plan-point-circle { filter: saturate(.55); opacity: .78; }
.tdm-room-locked-notice { margin-bottom: 18px; }
@media (max-width: 480px) {
  .tdm-artwork-search-input-row { grid-template-columns: 1fr; }
  .tdm-artwork-search-card { padding: 21px 17px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tdm-artwork-search-modal, .tdm-artwork-search-card { transition: none !important; }
}


/* Toutes les œuvres — index global v0.7.8 */
.tdm-all-artworks-page { padding-bottom: 110px; }
.tdm-all-artworks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tdm-all-artworks-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tdm-line);
  border-radius: 24px;
  background: var(--tdm-panel);
  color: var(--tdm-white) !important;
  text-decoration: none !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.tdm-all-artworks-card:hover,
a.tdm-all-artworks-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(118,234,255,.55);
  box-shadow: 0 24px 62px rgba(0,0,0,.28);
}
.tdm-all-artworks-card.is-locked { opacity: .72; }
.tdm-all-artworks-index {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tdm-theme-accent, var(--tdm-cyan));
  color: var(--tdm-deep);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.tdm-all-artworks-media {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: rgba(0,0,0,.16);
}
.tdm-all-artworks-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tdm-all-artworks-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--tdm-muted);
  font-size: 42px;
}
.tdm-all-artworks-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 18px 18px 20px;
}
.tdm-all-artworks-copy small {
  color: var(--tdm-theme-accent, var(--tdm-cyan));
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}
.tdm-all-artworks-copy strong {
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.08;
}
.tdm-all-artworks-copy > span {
  color: var(--tdm-muted);
  font-size: 13px;
}
.tdm-all-artworks-copy em {
  color: var(--tdm-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}
@media (max-width: 900px) {
  .tdm-all-artworks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tdm-all-artworks-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tdm-all-artworks-card { display: grid; grid-template-columns: 42% minmax(0,1fr); align-items: stretch; }
  .tdm-all-artworks-media { aspect-ratio: auto; min-height: 150px; }
  .tdm-all-artworks-copy { justify-content: center; padding: 16px; }
  .tdm-all-artworks-index { top: 9px; left: 9px; min-width: 36px; height: 36px; font-size: 13px; }
}


/* v0.7.9 — Toutes les œuvres : rendu complet comme dans une salle */
.tdm-all-artworks-full {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
}
.tdm-all-artworks-full-unit {
  position: relative;
  min-width: 0;
}
.tdm-all-artworks-full-unit > .tdm-artwork {
  margin-top: 12px;
}
.tdm-all-artworks-full-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tdm-all-artworks-full-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 9px;
  border-radius: 999px;
  background: var(--tdm-theme-accent, #0a7f98);
  color: var(--tdm-theme-button-primary-text, #fff);
  font-weight: 700;
  line-height: 1;
}
.tdm-all-artworks-full-room {
  color: var(--tdm-theme-muted, #64748b);
  font-size: .9rem;
}
.tdm-all-artworks-full-unit.is-locked .tdm-all-artworks-full-meta { opacity: .72; }
.tdm-all-artworks-locked { margin-top: 10px; }


/* v0.8.0 — ambiance marine optionnelle. */
.tdm-ambient-layer{
  position:fixed;
  inset:0;
  z-index:18;
  overflow:hidden;
  pointer-events:none;
  contain:layout paint;
}

.tdm-ambient-shimmer{
  position:absolute;
  inset:-20%;
  opacity:.32;
  background:
    radial-gradient(ellipse at 16% 18%, rgba(173,247,255,.58) 0 7%, rgba(115,226,249,.24) 14%, rgba(115,226,249,0) 31%),
    radial-gradient(ellipse at 78% 30%, rgba(86,218,250,.48) 0 8%, rgba(52,185,231,.18) 17%, rgba(52,185,231,0) 33%),
    radial-gradient(ellipse at 42% 76%, rgba(201,251,255,.42) 0 7%, rgba(113,225,245,.15) 17%, rgba(113,225,245,0) 32%),
    linear-gradient(112deg, transparent 22%, rgba(185,247,255,.13) 42%, transparent 59%);
  filter:blur(12px) saturate(1.12);
  mix-blend-mode:screen;
  transform:translate3d(-2%,0,0) scale(1.05);
  animation:tdmAmbientShimmer 12s ease-in-out infinite alternate;
  will-change:transform,opacity;
}
.tdm-ambient-shimmer--low{opacity:.18;filter:blur(18px) saturate(1.02);animation-duration:18s}
.tdm-ambient-shimmer--normal{opacity:.30;filter:blur(13px) saturate(1.1);animation-duration:13.5s}
.tdm-ambient-shimmer--high{opacity:.48;filter:blur(9px) saturate(1.22);animation-duration:9.5s}
.tdm-ambient-bubble{
  position:absolute;
  bottom:-42px;
  display:block;
  border:1px solid rgba(220,250,255,.54);
  border-radius:50%;
  background:
    radial-gradient(circle at 31% 27%, rgba(255,255,255,.62) 0 8%, rgba(255,255,255,.08) 18%, rgba(94,211,239,.12) 54%, rgba(14,104,145,.02) 72%);
  box-shadow:
    inset -2px -3px 7px rgba(22,120,158,.13),
    inset 2px 2px 5px rgba(255,255,255,.18);
  opacity:0;
  pointer-events:auto;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  will-change:transform,opacity;
  animation:tdmAmbientBubbleRise var(--tdm-bubble-duration,8500ms) linear forwards;
}
.tdm-ambient-bubble:active{filter:brightness(1.18)}
.tdm-ambient-bubble-pop{
  position:fixed;
  display:block;
  border:1px solid rgba(213,248,255,.65);
  border-radius:50%;
  opacity:.72;
  transform:translate(-50%,-50%) scale(.45);
  animation:tdmAmbientBubblePop .5s cubic-bezier(.17,.84,.34,1) forwards;
}
@keyframes tdmAmbientBubbleRise{
  0%{transform:translate3d(0,0,0) scale(.72);opacity:0}
  9%{opacity:.48}
  42%{transform:translate3d(calc(var(--tdm-bubble-drift,0px) * .35),-42vh,0) scale(.93)}
  78%{opacity:.4}
  100%{transform:translate3d(var(--tdm-bubble-drift,0px),calc(-100vh + 24px),0) scale(1.12);opacity:.16}
}
@keyframes tdmAmbientBubblePop{
  0%{opacity:.68;transform:translate(-50%,-50%) scale(.45)}
  72%{opacity:.3;transform:translate(-50%,-50%) scale(1.55)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.85)}
}
@keyframes tdmAmbientShimmer{
  0%{transform:translate3d(-5%,-2%,0) scale(1.02) rotate(-1.4deg)}
  35%{transform:translate3d(2%,1%,0) scale(1.09) rotate(.6deg)}
  70%{transform:translate3d(5%,3%,0) scale(1.13) rotate(1.2deg)}
  100%{transform:translate3d(-2%,5%,0) scale(1.06) rotate(-.8deg)}
}
@media (prefers-reduced-motion:reduce){
  .tdm-ambient-layer{display:none!important}
}


/* v0.8.3 — cartes Pratique personnalisables et position d'ancre Avis. */
.tdm-practical-card{min-width:0}
.tdm-practical-card-icon{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}
.tdm-opinion{scroll-margin-top:20px}

/* v0.8.3 — transition marine à l'ouverture de chaque page du parcours. */
.tdm-page-enter{position:fixed;z-index:12000;inset:0;pointer-events:none;overflow:hidden;opacity:1;--tdm-page-enter-duration:850ms}
.tdm-page-enter--wave{background:linear-gradient(180deg,#02131f 0%,#074d6b 45%,rgba(4,79,108,.96) 64%,rgba(3,29,47,.9) 100%);transform:translateY(0)}
.tdm-page-enter--wave.is-playing{animation:tdmPageEnterWave var(--tdm-page-enter-duration) cubic-bezier(.58,.02,.18,1) forwards}
.tdm-page-enter-wave{position:absolute;left:-8%;right:-8%;bottom:-7%;height:24%;border-radius:50% 50% 0 0/70% 70% 0 0;background:rgba(104,225,247,.34);box-shadow:0 -20px 70px rgba(89,220,246,.25);transform:rotate(-2deg)}
.tdm-page-enter-light{position:absolute;inset:-20%;background:radial-gradient(circle at 50% 15%,rgba(180,246,255,.48),transparent 35%);mix-blend-mode:screen}
@keyframes tdmPageEnterWave{0%{transform:translateY(0)}62%{transform:translateY(-18%)}100%{transform:translateY(-112%)}}

.tdm-page-enter--dive{background:radial-gradient(circle at 50% 15%,rgba(99,228,249,.52),rgba(2,33,55,.98) 38%,#01111c 78%);transform:scale(1);opacity:1}
.tdm-page-enter--dive.is-playing{animation:tdmPageEnterDive var(--tdm-page-enter-duration) cubic-bezier(.2,.75,.2,1) forwards}
.tdm-page-enter--dive .tdm-page-enter-wave{display:none}
.tdm-page-enter--dive .tdm-page-enter-light{background:repeating-linear-gradient(105deg,transparent 0 8%,rgba(152,241,255,.12) 10%,transparent 15%);filter:blur(9px)}
@keyframes tdmPageEnterDive{0%{opacity:1;transform:scale(1)}55%{opacity:.88;transform:scale(1.08)}100%{opacity:0;transform:scale(1.16)}}

.tdm-page-enter--bubbles{background:linear-gradient(180deg,rgba(1,21,35,.98),rgba(5,72,99,.94));animation:tdmPageEnterBubbleBg var(--tdm-page-enter-duration) ease-out forwards}
.tdm-page-enter--bubbles>span{position:absolute;bottom:-70px;width:34px;height:34px;border:2px solid rgba(199,249,255,.75);border-radius:50%;box-shadow:inset 4px 4px 10px rgba(255,255,255,.25),0 0 18px rgba(79,220,244,.25);animation:tdmPageEnterBubble var(--tdm-page-enter-duration) cubic-bezier(.28,.56,.28,1) forwards}
.tdm-page-enter--bubbles>span:nth-child(1){left:8%;width:24px;height:24px;animation-delay:20ms}.tdm-page-enter--bubbles>span:nth-child(2){left:25%;width:42px;height:42px;animation-delay:100ms}.tdm-page-enter--bubbles>span:nth-child(3){left:43%;width:18px;height:18px;animation-delay:50ms}.tdm-page-enter--bubbles>span:nth-child(4){left:62%;width:52px;height:52px;animation-delay:120ms}.tdm-page-enter--bubbles>span:nth-child(5){left:78%;width:28px;height:28px;animation-delay:70ms}.tdm-page-enter--bubbles>span:nth-child(6){left:91%;width:38px;height:38px;animation-delay:150ms}
@keyframes tdmPageEnterBubble{0%{transform:translateY(0) scale(.7);opacity:0}18%{opacity:.9}100%{transform:translateY(-115vh) scale(1.08);opacity:0}}
@keyframes tdmPageEnterBubbleBg{0%,45%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.tdm-page-enter{display:none!important}}
