/* ==========================================================================
   A-Connect Job : design system (v2)
   Couleurs issues du logo : bleu #0A4DA8, bleu nuit #082F6B, ambre #FFB020
   ========================================================================== */
:root {
  --ac-primary: #0A4DA8;
  --ac-primary-dark: #082F6B;
  --ac-primary-soft: #E8F0FC;
  --ac-accent: #FFB020;
  --ac-accent-dark: #D97706;
  --ac-ink: #0F1B2D;
  --ac-muted: #64748B;
  --ac-line: #E2E8F0;
  --ac-bg: #F4F7FB;
  --ac-card: #FFFFFF;
  --ac-radius: 18px;
  --ac-shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px rgba(15,27,45,.06);
  --ac-shadow-hover: 0 2px 4px rgba(15,27,45,.05), 0 16px 36px rgba(10,77,168,.14);
  --bs-primary: #0A4DA8;
  --bs-primary-rgb: 10,77,168;
  --bs-link-color: #0A4DA8;
  --bs-link-color-rgb: 10,77,168;
  --bs-link-hover-color: #082F6B;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: #0F1B2D;
  --bs-border-radius: 12px;
}
html { scroll-behavior: smooth; }
body { background: var(--ac-bg); color: var(--ac-ink); -webkit-font-smoothing: antialiased; }
body.has-bottom-nav { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-bottom-nav { padding-bottom: 0; } }
h1, h2, h3, h4, h5 { letter-spacing: -.01em; }
.min-w-0 { min-width: 0; }
a { text-decoration: none; }

