/* ============================================================
   AYIRA MUSEUM — virtual-tours/show.css
   Thème adaptatif light / dark — icônes Font Awesome uniquement
   ============================================================ */

/* ── Variables thème sombre (défaut) ──────────────────────── */
:root {
    --vt-bg-card:        rgba(18, 12, 4, 0.96);
    --vt-bg-card-alt:    rgba(10, 7, 2, 0.97);
    --vt-bg-meta:        rgba(0, 0, 0, 0.35);
    --vt-bg-feature:     rgba(255, 255, 255, 0.03);
    --vt-bg-artwork:     rgba(255, 255, 255, 0.03);
    --vt-border:         rgba(243, 156, 18, 0.18);
    --vt-border-hover:   rgba(243, 156, 18, 0.7);
    --vt-text-primary:   rgba(255, 255, 255, 0.92);
    --vt-text-secondary: rgba(255, 255, 255, 0.62);
    --vt-text-muted:     rgba(255, 255, 255, 0.38);
    --vt-shadow:         0 24px 64px rgba(0, 0, 0, 0.7);
    --vt-shadow-hover:   0 32px 80px rgba(243, 156, 18, 0.22);
    --vt-orange:         #f39c12;
    --vt-gold:           #d4af37;
    --vt-green:          #27ae60;
    --vt-red:            #e74c3c;
    --vt-desc-border:    rgba(243, 156, 18, 0.5);
    --vt-desc-bg:        rgba(243, 156, 18, 0.04);
    --vt-neere-bg:       rgba(20, 14, 4, 0.97);
    --vt-neere-border:   rgba(243, 156, 18, 0.35);
    --vt-unlock-bg:      rgba(39, 174, 96, 0.10);
    --vt-unlock-border:  rgba(39, 174, 96, 0.35);
    --vt-unlock-color:   #2ecc71;
}

/* ── Surcharge thème clair ────────────────────────────────── */
body.light-theme {
    --vt-bg-card:        rgba(255, 255, 255, 0.98);
    --vt-bg-card-alt:    rgba(248, 245, 240, 0.99);
    --vt-bg-meta:        rgba(243, 156, 18, 0.06);
    --vt-bg-feature:     rgba(243, 156, 18, 0.04);
    --vt-bg-artwork:     rgba(0, 0, 0, 0.02);
    --vt-border:         rgba(243, 156, 18, 0.22);
    --vt-border-hover:   rgba(243, 156, 18, 0.8);
    --vt-text-primary:   #1a1208;
    --vt-text-secondary: #4a3820;
    --vt-text-muted:     #8a7060;
    --vt-shadow:         0 16px 48px rgba(0, 0, 0, 0.12);
    --vt-shadow-hover:   0 24px 64px rgba(243, 156, 18, 0.18);
    --vt-desc-border:    rgba(243, 156, 18, 0.6);
    --vt-desc-bg:        rgba(243, 156, 18, 0.06);
    --vt-neere-bg:       rgba(255, 252, 245, 0.99);
    --vt-neere-border:   rgba(243, 156, 18, 0.4);
    --vt-unlock-bg:      rgba(39, 174, 96, 0.07);
    --vt-unlock-border:  rgba(39, 174, 96, 0.3);
    --vt-unlock-color:   #1e8449;
}

/* ── Conteneur principal ──────────────────────────────────── */
.tour-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    min-height: calc(100vh - 200px);
}

/* ── Carte principale ─────────────────────────────────────── */
.tour-header {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--vt-shadow);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Hero image ───────────────────────────────────────────── */
.tour-hero-image {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #3d1c02 0%, #8b4513 50%, #f39c12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tour-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.6s ease;
}

.tour-header:hover .tour-hero-image img {
    transform: scale(1.03);
}

.tour-hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}

.tour-hero-placeholder i {
    font-size: 5rem;
    color: rgba(243, 156, 18, 0.5);
}

.tour-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    padding: 3.5rem 2.5rem 2rem;
    z-index: 2;
}

body.light-theme .tour-hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.tour-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    line-height: 1.2;
}

/* ── Contenu interne ──────────────────────────────────────── */
.tour-content {
    padding: 2.5rem;
}

/* ── Badges ───────────────────────────────────────────────── */
.tour-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.tour-badge i { font-size: 0.72rem; }

.tour-badge.badge-type {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
    color: var(--vt-orange);
}

.tour-badge.badge-featured {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(243, 156, 18, 0.12));
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--vt-gold);
}

.tour-badge.badge-free {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: var(--vt-green);
}

.tour-badge.badge-price {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--vt-text-secondary);
}

body.light-theme .tour-badge.badge-price {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.tour-badge.badge-neere {
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--vt-gold);
}

/* ── Méta informations ────────────────────────────────────── */
.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    padding: 1.4rem 1.8rem;
    background: var(--vt-bg-meta);
    border: 1px solid var(--vt-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--vt-text-secondary);
    transition: color 0.3s ease;
}

.tour-meta-item i {
    font-size: 0.8rem;
    color: var(--vt-orange);
    width: 16px;
    text-align: center;
}

.tour-meta-item strong {
    color: var(--vt-text-primary);
    font-weight: 600;
}

.tour-meta-item.meta-available i { color: var(--vt-green); }
.tour-meta-item.meta-available    { color: var(--vt-green); }

.tour-meta-item.meta-unlocked i { color: var(--vt-orange); }
.tour-meta-item.meta-unlocked   { color: var(--vt-orange); }

