/* ==================================================================
 *  3D tour — homepage section, hero + pricing links, modal, page
 *  25 Oct 2026. Uses the site tokens only (site.css :root).
 * ================================================================== */

/* desktop / mobile copy variants (the master prompt gives both) */
.tour-m{display:none}
@media (max-width:760px){.tour-d{display:none}.tour-m{display:inline}}

/* ---------- hero: tertiary link under the two CTAs ---------- */
.hero-tour-link{margin:18px 0 0}
.hero-tour-link a{color:var(--cream);font-size:.84rem;font-weight:600;letter-spacing:.02em;text-decoration:underline;text-decoration-color:rgba(216,193,157,.55);text-underline-offset:6px;text-decoration-thickness:1px;transition:color .2s ease,text-decoration-color .2s ease}
.hero-tour-link a:hover{color:var(--sand);text-decoration-color:currentColor}
.hero-tour-link a span{display:inline-block;margin-left:2px;transition:transform .2s ease}
.hero-tour-link a:hover span{transform:translate(2px,-2px)}
@media (max-width:760px){.hero-tour-link{margin-top:14px}.hero-tour-link a{font-size:.78rem}}

/* ---------- pricing: two quiet links under the lede ---------- */
.pricing-tour-links{display:flex;flex-wrap:wrap;gap:12px 26px;margin:24px 0 0}
.pricing-tour-links a{color:var(--forest);font-size:.84rem;font-weight:700;letter-spacing:.01em;text-decoration:none;border-bottom:1px solid rgba(6,59,45,.35);padding-bottom:3px;transition:border-color .2s ease,color .2s ease}
.pricing-tour-links a:hover{color:#9b6c3c;border-color:currentColor}

/* ---------- homepage section ---------- */
.tour-section{background:var(--deep);color:var(--cream)}
.tour-section .topography{opacity:.06}
.tour-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:clamp(40px,6vw,88px);align-items:center}
.tour-copy .eyebrow{color:var(--sand)}
.tour-copy h2{max-width:560px}
.tour-copy .lede{color:rgba(244,237,223,.74);max-width:520px}
.tour-meta{margin:22px 0 0;font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,237,223,.6)}
.tour-actions{margin-top:30px}
.tour-section .button-ghost{color:var(--cream)}
.tour-media{min-width:0}
@media (max-width:1023px){.tour-grid{grid-template-columns:1fr;gap:38px}.tour-copy h2,.tour-copy .lede{max-width:680px}}
@media (max-width:760px){
  .tour-section{padding:72px 0 76px}
  .tour-grid{gap:0}
  .tour-copy{display:contents}
  .tour-copy>.eyebrow,.tour-copy>h2,.tour-copy>.lede{order:0}
  .tour-copy>.lede{margin:0}
  .tour-media{order:2;margin-top:28px}
  .tour-copy>.tour-actions{order:3;flex-direction:column;align-items:stretch;gap:10px;margin-top:22px}
  .tour-actions .button{width:100%}
  .tour-copy>.tour-meta{order:4;margin-top:16px;font-size:.68rem;text-align:center}
}

