body {
    margin: 0;
    font-size: clamp(14px, 1.4vw, 20px);
    background-color: rgba(212, 215, 228, 0.85);
}


/*Pour les boutons verts (start,save...)*/
.grosBoutton {
    background-color: rgba(39, 121, 124, 0.85);
    color: white;
    font-style: bold;
    border-radius: 15px;
    cursor: pointer;
    height: 40px;
}

    .grosBoutton:active {
        background-color: rgba(39, 121, 124, 0.85);
        transform: translateY(2px);
    }

/*Pour les boutons de choix, si choisi (observateur,...)*/   
.bouttonChoix {

    position: relative;
    display: inline-block;
    height: 50px;
    margin-top: 5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: rgba(39, 121, 124, 0.85);;
    background-color: #ffffff;
    border: 2px solid rgba(39, 121, 124, 0.85);;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;

}

/*Pour les boutons de choix, si pas choisi (observateur,...)*/     
.bouttonChoix-inverse {
    position: relative;
    display: inline-block;
    height: 50px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: rgba(39, 121, 124, 0.85);
    background-color: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease;
}

.bouttonChoix-inverse::before,
.bouttonChoix-inverse::after {
    content: '';
    position: absolute;
    background-color: rgba(39, 121, 124, 0.85);
    width: 0%;
    height: 2px;
    bottom: 0;
    transition: width 0.3s ease;
}

.bouttonChoix-inverse::before {
    left: 0;
}

.bouttonChoix-inverse::after {
    right: 0;
}

.bouttonChoix-inverse:hover::before,
.bouttonChoix-inverse:hover::after {
    width: 50%;
}

.bouttonChoix-inverse:focus {
    outline: none;
}

.bouttonChoix-inverse:active::before,
.bouttonChoix-inverse:active::after {
    width: 100%;
}

/*Pour les boutons ranger les fenetres*/
.petitBoutton {
    background-color: rgba(179, 221, 223, 0.85);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;

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

    .petitBoutton:active {
        background-color: rgba(61, 131, 134, 0.85);
        transform: translateY(2px);
    }

.text_boutton
    {
        position: flex;
        text-align: center;
        color: black;
        padding-bottom: 200px;
    }
    
/*Pour la grille principale*/
.grillePrincipale {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 38px 1fr;
    grid-template-areas:
            "Nav Nav Nav"
            "Entree Graphe Sortie";
    gap: 10px;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}



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

/*Pour les fleches sur les cotes*/
.flècheMenu {
    display: flex;
    padding: 5px;
    width: 20px;
    height: 20px;
    align-content: center;
    justify-content: center;
    transform: rotate(90deg);
}

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

/*Pour la fenetre d'entrée gauche*/
.Entree {
    grid-area: Entree;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: auto 1fr;
    background-color: rgb(0, 0, 0);
    padding: 1px;
    gap: 3px;
    border-radius: 30px;
    position: relative;
}

    .Entree h2 {
        text-align: center;
    }

    .boiteEntree {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgb(255, 255, 255);
        gap: 1px;
        padding: 1px;
        padding-bottom: 15px;
        border-radius: 15px;
    }


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

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

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

/*Pour la fenetre du graphe (milieu)*/
.Graphe {
    grid-area: Graphe;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: 0.1fr 1fr;
    background-color: rgb(0, 0, 0);
    padding: 1px;
    gap: 3px;
    border-radius: 10px;
    min-width: 0;
}

    .Graphe h2 {
        text-align: center;
    }

    .boiteGraphe {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgb(255, 255, 255);
        gap: 1px;
        padding: 5px;
        border-radius: 30px;
        min-width: 0;
    }

/*Pour la fenetre des sorties (droite)*/
.Sortie {
    grid-area: Sortie;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: auto 1fr;
    background-color: rgb(0, 0, 0);
    padding: 1px;
    gap: 3px;
    border-radius: 10px;
}

    .Sortie h2 {
        text-align: center;
    }

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

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

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

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

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

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

.cache {
    display: none;
}


/* POUR LES INPUTS à deux*/
.pls-inputs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    top: 70px;
    
}

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
}

.input-wrapper label {
    margin-right: 10px;
    color: #333;
    text-align: center;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Affiche "..." si le texte est trop long */
}

.input-wrapper input {
    width: 90px; 
    height: 30px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    color: #333;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.input-wrapper input:focus {
    border-color: rgba(39, 121, 124, 0.85);
    box-shadow: 0 0 5px rgba(39, 121, 124, 0.85);
    outline: none;
}

.input-wrapper input::placeholder {
    color: #aaa;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.input-wrapper input:focus::placeholder {
    opacity: 0.5;
}


