.ap-account-container {
  display: flex;
  flex-wrap: wrap;
  margin: 100px 0;
}

.ap-sidebar {
  width: 25%;
  min-width: 250px;
  background: #470000;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 20px;
}


select#genre {
  height: auto;
  padding: 8px 12px;
  line-height: 1.4;
  /* font-size: 14px; */
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  vertical-align: middle;
}

.ap-profile {
  text-align: center;
  /* margin-bottom: 15px; */
}

.ap-licence {
  text-align: center;
  color: white !important;
  margin-bottom: 15px;
  font-weight: 600;
}

.ap-profile .ap-name {
  font-weight: bold;
  margin-top: 10px;
}

.ap-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap-menu li {
  margin-bottom: 5px;
  margin-top: 5px;
}

.ap-menu a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  background-color: transparent;
}

.ap-menu a:focus {
  outline: none;
}

/* .ap-menu a.active,
.ap-menu a:hover {
  background: #e0e0e0;
} */

.ap-content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
}

.ap-section {
  display: none;
}

.ap-profile img {
  margin-left: auto;
  margin-right: auto;
}

.ap-account-container {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #333;
}

.ap-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.ap-section table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.ap-section table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}

.ap-section table td:first-child {
  font-weight: 600;
  color: #495057;
  width: 30%;
}

.ap-section table tr:last-child td {
  border-bottom: none;
}

.ap-section h2 {
  color: #000;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.ap-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #e5141c;
}

.ap-section {
  scroll-margin-top: 200px;
}

section.ap-content h2 {
  font-size: 25px;
}

#inscriptions-table_filter input[type="search"] {
  width: 250px !important;
  max-width: 100%;
  box-sizing: border-box;
}

.dataTables_filter,
.dataTables_length {
  margin-bottom: 20px !important;
  margin-top: 10px !important;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
  padding-left: 20px;
}

.dataTables_wrapper .dataTables_length {
  float: left;
  padding-right: 20px;
}

.ap-intranet-btn,
.ap-logout-btn {
  display: block;
  padding: 10px 12px;
  margin: 10px 0;
  background: #f2f2f2;
  color: #333 !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  transition: 0.2s;
}

.ap-intranet-btn:hover,
.ap-logout-btn:hover {
  background: #e9e9e9;
  border-color: #ccc;
}

.ap-logout-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff !important;
}

.ap-logout-btn:hover,
.ap-logout-btn:focus {
  background: #e4141c;
  border-color: #e4141c;
}

.ap-menu--scroll {
  max-height: none;
  overflow-y: visible;
  padding-right: 6px;
}

/* Groupes */
.ap-menu-group {
  margin-bottom: 10px;
}

.ap-menu-group__toggle {
  width: 100%;
  background: #e0e0e0;
  padding: 10px 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  border: 1px solid #ddd;
}

.ap-menu-group__toggle:hover,
.ap-menu-group__toggle:focus {
  background: #e0e0e0;
  outline: none;
  color: #333;
  border: 1px solid #ddd;
}

.ap-menu-group__chev {
  font-size: 14px;
  line-height: 1;
}

.ap-placeholder {
  padding: 14px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  color: #666;
}

.ap-account-container {
  display: flex;
  flex-wrap: wrap;
  margin: 100px 0;
}

.ap-sidebar {
  width: 25%;
  min-width: 250px;
  background: #470000;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .ap-sidebar {
    width: 100%;
    order: 1;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
  }

  .ap-content {
    width: 100%;
    order: 2;
    padding: 15px 10px;
  }

  .ap-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 10px;
  }

  .ap-profile img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0;
  }

  .ap-profile .ap-name {
    margin: 0;
    font-size: 15px;
  }

  .ap-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ap-menu li {
    margin: 0;
  }

  .ap-menu a {
    flex: 0 1 auto;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
  }

  .ap-profile img{
    display: none;
  }

  .ap-menu-group__list{
    display: flex !important;
    justify-content: center;
  }

  .ap-menu-group .ap-menu-group__toggle {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .ap-sidebar hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
  }

  .ap-logout-btn {
    margin-top: 10px;
    padding: 8px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .ap-menu a {
    flex: 0 1 auto;
  }
}

select#genre {
  height: auto;
  padding: 8px 12px;
  line-height: 1.4;
  /* font-size: 14px; */
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  vertical-align: middle;
}

.ap-profile {
  text-align: center;
  /* margin-bottom: 15px; */
}

.ap-licence {
  text-align: center;
  color: white !important;
  margin-bottom: 15px;
  font-weight: 600;
}

.ap-profile .ap-name {
  font-weight: bold;
  margin-top: 10px;
}

.ap-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap-menu li {
  margin-bottom: 5px;
  margin-top: 5px;
}

.ap-menu a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  background-color: transparent;
}

.ap-menu a:focus {
  outline: none;
}

/* .ap-menu a.active,
.ap-menu a:hover {
  background: #e0e0e0;
} */

.ap-content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
}

.ap-section {
  display: none;
}

.ap-profile img {
  margin-left: auto;
  margin-right: auto;
}

.ap-account-container {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #333;
}

.ap-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.ap-section table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.ap-section table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}

.ap-section table td:first-child {
  font-weight: 600;
  color: #495057;
  width: 30%;
}

.ap-section table tr:last-child td {
  border-bottom: none;
}

.ap-section h2 {
  color: #000;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.ap-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #e5141c;
}

.ap-section {
  scroll-margin-top: 200px;
}

section.ap-content h2 {
  font-size: 25px;
}

#inscriptions-table_filter input[type="search"] {
  width: 250px !important;
  max-width: 100%;
  box-sizing: border-box;
}

.dataTables_filter,
.dataTables_length {
  margin-bottom: 20px !important;
  margin-top: 10px !important;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
  padding-left: 20px;
}

.dataTables_wrapper .dataTables_length {
  float: left;
  padding-right: 20px;
}

.ap-intranet-btn,
.ap-logout-btn {
  display: block;
  padding: 10px 12px;
  margin: 10px 0;
  background: #f2f2f2;
  color: #333 !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  transition: 0.2s;
}

.ap-intranet-btn:hover,
.ap-logout-btn:hover {
  background: #e9e9e9;
  border-color: #ccc;
}

.ap-logout-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff !important;
}

.ap-logout-btn:hover,
.ap-logout-btn:focus {
  background: #e4141c;
  border-color: #e4141c;
}

.ap-menu--scroll {
  max-height: none;
  overflow-y: visible;
  padding-right: 6px;
}

/* Groupes */
.ap-menu-group {
  margin-bottom: 10px;
}

.ap-menu-group__toggle {
  width: 100%;
  background: #e0e0e0;
  padding: 10px 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  border: 1px solid #ddd;
}

.ap-menu-group__toggle:hover,
.ap-menu-group__toggle:focus {
  background: #e0e0e0;
  outline: none;
  color: #333;
  border: 1px solid #ddd;
}

.ap-menu-group__chev {
  font-size: 14px;
  line-height: 1;
}

.ap-placeholder {
  padding: 14px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  color: #666;
}

/* Grid layout pour champs côte à côte dans le formulaire de compte */
.flechettes-account-container .flechettes-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flechettes-account-container .flechettes-fields-row .flechettes-login__field {
  margin-bottom: 0;
}

/* Responsive : une colonne sur mobile */
@media (max-width: 600px) {
  .flechettes-account-container .flechettes-fields-row {
    grid-template-columns: 1fr;
  }
}
