/* ==========================================================================
   CHRISTELLE SOBREVIA — Painting Detail Page
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.tableau-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.tableau-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.tableau-hero-content {
    position: relative;
    z-index: 3;
    padding: 50px;
    width: 100%;
}

.tableau-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.5);
    margin-bottom: 25px;
    transition: color 0.3s;
}

.tableau-back-link:hover {
    color: #f5f0eb;
}

.back-arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.tableau-back-link:hover .back-arrow {
    transform: translateX(-4px);
}

.tableau-hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
    max-width: 800px;
}

.tableau-hero-year {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 5px;
    color: rgba(245, 240, 235, 0.6);
}

/* ==========================================================================
   VIEWER
   ========================================================================== */
.tableau-viewer {
    padding: 80px 50px;
    background: #0d0d0d;
}

.viewer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.viewer-main {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    cursor: default;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.viewer-fullscreen-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 240, 235, 0.15);
    color: rgba(245, 240, 235, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.viewer-fullscreen-btn:hover {
    background: rgba(10, 10, 10, 0.85);
    color: #f5f0eb;
    border-color: rgba(245, 240, 235, 0.3);
}

/* --- Detail Thumbnails Row --- */
.viewer-details-row {
    display: flex;
    gap: 14px;
    margin-top: 25px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.detail-thumb {
    flex: none;
    width: 170px;
    position: relative;
    height: 110px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}

.detail-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
}

.detail-thumb:hover {
    border-color: rgba(245, 240, 235, 0.3);
    transform: translateY(-2px);
}

.detail-thumb-bg {
    position: absolute;
    inset: 0;
    background-size: 300%;
    background-repeat: no-repeat;
    transition: transform 0.5s;
}

.detail-thumb:hover .detail-thumb-bg {
    transform: scale(1.08);
}

.detail-thumb-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 2;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.85);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.tableau-about {
    padding: 100px 50px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(245, 240, 235, 0.06);
}

.meta-block {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.35);
    margin-bottom: 12px;
}

.meta-value {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: rgba(245, 240, 235, 0.85);
    letter-spacing: 0.5px;
}

.about-story .section-header {
    margin-bottom: 50px;
    opacity: 1;
    transform: none;
}

.story-text {
    max-width: 750px;
    margin: 0 auto;
}

.story-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(245, 240, 235, 0.65);
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   ACQUIRE CTA
   ========================================================================== */
.tableau-acquire {
    padding: 80px 50px;
    background: #0d0d0d;
    text-align: center;
}

.acquire-container {
    max-width: 600px;
    margin: 0 auto;
}

.acquire-container .section-header {
    margin-bottom: 20px;
    opacity: 1;
    transform: none;
}

.acquire-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 240, 235, 0.45);
    margin-bottom: 35px;
}

.acquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #0a0a0a;
    background: #f5f0eb;
    border: none;
    border-radius: 3px;
    padding: 18px 45px;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
}

.acquire-btn:hover {
    background: rgba(245, 240, 235, 0.85);
    transform: translateY(-2px);
}

.acquire-btn svg {
    opacity: 0.6;
}

/* ==========================================================================
   PAINTING NAVIGATION
   ========================================================================== */
.tableau-nav {
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(245, 240, 235, 0.06);
}

.tableau-nav-link {
    flex: 1;
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.3s;
}

.tableau-nav-link:hover {
    background: rgba(245, 240, 235, 0.03);
}

.tableau-nav-link.next {
    align-items: flex-end;
    text-align: right;
    border-left: 1px solid rgba(245, 240, 235, 0.06);
}

.tableau-nav-center {
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 35px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.35);
    border-left: 1px solid rgba(245, 240, 235, 0.06);
    transition: color 0.3s;
}

.tableau-nav-center:hover {
    color: rgba(245, 240, 235, 0.7);
}

.nav-arrow {
    font-size: 20px;
    color: rgba(245, 240, 235, 0.4);
    transition: transform 0.3s;
}

.tableau-nav-link.prev:hover .nav-arrow {
    transform: translateX(-4px);
}

.tableau-nav-link.next:hover .nav-arrow {
    transform: translateX(4px);
}

.nav-direction {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.35);
}

.nav-painting-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.75);
    margin-top: 2px;
}

/* ==========================================================================
   EXPLORE BUTTON
   ========================================================================== */
.viewer-explore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 25px;
    padding: 20px 30px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f5f0eb;
    background: rgba(245, 240, 235, 0.04);
    border: 1px solid rgba(245, 240, 235, 0.12);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s;
}

.viewer-explore-btn:hover {
    background: rgba(245, 240, 235, 0.1);
    border-color: rgba(245, 240, 235, 0.3);
    transform: translateY(-2px);
}