.bouton_mobile {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.5s ease;
  }
  
  .bouton_mobile:hover {
    opacity: 1;
  }
  

  .tg {
    width: 100%;
    margin: auto;
  }

/* Pour avoir des input à 4 dans les entrees */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-content: center;
    max-width: 600px;
    margin: 0 10%;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 6px 6px 4px rgba(0, 0, 0, 0.1);
    background-color: rgba(179, 221, 223, 0.85);
    gap: 20px;
    box-sizing: border-box;
    justify-items: center;
}

.input-group {
    display: block;
    justify-self: center;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
}
.input-block {
    display: block;
    width: 100%;
    margin-bottom: 8px; /* Espace entre les champs */
  }
.input-group label {
    width: 100%;
    color: #333;
    text-align: center;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    box-sizing: border-box;
}

/* Cibler tous les inputs */
.input-group input {
    flex: 1;
    height: 40px;
    width: 100%;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.input-group input:focus {
    border-color: rgba(39, 121, 124, 0.85);
    box-shadow: 0 0 5px rgba(39, 121, 124, 0.85);
    outline: none;
}



/* Pour les tableaux */
.table-container {
    width: 100%;
    margin: 20px auto; /* Centre horizontalement avec des marges automatiques */
    overflow-x: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;

}

table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    
}

th {
    text-align: center;
    border: 1px solid black;
}
th.tg-6l4m {
    background-color: rgba(39, 121, 124, 0.85);
    color: #ffffff;
    font-weight: bold;
    width: auto; /* Permet à la cellule de s'adapter au contenu */
}

td {
    padding: 10px 10px;
    text-align: center;
    border: 1px solid black;
   
}

th:last-child, td:last-child {
    border-right: none;
}

th {
    background-color: rgba(39, 121, 124, 0.85);
    color: #ffffff;
    font-size: 13px;
}

thead tr.label-row th {
    background-color: rgba(39, 121, 124, 0.85);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e2e6ea;
}

tbody td {
    color: #333333;
}



  
/*Pour le pilotage*/
#cccccccc
{
  display:flex;
  flex-direction: row;
  position:fixed;
  margin:auto;
  right:0;
  left:0;
  width:130px;
  height:130px;
  bottom:50px;
  
  visibility:hidden;}

/*Pour zoom et simu*/
#panneau_mobile{

  display:flex;
  flex-direction: row;
  position:fixed;
  margin:auto;
  right:0;
  left:8%;
  width:110px;
  bottom:10px;
  margin-left: 60vw;
  padding:6px;
  visibility:hidden;
}

#panneau_mobile span{
  text-align: center;
  margin:auto;
}
#panneau_mobile2{
  display:flex;
  flex-direction: row;
  position:fixed;
  margin:auto;
  right:8%;
  left:0;
  width:110px;
  bottom:10px;
  margin-right: 62vw;
  padding:6px;
  visibility:hidden;
}
#panneau_mobile2 span{
  text-align: center;
  margin:auto;
}

/*Pour le petit bouton rond 'i' */
.info-icon {
    width: 60px;
    height: 60px;
    position: relative;
    grid-area: info;
    background-color: rgba(39, 121, 124, 0.85); /* 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 */
  }
  
/*Pour l'avertissement*/
  .avertissement_style {
    background-color:  rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    font-size: 17px;
    /*border: none;*/
    border-color: black;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    z-index: 300;
    position: relative;
    grid-area: avertissement;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    text-align: center;
}

    .avertissement_style:active {
        background-color: rgba(61, 131, 134, 0.85);
        transform: translateY(2px);
    }


.titre_style{
font-size: 20px;
position: relative;
margin: 1%;  
text-align: center;
grid-area: titre;
display: grid; 
position: relative;
}

#entete {
    width: 100%;
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 8fr 2fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "info titre avertissement"
        "texte texte texte";
}

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

/*Pour le div du graphe de simulation*/
#wrapper {
    position: relative;
    width: 750px;
    height: 750px;
    transition: width 0.3s ease, height 0.3s ease;
    }

    #wrapper canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    
    .canvaslaclasse{
      min-height:0;
      min-width:0;
      flex-shrink: 0;
      overflow:hidden;
      align-self: center;
    }
    
