body {
    margin: 0;
    font-size: clamp(14px, 1.4vw, 20px);
    background-color: rgb(239, 239, 239);
}

.grosBoutton {
    background-color: rgb(104, 45, 104);
    color: white;
    font-size: clamp(14px, 1.4vw, 20px);
    border: none;
    border-radius: 5px;
    cursor: pointer;

    width: 200px;
    height: 25px;
}

    .grosBoutton:active {
        background-color: rgb(149, 65, 149);
        transform: translateY(2px);
    }

.petitBoutton {
    background-color: rgb(104, 45, 104);
    color: white;
    font-size: clamp(14px, 1.4vw, 20px);
    border: none;
    border-radius: 5px;
    cursor: pointer;

    width: fit-content;
    height: fit-content;
    z-index: 300;
    position: relative;
}

    .petitBoutton.boutonLateral {
        display:block;
    }

    .petitBoutton:active {
        background-color: rgb(149, 65, 149);
        transform: translateY(2px);
    }


.bouton_exemple {
    background-color: rgba(188, 167, 220, 0.6); 
    border: none;
    border-radius: 5px;
    width: fit-content;
    height: fit-content;
}

.fleche_exemple {
    display: flex;
    width: 15px;
    height: 15px;
}

.tournee_exemple {
    transform: rotate(180deg);
}

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

.Nav {
    grid-area: Nav;
    column-span: all;
}

.flècheMenu {
    display: flex;
    padding: 5px;
    width: 20px;
    height: 20px;
    align-content: center;
    justify-content: center;
    transform: rotate(90deg);
}

.tournee {
    transform: rotate(270deg);
}

.Entree {
    grid-area: Entree;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: 3fr 1fr;
    background-color: rgb(0, 0, 0);
    padding: 2px;
    gap: 2px;
    border-radius: 10px;
    position: relative;
}

    .Entree h2 {
        text-align: center;
    }

    .boiteEntree {
        display: flex;
        flex-direction: column;
        align-items: center;

        background-color: rgb(255, 255, 255);
        gap: 10px;
        padding: 5px;
        border-radius: 3px;
    }
        .boiteEntree .paramètre {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-auto-rows: 1fr;
            gap: 10px;

            align-items: center;
            vertical-align: center;
        }

            .paramètre.w {
                display: grid;
                grid-template-columns: 1fr 1fr;
                grid-template-rows: 1fr;
                grid-gap: 10px;

                align-items: center;
                vertical-align: center;
            }

            .paramètre input {
                border-radius: 5px;
                height: 1.5rem;
                width: 7rem;
                font-size: 16px;
            }

            .paramètre img {
                vertical-align: middle;
                cursor: help;
            }

            .paramètre label {
                justify-self: end;
            }


.Graphe {
    grid-area: Graphe;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: 1fr;
    background-color: rgb(0, 0, 0);
    padding: 2px;
    gap: 2px;
    border-radius: 10px;
}

#headGraphiqueLCDM, #headGraphiqueDE {
    grid-area: titre;
    justify-self: center;
    align-self: center;
}

#bouton_avertissement{
    grid-area: avertissement;
    align-self: center;
    justify-self: center;
    z-index: 800;
}

#txt_info_univers{
    grid-area: texte;
    align-self: center;
    justify-self: center; 
    text-align: start;
    margin: 1%;
    max-height: 42vh;
    overflow-y: auto;
}

#resteDuGraphe {
    grid-area: resteGraphe;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 0.2fr 3fr 2fr;
    grid-template-areas:
        "exemples"
        "graphique"
        "infoSousGraphe";

}

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

#BoiteExemple > * {
    flex: 2;
}

#titreExemple {
    text-align: center;
    color: rgb(104, 45, 104);
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    flex: 1;
}

#leGraphique {
    grid-area: graphique;
    display: grid;
}

#infoGraphe {
    grid-area: infoSousGraphe;
    display: grid;
    justify-self: center;
}

/*Pour le petit bouton rond 'i' */
.info-icon {
    width: 60px;
    height: 60px;
    position: relative;
    grid-area: info;
    align-self: center;
    justify-self: center;
    background-color: rgb(104, 45, 104); /* Bleu clair agréable */
    color: white; /* Texte blanc pour contraste */
    border-radius: 50%; /* Cercle parfait */
    font-size: 24px; /* Taille de police pour le symbole */
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce pour la profondeur */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Animation de transition fluide */
  }
  
  .info-icon::before {
    content: "\2139"; /* Unicode pour le symbole "i" (ℹ) */
  }
  
  .info-icon:hover {
    transform: scale(1.1); /* Légèrement agrandir au survol */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.548); /* Ombre plus prononcée au survol */
  }

    .Graphe h2 {
        text-align: center;
    }

    .boiteGraphe {
        display: grid;
        flex-direction: column;
        justify-content: center;
        grid-template-columns: 1fr 8fr 2fr;
        grid-template-rows: auto auto 10fr;
        grid-template-areas:
            "info titre avertissement"
            "texte texte texte"
            "resteGraphe resteGraphe resteGraphe";
        background-color: rgb(255, 255, 255);
        gap: 10px;
        padding: 5px;
        border-radius: 10px;
    }


.Sortie {
    grid-area: Sortie;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: 3fr 1fr;
    background-color: rgb(0, 0, 0);
    padding: 2px;
    gap: 2px;
    border-radius: 10px;
}

    .Sortie h2 {
        text-align: center;
    }

    .boiteSortie {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgb(255, 255, 255);
        gap: 10px;
        padding: 5px;
        border-radius: 3px;
    }

        .boiteSortie .résultats {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-auto-rows: 1fr;
            gap: 10px;

            align-items: center;
            vertical-align: center;
        }

            .résultats input {
                border-radius: 5px;
                height: 1.5rem;
                width: 7rem;
                font-size: 16px;
            }

            .résultats img {
                vertical-align: middle;
                cursor: help;
            }

            .résultats label {
                justify-self: end;
            }

.cache {
    display: none;
}

#graphique_LCDM, #graphique_DE {
    width: 100%;
    height: 100%;
    position: relative;
}

.avertissement {
    display: none;
}

.load_bar {
    position: fixed;
    text-align:center;
    border-radius: 20px;
    margin-top: 20;
    bottom: 20;
    right: 10;
    width: 200px;
    color: black;
    background-color: #eeeeee;
}

#conteneurCanvas {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

#canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/*Croix de fermeture de la boite d'avertissement*/
.close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: none;
}

.close::before,
.close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: black;
}

.close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

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

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

    .petitBoutton.boutonLateral {
        display: none;
    }

}