.offres-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Offers List - Responsive Grid */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .offers-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .offers-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Offer Card */
.offer-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.offer-card.liking {
  animation: likeSlideUp 0.3s ease-out forwards;
}

.offer-card.rejecting {
  animation: rejectSlideDown 0.3s ease-out forwards;
}

@keyframes likeSlideUp {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes rejectSlideDown {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.offer-card.top-result {
  border-color: var(--primary-purple);
  box-shadow: 0 4px 12px rgba(106, 62, 235, 0.1);
}

@media (min-width: 768px) {
  .offer-card.top-result {
    grid-column: 1 / -1; /* Full width on tablet */
  }
}

@media (min-width: 1200px) {
  .offer-card.top-result {
    grid-column: auto; /* Normal width on desktop */
  }
}

/* Badges Area */
.card-badges,
.card-badges-simple {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 12px;
  margin-bottom: 0.25rem;
  min-height: 1.5rem;
  flex-wrap: wrap;
}

.card-badges-simple {
  justify-content: flex-end;
}

.badge-purple {
  background: var(--tag-purple-bg);
  color: var(--tag-purple-text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-yellow {
  background: var(--tag-yellow-bg);
  color: var(--tag-yellow-text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.right-align {
  margin-left: auto;
}

/* Offer Title */
.offer-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.offer-card h2.title-purple {
  color: var(--primary-purple);
}

/* Offer Body */
.offer-body {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.offer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.offer-info .company-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0;
}

.offer-info .location {
  font-size: 0.85rem;
  color: var(--text-grey);
}

.offer-info .location em {
  font-style: italic;
}

/* Offer Footer */
.offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
}

.offer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.price .unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-grey);
}

/* Slide View */
.offers-slide {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: min(500px, 68dvh);
  justify-content: center;
}

@media (min-width: 768px) {
  .offers-slide {
    max-width: 500px;
    margin: 0 auto;
  }
}

.slide-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.slide-nav:hover:not(:disabled) {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.slide-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-card {
  flex: 1;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--primary-purple);
  box-shadow: 0 4px 12px rgba(106, 62, 235, 0.1);
  max-width: min(400px, 100%);
}

.slide-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin: 0.5rem 0;
}

.slide-salary {
  margin: 1rem 0;
}

.slide-salary .price {
  font-size: 1.5rem;
}

.slide-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-grey);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.slide-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 1rem 0;
}

.slide-company {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slide-company .company-name {
  font-size: 1rem;
  font-weight: 600;
}

.slide-description {
  font-size: 0.875rem;
  color: var(--text-grey);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.slide-more-btn {
  margin-bottom: 0.75rem;
}

/* Map View */
.map-view-container {
  display: flex;
  gap: 1rem;
  height: calc(100dvh - 200px);
  min-height: 400px;
}

.map-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.map-sidebar::-webkit-scrollbar {
  width: 4px;
}

.map-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.offer-card-mini {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.offer-card-mini:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 4px 12px rgba(106, 62, 235, 0.1);
}

.offer-card-mini .mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.offer-card-mini .mini-price {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.offer-card-mini h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.offer-card-mini .mini-company {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.offer-card-mini .mini-company .company-logo {
  font-size: 1rem;
}

.offer-card-mini .mini-location {
  font-size: 0.75rem;
  color: var(--text-grey);
}

.map-area {
  flex: 1;
  background: var(--bg-body);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-strong);
}

.map-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-grey);
}

.map-placeholder-inner svg {
  opacity: 0.5;
}

.map-placeholder-inner p {
  font-size: 0.9rem;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .map-view-container {
    flex-direction: column-reverse;
    height: auto;
  }

  .map-sidebar {
    width: 100%;
    max-height: 300px;
  }

  .map-area {
    min-height: 300px;
  }
}

/* Like Toast */
.offres-page .like-toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-purple), #8B5CF6);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(106, 62, 235, 0.4);
  z-index: var(--z-toast);
  animation: 
    toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    toastFadeOut 0.4s ease-out 3s forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
  }
}

.offres-page .like-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heartPulse 0.6s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.offres-page .like-toast span {
  font-size: 0.875rem;
  font-weight: 500;
}

.offres-page .like-toast strong {
  font-weight: 700;
}

