/* 
 * Vitruve 3D – Styles pour Inca3D (c) 2025
 * Tous droits réservés – Reproduction interdite sans autorisation.
 */
html,
body {

    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Futura', 'Futura Book', sans-serif !important;
    background: #ffffff !important;


}

/* Overlay d’atténuation 
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(192, 180, 162, 0.6);
    z-index: 0;
    pointer-events: none;
}
*/

.col-lg-5th {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 auto;
        width: 20%;
        max-width: 20%;
    }
}

.row>.col-lg-5th {
    flex: 0 0 auto;
    width: 20%;
    max-width: 20%;
}


/**************************************
Header
***************************************/
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #4F6761;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.app-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.app-title {
    font-size: 1.8em;
    font-weight: 300;
    font-family: "Futura Book", sans-serif;
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 1.2em;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.app-subtitle-mobile {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
}

#search-input {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    width: 220px;
    background-color: #f1f1f1;
    color: #333;
    outline: none;
}

/*****************************************
Content
******************************************/
#main-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-top: 125px;
    padding-bottom: 50px;
}

/*****************************************
footer
*****************************************/
#main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background:#4F6761;
    color: #ddd;
    font-size: 0.9em;
    font-family: "Futura Book", sans-serif;
    display: flex;
    justify-content: flex-start;
    padding-left: 24px;
    padding-right: 24px;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
}

.footer-left {
    margin-right: auto;
}

.footer-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.footer-left,
.footer-right {
    padding: 0 6px;
}

.footer-right a {
    color: #ccc;
    text-decoration: none;
    margin-left: 8px;
    transition: text-decoration 0.2s ease;
}

.footer-right a:hover {
    color: #ccc;
    /* 👈 force la couleur à rester grise */
    text-decoration: underline;
}

/*************************************
Crédits et copyright
*************************************/
#copyright-container {
    margin: 20px;
    font-family: "Futura Book", sans-serif;
    color: white;
    font-size: 1em;
}

#copyright-title {
    text-align: center;
    font-size: 1.8em;
    font-weight: 400;
}

#copyright-container h2 {
    font-size: 1.4em;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
}

#copyright-container p {
    font-size: 1em;
    font-weight: 100;
    text-align: justify;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.3;
}


/*************************************
sliders
*************************************/
.inca-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #ffffff;
    border-radius: 3px;
    outline: none;
}

.inca-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
}

.inca-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: -6px;
    appearance: none;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle,
            #ffffff 0%,
            #b0c4c8 30%,
            #6b8085 60%,
            #3a4a50 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.inca-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle,
            #ffffff 0%,
            #b0c4c8 30%,
            #6b8085 60%,
            #3a4a50 100%);
    border-radius: 50%;
    border: 1px solid #3a4a50;
    cursor: pointer;
    transition: background 0.3s ease;
}

.inca-slider::-ms-thumb {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle,
            #ffffff 0%,
            #b0c4c8 30%,
            #6b8085 60%,
            #3a4a50 100%);
    border-radius: 50%;
    border: 1px solid #3a4a50;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* 🟢 Webkit (Chrome, Safari) */
.inca-slider:hover::-webkit-slider-thumb {
    box-shadow: 0 0 10px 3px rgba(173, 216, 230, 0.6);
    /* bleu clair léger */
    background: radial-gradient(circle,
            #ffffff 0%,
            #cde5f0 30%,
            #7aaab5 60%,
            #3a4a50 100%);
}

/* 🟠 Firefox */
.inca-slider:hover::-moz-range-thumb {
    box-shadow: 0 0 10px 3px rgba(173, 216, 230, 0.6);
    background: radial-gradient(circle,
            #ffffff 0%,
            #cde5f0 30%,
            #7aaab5 60%,
            #3a4a50 100%);
}

/* 🟣 Edge (ancien) */
.inca-slider:hover::-ms-thumb {
    box-shadow: 0 0 10px 3px rgba(173, 216, 230, 0.6);
    background: radial-gradient(circle,
            #ffffff 0%,
            #cde5f0 30%,
            #7aaab5 60%,
            #3a4a50 100%);
}

.inca-slider:hover::-webkit-slider-runnable-track {
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.3);
}

.inca-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#poiSizeValue.disabled {
    opacity: 0.4;
}

/****************************************
page des vignettes 3D
*****************************************/
.row {
    display: flex;
    flex-wrap: wrap;
}

.container-fluid,
.row {
    position: relative;
    z-index: 1;
}

.miniature-3d {
    aspect-ratio: 4/3;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: rgba(47, 72, 80, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: white;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.miniature-3d:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.6);
}

.miniature-3d:hover .thumbnail {
    transform: scale(1);
    filter: brightness(1.05) contrast(1.05);
}

.miniature-3d:hover .model-title {
    /*   text-shadow: 0 2px 4px rgba(38, 58, 75, 0.5); */
}

.model-loader {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
}

.thumbnail-wrapper {
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    width: 100%;
    height: 75%;
    /* 🔧 contrôle la hauteur dédiée à l’image */
    display: block;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.3);
    border-radius: 4px 4px 0 0;
    display: block;
    transform: scale(1.2);
    /* ✅ zoom par défaut */
    transition: transform 0.5s ease;
    transform-origin: center center;
    filter: brightness(1) contrast(1);

}

.miniature-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    gap: 0px;
    text-align: center;
    background: rgba(103, 142, 143, 0.7);
}


