:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-soft: #EEF0FF;
  --accent: #FF6B5B;
  --accent-dark: #E85543;
  --ink: #1E1B2E;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --border: #E7E7EF;
  --muted: #6B7280;
  --ok: #0E9F6E;
  --err: #DC2626;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30,27,46,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- Header (blanc, sticky, hamburger) ---------- */
.site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; white-space: nowrap; }
.logo span { color: var(--primary); }
.nav-toggle { display: none; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: .15s; white-space: nowrap; }
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.nav-membre { background: var(--primary); color: #fff; }
.main-nav a.nav-membre:hover { background: var(--primary-dark); color: #fff; }
.main-nav a.nav-membre-on { background: var(--ok); }

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
    gap: 2px; padding: 12px 16px 18px; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-toggle:checked ~ .main-nav { max-height: 480px; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #5B4FE9 0%, #4338CA 55%, #3B2FA8 100%); color: #fff; padding: 84px 0 68px; }
.hero h1 { font-size: 2.7rem; font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 660px; margin-bottom: 30px; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; max-width: 760px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: 0 10px 40px rgba(30,20,80,.25); }
.search-bar input, .search-bar select { flex: 2 1 200px; padding: 14px 16px; border: none; border-radius: 10px; font-size: 0.97rem; font-family: inherit; background: #fff; color: var(--ink); }
.search-bar input[name="ville"], .search-bar select { flex: 1 1 150px; }
.search-bar select { appearance: none; background: var(--bg); font-weight: 600; }
.search-bar button { flex: 1 1 auto; padding: 14px 30px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 0.97rem; cursor: pointer; font-family: inherit; transition: .15s; }
.search-bar button:hover { background: var(--accent-dark); }
.hero-stats { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; }
.hero-stats span { font-size: 0.86rem; color: rgba(255,255,255,0.8); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin-bottom: 26px; }
.sous-titre { color: var(--muted); margin-top: -14px; margin-bottom: 30px; font-size: 1.02rem; }

/* ---------- Univers (3 segments) ---------- */
.univers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.univers-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.univers-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.univers-emoji { font-size: 2.4rem; }
.univers-card h3 { margin: 14px 0 8px; font-size: 1.3rem; color: var(--ink); }
.univers-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; flex: 1; }
.univers-count { margin-top: 20px; font-weight: 700; color: var(--primary); }

/* ---------- Cards & lists ---------- */
.offres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 30px; }
.offre-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.offre-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.offre-titre { font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.offre-meta { font-size: 0.86rem; color: var(--muted); }
.offre-salaire { display: inline-block; font-size: 0.84rem; color: var(--ok); font-weight: 700; margin-top: 8px; }

.offres-list { display: flex; flex-direction: column; gap: 12px; }
.offre-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.offre-row:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.offre-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ---------- Villes & secteurs ---------- */
.villes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.villes-grid a { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-decoration: none; font-size: 0.94rem; font-weight: 600; color: var(--ink); transition: .15s; }
.villes-grid a:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.secteurs-list { display: flex; flex-wrap: wrap; gap: 10px; }
.secteurs-list a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; text-decoration: none; font-size: 0.88rem; color: var(--ink); transition: .15s; }
.secteurs-list a span { color: var(--muted); }
.secteurs-list a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 30px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.96rem; border: none; cursor: pointer; font-family: inherit; transition: .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); margin-left: 10px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #5B4FE9 0%, #4338CA 100%); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 28px; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(135deg, #5B4FE9 0%, #4338CA 100%); color: #fff; padding: 52px 0 42px; }
.page-head h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.page-head p { color: rgba(255,255,255,0.88); font-size: 1rem; }
.page-head-sub { font-size: 1.08rem; color: rgba(255,255,255,0.9); max-width: 660px; margin-bottom: 6px; }

/* ---------- Filters + pills ---------- */
.segment-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: .15s; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters input, .filters select { padding: 12px 15px; border: 1px solid var(--border); border-radius: 12px; font-size: 0.92rem; font-family: inherit; background: var(--surface); }
.filters input { flex: 1 1 160px; }
.filters select { flex: 1 1 200px; max-width: 340px; }
.filters button { padding: 12px 26px; background: var(--primary); color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.filters button:hover { background: var(--primary-dark); }
.empty { color: var(--muted); padding: 26px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 34px; font-size: 0.94rem; }
.pagination a { font-weight: 700; text-decoration: none; color: var(--primary); }
.pagination span { color: var(--muted); }

/* ---------- Offre detail ---------- */
.hero-offre { background: linear-gradient(135deg, #5B4FE9 0%, #4338CA 100%); color: #fff; padding: 52px 0 44px; }
.hero-offre h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.hero-offre .sub { font-size: 1rem; color: rgba(255,255,255,0.9); }
.fil-ariane { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.fil-ariane a { color: rgba(255,255,255,0.9); text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge-offre { background: rgba(255,255,255,0.18); padding: 6px 15px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; }
.offre-body { padding: 44px 0; }
.offre-body .container { max-width: 820px; }
.offre-desc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; font-size: 0.97rem; line-height: 1.75; }
.offre-desc p { margin-bottom: 12px; }
.expired-banner { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: var(--radius); padding: 18px 22px; font-weight: 600; }
.cta-postuler { text-align: center; margin-top: 30px; }
.lien-origine { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.lien-origine a { color: var(--muted); }
.similaires { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0; }
.similaires h2 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.offre-preview { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.offre-preview a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 0.96rem; }
.offre-preview a:hover { color: var(--primary); }
.offre-preview .meta { font-size: 0.83rem; color: var(--muted); margin-top: 4px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px; }
.pricing-free { border-top: 4px solid var(--ok); }
.pricing-paid { border-top: 4px solid var(--primary); }
.pricing-card h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.pricing-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.pricing-card ul { margin: 0 0 26px 20px; font-size: 0.95rem; }
.pricing-card li { margin-bottom: 11px; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-side h2 { font-size: 1.4rem; color: var(--ink); margin-bottom: 16px; }
.steps { margin-left: 20px; font-size: 0.96rem; }
.steps li { margin-bottom: 14px; }
.lead-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.lead-form label { font-size: 0.88rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.lead-form input, .lead-form select, .lead-form textarea { padding: 12px 15px; border: 1px solid var(--border); border-radius: 12px; font-size: 0.94rem; font-family: inherit; font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 54px 0 22px; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; }
.footer-grid p { font-size: 0.86rem; margin-top: 10px; }
.footer-grid h4 { color: #fff; font-size: 0.92rem; margin-bottom: 12px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.86rem; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.logo-footer { font-size: 1.25rem; color: #fff; }
.logo-footer span { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Legal ---------- */
.legal { max-width: 740px; font-size: 0.95rem; }
.legal h2 { font-size: 1.15rem; color: var(--ink); margin: 24px 0 8px; }

/* ---------- Espace membre / verrou ---------- */
.acces-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; }
.acces-card form { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.acces-card label { font-weight: 600; }
.acces-card input[type="email"], .acces-card input[type="text"] { padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; }
.acces-code-input { letter-spacing: 6px; font-size: 1.4rem !important; text-align: center; }
.acces-erreur { color: var(--err); font-weight: 600; }
.acces-ok { color: var(--ok); font-weight: 600; }
.acces-note { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.acces-lock { border: 1px dashed var(--primary); background: var(--primary-soft); border-radius: var(--radius); padding: 22px 26px; margin-top: 8px; }
.nav-membre { font-weight: 700; }
.acces-inline { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.acces-inline input[type="email"] { flex: 1 1 220px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; }
.acces-inline .btn { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 28px; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 1.4rem; }
  .form-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .offre-row { flex-direction: column; align-items: flex-start; }
  .offre-right { width: 100%; justify-content: flex-start; }
  .page-head h1 { font-size: 1.6rem; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { padding: 6px; }
}

/* --- Cartes villes avec photo (demi-cartouche) --- */
.villes-grid a.ville-card { padding: 0; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.ville-photo { display: block; height: 116px; background-size: cover; background-position: center; }
.ville-label { display: block; padding: 13px 16px; font-weight: 700; color: var(--ink); }
.ville-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.ville-card:hover .ville-label { color: var(--primary); }

/* --- Moteur de recherche avancé --- */
.search-adv { max-width: 880px; }
.sa-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sa-row input, .sa-row select { flex: 1 1 180px; padding: 13px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--ink); min-width: 0; }
.sa-btn { flex: 1 1 auto; padding: 13px 30px; background: var(--accent); color: #fff; border: none; border-radius: 11px; font-weight: 700; font-size: 0.95rem; cursor: pointer; font-family: inherit; transition: .15s; }
.sa-btn:hover { background: var(--accent-dark); }
.search-band { background: var(--surface); border-bottom: 1px solid var(--border); padding: 22px 0; }
.search-band .sa-row input, .search-band .sa-row select { border: 1px solid var(--border); background: var(--bg); }
@media (max-width:600px){ .sa-row { flex-direction: column; } }

/* --- Veille automatique --- */
.veille-band { background: var(--indigo-soft); border: 1px solid var(--line, #E7E6F0); border-radius: 16px; padding: 18px 22px; margin-bottom: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.veille-txt { flex: 1 1 260px; }
.veille-txt strong { display: block; color: var(--primary); }
.veille-txt span { font-size: .88rem; color: var(--muted); }
.veille-form { display: flex; gap: 8px; flex: 1 1 300px; }
.veille-form input[type="email"] { flex: 1; padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; }
.veille-form button { padding: 12px 22px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit; }
.veille-form button:hover { background: var(--primary-dark); }
.veille-merci { max-width: 720px; margin: 20px auto; background: #E6F6EF; border: 1px solid #A7E3C8; color: #0E7A54; padding: 16px 20px; border-radius: 12px; font-weight: 600; }

/* --- Offres illustrées --- */
.offre-row { align-items: stretch; }
.offre-thumb { flex: 0 0 84px; width: 84px; border-radius: 10px; background-size: cover; background-position: center; align-self: center; height: 60px; }
.offre-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.offre-card-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-thumb { height: 120px; background-size: cover; background-position: center; }
.card-body { padding: 16px 18px; display: block; }
.hero-offre-inner { display: flex; gap: 26px; align-items: center; }
.hero-offre-text { flex: 1; min-width: 0; }
.hero-offre-visual { flex: 0 0 200px; height: 140px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ent-logo { height: 26px; width: 26px; border-radius: 6px; background: #fff; object-fit: contain; vertical-align: middle; margin-right: 8px; padding: 2px; }
@media (max-width: 680px) { .hero-offre-visual { display: none; } .offre-thumb { flex-basis: 64px; width: 64px; height: 48px; } }

/* --- Outils IA --- */
.outil-bientot { opacity: .6; }
.univers-count.muted { color: var(--muted); }
.lead-form textarea { padding: 12px 15px; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: .95rem; resize: vertical; }
.cv-resultat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; margin-top: 26px; box-shadow: var(--shadow); }
.cv-niveau { color: var(--muted); margin-top: 4px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 20px 0; }
.cv-bloc h3 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.cv-bloc ul { margin-left: 18px; font-size: .92rem; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-comp { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 5px 13px; font-size: .82rem; font-weight: 600; }
.match-score { background: var(--ok); color: #fff; font-weight: 800; border-radius: 999px; padding: 5px 12px; font-size: .82rem; }
@media (max-width:600px){ .cv-grid { grid-template-columns: 1fr; } }

.sa-check { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink); background: #fff; padding: 10px 14px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; white-space: nowrap; }
.search-band .sa-check { background: var(--bg); }
.offre-date { font-size: .84rem; color: rgba(255,255,255,.85); margin-top: 8px; }

/* --- Engagements (issus des avis clients) --- */
.engagements { background: var(--surface); border-top: 1px solid var(--border); }
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.eng { padding: 22px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.eng-i { font-size: 1.7rem; }
.eng h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.eng p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* --- Outils IA : résultats --- */
.reco-list { display: grid; gap: 10px; }
.reco { background: var(--primary-soft); border-radius: 12px; padding: 12px 16px; }
.reco strong { color: var(--primary); display: block; }
.reco span { font-size: .9rem; color: var(--muted); }
.qa-list { display: grid; gap: 12px; }
.qa { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.qa-q { font-weight: 700; }
.qa-c { color: var(--muted); font-size: .92rem; margin-top: 5px; }
.conseil-cle { background: var(--ok-soft, #E6F6EF); border-left: 4px solid var(--ok); padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }


/* --- Barre de recherche : alignement + coins identiques --- */
.search-adv .sa-row { align-items: stretch; }
.search-adv .sa-row > input,
.search-adv .sa-row > select,
.search-adv .sa-check,
.search-adv .sa-btn { height: 48px; border-radius: 11px; }
.search-adv .sa-check { align-items: center; }
.search-adv .sa-row > select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }


/* --- Placeholder grisé des selects (thème de recherche) --- */
.search-adv select:has(option[value=""]:checked) { color: var(--muted); }
.search-adv select option { color: var(--ink); }

/* --- Bot assistant --- */
#le-bot-toggle { position: fixed; bottom: 22px; right: 22px; width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--primary); box-shadow: 0 8px 24px rgba(79,70,229,.4); cursor: pointer; z-index: 200; display: grid; place-items: center; transition: transform .15s; }
#le-bot-toggle:hover { transform: scale(1.06); }
#le-bot-panel { position: fixed; bottom: 92px; right: 22px; width: 350px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 50px rgba(27,24,48,.25); z-index: 200; display: flex; flex-direction: column; overflow: hidden; }
.le-bot-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--primary); color: #fff; }
.le-bot-ava { background: #fff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; }
.le-bot-head strong { display: block; font-size: .95rem; }
.le-bot-head span { font-size: .78rem; opacity: .85; }
#le-bot-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; }
.le-bot-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.le-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.le-bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.le-bot a { color: var(--primary); font-weight: 600; }
.le-user { background: var(--primary); color: #fff; align-self: flex-end; }
.le-bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.le-bot-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 999px; font-family: inherit; font-size: .9rem; }
.le-bot-form button { width: 42px; border: none; background: var(--primary); color: #fff; border-radius: 50%; cursor: pointer; font-size: 1rem; }
/* score hero (matching) */
.score-hero { text-align: center; }
.score-big { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; font-size: 2rem; font-weight: 800; color: #fff; background: conic-gradient(var(--ok) calc(var(--s) * 1%), var(--border) 0); }
.score-big::before { content: ''; position: absolute; width: 92px; height: 92px; border-radius: 50%; background: var(--surface); }
.score-big { position: relative; }
.score-big > * , .score-big { position: relative; }

/* --- Test RIASEC --- */
.riasec-form { display: flex; flex-direction: column; gap: 6px; }
.riasec-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.riasec-t { flex: 1 1 260px; font-size: .94rem; }
.riasec-scale { display: flex; gap: 4px; }
.riasec-scale label { cursor: pointer; }
.riasec-scale input { display: none; }
.riasec-scale span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); font-size: .85rem; }
.riasec-scale input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.riasec-form > button { margin-top: 18px; align-self: flex-start; }
.riasec-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.riasec-bar { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; font-size: .88rem; }
.rb-track { background: var(--border); border-radius: 999px; height: 12px; overflow: hidden; }
.rb-fill { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.riasec-bar.top .rb-fill { background: var(--accent); }
.riasec-bar.top .rb-label { font-weight: 800; color: var(--accent); }
.rb-val { text-align: right; font-variant-numeric: tabular-nums; }
/* --- CV doc (builder) --- */
.cv-doc { background: #fff; color: #1a1a1a; border: 1px solid var(--border); border-radius: 12px; padding: 34px 40px; margin-top: 8px; }
.cv-doc-head { border-bottom: 2px solid var(--primary); padding-bottom: 12px; margin-bottom: 16px; }
.cv-doc-head h2 { font-size: 1.7rem; color: #1a1a1a; }
.cv-doc-titre { color: var(--primary); font-weight: 700; }
.cv-doc-contact { font-size: .88rem; color: #555; margin-top: 4px; }
.cv-doc section { margin-bottom: 16px; }
.cv-doc h3 { font-size: 1rem; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.cv-line { font-size: .92rem; margin-bottom: 4px; }
@media print { .no-print, .site-header, .site-footer, #le-bot, .page-head { display: none !important; } body { background: #fff; } .cv-doc { border: none; padding: 0; } }

/* --- Sélecteur candidat/entreprise --- */
.mode-toggle { display: inline-flex; background: rgba(255,255,255,.15); border-radius: 12px; padding: 4px; margin-bottom: 16px; gap: 4px; }
.mode-btn { border: none; background: transparent; color: rgba(255,255,255,.85); font-weight: 700; font-size: .92rem; padding: 9px 18px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.mode-btn.active { background: #fff; color: var(--primary); }


/* --- Bot : correctif masquage + mobile --- */
#le-bot-panel[hidden] { display: none !important; }
.le-bot-msgs { overscroll-behavior: contain; }
@media (max-width: 600px) {
  #le-bot-toggle { width: 46px; height: 46px; bottom: 14px; right: 14px; }
  #le-bot-toggle svg { width: 24px; height: 24px; }
  /* le panneau remplace le bouton quand il est ouvert */
  #le-bot-toggle.open { display: none; }
  #le-bot-panel {
    inset: auto 8px 8px 8px; width: auto;
    /* dvh = hauteur réelle du viewport (clavier/barre d'adresse déduits) ; vh en secours */
    height: 60vh; height: min(60dvh, 440px);
    max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }
  .le-bot-head { padding: 10px 14px; }
  .le-bot-ava { width: 32px; height: 32px; }
  .le-bot-msgs { padding: 12px; }
  .le-msg { font-size: .88rem; padding: 9px 12px; }
  /* 16px minimum : en dessous, iOS zoome sur le champ et la page reste bloquée zoomée */
  .le-bot-form input { font-size: 16px; padding: 9px 13px; }
  .le-bot-form { padding: 10px; }
  #le-bot-close { font-size: 1.4rem; padding: 4px 8px; }
}

/* ================= Modernisation UI (21/07/2026) =================
   Couche de surcharge : dégradés aurora, élévations, focus rings,
   formulaires compacts sur mobile. Les règles ci-dessous priment
   sur celles du haut du fichier (même spécificité, cascade). */
:root {
  --bg: #F6F7FB;
  --border: #E4E5F0;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(30,27,46,.07);
  --shadow-lift: 0 16px 42px rgba(79,70,229,.15);
  --ring: 0 0 0 3px rgba(79,70,229,.16);
}
h1, h2, h3 { text-wrap: balance; }
.section h2 { font-size: 1.85rem; letter-spacing: -0.028em; }

/* Header : verre dépoli plus net */
.site-header { background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }

/* Bandeaux indigo : halos lumineux (aurora) au lieu de l'aplat */
.hero, .page-head, .hero-offre, .cta-band {
  background:
    radial-gradient(860px 420px at 10% -12%, rgba(255,255,255,.17), transparent 60%),
    radial-gradient(720px 400px at 96% 8%, rgba(255,107,91,.28), transparent 55%),
    linear-gradient(135deg, #5B4FE9 0%, #4338CA 55%, #37299F 100%);
}
.hero h1 { font-size: 3rem; }
.hero-sub { font-size: 1.14rem; }

/* Champs : état focus visible partout */
.search-bar input:focus, .search-bar select:focus,
.sa-row input:focus, .sa-row select:focus,
.filters input:focus, .filters select:focus,
.veille-form input:focus, .lead-form input:focus, .lead-form select:focus,
.lead-form textarea:focus, .acces-inline input:focus, .le-bot-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring); background: #fff;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .pill:focus-visible {
  outline: 3px solid rgba(79,70,229,.35); outline-offset: 2px; border-radius: 10px;
}

/* Boutons : dégradés + relief */
.btn-primary, .main-nav a.nav-membre, .filters button, .veille-form button {
  background: linear-gradient(135deg, #5B4FE9, #4338CA); box-shadow: 0 6px 16px rgba(67,56,202,.25);
}
.btn-gold, .sa-btn, .search-bar button {
  background: linear-gradient(135deg, #FF7A63, #F04E38); box-shadow: 0 6px 16px rgba(240,78,56,.26);
}
.btn:hover, .sa-btn:hover, .search-bar button:hover, .filters button:hover, .veille-form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active, .sa-btn:active, .search-bar button:active { transform: translateY(0) scale(.99); filter: none; }
.btn, .sa-btn, .search-bar button, .filters button, .veille-form button { transition: transform .15s, filter .15s, box-shadow .15s; }

/* Cartes : rayon unifié + élévation au survol */
.univers-card, .pricing-card, .lead-form, .acces-card, .offre-desc, .cv-resultat, .veille-band { border-radius: 18px; }
.offre-row, .offre-card { transition: transform .16s, box-shadow .16s, border-color .16s; }
.offre-row:hover, .offre-card:hover, .villes-grid a.ville-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(79,70,229,.5);
}
.univers-card:hover { box-shadow: var(--shadow-lift); }
.offre-thumb { border-radius: 12px; }
.offre-salaire { background: #E9F9F1; padding: 3px 10px; border-radius: 999px; margin-top: 0; }

/* Pills plus lisibles */
.pill { padding: 10px 18px; }
.pill:hover { background: var(--primary-soft); }
.pill-on { box-shadow: 0 5px 14px rgba(79,70,229,.28); }

/* Barre de recherche du hero : carte flottante */
.search-bar { border-radius: 20px; padding: 10px; box-shadow: 0 20px 55px rgba(18,10,60,.32); }
.search-band { box-shadow: 0 8px 20px rgba(30,27,46,.05); border-bottom: none; }

/* Footer : dégradé profond */
.site-footer { background: linear-gradient(180deg, #211D34 0%, #161320 100%); }

::selection { background: rgba(79,70,229,.22); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --- Mobile : formulaires compacts (champs 44px, sélecteurs sur 2 colonnes) --- */
@media (max-width: 600px) {
  .sa-row { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .search-adv .sa-row > input { flex: 1 1 100%; }
  .search-adv .sa-row > select, .search-adv .sa-check { flex: 1 1 calc(50% - 4px); }
  .search-adv .sa-row > input, .search-adv .sa-row > select, .search-adv .sa-check { height: 44px; }
  /* 16px : évite le zoom automatique iOS sur les champs */
  .search-adv .sa-row input, .search-adv .sa-row select, .search-bar input, .search-bar select { font-size: 16px; padding: 8px 12px; }
  .search-adv .sa-row > select { background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px; padding-right: 30px; }
  .sa-check { font-size: .85rem; justify-content: center; padding: 8px 10px; white-space: normal; }
  .sa-btn { height: 46px; flex: 1 1 100%; padding: 8px 20px; font-size: 1rem; }
  .search-band { padding: 14px 0; }
  .search-bar input, .search-bar select { padding: 11px 14px; }
  .search-bar button { padding: 12px 20px; font-size: 1rem; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .page-head { padding: 38px 0 30px; }
  .veille-band { padding: 14px 16px; gap: 10px; }
}
