@import url("globals.css");
@import url("navbar.css");
@import url("helificus/entete-contenu.css");

/**
 * @license Copyright (c) 2025, Hélificus - Marie-Pierre Brungard.
 */
@media print {
    @page {
        size: 210mm 297mm;
        margin: 10mm;
    }

    body {
        font-size: 12pt;
        background-color: #ffffff;
    }

    header,
    nav {
        display: none;
    }

    .sidenav,
    .menu,
    .entete-contenu {
        display: none;
    }
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-right 0.5s;
}

.contenu {
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}

.contenu > * {
    margin-left: 5px;
    margin-right: 5px;
    max-width: 98%;
}

#fichier-texte.hover {
    background-color: var(--background);
}

#fichier-profil.hover {
    background-color: var(--background);
}

.modal-www {
    display: none; /* Masquer par défaut */
    z-index: 1000; /* Au-dessus des autres éléments */
    position: fixed; /* Rester en place */
    left: 0;
    right: 0;
    top: 0;
    height: 100%; /* Hauteur complète */
    overflow: auto; /* Activer le défilement si nécessaire */
    background-color: rgba(0, 0, 0, 0.4); /* Fond noir avec opacité */
}

.modal-www-content {
    background-color: #fefefe;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #888;
    width: fit-content; /* Largeur de la fenêtre */
    max-width: 40rem;
    min-width: 50%;
    word-wrap: break-word;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* formulaire */
.modal-www-content table {
    width: 100%;
}

.modal-www-content input {
    display: block;
    border: 1px solid var(--primary);
    font-size: 1.02rem;
    background-color: var(--background);
    padding: 6px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

.modal-www-content select {
    border: 1px solid var(--primary);
    font-size: 1.02rem;
    background-color: var(--background);
    padding: 6px;
    border-radius: 4px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
}

.modal-www-content button {
    display: block;
    margin-top: 12px;
    font-size: 1.02rem;
    padding: 6px;
    border-radius: 4px;
    margin-left: auto;
    margin-right: 10px;
    background-color: var(--primary);
    color: var(--background)
}

.modal-www-content div {
    display: flex;
    gap: 10px;
    width: fit-content;
    margin-right: 0;
    margin-left: auto;
}

#modele-fusion {
    height: 80dvh;
    overflow: hidden;
}

#zone-donnees {
    max-height: 60dvh;
    overflow: scroll;
}

#zone-modele-fusion {
    height: auto;
    overflow: hidden;
}

#dataGrid {
    width: 90%;
    margin: 0 auto;
    height: 80vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.canvas-container {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les canvases */
}
.canvas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
canvas {
    border: 1px solid black;
}
.image-label {
    margin-bottom: 5px; /* Espace entre le label et le canvas */
    font-weight: bold; /* Met le texte en gras */
}


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background-color: var(--primary);
  color: var(--background);
  padding: 5px 10px;
  border-radius: 4px;
  position: absolute;
  bottom: 100%;
  left: 0;
  
  white-space: nowrap;
  z-index: 999;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}