body {
    font-family: Arial, sans-serif;
    background-color: #D6D6D6;

    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: flex-start; /* contenu collé en haut */
    min-height: 100vh;
}

.all-container {
    background-color: #E0E0E0;  
    padding: 40px;
    margin: 40px auto;
    max-width: 1000px;           /* largeur max */
    width: 90%;                  /* responsive */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* ombre légère */
    border-radius: 5px;
}

.titre {
    color: #932596;
    text-decoration: underline;
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* deux colonnes */
    gap: 20px;
    max-width: 900px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#global {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 1fr 1fr; /* deux colonnes */
    gap: 10px 20px; /* lignes et colonnes */
}

#global .param {
  display: flex;
  flex-direction: column;
}


#PSM {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#NT {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#simulation {
    background-color: white;  
    padding: 40px;
    margin: 40px auto;
    max-width: 1000px;           /* largeur max */
    width: 90%;                  /* responsive */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* ombre légère */
    border-radius: 5px;

    display: flex;
    flex-direction: row; /* côte à côte */
    align-items: flex-start; /* aligne en haut */
    gap: 20px; /* espace entre les blocs */
    position: relative; /* pour le loader */
}

#controls {
    flex: 0 0 200px; /* largeur fixe à gauche */
}

#surfacePlot {
    flex: 1; /* prend tout l’espace restant */
    min-width: 500px;
    height: 80vh;
    border: 1px solid #ccc;
    position: relative;
 }

input[type="text"] {
    width: 200px;
}

label {
    font-style: italic;
}

.param_title {
    font-weight: bold;
    
}

.button-container {
    grid-column: 1 / span 2; /* occupe les deux colonnes */
    text-align: center; /* centre le contenu */
    display: flex;
    justify-content: center; /* centre horizontalement */
    margin-top: 20px;       /* un peu d’espace au-dessus */
}

input[type="range"] {
    width: 200px;
}



.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Centrage du loader DANS surfacePlot */
#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(255,255,255,0.8);
  padding: 20px;
  border-radius: 10px;
}