.ap-account-container {
  display: flex;
  flex-wrap: wrap;
  margin: 100px 0;
}

.ap-sidebar {
  width: 25%;
  min-width: 250px;
  background: #f5f5f5;
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .ap-sidebar {
    width: 100%;
    order: 1;
  }

  .ap-content {
    width: 100%;
    order: 2;
  }

  .ap-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ap-menu a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }
}

@media (max-width: 600px) {
  .ap-menu a {
    flex: 1 1 100%;
  }
}

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: 30px;
}

.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: 10px;
}

.ap-menu a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.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: #2c3e50;
  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: #ffe5e5;
  border-color: #ffcccc;
  color: #b90000 !important;
}

.ap-logout-btn:hover {
  background: #ffd6d6;
  border-color: #ffbaba;
}

.ap-menu--scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

/* Groupes */
.ap-menu-group {
  margin-bottom: 10px;
}

.ap-menu-group__toggle {
  width: 100%;
  background: transparent;
  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;
}