@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/* =========================
   1. Variables globales
   ========================= */

:root {
  /* Palette verte Zeeneo */
  --green: #1ED760;
  --green-dark: #17B550;
  --green-light: #DEF6E5;
  --green-bg: #dff9e9;
  --green-deeper: #0a3d1a;

  /* Neutres */
  --dark: #343030;
  --grey: #707070;
  --grey-light: #b0b0b0;
  --white: #ffffff;
  --bg: #f8f9fa;
  --border: #e0e0e0;

  /* Rayons */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-full: 25px;

  /* Ombres */
  --shadow: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 14px rgba(0,0,0,0.10);
  --shadow-search: 0 4px 20px rgba(0,0,0,0.12);

  /* Transition */
  --transition: 0.2s ease;

  /* Sémantiques (statuts, alertes) */
  --danger: #dc3545;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --success-green: #059669;
  --success-bg: #d1fae5;
}


/* =========================
   2. Reset / base commune
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
}

input,
select,
textarea {
  font-family: 'Poppins', sans-serif;
}

img {
  max-width: 100%;
  display: block;
}


/* =========================
   3. Typographie commune
   ========================= */

/* @font-face Poppins (pour les pages qui ne chargent pas Google Fonts) */
/* Source : assets/css/style.css, 404/style.css, formation/add/style.css */

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Regular.woff2') format('woff2'),
       url('/assets/fonts/Poppins-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Medium.woff2') format('woff2'),
       url('/assets/fonts/Poppins-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Bold.woff2') format('woff2'),
       url('/assets/fonts/Poppins-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


/* =========================
   4. Container commun
   ========================= */

/* Source : main.css, Page type Hellowork/styles.css, zeeneo-home-layout.css */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}


/* =========================
   5. Animations communes
   ========================= */

/* fadeIn — Source : main.css + 40 fichiers pages */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* dropIn — Source : main.css + 35 fichiers pages (menus, dropdowns) */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* modalSlideIn — Source : main.css, recherche.css, home/style.css, favorites */
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* modalFadeIn — Source : main.css, offre-detail.css, job-details */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* modalDetailSlideIn — Source : main.css, offre-detail.css, job-details */
@keyframes modalDetailSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* spin / spinnerRotate — Source : main.css, checkout.css, change-plan.css, subscription.css + 20 pages */
@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* slideUp — Source : 15+ fichiers pages (modals, alerts) */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* headerOut / headerIn — Source : 20+ fichiers pages (header scroll hide/show) */
@keyframes headerOut {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

@keyframes headerIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* marquee-scroll — Source : main.css, Hellowork/styles.css (testimonials) */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* dotPulse — Source : main.css, offre-detail.css (analyse steps) */
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

/* searchPulse — Source : main.css, Hellowork/styles.css */
@keyframes searchPulse {
  0%   { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
  20%  { box-shadow: 0 0 0 6px rgba(30,215,96,0.35), 0 4px 30px rgba(30,215,96,0.25); }
  50%  { box-shadow: 0 0 0 10px rgba(30,215,96,0.15), 0 4px 30px rgba(30,215,96,0.2); }
  100% { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
}


/* =========================
   6. Header commun (new-design)
   ========================= */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 36px;
  width: auto;
}

/* Nav principale — desktop (pills) */
.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 1024px) {
  .header-nav { display: flex; }
}

.header-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  transition: color var(--transition), background var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border-bottom: none;
}
.header-nav-link:hover {
  color: var(--dark);
  background: var(--bg);
  border-bottom: none;
}
.header-nav-link.active {
  color: var(--green);
  background: var(--green-bg);
  font-weight: 600;
  border-bottom: none;
}

/* Nav — mobile dropdown */
@media (max-width: 1023px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 8px;
    z-index: 99;
  }
  .header-nav.open { display: flex; animation: dropIn 0.2s ease; }
  .header-nav-link {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .header-nav-link:hover { background: var(--bg); }
  .header-nav-link.active { background: var(--green-bg); }
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--grey);
  transition: background var(--transition), color var(--transition);
}
.header-icon-btn:hover {
  background: var(--bg);
  color: var(--dark);
}