/* ---------- the preview (image, then a silent orbit video while on screen) ---------- */
.tour-preview{position:relative;display:block;width:100%;aspect-ratio:16/10;overflow:hidden;border:0;padding:0;margin:0;border-radius:6px;background:#06150f;color:var(--cream);cursor:pointer;text-decoration:none;box-shadow:0 30px 80px rgba(0,0,0,.35);isolation:isolate}
.tour-preview picture,.tour-preview img,.tour-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tour-preview img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.tour-preview-video{position:absolute;inset:0;opacity:0;transition:opacity .6s ease}
.tour-preview-video.is-playing{opacity:1}
.tour-preview::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,rgba(3,20,15,.72) 0%,rgba(3,20,15,0) 42%);pointer-events:none}
.tour-preview-badge{position:absolute;z-index:2;left:18px;top:18px;padding:5px 9px 4px;border:1px solid rgba(216,193,157,.55);border-radius:2px;font-size:.66rem;font-weight:700;letter-spacing:.16em;color:var(--sand);background:rgba(3,20,15,.45)}
.tour-preview-cta{position:absolute;z-index:2;left:18px;bottom:18px;display:inline-flex;align-items:center;gap:14px;min-height:46px;padding:12px 20px;border-radius:2px;background:var(--sand);color:var(--deep);font-size:.82rem;font-weight:700;letter-spacing:.02em;transition:transform .2s ease,background .2s ease}
.tour-preview:hover img{transform:scale(1.025)}
.tour-preview:hover .tour-preview-cta{transform:translateY(-2px);background:#e2cda9}
.tour-preview:focus-visible{outline:3px solid #e7b86f;outline-offset:4px}
@media (max-width:760px){.tour-preview{aspect-ratio:4/5;border-radius:4px}.tour-preview-cta{left:14px;bottom:14px;min-height:42px;padding:10px 16px;font-size:.76rem}.tour-preview-badge{left:14px;top:14px}}
@media (prefers-reduced-motion:reduce){.tour-preview img,.tour-preview-video,.tour-preview-cta{transition:none}.tour-preview:hover img{transform:none}}

/* ---------- the modal ---------- */
html.tour-locked,html.tour-locked body{overflow:hidden}
html.tour-locked{overscroll-behavior:none}
.tour-modal{width:min(1680px,96vw);height:min(1040px,92vh);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:10px;overflow:hidden;background:var(--deep);color:var(--cream);box-shadow:0 40px 120px rgba(0,0,0,.55)}
.tour-modal[open]{display:flex;flex-direction:column}
.tour-modal::backdrop{background:rgba(2,16,12,.8);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.tour-modal[open]{animation:tourIn .28s cubic-bezier(.2,.7,.2,1)}
@keyframes tourIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.tour-modal-bar{flex:0 0 auto;display:flex;align-items:center;gap:12px;min-height:60px;padding:9px 12px 9px 18px;border-bottom:1px solid rgba(244,237,223,.1);background:var(--deep)}
.tour-modal-title{flex:1 1 auto;min-width:0;margin:0;display:flex;align-items:center;gap:14px}
.tour-modal-title:focus{outline:none}
.tour-modal-crest{display:block;flex:0 0 auto;width:38px;height:38px}
.tour-modal-name{padding-left:14px;border-left:1px solid rgba(244,237,223,.2);font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--sand);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px}
.tour-modal-book{flex:0 0 auto;white-space:nowrap}
.tour-modal-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:42px;min-height:42px;padding:0 14px;border:1px solid rgba(244,237,223,.32);border-radius:2px;background:transparent;color:var(--cream);font:inherit;font-size:.8rem;font-weight:600;letter-spacing:.02em;cursor:pointer;transition:background .2s ease,border-color .2s ease}
.tour-modal-close:hover{background:rgba(255,255,255,.08);border-color:rgba(244,237,223,.6)}
.tour-x{font-size:1.25rem;line-height:1;margin-top:-2px}
.tour-modal-stage{position:relative;flex:1 1 auto;min-height:0;background:#050f0b}
.tour-modal-stage iframe,.tour-viewer-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#050f0b}
.tour-modal-loader{position:absolute;inset:0;z-index:2;display:grid;place-content:center;justify-items:center;gap:16px;background:radial-gradient(ellipse at 50% 40%,#0b2a20 0%,#050f0b 70%);transition:opacity .45s ease}
.tour-modal-loader p{margin:0;font-family:Fraunces,Georgia,serif;font-size:clamp(1.25rem,2.2vw,1.7rem);letter-spacing:-.02em;color:var(--cream)}
.tour-loader-line{position:relative;display:block;width:150px;height:2px;overflow:hidden;background:rgba(216,193,157,.18)}
.tour-loader-line::after{content:'';position:absolute;top:0;left:0;height:100%;width:40%;background:var(--sand);animation:tourLine 1.3s ease-in-out infinite}
@keyframes tourLine{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
.tour-modal-loader.is-done{opacity:0;pointer-events:none}
.tour-modal-fallback{position:absolute;inset:0;z-index:3;display:grid;place-items:center;padding:24px}
.tour-modal-fallback[hidden]{display:none}
.tour-modal-fallback img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45}
.tour-modal-fallback-copy{position:relative;max-width:460px;padding:28px 26px;border:1px solid rgba(244,237,223,.14);border-radius:6px;background:rgba(3,20,15,.86);text-align:center}
.tour-modal-fallback-copy p{margin:0 0 20px;font-family:Fraunces,Georgia,serif;font-size:1.35rem;line-height:1.25}
.tour-modal-fallback-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 22px}
.tour-text-link{color:inherit;font-size:.84rem;font-weight:700;letter-spacing:.01em;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.tour-text-link:hover{opacity:.8}
@media (max-width:760px),(max-height:560px){
  .tour-modal{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border-radius:0}
  .tour-modal[open]{animation:tourInM .22s ease-out}
  @keyframes tourInM{from{opacity:0}to{opacity:1}}
  .tour-modal-bar{min-height:54px;padding:calc(7px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 7px max(16px,env(safe-area-inset-left,0px));gap:8px}
  .tour-modal-name,.tour-modal-close-label{display:none}
  .tour-modal-crest{width:34px;height:34px}
  .tour-modal-book{min-height:40px;padding:8px 13px;font-size:.72rem;gap:10px}
  .tour-modal-close{width:40px;min-width:40px;min-height:40px;padding:0}
  .tour-modal-stage{padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media (max-width:340px){.tour-modal-book span{display:none}}
@media (prefers-reduced-motion:reduce){.tour-modal[open]{animation:none}.tour-loader-line::after{animation:none;width:100%;opacity:.6}.tour-modal-loader{transition:none}}

/* ---------- the page (/fr/visite-3d/, /en/3d-tour/) ---------- */
.tour-page-hero{position:relative;overflow:hidden;background:var(--deep);color:var(--cream);padding:calc(var(--header) + 26px) 0 clamp(54px,7vw,96px)}
.tour-page-hero .shell{position:relative;z-index:1}
.tour-page-hero .topography{opacity:.06}
.tour-crumbs{font-size:.74rem;letter-spacing:.04em;color:rgba(244,237,223,.6)}
.tour-crumbs a{color:rgba(244,237,223,.85);text-decoration:none;border-bottom:1px solid rgba(244,237,223,.3)}
.tour-crumbs a:hover{color:var(--sand)}
.tour-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px 48px;align-items:end;margin:18px 0 26px}
.tour-page-head .eyebrow{color:var(--sand)}
.tour-page-hero h1{font-size:clamp(2.5rem,4.4vw,4rem);max-width:none;margin:0 0 14px}
.tour-page-hero h1 em{display:inline}
.tour-page-hero .lede{color:rgba(244,237,223,.74);max-width:720px;margin:0;font-size:clamp(1rem,1.3vw,1.14rem)}
.tour-page-head-cta{display:grid;justify-items:end;gap:10px;padding-bottom:6px}
.tour-page-address{margin:0;font-size:.76rem;letter-spacing:.04em;color:rgba(244,237,223,.6)}
.tour-viewer{position:relative}
.tour-viewer-frame{position:relative;height:clamp(460px,calc(100vh - 150px),880px);overflow:hidden;border-radius:8px;background:#050f0b;box-shadow:0 30px 90px rgba(0,0,0,.4)}
.tour-viewer-frame>.tour-preview{height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none}
.tour-viewer-frame:fullscreen{height:100%;border-radius:0}
.tour-viewer-frame:-webkit-full-screen{height:100%;border-radius:0}
.tour-viewer-fs{display:inline-flex;align-items:center;gap:8px;margin:14px 0 0 auto;float:right;min-height:38px;padding:0 14px;border:1px solid rgba(244,237,223,.3);border-radius:2px;background:transparent;color:var(--cream);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer}
.tour-viewer-fs[hidden]{display:none}
.tour-viewer-fs:hover{background:rgba(255,255,255,.08)}
.tour-viewer::after{content:'';display:table;clear:both}
@media (max-width:899px),(hover:none) and (pointer:coarse){
  .tour-viewer-frame{height:auto;box-shadow:0 20px 60px rgba(0,0,0,.35)}
  .tour-viewer-frame>.tour-preview{height:auto;aspect-ratio:4/5}
}
@media (min-width:600px) and (max-width:899px){.tour-viewer-frame>.tour-preview{aspect-ratio:16/10}}
@media (max-width:760px){
  .tour-page-hero{padding-top:calc(var(--header) + 14px)}
  .tour-page-head{grid-template-columns:1fr;margin:18px 0 24px}
  .tour-page-head-cta{justify-items:start;order:3}
  .tour-page-head-cta .button{width:100%}
}

.tour-head{max-width:760px}
.tour-head h2{margin-bottom:0}
.tour-game .tour-head h2{margin-bottom:22px}
.tour-head .lede{max-width:56ch}
.tour-game .button-row{margin-top:30px}
.tour-area-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:44px}
.tour-area{display:flex;flex-direction:column;gap:12px;padding:28px 24px 26px;background:var(--white);border:1px solid var(--line);border-radius:4px}
.tour-area-kicker{margin:0;font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#9b6c3c}
.tour-area h3{margin:0;font-family:Fraunces,Georgia,serif;font-weight:400;font-size:clamp(1.45rem,2vw,1.75rem);line-height:1.08;letter-spacing:-.03em;color:var(--forest)}
.tour-area p{margin:0;line-height:1.55;color:rgba(21,54,44,.8)}
.tour-area-facts{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 0;padding:0}
.tour-area-facts li{padding:5px 10px;border:1px solid var(--line);border-radius:999px;font-size:.74rem;color:var(--ink)}
.tour-area .tour-text-link{margin-top:auto;align-self:flex-start;color:var(--forest)}
@media (max-width:1100px){.tour-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tour-area-grid{grid-template-columns:1fr;margin-top:32px}}

.tour-game-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(40px,6vw,90px);align-items:center}
.claim-strip.tour-claims{margin-top:0}
@media (min-width:761px){.claim-strip.tour-claims{grid-template-columns:1fr 1fr}}
@media (max-width:1023px){.tour-game-grid{grid-template-columns:1fr}}

/* Oct 25 — homepage 3D section made secondary (compact teaser card) */
.tour-section .tour-preview{box-shadow:0 16px 40px rgba(0,0,0,.26)}
.tour-section .tour-preview:focus:not(:focus-visible){outline:none}
@media (min-width:1024px){
  .tour-section .tour-grid{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
  .tour-section .tour-media{max-width:560px;justify-self:end;width:100%}
}
@media (max-width:760px){
  .tour-section{padding:52px 0 56px}
  .tour-section .tour-copy>h2{font-size:clamp(1.85rem,8.2vw,2.25rem);line-height:1.05}
  .tour-section .tour-copy>.lede{font-size:.98rem}
  .tour-section .tour-media{margin-top:20px}
  .tour-section .tour-preview{aspect-ratio:16/10;border-radius:4px}
  .tour-section .tour-preview img,.tour-section .tour-preview video{object-position:50% 46%}
  .tour-section .tour-preview::after{background:linear-gradient(0deg,rgba(3,20,15,.35) 0%,rgba(3,20,15,0) 40%)}
  .tour-section .tour-preview-cta{display:none}
  .tour-section .tour-copy>.tour-actions{display:flex;margin-top:16px;flex-direction:row;align-items:center;gap:10px}
  .tour-section .tour-actions .button{width:auto;flex:1 1 0;min-height:46px;padding:12px 10px;gap:10px;font-size:.8rem}
  .tour-section .tour-copy>.tour-meta{margin-top:14px}
}
@media (hover:none){.tour-section .tour-preview:focus-visible{outline:2px solid rgba(231,184,111,.45);outline-offset:3px}}
/* Oct 25 — homepage 3D section: close-up still (open bay) instead of the overview + orbit video */
.tour-section .tour-preview{background:#06150f url('../img/tour/bogeys-visite-3d-closeup-1440.webp') 50% 50%/cover no-repeat}
.tour-section .tour-preview picture,.tour-section .tour-preview-video{display:none}
@media (max-width:760px){.tour-section .tour-preview{background-image:url('../img/tour/bogeys-visite-3d-closeup-960.webp');background-position:30% 50%}}
.tour-section .tour-preview:hover{background-size:cover}