.model-title {
    margin: 0;
    font-weight: 100;
    font-size: 1.0em;
    margin-bottom: 0px;
    /* ↓ encore plus serré */
}


.model-comment {
    font-size: 1em;
    font-style: normal;
    text-align: justify;
    display: none;
}

.model-bottom {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    font-size: 0.9em;
    line-height: 1.2;
    opacity: 0.9;
}

.model-meta-top {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.model-meta {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.model-meta-top,
.model-meta {
    margin: 0;
    padding: 0;
    line-height: 1.1;
    /* resserre la hauteur du texte */
}

.model-auteur::after {
    content: ",";
}

.model-auteur,
.model-annee {
    display: inline;
}



.model-auteur::after {
    content: ", ";
}

.model-auteur::before {
    content: "© ";
}

/***************************************
Pannel d'outils de la scene
*****************************************/
.inca3d-tools-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(64, 98, 109, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 999;
    font-size: 14px;
    pointer-events: auto;
    opacity: 0.4;
    width: 180px;
    height: 50px;
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tools-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 100%;
    overflow-y: auto;
}

.tools-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.tools-section label {
    font-size: 0.9em;
    font-weight: 500;
    color: #f0f0f0;
}

.tools-section input[type="range"] {
    width: 100%;
}

.tools-section span {
    font-size: 0.85em;
    color: #ccc;
    align-self: flex-end;
}

/* ✅ Expansion via clic */
.inca3d-tools-panel.expanded,
.inca3d-tools-panel:hover:not(.expanded) {
    opacity: 1;
    background: rgba(64, 98, 109, 0.5);
    width: 350px;
    height: 600px;
}

/* ✅ Titre */
.inca3d-tools-panel h4 {
    font-size: 1.3em;
    margin: 0 0 10px 0;
}

/* ✅ Conteneur des outils */
.tools-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px;
    margin-top: 10px;
}

/* ✅ Uniformiser les sliders, labels, fieldsets */
.tools-content label,
.tools-content input[type="range"],
.tools-content fieldset,
.tools-content span {
    flex-shrink: 0;
}

/* ✅ Fieldsets propres */
.tools-content fieldset {
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px;
}

/* ✅ Input range plus lisibles */
.tools-content input[type="range"] {
    width: 100%;
    margin: 4px 0;
}

/* ✅ Bouton toggle */
#toggleTools {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
}

/* ✅ Scrollbar stylée (optionnel) */
.tools-content::-webkit-scrollbar {
    width: 6px;
}

.tools-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.hillshade-panel {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #fff;
}

.hillshade-panel fieldset {
    border: 1px solid #666;
    border-radius: 4px;
    padding: 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hillshade-panel label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.hillshade-panel input[type="range"] {
    width: 100%;
}

/***************************************
Panneau d'informations du modèle
*****************************************/
.inca3d-info-panel {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(64, 98, 109, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 998;
    font-size: 14px;
    pointer-events: auto;
    opacity: 0.4;
    width: 400px;
    height: 80px;
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease;
}

/* 📦 Expansion fixe */
.inca3d-info-panel.expanded {
    opacity: 1;
    background: rgba(64, 98, 109, 0.5);
    width: 600px;
    height: auto;
    /* 👈 Auto-adaptatif */
    max-height: 400px;
    overflow-y: auto;
}

/* 📦 Survol temporaire */
.inca3d-info-panel:not(.expanded):hover {
    opacity: 1;
    background: rgba(64, 98, 109, 0.4);
    width: 600px;
    height: auto;
    max-height: 400px;
    overflow-y: auto;
}

/* 🧩 Titre & bouton */
.inca3d-info-panel h4 {
    font-size: 1.3em;
    margin: 0;
}

.inca3d-info-panel button {
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.inca3d-info-panel button:hover {
    color: #ddd;
}

/* 🧾 Contenu défilable */
.inca3d-info-panel .info-content {
    margin-top: 5px;
}

.inca3d-info-panel .info-content p {
    margin-bottom: 10px;
    text-align: justify;
}



/**********************************
Berre d'échelle
***********************************/
.inca3d-scale-bar {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: white;
    font-size: 12px;
    z-index: 1000;
    text-align: center;
    pointer-events: none;
}

.inca3d-scale-bar .scale-bar-line {
    height: 2px;
    background: white;
    margin-top: 4px;
    transition: width 0.2s ease;
}


/************************************
Gestion des lumières
*************************************/

#lights-toolbar {
    position: absolute;
    display: block;
    top: 0x;
    left: 0px;
    z-index: 100;
    color: rgb(255, 255, 255);
    background: none;
    padding: 10px;
    margin: 0px;
    border-radius: 5px;
    width: auto;
    height: fit-content;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5em;
    pointer-events: auto;
    border: none;
}

#lights-toolbar h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

#lights-toolbar h4 {
    font-size: 13px;
    margin: 10px 0 5px;
}

#lights-toolbar label {
    display: inline-block;
    width: 120px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-top: 5px;
}

