/* Visite guidée : page de choix (tour/home.html) et moteur (js/tour.js, sur toutes les pages) */
.tour-page{ max-width:760px; margin:0 auto; padding:24px 16px 56px; }
.tour-intro{ text-align:center; margin-bottom:24px; }
.tour-logo{ width:64px; height:64px; margin-bottom:8px; }
.tour-intro h1{ font-size:1.8rem; margin:0 0 6px; color:var(--ink); }
.tour-intro p{ color:var(--muted); margin:0; }

.tour-choices{ display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; }
.tour-choice{
    display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
    padding:28px 22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface);
    box-shadow:var(--shadow-card); color:var(--ink-2); text-decoration:none; transition:.15s;
}
.tour-choice:hover, .tour-choice:focus-visible{ border-color:var(--primary); box-shadow:var(--shadow-pop); transform:translateY(-2px); }
.tour-choice-icon{ font-size:2.6rem; line-height:1; }
.tour-choice strong{ font-size:1.15rem; color:var(--ink); }
.tour-choice-meta{ margin-top:4px; color:var(--primary); font-weight:700; font-size:.9rem; }
.tour-back{ text-align:center; margin-top:24px; }
.tour-back a{ color:var(--primary); font-weight:600; text-decoration:none; }

/* ----- Moteur ----- */
.mp-tour-shade{ position:fixed; inset:0; z-index:9000; background:rgba(15,23,42,.55); }
.mp-tour-spot{
    position:absolute; z-index:9000; border-radius:14px; pointer-events:none;
    box-shadow:0 0 0 3px var(--primary), 0 0 0 9999px rgba(15,23,42,.55);
    transition:top .25s, left .25s, width .25s, height .25s;
}
.mp-tour-pop{
    position:absolute; z-index:9001; width:min(380px, calc(100vw - 32px)); padding:20px 20px 16px;
    background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow-pop); color:var(--ink-2);
    animation:mp-tour-in .2s ease;
}
.mp-tour-pop.is-center{ position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); }
.mp-tour-pop.is-sheet{
    position:fixed; top:auto; left:0; right:0; bottom:0; width:auto; border-radius:18px 18px 0 0;
    padding:18px 16px calc(14px + env(safe-area-inset-bottom));
}
@keyframes mp-tour-in{ from{ opacity:0; } to{ opacity:1; } }
.mp-tour-close{
    position:absolute; top:8px; right:10px; width:32px; height:32px; border:0; border-radius:50%;
    background:transparent; color:var(--muted); font-size:1.5rem; line-height:1; cursor:pointer;
}
.mp-tour-close:hover{ background:var(--surface-3); color:var(--ink); }
.mp-tour-count{ margin:0 0 4px; color:var(--primary); font-size:.8rem; font-weight:800; letter-spacing:.04em; }
.mp-tour-title{ margin:0 0 8px; padding-right:28px; font-size:1.15rem; color:var(--ink); outline:none; }
.mp-tour-text{ margin:0 0 14px; font-size:.95rem; line-height:1.5; }
.mp-tour-bar{ height:4px; border-radius:4px; background:var(--surface-3); margin-bottom:14px; overflow:hidden; }
.mp-tour-bar span{ display:block; height:100%; background:var(--primary); transition:width .3s; }
.mp-tour-nav{ display:flex; justify-content:space-between; gap:10px; }
.mp-tour-nav .btn:disabled{ opacity:.4; cursor:default; }

.mp-tour-banner{
    position:fixed; z-index:9001; left:50%; bottom:16px; transform:translateX(-50%);
    display:flex; align-items:center; flex-wrap:wrap; justify-content:center; gap:10px;
    width:max-content; max-width:calc(100vw - 32px); padding:10px 14px;
    background:var(--surface); border:1px solid var(--primary-border); border-radius:var(--radius);
    box-shadow:var(--shadow-pop); font-weight:600; color:var(--ink);
}

@media (max-width:640px){
    .tour-choices{ grid-template-columns:1fr; }
    .tour-intro h1{ font-size:1.45rem; }
}
