/* ===================================================================
 * FMG RP — Styles dédiés aux pages FiveM (métiers, règlement, sous-pages)
 * Design system : moderne, lisible, sans emoji, atmosphère "RP urbain"
 * =================================================================== */

/* ===== Layout shell ===== */
.fmg-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== HERO HEADER ===== */
.fmg-hero {
  position: relative;
  margin: -20px -24px 0;
  padding: 48px 48px 56px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fmg-hero::before,
.fmg-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.fmg-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, var(--hero-glow-1, rgba(108,68,160,0.18)) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, var(--hero-glow-2, rgba(0,185,220,0.14)) 0%, transparent 50%),
    linear-gradient(180deg, var(--hero-base, rgba(26,10,46,0.6)) 0%, transparent 100%);
}
.fmg-hero::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  opacity: 0.6;
}
.fmg-hero-inner { position: relative; z-index: 1; }
.fmg-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 24px;
}
.fmg-hero-back:hover { color: var(--text); border-color: var(--accent); background: rgba(0,185,220,0.06); }

.fmg-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.fmg-hero-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--hero-icon-bg, linear-gradient(135deg, #2a1a3a, #150d1f));
  color: var(--hero-icon-color, #fff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.fmg-hero h1 {
  margin: 0 0 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.5px;
}
.fmg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fmg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
}
.fmg-tag i { font-size: 0.85rem; }
.fmg-tag-blue   { background: rgba(30,58,138,0.18);   color: #93c5fd; border-color: rgba(147,197,253,0.2); }
.fmg-tag-grey   { background: rgba(100,116,139,0.18); color: #cbd5e1; border-color: rgba(203,213,225,0.2); }
.fmg-tag-red    { background: rgba(192,57,43,0.18);   color: #fca5a5; border-color: rgba(252,165,165,0.2); }
.fmg-tag-purple { background: rgba(142,68,173,0.18);  color: #d8b4fe; border-color: rgba(216,180,254,0.2); }
.fmg-tag-amber  { background: rgba(251,191,36,0.18);  color: #fbbf24; border-color: rgba(251,191,36,0.2); }
.fmg-tag-cyan   { background: rgba(0,185,220,0.18);    color: #67e8f9; border-color: rgba(103,232,249,0.2); }

.fmg-hero-lead {
  max-width: 780px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ===== SOUS-NAV ===== */
.fmg-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0 28px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  width: fit-content;
}
.fmg-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.fmg-subnav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.fmg-subnav-link.is-active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(0,185,220,0.3);
}

/* ===== STATS BAR ===== */
.fmg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 40px;
}
.fmg-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.fmg-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,185,220,0.1);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.fmg-stat-text { line-height: 1.3; min-width: 0; }
.fmg-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}
.fmg-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
}

/* ===== SECTION TITLES ===== */
.fmg-section {
  margin: 64px 0;
}
.fmg-section:first-of-type { margin-top: 48px; }
.fmg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fmg-section-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fmg-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,185,220,0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  width: fit-content;
}
.fmg-section h2 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.3px;
}

/* ===== TIMELINE / STEPS ===== */
.fmg-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fmg-step {
  display: grid;
  grid-template-columns: 48px 48px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}
.fmg-step:hover { border-color: rgba(0,185,220,0.25); }
.fmg-step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), rgba(0,185,220,0.55));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,185,220,0.25);
}
.fmg-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.fmg-step-body { min-width: 0; }
.fmg-step-body h4 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.fmg-step-body p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.65;
}
.fmg-step-body kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin: 0 2px;
}
.fmg-step-body code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,185,220,0.08);
  color: var(--accent);
  font-size: 0.9em;
}