/* ── Banner accès débloqué ────────────────────────────────── */
.access-unlocked-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: var(--vt-unlock-bg);
    border: 1px solid var(--vt-unlock-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    color: var(--vt-unlock-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.access-unlocked-banner i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.access-unlocked-banner .banner-sub {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.65;
    margin-top: 0.15rem;
}

/* ── Description ──────────────────────────────────────────── */
.tour-description-block {
    margin: 2rem 0;
}

.tour-description-block h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--vt-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tour-description-block h3 i { font-size: 0.9rem; }

.tour-description-text {
    padding: 1.4rem 1.6rem;
    background: var(--vt-desc-bg);
    border-left: 3px solid var(--vt-desc-border);
    border-radius: 0 10px 10px 0;
    color: var(--vt-text-primary);
    line-height: 1.85;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* ── Caractéristiques ─────────────────────────────────────── */
.tour-features-block {
    margin: 2.5rem 0;
}

.tour-features-block h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--vt-orange);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.tour-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--vt-bg-feature);
    border: 1px solid var(--vt-border);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(12px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--vt-border-hover);
    background: rgba(243, 156, 18, 0.06);
    transform: translateY(-4px);
    box-shadow: var(--vt-shadow-hover);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(243, 156, 18, 0.10);
    border: 1px solid rgba(243, 156, 18, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
    transition: all 0.25s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(243, 156, 18, 0.18);
    border-color: rgba(243, 156, 18, 0.5);
}

.feature-icon i {
    font-size: 1.2rem;
    color: var(--vt-orange);
}

.feature-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--vt-text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.feature-text {
    font-size: 0.73rem;
    color: var(--vt-text-muted);
    line-height: 1.45;
}

/* ── Boutons d'action ─────────────────────────────────────── */
.tour-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-launch {
    flex: 1;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--vt-orange) 0%, #e67e22 100%);
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(243, 156, 18, 0.30);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-launch::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s;
}

.btn-launch:hover::before { left: 100%; }

.btn-launch:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(243, 156, 18, 0.45);
    color: #fff;
    text-decoration: none;
}

.btn-launch:disabled,
.btn-launch.disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-launch i { font-size: 0.95rem; }
.btn-launch .btn-ext-icon { font-size: 0.7rem; opacity: 0.65; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.8rem;
    background: transparent;
    color: var(--vt-text-secondary);
    border: 1px solid var(--vt-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-back:hover {
    border-color: var(--vt-border-hover);
    color: var(--vt-orange);
    background: rgba(243, 156, 18, 0.06);
    text-decoration: none;
    transform: translateX(-2px);
}

.btn-back i { font-size: 0.82rem; }

/* ── Panneau NEERE ────────────────────────────────────────── */
.neere-gate {
    background: var(--vt-neere-bg);
    border: 1px solid var(--vt-neere-border);
    border-radius: 18px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.neere-gate-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(243, 156, 18, 0.10);
    border: 1.5px solid rgba(243, 156, 18, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.neere-gate-icon-wrap i {
    font-size: 1.8rem;
    color: var(--vt-orange);
}

.neere-gate-title {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    color: var(--vt-orange);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.neere-gate-text {
    color: var(--vt-text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.neere-cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.10);
    border: 1.5px solid rgba(212, 175, 55, 0.40);
    color: var(--vt-gold);
    padding: 0.7rem 2rem;
    border-radius: 40px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.neere-cost-badge i { font-size: 1rem; }

.neere-balance-info {
    font-size: 0.83rem;
    color: var(--vt-text-muted);
    margin-bottom: 1.8rem;
}

.neere-balance-info strong { color: var(--vt-orange); }

.btn-unlock-neere {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.05rem 2.8rem;
    background: linear-gradient(135deg, var(--vt-orange), #e67e22);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(243, 156, 18, 0.30);
    transition: all 0.3s ease;
}

.btn-unlock-neere:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(243, 156, 18, 0.45);
}

.btn-unlock-neere:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login-to-unlock {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    background: transparent;
    border: 1.5px solid rgba(243, 156, 18, 0.45);
    color: var(--vt-text-secondary);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-login-to-unlock:hover {
    background: rgba(243, 156, 18, 0.08);
    color: var(--vt-orange);
    border-color: var(--vt-orange);
    text-decoration: none;
}

/* Spinner bouton */
.btn-spinner {
    display: none;
    width: 17px; height: 17px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.neere-tip {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--vt-text-muted);
}

.neere-tip a {
    color: var(--vt-orange);
    text-decoration: none;
}

.neere-tip a:hover { text-decoration: underline; }

/* ── Œuvres liées ─────────────────────────────────────────── */
.linked-artworks-block {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--vt-shadow);
    transition: all 0.3s ease;
}

.linked-artworks-block h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--vt-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.linked-artworks-block h3 i { font-size: 0.95rem; }

.linked-artworks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.9rem;
}

.linked-artwork-card {
    background: var(--vt-bg-artwork);
    border: 1px solid var(--vt-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
}

.linked-artwork-card:hover {
    border-color: var(--vt-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.18);
    text-decoration: none;
}

.linked-artwork-card img {
    width: 100%; height: 105px;
    object-fit: cover;
    display: block;
}

.art-placeholder {
    width: 100%; height: 105px;
    background: rgba(243, 156, 18, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-placeholder i {
    font-size: 2rem;
    color: rgba(243, 156, 18, 0.3);
}

.art-info {
    padding: 0.55rem 0.75rem;
}

.art-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vt-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes vt-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .tour-detail-container { padding: 1.5rem 1rem 4rem; }
    .tour-hero-image        { height: 260px; }
    .tour-hero-title        { font-size: 1.7rem; }
    .tour-content           { padding: 1.5rem; }
    .tour-actions           { flex-direction: column; }
    .btn-launch, .btn-back  { min-width: unset; justify-content: center; }
    .tour-meta              { gap: 1rem; padding: 1rem; }
    .linked-artworks-block  { padding: 1.5rem; }
    .neere-gate             { padding: 1.8rem 1.2rem; }
}