#lights-toolbar input[type="range"],
#lights-toolbar input[type="color"] {
    width: calc(100% - 20px);
}



#lights-toolbar button {
    font-size: 12px;
    padding: 5px 10px;
    margin-top: 5px;
}

/* Nouveau style pour les groupes de lumières */
.light-group {
    border: 1px solid rgba(255, 255, 255, 0);
    /* Cadre fin */
    border-radius: 5px;
    /* Coins arrondis */
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(129, 177, 174, 0);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(7.5px);
}


.spotlight-controls {
    display: flex;
    flex-wrap: wrap;
    /* Met les contrôles sur deux lignes */
    gap: 8px;
    /* Espacement entre les lignes */
}

.spotlight-controls label {
    width: auto;
    flex: 1 1 100px;
    /* Largeur flexible des étiquettes */
}

.spotlight-controls input {
    flex: 1 1 calc(50% - 10px);
    /* Largeur adaptable */
}

#resetLights {
    padding: 6px 12px;
    background: radial-gradient(circle, #ffffff 0%, #b0c4c8 30%, #6b8085 60%, #3a4a50 100%);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: rgb(11, 27, 37);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 160px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#resetLights:hover {
    background: radial-gradient(circle, #ffffff 0%, #cfd8dc 30%, #7a9da7 60%, #4a5a60 100%);
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#resetLights:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/***************************************
POI
****************************************/
#poi-form {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 200;
    background: rgba(64, 91, 109, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 15px;
    width: 100%;
    height: 100%;
    letter-spacing: 0.7pt;
    font-size: 13px;
    line-height: 1.5em;
}

#poi-form h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

#poi-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

#poi-form input[type="text"],
#poi-form textarea {

    padding: 6px;
    border-radius: 4px;
    border: none;
    background-color: #f1f1f1;
    color: #000;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    width: 90%;
}

#poi-form textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

#poi-form input[type="file"] {
    display: block;
    margin-top: 5px;
}

.image-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1em;
    gap: 10px;
}

.linked-model-button {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}


#thumb-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 1em;
}

#thumb-preview.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#thumb-preview.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px #fff;
}

#thumb-preview.clickable:active {
    transform: scale(0.98);
    box-shadow: 0 0 4px #aaa;
}


#poi-form .buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    margin-left: -15px;
    padding-left: 15px;
}


#poi-form button {
    padding: 6px 12px;
    background: radial-gradient(circle, #ffffff 0%, #b0c4c8 30%, #6b8085 60%, #3a4a50 100%);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: rgb(11, 27, 37);
    cursor: pointer;
    transition: background 0.3s ease;
}

#poi-form button:hover {
    background: radial-gradient(circle, #ffffff 0%, #cfd8dc 30%, #7a9da7 60%, #4a5a60 100%);
}

#poi-form button {
    padding: 6px 12px;
    background: radial-gradient(circle, #ffffff 0%, #b0c4c8 30%, #6b8085 60%, #3a4a50 100%);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: rgb(11, 27, 37);
    width: 140px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#poi-form button:hover {
    background: radial-gradient(circle, #ffffff 0%, #cfd8dc 30%, #7a9da7 60%, #4a5a60 100%);
}

/**************************************************
Ecran de chargement
***************************************************/
#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(45, 65, 73);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;

    transition: opacity 1.0s ease;
    opacity: 1;
}


#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.api-title {
    font-size: 2em;
    margin-bottom: 20px;
}

.api-logo img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.api-stitle {
    font-size: 1.2em;
    opacity: 0.8;
}

/************************************
fenêtre d'aide
*************************************/
#help {
    position: absolute;
    display: block;
    height: 100%;
    color: #ffffff;
    font-size: 0.9em;
    padding: 20px;
    text-align: justify;
    overflow-y: auto;
}

#help .help-group {}

#help .help-group h3 {
    color: rgb(195, 205, 209);
    font-size: 1.4em;
    margin-bottom: 20px;

}

/***************************
Tablettes
******************************/
@media (max-width: 991.98px) and (min-width: 768px) {
    .col-lg-5th {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/***************************
Téléphones
******************************/
@media (max-width: 768px) {
    .col-lg-5th {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #main-header {
        max-height: 80px;
    }

    .logo {
        height: 40px;
        width: auto;
    }

    .app-title-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1;
    }

    .app-title {
        font-size: 1.3em;
        font-weight: 300;
        font-family: "Futura Book", sans-serif;
        letter-spacing: 1px;
    }

    .app-subtitle {
        display: none;
    }

    .app-subtitle-mobile {
        display: block;
        font-size: 0.9em;
        font-weight: 200;
        color: rgba(255, 255, 255, 0.8);
        font-style: italic;
        margin-top: 1px;

    }

    /*****************************************
Content
******************************************/
    #main-content {
        flex: 1 1 auto;
        overflow-y: auto;
        padding-top: 50px;
        padding-bottom: 20px;
    }

    /*****************************************
footer
*****************************************/
    #main-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: rgba(57, 78, 78, 1);
        color: #ddd;
        font-size: 0.7em;
        font-family: "Futura Book", sans-serif;
        display: flex;
        justify-content: flex-start;
        padding-left: 5px;
        padding-right: 5px;
        align-items: center;
        z-index: 999;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
        padding: 0 20px;
    }

    .footer-right {
        margin-left: auto;
        display: flex;
        gap: 2px;
    }


    .footer-right a {
        color: #ccc;
        text-decoration: none;
        margin-left: 3px;
        transition: text-decoration 0.2s ease;
    }


    /*************************************
Crédits et copyright
*************************************/
    #copyright-container {
        margin: 3px;
        left: 0;
        font-family: "Futura Book", sans-serif;
        color: white;
        font-size: 0.7em;
    }

    #copyright-title {
        text-align: center;
        font-size: 0.7em;
        font-weight: 100;

    }

    #copyright-container h2 {
        font-size: 0.7em;
        text-align: left;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    #copyright-container p {
        font-size: 0.8em;
        font-weight: 100;
        text-align: justify;
        padding-top: 5px;
        padding-bottom: 5px;
        line-height: 1;
    }

    /***************************************
Pannel d'outils de la scene
*****************************************/
    .inca3d-tools-panel {
        display: none;
    }

    /***************************************
Panneau d'informations du modèle
*****************************************/
    .inca3d-info-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        background: rgba(64, 98, 109, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        color: #fff;
        padding: 6px 6px;
        border-radius: 2px;
        z-index: 998;
        font-size: 0.8em;
        pointer-events: auto;
        opacity: 0.6;
        width: 100dvw;
        height: 40px;
        overflow: hidden;
        transition:
            opacity 0.3s ease,
            width 0.3s ease,
            height 0.3s ease,
            background 0.3s ease;
    }

    /* 📦 Expansion fixe */
    .inca3d-info-panel.expanded {
        opacity: 1;
        background: rgba(64, 98, 109, 0.8);
        width: 100dvw;
        height: auto;
        /* 👈 Auto-adaptatif */
        max-height: 400px;
        overflow-y: auto;
    }

    /* 📦 Survol temporaire */
    .inca3d-info-panel:not(.expanded):hover {
        opacity: 1;
        background: rgba(64, 98, 109, 0.6);
        width: 100dvw;
        height: auto;
        max-height: 400px;
        overflow-y: auto;
    }

    /* 🧩 Titre & bouton */
    .inca3d-info-panel h4 {
        font-size: 1em;
        margin: 0;
    }

    .inca3d-info-panel button {
        display: none;
        background: none;
        border: none;
        color: white;
        font-size: 1.1em;
        cursor: pointer;
        padding: 4px;
        transition: color 0.2s ease;
    }

    .inca3d-info-panel button:hover {
        color: #ddd;
    }

    /* 🧾 Contenu défilable */
    .inca3d-info-panel .info-content {
        margin-top: 5px;
        padding: 5px;
    }

    .inca3d-info-panel .info-content p {
        margin-bottom: 10px;
        text-align: justify;
    }

}