/* ==========================================
   SERVME - PAGES PUBLIC DESKTOP OFFRES
   Offres page desktop - DESKTOP uniquement
   Extrait de offres.css (hors @media mobile)
   ========================================== */

/* ============================================
   VARIABLES
   ============================================ */
/* NOTE: Variables CSS centralisées dans design-system.css */
/* Ce fichier utilise les variables définies dans design-system.css */
/* Alias pour compatibilité */
:root {
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-light: var(--gray-600);
  --border-gray: var(--gray-500);
  --border-light: var(--gray-400);
  --bg-white: var(--white);
  --bg-gray: var(--gray-300);
  --bg-gray-dark: var(--gray-400);
}

/* ============================================
   RESET ET BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family hérite de design-system.css via var(--font-family) */
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER (Identique à landing)
   ============================================ */
.landing-header {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Background sera défini par les règles HEADER FIXE plus bas */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-bottom: 0; /* Pas de margin en bas */
  width: 100%;
}

.landing-logo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: white;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.landing-logo:hover {
  transform: scale(1.05);
}

.landing-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.landing-btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

.landing-btn-primary {
  background: white;
  color: #FF385C;
}

.landing-btn-primary:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.landing-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.landing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Desktop : cacher le bouton hamburger */
/* Styles burger déplacés vers css/components/burger-menu.css */
@media (min-width: 769px) {
  .landing-cta.desktop {
    display: flex;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
/* Hero styles moved to sections/desktop/hero-pages.css */

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   FILTRES
   ============================================ */
.filters-section {
  background: var(--bg-white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.25fr auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  position: relative;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--border-gray);
  border-radius: 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: all 0.2s ease;
  appearance: none;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(34, 34, 34, 0.08);
}

.filter-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23222222' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.filter-input::placeholder {
  color: var(--text-light);
}

.btn-reset {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border-gray);
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-reset:hover {
  background: var(--bg-gray);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-reset svg {
  flex-shrink: 0;
}

.results-count {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#jobCount {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ============================================
   JOBS SECTION
   ============================================ */
.jobs-section {
  padding: 3rem 0 5rem;
  background: var(--bg-gray);
  min-height: 60vh;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   JOB CARD
   ============================================ */
.job-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-light);
}

/* Header */
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.job-salary {
  background: linear-gradient(135deg, #E0F2FF 0%, #DBEAFE 100%);
  color: #0369A1;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Meta */
.job-meta {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.job-company,
.job-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.job-company svg,
.job-location svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Description */
.job-description {
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.job-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.badge {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-cdi {
  background: #D1FAE5;
  color: #065F46;
}

.badge-cdd {
  background: #FEF3C7;
  color: #92400E;
}

.badge-extra {
  background: #F3E8FF;
  color: #6B21A8;
}

.badge-temporaire {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-stage {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-alternance {
  background: #E0E7FF;
  color: #3730A3;
}

.badge-category {
  background: var(--bg-gray-dark);
  color: var(--text-secondary);
}

.job-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Date */
.job-date {
  color: var(--text-light);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.job-date svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline-white {
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  box-shadow: 0 2px 8px rgba(255, 56, 92, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-gray);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--text-primary);
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
  box-shadow: none;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: var(--z-modal, 1000);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-white);
  border-radius: 20px;
  max-width: 560px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.modal-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.benefits-box {
  background: var(--bg-gray);
  border-radius: 16px;
  padding: 1.75rem;
}

.benefits-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

.benefits-list li svg {
  flex-shrink: 0;
}

.premium-hint {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.premium-hint p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.premium-hint strong {
  color: var(--primary);
  font-weight: 700;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: var(--bg-gray);
  border-radius: 0 0 20px 20px;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-container {
  text-align: center;
  padding: 5rem 2rem;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-container p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 500;
}

.no-results,
.error-message {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-white);
  border-radius: 16px;
  grid-column: 1 / -1;
}

.no-results svg,
.error-message svg {
  margin: 0 auto 1.5rem;
  color: var(--text-light);
  stroke-width: 1.5;
}

.no-results h3,
.error-message h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.no-results p,
.error-message p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   Footer styles moved to global-footer.css
   ============================================ */

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE TABLETTE (DESKTOP > 768px)
   ============================================ */
@media (max-width: 1024px) {
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .filter-search {
    grid-column: 1 / -1;
  }
  
  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  
}

/* ========================================
   HEADER FIXE - ULTRA-FIN + ULTRA-TRANSPARENT
   ======================================== */

/* Header styles moved to layout/desktop/header.css */