/*Pour le div du graphe de potentiel */   
#wrapper2 {
    display: flex; /* Utilisation du modèle flexbox */
    justify-content: center; /* Centrage horizontal des éléments enfants */
    align-items: center; /* Centrage vertical des éléments enfants */
    box-sizing: border-box; /* Assure que le padding et la bordure sont inclus dans les dimensions */
    flex: 1; /* Pour que le wrapper2 prenne toute la hauteur disponible */
    transition: width 0.3s ease, height 0.3s ease;
}
/*Pour le graphe svg du potentiel*/   
#grsvg_2 {
    min-height: 0;
    min-width: 0;
    flex-shrink: 0; /* Empêche le rétrécissement de l'élément */
    overflow: visible; /* Gestion du débordement selon les besoins */
    /* align-self: center; */ /* Enlever cette ligne car align-items sur le conteneur parent s'en occupe */
}
/*Les axes du grphe de potentiel*/
.axis path, .axis line {
    fill: none;
    stroke: black;
    stroke-width: 1;
    shape-rendering: crispEdges;
  }

/*Pour le div du graphe de simulation pour Kerr*/
.wrapper_kerr {
    position: relative;
    width: 750px;
    height: 750px;
    transition: width 0.3s ease, height 0.3s ease;
}
.wrapper_kerr canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*Pour le div du graphe de potentiel pour Kerr*/   
#wrapper2_kerr{
    display: flex; /* Utilisation du modèle flexbox */
    justify-content: center; /* Centrage horizontal des éléments enfants */
    align-items: center; /* Centrage vertical des éléments enfants */
    box-sizing: border-box; /* Assure que le padding et la bordure sont inclus dans les dimensions */
    flex: 1; /* Pour que le wrapper2 prenne toute la hauteur disponible */
  }

/*Pour les canva utilisées*/   
#myCanvas{
  min-height:0;
  min-width:0;
  flex-shrink: 0;
  overflow:hidden;
  align-self: center;
}
#myCanvas22{
  min-height:0;
  min-width:0;
  flex-shrink: 0;
  overflow:hidden;
  align-self: center;
}
#myCanvas3{
  min-height:0;
  min-width:0;
  flex-shrink: 0;
  overflow:hidden;
  align-self: center;
}


/*Pour le choix du potentiel*/

/* Conteneur pour le formulaire */
  .container-choix {
    background-color: rgba(179, 221, 223, 0.85);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
    height: 50px;
}

/* Styles pour le label */
.label-choix {
    font-size: 15px;
    display: block;
    color: #333333;
    letter-spacing: 1px;
}

/* Styles pour la liste déroulante */
select{
    padding: 6px;
    font-size: 16px;
    border: 2px solid #cccccc;
    border-radius: 6px;
    width: 60%; /* Largeur de la liste déroulante */
    background-color: #f9f9f9;
    text-align: center;
    transition: border-color 0.3s ease;
}


select:focus {
    outline: none;
    border-color:  rgba(39, 121, 124, 0.85);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

option {
    font-size: 16px;
}

/* Style au survol d'une option */
option:hover {
background-color: #4FA7AD; /* Couleur bleue au survol */
}

/* Placeholder style */
option[disabled]:first-child {
    color: #aaaaaa;
}

.petitBoutton.boutonLateral {
    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);
}


#BoiteExemple {
    grid-area: exemples;
    justify-self: center;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 90%;
    gap: 2%;
    margin: 5%;
}

#BoiteExemple > * {
    flex: 2;
}

#titreExemple {
    text-align: center;
    color: rgba(39, 121, 124, 0.85);
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    flex: 1;
}

#radio_button {
    justify-self: center;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 80%;
    gap: 2%;
    margin: 1%;
}

#boutons_actions {
    justify-self: center;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 70%;
    gap: 2%;
    margin: 1%;
}

#radio_button span, #boutons_actions span {
    display: flex;
    flex: 1;
}

#radio_button button {
    flex: 1;
    font-size: clamp(10px, 1.4vw, 15px);
}

#boutons_actions button {
    flex: 1;
}

#txt_trajectoire {
    top: -3px !important;
    right: 0px !important;
    position: relative !important;
}

#barre_reb {
    margin: 1%;
    font-size: clamp(10px, 1.4vw, 15px);
    width: 80%;
    justify-content: center;
    align-content: center;
}


#amortissement {
    text-align: center;
    color: rgba(39, 121, 124, 0.85);
    font-family: Arial, Helvetica, sans-serif;
    flex: 6; 
}

#reb {
    flex: 5; 
    text-align: center;
}

#ammorti {
    text-align: center;
    color: rgba(39, 121, 124, 0.85);
    font-family: Arial, Helvetica, sans-serif;
    flex: 1; 
    align-self: center;
}

#table_principale tr, #table_principale th {
    height: 85px !important;
}

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

    #panneau_mobile {
       margin-left: 45vw; 
    }

    #panneau_mobile2 {
       margin-right: 56vw; 
    }
    
}