body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(to bottom right, #0B1D3D, #0F3057);
      color: white;
    }

    .contain {
      max-width: 1200px;
      margin: auto;
      padding: 40px 20px;
    }

    h1 {
      font-size: 2.2rem;
      margin-bottom: 10px;
      color: white;
    }

    p.subtitle {
      color: #cbd5e0;
      margin-bottom: 30px;
    }

    .jobs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    .job-card {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 20px;
      transition: background 0.3s ease;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .job-card:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    .job-title {
      font-size: 1.3rem;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .job-company {
      color: #e2e8f0;
      margin-bottom: 4px;
    }

    .job-meta {
      color: #94a3b8;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .job-desc {
      color: #d1d5db;
      font-size: 0.9rem;
      margin-bottom: 15px;
      word-wrap: break-word;   /* Older syntax */
  overflow-wrap: break-word; /* Modern syntax */
    }

    .apply-btn {
      display: inline-block;
      padding: 10px 16px;
      background: #2563eb;
      border: none;
      border-radius: 8px;
      color: white;
      text-decoration: none;
      font-size: 0.9rem;
      transition: background 0.3s ease;
    }

    .apply-btn:hover {
      background: #1d4ed8;
    }













        /* --- Style du formulaire modal --- */
    #applyModal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    #applyModal .modal-content {
      background: linear-gradient(90deg, #02122f, #3b99bd);
      color: #fff;
      padding: 25px;
      border-radius: 12px;
      width: 380px;
      text-align: center;
      position: relative;
      box-shadow: 0 8px 20px rgba(0,0,0,0.4);
      animation: fadeIn 0.3s ease-in-out;
    }

    #applyModal h3 {
      margin-bottom: 15px;
      font-size: 20px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    #applyModal input,
    #applyModal textarea {
      width: 90%;
      padding: 10px;
      margin: 8px 0;
      border: none;
      border-radius: 6px;
      outline: none;
      color: #333;
    }

    #applyModal textarea {
      resize: none;
      height: 70px;
    }

    #applyModal button {
      margin-top: 12px;
      padding: 10px 14px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.2s;
    }

    #applyModal .close-btn {
      background: #ff4c4c;
      color: #fff;
      position: absolute;
      top: 10px;
      right: 10px;
    }

    #applyModal .submit-btn {
      background: #fff;
      color: #02122f;
    }

    #applyModal .submit-btn:hover {
      background: #f1f1f1;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }