/* 
 * Vitruve 3D – Styles pour Inca3D (c) 2025
 * Tous droits réservés – Reproduction interdite sans autorisation.
 */

/********************************************************
Gestion des fenêtres Inca
*********************************************************/
@font-face {
    font-family: "Futura Book";
    src: url("../fonts/Futura Book font.ttf") format("truetype");
    font-size: 1.2pt;
}

/* Classes générales de la pop-up */
.inca-popup {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0);
    border: 1px solid #ccc;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.5);
    width: 70%;
    height: 80%;
}

.inca-popup.no-shadow {
    box-shadow: none !important;
}

/* En-tête de la pop-up */
.inca-popup-header {
    font-family: "Futura Book" !important;
    font-size: 1.3em;
    letter-spacing: 0.1em;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4a7580;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: move;
    border-bottom: 1px solid #ccc;
    position: relative;
    flex-shrink: 0;
}

.inca-popup-header .inca-title {
    font-size: 1em;
    letter-spacing: 0.3pt;
}

/* Contenu de la pop-up */
.inca-popup-content {
    flex: 1;
    padding: 0;
    overflow: auto;
    background: rgba(64, 98, 109, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: Futura, sans-serif;
    color: #ffffff;
    position: relative;
    height: 100%;
    width: 100%;
}

/* Pied de page de la pop-up */
.inca-popup-footer {
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
     background-color: #4a7580;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: default;
    border-top: 1px solid #ccc;
    position: relative;
    flex-shrink: 0;
}

.inca-popup,
.inca-popup-content,
.inca-popup-footer {
    box-sizing: border-box;
}

/* Nouveau style modernisé des boutons */
.inca-popup-close-button,
.fullscreen {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    position: absolute;
    top: 4px;
}

.inca-popup-close-button:hover,
.fullscreen:hover {
    opacity: 1;
}

.inca-popup-close-button {
    right: 4px;
}

.inca-popup-close-button::before {
    content: "✕";
    font-size: 16px;
    color: white;
}

.fullscreen {
    right: 40px;
}

.fullscreen::before {
    content: "⛶";
    font-size: 16px;
    color: white;
}

/* Handle de redimensionnement */
.inca-popup-resize {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: se-resize;
    position: absolute;
    right: 5px;
    bottom: 5px;
    background-image: url('css/images/resize.png');
    background-position: center;
    opacity: 0.7;
}

/* Animation d'apparition/disparition */
.inca-popup {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.inca-popup.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#linca-modal {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#linca-modal.visible {
    opacity: 0.6;
}

/***************************
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) {
    .inca-popup-header .inca-title {
        font-size: 0.7em;
        letter-spacing: 0.2pt;
    }
}