.offres-page .sparkle-toast {
  color: #FFD700;
  animation: sparklePulse 0.5s ease-in-out infinite;
}

@keyframes sparklePulse {
  0%, 100% { opacity: 1; transform: rotate(0deg); }
  50% { opacity: 0.6; transform: rotate(10deg); }
}

/* Empty Results */
.offres-page .empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  background: white;
  border-radius: 1rem;
  width: 100%;
  max-width: min(400px, 100%);
  margin: 0 auto;
  grid-column: 1 / -1;
}

.offres-page .empty-results span {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.offres-page .empty-results p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* ─── Filter Overlay ─────────────────────────────────────────────────────── */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: var(--z-sheet);
  animation: fadeIn 0.2s ease;
}

/* ─── Filter Panel (slide-in from right) ─────────────────────────────────── */
.filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--surface);
  z-index: var(--z-sheet);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-panel.open {
  transform: translateX(0);
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-c);
  flex-shrink: 0;
}

.filter-panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.filter-panel-close {
  background: var(--bg-body);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-grey);
  transition: background 0.2s;
}

.filter-panel-close:hover {
  background: var(--surface-3);
  color: var(--text-dark);
}

.filter-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-grey);
  margin-bottom: -0.25rem;
}

.filter-hr {
  border: none;
  border-top: 1px solid var(--border-c);
  margin: 0.25rem 0;
}

.filter-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

/* Min/max input fields */
.filter-amounts {
  display: flex;
  gap: 0.75rem;
}

.filter-amount-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.filter-amount-field::before {
  content: attr(data-label);
  font-size: 12px;
  color: var(--text-grey);
  font-weight: 500;
}

.filter-amount-field::after {
  content: attr(data-unit);
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-grey);
  pointer-events: none;
}

.filter-amount-field input {
  padding: 0.5rem 1.5rem 0.5rem 0.625rem;
  border: 1.5px solid var(--border-c);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--surface);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;

  /* Hide browser spin arrows */
  -moz-appearance: textfield;
  appearance: textfield;
}

.filter-amount-field input::-webkit-outer-spin-button,
.filter-amount-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.filter-amount-field input:focus {
  border-color: var(--primary-purple);
}

.filter-panel-sticky {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-c);
  background: var(--surface);
}

/* Shifts Selection Modal (Select availability shifts) */
.shifts-selector-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-sheet);
  animation: fadeIn 0.25s ease;
  padding: 1rem;
}

.shifts-selector-modal {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.shifts-selector-header {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.shifts-selector-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
}

.shifts-selector-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.shifts-selector-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shifts-selector-close-btn:hover {
  background: var(--surface-2);
  color: var(--text-dark);
}

.shifts-selector-content {
  flex: 1;
  min-height: 300px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 0.5rem;
  background: var(--bg-body);
}

.shifts-selector-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.shifts-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  gap: 1rem;
}

.shifts-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(106, 62, 235, 0.1);
  border-top-color: var(--primary-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Offers Tabs */
.offers-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  max-width: var(--site-width-md);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.offers-tab {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-grey);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.offers-tab:hover {
  color: var(--primary-purple);
}

.offers-tab.active {
  color: var(--primary-purple);
}

.offers-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-purple);
  border-radius: 99px;
}

.badge-orange {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}


/* =============================================================
   Offers V2 — sectioned redesign (wg-of-*)
   Green urgent shifts / Purple interested companies / Dark recos
   Mobile-first — colors defined below to be theme-agnostic.
   ============================================================= */

.wg-of-page {
  padding: 1rem;
  width: 100%;
  max-width: min(900px, 100%);
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;

  /* Theme-aware — these used to be hardcoded light-only hex values, which is
     why cards/text stayed white/black regardless of dark mode. */
  --wg-purple: var(--primary);
  --wg-purple-tint: var(--primary-tint);
  --wg-purple-border: color-mix(in srgb, var(--primary) 35%, transparent);
  --wg-green: var(--money);
  --wg-green-tint: var(--money-tint);
  --wg-green-border: color-mix(in srgb, var(--money) 35%, transparent);
  --wg-orange: var(--opp-solid);
  --wg-ink: var(--text);
  --wg-ink-soft: var(--text-2);
  --wg-surface: var(--surface);
  --wg-surface-dark: var(--surface);
  --wg-radius: 16px;
}

/* Full-bleed: la page gère ses propres gouttières (comme dashboard/planning) */
main.app-content:has(.wg-of-page) {
  padding-left: 0;
  padding-right: 0;
}

/* Header */
.wg-of-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: .5rem;
  margin-bottom: .5rem;
}

.wg-of-header__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
}
.wg-of-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--wg-ink);
}
.wg-of-actions-badge {
  background: var(--wg-purple);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.wg-of-actions-badge:hover { filter: brightness(1.05); }

/* Segmented control */
.wg-of-segmented {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 1.25rem;
  gap: 2px;
}
.wg-of-segmented__btn {
  border: none;
  background: transparent;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--wg-ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.wg-of-segmented__btn.is-active {
  background: var(--wg-surface);
  color: var(--wg-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* Sections */
.wg-of-section { margin-bottom: 1.75rem; min-width: 0; }
.wg-of-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .75rem;
  gap: .5rem;
}
.wg-of-section__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wg-ink);
}
.wg-of-section__count {
  font-size: .78rem;
  font-weight: 700;
  color: var(--wg-ink-soft);
  background: var(--surface-2);
  padding: .18rem .55rem;
  border-radius: 999px;
}
.wg-of-section__count--purple {
  background: var(--wg-purple-tint);
  color: var(--wg-purple);
}

/* Horizontal scroller for urgent shifts */
.wg-of-hscroll {
  display: flex;
  gap: .75rem;
  min-width: 0;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* marge négative compensée : l'ombre des cartes respire sans être rognée */
  padding: 6px 1rem .75rem;
  margin: -6px -1rem 0;
  -webkit-overflow-scrolling: touch;
}

.wg-of-hscroll::-webkit-scrollbar { display: none; }
.wg-of-hscroll__item {
  flex: 0 0 82%;
  max-width: 300px;
  scroll-snap-align: start;
  display: flex;
}
.wg-of-hscroll__item > * {
  flex: 1;
  min-width: 0;
}

/* Grid */
.wg-of-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 768px) {
  .wg-of-grid { grid-template-columns: 1fr 1fr; }
}

