/* =========================================================
   Page Offres d'emploi — carte interactive + filtres + cartes
   ========================================================= */

.offres__intro{ max-width:none; }
.offres__intro .lead{ max-width:64ch; }

.offres__layout{ display:grid; grid-template-columns:0.82fr 1fr; gap:40px; margin-top:46px; align-items:start; }

/* Colonne carte (sticky) */
.offres__mapcol{ position:sticky; top:96px; }
.offres__map{ position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px; }
.offres__map svg{ width:100%; height:auto; display:block; }
.offres__map .dep, .idf-inset .dep{ stroke:#8aa0ba; stroke-width:.8; vector-effect:non-scaling-stroke; cursor:pointer; transition:fill .2s var(--ease), filter .2s; outline:none; -webkit-tap-highlight-color:transparent; }
.offres__map .dep:focus, .idf-inset .dep:focus{ outline:none; }
.offres__map .dep:focus-visible, .idf-inset .dep:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.offres__map .dep:hover, .idf-inset .dep:hover{ filter:brightness(.93); stroke:#566f8c; }
.offres__map .dep.sel, .idf-inset .dep.sel{ fill:var(--navy) !important; stroke:var(--navy); stroke-width:1.5; }
.taphint__clear{ border:0; background:none; padding:0 0 0 4px; font:inherit; color:var(--blue); font-weight:600; cursor:pointer; text-decoration:underline; }
.taphint__clear:hover{ color:var(--blue-700); }
/* Inset Île-de-France */
.idf-inset{ display:inline-block; width:172px; margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 10px 8px; box-shadow:var(--shadow-sm); }
.idf-inset__t{ font-size:11px; font-weight:600; letter-spacing:.04em; color:var(--muted); text-align:center; margin-bottom:5px; }
.idf-inset svg{ width:100%; height:auto; display:block; overflow:visible; }

.offres__legend{ display:flex; flex-wrap:wrap; gap:16px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.offres__legend span{ display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--muted); }
.offres__legend i{ width:14px; height:14px; border-radius:4px; display:inline-block; }

.offres__tooltip{ position:fixed; z-index:80; pointer-events:none; background:var(--navy); color:#fff; font-size:13px; padding:7px 11px; border-radius:8px; box-shadow:var(--shadow-md); opacity:0; transform:translateY(4px); transition:opacity .15s; white-space:nowrap; }
.offres__tooltip.on{ opacity:1; transform:none; }
.offres__tooltip b{ display:block; font-family:"Lexend Giga",sans-serif; font-weight:600; font-size:13.5px; }
.offres__taphint{ margin-top:12px; font-size:13px; color:var(--muted); text-align:center; min-height:1.2em; }

/* Filtres */
.offres__filters{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.offres__search{ position:relative; flex:1 1 220px; }
.offres__filterbtn{ display:inline-flex; align-items:center; gap:9px; padding:13px 20px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-family:inherit; font-size:15px; font-weight:600; color:var(--navy); cursor:pointer; transition:border-color .2s, box-shadow .2s; }
.offres__filterbtn:hover{ border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.offres__filterbtn svg{ width:18px; height:18px; }
.fbadge{ min-width:21px; height:21px; padding:0 6px; border-radius:999px; background:var(--blue); color:#fff; font-size:12px; font-weight:600; display:none; align-items:center; justify-content:center; }
.fbadge.on{ display:inline-flex; }

/* Bascule « Mes offres sauvegardées » */
.offres__saved{ display:inline-flex; align-items:center; gap:9px; padding:13px 18px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-family:inherit; font-size:15px; font-weight:600; color:var(--navy); cursor:pointer; transition:border-color .2s, box-shadow .2s, background .2s, color .2s; }
.offres__saved:hover{ border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.offres__saved svg{ width:18px; height:18px; transition:fill .2s; }
.offres__saved.is-on{ background:var(--blue-50); border-color:var(--blue); color:var(--blue); }
.offres__saved.is-on svg{ fill:currentColor; }
.offres__saved:focus-visible{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.fbadge--saved{ background:var(--line-2,#c9d4e2); color:var(--navy); }
.offres__saved.is-on .fbadge--saved{ background:var(--blue); color:#fff; }

/* Drawer de filtres */
.fdrawer-back{ position:fixed; inset:0; background:rgba(16,47,84,.35); opacity:0; visibility:hidden; transition:opacity .3s; z-index:95; }
.fdrawer-back.on{ opacity:1; visibility:visible; }
.fdrawer{ position:fixed; top:0; right:0; height:100vh; width:382px; max-width:92vw; background:var(--surface); z-index:96; transform:translateX(100%); transition:transform .35s var(--ease); display:flex; flex-direction:column; box-shadow:-24px 0 60px rgba(16,47,84,.18); }
.fdrawer.on{ transform:none; }
.fdrawer__head{ display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--line); }
.fdrawer__head h2{ font-size:1.2rem; }
.fdrawer__close{ width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:none; font-size:22px; color:var(--muted); cursor:pointer; line-height:1; transition:.2s; }
.fdrawer__close:hover{ border-color:var(--blue); color:var(--blue); }
.fdrawer__body{ flex:1; overflow-y:auto; padding:24px; }
.fgroup{ margin-bottom:26px; }
.fgroup > label{ display:block; font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.seg, .fchips{ display:flex; flex-wrap:wrap; gap:8px; }
.seg__b, .fchip{ padding:9px 15px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-family:inherit; font-size:14px; color:var(--navy); cursor:pointer; transition:.18s; }
.seg__b:hover, .fchip:hover{ border-color:var(--blue); color:var(--blue); }
.seg__b.active, .fchip.active{ background:var(--blue); border-color:var(--blue); color:#fff; }
.frange{ display:flex; align-items:center; gap:12px; }
.frange input{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:11px; font-family:inherit; font-size:15px; color:var(--ink); background:var(--surface); }
.frange input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.frange span{ color:var(--muted); }
.fdrawer .offres__select, .fdrawer .offres__select select{ width:100%; }
.fdrawer__foot{ display:flex; gap:14px; align-items:center; padding:18px 24px; border-top:1px solid var(--line); }
.fdrawer__reset{ background:none; border:0; color:var(--blue); font-weight:600; font-size:14.5px; cursor:pointer; white-space:nowrap; }
.fdrawer__foot .btn{ flex:1; }
@media (max-width:560px){ .fdrawer{ width:100%; } }
.offres__search svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--muted); }
.offres__search input{ width:100%; padding:13px 14px 13px 42px; border:1px solid var(--line); border-radius:999px; font-family:inherit; font-size:15px; color:var(--ink); background:var(--surface); }
.offres__search input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.offres__select{ position:relative; }
.offres__select select{ appearance:none; padding:13px 40px 13px 16px; border:1px solid var(--line); border-radius:999px; font-family:inherit; font-size:15px; color:var(--ink); background:var(--surface); cursor:pointer; }
.offres__select select:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.offres__select::after{ content:""; position:absolute; right:16px; top:50%; width:8px; height:8px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-65%) rotate(45deg); pointer-events:none; }

.offres__bar{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin:24px 0 18px; flex-wrap:wrap; }
.offres__count{ font-size:15px; color:var(--muted); }
.offres__count b{ color:var(--navy); font-family:"Lexend Giga",sans-serif; }
.offres__reset{ background:none; border:0; color:var(--blue); font-weight:600; font-size:14.5px; display:inline-flex; align-items:center; gap:6px; }
.offres__reset svg{ width:15px; height:15px; }

/* Cartes d'offres */
.offres__grid{ display:flex; flex-direction:column; gap:16px; }
.ojob{ position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.ojob:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:transparent; cursor:pointer; }
.ojob__recav{ width:26px; height:26px; border-radius:50%; background:linear-gradient(150deg,#1c52a0,#2d71d3); color:#fff; font-size:11px; font-weight:600; font-family:"Lexend Giga",sans-serif; display:inline-grid; place-items:center; vertical-align:middle; margin-right:5px; }
img.rec-photo{ object-fit:cover; }
.ojob__top{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.ojob__type{ font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--blue); background:var(--blue-50); padding:5px 11px; border-radius:999px; }
.ojob__date{ font-size:13px; color:var(--muted-soft,#8a97a6); margin-left:auto; }
/* Bouton signet (sauvegarder une offre) — sur la carte : masqué en desktop (le drawer de survol porte le signet), affiché ≤980px où il n'y a pas de drawer */
.ojob .ojob__save{ display:none; }
.ojob__save{ width:34px; height:34px; flex-shrink:0; display:grid; place-items:center; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); cursor:pointer; transition:.18s; }
.ojob__save:hover{ border-color:var(--blue); color:var(--blue); }
.ojob__save svg{ width:17px; height:17px; transition:fill .18s; }
.ojob__save.is-on{ border-color:var(--blue); color:var(--blue); background:var(--blue-50); }
.ojob__save.is-on svg{ fill:currentColor; }
.ojob__save:focus-visible{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.ojob h3{ font-size:1.2rem; margin-bottom:6px; }
.ojob__co{ font-size:15px; color:var(--text); font-weight:500; }
.ojob__meta{ display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:14px; font-size:14.5px; color:var(--muted); }
.ojob__meta span{ display:inline-flex; align-items:center; gap:7px; }
.ojob__meta svg{ width:16px; height:16px; color:var(--blue); }
.ojob__foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); flex-wrap:wrap; }
.ojob__rec{ font-size:13.5px; color:var(--muted); }
.ojob__rec b{ color:var(--navy); font-weight:600; }
.ojob__link{ display:inline-flex; align-items:center; gap:7px; font-weight:600; font-size:14.5px; color:var(--blue); }
.ojob__link svg{ width:16px; height:16px; transition:transform .2s var(--ease); }
.ojob:hover .ojob__link svg{ transform:translateX(3px); }

.offres__empty{ text-align:center; padding:54px 20px; border:1px dashed var(--line-2); border-radius:var(--radius); color:var(--muted); }
.offres__empty svg{ width:38px; height:38px; color:var(--blue-200); margin-bottom:14px; }
.offres__empty .btn{ margin-top:20px; }

/* Bande candidature spontanée (bas de page Offres) */
.spont-cta{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; padding:34px 36px; border-radius:20px; background:var(--navy); color:#fff; }
.spont-cta__txt{ flex:1 1 360px; min-width:0; }
.spont-cta__txt h2{ color:#fff; margin:0; }
.spont-cta__txt p{ color:#bcd0e8; margin:12px 0 0; max-width:62ch; line-height:1.6; }
.spont-cta .btn{ flex-shrink:0; }
@media (max-width:560px){ .spont-cta{ padding:26px 22px; } .spont-cta .btn{ width:100%; } }

/* Bannière alerte e-mail (contextuelle aux filtres) */
.obanner{ display:flex; align-items:center; gap:16px; margin-bottom:18px; padding:15px 18px; border:1px solid var(--blue-200); background:var(--blue-50); border-radius:var(--radius); }
.obanner__ic{ width:40px; height:40px; flex-shrink:0; border-radius:11px; background:#fff; color:var(--blue); display:grid; place-items:center; }
.obanner__ic svg{ width:21px; height:21px; }
.obanner__txt{ flex:1; min-width:0; }
.obanner__txt b{ display:block; font-family:"Lexend Giga",sans-serif; font-weight:600; font-size:15px; color:var(--navy); text-wrap:pretty; }
.obanner__txt span{ display:block; font-size:13.5px; color:var(--muted); margin-top:2px; }
.obanner .btn{ flex-shrink:0; }
@media (max-width:560px){ .obanner{ flex-wrap:wrap; } .obanner__txt{ flex-basis:calc(100% - 56px); } .obanner .btn{ width:100%; } }

/* Drawer alerte (réutilise .fdrawer) */
.adrawer__intro{ font-size:14px; color:var(--muted); line-height:1.6; margin-bottom:22px; }
.ainput{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:11px; font-family:inherit; font-size:15px; color:var(--ink); background:var(--surface); }
.ainput:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-50); }
.aerr{ display:none; color:#b13b36; font-size:13.5px; margin:4px 0 0; }
.aerr.show{ display:block; }
.atoast{ display:none; margin-top:14px; padding:12px 14px; border-radius:11px; background:#e7f6ee; color:#177a48; border:1px solid #bfe6cf; font-size:14px; line-height:1.5; }
.atoast.show{ display:block; }
.alist__h{ font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin:22px 0 12px; }
.achip{ display:flex; align-items:center; gap:10px; justify-content:space-between; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:var(--bg-2); margin-bottom:8px; }
.achip__t{ font-size:13.5px; color:var(--navy); }
.achip__x{ width:26px; height:26px; flex-shrink:0; border:0; border-radius:7px; background:none; color:var(--muted); font-size:18px; line-height:1; cursor:pointer; transition:.18s; }
.achip__x:hover{ background:#fff; color:#b13b36; }
.adrawer__note{ font-size:13px; color:var(--muted); }

/* Teaser espace recruteur */
.espace{ position:relative; overflow:hidden; border-radius:var(--radius-lg); background:var(--navy); color:#cdd9e8; padding:clamp(36px,5vw,60px); }
.espace__glow{ position:absolute; width:420px; height:420px; right:-120px; top:-140px; border-radius:50%; background:radial-gradient(circle,rgba(45,113,211,.45),transparent 70%); filter:blur(40px); pointer-events:none; }
.espace__badge{ display:inline-block; font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--navy); background:var(--blue-200); padding:6px 13px; border-radius:999px; margin-bottom:18px; }
.espace h2{ color:#fff; max-width:20ch; }
.espace p{ color:#a9bace; max-width:60ch; margin-top:16px; font-size:1.05rem; }
.espace .btn{ margin-top:26px; position:relative; z-index:1; }

@media (max-width:980px){
  .offres__layout{ grid-template-columns:1fr; gap:28px; }
  .offres__mapcol{ position:static; max-width:480px; margin-inline:auto; width:100%; }
  .ojob .ojob__save{ display:grid; }
}

/* Drawer aperçu offre (survol desktop) */
.odrawer{ position:fixed; top:0; right:0; width:400px; max-width:90vw; height:100vh; z-index:90; background:var(--surface); border-left:1px solid var(--line); box-shadow:-24px 0 60px rgba(16,47,84,.14); transform:translateX(100%); transition:transform .35s var(--ease); overflow-y:auto; }
.odrawer.on{ transform:none; }
.odrawer__in{ padding:34px 30px; }
.odrawer__type{ display:inline-block; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--blue); background:var(--blue-50); padding:5px 12px; border-radius:999px; }
.odrawer__title{ font-size:1.5rem; margin:16px 0 6px; }
.odrawer__co{ color:var(--text); font-weight:500; font-size:15px; }
.odrawer__sal{ font-family:"Lexend Giga",sans-serif; font-weight:600; color:var(--navy); font-size:1.2rem; margin-top:16px; }
.odrawer__desc{ margin-top:16px; font-size:15px; color:var(--muted); line-height:1.6; }
.odrawer__rec{ display:flex; align-items:center; gap:14px; margin:24px 0; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-2); }
.odrawer__av{ width:52px; height:52px; border-radius:50%; flex-shrink:0; background:linear-gradient(150deg,#1c52a0,#2d71d3); color:#fff; font-family:"Lexend Giga",sans-serif; font-weight:600; font-size:1.05rem; display:grid; place-items:center; }
.odrawer__rec small{ display:block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.odrawer__rec b{ display:block; font-family:"Lexend Giga",sans-serif; color:var(--navy); font-size:1.05rem; margin:2px 0; }
.odrawer__rec span{ font-size:13.5px; color:var(--muted); }
.odrawer__cta{ margin-top:8px; }
.odrawer__cta .btn{ width:100%; }
.odrawer__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
@media (max-width:980px){ .odrawer{ display:none; } }

/* « Recommandées pour vous » — bloc personnalisé en tête de liste (lot expérience candidat) */
.reco{ margin-bottom:30px; padding:22px 22px 24px; background:var(--blue-50,#eef4fc); border:1px solid #d8e6f7; border-radius:18px; }
.reco__h{ font-size:1.15rem; color:var(--navy); margin:0 0 4px; }
.reco__sub{ font-size:13.5px; color:var(--muted); margin:0 0 18px; }
.reco__grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
.reco__grid .ojob{ background:var(--surface); }