.viewer-explore-btn svg {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.viewer-explore-btn:hover svg {
    opacity: 1;
}

/* ==========================================================================
   EXPLORER MODE (FULL PAGE)
   ========================================================================== */
.explorer {
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: #050505;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.explorer.active {
    opacity: 1;
    visibility: visible;
}

/* --- Explorer Header --- */
.explorer-header {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    border-bottom: 1px solid rgba(245, 240, 235, 0.06);
    flex-shrink: 0;
}

.explorer-close {
    background: none;
    border: none;
    color: rgba(245, 240, 235, 0.5);
    font-size: 30px;
    font-family: 'Archivo', sans-serif;
    font-weight: 200;
    cursor: pointer;
    padding: 0 15px 0 0;
    line-height: 1;
    transition: all 0.3s;
}

.explorer-close:hover {
    color: #f5f0eb;
}

.explorer-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.7);
}

.explorer-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.explorer-guide-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.6);
    background: rgba(245, 240, 235, 0.05);
    border: 1px solid rgba(245, 240, 235, 0.12);
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.explorer-guide-btn:hover {
    background: rgba(245, 240, 235, 0.1);
    color: #f5f0eb;
    border-color: rgba(245, 240, 235, 0.3);
}

.explorer-guide-btn .guide-icon-pause { display: none; }
.explorer.guide-active .explorer-guide-btn .guide-icon-play { display: none; }
.explorer.guide-active .explorer-guide-btn .guide-icon-pause { display: block; }

.explorer.guide-active .explorer-guide-btn {
    background: rgba(245, 240, 235, 0.12);
    border-color: rgba(245, 240, 235, 0.3);
    color: #f5f0eb;
}

.explorer-counter {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(245, 240, 235, 0.35);
}

/* --- Explorer Body (sidebar + viewport) --- */
.explorer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* --- Explorer Sidebar --- */
.explorer-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid rgba(245, 240, 235, 0.06);
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-title {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.25);
    padding: 12px 20px 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.25s;
    border-left: 2px solid transparent;
}

.sidebar-item:hover {
    background: rgba(245, 240, 235, 0.03);
}

.sidebar-item.active {
    background: rgba(245, 240, 235, 0.05);
    border-left-color: rgba(245, 240, 235, 0.5);
}

.sidebar-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: rgba(245, 240, 235, 0.35);
    border: 1px solid rgba(245, 240, 235, 0.1);
    border-radius: 50%;
    transition: all 0.25s;
}

.sidebar-item.active .sidebar-num {
    color: #f5f0eb;
    border-color: rgba(245, 240, 235, 0.4);
    background: rgba(245, 240, 235, 0.08);
}

.sidebar-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(245, 240, 235, 0.5);
    letter-spacing: 0.3px;
    line-height: 1.4;
    transition: color 0.25s;
}

.sidebar-item:hover .sidebar-label {
    color: rgba(245, 240, 235, 0.75);
}

.sidebar-item.active .sidebar-label {
    color: #f5f0eb;
    font-weight: 500;
}

/* --- Explorer Viewport --- */
.explorer-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.explorer-painting {
    position: relative;
    display: inline-block;
    line-height: 0;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    cursor: crosshair;
}

.explorer-painting img {
    max-width: calc(88vw - 250px);
    max-height: calc(100vh - 160px);
    object-fit: contain;
    display: block;
    border-radius: 2px;
    user-select: none;
    -webkit-user-select: none;
}

.explorer-painting.zoomed {
    transform: scale(3.2);
    cursor: zoom-out;
}

/* --- Hotspot Markers --- */
.explorer-hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.explorer-painting.zoomed .explorer-hotspots {
    opacity: 0;
}

.explorer-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
}

.explorer-hotspot .hotspot-dot {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(245, 240, 235, 0.2);
    border: 2px solid rgba(245, 240, 235, 0.75);
    transition: all 0.3s;
    box-shadow: 0 0 12px rgba(245, 240, 235, 0.12);
}

.explorer-hotspot:hover .hotspot-dot {
    background: rgba(245, 240, 235, 0.45);
    transform: scale(1.15);
    box-shadow: 0 0 22px rgba(245, 240, 235, 0.3);
}

.explorer-hotspot .hotspot-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 235, 0.2);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.6); opacity: 0; }
}

/* Hotspot Tooltip */
.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 7px 16px;
    border-radius: 4px;
    border: 1px solid rgba(245, 240, 235, 0.08);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.85);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(10, 10, 10, 0.92);
}

.explorer-hotspot:hover .hotspot-tooltip {
    opacity: 1;
}

/* --- Explorer Bottom Bar --- */
.explorer-bottom {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    border-top: 1px solid rgba(245, 240, 235, 0.06);
    flex-shrink: 0;
    min-height: 60px;
}