/* Card — base */
.wg-of-card {
  background: var(--wg-surface);
  border-radius: var(--wg-radius);
  padding: 1rem;
  border: 1px solid var(--border-c);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  cursor: pointer;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  height: 100%;
  width: 100%;
}
/* Hover : la carte "s'active" sans bouger ni déborder du cadre */
.wg-of-card:hover, .wg-of-card:focus-visible {
  border-color: color-mix(in srgb, var(--wg-purple) 35%, var(--border-c));
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
}
.wg-of-card__topline, .wg-of-card__overline {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.wg-of-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wg-ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em; /* 2 lignes réservées → hauteur uniforme */
}
.wg-of-card__company {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.wg-of-card__companymeta { display: flex; flex-direction: column; min-width: 0; }
.wg-of-card__companyname {
  font-weight: 600;
  font-size: .88rem;
  color: var(--wg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-of-card__location {
  font-size: .76rem;
  color: var(--wg-ink-soft);
}

/* Variant: urgent (green) */
.wg-of-card--urgent {
  background: var(--wg-green-tint);
  border-color: var(--wg-green-border);
}
.wg-of-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: 12px;
  font-weight: 700;
  padding: .22rem .5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.wg-of-badge--expire {
  background: var(--wg-surface);
  color: var(--money-ink);
  border: 1px solid var(--wg-green-border);
}
.wg-of-badge--tag {
  background: var(--surface-2);
  color: var(--wg-ink-soft);
}
.wg-of-badge--right { margin-left: auto; }
.wg-of-slot {
  display: inline-block;
  align-self: flex-start;
  background: var(--wg-surface);
  border: 1px solid var(--wg-green-border);
  color: var(--money-ink);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 10px;
}

/* Variant: interested (purple) */
.wg-of-card--interested {
  background:
    linear-gradient(180deg, var(--wg-purple-tint), transparent 60%),
    var(--wg-surface);
  border-color: var(--wg-purple-border);
}
.wg-of-overline-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--wg-purple);
}
.wg-of-overline-date {
  font-size: 12px;
  color: var(--wg-ink-soft);
}

/* Variant: recommendation (standard) */
.wg-of-card--reco {
  background: var(--wg-surface);
  border-color: var(--border-c);
}

/* Availability fit bar */
.wg-of-fit { display: flex; flex-direction: column; gap: .3rem; }
.wg-of-fit__row {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  font-size: .78rem;
}
.wg-of-fit__pct { font-weight: 800; color: var(--wg-ink); }
.wg-of-fit__label { color: var(--wg-ink-soft); }
.wg-of-fit__track {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.wg-of-fit__bar {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}
.wg-of-fit.is-full .wg-of-fit__bar,
.wg-of-fit.is-high .wg-of-fit__bar { background: #10b981; }
.wg-of-fit.is-full .wg-of-fit__pct,
.wg-of-fit.is-high .wg-of-fit__pct { color: #059669; }
.wg-of-fit.is-partial .wg-of-fit__bar,
.wg-of-fit.is-mid .wg-of-fit__bar { background: var(--wg-orange); }
.wg-of-fit.is-partial .wg-of-fit__pct,
.wg-of-fit.is-mid .wg-of-fit__pct { color: #b45309; }

/* Footer / price / CTAs */
.wg-of-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto; /* ancre prix + CTA en bas de carte, quelle que soit la longueur du contenu */
}
.wg-of-price { display: flex; align-items: baseline; gap: .2rem; }
.wg-of-price__amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wg-ink);
  line-height: 1;
}
.wg-of-price__unit {
  font-size: .78rem;
  color: var(--wg-ink-soft);
  font-weight: 500;
}

.wg-of-btn {
  border: none;
  border-radius: 10px;
  padding: .55rem .85rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, background .15s ease;
  white-space: nowrap;
}
.wg-of-btn--primary {
  background: var(--wg-purple);
  color: #fff;
}
.wg-of-btn--primary:hover { filter: brightness(1.05); }
.wg-of-btn--confirm {
  background: var(--wg-purple);
  color: #fff;
}
.wg-of-btn--confirm:disabled { opacity: .6; cursor: wait; }
.wg-of-btn--secondary {
  background: transparent;
  color: var(--wg-purple);
  border: 1.5px solid var(--wg-purple);
}
.wg-of-btn--secondary:hover { background: var(--wg-purple-tint); }

/* ⋯ menu on recos */
.wg-of-more { position: relative; margin-left: auto; }
.wg-of-more__btn {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--wg-ink-soft);
  cursor: pointer;
  padding: .1rem .4rem;
  border-radius: 8px;
}
.wg-of-more__btn:hover { background: var(--surface-2); color: var(--wg-ink); }
.wg-of-more__menu {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 180px;
  background: var(--wg-surface);
  border: 1px solid var(--border-c);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: .25rem;
  z-index: var(--z-popover);
}
.wg-of-more__menu button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: .55rem .7rem;
  font-size: .85rem;
  color: var(--wg-ink);
  cursor: pointer;
  border-radius: 6px;
}
.wg-of-more__menu button:hover { background: var(--surface-2); }

/* Toast */
.wg-of-toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .85rem;
  max-width: calc(100% - 2rem);
}
.wg-of-toast__action {
  border: none;
  background: transparent;
  color: #3BE8B0;
  font-weight: 700;
  cursor: pointer;
  font-size: .85rem;
}

/* Empty */
.wg-of-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--wg-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .wg-of-card, .wg-of-fit__bar { transition: none; }
}

/* Header actions row (radius + focus) */
.wg-of-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  width: 100%;
  margin-bottom: .75rem;
}
.wg-of-actions > * { min-width: 0; }
.wg-of-radius-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-c);
  color: var(--text-2, var(--wg-ink-soft));
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.wg-of-radius-btn:hover,
.wg-of-radius-btn:focus-visible {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

/* État « candidature envoyée » — l'offre reste visible, l'action devient une preuve. */
.wg-of-btn--applied {
  background: var(--primary-tint);
  color: var(--primary-ink);
  border: 1px solid rgba(106, 62, 235, 0.28);
  cursor: default;
  opacity: 1;
}

.offers-tabs::-webkit-scrollbar { display: none; }
.offers-tabs > * { scroll-snap-align: start; flex: 0 0 auto; }
