.table-wrapper {
    border-radius: 4px;
    overflow: hidden;
    width: 70vw;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e4e7ea;
    display: flex;
    margin-bottom: 4rem;
}

table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  border: hidden;
}

th {
  text-align: left;
  padding: 0.5rem;
  font-weight: lighter;
  font-size: small;
}

tr {
  border: 1px solid #e4e7ea;
  font-weight: lighter;
  font-size: small;
}

td {
  text-align: left;
  padding: 0.5rem;
}

.icon_table_container {
  display: flex; /* Ajout de display flex */
  align-items: center; /* Alignement vertical des icônes */
}

td.nom_column,
.adresse_column,
.code {
  flex: 1; /* Pour que les colonnes autres que celles des icônes occupent l'espace restant */
}

td.icon_table {
  text-align: center;
  width: 0px;
  padding-left: 0rem;
  padding-right: 1rem;
}

td.icon_table .btn_card {
  margin: 0;
  width: 25px;
}

td.icon_table .btn_card.settings {
  padding-right: 0.3rem;
}

.slogan {
  font-size: 1vw;
}

.container_card_modify:nth-child(3) {
  margin-top: 70px;
  padding-bottom: 70px;
}

.card_modify {
  width: 70%;
  border-radius: 7px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: rgba(17, 17, 26, 0.06) 0px 4px 16px, rgba(17, 17, 26, 0.03) 0px 0px 32px;
}

.card_modify:hover {
  box-shadow: rgba(17, 17, 26, 0.06) 0px 1px 5px, rgba(17, 17, 26, 0.03) 0px 0px 32px;
}

.info_card {
  height: min-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn_container_card {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.btn_card {
  margin-left: 10px;
  margin-right: 10px;
  color: #fafafa;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.btn_card:nth-child(2) {
  margin-right: 6px;
}

.btn_card:nth-child(3) {
  margin-right: 1rem;
}

.btn_card.btn_card.settings {
  margin-LEFT: 0rem;
}

.title_container_card_modify {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  width: 70vw;
}

.error.livret {
  font-size: 25px;
  margin-bottom: 0px;
  margin-top: 0px;
}

.error_container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  text-align: center;
}

.btn_top_container_livrets {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

@media screen and (max-width: 1140px) {
  .btn_top_container_livrets {
    display: grid;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-top: 20px;
  }
  .btn_top_continuer {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 800px) {
  .info_card {
    display: grid;
    text-align: left;
  }
  .adresse {
    display: none;
  }
  .adresse {
    text-overflow: ellipsis;
  }
  .adresse {
    margin-top: 0px;
  }
  .btn_container_card {
    height: 35px;
  }
}

@media screen and (max-width: 600px) {
  .table-wrapper {
    border: none;
    width: auto;
  }
  .title_container_card_modify{
    width: 80vw;
  }
  table {
    border: 0;
    width: fit-content;
  }
  .desktop_thead {
    display: none;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
  }

  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: 0.625em;
    border: 1px solid #e4e7ea;
    border-radius: 4px;
    width: 80vw;
    font-size:medium;
  }

  table td {
    border: none;
    display: block;
    font-size: 0.8em;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  table td::before {
    content: attr(data-label);  
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 1rem;
  }

  table td:last-child {
    border-bottom: 0;
  }

  .icon_table_container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 1rem);
  }

  .btn_card {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .btn_card:nth-child(2) {
    margin-left: 1rem;
    margin-right: .8rem;
  }
}

@media screen and (max-width: 315px) {
  .btn_top_container_livrets {
    display: grid;
  }

  .error.livret {
    width: 90vw;
  }
}
