:root {
  --me-blue: #0b2e59;
  --me-blue-dark: #071a33;
  --me-blue-deep: #061a34;
  --me-blue2: #124f8c;
  --me-green: #08a66b;
  --me-green-dark: #07885c;
  --me-orange: #ff9f1c;
  --me-text: #132238;
  --me-muted: #667085;
  --me-bg: #f5f7fb;
  --me-card: #ffffff;
  --me-border: #e6eaf2;
  --me-shadow: 0 22px 60px rgba(11, 46, 89, 0.12);
  --me-radius: 22px;
}

* {
  box-sizing: border-box;
}

body.monemploi-site {
  margin: 0;
  background: var(--me-bg);
  color: var(--me-text);
  font-family: Inter, Arial, sans-serif;
}

.me-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================
   Header
   ========================================================== */

.me-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--me-border);
}

.me-nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.me-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--me-blue);
  text-decoration: none;
  font-size: 22px;
}

.me-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--me-blue), var(--me-green));
  color: #ffffff;
}

.me-menu {
  flex: 1;
}

.me-menu ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.me-menu a {
  color: #26364d;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.me-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-link {
  color: var(--me-blue);
  text-decoration: none;
  font-weight: 800;
}

.me-btn,
.me-search-hero button,
.me-filters button,
.me-core button,
.me-core input[type="submit"] {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.me-btn-primary,
.me-search-hero button,
.me-filters button,
.me-core button,
.me-core input[type="submit"] {
  background: linear-gradient(135deg, var(--me-blue), var(--me-green));
  color: #ffffff;
}

.me-btn-light {
  background: #ffffff;
  color: var(--me-blue);
  border: 1px solid var(--me-border);
}

.me-menu-toggle {
  display: none;
}

/* ==========================================================
   Accueil premium : image 2/3 + profil IA à droite
   ========================================================== */

.me-home-hero {
  padding: 14px 0 18px;
  background:
    radial-gradient(circle at top left, rgba(8, 166, 107, 0.15), transparent 34%),
    radial-gradient(circle at top right, rgba(11, 46, 89, 0.10), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #edf3fa 100%);
}

.me-home-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Image à gauche : hauteur alignée au panneau de droite */
.me-home-visual {
  position: relative;
  height: auto;
  min-height: 340px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--me-blue-dark);
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.18);
  border: 1px solid rgba(11, 46, 89, 0.08);
}

.me-home-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.me-home-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 26, 54, 0.18), rgba(5, 26, 54, 0.02)),
    linear-gradient(180deg, rgba(5, 26, 54, 0.02), rgba(5, 26, 54, 0.14));
  pointer-events: none;
}

/* Profil IA à droite : même hauteur minimale que l'image */
.me-home-panel {
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(8, 166, 107, 0.18), transparent 38%),
    linear-gradient(135deg, #071a33, #0b2e59);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.me-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 14px;
}

.me-pill-dark {
  margin-bottom: 16px;
}

.me-home-panel h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 2.5vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.me-home-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
  line-height: 1.45;
}

.me-home-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 16px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--me-blue);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.me-home-score-card span {
  display: block;
  font-weight: 900;
  font-size: 15px;
}

.me-home-score-card small {
  display: block;
  margin-top: 4px;
  color: var(--me-muted);
  font-weight: 700;
}

.me-home-score-card strong {
  color: var(--me-green);
  font-size: 42px;
  line-height: 1;
}

.me-home-benefits {
  margin: 0;
  padding-left: 18px;
}

.me-home-benefits li {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14.5px;
}

/* ==========================================================
   Recherche sous le bandeau
   ========================================================== */

.me-home-search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--me-border);
  box-shadow: 0 16px 40px rgba(11, 46, 89, 0.10);
}

.me-search-hero {
  display: grid;
  grid-template-columns: 1fr 220px 150px;
  gap: 10px;
  margin: 0;
}

.me-search-hero input,
.me-filters input,
.me-core input,
.me-core textarea,
.me-core select {
  border: 1px solid var(--me-border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
}

.me-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* ==========================================================
   Ancien hero : conservé pour autres modèles si nécessaire
   ========================================================== */

.me-hero {
  background: radial-gradient(circle at top left, rgba(8, 166, 107, 0.2), transparent 35%),
    linear-gradient(135deg, #081d3a, #0b2e59);
  color: #ffffff;
  padding: 64px 0;
}

.me-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
}

.me-hero h1 {
  font-size: 54px;
  line-height: 1.03;
  margin: 20px 0;
}

.me-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 720px;
}

.me-hero-actions {
  display: flex;
  gap: 12px;
}

.me-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--me-shadow);
}

.me-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: var(--me-blue);
  border-radius: 18px;
  padding: 18px;
  margin: 20px 0;
}

.me-score strong {
  font-size: 36px;
  color: var(--me-green);
}

/* ==========================================================
   Sections
   ========================================================== */

.me-section {
  padding: 42px 0;
}

.me-section-tight {
  padding-top: 14px;
}

.me-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.me-section h1,
.me-section h2 {
  color: var(--me-blue);
}

