/* ═══════════════════════════════════════
   ACADÉMIE NOVA — STYLE PRINCIPAL
   Inspiré de novarecrute.en.gp
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --white:      #ffffff;
  --bg:         #f8f9fb;
  --bg2:        #f1f3f6;
  --border:     #e5e7eb;
  --border2:    #d1d5db;
  --text:       #111827;
  --text-2:     #374151;
  --text-3:     #6b7280;
  --text-4:     #9ca3af;
  --primary:    #1e40af;
  --primary-h:  #1d3899;
  --primary-l:  #eff6ff;
  --primary-m:  #bfdbfe;
  --accent:     #0ea5e9;
  --gold:       #b45309;
  --gold-l:     #fef3c7;
  --green:      #059669;
  --green-l:    #d1fae5;
  --red:        #dc2626;
  --red-l:      #fee2e2;
  --yellow:     #d97706;
  --yellow-l:   #fef3c7;
  --blue:       #2563eb;
  --blue-l:     #dbeafe;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.10);
  --nav-h:      64px;
  --ff:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--primary-m); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--text); }
.nav-logo-mark { width: 34px; height: 34px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--white); letter-spacing: .02em; }
.nav-logo-text { font-size: .88rem; font-weight: 600; color: var(--text); }
.nav-logo-sub { font-size: .68rem; font-weight: 400; color: var(--text-3); }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a { font-size: .82rem; font-weight: 500; color: var(--text-2); padding: .45rem .85rem; border-radius: var(--radius-sm); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-links a.active { background: var(--primary-l); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; border-radius: var(--radius-sm); padding: .45rem 1rem; font-size: .82rem; font-weight: 500; transition: background .15s; }
.nav-cta:hover { background: var(--primary-h) !important; }

/* ── HERO ── */
.hero { background: var(--white); border-bottom: 1px solid var(--border); padding: calc(var(--nav-h) + 3rem) 2rem 3rem; }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--green-l); color: var(--green); font-size: .75rem; font-weight: 600; padding: .3rem .85rem; border-radius: 20px; margin-bottom: 1.4rem; }
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { font-size: 1rem; color: var(--text-3); max-width: 520px; line-height: 1.7; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat .n { font-size: 1.7rem; font-weight: 700; color: var(--text); line-height: 1; }
.hstat .l { font-size: .72rem; font-weight: 500; color: var(--text-3); margin-top: 2px; }

/* ── LAYOUT ── */
.main-layout { max-width: 1200px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.sidebar-card-title { font-size: .75rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.filter-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .8rem; margin-bottom: .8rem; }
.filter-search input { border: none; background: transparent; font-family: var(--ff); font-size: .85rem; color: var(--text); outline: none; flex: 1; }
.filter-search input::placeholder { color: var(--text-4); }
.filter-search svg { color: var(--text-4); flex-shrink: 0; }
.filter-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; border: none; font-family: var(--ff); font-size: .83rem; color: var(--text-2); padding: .45rem .7rem; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s; }
.filter-btn:hover { background: var(--bg); }
.filter-btn.active { background: var(--primary-l); color: var(--primary); font-weight: 500; }
.filter-btn .count { font-size: .72rem; background: var(--bg2); color: var(--text-3); padding: 1px 8px; border-radius: 20px; font-weight: 600; }
.filter-btn.active .count { background: var(--primary-m); color: var(--primary); }
.sidebar-about { font-size: .82rem; color: var(--text-3); line-height: 1.65; }
.sidebar-about .name { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: .3rem; }
.sidebar-cta { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); padding: .65rem; font-family: var(--ff); font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s; text-decoration: none; }
.sidebar-cta:hover { background: var(--primary-h); }

