/* ========================================
   OFFRES D'EMPLOI PAGE - MODERN STYLES
   ======================================== */

/* Hero Section Modernization */
.offres-hero {
  background: linear-gradient(135deg, #00156f 0%, #0033a0 50%, #0056b3 100%);
  padding: 100px 0 80px 0; /* Ajout de padding-top pour compenser le header sticky */
  margin-top: 20px; /* Espacement supplémentaire */
  position: relative;
  overflow: hidden;
}

.offres-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.offres-hero .container {
  position: relative;
  z-index: 2;
}

.offres-hero h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.offres-hero .breadcrumbs {
  color: rgba(255,255,255,0.9);
}

.offres-hero .breadcrumbs a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.offres-hero .breadcrumbs a:hover {
  color: white;
}

.offres-hero .hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Main Content Section */
.offres-main-content {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Legend Section Modernization */
.offres-legend {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.offres-legend h3 {
  color: #00156f;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.offres-legend h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #00156f, #0033a0);
  border-radius: 2px;
}

.badge-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.badge.green {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.badge.orange {
  background: linear-gradient(135deg, #fd7e14, #ffc107);
  color: white;
}

.badge.red {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
}

.badge i {
  font-size: 1.1rem;
}

/* DataTable Container Modernization */
.modern-datatable-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.modern-datatable-container h3 {
  color: #00156f;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.modern-datatable-container h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #00156f, #0033a0);
  border-radius: 2px;
}

/* DataTable Customization */
#myTable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#myTable thead {
  background: linear-gradient(135deg, #00156f, #0033a0);
}

#myTable thead th {
  color: white;
  font-weight: 600;
  padding: 20px 15px;
  text-align: left;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#myTable tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f3f4;
}

#myTable tbody tr:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#myTable tbody tr:last-child {
  border-bottom: none;
}

#myTable tbody td {
  padding: 18px 15px;
  border: none;
  vertical-align: middle;
  font-size: 0.95rem;
}

#myTable tbody td a {
  color: #00156f;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
}

#myTable tbody td a:hover {
  color: #0033a0;
  text-decoration: underline;
  transform: translateX(5px);
}

/* Status Badge in Table */
#myTable tbody td .badge {
  padding: 8px 15px;
  font-size: 0.85rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* DataTable Controls Styling */
.dataTables_wrapper {
  margin-top: 30px;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
  margin: 10px 0;
}

.dataTables_length select,
.dataTables_filter input {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
  outline: none;
  border-color: #00156f;
  box-shadow: 0 0 0 3px rgba(0,21,111,0.1);
}

.dataTables_paginate .paginate_button {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 2px;
  color: #00156f;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, #00156f, #0033a0);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,21,111,0.3);
}

.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #00156f, #0033a0);
  color: white;
  box-shadow: 0 4px 15px rgba(0,21,111,0.3);
}

/* Loading Animation */
.dataTables_processing {
  background: linear-gradient(135deg, #00156f, #0033a0);
  color: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,21,111,0.3);
}

/* Empty State */
.dataTables_empty {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .offres-hero h1 {
    font-size: 2.5rem;
  }
  
  .offres-legend,
  .modern-datatable-container {
    padding: 25px 20px;
  }
  
  .badge-container {
    gap: 15px;
  }
  
  .badge {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  #myTable thead th,
  #myTable tbody td {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  .dataTables_wrapper {
    overflow-x: auto;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom Scrollbar */
.dataTables_wrapper::-webkit-scrollbar {
  height: 8px;
}

.dataTables_wrapper::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 4px;
}

.dataTables_wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00156f, #0033a0);
  border-radius: 4px;
}

.dataTables_wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0033a0, #0056b3);
}

/* Les styles partenaires sont maintenant gérés par partners-global.css */