@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;
}

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

/* message d'avertissement de l'usage des cookies */
.contenu .cookies {
    width: 60%;
    height: fit-content;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
    font-size: 14px;
    background-color: var(--text);
    color: var(--background);
}

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

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

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

.modal-www-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% du haut et centré */
    padding: 20px;
    border: 1px solid #888;
    max-width: 40rem; /* Largeur de la fenêtre */
    word-wrap: break-word;
}

.modal-www-content > input {
    width: 80%;
}

.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 */
input {
    border: 1px solid var(--primary);
    font-size: 16px;
    background-color: var(--background);
    padding: 12px;
    border-radius: 4px;
    width: 80%;
    margin-right: 2%;
    margin-left: auto;
    cursor: pointer;
}

#modele-fusion {
    textarea {
        font: inherit;
        width: 100%;
        margin-left: 0%;
        margin-right: auto;
        height: 80vh;
        overflow: auto;
        color: var(--text);
    }
}

#zone-donnees {
    min-height: 300px;
    max-height: 500px;
}

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


#selecteurColonnes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
#selecteurColonnes label {
    display: flex;
    background: #eaeaea;
    color: black;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: smaller;
}

#selecteurColonnes label:hover {
    background: #d4d4d4;
}

.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 */
}

/* modification de la présentation pour l'éditeur */
.TMSetextH2 {
    font-size: 16px;
    color: #008106;
    font-weight: 100;
    line-height: 150%;
    margin-bottom: initial;
}

.TMMark_TMH1, .TMMark_TMH2, .TMMark_TMH3, .TMMark_TMH4, .TMMark_TMH5, .TMMark_TMH6 {
    color: #a0a0a0;
}