/* ═══════════════════════════════════════════
   RESET & TOKENS
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #f77f00; /* ex-#D0390F — fusionné avec --orange (décision Offres225, 26/11/2026) */
  --red-h:    #e07000; /* ex-#B52E08 — survol, texte #111827 (jamais blanc) sur --red/--orange/--brand */
  --orange:   #f77f00; /* ex-#F5620A — idem --red, même couleur, gardé pour compat (voir usages) */
  --orange-text: #b35400; /* texte/bordure orange sur fond clair : #f77f00 n'y fait que 2,6:1 (AA = 4,5:1).
    #b35400 fait 5,0:1 sur blanc et 4,6:1 sur les fonds clairs (--bg, badges) — jamais #f77f00 comme
    couleur de TEXTE sur fond clair, uniquement comme fond plein (avec texte #111827). */
  --brand:    #0a4d34; /* vert de marque — fonds/éléments de marque uniquement, jamais le texte courant */
  --amber:    #F59E0B;
  --navy:     #111827;
  --navy2:    #1F2937;
  --navy3:    #374151;
  --bg:       #F3F4F8;
  --white:    #FFFFFF;
  --border:   #E5E7EB;
  --border2:  #D1D5DB;
  --mid:      #6B7280;
  --dark:     #111827;
  --success:  #059669;
  --info:     #2563EB;
  --warn:     #985304; /* ex-#D97706 — 3,2:1 sur blanc (badge "Appel d'offres"), insuffisant ; 5,9:1 ici */
  --radius:   10px;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg:0 8px 32px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════
   TICKER
═══════════════════════════════════════════ */
.ticker {
  background: var(--brand);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid var(--red);
}
.ticker-inner {
  display: flex;
  width: max-content;
  /* --ticker-duration est calculée en JS à partir de la largeur réelle du
     contenu (voir header.php) pour viser ~60px/s quel que soit le nombre
     d'annonces ou la largeur de l'écran. 60s est un repli raisonnable tant
     que le script n'a pas encore mesuré le DOM (évite un flash trop rapide). */
  animation: ticker-move var(--ticker-duration, 60s) linear infinite;
}
.ticker-set { display: flex; flex-shrink: 0; }
.ticker:hover .ticker-inner,
.ticker:focus-within .ticker-inner {
  animation-play-state: paused;
}
.t-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,.65); /* .5 passait sur l'ancien fond --navy (5,25:1) mais tombe à 3,72:1 sur --brand ; .65 restaure un contraste AA (5,18:1) */
  letter-spacing: .04em;
}
.t-dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; animation: blink 1.4s infinite; }
.t-item b { color: #ffb14d; font-weight: 500; } /* pas var(--orange) plein (3,76:1 sur --brand, insuffisant) : même teinte claire que "opportunité" dans le hero */
.t-item a:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

@media (max-width: 640px) {
  .t-item { padding: 0 24px; font-size: 10px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Pas d'animation automatique : le bandeau devient une bande défilable
     au doigt/clavier (scroll horizontal natif), avec une seule passe de
     contenu — la seconde (aria-hidden) est purement décorative et masquée. */
  .ticker-inner { animation: none !important; }
  .ticker { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ticker-set[aria-hidden="true"] { display: none; }
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,.04);
}
.header-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 62px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-badge {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
}
.logo-name em { color: var(--orange-text); font-style: normal; }
.logo-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  color: var(--mid);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 13px;
  border-radius: 7px;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--dark); background: var(--bg); }
.nav-link.active { color: var(--orange-text); background: rgba(247,127,0,.07); font-weight: 600; }
.nav-badge {
  background: var(--red);
  color: #111827;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-outline {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  padding: 0 16px;
  height: 36px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  background: none;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--orange-text); color: var(--orange-text); }
.btn-red {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  padding: 0 18px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(247,127,0,.3);
}
.btn-red:hover { background: var(--red-h); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(247,127,0,.35); }

/* ═══════════════════════════════════════════
   HERO SEARCH BANNER
═══════════════════════════════════════════ */
.hero {
  background: var(--brand);
  padding: 52px 28px 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(247,127,0,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 10% 80%, rgba(247,127,0,.12) 0%, transparent 50%);
  pointer-events: none;
}
/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #ffb14d; /* pas var(--orange) plein (3,76:1 sur --brand, insuffisant) */
  margin-bottom: 16px;
  background: rgba(247,127,0,.12);
  border: 1px solid rgba(247,127,0,.25);
  padding: 5px 12px;
  border-radius: 20px;
}
.hero-tag span { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; animation: blink 1.4s infinite; }
.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero h1 .accent { color: #ffb14d; } /* idem : var(--orange) plein insuffisant sur --brand */
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.65); /* .5 tombait à 3,72:1 sur --brand (ex-.navy : 5,25:1) */
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.65;
}