.header-profile-btn { padding: 0; }

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}


/* =========================
   7. Boutons communs
   ========================= */

.btn-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.btn-login:hover { background: var(--green-light); }

.btn-register {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}

.btn-register:hover { opacity: 0.85; }

.btn-menu {
  display: flex;
  padding: 8px;
  color: var(--dark);
  border-radius: 6px;
  transition: background var(--transition);
}
.btn-menu:hover { background: var(--bg); }
.btn-menu.active { background: var(--green-bg); color: var(--green); }

@media (min-width: 1024px) {
  .btn-menu { display: none; }
}


/* =========================
   8. Footer commun
   ========================= */

/* Source : main.css + 30 fichiers pages (footer dégradé vert foncé) */

.footer {
  background: linear-gradient(180deg, #0b4420 0%, #072e14 100%);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
  }
}

.footer-brand { max-width: 280px; }

.footer-logo-link { display: inline-block; }

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .footer-nav { gap: 32px; }
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 130px; /* 2026-05-14 : passé de 120 à 130px pour fit 4 colonnes (Affiliation/Légal/Support/Produit) cohérent avec footer affiliate */
}

.footer-nav-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer-nav-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav-col a:hover {
  color: var(--green);
  padding-left: 4px;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 40px 0 0;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}


/* =========================
   9. Breadcrumb commun
   ========================= */

/* Source : main.css, offre-detail.css, job-details, report */

.breadcrumb {
  padding: 16px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--grey);
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--green);
  font-weight: 500;
  transition: color var(--transition);
}

.breadcrumb-list a:hover { color: var(--green-dark); }

.breadcrumb-sep {
  color: var(--grey-light);
  font-size: 11px;
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 500;
}


/* =========================
   10. Pagination commune
   ========================= */

/* Source : main.css, recherche.css, home/style.css, favorites, perfect-matches */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.page-btn:hover:not(.active):not(:disabled) {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
}

.page-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn svg {
  width: 16px;
  height: 16px;
}


/* =========================
   11. Modals communs (résultats / filtres)
   ========================= */

/* Source : main.css, recherche.css, home/style.css, favorites, perfect-matches */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.25s ease;
  overflow: hidden;
}

.modal-content--salary { max-width: 500px; }
.modal-content--compact { max-width: 400px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--grey);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--dark);
}

.modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.modal-btn-clear {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.modal-btn-clear:hover {
  color: var(--dark);
  background: var(--bg);
}

.modal-btn-apply {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}

.modal-btn-apply:hover { opacity: 0.85; }


/* =========================
   12. Modal détail offre commun
   ========================= */

/* Source : main.css, offre-detail.css, job-details */

.modal-overlay-detail {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay-detail.open {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

.modal-detail {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalDetailSlideIn 0.25s ease;
  overflow: hidden;
  position: relative;
}

.modal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-detail-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal-detail-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--grey);
  transition: background var(--transition), color var(--transition);
}

.modal-detail-close:hover {
  background: var(--bg);
  color: var(--dark);
}

.modal-detail-body {
  padding: 20px 28px 28px;
}


/* =========================
   13. Checkbox & Radio modals
   ========================= */

/* Source : main.css, recherche.css, home/style.css (modals filtres) */

.modal-search { margin-bottom: 12px; }

.modal-search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-search-input::placeholder { color: var(--grey-light); }

.modal-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.12);
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: background var(--transition);
  user-select: none;
}

.modal-option:hover { background: var(--green-bg); }

.modal-option input[type="checkbox"],
.modal-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.modal-cbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  background: var(--white);
}

.modal-option:hover .modal-cbox { border-color: var(--green); }

.modal-option input:checked + .modal-cbox {
  background: var(--green);
  border-color: var(--green);
}

.modal-option input:checked + .modal-cbox::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.modal-radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  background: var(--white);
}

.modal-option:hover .modal-radio { border-color: var(--green); }

.modal-option input:checked + .modal-radio { border-color: var(--green); }

.modal-option input:checked + .modal-radio::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}


