/* Import de la police NORD Light - Les chemins seront gérés par le template */
@font-face {
    font-family: 'NORD';
    src: url('../fonts/NORD-Light.eot');
    src: url('../fonts/NORD-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts/NORD-Light.woff2') format('woff2'),
        url('../fonts/NORD-Light.woff') format('woff'),
        url('../fonts/NORD-Light.svg#NORD-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

#porsche3dviewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Exactement 100vh pour que le contenu soit en dessous */
    background: transparent;
    /* Fond transparent */
}

#porsche3dviewer-container * {
    box-sizing: border-box;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    /* Z-index élevé pour être au-dessus du contenu */
    background: transparent;
    /* Fond transparent */
    pointer-events: auto;
    /* Actif pendant les animations */
    transition: opacity 0.5s ease, z-index 0s 0.5s;
    /* Transition pour disparition */
}

#canvas-container.viewer-completed {
    opacity: 0;
    /* Devient transparent */
    pointer-events: none;
    /* N'intercepte plus les clics/scroll */
    z-index: -1;
    /* Passe derrière le contenu */
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 50px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

#loading h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

#progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 10px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#controls {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    max-width: 300px;
    z-index: 10;
    transition: opacity 0.5s ease;
    /* Transition pour disparition */
}

#controls h3 {
    margin-bottom: 15px;
    color: #667eea;
}

#controls p {
    margin: 8px 0;
    line-height: 1.6;
}

#credits {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.5s ease;
    /* Transition pour disparition */
    font-size: 12px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    z-index: 10;
}

#credits a {
    color: #667eea;
    text-decoration: none;
}

#credits a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

#scroll-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

#scroll-indicator.visible {
    opacity: 1;
    animation: bounce 2s infinite;
}