/* ── ALERT NOTIF ── */
.alert-notif { background: var(--blue-l); border: 1px solid var(--primary-m); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-notif .bell { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-notif-title { font-size: .83rem; font-weight: 600; color: var(--primary); margin-bottom: .2rem; }
.alert-notif-sub { font-size: .78rem; color: var(--text-3); }
.alert-notif-btn { margin-top: .6rem; display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--primary); background: var(--white); border: 1px solid var(--primary-m); border-radius: var(--radius-sm); padding: .3rem .7rem; cursor: pointer; transition: background .15s; }
.alert-notif-btn:hover { background: var(--primary-l); }

/* ── OFFRES LIST ── */
.offers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.offers-count { font-size: .9rem; font-weight: 600; color: var(--text); }
.offers-count span { color: var(--text-3); font-weight: 400; }
.sort-select { font-family: var(--ff); font-size: .8rem; color: var(--text-2); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .4rem .8rem; cursor: pointer; outline: none; }

.offer-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: .8rem; transition: box-shadow .18s, border-color .18s, transform .18s; cursor: pointer; }
.offer-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-m); transform: translateY(-1px); }
.offer-card-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.offer-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-l); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--primary); flex-shrink: 0; letter-spacing: .02em; }
.offer-title-wrap { flex: 1; min-width: 0; }
.offer-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; line-height: 1.3; }
.offer-company { font-size: .8rem; color: var(--text-3); }
.offer-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; padding: .2rem .65rem; border-radius: 20px; white-space: nowrap; }
.badge-primary { background: var(--primary-l); color: var(--primary); }
.badge-green  { background: var(--green-l); color: var(--green); }
.badge-red    { background: var(--red-l); color: var(--red); }
.badge-yellow { background: var(--yellow-l); color: var(--yellow); }
.badge-blue   { background: var(--blue-l); color: var(--blue); }
.badge-grey   { background: var(--bg2); color: var(--text-3); }
.badge-tele   { background: #f0fdf4; color: #16a34a; }
.offer-desc { font-size: .83rem; color: var(--text-3); line-height: 1.6; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.offer-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.offer-meta-item { display: flex; align-items: center; gap: 4px; font-size: .77rem; color: var(--text-4); }
.offer-meta-item svg { width: 13px; height: 13px; }
.btn-postuler { display: inline-flex; align-items: center; gap: 5px; background: var(--primary); color: var(--white); font-family: var(--ff); font-size: .78rem; font-weight: 600; padding: .45rem 1rem; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: background .15s; text-decoration: none; }
.btn-postuler:hover { background: var(--primary-h); }

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-3); }
.empty .icon { font-size: 2.5rem; margin-bottom: .8rem; opacity: .4; }
.empty h3 { font-size: 1rem; font-weight: 600; color: var(--text-2); margin-bottom: .3rem; }
.empty p { font-size: .83rem; }

