 
#wrap_invert{
  width:13%;
}

.boutonTest {
display: inline-block;
  margin: 25px 0;
  padding: 12px 30px;
  background: #00c853;
  color: white;
  border-color: #2df4ff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.boutonTest:hover {
    background: #00e676;
    transform: scale(1.05);
}

.titrePage {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 42px;
    color: #3c8de4;
    text-align: center;
    margin: 50px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    /*background: linear-gradient(135deg, #1e1e2f, #2a2a4a);*/
    background: linear-gradient(135deg, #751d78, #981534);
    color: white;
    text-align: center;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* en tête*/
th {
  background-color: #4cafaf9a;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #c7acac; /* borudure cellules du titre */
}

/* cases */
td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ddd; /* bordure verticale et horizontale */
}

/* lignes (une sur deux) */
tbody tr:nth-child(even) {
  background-color: #4d98af2a;
}
tbody tr:nth-child(odd) {
  background-color: #4d98af62;
}

/* hover lignes */
#tableEleves tr:hover {
  background-color: #a12f68;
}

/* curseur sur lignes du tableau */
#tableEleves tr {
  cursor: pointer;
}

/* centrage checkbox */
td input[type="checkbox"] {
  transform: scale(1.2);
}

.row:hover {
  background-color: rgba(255,255,255,0.15);
}


/* arborescence */

ul {
  list-style: none;
  padding-left: 20px;
  margin: 0;
}

.hidden {
  display: none !important;  /* important pour forcer la disparition */
}

.row {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.arrow {
  width: 14px;
  text-align: center;
}

.icon {
  width: 20px;
}

/* Conteneur principal en flex */
#mainContainer {
  display: flex;
  gap: 20px;         /* espace entre colonnes */
  padding: 20px;
  flex-wrap: wrap;   /* responsive */
}

#leftPane {
  flex: 2 1 300px;       /* colonne gauche responsive */
  max-width: 600px;      /* limite la largeur de la colonne */
  margin-left: 0;        /* colle au bord gauche de la flexbox */
}

#leftPane table {
  width: 100%;                    /* occupe toute la colonne */
  max-width: 500px;               /* jamais plus large que 500px */
  box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.527); /* ombre autour de la table */
  border-collapse: collapse;
  background-color: rgba(0,0,0,0.1);      /* fond du tableau */
  border-radius: 8px;                    /* coins arrondis */
  margin-bottom: 20px;
  overflow: hidden;
}

/* en-têtes */
#leftPane th {
  background-color: #4cafaf9a;
  color: white;
  text-align: center;
  padding: 10px;
  border: 1px solid #c7acac00;
}

/* cellules */
#leftPane td {
  padding: 8px;
  text-align: center;
  border: 1px solid #590719c5;
}

/* lignes paires / impaires */
#leftPane tbody tr:nth-child(even) {
  background-color: #4d98af2a;
}
#leftPane tbody tr:nth-child(odd) {
  background-color: #4d98af62;
}

/* hover sur la ligne entière */
#leftPane tbody tr:hover {
  background-color: #a12f68;
  cursor: pointer;
}

#treeWrapper {
  width: 100%;                 /* occupe toute la largeur disponible dans #rightPane */
  max-width: 300px;            /* jamais plus large que 300px */
  padding: 10px;               /* espace intérieur */
  margin-top: 20px;            /* espace par rapport aux boutons */
  border-radius: 8px;          /* coins arrondis */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* ombre autour */
  background-color: rgba(0,0,0,0.1);     /* fond du wrapper */
  overflow-y: auto;            /* scroll si contenu trop grand */
  max-height: 400px;           /* limite hauteur pour scroll */
}

/* le contenu interne #tree */
#tree {
  width: 100%;   /* occupe tout le wrapper */
  margin: 0;
  padding: 0;
}

#infoForm {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.formRow {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  max-width: 200px;
}

.formRow label {
  font-weight: bold;
  margin-bottom: 5px;
}

.formRow input {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}