/* === Reset & Box Model === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* === Couleurs dynamiques pour icônes SVG uniquement === */
  :root {
    --menu-icon: #ffffff;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --menu-icon: #000000;
    }
  }
  
  /* === Base Buttons === */
  .btn, input.btn, button.btn {
    display: inline-block !important;
    padding: 10px 20px !important;
    margin: 10px !important;
    color: #fff !important;
    background-color: #007BFF;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
  }
  .btn:hover {
    background-color: #0056b3;
  }
  .btn-green {
    background-color: #28a745 !important;
  }
  .btn-green:hover {
    background-color: #218838 !important;
  }
  .btn-red {
    background-color: #dc3545 !important;
  }
  .btn-red:hover {
    background-color: #c82333 !important;
  }
  
  /* === Layout & Typography === */
  body {
    font-family: monospace;
  }
  .main-content {
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin: 0 auto;
    max-width: 100%;
  }
  
  /* === Menu === */
  .fixed-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around !important;
    align-items: center;
    position: fixed;
    width: 100% !important;
    z-index: 1050;
    background-color: #ffffff;
    padding: 2px;
    border-top: 1px solid #ccc;
  }
  .menu, input.menu, button.menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em !important;
    margin: 0.1em !important;
    color: #fff !important;
    background-color: #000000 !important;
    border-radius: 0.5em !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    flex-grow: 1;
    font-size: 1em;
  }
  .menu:hover {
    background-color: #43434370 !important;
  }
  .menu svg {
    height: 30px;
    width: 30px;
    margin-bottom: 0.3em;
    fill: var(--menu-icon);
  }
  
  /* === Filter Section === */
  .fixed-filter {
    position: fixed;
    width: 100%;
    background-color: #f1f1f1;
    z-index: 1040;
    padding: 0.5rem;
    top: 60px;
  }
  
  /* === Responsive === */
  @media (max-width: 600px) {
    body {
      padding-bottom: 70px;
    }
    .fixed-menu {
      bottom: 0 !important;
      top: unset !important;
      flex-wrap: nowrap !important;
    }
    .menu {
      flex-grow: 1;
      flex-shrink: 1;
      flex-basis: 0;
      white-space: nowrap;
      padding: 0.5em !important;
      margin: 0.05em !important;
    }
    .fixed-filter {
      top: unset !important;
      bottom: 60px !important;
    }
  }
  @media (min-width: 601px) {
    .fixed-menu {
      top: 0;
      bottom: unset;
    }
  }
  
  /* === Job Section === */
  .job-list-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
  }
  .job-list-push {
    max-width: 900px;
    margin-top: 0;
    margin-bottom: 200px;
  }
  .job-listing {
    border: 2px solid #000000;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 15px;
  }
  .job-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1em;
  }
  .job-info-section {
    flex-basis: 100%;
    box-sizing: border-box;
  }
  @media screen and (min-width: 600px) {
    .job-info-section {
      flex-basis: 48%;
    }
  }
  .job-detail-box {
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    padding: 2px 5px;
    display: inline-block;
    margin-left: 5px;
  }
  .job-activity-rate { background-color: #5fad56; }
  .job-compensation { background-color: #85c7f2; }
  .job-publication-date { background-color: #FCA311; }
  .job-registration-deadline { background-color: #cd4631; }
  
  /* === Dark Mode === */
  @media (prefers-color-scheme: dark) {
    body {
      background-color: #1e1e1e;
      color: #fff;
    }
    .fixed-menu {
      background-color: #444;
    }
    .fixed-filter {
      background-color: #444;
    }
    .job-listing {
      border: 2px solid #ddd;
    }
    .menu {
      color: #000000 !important;
      background-color: #ffffff !important;
    }
    .menu:hover {
      background-color: #e2e2e2a2 !important;
    }
    .btn {
      background-color: #0056b3;
    }
    .btn:hover {
      background-color: #003f7d;
    }
    .btn-green {
      background-color: #218838;
    }
    .btn-green:hover {
      background-color: #19692c;
    }
    .btn-red {
      background-color: #c82333;
    }
    .btn-red:hover {
      background-color: #b21f2d;
    }
  }
  