:root {
    --header-height: 70px;
    --footer-height: 60px;
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    /* Pour éviter le saut d'interface sur navigateurs mobiles (iOS Safari, Android Chrome) */
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
#site-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 20;
}

#site-header h1 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Menu desktop */
#project-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.dropdown {
    position: relative;
}

#project-nav .nav-category {
    font-size: 0.85rem;
    color: #999;
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    gap: 0.6rem;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.dropdown:hover .submenu {
    display: flex;
}

.submenu a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.submenu a:hover {
    color: #fff;
}

/* Canvas Container (Responsive Centering) */
#canvas-container {
    flex: 1;
    width: 100%;
    height: calc(100dvh - var(--header-height) - var(--footer-height));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    touch-action: none; /* Empêche le scroll tactile sur le canvas */
}

/* Footer Responsive */
#site-footer {
    height: var(--footer-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: #888;
    z-index: 20;
}

.artwork-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}

#artwork-title {
    color: #fff;
    font-weight: 500;
}

/* Adaptations Smartphones & Tablettes Portrait */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --footer-height: 75px;
    }

    #site-header {
        padding: 0 1rem;
    }

    /* Le menu passe en déroulant simplifié ou empilé */
    #project-nav ul {
        gap: 1rem;
    }

    .submenu {
        right: auto;
        left: 0;
    }

    #site-footer {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.6rem 1rem;
    }

    .navigation-hints {
        font-size: 0.75rem;
        opacity: 0.7;
    }
}
