.grillePrincipale {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 38px 1fr;
    grid-template-areas:
            "Nav Nav Nav"
            "Entree Graphe Sortie";
    gap: 5px;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#PanneauCentral {
    min-width: 0;
    overflow: hidden;
}

.parametreGraphique{
    grid-area: plot;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.fenetre_calculette{
    display: flex;
    flex-direction: column;
    padding: 1px;
    border-radius: 3px;
    gap: 1px;
    position: relative;
}

.boiteSortie output {
    color: blue;
}

.infobullable{
    cursor: help;
}

.cache{
    display:none;
}

.load_bar_calc {
    display: flex;
    justify-content:center;
    align-items: center;
    justify-self: center;
    align-self: center;
    grid-area: loading;
    height: 3em;
    position: relative;
}

#generateur_graphique{
    grid-area: titre;
    justify-self: center;
    align-self: center;
    left: -5%;
    position: relative;
}

#txt_info_univers{
    grid-area: texte;
    align-self: center;
    justify-self: center; 
    text-align: start;
    margin: 1%;
}

#boite_calculette_centrale {
    display: grid;
    justify-content: center;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
        "info titre"
        "texte texte"
        "plot plot"
        "exemples exemples"
        "attention attention"
        "loading laoding";
}

#avertissement_nbb {
    grid-area: attention;
    align-self: center;
    justify-self: center; 
    text-align: center;
    margin: 1%;
}

#BoiteExemple {
    grid-area: exemples;
    justify-self: center;
    display: flex;
    width: 95%;
    gap: 10px;
    margin: 1%;
}

#BoiteExemple > * {
    flex: 2;
}

#titreExemple {
    flex: 1;
}

.boite_calculette{
    display: flex;
    flex-direction: column;
    background-color: rgb(255,255,255);
    gap: 2px;
    padding: 5px;
    border:1px solid black;
    border-radius: 5px;
}

.boite_calculette h4 {
    margin-inline: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.centre {
    margin-inline: auto;
}

.boite_calculette output {
    color: rgb(64, 47, 221);
}

.grille_graph {
    gap: 0pt;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    margin-bottom: 0.5rem;
    
}

.js-plotly-plot {
    align-self: center;
}

.fonction_t {
    justify-content: space-between;
    width:100%;
    display: flex;
    flex-direction: row;
    gap:8pt;
}

.fonction_z {

    justify-content: space-between;
    width:100%;
    display: flex;
    flex-direction: row;
    gap:8pt;
}

.roue_chargement {
    display: inline;
    border: 2px solid transparent;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    animation: spin 1s linear infinite;
    justify-self: center;
    align-self: center;
    position: relative;
}

.petitBoutton.boutonLateral {
    display:block;
}

#label_zmin, #label_zmax, #label_pas {
    display: inline-block !important;
    width: 60px !important;
}

/* Animation de rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 1200px) {
    .grillePrincipale {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "Nav"
            "Entree"
            "Graphe"
            "Sortie";
    }

    #conteneurCanvas {
        width: clamp(200px, 80%, 800px);
        height: clamp(200px, 80%, 800px);
    }

    .petitBoutton.boutonLateral {
        display: none;
    }

}