/* Charte commune des espaces Master RH. */
.portal-body {
  padding: 32px;
  color: #151a6b;
}

.portal-wide { max-width: 1200px; }
.portal-wide.collaborateurs-wide,
.portal-wide.societes-wide,
.portal-wide.planning-wide { max-width: 1500px; }
.portal-wide.fluid-wide { max-width: none; }
.portal-wide.home-wide { margin: auto; }

.portal-header,
.mrh-page-header {
  min-height: 104px;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 4px solid #f58442;
}
.portal-header { border-radius: 22px 22px 0 0; }
.portal-logo.small,
.mrh-page-header .mrh-logo,
.mrh-page-header .logo {
  display: block;
  height: 75px;
  width: auto;
  margin: 0;
}
.portal-user { gap: 22px; font-size: 14px; }
.portal-card {
  min-height: 540px;
  padding: 44px 64px 64px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 28px 80px rgba(9, 10, 52, .25);
}
.portal-card.narrow {
  min-height: 0;
  max-width: 520px;
  padding: 36px;
  border-radius: 22px;
}
.portal-card.assistance-card { min-height: 0; border-radius: 22px; }
.portal-card h1,
.mrh-page-content h1,
.tickets-page .content h1 {
  margin: 0 0 12px;
  color: #151a6b;
  font-size: clamp(29px, 3vw, 40px);
  letter-spacing: -.025em;
  text-align: left;
}
.portal-card h2 { color: #151a6b; }
.portal-card h3 { color: #151a6b; }
.portal-lead,
.mrh-page-lead { color: #626985; line-height: 1.6; }
.mrh-eyebrow {
  margin: 0 0 9px;
  color: #b94e15;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-card { padding: 60px 64px 72px; }
.home-card .portal-lead { margin: 13px 0 40px; font-size: 17px; }
.module-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.module-card {
  min-height: 265px;
  padding: 30px 34px;
  border: 1px solid #e6e5f1;
  border-radius: 18px;
  background: #f7f7fc;
}
.module-card:hover { border-color: #d3cfea; }
.module-icon { width: 60px; height: 60px; border-radius: 16px; background: #e9e7fa; }
.module-icon .mrh-icon { width: 30px; height: 30px; }
.module-card h2 { margin: 22px 0 9px; font-size: 22px; }
.module-card p { color: #626985; line-height: 1.55; }
.module-open { color: #b94e15; }

.portal-subnav { gap: 8px; margin: 18px 0 28px; }
.portal-subnav a,
.portal-subnav [aria-current="page"] { padding: 10px 15px; border: 0; background: #f3f2fa; }
.portal-subnav [aria-current="page"] { background: #2a1fa0; }
.btn-portal {
  border-radius: 9px;
  background: #ee7937;
  font-weight: 700;
}
.btn-portal.secondary { background: #eeedf9; color: #2a1fa0; }
.btn-portal.btn-green { background: #19845a; color: #fff; }
.btn-portal.btn-red { background: #b3261e; color: #fff; }
.btn-portal:focus-visible,
.module-card:focus-visible,
.notes-nav a:focus-visible { outline: 3px solid #f58442; outline-offset: 3px; }
.portal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.portal-card select,
.portal-card textarea {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcddeb;
  border-radius: 9px;
  font: inherit;
}
.portal-card input:focus-visible,
.portal-card select:focus-visible,
.portal-card textarea:focus-visible { outline: 2px solid #786ed1; outline-offset: 1px; }
.portal-card .absence-form,
.portal-card .manager-services {
  padding: 24px;
  border: 1px solid #e6e5f1;
  border-radius: 16px;
  background: #f9f9fd;
}
.portal-card .absence-card,
.portal-card .note,
.portal-card .admin-user { border-radius: 13px; }
.portal-card .table-wrap,
.portal-card .soc-wrap,
.portal-card .planning-table-wrap { border-radius: 13px; }
.portal-card table:not(.planning-table) th {
  padding: 13px 12px;
  background: #f4f3fa;
  color: #555b79;
  font-size: .8em;
  letter-spacing: .03em;
}
.portal-card table:not(.planning-table) td { padding: 12px; }
.portal-card .avatar { background: #e9e7fa; color: #2a1fa0; }

.notes-page,
.tickets-page { max-width: none; margin: 0; padding: 32px; }
.notes-page .container,
.tickets-page .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(9, 10, 52, .25);
  animation: none;
}
.notes-page .container,
.tickets-page .container { max-width: none; }
.mrh-page-header .mrh-topbar {
  flex: 1;
  padding: 0;
  background: transparent;
  color: #151a6b;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 14px;
}
.mrh-page-header .mrh-topbar a { color: #2a1fa0; }
.mrh-page-header .mrh-topbar a:hover { color: #b94e15; }
.mrh-page-content,
.tickets-page .content { padding: 44px 64px 64px; }
.notes-page .config-section,
.tickets-page .main-controls,
.tickets-page .data-management,
.tickets-page .summary-section {
  padding: 24px;
  border: 1px solid #e6e5f1;
  border-radius: 16px;
  background: #f9f9fd;
  color: #151a6b;
}
.notes-page .config-section h3,
.tickets-page .main-controls h2,
.tickets-page .data-management h3,
.tickets-page .summary-section h2 { color: #151a6b; }
.tickets-page .main-controls .form-group label { color: #34395e; }
.tickets-page .form-group label { text-transform: none; letter-spacing: normal; }
.tickets-page .btn { text-transform: none; letter-spacing: normal; }
.tickets-page .mrh-page-lead { margin: 0 0 28px; }
.notes-page .table-container { border-radius: 13px; }
.notes-page table { min-width: 950px; box-shadow: none; }
.notes-page th,
.tickets-page .table-header { background: #f4f3fa; color: #555b79; }

.recrutement-body {
  padding: 32px;
  background: linear-gradient(135deg, #151a6b 0%, #2a1fa0 55%, #4a3fd0 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.recrutement-shell {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(1200px, 100%);
  min-height: 540px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(9, 10, 52, .25);
}
.recrutement-shell.recrutement-wide { width: 100%; }
.recrutement-body .site-header {
  padding: 14px 48px;
  border-bottom: 4px solid #f58442;
  box-shadow: none;
}
.recrutement-body .header-content { min-height: 75px; }
.recrutement-body .logo { height: 75px; }
.recrutement-body h1 { color: #151a6b; font-size: clamp(25px, 2.5vw, 34px); }
.recrutement-body .mrh-topbar {
  padding: 15px 48px;
  background: #f7f7fc;
  color: #151a6b;
  flex-wrap: wrap;
  gap: 12px;
}
.recrutement-body .mrh-topbar a { color: #2a1fa0; }
.recrutement-body .mrh-topbar a:hover { color: #b94e15; }
.recrutement-body .container-dashboard {
  width: calc(100% - 128px);
  margin: 44px auto 64px;
  grid-template-columns: minmax(0, 1fr);
}
.recrutement-body .chart { width: min(320px, 100%); height: auto; aspect-ratio: 1; }
.recrutement-body .box,
.recrutement-body .add-form-container {
  border: 1px solid #e6e5f1;
  border-radius: 16px;
  background: #f9f9fd;
  box-shadow: none;
}
.recrutement-body .add-form-container { width: calc(100% - 128px); padding: 28px; }
.recrutement-body .candidature-list,
.recrutement-body .page-actions,
.recrutement-body form:not(.add-form-container) { width: calc(100% - 128px); }
.recrutement-body .page-actions form { width: auto; }
.recrutement-body .mrh-brand-footer { background: transparent; }
.recrutement-shell > h3 { width: calc(100% - 128px); margin: 28px auto 0; }
.recrutement-body a.submit-btn,
.recrutement-body button.submit-btn,
.recrutement-body button[type="submit"],
.recrutement-body .add-form-container button[type="submit"] { background: #ee7937; }
.recrutement-body a.submit-btn:hover,
.recrutement-body button.submit-btn:hover,
.recrutement-body button[type="submit"]:hover,
.recrutement-body .add-form-container button[type="submit"]:hover { background: #d96325; }

@media (max-width: 1000px) {
  .tickets-page .controls-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
  .tickets-page .controls-row .form-group { min-width: 0; }
  .tickets-page .controls-row input { width: 100%; min-width: 0; }
}

@media (max-width: 700px) {
  .portal-body, .notes-page, .tickets-page, .recrutement-body { padding: 16px; }
  .portal-header, .mrh-page-header { min-height: 85px; padding: 12px 22px; }
  .portal-logo.small, .mrh-page-header .mrh-logo, .mrh-page-header .logo { height: 60px; }
  .portal-user, .mrh-page-header .mrh-topbar { gap: 10px; font-size: 12px; }
  .mrh-page-header .mrh-topbar-user { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .portal-card, .home-card, .mrh-page-content, .tickets-page .content { min-height: 0; padding: 34px 22px 42px; }
  .portal-card.narrow { padding: 26px; }
  .module-grid { grid-template-columns: 1fr; gap: 14px; }
  .module-card { min-height: 220px; padding: 24px; }
  .home-card .portal-lead { margin-bottom: 26px; font-size: 15px; }
  .recrutement-body .site-header { padding: 12px 22px; }
  .recrutement-shell { min-height: 0; }
  .recrutement-body .logo { height: 60px; }
  .recrutement-body .mrh-topbar { padding: 14px 22px; }
  .recrutement-body .mrh-topbar-user { flex-wrap: wrap; gap: 10px; }
  .recrutement-body .container-dashboard,
  .recrutement-body .add-form-container,
  .recrutement-body .candidature-list,
  .recrutement-body .page-actions,
  .recrutement-body form:not(.add-form-container),
  .recrutement-shell > h3 { width: calc(100% - 44px); }
  .recrutement-body .container-dashboard { margin: 24px auto 40px; }
  .recrutement-body .add-form-container { padding: 20px; }
  .recrutement-body .page-actions form { width: 100%; }
}