/* Search box */
.search-box {
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 860px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  margin-bottom: 20px;
}
.sf {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 8px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  transition: border-color .15s;
}
.sf:focus-within { border-color: var(--orange-text); background: #fff; }
.sf svg { color: var(--mid); flex-shrink: 0; }
.sf input, .sf select {
  border: none;
  background: none;
  font-size: 13.5px;
  color: var(--dark);
  outline: none;
  width: 100%;
  height: 44px;
}
.sf select { cursor: pointer; }
.sf-divider { width: 1px; background: var(--border); align-self: stretch; margin: 8px 0; }
.btn-search {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  padding: 0 28px;
  height: 48px;
  border: none;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(247,127,0,.35);
}
.btn-search:hover { opacity: .92; transform: translateY(-1px); }

/* Quick filters */
.hero-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-right: 4px;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 12px;
  border-radius: 20px;
  transition: color .15s, background .15s, border-color .15s;
}
.chip:hover { color: #fff; background: rgba(247,127,0,.2); border-color: rgba(247,127,0,.4); cursor: pointer; }

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 860px;
}
.hs { display: flex; flex-direction: column; }
.hs-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}
.hs-num b { color: var(--orange-text); }
.hs-label { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 3px; }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.layout {
  max-width: 1320px;
  margin: 32px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* ═══════════════════════════════════════════
   FILTER SIDEBAR
═══════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.filter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.fc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
}
.fc-reset {
  font-size: 11px;
  color: var(--orange-text);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .15s;
}
.fc-reset:hover { opacity: .7; }
.fc-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }

/* Checkbox filter */
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-family: 'IBM Plex Mono', monospace;
}
.fcheck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.fcheck-left { display: flex; align-items: center; gap: 8px; }
.fcheck input[type=checkbox] { display: none; }
.fcheck-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border2);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.fcheck input:checked ~ .fcheck-left .fcheck-box {
  background: var(--red);
  border-color: var(--red);
}
.fcheck input:checked ~ .fcheck-left .fcheck-box::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 1.5px solid #111827;
  border-bottom: 1.5px solid #111827;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
/* Indicateur de type fixe (archive dédiée) — même rendu visuel que l'état
   coché, sans case à cocher réelle : le type de la page n'est pas modifiable. */
.fcheck-box.checked-static {
  background: var(--red);
  border-color: var(--red);
}
.fcheck-box.checked-static::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 1.5px solid #111827;
  border-bottom: 1.5px solid #111827;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
div.fcheck { cursor: default; }
a.fcheck { text-decoration: none; cursor: pointer; }
.fcheck-name { font-size: 13px; color: var(--dark); }
.fcheck-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--mid);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 10px;
}

/* Range slider style */
.range-wrap { display: flex; flex-direction: column; gap: 8px; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--mid); font-family: 'IBM Plex Mono', monospace; }
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--red) 0%, var(--red) 60%, var(--border2) 60%, var(--border2) 100%);
  border-radius: 4px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */
.main { display: flex; flex-direction: column; gap: 20px; }

/* Toolbar */
.toolbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-count {
  font-size: 13px;
  color: var(--mid);
}
.results-count b { color: var(--dark); font-weight: 700; }

/* Tab pills */
.tab-group {
  display: flex;
  flex-wrap: wrap; /* les 4 pastilles ("Tous"/"Offres d'emploi"/"Appels d'offres"/"Formations")
    ne rentrent plus sur une seule ligne sous ~370px (texte non coupable, white-space:nowrap) ;
    sans ce wrap, le flex-item refuse de rétrécir sous son min-content et pousse .toolbar
    (donc .main, .job-card, .pagination…) en débordement horizontal — reproduit à 360px. */
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tab-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mid);
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: none;
  transition: color .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--white);
  color: var(--orange-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
  font-size: 12.5px;
  color: var(--dark);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 7px 12px;
  background: var(--white);
  outline: none;
  cursor: pointer;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: color .15s, border-color .15s, background .15s;
}
.view-btn.active { background: var(--red); border-color: var(--red); color: #111827; }
.view-btn:hover:not(.active) { border-color: var(--orange-text); color: var(--orange-text); }

/* ── ACTIVE FILTERS ── */
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.af-label { font-size: 11.5px; color: var(--mid); font-weight: 500; }
.af-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--orange-text);
  background: rgba(247,127,0,.08);
  border: 1px solid rgba(247,127,0,.2);
  padding: 3px 10px;
  border-radius: 20px;
}
.af-remove {
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  color: #111827;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   JOB CARDS
═══════════════════════════════════════════ */
.jobs-container { display: flex; flex-direction: column; gap: 12px; }

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .15s;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow);
  animation: cardIn .35s ease both;
}
@keyframes cardIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.job-card:nth-child(1){animation-delay:.03s}
.job-card:nth-child(2){animation-delay:.07s}
.job-card:nth-child(3){animation-delay:.11s}
.job-card:nth-child(4){animation-delay:.15s}
.job-card:nth-child(5){animation-delay:.19s}
.job-card:nth-child(6){animation-delay:.23s}
.job-card:nth-child(7){animation-delay:.27s}
.job-card:nth-child(8){animation-delay:.31s}