/* ── WHY JOIN ── */
.why-section { background: var(--white); border-top: 1px solid var(--border); padding: 4rem 2rem; }
.why-inner { max-width: 1200px; margin: 0 auto; }
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.section-heading p { font-size: .9rem; color: var(--text-3); }
.section-heading .sub { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .4rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.why-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: box-shadow .18s, border-color .18s; }
.why-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-m); }
.why-icon { font-size: 1.6rem; margin-bottom: .8rem; }
.why-title { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.why-desc { font-size: .82rem; color: var(--text-3); line-height: 1.65; }

/* ── TÉMOIGNAGES ── */
.testi-section { background: var(--bg); border-top: 1px solid var(--border); padding: 4rem 2rem; }
.testi-inner { max-width: 1200px; margin: 0 auto; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.testi-stars { color: #f59e0b; font-size: .9rem; letter-spacing: .05em; margin-bottom: .7rem; }
.testi-text { font-size: .84rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-l); color: var(--primary); font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testi-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.testi-role { font-size: .74rem; color: var(--text-4); }

/* ── CTA SECTION ── */
.cta-section { background: var(--primary); padding: 4rem 2rem; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: 1.7rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.cta-inner p { font-size: .92rem; color: rgba(255,255,255,.75); margin-bottom: 1.8rem; }
.cta-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--primary); font-family: var(--ff); font-size: .85rem; font-weight: 700; padding: .7rem 1.6rem; border-radius: var(--radius-sm); border: none; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.btn-white:hover { opacity: .92; }
.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); font-family: var(--ff); font-size: .85rem; font-weight: 600; padding: .65rem 1.6rem; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; transition: border-color .15s; }
.btn-white-outline:hover { border-color: rgba(255,255,255,.8); }

/* ── FOOTER ── */
.footer { background: var(--text); padding: 3rem 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand-name { font-size: .95rem; font-weight: 700; color: var(--white); margin: .6rem 0 .5rem; }
.footer-brand-desc { font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer-col-title { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .8rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-copy { font-size: .74rem; color: rgba(255,255,255,.25); }
.footer-logo-sm { display: flex; align-items: center; gap: 6px; }
.footer-logo-sm .mark { width: 26px; height: 26px; background: rgba(255,255,255,.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 700; color: rgba(255,255,255,.6); }

/* ── CANDIDATURE PAGE ── */
.page-wrap { max-width: 700px; margin: calc(var(--nav-h) + 2.5rem) auto 3rem; padding: 0 1.5rem; }
.page-back { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-3); margin-bottom: 1.5rem; transition: color .15s; }
.page-back:hover { color: var(--primary); }
.page-title-block { margin-bottom: 2rem; }
.page-title-block h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.page-title-block p { font-size: .87rem; color: var(--text-3); }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-card .form-section { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--ff); font-size: .87rem; color: var(--text);
  background: var(--white); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: .6rem .8rem; outline: none;
  transition: border-color .18s, box-shadow .18s; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,64,175,.1);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-sep { height: 1px; background: var(--border); margin: 1.4rem 0; }
.btn-submit { width: 100%; background: var(--primary); color: var(--white); font-family: var(--ff); font-size: .88rem; font-weight: 700; padding: .75rem; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: background .15s; margin-top: 1rem; }
.btn-submit:hover { background: var(--primary-h); }
.success-box { background: var(--green-l); border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 2rem; text-align: center; }
.success-box .icon { font-size: 2.5rem; margin-bottom: .8rem; }
.success-box h3 { font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: .3rem; }
.success-box p { font-size: .84rem; color: var(--text-3); }

/* ── POSTE DETAIL ── */
.poste-header { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.2rem; }
.poste-header-top { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.poste-logo-lg { width: 56px; height: 56px; border-radius: 12px; background: var(--primary-l); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.poste-detail-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1rem; }
.poste-detail-content h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .7rem; }
.poste-detail-content p, .poste-detail-content li { font-size: .85rem; color: var(--text-2); line-height: 1.75; }
.poste-detail-content ul { padding-left: 1.2rem; }
.poste-detail-content li { margin-bottom: .2rem; }
.poste-sidebar-info { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-3); }
.info-row .value { font-weight: 600; color: var(--text); }

/* ── RP BADGE ── */
.rp-badge { position: fixed; bottom: 1rem; right: 1rem; z-index: 9999; background: var(--text); color: var(--white); font-size: .66rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; letter-spacing: .06em; }

/* ── MODAL ALERTE ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); animation: modalIn .25s ease both; }
@keyframes modalIn { from{opacity:0;transform:scale(.97) translateY(8px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.modal p { font-size: .83rem; color: var(--text-3); margin-bottom: 1.2rem; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }
.btn-cancel { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); font-family: var(--ff); font-size: .82rem; font-weight: 500; padding: .5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; }
.btn-cancel:hover { background: var(--bg2); }
.btn-confirm { background: var(--primary); color: var(--white); border: none; font-family: var(--ff); font-size: .82rem; font-weight: 600; padding: .5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; }
.btn-confirm:hover { background: var(--primary-h); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-links { display: none; }
  .why-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.2rem; }
  .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .main-layout { padding: 1rem; }
}
