/* ==========================================================================
   JOB243 — Design system
   Couleurs et typographie tirées du logo : bleu marine, dégradé orange « 243 »,
   Montserrat géométrique, capitales espacées de la signature.
   ========================================================================== */

:root {
  --navy-950: #031a40;
  --navy-900: #05265b;
  --navy-800: #0b326f;
  --navy-700: #1a4486;
  --navy-100: #dde5f2;
  --navy-50: #eef2f9;

  --orange-400: #ffa51f;
  --orange-500: #ff9909;
  --orange-600: #fd7416;
  --orange-50: #fff4e8;
  --grad-243: linear-gradient(120deg, #ffa012 0%, #fd7416 100%);

  --ink: #0f1b2d;
  --ink-2: #2b3a52;
  --muted: #5d6c83;
  --faint: #8a97ab;
  --line: #e2e7ef;
  --line-2: #eef1f6;
  --bg: #f6f7fa;
  --paper: #ffffff;

  --green: #1d7a4e;
  --green-50: #e8f5ee;
  --red: #b4232c;
  --red-50: #fcecec;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(5, 38, 91, .06);
  --shadow: 0 1px 2px rgba(5, 38, 91, .05), 0 6px 18px -6px rgba(5, 38, 91, .12);
  --shadow-lg: 0 24px 48px -16px rgba(5, 38, 91, .22);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy-900); letter-spacing: -.015em; }
