:root {
  --oppo-bg: #eef7f1;
  --oppo-surface: #ffffff;
  --oppo-border: rgba(22, 93, 49, 0.12);
  --oppo-primary: #11643d;
  --oppo-primary-soft: #def2df;
  --oppo-secondary: #1f7a52;
  --oppo-text: #1e322f;
  --oppo-muted: #55655d;
  --oppo-shadow: 0 26px 60px rgba(20, 69, 39, 0.08);
}

.opportunite-page {
  background: var(--oppo-bg);
  color: var(--oppo-text);
}

.opportunite-page .page-title.dark-background {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 60px 0;
  margin-bottom: 30px;
  box-shadow: 0 26px 70px rgba(14, 56, 28, 0.18);
}

.opportunite-page .page-title.dark-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 41, 23, 0.72), rgba(19, 50, 31, 0.22));
}

.opportunite-page .page-title.dark-background .container {
  position: relative;
  z-index: 1;
}

.opportunite-page .page-title.dark-background h1 {
  font-size: clamp(2.6rem, 2.2vw, 3.4rem);
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.opportunite-page .page-title.dark-background p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin: 0 auto;
}

.opportunite-page .breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.opportunite-page .breadcrumbs li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.opportunite-page .breadcrumbs li.current,
.opportunite-page .breadcrumbs li a {
  color: #fff;
}

.opportunite-page .breadcrumbs li::after {
  content: '•';
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.opportunite-page .breadcrumbs li:last-child::after {
  content: '';
}

.opportunite-page .section-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.opportunite-page .tab-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 79, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--oppo-text);
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.opportunite-page .tab-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 79, 0.3);
}