.me-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 64px;
}

.me-features article,
.me-post-card,
.me-job-card,
.me-core-card {
  background: #ffffff;
  border: 1px solid var(--me-border);
  border-radius: var(--me-radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(11, 46, 89, 0.06);
}

.me-features strong {
  color: var(--me-green);
}

/* ==========================================================
   Jobs
   ========================================================== */

.me-filters {
  display: grid;
  grid-template-columns: 1fr 240px 120px;
  gap: 10px;
  margin: 18px 0 26px;
}

.me-job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.me-job-card h3 {
  margin-top: 0;
}

.me-job-card h3 a {
  color: var(--me-blue);
  text-decoration: none;
}

.me-job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.me-job-tags span {
  font-size: 12px;
  background: #eef6ff;
  color: var(--me-blue);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.me-job-hero {
  background: linear-gradient(135deg, var(--me-blue), #0e4f82);
  color: #ffffff;
  padding: 52px 0;
}

.me-back {
  color: #d9fff0;
  text-decoration: none;
  font-weight: 800;
}

.me-job-hero h1 {
  font-size: 42px;
  margin: 16px 0;
}

.me-job-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.me-job-meta span {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
}

.me-job-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  padding: 40px 22px;
}

.me-job-content,
.me-job-aside {
  background: #ffffff;
  border-radius: var(--me-radius);
  padding: 26px;
  border: 1px solid var(--me-border);
}

.me-job-aside {
  position: sticky;
  top: 96px;
  height: max-content;
}

/* ==========================================================
   Pages et plugin
   ========================================================== */

.me-page {
  background: #ffffff;
  border: 1px solid var(--me-border);
  border-radius: var(--me-radius);
  margin-top: 36px;
  margin-bottom: 36px;
  padding: 34px;
}

.me-core .me-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.me-core .me-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.me-core label {
  font-weight: 800;
  margin: 8px 0 6px;
  display: block;
}

.me-core table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.me-core th,
.me-core td {
  border-bottom: 1px solid var(--me-border);
  padding: 12px;
  text-align: left;
}

.me-core .notice {
  border-radius: 14px;
  padding: 12px 14px;
  background: #eefbf5;
  border: 1px solid #b8ead4;
}

.me-core .error {
  background: #fff1f0;
  border-color: #ffccc7;
}

.me-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef6ff;
  color: var(--me-blue);
  font-size: 12px;
  font-weight: 900;
}

.me-progress {
  height: 12px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.me-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--me-orange), var(--me-green));
}

/* ==========================================================
   Footer
   ========================================================== */

.me-footer {
  background: #071a33;
  color: #dbe7f5;
  padding: 48px 0 18px;
}

.me-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}

.me-footer a {
  display: block;
  color: #dbe7f5;
  text-decoration: none;
  margin: 8px 0;
}

.me-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 28px;
  padding-top: 18px;
  color: #9fb3ca;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1100px) {
  .me-home-hero-grid {
    grid-template-columns: 1.65fr 1fr;
  }

  .me-home-visual,
  .me-home-panel {
    min-height: 350px;
  }

  .me-home-panel {
    padding: 24px;
  }

  .me-home-panel h1 {
    font-size: 34px;
  }

  .me-home-search-card {
    grid-template-columns: 1fr;
  }

  .me-home-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .me-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .me-menu,
  .me-header-actions {
    display: none;
  }

  .me-menu-open .me-menu {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
  }

  .me-menu-open .me-menu ul {
    display: block;
  }

  .me-menu-open .me-menu li {
    margin: 12px 0;
  }

  .me-home-hero-grid,
  .me-hero-grid,
  .me-features,
  .me-footer-grid,
  .me-job-layout {
    grid-template-columns: 1fr;
  }

  .me-home-visual {
    min-height: 300px;
  }

  .me-home-panel {
    height: auto;
    min-height: auto;
  }

  .me-search-hero,
  .me-filters,
  .me-job-grid,
  .me-core .me-grid,
  .me-core .me-row {
    grid-template-columns: 1fr;
  }

  .me-home-actions,
  .me-hero-actions {
    flex-wrap: wrap;
  }

  .me-hero h1 {
    font-size: 38px;
  }

  .me-job-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .me-container {
    padding: 0 16px;
  }

  .me-nav {
    height: 70px;
  }

  .me-brand {
    font-size: 19px;
  }

  .me-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .me-home-hero {
    padding: 16px 0 24px;
  }

  .me-home-hero-grid {
    gap: 14px;
  }

  .me-home-visual {
    min-height: 230px;
    border-radius: 22px;
  }

  .me-home-panel {
    border-radius: 22px;
    padding: 22px;
  }

  .me-home-panel h1 {
    font-size: 32px;
  }

  .me-home-panel p {
    font-size: 15px;
  }

  .me-home-score-card strong {
    font-size: 36px;
  }

  .me-home-search-card {
    padding: 12px;
    border-radius: 20px;
  }

  .me-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .me-home-actions .me-btn {
    width: 100%;
  }

  .me-section-tight {
    padding-top: 22px;
  }
}