p { margin: 0; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 15px; height: 15px; flex: none; }
.muted { color: var(--muted); }
.t-243 { background: var(--grad-243); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Signature : capitales espacées, points orange (comme « TROUVEZ. CONNECTEZ. ») */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-800);
}
.eyebrow::after { content: "."; color: var(--orange-600); font-size: 1.4em; line-height: 0; margin-left: -.45em; }
.eyebrow.on-dark { color: #c9d5ea; }

/* Trait « flèche » du logo, sous un mot mis en avant */
.swoosh { position: relative; white-space: nowrap; }
.swoosh svg { position: absolute; left: -2%; bottom: -.28em; width: 104%; height: .42em; overflow: visible; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-accent { background: var(--grad-243); color: #fff; box-shadow: 0 6px 16px -8px rgba(253, 116, 22, .8); }
.btn-accent:hover { color: #fff; filter: brightness(1.04); }
.btn-ghost { background: var(--paper); color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-100); background: var(--navy-50); color: var(--navy-900); }
.btn-link { background: none; color: var(--navy-800); padding: 0; height: auto; }
.btn-danger { background: var(--paper); color: var(--red); border-color: #f1caca; }
.btn-danger:hover { background: var(--red-50); color: var(--red); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--faint); }
.error { font-size: 12.5px; color: var(--red); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font: 500 14.5px var(--font); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235d6c83'%3E%3Cpath d='M5.2 7.2a.75.75 0 0 1 1.06 0L10 10.94l3.74-3.74a.75.75 0 1 1 1.06 1.06l-4.27 4.27a.75.75 0 0 1-1.06 0L5.2 8.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 18px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(26, 68, 134, .12); }
.input::placeholder, .textarea::placeholder { color: #a3aec0; font-weight: 400; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--navy-900); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Badges / puces ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--navy-50); color: var(--navy-800); white-space: nowrap;
}
.badge-orange { background: var(--orange-50); color: #c2540b; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-gray { background: var(--line-2); color: var(--muted); }
/* Offre publiée directement sur JOB243 */
.badge-exclusive { background: linear-gradient(120deg, #fff4e8, #ffe9d6); color: #b94d08; border: 1px solid #fbd3ad; margin-top: 8px; }
.badge-exclusive .icon-sm { color: var(--orange-600); }
.via { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--faint); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.chip:hover { border-color: var(--navy-700); color: var(--navy-900); }
.chip .count { font-weight: 500; color: var(--faint); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip.is-active .count { color: #9fb2d3; }

/* ---------- Cartes ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 22px; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2, .card-head h3 { font-size: 16px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--navy-900); background: var(--navy-50); }
.nav a.is-active { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--orange-500); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 700; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; z-index: 50;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.dropdown-panel a, .dropdown-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 7px; border: 0; background: none;
  font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; text-align: left;
}
.dropdown-panel a:hover, .dropdown-panel button:hover { background: var(--navy-50); color: var(--navy-900); }
.dropdown-panel hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
.mobile-nav { display: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-950); color: #b6c3da; margin-top: 80px; }
.site-footer a { color: #dbe3f1; }
.site-footer a:hover { color: var(--orange-400); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-top h4 { color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-tagline { margin-top: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: #dbe3f1; }
.footer-tagline span { color: var(--orange-500); }

/* ---------- Héros ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 340px at 92% -10%, rgba(255, 153, 9, .10), transparent 60%),
    radial-gradient(700px 300px at -10% 110%, rgba(5, 38, 91, .06), transparent 60%);
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; max-width: 780px; margin-top: 14px; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 600px; margin-top: 18px; }

.search-bar {
  margin-top: 30px; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 0; max-width: 820px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px;
}
.search-bar .seg { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; }
.search-bar .seg + .seg { border-left: 1px solid var(--line); }
.search-bar .seg .icon { color: var(--faint); }
.search-bar input, .search-bar select { border: 0; height: 48px; width: 100%; font: 500 15px var(--font); color: var(--ink); background: transparent; min-width: 0; }
.search-bar input:focus, .search-bar select:focus { outline: none; }
.search-bar select { appearance: none; cursor: pointer; }
.search-bar .btn { height: 48px; }
.search-bar.four { max-width: none; grid-template-columns: 1.4fr 1fr 1fr auto; }

.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { font-size: 13px; color: var(--muted); font-weight: 500; }
.hero-stats strong { display: block; font-size: 24px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }

/* ---------- Sections ---------- */
.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 560px; }

/* ---------- Offres ---------- */
.job-list { display: grid; gap: 12px; }
.job-card {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: start; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { border-color: #c9d4e6; box-shadow: var(--shadow); }
.job-card.is-featured { border-left: 3px solid var(--orange-500); }
.job-card h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.job-card h3 a { color: var(--navy-900); }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-card h3 a:hover { color: var(--navy-700); }
.job-company { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-top: 3px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: relative; z-index: 1; }
.job-date { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.save-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; }
.save-btn:hover { color: var(--orange-600); border-color: #f6c79f; }
.save-btn.is-saved { color: var(--orange-600); background: var(--orange-50); border-color: #f6c79f; }

.logo-box {
  width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-box .initials {
  width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: .02em;
  color: var(--navy-900); background: linear-gradient(145deg, var(--navy-50), #fff);
}
.logo-box.lg { width: 88px; height: 88px; border-radius: 18px; }
.logo-box.lg .initials { font-size: 26px; }

/* ---------- Page liste + filtres ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 34px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-top: 8px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--faint); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

.layout-filters { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding-top: 28px; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters .card-pad { display: flex; flex-direction: column; gap: 16px; }
.filters h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filters-toggle { display: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar .count { font-size: 14px; color: var(--muted); }
.results-bar .count strong { color: var(--navy-900); }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy-800); font-size: 13px; font-weight: 600; }
.active-filters a:hover { background: var(--navy-100); }

/* ---------- Détail d'une offre ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-top: 28px; align-items: start; }
.detail-head { display: flex; gap: 18px; align-items: flex-start; }
.detail-head h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.facts div { padding: 14px 22px; border-bottom: 1px solid var(--line-2); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.facts dt { font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 3px 0 0; font-weight: 600; color: var(--navy-900); font-size: 14.5px; }
.prose { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2, .prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--orange-600); }
.prose a { text-decoration: underline; }
.apply-card { position: sticky; top: 88px; }

/* ---------- Entreprises ---------- */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.company-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; transition: border-color .15s, box-shadow .15s; }
.company-card:hover { border-color: #c9d4e6; box-shadow: var(--shadow); }
.company-card h3 { font-size: 15.5px; }
.company-card h3 a { color: var(--navy-900); }
.company-card h3 a::after { content: ""; position: absolute; inset: 0; }
.company-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line-2); }
.verified { color: #1d6fd1; display: inline-flex; vertical-align: -3px; }

.logo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-strip a { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; font-size: 13.5px; color: var(--navy-900); }
.logo-strip a:hover { border-color: #c9d4e6; }
.logo-strip .logo-box { width: 40px; height: 40px; border-radius: 9px; }
.logo-strip .logo-box .initials { font-size: 13px; }
.logo-strip small { display: block; font-weight: 500; color: var(--faint); font-size: 12px; }

/* ---------- Villes / catégories ---------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.city-grid a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; color: var(--navy-900); }
.city-grid a span { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.city-grid a:hover { border-color: var(--orange-500); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat-grid a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 600; font-size: 14px; }
.cat-grid a:hover { border-color: #c9d4e6; box-shadow: var(--shadow-sm); }
.cat-grid .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-800); flex: none; }
.cat-grid small { display: block; color: var(--faint); font-weight: 500; font-size: 12.5px; }

/* ---------- Bloc CV (accueil) ---------- */
.cv-band { background: var(--navy-900); color: #c9d5ea; border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.cv-band h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-top: 10px; }
.cv-band p { margin-top: 14px; font-size: 15.5px; }
.cv-band ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.cv-band li { display: flex; gap: 10px; align-items: flex-start; color: #dbe3f1; font-size: 14.5px; }
.cv-band li .icon { color: var(--orange-500); margin-top: 2px; }
.cv-stack { position: relative; height: 380px; }
.cv-stack .sheet {
  position: absolute; width: 270px; aspect-ratio: 1 / 1.414; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.cv-stack .sheet:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.cv-stack .sheet:nth-child(2) { left: 26%; top: 0; z-index: 2; }
.cv-stack .sheet:nth-child(3) { right: 0; top: 50px; transform: rotate(6deg); }
.sheet-inner { width: 794px; transform-origin: top left; pointer-events: none; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .num { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Recherche instantanée ---------- */
.suggest { position: relative; width: 100%; min-width: 0; }
.suggest > input { width: 100%; }
.suggest-panel {
  position: absolute; left: -12px; right: -12px; top: calc(100% + 10px); z-index: 60; max-height: min(70vh, 440px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; text-align: left;
}
.suggest-group { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; color: var(--ink); }
.suggest-item:hover, .suggest-item.is-active { background: var(--navy-50); color: var(--navy-900); }
.suggest-item .logo-box { width: 36px; height: 36px; border-radius: 8px; }
.suggest-item .logo-box .initials { font-size: 12px; }
.suggest-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: none; }
.suggest-text { min-width: 0; display: flex; flex-direction: column; }
.suggest-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-text small { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-text mark { background: none; color: var(--orange-600); font-weight: 800; }
.suggest-empty { padding: 14px 12px; font-size: 13.5px; color: var(--muted); }
.field .suggest-panel { left: 0; right: 0; top: calc(100% + 6px); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.pagination a:hover { border-color: var(--navy-700); color: var(--navy-900); }
.pagination .is-current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pagination .is-disabled { color: #c2cad7; }

/* ---------- États vides, alertes ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty .icon-wrap { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-800); }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); margin: 8px auto 18px; max-width: 420px; }
.alert { padding: 13px 16px; border-radius: var(--r); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-50); color: var(--green); }
.alert-error { background: var(--red-50); color: var(--red); }
.alert-info { background: var(--navy-50); color: var(--navy-800); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; box-shadow: var(--shadow-lg); min-width: 280px; max-width: calc(100vw - 32px); }

/* ---------- Authentification ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--navy-900); color: #c9d5ea; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside h2 { color: #fff; font-size: 32px; font-weight: 800; max-width: 420px; margin-top: 12px; }
.auth-aside p { max-width: 420px; margin-top: 14px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--paper); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 26px; font-weight: 800; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; font-weight: 600; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-google:hover { background: var(--bg); color: var(--ink); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick strong { display: block; font-size: 14px; color: var(--navy-900); }
.role-pick span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.role-pick label:has(input:checked) { border-color: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-900); background: var(--navy-50); }

/* ---------- Espace membre ---------- */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 69px); }
.app-side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 69px; height: calc(100vh - 69px); overflow: auto; }
.app-side .who { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.app-side .who strong { display: block; font-size: 14px; color: var(--navy-900); line-height: 1.3; }
.app-side .who small { color: var(--faint); font-size: 12px; }
.side-nav { display: grid; gap: 2px; }
.side-nav .group { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.side-nav a:hover { background: var(--bg); color: var(--navy-900); }
.side-nav a.is-active { background: var(--navy-50); color: var(--navy-900); }
.side-nav a.is-active .icon { color: var(--orange-600); }
.side-nav .icon { color: var(--faint); }
.side-nav .pill { margin-left: auto; font-size: 11.5px; background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.app-main { padding: 28px 32px 60px; min-width: 0; }
.app-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.app-title h1 { font-size: 24px; font-weight: 800; }
.app-title p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 18px 20px; }
.stat small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; margin-top: 4px; }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad-243); border-radius: inherit; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item h3 { font-size: 15px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cartes CV dans l'espace */
.resume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.resume-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.resume-card, .tpl-pick label, .resume-grid > * { min-width: 0; }
.resume-thumb { display: block; aspect-ratio: 1 / 1.1; overflow: hidden; background: #e9edf3; border-bottom: 1px solid var(--line); position: relative; }
/* La feuille A4 (794 px) est réduite et sortie du flux : elle n'élargit jamais la grille. */
.resume-thumb .page { position: absolute; top: 14px; left: 50%; width: 794px; transform: translateX(-50%) scale(var(--s, .26)); transform-origin: top center; background: #fff; min-height: 1123px; box-shadow: 0 8px 30px rgba(0, 0, 0, .12); pointer-events: none; }
.resume-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.resume-card h3 { font-size: 15px; }
.resume-new { display: grid; place-items: center; text-align: center; gap: 10px; border: 1.5px dashed #c6d0e0; border-radius: var(--r-lg); padding: 30px; color: var(--navy-800); font-weight: 700; min-height: 260px; background: transparent; }
.resume-new:hover { border-color: var(--orange-500); color: var(--orange-600); background: var(--paper); }

/* ---------- Éditeur de CV ---------- */
.builder { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; height: calc(100vh - 69px); }
.builder-form { overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); }
.builder-bar { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.builder-bar input { border: 0; font: 700 15px var(--font); color: var(--navy-900); flex: 1; min-width: 0; padding: 6px 0; background: transparent; }
.builder-bar input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--orange-500); }
.save-state { font-size: 12.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.save-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.acc { border-bottom: 1px solid var(--line-2); }
.acc > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; cursor: pointer; font: 700 14.5px var(--font); color: var(--navy-900); text-align: left; }
.acc > button .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-800); font-size: 12px; flex: none; }
.acc > button .meta { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); }
.acc > button .chev { transition: transform .2s; color: var(--faint); }
.acc.is-open > button .chev { transform: rotate(180deg); }
.acc-body { padding: 2px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.repeat { border: 1px solid var(--line); border-radius: var(--r); background: #fbfcfe; }
.repeat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.repeat-head strong { font-size: 13.5px; color: var(--navy-900); flex: 1; min-width: 0; }
.repeat-head button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.repeat-head button:hover { background: var(--paper); border-color: var(--line); color: var(--navy-900); }
.repeat-head button.del:hover { color: var(--red); }
.repeat-body { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1.5px dashed #c6d0e0; border-radius: var(--r); background: none; font: 600 13.5px var(--font); color: var(--navy-800); cursor: pointer; }
.add-row:hover { border-color: var(--orange-500); color: var(--orange-600); }
.mini-grid { display: grid; grid-template-columns: 22px 1fr 120px 34px; gap: 8px; align-items: center; }
.mini-grid button { height: 44px; border: 0; background: none; color: var(--faint); cursor: pointer; }
.mini-grid button:hover { color: var(--red); }
.tpl-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.repeat, .mini-grid, .section-row { touch-action: pan-y; }
.drag { cursor: grab; color: #a3aec0; font-size: 16px; line-height: 1; user-select: none; -webkit-user-select: none; touch-action: none; padding: 10px 6px; margin: -6px -2px; text-align: center; }
.drag:active { cursor: grabbing; color: var(--navy-800); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--orange-500); }
.swatch.auto { width: auto; padding: 0 12px; border-radius: 999px; background: var(--paper); font: 600 12.5px var(--font); color: var(--ink-2); }
.section-list { display: flex; flex-direction: column; gap: 6px; }
.section-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: 14px; font-weight: 600; color: var(--navy-900); }
.section-row .grow { flex: 1; min-width: 0; }
.section-row button { width: 32px; height: 32px; border: 0; background: none; border-radius: 7px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.section-row button:hover:not(:disabled) { background: var(--navy-50); color: var(--navy-900); }
.section-row button:disabled { opacity: .3; cursor: default; }
.section-row.is-hidden { background: var(--bg); color: var(--faint); }
.section-row.is-hidden .grow { text-decoration: line-through; }
[wire\:sort\:item].sortable-ghost, .sortable-ghost { opacity: .4; }
.sortable-chosen { box-shadow: var(--shadow-lg); }
.tpl-pick label { cursor: pointer; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.tpl-pick input { position: absolute; opacity: 0; }
.tpl-pick .mini { position: relative; aspect-ratio: 1 / 1.3; overflow: hidden; border-radius: 4px; background: #eef1f5; margin-bottom: 7px; }
.tpl-pick .mini .page { position: absolute; top: 0; left: 50%; width: 794px; transform: translateX(-50%) scale(var(--s, .14)); transform-origin: top center; background: #fff; min-height: 1123px; pointer-events: none; }
.tpl-pick label:has(input:checked) { border-color: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-900); color: var(--navy-900); }
.photo-field { display: flex; align-items: center; gap: 14px; }
.photo-field .ph { width: 72px; height: 72px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; color: var(--faint); flex: none; }
.photo-field .ph img { width: 100%; height: 100%; object-fit: cover; }

.builder-preview { overflow: auto; background: #e6eaf0; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preview-tools { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 820px; justify-content: space-between; flex-wrap: wrap; }
.paper-frame { width: 100%; max-width: 820px; }
.paper { width: 794px; min-height: 1123px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 50px -12px rgba(5, 38, 91, .25); transform-origin: top left; }
.builder-tabs { display: none; }

/* ---------- Page CV publique ---------- */
.cv-view { background: #e6eaf0; min-height: 100vh; padding: 28px 16px 60px; }
.cv-view .toolbar { max-width: 794px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cv-view .paper-frame { max-width: 794px; margin: 0 auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .layout-filters { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 70; background: rgba(3, 26, 64, .45); padding: 0; display: none; top: 0; }
  .filters.is-open { display: block; }
  .filters .card { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 100%); border-radius: 0; overflow: auto; }
  .filters-toggle { display: inline-flex; }
  .detail-grid { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .cv-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .cv-stack { height: 300px; }
  .cv-stack .sheet { width: 210px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; height: auto; }
  .builder-form { border-right: 0; overflow: visible; }
  .builder-preview { padding: 16px 10px 90px; }
  .builder-tabs {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--navy-900); border-radius: 14px; padding: 5px; box-shadow: var(--shadow-lg);
  }
  .builder-tabs button { height: 44px; border: 0; border-radius: 10px; background: none; color: #c9d5ea; font: 700 14px var(--font); }
  .builder-tabs button.is-active { background: #fff; color: var(--navy-900); }
  .builder[data-tab="form"] .builder-preview { display: none; }
  .builder[data-tab="preview"] .builder-form { display: none; }
  .builder-form { padding-bottom: 80px; }
}

@media (max-width: 980px) {
  .nav, .header-actions .hide-mobile { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--paper); padding: 10px 20px 18px; }
  .mobile-nav a { display: block; padding: 11px 4px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .app-side .who, .side-nav .group { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side-nav a { white-space: nowrap; }
  .app-main { padding: 22px 16px 60px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .search-bar, .search-bar.four { grid-template-columns: 1fr; padding: 8px; gap: 6px; }
  .search-bar .seg + .seg { border-left: 0; border-top: 1px solid var(--line); }
  .search-bar .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .job-card { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
  .job-card .logo-box { width: 44px; height: 44px; }
  .job-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-top: 48px; }
  .cv-band { border-radius: 0; margin: 0 -16px; }
  .cv-stack { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tpl-pick { grid-template-columns: repeat(3, 1fr); }
  .mini-grid { grid-template-columns: 22px 1fr 108px 30px; }
  .list-item { flex-wrap: wrap; padding: 14px 16px; }
}

@media print {
  .no-print { display: none !important; }
  body, .cv-view { background: #fff; padding: 0; }
  .paper { box-shadow: none; }
}