/* ---- Boutons ---------------------------------------------------------- */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1.1rem; }
.btn-sm { padding: .35rem .8rem; border-radius: 10px; }
.btn-lg { padding: .8rem 1.4rem; border-radius: 14px; }
.btn-primary { --bs-btn-bg: #0A4DA8; --bs-btn-border-color: #0A4DA8; --bs-btn-hover-bg: #083D86; --bs-btn-hover-border-color: #083D86;
  --bs-btn-active-bg: #082F6B; --bs-btn-active-border-color: #082F6B; --bs-btn-disabled-bg: #0A4DA8; --bs-btn-disabled-border-color: #0A4DA8; }
.btn-outline-primary { --bs-btn-color: #0A4DA8; --bs-btn-border-color: #0A4DA8; --bs-btn-hover-bg: #0A4DA8; --bs-btn-hover-border-color: #0A4DA8; --bs-btn-active-bg: #082F6B; }
.btn-accent { background: var(--ac-accent); border-color: var(--ac-accent); color: #3A2600; }
.btn-accent:hover { background: #FFC24D; border-color: #FFC24D; color: #3A2600; }
.btn-ghost { background: transparent; border: 0; color: var(--ac-ink); display: inline-flex; align-items: center; gap: .4rem; }
.btn-ghost:hover { background: var(--ac-primary-soft); color: var(--ac-primary); }
.form-control, .form-select { border-color: #CBD5E1; padding: .65rem .9rem; border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: var(--ac-primary); box-shadow: 0 0 0 .22rem rgba(10,77,168,.15); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }

/* ---- En-tête ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ac-line); padding: .6rem 0; padding-top: calc(.6rem + env(safe-area-inset-top)); }
.brand img { display: block; height: 40px; width: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; font-size: 1.2rem; color: var(--ac-ink); }
.icon-btn:hover { background: var(--ac-primary-soft); color: var(--ac-primary); }
.bell-badge, .bn-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #E11D48; color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.avatar-btn { border: 2px solid var(--ac-primary-soft); border-radius: 50%; padding: 0; background: none; overflow: hidden; width: 42px; height: 42px; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dropdown-menu { border-radius: 14px; border-color: var(--ac-line); padding: .4rem; }
.dropdown-item { border-radius: 9px; padding: .5rem .7rem; }

/* ---- Notifications (cloche) -------------------------------------------- */
.notif-menu { width: min(380px, 92vw); border-radius: 16px; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--ac-line); }
.notif-list { max-height: 55vh; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: .8rem 1rem; color: inherit; border-bottom: 1px solid #F1F5F9; cursor: pointer; }
.notif-item:hover { background: #F8FAFC; color: inherit; }
.notif-item.unread { background: #F2F7FF; }
.notif-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ac-primary-soft); color: var(--ac-primary); }
.notif-item.t-rappel_offre .notif-ico { background: #FFF4DC; color: var(--ac-accent-dark); }
.notif-item.t-candidature .notif-ico { background: #E6F7EE; color: #047857; }
.notif-item.t-offre_cloturee .notif-ico, .notif-item.t-compte .notif-ico { background: #F1F5F9; color: #475569; }
.notif-title { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.notif-msg { font-size: .83rem; color: var(--ac-muted); margin-top: 2px; }
.notif-time { font-size: .75rem; color: #94A3B8; margin-top: 3px; }
.notif-empty { padding: 2rem 1rem; text-align: center; color: var(--ac-muted); }
.notif-foot { display: block; text-align: center; padding: .7rem; font-weight: 600; font-size: .9rem; border-top: 1px solid var(--ac-line); }

/* ---- Barre du bas (mobile) --------------------------------------------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-top: 1px solid var(--ac-line); padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); }
.bottom-nav a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .3rem 0;
  color: var(--ac-muted); font-size: .7rem; font-weight: 600; border-radius: 12px; }
.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--ac-primary); }
.bottom-nav a.active i { background: var(--ac-primary-soft); border-radius: 12px; padding: 3px 16px; }
.bn-badge { top: 0; right: calc(50% - 22px); }

/* ---- Pied de page ------------------------------------------------------ */
.site-footer { margin-top: 3.5rem; padding: 2rem 0; background: #fff; border-top: 1px solid var(--ac-line); color: var(--ac-muted); }
.site-footer a { color: var(--ac-muted); }
.site-footer a:hover { color: var(--ac-primary); }

/* ---- Accueil : hero ---------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 3rem 0 5rem;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(255,176,32,.35), transparent 60%), linear-gradient(135deg, #0C63DB 0%, #082F6B 100%); }
.hero::after { content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--ac-bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1 { font-weight: 800; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--ac-accent); }
.hero p.lead { color: rgba(255,255,255,.85); max-width: 560px; }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem; }
.search-bar { margin-top: -2.2rem; position: relative; z-index: 5; background: #fff; border-radius: 18px; padding: .5rem; box-shadow: var(--ac-shadow-hover); display: flex; gap: .5rem; }
.search-bar .form-control { border: 0; box-shadow: none !important; background: transparent; font-size: 1.05rem; }
.search-bar .fa-search { align-self: center; color: var(--ac-muted); margin-left: .8rem; }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .1rem .6rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--ac-line); color: var(--ac-ink); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--ac-primary); color: var(--ac-primary); }
.chip.active { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }

/* ---- Cartes d'offres --------------------------------------------------- */
.job-card { position: relative; display: flex; flex-direction: column; background: var(--ac-card); border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); transition: transform .18s, box-shadow .18s; animation: acUp .35s ease both; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--ac-shadow-hover); }
.job-card.is-priority { border-color: rgba(255,176,32,.7); }
.job-ribbon { position: absolute; top: -10px; right: 14px; background: var(--ac-accent); color: #3A2600; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(217,119,6,.25); }
.job-link { display: block; padding: 1.1rem 1.1rem .4rem; color: inherit; flex: 1; }
.job-link:hover { color: inherit; }
.co-avatar { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--c, var(--ac-primary)); }
.job-title { font-size: 1.04rem; font-weight: 700; margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.job-company { color: var(--ac-muted); font-size: .88rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 .5rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 8px; background: #F1F5F9; color: #475569; }
.tag-blue { background: var(--ac-primary-soft); color: var(--ac-primary); }
.job-excerpt { color: #475569; font-size: .9rem; margin: 0 0 .5rem; }
.job-foot { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1.1rem; border-top: 1px dashed var(--ac-line); }
.deadline { font-size: .82rem; color: var(--ac-muted); font-weight: 600; }
.deadline.urgent { color: #E11D48; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ac-muted); background: #fff; border: 1px dashed #CBD5E1; border-radius: var(--ac-radius); }
.empty-state i { font-size: 2.4rem; color: #94A3B8; }
.empty-state h4 { margin-top: .6rem; color: var(--ac-ink); font-size: 1.15rem; }
.skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: acShine 1.3s infinite; border-radius: var(--ac-radius); height: 200px; }
@keyframes acShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes acUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Bandeau d'appel à l'action ---------------------------------------- */
.cta-band { background: linear-gradient(135deg, #082F6B, #0A4DA8); color: #fff; border-radius: 24px; padding: 2rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,176,32,.25); }
.cta-band > * { position: relative; z-index: 1; }

/* ---- Tableau de bord --------------------------------------------------- */
.dash-layout { display: grid; gap: 1.5rem; padding-top: 1.5rem; }
@media (min-width: 992px) { .dash-layout { grid-template-columns: 260px 1fr; } .dash-side { position: sticky; top: 84px; align-self: start; } }
.side-card, .panel { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); }
.side-card { padding: 1.3rem 1rem; margin-bottom: 1rem; }
.side-avatar { border-radius: 50%; object-fit: cover; border: 3px solid var(--ac-primary-soft); }
.side-nav { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: .5rem; box-shadow: var(--ac-shadow); }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; color: #334155; font-weight: 600; }
.side-nav a:hover { background: #F1F5F9; }
.side-nav a.active { background: var(--ac-primary-soft); color: var(--ac-primary); }
.panel { padding: 1.3rem; }
.panel-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.panel-title i { color: var(--ac-primary); }
.stat-card { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 1.1rem 1.2rem; box-shadow: var(--ac-shadow); height: 100%; }
.stat-card .num { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--ac-primary); }
.stat-card .lbl { color: var(--ac-muted); font-size: .85rem; margin-top: .3rem; }
.welcome { background: linear-gradient(135deg, #0C63DB, #082F6B); color: #fff; border-radius: var(--ac-radius); padding: 1.4rem 1.5rem; }
.welcome h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .25rem; }
.welcome p { margin: 0; color: rgba(255,255,255,.85); }
.progress-slim { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); }
.progress-slim .progress-bar { background: var(--ac-accent); border-radius: 99px; }

/* ---- Authentification -------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--ac-line); border-radius: 24px; box-shadow: var(--ac-shadow-hover); padding: 2rem 1.6rem; }
.auth-card .logo { display: block; margin: 0 auto 1.2rem; height: 54px; }
.auth-card h1 { font-size: 1.4rem; font-weight: 800; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ac-muted); margin-bottom: 1.4rem; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick label { border: 2px solid var(--ac-line); border-radius: 16px; padding: .9rem .5rem; text-align: center; cursor: pointer; font-weight: 700; transition: .15s; }
.role-pick label i { display: block; font-size: 1.6rem; margin-bottom: .3rem; color: #94A3B8; }
.role-pick input:checked + label { border-color: var(--ac-primary); background: var(--ac-primary-soft); color: var(--ac-primary); }
.role-pick input:checked + label i { color: var(--ac-primary); }
.role-pick input:focus-visible + label { box-shadow: 0 0 0 .22rem rgba(10,77,168,.2); }
.otp-input { letter-spacing: .35em; text-align: center; font-size: 1.4rem; font-weight: 700; }

/* ---- Profil ------------------------------------------------------------ */
.profile-photo { position: relative; width: 96px; height: 96px; }
.profile-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--ac-primary-soft); }
.profile-photo label { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ac-primary); color: #fff; display: grid; place-items: center; cursor: pointer; border: 3px solid #fff; }
.interest-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--ac-primary-soft); color: var(--ac-primary); font-weight: 600; padding: .4rem .5rem .4rem .85rem; border-radius: 999px; }
.interest-pill button { border: 0; background: rgba(10,77,168,.15); color: var(--ac-primary); width: 22px; height: 22px; border-radius: 50%; line-height: 1; padding: 0; }
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; box-shadow: var(--ac-shadow-hover); max-height: 240px; overflow-y: auto; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .6rem .9rem; }
.ac-list button:hover, .ac-list button.focus { background: var(--ac-primary-soft); }
.file-row { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px dashed #CBD5E1; border-radius: 14px; }
.file-row .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--ac-primary-soft); color: var(--ac-primary); display: grid; place-items: center; font-size: 1.2rem; }

/* ---- Détail d'une offre ------------------------------------------------ */
.offer-head { background: #fff; border: 1px solid var(--ac-line); border-radius: 24px; padding: 1.5rem; box-shadow: var(--ac-shadow); }
.offer-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.offer-meta div { background: #F8FAFC; border-radius: 14px; padding: .7rem .9rem; }
.offer-meta small { display: block; color: var(--ac-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.offer-meta strong { font-size: .95rem; }
.offer-desc { white-space: pre-line; line-height: 1.7; }

/* ---- Tableaux & listes ------------------------------------------------- */
.table-clean { --bs-table-bg: transparent; margin: 0; }
.table-clean th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ac-muted); font-weight: 700; border-bottom-width: 1px; }
.table-clean td { vertical-align: middle; }
.row-notif { display: flex; gap: .9rem; padding: 1rem; border-bottom: 1px solid #F1F5F9; color: inherit; }
.row-notif:last-child { border-bottom: 0; }
.row-notif.unread { background: #F2F7FF; }
.row-notif:hover { color: inherit; background: #F8FAFC; }
.badge-soft-success { background: #DCFCE7; color: #166534; }
.badge-soft-warning { background: #FEF3C7; color: #92400E; }
.badge-soft-danger { background: #FFE4E6; color: #9F1239; }
.badge-soft-secondary { background: #E2E8F0; color: #334155; }

/* ---- Divers ------------------------------------------------------------ */
.toast-container { z-index: 2000; margin-top: env(safe-area-inset-top); }
.toast { border-radius: 14px; }
.section-title { font-weight: 800; font-size: 1.35rem; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6rem; color: var(--ac-primary-dark); }
.legal p, .legal li { color: #334155; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ==========================================================================
   v3 : animations, carrousels, accueil type "vraie plateforme d'emploi"
   ========================================================================== */
.main-links { display: flex; gap: .2rem; }
.main-links a { padding: .5rem .85rem; border-radius: 10px; font-weight: 600; color: #334155; }
.main-links a:hover { background: var(--ac-primary-soft); color: var(--ac-primary); }

/* ---- Animations utilitaires */
.anim-up { animation: acUp .75s cubic-bezier(.2,.7,.2,1) both; }
.anim-up.d1 { animation-delay: .08s; } .anim-up.d2 { animation-delay: .16s; } .anim-up.d3 { animation-delay: .24s; } .anim-up.d4 { animation-delay: .32s; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.rotator { display: inline-block; color: var(--ac-accent); transition: opacity .35s, transform .35s; }
.rotator.out { opacity: 0; transform: translateY(-12px); }

/* ---- Hero */
.hero { padding: 3.4rem 0 3.6rem; }
.hero::after { display: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; animation: acFloat 14s ease-in-out infinite; pointer-events: none; }
.blob.b1 { width: 340px; height: 340px; background: #3B82F6; left: -90px; top: -70px; }
.blob.b2 { width: 300px; height: 300px; background: #FFB020; right: -60px; top: 30px; opacity: .32; animation-delay: -4s; }
.blob.b3 { width: 260px; height: 260px; background: #22D3EE; left: 42%; bottom: -130px; opacity: .22; animation-delay: -8s; }
@keyframes acFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(34px, -26px) scale(1.1); } }
.hero-search { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: .35rem; max-width: 880px; padding: .5rem; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(3,20,60,.35); }
.hs-field { display: flex; align-items: center; gap: .55rem; padding: 0 .9rem; border-right: 1px solid var(--ac-line); min-width: 0; color: var(--ac-muted); }
.hs-field:nth-child(3) { border-right: 0; }
.hs-field input, .hs-field select { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; padding: .85rem 0; color: var(--ac-ink); font-size: .98rem; text-overflow: ellipsis; }
@media (max-width: 991px) { .hero-search { grid-template-columns: 1fr; } .hs-field { border-right: 0; border-bottom: 1px solid var(--ac-line); } }
.quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.quick-tags a { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .2rem .75rem; border-radius: 999px; font-weight: 600; transition: .2s; }
.quick-tags a:hover { background: #fff; color: var(--ac-primary); }
.hero-stack { position: relative; height: 310px; }
.mini-card { position: absolute; display: flex; align-items: center; gap: .75rem; width: 320px; padding: .8rem 1rem; background: #fff; color: var(--ac-ink); border-radius: 18px; box-shadow: 0 18px 40px rgba(3,20,60,.3); animation: acBob 6s ease-in-out infinite; }
.mini-card strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card small { color: var(--ac-muted); }
.mini-card .tag { margin-left: auto; flex: 0 0 auto; }
.mini-card.m1 { top: 0; right: 24px; } .mini-card.m2 { top: 104px; right: 96px; animation-delay: -2s; } .mini-card.m3 { top: 208px; right: 8px; animation-delay: -4s; }
@keyframes acBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* ---- Bandeau défilant */
.marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--ac-line); padding: .85rem 0; }
.marquee-track { display: flex; width: max-content; animation: acMarquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; font-weight: 600; color: #475569; padding: 0 1.3rem; }
.marquee-track i { color: var(--ac-primary); margin-right: .45rem; }
@keyframes acMarquee { to { transform: translateX(-50%); } }

/* ---- Statistiques */
.home-main { padding-bottom: 1rem; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.stats-strip div { background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; padding: 1.1rem .8rem; text-align: center; box-shadow: var(--ac-shadow); }
.stats-strip b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--ac-primary); line-height: 1.1; }
.stats-strip span { font-size: .82rem; color: var(--ac-muted); }
@media (max-width: 767px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Carrousels */
.rail { margin: 2.4rem 0; }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.rail-title { font-size: 1.35rem; font-weight: 800; margin: 0; }
.rail-title i { color: var(--ac-primary); margin-right: .2rem; }
.rail-sub { margin: .15rem 0 0; color: var(--ac-muted); font-size: .9rem; }
.rail-ctrl { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.rail-more { font-weight: 700; font-size: .9rem; margin-right: .5rem; white-space: nowrap; }
.rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink); display: grid; place-items: center; transition: .2s; }
.rail-btn:hover:not(:disabled) { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.rail-btn:disabled { opacity: .35; }
.rail.no-scroll .rail-btn { display: none; }
@media (max-width: 575px) { .rail-btn { display: none; } .rail-title { font-size: 1.15rem; } }
.rail-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: .9rem .25rem 1.3rem; margin: -.9rem -.25rem -1.3rem; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail-track.dragging a { pointer-events: none; }
.slide { flex: 0 0 min(86%, 345px); scroll-snap-align: start; display: flex; }
.slide > .job-card { width: 100%; }
.slide.slide-sm { flex-basis: min(64%, 215px); }

/* ---- Tuiles secteurs / régions / entreprises */
.sector-tile { display: flex; flex-direction: column; gap: .3rem; width: 100%; background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; padding: 1.1rem; color: inherit; box-shadow: var(--ac-shadow); transition: transform .2s, box-shadow .2s; }
.sector-tile i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ac-primary-soft); color: var(--ac-primary); font-size: 1.3rem; margin-bottom: .5rem; transition: .2s; }
.sector-tile strong { font-size: .98rem; line-height: 1.25; }
.sector-tile span { font-size: .8rem; color: var(--ac-muted); }
.sector-tile:hover { transform: translateY(-5px); box-shadow: var(--ac-shadow-hover); color: inherit; }
.sector-tile:hover i { background: var(--ac-primary); color: #fff; transform: rotate(-6deg) scale(1.06); }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.geo-tile { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--ac-line); border-radius: 16px; padding: .95rem 1rem; color: inherit; transition: .2s; }
.geo-tile i { color: var(--ac-primary); font-size: 1.15rem; margin-bottom: .25rem; }
.geo-tile strong { font-size: .98rem; }
.geo-tile span { font-size: .78rem; color: var(--ac-muted); }
.geo-tile:hover { transform: translateY(-3px); border-color: var(--ac-primary); box-shadow: var(--ac-shadow-hover); color: inherit; }
.geo-special { background: linear-gradient(135deg, #0C63DB, #082F6B); border: 0; color: #fff; }
.geo-special i, .geo-special span { color: rgba(255,255,255,.85); }
.geo-special:hover { color: #fff; border: 0; }
.employer-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; text-align: center; padding: 1.3rem 1rem; background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; color: inherit; box-shadow: var(--ac-shadow); transition: .2s; }
.employer-card strong { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.employer-card:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow-hover); color: inherit; }
.how-step { position: relative; height: 100%; background: #fff; border: 1px solid var(--ac-line); border-radius: 20px; padding: 1.6rem 1.3rem; box-shadow: var(--ac-shadow); text-align: center; transition: .25s; }
.how-step:hover { transform: translateY(-4px); }
.how-step > i { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto .8rem; font-size: 1.6rem; background: var(--ac-primary-soft); color: var(--ac-primary); }
.how-step .n { position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--ac-accent); color: #3A2600; }
.how-step h3 { font-size: 1.05rem; font-weight: 800; }
.how-step p { color: var(--ac-muted); font-size: .92rem; margin: 0; }

/* ---- Cartes : logos, badges */
.co-avatar { overflow: hidden; }
.co-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-avatar.sm { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; font-size: .9rem; }
.co-avatar.lg { flex-basis: 64px; width: 64px; height: 64px; border-radius: 18px; font-size: 1.2rem; }
.tag-amber { background: #FFF4DC; color: #92400E; } .tag-green { background: #DCFCE7; color: #166534; }
.ribbon-new { background: var(--ac-primary); color: #fff; box-shadow: 0 4px 10px rgba(10,77,168,.25); }
.job-salary { font-size: .85rem; font-weight: 700; color: #047857; margin-bottom: .3rem; }
.job-card:hover .btn-primary { transform: scale(1.04); }

/* ---- Page de recherche */
.page-hero { background: linear-gradient(135deg, #0C63DB 0%, #082F6B 100%); color: #fff; padding: 2rem 0 2.2rem; margin-bottom: 1.5rem; }
.page-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 1rem; }
.page-hero .search-bar { margin-top: 0; max-width: 760px; box-shadow: 0 16px 40px rgba(3,20,60,.3); }
.filter-block { margin-bottom: 1.3rem; }
.filter-block h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); font-weight: 700; margin-bottom: .6rem; }
.filter-block h3 i { color: var(--ac-primary); margin-right: .3rem; }
.filter-list { max-height: 300px; overflow-y: auto; margin: 0 -.3rem; padding: 0 .3rem; }
.filter-opt { display: flex; align-items: center; gap: .55rem; padding: .42rem .5rem; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.filter-opt:hover { background: #F1F5F9; }
.filter-opt input { accent-color: var(--ac-primary); }
.filter-opt span { flex: 1; min-width: 0; }
.filter-opt em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ac-muted); background: #F1F5F9; border-radius: 99px; padding: 0 .5rem; }
@media (min-width: 992px) { .filter-panel { position: sticky; top: 84px; background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; padding: 1.1rem; box-shadow: var(--ac-shadow); } }
.chip.sm { padding: .25rem .7rem; font-size: .8rem; }

/* ---- Sélecteur de 3 secteurs (profil) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .7rem; }
.cat-pick { position: relative; margin: 0; }
.cat-pick input { position: absolute; opacity: 0; inset: 0; }
.cat-pick > span { display: flex; align-items: center; gap: .65rem; border: 2px solid var(--ac-line); border-radius: 14px; padding: .7rem .85rem; cursor: pointer; transition: .18s; background: #fff; height: 100%; }
.cat-pick > span > i:first-child { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ac-primary-soft); color: var(--ac-primary); }
.cat-pick b { font-size: .88rem; line-height: 1.2; font-weight: 700; }
.cat-pick em { margin-left: auto; color: transparent; font-size: 1.15rem; transition: .18s; }
.cat-pick:hover > span { border-color: #93B4E6; }
.cat-pick input:checked + span { border-color: var(--ac-primary); background: var(--ac-primary-soft); }
.cat-pick input:checked + span em { color: var(--ac-primary); transform: scale(1.1); }
.cat-pick input:focus-visible + span { box-shadow: 0 0 0 .22rem rgba(10,77,168,.2); }
.cat-pick.is-off > span { opacity: .42; cursor: not-allowed; }

/* ---- Pages de confirmation e-mail */
.big-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; background: var(--ac-primary-soft); color: var(--ac-primary); animation: acPop .5s cubic-bezier(.2,1.4,.4,1) both; }
.big-ico.ok { background: #DCFCE7; color: #166534; } .big-ico.bad { background: #FFE4E6; color: #9F1239; }
@keyframes acPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- Pied de page */
.site-footer { text-align: left; }
.site-footer a { display: block; padding: .18rem 0; }
.foot-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--ac-ink); margin-bottom: .6rem; }
.foot-bottom { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid var(--ac-line); text-align: center; font-size: .85rem; }
.hero-search { max-width: 1000px; margin-top: 1.8rem; }
.hero-stack { height: 270px; }
.mini-card.m3 { top: 188px; }
@media (max-width: 575px) { .brand img { height: 34px; } .site-header .btn { padding: .45rem .9rem; } .hero { padding-top: 2.2rem; } }

/* ==========================================================================
   v3.1 : modals modernes, validation, profil recherché
   ========================================================================== */
.acj-modal { border: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(3,20,60,.35); overflow: hidden; }
.modal.fade .modal-dialog { transform: translateY(24px) scale(.97); transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .2s; }
.modal.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .5; backdrop-filter: blur(3px); }
.confirm-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.8rem; animation: acPop .45s cubic-bezier(.2,1.4,.4,1) both; }
.confirm-ico.danger { background: #FFE4E6; color: #BE123C; }
.confirm-ico.primary { background: var(--ac-primary-soft); color: var(--ac-primary); }
.confirm-ico.success { background: #DCFCE7; color: #166534; }
#acjConfirm .modal-dialog { max-width: 400px; }

.modal-sec { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); font-weight: 800; margin: 1rem 0 .5rem; }
.modal-sec i { color: var(--ac-primary); margin-right: .3rem; }
.profile-list { list-style: none; padding: 0; margin: 0 0 .7rem; display: grid; gap: .45rem; }
.profile-list li { display: flex; align-items: center; gap: .65rem; background: #F8FAFC; border-radius: 12px; padding: .55rem .8rem; }
.profile-list li i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ac-primary-soft); color: var(--ac-primary); flex: 0 0 32px; }
.cand-row { display: flex; gap: .7rem; padding: .45rem 0; border-bottom: 1px dashed var(--ac-line); }
.cand-row i { color: var(--ac-primary); margin-top: .2rem; }
.cand-row span { min-width: 0; overflow-wrap: anywhere; }
.form-section { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-primary); font-weight: 800; margin: .6rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--ac-line); }

/* validation : champ en erreur + message animé */
.form-control.is-invalid, .form-select.is-invalid { border-color: #E11D48; background-image: none; box-shadow: 0 0 0 .2rem rgba(225,29,72,.12); animation: acShake .35s; }
.acj-fb { font-size: .82rem; font-weight: 600; color: #BE123C; margin-top: .3rem; animation: acUp .25s ease both; }
.acj-fb::before { content: "\f06a"; font-family: FontAwesome; margin-right: .35rem; font-weight: 400; }
.form-check-input.is-invalid { border-color: #E11D48; }
@keyframes acShake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* carte : boutons du pied */
.job-foot .btn-light { border: 1px solid var(--ac-line); color: #334155; }
.job-foot .btn-light:hover { background: var(--ac-primary-soft); color: var(--ac-primary); border-color: transparent; }
@media (max-width: 400px) { .job-foot .btn-light i { display: none; } }