/* ===== GRADE LADDER ===== */
.fmg-grades {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
}
.fmg-grade {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.fmg-grade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, rgba(0,185,220,0.08) 0%, rgba(0,185,220,0) 100%);
  pointer-events: none;
}
.fmg-grade:hover { border-color: rgba(0,185,220,0.2); }
.fmg-grade > * { position: relative; }
.fmg-grade-num {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.fmg-grade-name {
  font-weight: 500;
  color: var(--text);
  font-size: 1.02rem;
}
.fmg-grade-pay {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.fmg-grade.is-boss {
  background: linear-gradient(135deg, rgba(251,191,36,0.07), rgba(251,191,36,0.01));
  border-color: rgba(251,191,36,0.25);
}
.fmg-grade.is-boss .fmg-grade-num,
.fmg-grade.is-boss .fmg-grade-pay { color: #fbbf24; }
.fmg-grade.is-boss::before {
  background: linear-gradient(90deg, rgba(251,191,36,0.1) 0%, rgba(251,191,36,0) 100%);
}
.fmg-grade-boss-icon {
  display: inline-block;
  margin-left: 6px;
  color: #fbbf24;
  font-size: 0.85rem;
}

/* ===== TIPS BOXES ===== */
.fmg-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.fmg-tip {
  position: relative;
  padding: 22px 24px 22px 56px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}
.fmg-tip:hover { border-color: rgba(0,185,220,0.25); }
.fmg-tip-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 1.2rem;
  color: var(--accent);
}
.fmg-tip h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.fmg-tip p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== JOB LISTING GRID ===== */
.fmg-jobs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.fmg-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.fmg-filter-btn:hover { color: var(--text); border-color: rgba(0,185,220,0.3); }
.fmg-filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(0,185,220,0.25);
}
.fmg-filter-btn .count {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
}
.fmg-filter-btn.is-active .count { background: rgba(0,0,0,0.2); color: rgba(255,255,255,0.9); }

.fmg-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.fmg-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.25s ease;
}
.fmg-job-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--job-color, var(--accent));
  filter: blur(60px);
  opacity: 0.12;
  border-radius: 50%;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.fmg-job-card:hover {
  transform: translateY(-4px);
  border-color: var(--job-color, rgba(0,185,220,0.3));
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}
.fmg-job-card:hover::before { opacity: 0.25; }

.fmg-job-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.fmg-job-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--job-icon-bg, linear-gradient(135deg, #4a5d7e, #1e2738));
  color: var(--job-icon-color, white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.fmg-job-card-meta { flex: 1; min-width: 0; }
.fmg-job-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.fmg-job-card h3 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.fmg-job-card-desc {
  flex: 1;
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.fmg-job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.fmg-job-card-pay {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.fmg-job-card-pay-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.fmg-job-card-pay-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-top: 4px;
}
.fmg-job-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.fmg-job-card:hover .fmg-job-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateX(2px);
}

/* ===== INFO BANNER ===== */
.fmg-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(0,185,220,0.08), rgba(108,68,160,0.06));
  border: 1px solid rgba(0,185,220,0.2);
  border-radius: 16px;
  margin: 32px 0;
}
.fmg-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,185,220,0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.fmg-banner-body h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text); }
.fmg-banner-body p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ===== RULES (regles.php) ===== */
.fmg-rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.fmg-rule {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: border-color 0.15s ease;
}
.fmg-rule:hover { border-color: rgba(0,185,220,0.25); }
.fmg-rule-num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,185,220,0.15), rgba(0,185,220,0.05));
  border: 1px solid rgba(0,185,220,0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}
.fmg-rule-body h4 {
  margin: 6px 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.fmg-rule-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ===== CTA FOOTER ===== */
.fmg-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 48px;
}
.fmg-cta-lead {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 1rem;
}
.fmg-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fmg-page { padding: 0 16px 60px; }
  .fmg-hero { padding: 32px 20px 40px; margin: -20px -16px 0; }
  .fmg-hero h1 { font-size: 1.8rem; }
  .fmg-hero-icon { width: 60px; height: 60px; font-size: 1.6rem; }
  .fmg-step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 18px; }
  .fmg-step-icon { display: none; }
  .fmg-step-num { width: 40px; height: 40px; font-size: 1.1rem; }
  .fmg-grade { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 14px 18px; }
  .fmg-section { margin: 48px 0; }
}