/* =========================
   14. Labels salaire communs
   ========================= */

/* Source : main.css, recherche.css, offre-detail.css, job-details */

.salary-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.4;
}

.salary-tag--real {
  background: #d1fae5;
  color: #059669;
}

.salary-tag--estimated {
  background: #fef3c7;
  color: #d97706;
}

.job-detail--estimated strong { color: var(--grey); }


/* =========================
   15. Back link commun
   ========================= */

/* Source : main.css, offre-detail.css, job-details, pages légales */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
  transition: gap var(--transition);
}

.back-link:hover { gap: 10px; }
.back-link svg { flex-shrink: 0; }


/* =========================
   16. Notification system commun
   ========================= */

/* Source : notification-system.css, account/subscription, account/family-members, 10+ pages */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
  transform-origin: top right;
  position: relative;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

.notification.closing {
  animation: slideOut 0.3s ease-out forwards;
}

.notification-content {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.notification-error .notification-icon { background: #fee; color: #dc3545; }
.notification-success .notification-icon { background: #d4f2e1; color: #179b53; }
.notification-info .notification-icon { background: #e8f4f8; color: #0c5460; }
.notification-warning .notification-icon { background: #fff3cd; color: #856404; }

.notification-body { flex: 1; }

.notification-title {
  font-weight: 600;
  color: #1a2734;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.notification-message {
  color: #6a7686;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #6a7686;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.notification-close:hover { opacity: 1; }

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.2;
  animation: notificationProgress 5s linear;
}

@keyframes notificationProgress {
  from { width: 100%; }
  to   { width: 0; }
}

.notification-error .notification-progress { color: #dc3545; }
.notification-success .notification-progress { color: #179b53; }
.notification-info .notification-progress { color: #0c5460; }
.notification-warning .notification-progress { color: #856404; }


/* =========================
   17. Utilitaires communs
   ========================= */

/* Accessibilité — Source : 5+ fichiers */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================
   18. Responsive commun
   ========================= */

/* Modal responsive — Source : main.css, recherche.css, home */
@media (max-width: 640px) {
  .modal-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* Modal détail responsive — Source : main.css, offre-detail.css, job-details */
@media (max-width: 768px) {
  .modal-detail {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  .modal-overlay-detail {
    align-items: flex-end;
    padding: 0;
  }
  .modal-detail-body {
    padding: 16px 20px 24px;
  }
  .modal-detail-header {
    padding: 20px 20px 16px;
  }
}

/* Notification responsive */
@media (max-width: 768px) {
  .notification-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}


/* =========================
   19. Mobile Bottom Bar commune
   ========================= */

/* Source : home/style.css, favorites, perfect-matches, job-details, settings, candidature/list, legal/contact */

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 90;
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

@media (max-width: 1023px) {
  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.mbb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  min-width: 72px;
}

.mbb-item:hover,
.mbb-item.mbb-active {
  color: var(--green);
  background: var(--green-bg);
}

.mbb-item svg {
  flex-shrink: 0;
}

.mbb-item span {
  white-space: nowrap;
}


/* =========================
   20. Profile Dropdown (header-new)
   ========================= */

.profile-dropdown {
  display: none;
  position: fixed;
  top: 68px;
  right: 16px;
  width: 320px;
  max-height: calc(100vh - 84px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.16);
  border: 1px solid var(--border);
  z-index: 200;
  overflow-y: auto;
  padding: 0;
  animation: dropIn 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.profile-dropdown.open { display: block; }

.pd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.pd-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.pd-name { font-weight: 700; font-size: 14px; color: var(--dark); }
.pd-email { font-size: 12px; color: var(--grey); margin-top: 1px; }

.pd-section {
  padding: 8px 8px 4px;
  border-bottom: 1px solid var(--border);
}
.pd-section:last-child { border-bottom: none; }
.pd-section--logout { padding: 4px 8px 8px; }
.pd-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--grey-light); padding: 6px 10px 4px;
}

.pd-profile-card {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: var(--radius-sm); background: var(--green-bg);
  border: 1px solid #c8edcf; margin: 4px 2px 6px; position: relative;
}
.pd-profile-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.pd-profile-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pd-profile-name {
  font-size: 13px; font-weight: 600; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-profile-email {
  font-size: 11px; color: var(--grey);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-profile-badge { font-size: 10px; font-weight: 600; color: var(--green-dark); margin-top: 2px; }
.pd-profile-check { flex-shrink: 0; }

.pd-add-profile {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; font-size: 13px; font-weight: 500;
  color: var(--green); border-radius: var(--radius-sm);
  transition: background var(--transition); margin-bottom: 4px;
}
.pd-add-profile:hover { background: var(--green-bg); }
.pd-add-profile svg { flex-shrink: 0; }

.pd-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; font-size: 13px; font-weight: 500;
  color: var(--dark); border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.pd-link:hover { background: var(--green-bg); }
.pd-link svg { flex-shrink: 0; color: var(--grey); }
.pd-logout { color: #e74c3c; }
.pd-logout:hover { background: #fef2f2; }
.pd-logout svg { color: #e74c3c; }


/* =========================
   21. Barre de recherche (header-new)
   ========================= */

.search-bar-section {
  background: linear-gradient(135deg, #0a3d1a 0%, #0f5c28 50%, #147a36 100%);
  padding: 20px 0;
  position: relative;
  z-index: 30;
}
.search-bar-form {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow-search); max-width: 960px; margin: 0 auto;
}
@media (min-width: 768px) {
  .search-bar-form { flex-direction: row; align-items: center; }
}
.search-bar-field {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.search-bar-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.15);
}
.search-bar-field--job,
.search-bar-field--city { position: relative; flex-wrap: wrap; }
.search-bar-field--city input { min-width: 0; }

/* Répartition flex 1.6 / 1.2 / 0.9 entre Métier / Ville / Contrats.
   Par défaut (flex: 1 partout), le champ Métier était trop étroit pour
   afficher son placeholder "Métier, compétence, entreprise..." en entier
   (texte tronqué sur écrans ≤ 1280px). Le champ contrats n'a besoin que
   du label "Contrats" + chevron → bien plus court. */
@media (min-width: 768px) {
  .search-bar-field--job { flex: 1.6; }
  .search-bar-field--city { flex: 1.2; }
  .dropdown-contrats { flex: 0.9; }
}
.search-bar-field svg { flex-shrink: 0; color: var(--grey); }
.search-bar-field input,
.search-bar-field select {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--dark); font-family: 'Poppins', sans-serif;
  min-width: 0;
}
.search-bar-field input::placeholder { color: var(--grey-light); }
.search-bar-sep {
  display: none; width: 1px; height: 32px;
  background: var(--border); flex-shrink: 0;
}
@media (min-width: 768px) {
  .search-bar-sep { display: block; }
}
.search-bar-btn {
  background: var(--green); color: var(--white);
  font-size: 14px; font-weight: 600; padding: 12px 24px;
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: opacity var(--transition); flex-shrink: 0;
}
.search-bar-btn:hover { opacity: 0.85; }

/* Country badge */
.country-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; background: var(--border);
  color: var(--grey); font-size: 12px; font-weight: 500;
  border: none; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: background var(--transition);
}
.country-badge:hover { background: #d0d0d0; }
.country-badge img { border-radius: 2px; }
.country-badge svg { opacity: 0.5; }

/* Country tooltip */
.country-tooltip {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 280px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 16px; z-index: 210; animation: dropIn 0.2s ease;
}
.country-tooltip.visible { display: block; }
.country-tooltip p { font-size: 13px; color: var(--dark); line-height: 1.5; margin-bottom: 12px; }
.country-tooltip-btn {
  display: inline-block; padding: 8px 18px; background: var(--green);
  color: var(--white); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; transition: opacity var(--transition);
}
.country-tooltip-btn:hover { opacity: 0.85; }

/* City / Job suggestions */
.city-suggestions {
  display: none; position: absolute; left: 0; right: 0;
  top: calc(100% + 4px); max-height: 240px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 220; padding: 4px;
}
.city-suggestions.visible { display: block; }
.city-suggestion-item {
  padding: 10px 14px; font-size: 14px; color: var(--dark);
  border-radius: 6px; cursor: pointer; transition: background var(--transition);
}
.city-suggestion-item:hover,
.city-suggestion-item.active { background: var(--green-light); }
.city-suggestion-item mark { background: none; color: var(--green-dark); font-weight: 600; }
.city-suggestions-empty { padding: 12px 14px; font-size: 13px; color: var(--grey); text-align: center; }
.job-suggestion-item { display: flex; flex-direction: column; gap: 2px; }
.job-name { font-size: 14px; color: var(--dark); }
.job-category { font-size: 12px; color: var(--grey); }

/* Dropdown contrats */
.dropdown-contrats { position: relative; flex: 1; min-width: 0; }
.dropdown-contrats-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition);
}
.dropdown-contrats-trigger:hover { border-color: var(--green); }
.dropdown-contrats.open .dropdown-contrats-trigger {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.15);
}
.dropdown-contrats-trigger svg:first-child { flex-shrink: 0; color: var(--grey); }
.dropdown-contrats-label {
  flex: 1; font-size: 14px; font-weight: 500; color: var(--grey-light);
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-contrats-label.has-value { color: var(--dark); }
.dropdown-contrats-chevron { flex-shrink: 0; color: var(--grey); transition: transform 0.25s ease; }
.dropdown-contrats.open .dropdown-contrats-chevron { transform: rotate(180deg); color: var(--green); }
.dropdown-contrats-panel {
  display: none; position: absolute; left: 0; right: 0;
  top: calc(100% + 8px); min-width: 240px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 6px;
  z-index: 200; animation: dropIn 0.2s ease;
}
.dropdown-contrats.open .dropdown-contrats-panel { display: block; }
.dropdown-contrats-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--dark);
  transition: background var(--transition); user-select: none; margin: 0;
}
.dropdown-contrats-item:hover { background: var(--green-bg); }
.dropdown-contrats-item input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.dropdown-contrats-item .cbox {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease; background: var(--white);
}
.dropdown-contrats-item:hover .cbox { border-color: var(--green); }
.dropdown-contrats-item input:checked + .cbox { background: var(--green); border-color: var(--green); }
.dropdown-contrats-item input:checked + .cbox::after {
  content: ''; display: block; width: 5px; height: 9px;
  border: solid var(--white); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.dropdown-contrats-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 4px 4px; margin-top: 4px;
  border-top: 1px solid var(--border);
}
.dropdown-contrats-clear {
  font-size: 13px; font-weight: 600; color: var(--grey);
  padding: 6px 12px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.dropdown-contrats-clear:hover { color: var(--dark); background: var(--bg); }
.dropdown-contrats-apply {
  font-size: 13px; font-weight: 600; color: var(--white);
  background: var(--green); padding: 6px 20px; border-radius: 6px;
  transition: opacity var(--transition);
}
.dropdown-contrats-apply:hover { opacity: 0.85; }

/* Search bar responsive */
@media (max-width: 640px) {
  .search-bar-section { padding: 12px 0; }
}
@media (max-width: 480px) {
  .search-bar-form { padding: 4px; }
  .search-bar-field { padding: 8px 10px; }
  .search-bar-btn { padding: 10px 16px; font-size: 13px; }
}


/* =========================
   À VÉRIFIER MANUELLEMENT
   ========================= */

/*
 * Les règles suivantes présentent des variations entre fichiers :
 *
 * 1. .sidebar (filtres pages résultats)
 *    → Presque identique entre main.css, recherche.css, home/style.css
 *      et perfect-matches, mais les filtres internes diffèrent.
 *
 * 2. .job-card (cartes offres)
 *    → Identique entre main.css, recherche.css, home/style.css,
 *      mais certaines pages ajoutent des overlays premium.
 *
 * 3. Variables :root des fichiers "autonomes" (factures, finalization, checkout)
 *    → Utilisent des noms de variables identiques mais des valeurs
 *      différentes (--primary-color = #0066cc, #6366f1, #1ED760).
 *      Ne PAS fusionner ces :root.
 */
