.fe-formulaire {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
}

.fe-formulaire label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.fe-formulaire input[type="text"],
.fe-formulaire input[type="email"],
.fe-formulaire input[type="date"],
.fe-formulaire input[type="number"],
.fe-formulaire select,
.fe-formulaire textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
}

.fe-formulaire input[type="submit"],
.fe-formulaire button {
  background-color: #2a2e46;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px !important;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.fe-formulaire input[type="submit"]:hover,
.fe-formulaire button:hover {
  background-color: #e7344c;
}

.fe-formulaire .form-group {
  margin-bottom: 1.5rem;
}

.formulaire-date{
    display: flex;
    justify-content: space-between;
}

.formulaire-date div{
    width: 45%;
}

#button-formulaire-etude{
    justify-self: center;
}

/*tableau admin*/
.modal-nombreslignes{
    display: flex;
    justify-content: space-between;
    height: 2rem;
}

#button-telecharger-filtres {
    display: flex;
    width: 13rem;
    justify-content: space-between;
}

#button-csv{
    height: 2rem !important;
}

/* --- Tableau --- */
#table_etudes {
    border: 2px solid #6b6c6f !important;
    scroll-margin-top: 120px;
}


table.widefat th div {
    overflow: hidden;
}

table.widefat th a {
    color: inherit;
}

table.widefat th {
    white-space: nowrap;
    border-bottom: 2px solid #6b6c6f !important;
    background-color: #ddd9d9;
}

.sort-link {
    color: inherit;
}

/* --- Ajouts pour colonnes fixes et scroll horizontal --- */
#table_etudes {
    position: relative;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1200px;
}

#table_etudes th, 
#table_etudes td {
    white-space: nowrap;
    padding: 8px;
    border: 1px solid #ccc;
}

th.sticky-col-1,
td.sticky-col-1 {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    border-left: 2px solid #6b6c6f !important;
}

th.sticky-col-2,
td.sticky-col-2 {
    position: sticky;
    left: 100px; /* adapte cette valeur à la largeur réelle de la 1ère colonne */
    background: #fff;
    z-index: 2;
    border-right: 2px solid #6b6c6f !important;
}