.explorer-bottom-left {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.explorer-nav-btn {
    background: rgba(245, 240, 235, 0.05);
    border: 1px solid rgba(245, 240, 235, 0.1);
    border-radius: 4px;
    color: rgba(245, 240, 235, 0.5);
    width: 40px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.explorer-nav-btn:hover {
    background: rgba(245, 240, 235, 0.1);
    color: #f5f0eb;
    border-color: rgba(245, 240, 235, 0.25);
}

.explorer-bottom-center {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    min-width: 0;
}

.explorer-hint {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.3);
}

.explorer-narration {
    display: none;
}

.explorer-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.8);
    margin-bottom: 4px;
}

.explorer-story-text {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245, 240, 235, 0.5);
    margin: 0;
    max-width: 600px;
    display: inline-block;
}

.explorer.zoomed-in .explorer-hint { display: none; }
.explorer.zoomed-in .explorer-narration { display: block; }

.explorer-bottom-right {
    display: flex;
    flex-shrink: 0;
}

.explorer-reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.45);
    background: rgba(245, 240, 235, 0.04);
    border: 1px solid rgba(245, 240, 235, 0.08);
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.explorer.zoomed-in .explorer-reset-btn {
    opacity: 1;
    pointer-events: auto;
}

.explorer-reset-btn:hover {
    background: rgba(245, 240, 235, 0.1);
    color: #f5f0eb;
    border-color: rgba(245, 240, 235, 0.2);
}

/* ==========================================================================
   AR BUTTON (viewer section)
   ========================================================================== */
.viewer-ar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 16px 30px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.45);
    background: rgba(245, 240, 235, 0.02);
    border: 1px solid rgba(245, 240, 235, 0.07);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s;
}

.viewer-ar-btn:hover {
    color: #f5f0eb;
    background: rgba(245, 240, 235, 0.06);
    border-color: rgba(245, 240, 235, 0.2);
    transform: translateY(-2px);
}

.viewer-ar-btn svg {
    opacity: 0.45;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.viewer-ar-btn:hover svg {
    opacity: 0.9;
}

/* ==========================================================================
   AR OVERLAY
   ========================================================================== */
.ar-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
    background: #050505;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ar-overlay-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 25px;
    border-bottom: 1px solid rgba(245, 240, 235, 0.06);
    flex-shrink: 0;
}

.ar-overlay-close {
    background: none;
    border: none;
    color: rgba(245, 240, 235, 0.5);
    font-size: 30px;
    font-family: 'Archivo', sans-serif;
    font-weight: 200;
    cursor: pointer;
    padding: 0 10px 0 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.3s;
}

.ar-overlay-close:hover {
    color: #f5f0eb;
}

.ar-overlay-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.7);
}

.ar-overlay-info {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(245, 240, 235, 0.25);
}

#arModelViewer {
    flex: 1;
    width: 100%;
    background: #0a0a0a;
    --poster-color: transparent;
}

.ar-native-btn {
    background: #f5f0eb;
    color: #0a0a0a;
    border: none;
    border-radius: 3px;
    padding: 14px 32px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: background 0.3s;
    white-space: nowrap;
}

.ar-native-btn:hover {
    background: rgba(245, 240, 235, 0.85);
}