.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--orange));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s;
  border-radius: 0 2px 2px 0;
}
.job-card:hover {
  border-color: rgba(247,127,0,.3);
  box-shadow: 0 4px 24px rgba(247,127,0,.1), 0 1px 4px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.job-card:hover::before { transform: scaleY(1); }
.job-card.featured {
  border-color: rgba(245,158,11,.35);
  background: #FFFCF5;
}
.job-card.featured::before { background: linear-gradient(180deg, var(--amber), var(--orange)); }

/* Featured ribbon */
.featured-ribbon {
  position: absolute;
  top: 12px; right: -24px;
  background: var(--amber);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 32px;
  transform: rotate(45deg);
}

/* Org logo placeholder */
.org-logo {
  width: 76px; height: 76px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--mid);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.org-logo.red { background: rgba(247,127,0,.1); color: var(--orange-text); border-color: rgba(247,127,0,.15); }
.org-logo.blue { background: rgba(37,99,235,.08); color: var(--info); border-color: rgba(37,99,235,.12); }
.org-logo.green { background: rgba(5,150,105,.08); color: var(--success); border-color: rgba(5,150,105,.12); }
.org-logo.amber { background: rgba(217,119,6,.08); color: var(--warn); border-color: rgba(217,119,6,.12); }

/* Card body */
.card-body {}
.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag-type-emploi { background: rgba(247,127,0,.08); color: var(--orange-text); }
.tag-type-ao     { background: rgba(217,119,6,.1);  color: var(--warn); }
.tag-type-form   { background: rgba(37,99,235,.08); color: var(--info); }
.tag-urgent { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.tag-nouveau { background: #F0FDF4; color: var(--success); border: 1px solid #BBF7D0; }
.tag-sector { background: var(--bg); color: var(--mid); border: 1px solid var(--border); }

.card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color .15s;
}
.job-card:hover .card-title { color: var(--orange-text); }
.card-org {
  font-size: 12.5px;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-org::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--mid);
}
.meta-item svg { color: var(--muted); }

/* Card right */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.card-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--mid);
  white-space: nowrap;
}
.bookmark-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: color .15s, border-color .15s, background .15s;
}
.bookmark-btn:hover, .bookmark-btn.saved {
  color: var(--orange-text);
  border-color: rgba(247,127,0,.3);
  background: rgba(247,127,0,.06);
}
.apply-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange-text);
  background: rgba(247,127,0,.08);
  border: 1.5px solid var(--orange-text);
  padding: 7px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.apply-btn:hover { background: var(--red); color: #111827; border-color: var(--red); }

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.pg-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.pg-btn:hover { border-color: var(--orange-text); color: var(--orange-text); }
.pg-btn.active { background: var(--red); border-color: var(--red); color: #111827; box-shadow: 0 2px 8px rgba(247,127,0,.3); }
.pg-ellipsis { color: var(--mid); font-size: 14px; padding: 0 4px; }

/* ═══════════════════════════════════════════
   RIGHT SIDEBAR — WIDGETS
═══════════════════════════════════════════ */
.widget-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.w-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.w-ico {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.w-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
}
.w-body { padding: 14px 16px; }

/* Newsletter */
.nl-desc { font-size: 12.5px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.nl-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
  transition: border-color .15s;
  color: var(--dark);
}
.nl-input:focus { border-color: var(--orange-text); }
.nl-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(247,127,0,.25);
  transition: opacity .15s;
}
.nl-btn:hover { opacity: .9; }

/* Alertes emploi */
.alert-form { display: flex; flex-direction: column; gap: 8px; }
.alert-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s;
  color: var(--dark);
}
.alert-input:focus { border-color: var(--orange-text); }
.alert-btn {
  width: 100%;
  background: none;
  border: 1.5px solid var(--orange-text);
  color: var(--orange-text);
  font-size: 13px;
  font-weight: 600;
  padding: 9px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.alert-btn:hover { background: var(--red); color: #111827; }

/* Stats widget */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-cell {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
}
.stat-n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-n.red { color: var(--orange-text); }
.stat-n.orange { color: var(--orange-text); }
.stat-l { font-size: 11px; color: var(--mid); margin-top: 2px; }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.partner-chip {
  height: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .15s, color .15s, background .15s;
  cursor: pointer;
}
.partner-chip:hover { border-color: var(--orange-text); color: var(--orange-text); background: rgba(247,127,0,.04); }

/* Catégories */
.cat-list { display: flex; flex-direction: column; }
.cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left .15s;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { padding-left: 6px; }
/* flex:1/min-width:0 : sans ça, un nom long (ex: "Ministère du Numérique et
   de la Digitalisation") ne rétrécit pas et pousse/chevauche la pastille de
   comptage au lieu de passer à la ligne dans sa propre colonne. */
.cat-row-left { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.cat-ic {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cat-name { font-size: 12.5px; font-weight: 500; color: var(--dark); overflow-wrap: break-word; }
.cat-cnt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--white);
  background: var(--brand);
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
  background: var(--navy);
  margin: 0;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(247,127,0,.2), transparent 60%),
              radial-gradient(ellipse at 20% 50%, rgba(247,127,0,.15), transparent 60%);
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
/* Empile texte + actions par leur propre hauteur naturelle (pas de grand
   vide si la colonne partenaires est plus haute) — voir footer.php. */
.cta-right-stack { display: flex; flex-direction: column; gap: 24px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-recruit h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.cta-recruit p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.65; }
.cta-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.cta-card:hover { background: rgba(255,255,255,.11); border-color: rgba(247,127,0,.35); }
.cta-card-ico {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cta-card-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.cta-card-sub { font-size: 12px; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════
   NOS PARTENAIRES — grille compacte intégrée
   dans la colonne gauche du CTA sombre
   (PAS une section indépendante pleine largeur)
═══════════════════════════════════════════ */
.cta-partners-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.cta-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 4px;
  /* Un seul grand cadre blanc arrondi derrière tous les logos, plutôt que
     28 petites cartes séparées qui donnaient une impression de blocs
     multiples. */
  background: #fff;
  border-radius: 18px;
  padding: 18px;
}
.cta-partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 4px;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: background .15s ease;
}
a.cta-partner-card { cursor: pointer; }
a.cta-partner-card:hover { background: rgba(0,0,0,.04); }
a.cta-partner-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cta-partner-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cta-partner-logo img {
  max-width: 100%;
  max-height: 66px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .cta-partners-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
}
@media (max-width: 780px) {
  .cta-partners-title { font-size: 1.35rem; }
  .cta-partners-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 4px; padding: 12px; border-radius: 14px; }
  .cta-partner-card { height: 70px; padding: 3px; }
  .cta-partner-logo img { max-height: 54px; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 52px 28px 24px;
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.f-logo-img { height: 18px; width: auto; display: block; object-fit: contain; }
.f-logo-badge {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: #111827;
}
.f-logo-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.f-logo-name em { color: var(--orange-text); font-style: normal; }
.f-desc { font-size: 12.5px; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 16px; }
.f-contact { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.9; }
.f-contact a { color: var(--orange-text); transition: color .15s; }
.f-contact a:hover { color: var(--amber); }
.f-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 14px;
}
.f-link {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 9px;
  transition: color .15s;
}
.f-link:hover { color: #fff; }
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.f-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.2);
  letter-spacing: .06em;
}
.socials { display: flex; gap: 8px; }
.soc {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.06);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  font-family: 'IBM Plex Mono', monospace;
  transition: background .15s, color .15s;
}
.soc:hover { background: var(--red); color: #111827; }

/* ─── 3-COLUMN LAYOUT WITH WIDGET PANEL ─── */
.layout-3col {
  max-width: 1320px;
  margin: 32px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .layout-3col { grid-template-columns: 220px 1fr; }
  .widget-panel { display: none; }
}
@media (max-width: 780px) {
  .layout-3col { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .search-box { flex-direction: column; }
  .sf-divider { display: none; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-inner { grid-template-columns: 1fr; gap: 24px; }
  /* Dissout le regroupement desktop pour pouvoir intercaler les partenaires
     entre le texte et les actions, comme demandé sur mobile. */
  .cta-right-stack { display: contents; }
  .cta-recruit { order: 1; }
  .cta-partners { order: 2; }
  .cta-actions { order: 3; }
  .main-nav { display: none; }
  .job-card { grid-template-columns: 40px 1fr; }
  .card-right { display: none; }
}

/* ═══════════════════════════════════════════
   PAGE GÉNÉRIQUE (page.php) — À propos, Mentions légales,
   Confidentialité, CGU, FAQ, Tarifs, Plan du site, Publier une offre...
═══════════════════════════════════════════ */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 48px 28px 80px; }
.page-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.page-content { font-size: 15px; line-height: 1.75; color: var(--navy2); }
.page-content p { margin-bottom: 16px; }
.page-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.page-content ul { margin: 0 0 16px 20px; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--brand); }
.page-content a:hover { text-decoration: underline; }
.page-content em { color: var(--mid); }