.opportunite-page .tab-switch.active {
  background: linear-gradient(135deg, var(--oppo-primary), var(--oppo-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 32px rgba(17, 100, 59, 0.16);
}

.opportunite-page .panel-card {
  background: var(--oppo-surface);
  border-radius: 28px;
  border: 1px solid var(--oppo-border);
  box-shadow: var(--oppo-shadow);
  padding: 32px;
}

.opportunite-page .panel-card:not(:last-child) {
  margin-bottom: 30px;
}

.opportunite-page .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.opportunite-page .section-title h2,
.opportunite-page .section-title h3 {
  font-size: clamp(1.5rem, 1.4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.opportunite-page .section-title p {
  margin: 0;
  color: var(--oppo-muted);
}

.opportunite-page .dataTables_wrapper .dataTables_filter input,
.opportunite-page .dataTables_wrapper .dataTables_length select,
.opportunite-page .form-control,
.opportunite-page .form-select {
  border-radius: 16px;
  border: 1px solid rgba(31, 122, 79, 0.18);
  background: #fbfdf9;
  box-shadow: none;
  padding: 12px 16px;
  color: var(--oppo-text);
}

.opportunite-page .dataTables_wrapper .dataTables_filter input:focus,
.opportunite-page .dataTables_wrapper .dataTables_length select:focus,
.opportunite-page .form-control:focus,
.opportunite-page .form-select:focus {
  border-color: var(--oppo-secondary);
  box-shadow: 0 0 0 0.12rem rgba(31, 122, 79, 0.16);
}

.opportunite-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(31, 122, 79, 0.14);
  color: var(--oppo-secondary) !important;
  padding: 10px 16px;
  box-shadow: 0 8px 16px rgba(17, 100, 59, 0.08);
}

.opportunite-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.opportunite-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--oppo-secondary) !important;
  color: #fff !important;
  border-color: transparent;
}

.opportunite-page table.dataTable thead th {
  background: linear-gradient(180deg, rgba(17, 100, 59, 0.12), rgba(17, 100, 59, 0.04));
  color: var(--oppo-text) !important;
  font-weight: 700;
  padding: 18px 18px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(31, 122, 79, 0.12);
}

.opportunite-page table.dataTable tbody td {
  padding: 16px 18px;
  color: var(--oppo-text);
  vertical-align: middle;
  font-size: 0.96rem;
}

.opportunite-page table.dataTable tbody tr:hover {
  background: rgba(17, 100, 59, 0.05);
}

.opportunite-page .table-responsive {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(31, 122, 79, 0.08);
}

.opportunite-page .card {
  border-radius: 26px;
  border: none;
  box-shadow: 0 22px 42px rgba(17, 100, 59, 0.08);
}

.opportunite-page .btn-success {
  background: linear-gradient(135deg, var(--oppo-primary), var(--oppo-secondary));
  border: none;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.opportunite-page .btn-success:hover,
.opportunite-page .btn-success:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(17, 100, 59, 0.18);
}

.opportunite-page .detail-card {
  background: var(--oppo-surface);
  border-radius: 28px;
  border: 1px solid var(--oppo-border);
  padding: 38px;
  box-shadow: var(--oppo-shadow);
}

.opportunite-page .detail-card h2 {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  margin-bottom: 14px;
}

.opportunite-page .detail-card .detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.opportunite-page .detail-meta-item {
  background: var(--oppo-primary-soft);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(17, 100, 59, 0.08);
}

.opportunite-page .detail-meta-item strong {
  display: block;
  color: var(--oppo-secondary);
  margin-bottom: 6px;
  font-weight: 700;
}

.opportunite-page .detail-meta-item span {
  display: block;
  color: var(--oppo-text);
  font-weight: 600;
}

.opportunite-page .detail-section {
  margin-bottom: 36px;
}

.opportunite-page .detail-section h3,
.opportunite-page .detail-section h4,
.opportunite-page .detail-section h5 {
  color: var(--oppo-secondary);
  margin-bottom: 18px;
}

.opportunite-page .detail-section h3 {
  font-size: 1.6rem;
}

.opportunite-page .detail-text,
.opportunite-page .detail-section p,
.opportunite-page .detail-section li {
  color: #47534e;
  line-height: 1.85;
  font-size: 1rem;
}

.opportunite-page .detail-text ul,
.opportunite-page .detail-section ul {
  padding-left: 1.2rem;
  margin-top: 14px;
}

.opportunite-page .detail-text li {
  margin-bottom: 12px;
}

.opportunite-page .statut-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.opportunite-page .status-active { background: #1e7a4f; }
.opportunite-page .status-ferme { background: #c74747; }
.opportunite-page .status-attribue { background: #206ab0; }
.opportunite-page .status-default { background: #6a6b6d; }

.opportunite-page .button-row {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.opportunite-page .detail-footer {
  text-align: center;
  margin-top: 30px;
}

.opportunite-page .card .card-header,
.opportunite-page .card .card-body {
  background: transparent;
}

.opportunite-page .candidate-column {
  display: grid;
  gap: 24px;
}

.opportunite-page .candidate-card {
  border-radius: 24px;
  border: 1px solid rgba(31, 122, 79, 0.1);
  background: #fff;
  padding: 28px;
  box-shadow: 0 22px 42px rgba(17, 100, 59, 0.06);
}

.opportunite-page .candidate-card h3 {
  color: var(--oppo-secondary);
  margin-bottom: 16px;
}

.opportunite-page .candidate-card p {
  color: var(--oppo-muted);
  margin-bottom: 20px;
}

.opportunite-page .candidate-card .btn {
  width: 100%;
}

  /* Admin Dashboard Premium UI */
  .admin-dashboard {
    background: #f4f7f3;
    color: #22342b;
  }

  .admin-dashboard .page-title.dark-background {
    border-radius: 32px;
    padding: 56px 0;
    margin-bottom: 36px;
    box-shadow: 0 38px 110px rgba(18, 83, 45, 0.14);
  }

  .admin-dashboard .page-title.dark-background h1 {
    font-size: clamp(2.8rem, 3vw, 4rem);
    letter-spacing: -0.06em;
    margin-bottom: 16px;
  }

  .admin-dashboard .page-title.dark-background p {
    max-width: 780px;
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .admin-dashboard .dashboard-topbar {
    padding: 32px;
    border-radius: 30px;
    border: 1px solid rgba(33, 81, 43, 0.1);
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(25, 86, 45, 0.08);
  }

  .admin-dashboard .dashboard-topbar h2 {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
  }

  .admin-dashboard .dashboard-topbar p {
    color: #5c6d60;
  }

  .admin-dashboard .sidebar {
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid rgba(33, 81, 43, 0.12);
    box-shadow: 0 28px 78px rgba(25, 86, 45, 0.08);
    padding: 30px 24px;
  }

  .admin-dashboard .sidebar h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f4f34;
  }

  .admin-dashboard .sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #eff7ef;
    border: 1px solid transparent;
    color: #204a34;
    transition: all 0.25s ease;
  }

  .admin-dashboard .sidebar .nav-link:hover {
    background: #e5f2e5;
    color: #1c4a31;
  }

  .admin-dashboard .sidebar .nav-link.active {
    background: linear-gradient(135deg, #1f7d4d, #3bb67b);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(17, 100, 59, 0.18);
  }

  .admin-dashboard .stat-card {
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(33, 81, 43, 0.08);
    padding: 28px 22px;
    box-shadow: 0 22px 46px rgba(25, 86, 45, 0.09);
  }

  .admin-dashboard .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(25, 86, 45, 0.12);
  }

  .admin-dashboard .icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .admin-dashboard .section-card {
    border: 1px solid rgba(33, 81, 43, 0.08);
    border-radius: 30px;
    background: #ffffff;
    padding: 34px;
    box-shadow: 0 24px 56px rgba(25, 86, 45, 0.08);
    margin-bottom: 26px;
  }

  .admin-dashboard .section-card h4 {
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
    color: #1e573f;
  }

  .admin-dashboard .table-responsive {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(33, 81, 43, 0.08);
    box-shadow: 0 24px 52px rgba(25, 86, 45, 0.08);
  }

  .admin-dashboard table th {
    background: #eff9f1 !important;
    color: #1a4f34 !important;
    font-weight: 700;
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(33, 81, 43, 0.12) !important;
  }

  .admin-dashboard table td {
    padding: 18px 20px !important;
    color: #324b3e;
  }

  .admin-dashboard table tbody tr:hover {
    background: rgba(28, 91, 39, 0.05);
  }

  .admin-dashboard .form-control,
  .admin-dashboard .form-select {
    border-radius: 18px;
    border: 1px solid rgba(33, 81, 43, 0.12);
    background: #f8fbf8;
    padding: 14px 16px;
    box-shadow: none;
  }

  .admin-dashboard .custom-file-upload {
    border-radius: 22px;
    padding: 24px;
    background: #f5fbf5;
    border: 1px dashed rgba(33, 81, 43, 0.35);
  }

  .admin-dashboard .custom-file-upload:hover {
    background: #eff7ee;
    border-color: rgba(33, 81, 43, 0.55);
  }

  .admin-dashboard .profile-card {
    padding: 32px;
    border-radius: 28px;
    background: #f4faf4;
    border: 1px solid rgba(33, 81, 43, 0.08);
    box-shadow: 0 26px 56px rgba(25, 86, 45, 0.08);
  }

  .admin-dashboard .profile-card .user-info h4 {
    font-size: 1.65rem;
    margin-bottom: 0.3rem;
  }

  .admin-dashboard .profile-card .btn-outline-success {
    border-color: #1f7f4e;
    color: #1f7f4e;
  }

  .admin-dashboard .profile-card .btn-outline-success:hover {
    background: #1f7f4e;
    color: #ffffff;
  }

  .admin-dashboard .modal-content {
    border-radius: 24px;
    overflow: hidden;
  }

  .admin-dashboard .modal-header {
    background: linear-gradient(135deg, #1d7d4d, #38b179);
    color: #ffffff;
    border-bottom: none;
  }

  .admin-dashboard .modal-body {
    padding: 32px;
  }

  .admin-dashboard .btn-success {
    border-radius: 999px;
    padding: 12px 32px;
    box-shadow: 0 16px 30px rgba(17, 100, 59, 0.18);
  }

  .admin-dashboard .btn-success:hover,
  .admin-dashboard .btn-success:focus {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(17, 100, 59, 0.22);
  }

  .opportunite-page .panel-card {
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(17, 100, 59, 0.1);
    padding: 38px;
    background: #ffffff;
    border: 1px solid rgba(17, 100, 59, 0.08);
  }

  .opportunite-page .section-nav {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 100, 59, 0.12);
    border-radius: 999px;
    box-shadow: 0 24px 68px rgba(17, 100, 59, 0.08);
    padding: 8px;
  }

  .opportunite-page .detail-card {
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(17, 100, 59, 0.1);
    padding: 42px;
    background: #ffffff;
    border: 1px solid rgba(17, 100, 59, 0.08);
  }

  .opportunite-page .detail-card h2 {
    margin-bottom: 0;
  }

  .opportunite-page .detail-meta {
    margin-bottom: 40px;
  }

  .opportunite-page .detail-meta-item {
    border-radius: 20px;
    padding: 18px 20px;
    background: rgba(222, 242, 223, 0.9);
    border: 1px solid rgba(17, 100, 59, 0.1);
  }

  .opportunite-page .detail-meta-item strong {
    color: #1f6b3e;
    display: block;
    margin-bottom: 8px;
  }

  .opportunite-page .detail-action {
    margin-top: 36px;
  }

  .opportunite-page .detail-action .btn {
    min-width: 260px;
    padding: 14px 36px;
  }

  .opportunite-page .detail-text,
  .opportunite-page .detail-section p,
  .opportunite-page .detail-section li {
    font-size: 1rem;
    color: #3d513f;
    line-height: 1.85;
  }

  .opportunite-page .detail-text ul,
  .opportunite-page .detail-section ul {
    padding-left: 1.4rem;
    margin-top: 16px;
  }

  .opportunite-page .detail-text li {
    margin-bottom: 12px;
  }

  .opportunite-page .candidate-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunite-page .candidate-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .opportunite-page .candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 58px rgba(17, 100, 59, 0.1);
  }

  @media (max-width: 992px) {
    .opportunite-page .candidate-column {
      grid-template-columns: 1fr;
    }
  }

@media (max-width: 992px) {
  .opportunite-page .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .opportunite-page .detail-card {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .opportunite-page .page-title.dark-background {
    padding: 42px 0;
  }

  .opportunite-page .tab-switch {
    min-width: 140px;
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .opportunite-page .section-title h2,
  .opportunite-page .section-title h3 {
    font-size: 1.45rem;
  }

  .opportunite-page .candidate-column {
    grid-template-columns: 1fr;
  }
}