@media (max-width: 768px) {
    .ar-overlay-info { display: none; }
    .ar-overlay-header { padding: 12px 18px; }
    .ar-overlay-title { font-size: 11px; letter-spacing: 2px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .about-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tableau-hero {
        height: 50vh;
    }

    .tableau-hero-content {
        padding: 30px 25px;
    }

    .tableau-viewer {
        padding: 40px 18px;
    }

    .viewer-details-row {
        gap: 10px;
    }

    .detail-thumb {
        width: 130px;
        height: 80px;
    }

    .detail-thumb-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .tableau-about {
        padding: 60px 25px;
    }

    .about-meta {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .tableau-contact {
        padding: 60px 18px;
    }

    .form-row {
        flex-direction: column;
    }

    .tableau-nav {
        flex-direction: column;
    }

    .tableau-nav-link {
        padding: 30px 25px;
    }

    .tableau-nav-link.next {
        border-left: none;
        border-top: 1px solid rgba(245, 240, 235, 0.06);
    }

    .tableau-nav-center {
        padding: 20px 25px;
        justify-content: center;
        border-left: none;
        border-top: 1px solid rgba(245, 240, 235, 0.06);
    }

    /* --- Explorer : sidebar masquée --- */
    .explorer-sidebar {
        display: none;
    }

    /* --- Explorer : header compact --- */
    .explorer-header {
        padding: 11px 16px;
        gap: 8px;
        min-height: 50px;
    }

    .explorer-title {
        font-size: 11px;
        letter-spacing: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .explorer-guide-btn {
        padding: 7px 12px;
        gap: 0;
    }

    .explorer-guide-btn .guide-btn-text {
        display: none;
    }

    .explorer-counter {
        font-size: 10px;
    }

    /* --- Explorer : viewport --- */
    .explorer-viewport {
        padding: 10px;
    }

    .explorer-painting img {
        max-width: 96vw;
        max-height: calc(100vh - 120px);
    }

    /* --- Explorer : barre inférieure
         Ordre : narration en haut, contrôles en bas --- */
    .explorer-bottom {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 0;
        min-height: auto;
        align-items: center;
    }

    /* Narration / hint : ligne du haut, pleine largeur */
    .explorer-bottom-center {
        order: 1;
        width: 100%;
        text-align: left;
        padding: 5px 0 10px;
        border-bottom: 1px solid rgba(245, 240, 235, 0.06);
        margin-bottom: 10px;
    }

    /* Prev / Next : ligne du bas à gauche */
    .explorer-bottom-left {
        order: 2;
        flex: 1;
    }

    /* Reset : ligne du bas à droite */
    .explorer-bottom-right {
        order: 2;
    }

    /* Narration : texte lisible, scrollable si long */
    .explorer-detail-label {
        font-size: 13px;
        letter-spacing: 2px;
        margin-bottom: 4px;
    }

    .explorer-story-text {
        font-size: 13px;
        line-height: 1.55;
        display: block;
        max-width: 100%;
        max-height: 56px;
        overflow-y: auto;
    }

    .explorer-hint {
        font-size: 10px;
    }

    /* Boutons prev/next : zone de tap 48×44 px */
    .explorer-nav-btn {
        width: 48px;
        height: 44px;
    }

    /* Reset : toujours visible (meilleure UX tactile) */
    .explorer-reset-btn {
        opacity: 1;
        pointer-events: auto;
        padding: 8px 14px;
        font-size: 9px;
    }

    /* Hotspots : zone de tap 44×44 px, point visuel centré */
    .explorer-hotspot {
        width: 44px;
        height: 44px;
    }

    .explorer-hotspot .hotspot-dot {
        inset: 12px; /* point visuel ~20px au centre du carré 44px */
    }

    .explorer-hotspot .hotspot-ring {
        inset: 10px;
    }

    /* Tooltips hotspot : masqués sur mobile (superposition gênante) */
    .hotspot-tooltip {
        display: none;
    }

    /* Thumbnails : scroll tactile fluide */
    .viewer-details-row {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .detail-thumb {
        scroll-snap-align: start;
    }

    .viewer-explore-btn {
        font-size: 10px;
        letter-spacing: 3px;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .tableau-hero {
        height: 45vh;
    }

    .tableau-hero-title {
        font-size: 1.6rem;
    }

    .about-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-text p {
        font-size: 14px;
    }

    /* Zoom réduit sur très petit écran */
    .explorer-painting.zoomed {
        transform: scale(2.2);
    }

    .explorer-counter {
        display: none;
    }

    .explorer-header {
        padding: 9px 14px;
    }

    .explorer-bottom {
        padding: 8px 14px;
    }

    .explorer-detail-label {
        font-size: 12px;
    }

    .explorer-story-text {
        font-size: 12px;
        max-height: 48px;
    }

    .detail-thumb {
        width: 110px;
        height: 68px;
    }
}

/* Orientation paysage sur mobile :
   barre inférieure en une seule ligne pour maximiser la surface de l'image */
@media (max-height: 450px) and (orientation: landscape) {
    .explorer-header {
        padding: 7px 16px;
        min-height: 38px;
    }

    .explorer-title {
        font-size: 10px;
    }

    .explorer-guide-btn {
        padding: 5px 10px;
    }

    .explorer-viewport {
        padding: 6px;
    }

    .explorer-painting img {
        max-height: calc(100vh - 84px);
    }

    /* Barre inférieure : une seule ligne en paysage */
    .explorer-bottom {
        flex-wrap: nowrap;
        padding: 6px 16px;
        min-height: 40px;
        gap: 8px;
        align-items: center;
    }

    .explorer-bottom-center {
        order: 2;
        width: auto;
        flex: 1;
        padding: 0 12px;
        border-bottom: none;
        margin-bottom: 0;
        text-align: center;
    }

    .explorer-bottom-left { order: 1; flex: none; }
    .explorer-bottom-right { order: 3; }

    .explorer-nav-btn {
        width: 38px;
        height: 34px;
    }

    .explorer-detail-label {
        font-size: 11px;
    }

    .explorer-story-text {
        font-size: 11px;
        max-height: 28px;
    }

    .explorer-hint {
        font-size: 9px;
    }
}
