:root {
  --brand-violet: #001f83;
  --brand-violet-dark: #001f83;
  --brand-blue: #4169ff;
  --brand-blue-soft: #ffffff;
  --brand-gold: #ffd700;
  --brand-gold-deep: #d9a100;
  --brand-gold-light: #ffd700;
  --ink: #001f83;
  --ink-soft: #485981;
  --line: transparent;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --success: #12845e;
  --success-soft: #ffffff;
  --danger: #bd3d4a;
  --danger-soft: #ffffff;
  --warning: #8a6500;
  --warning-soft: #ffd700;
  --info: #2f57d1;
  --radius-sm: 5px;
  --radius: 5px;
  --radius-lg: 5px;
  --shadow-sm: 0 2px 8px rgb(0, 31, 131);
  --shadow: 0 6px 18px rgb(0, 31, 131);
  --sidebar-width: 260px;
  --content-width: 1200px;
  color-scheme: light;
}

/* CAPTCHA local : contraste fort, saisie compacte et rafraîchissement accessible. */
.captcha-field {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfe5f2;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 31, 131, .07);
}
.captcha-heading,
.captcha-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.captcha-heading { margin-bottom: 9px; }
.captcha-refresh { flex: 0 0 auto; }
.captcha-image {
  display: grid;
  flex: 0 0 220px;
  place-items: center;
  min-height: 64px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #9db2ff;
  border-radius: 5px;
}
.captcha-image img { display: block; width: 220px; height: 64px; object-fit: contain; }
.captcha-answer { min-width: 0; text-transform: uppercase; }
.captcha-field.is-loading .captcha-image { opacity: .55; }

@media (max-width: 560px) {
  .captcha-layout { align-items: stretch; flex-direction: column; }
  .captcha-image { width: 100%; flex-basis: auto; }
  .captcha-image img { max-width: 100%; }
}

/* Harmonisation métier 2026-08-14 : états, détails et lecture temps réel. */
:root {
  --brand-gold-deep: #d9a100;
  --success: #1f7a4d;
  --success-soft: #e8f5ee;
  --warning: #a85d00;
  --warning-soft: #fff1d6;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info-soft: #eaf0ff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 2px;
  color: #001f83;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: normal;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-link:hover { color: #d9a100; }
.text-link.is-danger { color: #b42318; }
.text-link.is-danger:hover { color: #7d1811; }

.btn-danger-solid { color: #ffffff; background: #b42318; border: 0; }
.btn-danger-solid:hover { color: #ffffff; background: #7d1811; }

.deadline-chip,
.message-level,
.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: .78rem;
  line-height: 1.15;
  white-space: nowrap;
}
.deadline-chip.is-valid { color: #155d39; background: #e8f5ee; }
.deadline-chip.is-attention { color: #624d00; background: #fff4b8; }
.deadline-chip.is-warning { color: #7a4000; background: #ffe5ba; }
.deadline-chip.is-critical,
.deadline-chip.is-expired { color: #8f1d15; background: #fdecea; }
.deadline-chip.is-neutral { color: #4b5563; background: #eef0f4; }
.message-level.is-info { color: #001f83; background: #eaf0ff; }
.message-level.is-important { color: #714400; background: #fff1d6; }
.message-level.is-urgent { color: #8f1d15; background: #fdecea; }
.role-badge.is-student { color: #001f83; background: #eaf0ff; }
.role-badge.is-firm { color: #604700; background: #fff4b8; }
.role-badge.is-admin { color: #ffffff; background: #001f83; }

.entity-row.is-student { background: #f4f7ff; }
.entity-row.is-firm { background: #fffbea; }
.entity-row.is-admin { background: #ffffff; }
.avatar-student { color: #ffffff !important; background: #4169ff !important; }
.avatar-firm { color: #001f83 !important; background: #ffd700 !important; }
.avatar-admin { color: #ffffff !important; background: #001f83 !important; }
.entity-row td small,
.data-table td div > small { display: block; color: var(--ink-soft); margin-top: 3px; }

.skill-picker,
.selected-skills,
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-option,
.custom-skill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  color: #001f83;
  background: #ffffff;
  border: 1px solid #cbd5ef;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}
.skill-option .svg-icon { width: 16px; height: 16px; color: #001f83; opacity: .35; }
.skill-option.is-selected { color: #ffffff; background: #001f83; border-color: #001f83; }
.skill-option.is-selected .svg-icon { color: #ffffff; opacity: 1; }
.custom-skill { color: #001f83; background: #fff4b8; border-color: #ffd700; }
.custom-skill .svg-icon { width: 15px; height: 15px; color: currentColor; }
.inline-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.selected-skills { margin-top: 10px; }

.modal-dialog-wide { width: min(900px, calc(100vw - 32px)); }
.details-body { max-height: min(72vh, 760px); overflow: auto; }
.detail-hero { padding: 4px 0 22px; }
.detail-hero h3 { margin: 12px 0 6px; font-size: clamp(1.7rem, 4vw, 3rem); }
.detail-hero p { margin: 0 0 14px; color: var(--ink-soft); }
.detail-status { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-grid section { padding: 18px; color: #ffffff; background: #001f83; border-radius: 5px; }
.detail-grid section:nth-child(even) { color: #001f83; background: #fff4b8; }
.detail-grid h4 { margin: 0 0 10px; color: inherit; font-size: 1rem; }
.detail-grid p { margin: 0; color: inherit; line-height: 1.65; white-space: pre-line; }
.related-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.related-stats > div { min-width: 130px; padding: 14px; color: #001f83; background: #eaf0ff; border-radius: 5px; }
.related-stats small,
.related-stats strong { display: block; }
.related-stats strong { margin-top: 3px; font-size: 1.5rem; }
.entity-detail.is-firm .detail-grid section:first-child { color: #001f83; background: #fff4b8; }
.entity-detail.is-student .detail-grid section:first-child { color: #ffffff; background: #4169ff; }

.pdf-preview { height: min(68vh, 720px); overflow: hidden; background: #eaf0ff; border-radius: 5px; }
.pdf-preview iframe { width: 100%; height: 100%; border: 0; background: #ffffff; }
.pdf-preview-compact { height: 460px; margin-top: 20px; }

.constraint-list { display: grid; gap: 8px; margin: 18px 0 0; padding-left: 22px; }
.confirmation-summary { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px; border-radius: 5px; }
.confirmation-summary .svg-icon { width: 24px; height: 24px; color: currentColor; }
.confirmation-summary p { margin: 0; }
.confirmation-summary.is-warning { color: #714400; background: #fff1d6; }
.confirmation-summary.is-danger { color: #8f1d15; background: #fdecea; }

.notification-list { display: grid; }
.notification-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.notification-row + .notification-row { box-shadow: inset 0 1px #e6e9f2; }
.notification-row.is-unread { background: #eaf0ff; }
.notification-row:hover { background: #fffbea; }
.notification-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #ffffff; background: #001f83; border-radius: 5px; }
.notification-icon .svg-icon { width: 21px; height: 21px; color: #ffffff; }
.notification-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notification-row small { display: block; margin-top: 5px; color: var(--ink-soft); }
.notification-full-message { margin: 8px 0 0; font-size: 1.05rem; line-height: 1.75; white-space: pre-line; }

.is-unread-row { background: #eaf0ff !important; box-shadow: inset 4px 0 #4169ff; }
.application-state.is-accepted { background: #e8f5ee; }
.application-state.is-rejected { background: #fdecea; }
.application-state.is-viewed { background: #ffffff; }
.application-state.is-submitted { background: #eaf0ff; }

/* Priorité finale 2026-08-20 : listes, états et fenêtres métier. */
.badge.badge-submitted { color: #5b357d; background: #f0e8f7; }
.badge.badge-viewed { color: #0f665f; background: #ddf3f0; }
.badge.badge-warning { color: #7a4000; background: #ffe5ba; }
.badge.badge-danger { color: #8f1d15; background: #fdecea; }
.badge.badge-success { color: #155d39; background: #e8f5ee; }
.badge.badge-neutral { color: #4b5563; background: #eef0f4; box-shadow: none; }

.list { gap: 12px; padding: 12px; }
.list-item,
.notification-row,
.talent-card,
.offer-card,
.file-card {
  border: 1px solid #dfe5f2;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 31, 131, .07);
}
.list-item + .list-item,
.notification-row + .notification-row { box-shadow: 0 8px 22px rgba(0, 31, 131, .07); }
.list-item:hover,
.notification-row:hover,
.talent-card:hover,
.offer-card:hover { background: #f4f7ff; box-shadow: 0 12px 26px rgba(0, 31, 131, .11); }
.notification-list { gap: 12px; padding: 14px; }
.notification-row { grid-template-columns: 42px minmax(0, 1fr) auto; margin: 0; }
.notification-row.is-unread { border-color: #9db2ff; background: #eaf0ff; box-shadow: 0 9px 24px rgba(65, 105, 255, .12); }

.data-table-wrap { padding: 12px; overflow-x: auto; }
.data-table { border-collapse: separate; border-spacing: 0 10px; }
.data-table thead th { color: #ffffff; background: #001f83; border: 0; font-size: .75rem; }
.data-table thead th:first-child { border-radius: 5px 0 0 5px; }
.data-table thead th:last-child { border-radius: 0 5px 5px 0; }
.data-table tbody tr { box-shadow: 0 7px 20px rgba(0, 31, 131, .07); }
.data-table tbody td { background: #ffffff; border-top: 1px solid #e1e6f0; border-bottom: 1px solid #e1e6f0; }
.data-table tbody td:first-child { border-left: 1px solid #e1e6f0; border-radius: 5px 0 0 5px; }
.data-table tbody td:last-child { border-right: 1px solid #e1e6f0; border-radius: 0 5px 5px 0; }
.data-table tbody tr.entity-row.is-student td { background: #f4f7ff; }
.data-table tbody tr.entity-row.is-firm td { background: #fffbea; }
.data-table tbody tr.application-state.is-accepted td { background: #e8f5ee; }
.data-table tbody tr.application-state.is-rejected td { background: #fdecea; }
.data-table tbody tr.application-state.is-viewed td { background: #ffffff; }
.data-table tbody tr.application-state.is-submitted td,
.data-table tbody tr.is-unread-row td { background: #eaf0ff; }

.detail-modal-dialog { overflow: hidden; border: 1px solid #dfe5f2; box-shadow: 0 24px 70px rgba(0, 20, 70, .22); }
.detail-modal-header { min-height: 96px; padding: 22px 26px; background: #001f83; }
.detail-modal-header h2,
.detail-modal-header small { color: #ffffff; }
.detail-modal-header .modal-close { color: #001f83; background: #ffffff; }
.details-body { padding: 26px; background: #ffffff; }
.detail-modal-footer { min-height: 76px; padding: 16px 26px; background: #ffffff; box-shadow: 0 -8px 22px rgba(0, 31, 131, .06); }

@media (max-width: 780px) {
  .notification-list { padding: 10px; }
  .notification-row { grid-template-columns: 38px minmax(0, 1fr); }
  .notification-row > .badge { grid-column: 2; justify-self: start; }
  .data-table { border-spacing: 0; }
  .data-table tbody tr { display: block; margin-bottom: 12px; padding: 6px 0; border: 1px solid #dfe5f2; border-radius: 5px; background: #ffffff; box-shadow: 0 8px 22px rgba(0, 31, 131, .08); }
  .data-table tbody td,
  .data-table tbody td:first-child,
  .data-table tbody td:last-child { border: 0; border-radius: 0; background: transparent !important; }
  .detail-modal-header,
  .details-body,
  .detail-modal-footer { padding-inline: 18px; }
}

@media (max-width: 480px) {
  .details-body { padding: 16px 14px; }
  .detail-modal-footer { padding: 14px; }
  .detail-modal-footer .btn,
  .detail-modal-footer .text-link { width: 100%; justify-content: center; text-align: center; }
}

/* Harmonisation premium des listes, tableaux et fenêtres de détail. */
.badge-submitted { color: #5b357d; background: #f0e8f7; }
.badge-viewed { color: #0f665f; background: #ddf3f0; }
.badge-warning { color: #7a4000; background: #ffe5ba; }
.badge-danger { color: #8f1d15; background: #fdecea; }
.badge-success { color: #155d39; background: #e8f5ee; }
.badge-neutral { color: #4b5563; background: #eef0f4; }

.list { display: grid; gap: 12px; padding: 12px; }
.list-item,
.notification-row,
.talent-card,
.offer-card,
.file-card {
  border: 1px solid #dfe5f2;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 31, 131, .07);
}
.list-item + .list-item,
.notification-row + .notification-row { box-shadow: 0 8px 22px rgba(0, 31, 131, .07); }
.list-item:hover,
.notification-row:hover,
.talent-card:hover,
.offer-card:hover { background: #f4f7ff; box-shadow: 0 12px 26px rgba(0, 31, 131, .11); }
.notification-list { gap: 12px; padding: 14px; }
.notification-row { grid-template-columns: 42px minmax(0, 1fr) auto; margin: 0; }
.notification-row.is-unread { border-color: #9db2ff; background: #eaf0ff; box-shadow: 0 9px 24px rgba(65, 105, 255, .12); }

.data-table-wrap { padding: 12px; overflow-x: auto; }
.data-table { border-collapse: separate; border-spacing: 0 10px; }
.data-table thead th {
  color: #ffffff;
  background: #001f83;
  border: 0;
  font-size: .75rem;
}
.data-table thead th:first-child { border-radius: 5px 0 0 5px; }
.data-table thead th:last-child { border-radius: 0 5px 5px 0; }
.data-table tbody tr { box-shadow: 0 7px 20px rgba(0, 31, 131, .07); }
.data-table tbody td { background: #ffffff; border-top: 1px solid #e1e6f0; border-bottom: 1px solid #e1e6f0; }
.data-table tbody td:first-child { border-left: 1px solid #e1e6f0; border-radius: 5px 0 0 5px; }
.data-table tbody td:last-child { border-right: 1px solid #e1e6f0; border-radius: 0 5px 5px 0; }
.data-table tbody tr.entity-row.is-student td { background: #f4f7ff; }
.data-table tbody tr.entity-row.is-firm td { background: #fffbea; }
.data-table tbody tr.application-state.is-accepted td { background: #e8f5ee; }
.data-table tbody tr.application-state.is-rejected td { background: #fdecea; }
.data-table tbody tr.application-state.is-viewed td { background: #ffffff; }
.data-table tbody tr.application-state.is-submitted td,
.data-table tbody tr.is-unread-row td { background: #eaf0ff; }

.detail-modal-dialog { overflow: hidden; border: 1px solid #dfe5f2; box-shadow: 0 24px 70px rgba(0, 20, 70, .22); }
.detail-modal-header { min-height: 96px; padding: 22px 26px; background: #001f83; }
.detail-modal-header h2,
.detail-modal-header small { color: #ffffff; }
.detail-modal-title { display: flex; min-width: 0; align-items: center; gap: 14px; }
.detail-modal-mark { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 5px; color: #001f83; background: #ffd700; }
.detail-modal-mark .svg-icon { width: 23px; height: 23px; }
.detail-modal-header .modal-close { color: #001f83; background: #ffffff; }
.details-body { padding: 26px; background: #ffffff; }
.detail-modal-footer { min-height: 76px; padding: 16px 26px; background: #ffffff; box-shadow: 0 -8px 22px rgba(0, 31, 131, .06); }
.detail-grid { gap: 14px; }
.detail-grid section {
  min-width: 0;
  padding: 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #dfe5f2;
  border-radius: 5px;
  box-shadow: 0 7px 18px rgba(0, 31, 131, .05);
}
.detail-grid section h4 { margin: 0 0 9px; color: #001f83; font-size: .95rem; }
.detail-grid section p { margin: 0; color: #303b5a; line-height: 1.65; white-space: pre-line; }
.detail-status { margin-bottom: 18px; }
.candidate-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dfe5f2;
  border-radius: 5px;
  background: #ffffff;
}
.candidate-summary.is-student { background: #f4f7ff; }
.candidate-summary.is-firm { background: #fffbea; }
.candidate-summary h3,
.candidate-summary p { margin: 0; }
.candidate-summary p { margin-top: 4px; color: var(--ink-soft); }
.candidate-summary-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.reference-chip { display: inline-flex; padding: 6px 9px; border-radius: 5px; color: #303b5a; background: #eef0f4; font-size: .75rem; }
.application-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.experience-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.experience-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 5px; color: #ffffff; background: #0f766e; }
.experience-card h4,
.experience-card p { margin: 0; }
.experience-card small { display: block; margin-top: 5px; color: #0f665f; }
.experience-card .experience-description { margin-top: 10px; color: #303b5a; }
.empty-inline { color: var(--ink-soft); }
.document-preview-section { margin-top: 18px; padding: 18px; border: 1px solid #dfe5f2; border-radius: 5px; background: #ffffff; }
.section-inline-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-inline-heading h4,
.section-inline-heading p { margin: 0; }
.section-inline-heading p { margin-top: 4px; color: var(--ink-soft); font-size: .82rem; }
.pdf-preview { min-height: 520px; border: 1px solid #dfe5f2; background: #ffffff; }

.help-main { min-height: calc(100vh - 90px); padding: 56px 0 80px; background: #ffffff; }
.help-container { max-width: 980px; }
.help-resource { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-bottom: 18px; padding: 28px; border: 1px solid #dfe5f2; border-radius: 5px; background: #ffffff; box-shadow: 0 12px 30px rgba(0, 31, 131, .08); }
.help-resource h2 { margin: 14px 0 6px; }
.help-resource p { margin: 0; color: var(--ink-soft); }
.help-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (max-width: 780px) {
  .notification-list { padding: 10px; }
  .notification-row { grid-template-columns: 38px minmax(0, 1fr); }
  .notification-row > .badge { grid-column: 2; justify-self: start; }
  .application-detail-grid,
  .help-resource { grid-template-columns: 1fr; }
  .help-actions { justify-content: flex-start; }
  .candidate-summary { grid-template-columns: auto minmax(0, 1fr); }
  .candidate-summary-status { grid-column: 1 / -1; justify-content: flex-start; }
  .detail-modal-header,
  .details-body,
  .detail-modal-footer { padding-inline: 18px; }
  .pdf-preview { min-height: 430px; }
  .data-table tbody tr { display: block; margin-bottom: 12px; padding: 6px 0; border: 1px solid #dfe5f2; border-radius: 5px; background: #ffffff; box-shadow: 0 8px 22px rgba(0, 31, 131, .08); }
  .data-table tbody td,
  .data-table tbody td:first-child,
  .data-table tbody td:last-child { border: 0; border-radius: 0; background: transparent !important; }
}

@media (max-width: 480px) {
  .detail-modal-title { align-items: flex-start; }
  .detail-modal-mark { width: 38px; height: 38px; }
  .details-body { padding: 16px 14px; }
  .detail-modal-footer { padding: 14px; }
  .detail-modal-footer .btn,
  .detail-modal-footer .text-link { width: 100%; justify-content: center; text-align: center; }
  .pdf-preview { min-height: 62vh; }
  .help-main { padding-top: 32px; }
  .help-resource { padding: 20px; }
  .help-actions .btn { width: 100%; }
}
.list-item-button { width: 100%; color: inherit; text-align: left; background: #ffffff; border: 0; }
.list-item-button.is-unread { background: #eaf0ff; }
.history-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.history-list li span { display: block; margin-top: 2px; font-size: .86rem; }
.card-excerpt { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.offer-deadline { margin-top: 12px; }

.premium-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
  .inline-entry { grid-template-columns: 1fr; }
  .notification-row { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
  .notification-row > .badge { grid-column: 2; justify-self: start; }
  .pdf-preview-compact { height: 58vh; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.brand,
.topbar-title strong,
.stat-value,
.panel-header strong {
  font-family: "Aura", "Arial Narrow", Arial, sans-serif;
}

body.public-page { background: var(--surface); }

img { display: block; max-width: 100%; }
.svg-icon { display: block; width: 1.15em; height: 1.15em; flex: 0 0 auto; overflow: visible; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-violet); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid rgba(65, 105, 255, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--brand-violet);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--content-width)); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 5px; background: white; }
.brand img.brand-logo-horizontal { width: 186px; height: auto; max-height: 78px; border-radius: 0; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { margin-top: 5px; color: var(--brand-violet); font-size: 0.63rem; font-weight: 800; text-transform: uppercase; }

.public-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: #ffffff;
}

.public-nav { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; }
.public-links { display: flex; align-items: center; gap: 28px; }
.public-links > a:not(.btn) { color: var(--ink-soft); font-size: 0.94rem; font-weight: 650; }
.public-links > a[aria-current="page"] { color: var(--brand-violet); }

.mobile-menu-button, .sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { color: white; background: var(--brand-violet); box-shadow: none; }
.btn-primary:hover { background: var(--brand-blue); box-shadow: none; }
.btn-secondary { color: var(--brand-violet); background: white; }
.btn-soft { color: var(--ink); background: var(--surface-soft); }
.btn-success { color: white; background: var(--success); }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
.btn-small { min-height: 38px; padding: 8px 13px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-violet);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before { width: 24px; height: 3px; border-radius: 5px; background: var(--brand-gold-deep); content: ""; }
.hero { position: relative; overflow: hidden; padding: 86px 0 78px; background: #ffffff; }
.hero::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: var(--brand-gold); content: ""; }
.hero-grid { position: relative; display: grid; align-items: center; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: 72px; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.45rem, 4.6vw, 4.1rem); line-height: 1.06; }
.hero h1 span { color: var(--brand-violet); }
.hero-lead { max-width: 670px; margin: 25px 0 30px; color: var(--ink-soft); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 34px; color: var(--ink-soft); font-size: 0.9rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 5px; color: var(--success); background: #ffd700 url("../assets/icons/check.svg") center / 14px no-repeat; content: ""; }

.hero-visual { position: relative; }
.hero-panel { padding: 28px; border-radius: 5px; background: #ffffff; box-shadow: var(--shadow-sm); }
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.hero-panel-head strong { font-size: 1.04rem; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 5px; color: var(--success); background: var(--success-soft); font-size: .76rem; font-weight: 800; }
.live-pill::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-stat { padding: 17px; border-radius: 5px; background: var(--surface-soft); }
.mini-stat strong { display: block; font-size: 1.55rem; }
.mini-stat span { color: var(--ink-soft); font-size: .78rem; }
.access-process { margin-top: 24px; }
.access-process-title { margin: 18px 0 8px; color: var(--ink-soft); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.access-process ol { margin: 0; padding: 0; list-style: none; }
.access-process li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; }
.access-process li:first-child { }
.access-process li > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 5px; color: white; background: var(--brand-violet); font-size: .7rem; font-weight: 800; }
.access-process strong, .access-process small { display: block; }
.access-process small { margin-top: 2px; color: var(--ink-soft); }
.hero-panel-note { margin: 15px -28px -28px; padding: 14px 28px; color: var(--ink-soft); background: var(--surface-soft); font-size: .78rem; }
.candidate-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; }
.avatar { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 5px; color: white; background: var(--brand-violet); font-size: .78rem; font-weight: 850; }
.candidate-card strong, .candidate-card small { display: block; }
.candidate-card small { color: var(--ink-soft); }

.section { padding: 84px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.section-heading p { margin: 17px 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 28px; border-radius: var(--radius-lg); background: white; transition: border-color 140ms ease; }
.feature-card:hover { transform: none; box-shadow: none; }
.feature-icon { display: grid; width: 50px; height: 50px; margin-bottom: 22px; place-items: center; border-radius: 5px; color: var(--brand-violet); background: var(--brand-blue-soft); font-size: 1.1rem; font-weight: 900; }
.feature-card:nth-child(2) .feature-icon { color: var(--warning); background: var(--brand-gold-light); }
.feature-card:nth-child(3) .feature-icon { color: var(--success); background: var(--success-soft); }
.feature-card h3 { margin: 0 0 9px; font-size: 1.18rem; }
.feature-card p { margin: 0; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 25px 22px; border-radius: 5px; background: white; counter-increment: step; }
.step::before { display: grid; width: 38px; height: 38px; margin-bottom: 22px; place-items: center; border-radius: 5px; color: white; background: var(--brand-violet); content: counter(step, decimal-leading-zero); font-size: .78rem; font-weight: 900; }
.step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card { display: flex; min-height: 270px; flex-direction: column; padding: 24px; border-radius: 5px; background: white; }
.offer-card:hover { box-shadow: none; }
.offer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.company-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 5px; color: var(--brand-violet); background: var(--brand-blue-soft); font-weight: 900; }
.offer-card h3 { margin: 18px 0 5px; font-size: 1.12rem; line-height: 1.35; }
.offer-company { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.offer-card .offer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; color: var(--ink-soft); font-size: .82rem; }

.badge { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; color: var(--ink-soft); background: var(--surface-soft); font-size: .76rem; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.badge-primary { color: var(--brand-violet); background: var(--brand-blue-soft); }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-neutral { color: var(--ink-soft); background: #ffffff; }

.cta-band { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 32px; padding: 40px; border-radius: 5px; color: white; background: var(--brand-violet); box-shadow: none; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.cta-band p { max-width: 700px; margin: 0; color: rgba(255,255,255,.8); }
.cta-band .btn { color: var(--brand-violet); background: white; }

.public-footer { padding: 52px 0 26px; color: #dcd8f0; background: #001f83; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 48px; }
.public-footer .brand { color: white; }
.public-footer .brand img { background: white; }
.footer-intro { max-width: 430px; margin: 19px 0 0; color: #afa8c5; }
.footer-title { margin: 0 0 14px; color: white; font-size: .9rem; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #afa8c5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 24px; color: #8f87aa; font-size: .85rem; }

.legal-content { max-width: 860px; }
.legal-content > h1 { margin: 0 0 26px; font-size: clamp(2rem, 4vw, 3rem); }
.legal-content > h2 { margin: 32px 0 8px; padding-top: 20px; font-size: 1.2rem; }
.legal-content > p { color: var(--ink-soft); }
.legal-content .legal-back { margin-top: 38px; padding-top: 20px; }

/* Authentication */
.auth-page { min-height: 100vh; background: #ffffff; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .82fr) minmax(540px, 1.18fr); }
.auth-aside { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 44px clamp(34px, 5vw, 76px); color: white; background: var(--brand-violet); }
.auth-aside::before, .auth-aside::after { display: none; }
.auth-aside::before { width: 520px; height: 520px; right: -260px; top: 80px; }
.auth-aside::after { width: 320px; height: 320px; right: -80px; top: 180px; }
.auth-aside .brand { position: relative; z-index: 1; color: white; }
.auth-aside-content { position: relative; z-index: 1; max-width: 520px; }
.auth-aside-content h1 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.04; }
.auth-aside-content p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.auth-benefits { display: grid; gap: 14px; margin-top: 28px; }
.auth-benefit { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); }
.auth-benefit span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; background: rgba(255,255,255,.12); }
.auth-legal { position: relative; z-index: 1; color: rgba(255,255,255,.58); font-size: .78rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 42px 24px; }
.auth-card { width: min(100%, 570px); }
.auth-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.auth-card h2 { margin: 0; font-size: 2rem; }
.auth-card > p { margin: 8px 0 26px; color: var(--ink-soft); }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 24px; padding: 5px; border-radius: 5px; background: #ffffff; }
.auth-tab { min-height: 42px; padding: 8px 10px; border-radius: 5px; color: var(--ink-soft); background: transparent; font-size: .84rem; font-weight: 800; cursor: pointer; }
.auth-tab[aria-selected="true"] { color: var(--brand-violet); background: white; box-shadow: 0 4px 15px rgba(39,25,84,.08); }
.auth-panel[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-group { min-width: 0; }
.form-group-full { grid-column: 1 / -1; }
.form-group label, .field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .88rem; font-weight: 750; }
.required::after { margin-left: 3px; color: var(--danger); content: " *"; }
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  outline: 0;
  transition: border 150ms ease, box-shadow 150ms ease;
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-control:hover { }
.form-control:focus { box-shadow: 0 0 0 3px rgba(65,105,255,.14); }
.form-control[aria-invalid="true"] { }
.field-help, .field-error { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .78rem; }
.field-error { color: var(--danger); }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 52px; }
.password-toggle { position: absolute; top: 50%; right: 7px; width: 38px; height: 38px; transform: translateY(-50%); border-radius: 5px; color: var(--ink-soft); background: transparent; cursor: pointer; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: .86rem; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-violet); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-actions-end { justify-content: flex-end; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-soft); font-size: .78rem; }
.divider::before, .divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.security-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 13px 14px; border-radius: 5px; color: var(--ink-soft); background: #ffffff; font-size: .8rem; }

/* App shell */
.app-body { background: #ffffff; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: sticky; z-index: 900; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 16px; background: white; }
.sidebar .brand { justify-content: center; padding: 0 4px 18px; font-size: .9rem; }
.sidebar .brand img.brand-logo-horizontal { width: 208px; height: auto; max-height: 88px; }
.sidebar-role { margin: 0 8px 18px; padding: 11px 12px; border-radius: 5px; color: var(--brand-violet); background: var(--brand-blue-soft); font-size: .78rem; font-weight: 850; text-align: center; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-section-label { margin: 20px 12px 7px; color: #9992a9; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.sidebar-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 5px; color: var(--ink-soft); background: transparent; font-size: .9rem; font-weight: 700; text-align: left; cursor: pointer; }
.sidebar-link:hover { color: var(--ink); background: var(--surface-soft); text-decoration: none; }
.sidebar-link[aria-current="page"], .sidebar-link.is-active { color: var(--brand-violet); background: var(--brand-blue-soft); }
.nav-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 5px; color: currentColor; font-size: .78rem; font-weight: 900; }
.nav-count { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 5px; color: white; background: var(--danger); font-size: .66rem; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 18px; }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 7px; }
.sidebar-user .avatar { width: 38px; height: 38px; border-radius: 5px; }
.sidebar-user strong, .sidebar-user small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .82rem; }
.sidebar-user small { color: var(--ink-soft); font-size: .68rem; }
.logout-button { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; color: var(--danger); background: var(--danger-soft); cursor: pointer; }
.app-main { min-width: 0; }
.app-topbar { position: sticky; z-index: 800; top: 0; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 30px; background: #ffffff; }
.topbar-title { display: grid; }
.topbar-title strong { font-size: 1.05rem; }
.topbar-title span { color: var(--ink-soft); font-size: .78rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 5px; color: var(--ink); background: white; cursor: pointer; }
.icon-button .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.app-content { width: min(100%, 1440px); margin: 0 auto; padding: 30px; }
.page-section[hidden] { display: none; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; }
.page-heading p { margin: 7px 0 0; color: var(--ink-soft); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { position: relative; min-height: 132px; padding: 21px; border-radius: 5px; background: white; }
.stat-card:nth-child(2) { }
.stat-card:nth-child(3) { }
.stat-card:nth-child(4) { }
.stat-label { position: relative; z-index: 1; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.stat-value { position: relative; z-index: 1; display: block; margin-top: 10px; font-size: 2rem; font-weight: 850; }
.stat-trend { position: relative; z-index: 1; display: block; margin-top: 5px; color: var(--success); font-size: .72rem; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 20px; }
.panel { min-width: 0; border-radius: 5px; background: white; }
.panel + .panel { margin-top: 20px; }
.panel-header { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 1rem; }
.panel-header p { margin: 3px 0 0; color: var(--ink-soft); font-size: .8rem; }
.panel-body { padding: 20px; }
.panel-body-flush { padding: 0; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #ffffff; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--brand-blue); transition: width 300ms ease; }
.profile-progress { padding: 20px; border-radius: 5px; color: white; background: var(--brand-violet); }
.profile-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.profile-progress-head > span > strong, .profile-progress-head > span > small { display: block; }
.profile-progress-head > strong { flex: 0 0 auto; white-space: nowrap; }
.profile-progress strong { font-size: 1.1rem; }
.profile-progress small { color: rgba(255,255,255,.7); }
.profile-progress .progress-track { background: rgba(255,255,255,.17); }
.profile-progress .progress-bar { background: var(--brand-gold); }
.checklist { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); font-size: .82rem; }
.checklist li::before { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; content: ""; }
.checklist li.done::before { color: #001f83; background: #ffd700 url("../assets/icons/check.svg") center / 13px no-repeat; content: ""; }
.list { display: grid; }
.list-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 20px; }
.list-item:last-child { }
.list-item-main { min-width: 0; }
.list-item-main strong, .list-item-main small { display: block; }
.list-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-main small { color: var(--ink-soft); font-size: .78rem; }
.list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 20px; }
.timeline-item:not(:last-child)::before { position: absolute; top: 17px; bottom: -1px; left: 7px; width: 2px; background: var(--line); content: ""; }
.timeline-dot { z-index: 1; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--brand-violet); }
.timeline-content strong, .timeline-content small { display: block; }
.timeline-content small { color: var(--ink-soft); font-size: .78rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; padding: 16px; border-radius: 5px; background: white; }
.toolbar .form-group { flex: 1 1 190px; }
.toolbar label { margin-bottom: 5px; font-size: .75rem; }
.toolbar .form-control { min-height: 42px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; vertical-align: middle; }
.data-table th { color: var(--ink-soft); background: #ffffff; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.data-table td { font-size: .88rem; }
.data-table tr:last-child td { }
.data-table tbody tr:hover { background: #ffffff; }
.table-person { display: flex; align-items: center; gap: 10px; }
.table-person .avatar { width: 36px; height: 36px; border-radius: 5px; font-size: .68rem; }
.table-person strong, .table-person small { display: block; }
.table-person small { color: var(--ink-soft); font-size: .72rem; }
.empty-state { display: grid; min-height: 250px; place-items: center; padding: 36px; text-align: center; }
.empty-state-inner { max-width: 420px; }
.empty-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 18px; place-items: center; border-radius: 5px; color: var(--brand-violet); background: var(--brand-blue-soft); font-size: 1.35rem; font-weight: 900; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0 0 18px; color: var(--ink-soft); }
.loading-state { display: grid; min-height: 180px; place-items: center; color: var(--ink-soft); }
.spinner { width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border-radius: 5px; font-size: .88rem; }
.alert-info { color: #27469a; background: #ffffff; }
.alert-warning { color: #7a5600; background: var(--warning-soft); }
.alert-danger { color: #8f2631; background: var(--danger-soft); }
.alert-success { color: #0b694a; background: var(--success-soft); }
.upload-zone { display: grid; min-height: 170px; place-items: center; padding: 22px; border-radius: 5px; background: #ffffff; text-align: center; cursor: pointer; transition: border 150ms ease, background 150ms ease; }
.upload-zone:hover, .upload-zone.is-dragover { background: var(--brand-blue-soft); }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone strong { display: block; margin-top: 8px; }
.upload-zone small { color: var(--ink-soft); }
.file-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 5px; background: white; }
.file-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 5px; color: var(--danger); background: var(--danger-soft); font-size: .72rem; font-weight: 900; }
.file-card strong, .file-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card small { color: var(--ink-soft); font-size: .75rem; }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 18px; border-radius: 5px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: 3px; color: var(--ink-soft); }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { width: 1px; height: 1px; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #ffffff; cursor: pointer; transition: background 150ms ease; }
.switch span::after { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(0,0,0,.2); content: ""; transition: transform 150ms ease; }
.switch input:checked + span { background: var(--brand-violet); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(65,105,255,.35); outline-offset: 3px; }
.tabs { display: flex; overflow-x: auto; gap: 4px; padding: 5px; border-radius: 5px; background: #ffffff; }
.tab-button { min-height: 40px; padding: 8px 14px; border-radius: 5px; color: var(--ink-soft); background: transparent; font-size: .82rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.tab-button[aria-selected="true"] { color: var(--brand-violet); background: white; box-shadow: 0 3px 12px rgba(39,25,84,.08); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; color: var(--ink-soft); font-size: .8rem; }
.pagination-controls { display: flex; gap: 7px; }
.pagination button { min-width: 36px; height: 36px; border-radius: 5px; color: var(--ink); background: white; cursor: pointer; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.three-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.talent-card { padding: 20px; border-radius: 5px; background: white; }
.talent-head { display: flex; align-items: center; gap: 12px; }
.talent-card h3 { margin: 0; font-size: 1rem; }
.talent-card p { margin: 12px 0; color: var(--ink-soft); font-size: .85rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.talent-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 14px; }
.modal { position: fixed; z-index: 1600; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 20, 70, .52); }
.modal.is-open { display: flex; }
.modal-dialog { width: min(100%, 720px); max-height: min(860px, calc(100vh - 40px)); overflow-y: auto; border-radius: 5px; background: white; box-shadow: 0 8px 28px rgba(0,20,70,.18); }
.modal-small .modal-dialog { width: min(100%, 500px); }
.modal-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: white; }
.modal-header h2 { margin: 0; font-size: 1.2rem; }
.modal-close { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; color: var(--ink-soft); background: var(--surface-soft); cursor: pointer; }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 22px; }
.toast-region { position: fixed; z-index: 2000; right: 20px; bottom: 20px; display: grid; width: min(390px, calc(100vw - 40px)); gap: 10px; }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: flex-start; gap: 11px; padding: 14px 15px; border-radius: 5px; background: white; box-shadow: var(--shadow); animation: toast-in 180ms ease-out; }
.toast.is-success { }
.toast.is-error { }
.toast strong, .toast small { display: block; }
.toast small { margin-top: 2px; color: var(--ink-soft); }
.toast button { color: var(--ink-soft); background: transparent; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.notification-drawer { position: fixed; z-index: 1400; top: 0; right: 0; width: min(420px, 100vw); height: 100vh; padding: 20px; overflow-y: auto; background: white; box-shadow: -20px 0 50px rgba(31,20,70,.14); transform: translateX(105%); transition: transform 200ms ease; }
.notification-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-backdrop { position: fixed; z-index: 1300; inset: 0; display: none; background: rgba(24,16,50,.4); }
.drawer-backdrop.is-open { display: block; }

/* Charte : arrondi discret et constant de 5 px. */
:where(
  .brand img,
  .mobile-menu-button,
  .sidebar-toggle,
  .btn,
  .hero-panel,
  .mini-stat,
  .mini-chart,
  .avatar,
  .floating-card,
  .icon-bubble,
  .feature-card,
  .feature-icon,
  .step,
  .offer-card,
  .company-mark,
  .badge,
  .cta-band,
  .auth-tab,
  .auth-tabs,
  .form-control,
  .password-toggle,
  .security-note,
  .sidebar-role,
  .sidebar-link,
  .nav-icon,
  .logout-button,
  .icon-button,
  .stat-card,
  .panel,
  .profile-progress,
  .toolbar,
  .empty-icon,
  .alert,
  .upload-zone,
  .file-card,
  .file-icon,
  .switch-row,
  .tabs,
  .tab-button,
  .pagination button,
  .talent-card,
  .modal-dialog,
  .modal-close,
  .toast
) { border-radius: 5px; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 35px; }
  .feature-grid, .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .public-links { position: fixed; z-index: 990; top: 92px; right: 0; left: 0; display: none; align-items: stretch; padding: 18px 20px 24px; background: white; box-shadow: var(--shadow-sm); }
  .public-links.is-open { display: grid; }
  .public-links .btn { width: 100%; }
  .mobile-menu-button { display: grid; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 380px; }
  .auth-aside-content { margin: 70px 0 30px; }
  .auth-legal { display: none; }
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); transform: translateX(-105%); transition: transform 200ms ease; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-toggle { display: grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .app-content { padding: 24px 20px; }
  .app-topbar { padding-inline: 20px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--content-width)); }
  .brand img.brand-logo-horizontal { width: 150px; max-height: 68px; }
  .hero { padding: 42px 0 54px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 0; }
  .hero-panel { padding: 20px; border-radius: 5px; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .mini-stat { padding: 11px 8px; }
  .mini-stat strong { font-size: 1.2rem; }
  .mini-stat span { font-size: .65rem; }
  .hero-panel-note { margin: 15px -20px -20px; padding-inline: 20px; }
  .section { padding: 60px 0; }
  .feature-grid, .offer-grid, .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 29px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .auth-aside { min-height: 300px; padding: 26px 22px; }
  .auth-aside-content { margin: 44px 0 10px; }
  .auth-aside-content h1 { font-size: 2.25rem; }
  .auth-benefits { display: none; }
  .auth-main { align-items: flex-start; padding: 28px 17px; }
  .auth-tabs { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group-full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .app-topbar { min-height: 68px; padding: 11px 14px; }
  .topbar-title span { display: none; }
  .app-content { padding: 22px 14px 88px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-actions { display: grid; }
  .page-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 115px; padding: 16px; }
  .stat-value { font-size: 1.65rem; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .panel-header .tabs { width: 100%; }
  .two-columns, .three-columns, .candidate-grid { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: auto minmax(0, 1fr); }
  .list-item > :last-child { grid-column: 1 / -1; justify-content: flex-start; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { padding: 13px; }
  .data-table td { display: grid; grid-template-columns: minmax(105px, .7fr) 1fr; gap: 10px; padding: 7px 4px; }
  .data-table td::before { color: var(--ink-soft); content: attr(data-label); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { max-height: 92vh; border-radius: 5px 5px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Accueil simple et premium, inspiré du rythme de Bbigger. */
.premium-public-page { color: #001f83; background: #ffffff; }
.premium-header { background: #fff; }
.premium-header .public-nav { min-height: 104px; }
.premium-header .brand-logo-horizontal { width: 176px; max-height: 78px; }
.premium-header .public-links { gap: 32px; }
.premium-header .public-links > a:not(.btn) { color: #001f83; font-size: .82rem; text-transform: uppercase; }
.premium-header .public-links > a:hover { color: #d9a100; text-decoration: none; }

.premium-hero { min-height: 570px; display: grid; align-items: center; padding: 72px 0 82px; background: #ffffff; text-align: center; }
.premium-hero-content { display: grid; justify-items: center; }
.premium-overline { margin: 0 0 24px; color: #d9a100; font-size: .82rem; text-transform: uppercase; }
.premium-hero h1 { max-width: 890px; margin: 0; color: #001f83; font-size: clamp(3.2rem, 6vw, 5.7rem); font-style: normal; line-height: 1.02; }
.premium-hero-intro { max-width: 620px; margin: 26px 0 34px; color: #3f5570; font-size: 1.12rem; }
.premium-hero-actions { display: grid; width: min(100%, 720px); grid-template-columns: repeat(2, 1fr); gap: 14px; }
.premium-action { display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 16px 22px; border-radius: 5px; color: #001f83; background: #fff; text-align: left; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.premium-action-primary { background: #ffd700; }
.premium-action span { font-size: 1rem; }
.premium-action b { font-family: "Times New Roman", Times, serif; font-weight: normal; transition: transform 160ms ease; }
.premium-action:hover { color: #fff; background: #001f83; text-decoration: none; transform: translateY(-2px); }
.premium-action:hover b { transform: translateX(4px); }

.premium-facts { background: #001f83; }
.premium-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.premium-facts p { display: grid; min-height: 126px; align-content: center; margin: 0; padding: 20px 28px; color: #fff; text-align: center; }
.premium-facts p:first-child { }
.premium-facts strong { font-family: "Aura", "Arial Narrow", Arial, sans-serif; font-size: 2.15rem; font-weight: normal; }
.premium-facts span { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .82rem; }

.premium-section { padding: 92px 0; background: #fff; }
.premium-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.premium-section-head p { margin: 0 0 7px; color: #d9a100; font-size: .76rem; text-transform: uppercase; }
.premium-section-head h2 { margin: 0; color: #001f83; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; }
.premium-section-head > a { padding-bottom: 4px; color: #001f83; font-size: .85rem; }
.premium-section-head > a:hover { color: #d9a100; text-decoration: none; }
.premium-offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.premium-offer-grid > .loading-state, .premium-offer-grid > .empty-state { grid-column: 1 / -1; }
.premium-offer-card { position: relative; display: flex; min-height: 310px; flex-direction: column; padding: 26px; border-radius: 5px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.premium-offer-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: #ffd700; content: ""; }
.premium-offer-card:hover { box-shadow: 0 12px 30px rgba(0,31,131,.09); transform: translateY(-4px); }
.premium-offer-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #4169ff; font-size: .74rem; }
.premium-offer-top b { color: #607286; font-weight: normal; }
.premium-offer-card h3 { margin: 34px 0 9px; color: #001f83; font-size: 1.65rem; line-height: 1.12; }
.premium-offer-card > p { margin: 0; color: #607286; font-size: .9rem; }
.premium-offer-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding: 24px 0 18px; color: #607286; font-size: .76rem; }
.premium-offer-card > a { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; color: #001f83; }
.premium-offer-card > a:hover { color: #d9a100; text-decoration: none; }

.premium-story { overflow: hidden; color: #fff; background: #001f83; }
.premium-story-grid { display: grid; min-height: 500px; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); align-items: center; }
.premium-story-mark { align-self: stretch; display: grid; place-items: center; margin-left: calc((var(--content-width) - 100vw) / 2); padding-left: max(20px, calc((100vw - var(--content-width)) / 2)); background: #ffd700; }
.premium-story-mark img { width: min(76%, 360px); max-height: 390px; object-fit: contain; }
.premium-story-grid > div:last-child { padding: 60px 0 60px 76px; }
.premium-story-grid > div:last-child > p:first-child { margin: 0 0 16px; color: #ffd700; font-size: .78rem; text-transform: uppercase; }
.premium-story h2 { max-width: 650px; margin: 0; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1; }
.premium-story-copy { margin: 24px 0; color: rgba(255,255,255,.72); font-size: 1rem; }
.premium-story a { display: inline-block; padding-bottom: 5px; color: #fff; }
.premium-story a:hover { color: #ffd700; text-decoration: none; }

.premium-help { background: #ffffff; }
.premium-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.premium-help-grid article { min-height: 270px; padding: 34px; border-radius: 5px; background: #fff; }
.premium-help-grid article:nth-child(2) { color: #fff; background: #001f83; }
.premium-help-grid article > span { color: #d9a100; font-size: .8rem; }
.premium-help-grid h3 { margin: 35px 0 10px; font-size: 2.2rem; }
.premium-help-grid p { margin: 0 0 34px; color: #607286; }
.premium-help-grid article:nth-child(2) p { color: rgba(255,255,255,.72); }
.premium-help-grid a { color: inherit; }
.premium-help-grid a:hover { color: #d9a100; text-decoration: none; }
.premium-footer { background: #001f83; }

/* Aura reste dans son dessin normal : aucune graisse ni espacement artificiel. */
:where(
  h1, h2, h3, h4, h5, h6,
  .brand,
  .topbar-title strong,
  .stat-value,
  .panel-header strong,
  .premium-facts strong,
  .mini-stat strong,
  .manifesto-index,
  .manifesto-stats dt,
  .section-rail > span,
  .audience-number,
  .process-list li > span,
  .public-offer-number
) {
  font-weight: normal !important;
  font-style: normal !important;
  font-synthesis: none;
}

/* Connexion plus légère, dans le même vocabulaire. */
.auth-aside-content::before { content: "ESPACE SÉCURISÉ"; font-weight: normal; }
.auth-aside-content h1 { max-width: 470px; font-size: clamp(2.8rem,4.2vw,4.3rem); }
.auth-card h2 { font-size: 2.45rem; }
.auth-tabs { }
.auth-tab { font-weight: normal; }
.auth-tab[aria-selected="true"] { }

@media (max-width: 900px) {
  .premium-header .public-links { top: 104px; }
  .premium-story-grid { grid-template-columns: 1fr 1.25fr; }
  .premium-story-mark { margin-left: -20px; padding-left: 20px; }
  .premium-story-grid > div:last-child { padding-left: 48px; }
}

@media (max-width: 640px) {
  .premium-header .public-nav { min-height: 84px; }
  .premium-header .public-links { top: 84px; }
  .premium-header .brand img.brand-logo-horizontal { width: 138px; max-height: 62px; }
  .premium-hero { min-height: 0; padding: 62px 0 68px; }
  .premium-hero h1 { font-size: clamp(2.9rem,13vw,3.8rem); }
  .premium-hero-intro { font-size: 1rem; }
  .premium-hero-actions { grid-template-columns: 1fr; }
  .premium-facts-grid { grid-template-columns: repeat(2,1fr); }
  .premium-facts p { min-height: 105px; padding: 16px 10px; }
  .premium-facts p:nth-child(odd) { }
  .premium-section { padding: 66px 0; }
  .premium-section-head { align-items: flex-start; flex-direction: column; }
  .premium-offer-grid { grid-template-columns: 1fr; }
  .premium-offer-card { min-height: 270px; }
  .premium-story-grid { grid-template-columns: 1fr; }
  .premium-story-mark { min-height: 270px; margin: 0 -14px; padding: 30px; }
  .premium-story-mark img { width: 180px; height: 220px; }
  .premium-story-grid > div:last-child { padding: 54px 0 62px; }
  .premium-story h2 { font-size: 3rem; }
  .premium-help-grid { grid-template-columns: 1fr; }
  .premium-help-grid article { min-height: 240px; padding: 28px; }
}

/* Direction finale : aplats francs, aucune bordure décorative, typographie naturelle. */
button { border: 0; }

:where(
  .public-header,
  .public-links,
  .mobile-menu-button,
  .sidebar-toggle,
  .btn,
  .hero,
  .hero-panel,
  .access-process,
  .access-process li,
  .hero-panel-note,
  .candidate-card,
  .feature-card,
  .offer-card,
  .offer-card .offer-footer,
  .cta-band,
  .footer-bottom,
  .legal-content > h2,
  .legal-content .legal-back,
  .auth-aside,
  .auth-benefits,
  .auth-benefit,
  .auth-legal,
  .auth-tabs,
  .auth-tab,
  .form-control,
  .security-note,
  .sidebar,
  .sidebar-footer,
  .sidebar-link,
  .app-topbar,
  .icon-button,
  .stat-card,
  .panel,
  .panel-header,
  .profile-progress,
  .checklist li::before,
  .list-item,
  .toolbar,
  .data-table th,
  .data-table td,
  .alert,
  .upload-zone,
  .file-card,
  .switch-row,
  .tabs,
  .tab-button,
  .pagination,
  .pagination button,
  .talent-card,
  .talent-footer,
  .modal-header,
  .toast,
  .notification-drawer,
  .premium-header,
  .premium-action,
  .premium-facts p,
  .premium-section-head > a,
  .premium-offer-card,
  .premium-offer-card > a,
  .premium-story a,
  .premium-help-grid article,
  .premium-help-grid a
) {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
}

body,
.public-page,
.premium-public-page,
.premium-hero,
.premium-section,
.premium-help,
.section-soft,
.auth-page,
.auth-main,
.app-body,
.app-main,
.app-content,
.sidebar,
.app-topbar,
.panel,
.toolbar,
.data-table th,
.data-table td,
.data-table tbody tr:hover,
.modal-dialog,
.modal-header,
.notification-drawer,
.upload-zone,
.file-card,
.switch-row,
.tabs,
.tab-button,
.alert,
.security-note {
  background-color: #ffffff !important;
  background-image: none !important;
}

.eyebrow,
.premium-overline,
.premium-section-head p,
.nav-section-label,
.auth-aside-content::before { display: none !important; }

.brand,
.btn,
.public-links > a,
.auth-back,
.auth-tab,
.sidebar-link,
.form-group label,
.field-label,
.stat-label,
.data-table th,
.tab-button {
  font-weight: normal;
}

.brand img,
.public-footer .brand img,
.auth-aside .brand img { background: transparent; }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #001f83;
}
.icon-link .svg-icon { transition: transform 160ms ease; }
.icon-link:hover { color: #d9a100; text-decoration: none; }
.icon-link:hover .svg-icon { transform: translateX(3px); }
.icon-link-light { color: #ffffff; }

/* Accueil public */
.premium-header {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,31,131,.05);
}
.premium-header .public-links > a:not(.btn) {
  color: #001f83;
  font-size: .92rem;
  text-transform: none;
}
.premium-header .btn { background: #001f83; }
.premium-header .btn:hover { color: #001f83; background: #ffd700; }

.premium-hero {
  min-height: 610px;
  padding: 96px 0 104px;
  text-align: left;
}
.premium-hero-content { justify-items: start; }
.premium-hero h1 {
  max-width: 1040px;
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  line-height: .94;
}
.premium-hero-intro { max-width: 560px; color: #485981; }
.premium-hero-actions { width: min(100%, 660px); }
.premium-action {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0,31,131,.10);
}
.premium-action-primary { background: #ffd700; box-shadow: none; }
.premium-action:hover {
  color: #ffffff;
  background: #001f83;
  transform: translateY(-2px);
}
.premium-action:hover .svg-icon { transform: translateX(3px); }

.premium-facts { background: #001f83; }
.premium-facts-grid { gap: 28px; }
.premium-facts p { min-height: 132px; }
.premium-facts span { color: rgba(255,255,255,.78); }

.premium-section-head { align-items: center; }
.premium-section-head > a { padding: 0; }
.premium-offer-grid { gap: 28px; }
.premium-offer-card {
  min-height: 320px;
  box-shadow: 0 10px 28px rgba(0,31,131,.09);
}
.premium-offer-card::before { display: none; }
.premium-offer-card:hover {
  box-shadow: 0 16px 34px rgba(0,31,131,.13);
  transform: translateY(-3px);
}
.premium-offer-card h3 { margin-top: 38px; }
.premium-offer-card > a { padding-top: 15px; }

.premium-story { background: #001f83; }
.premium-story-mark { background: #ffd700; }
.premium-story-grid > div:last-child > p:first-child { margin-top: 24px; }
.premium-story a { padding: 0; }

.premium-help-grid { gap: 28px; }
.premium-help-grid article {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #ffd700;
  color: #001f83;
}
.premium-help-grid article:nth-child(2) { background: #001f83; color: #ffffff; }
.premium-help-grid h3 { margin: 0 0 12px; font-size: 2.7rem; }
.premium-help-grid p { color: #001f83; }
.premium-help-grid article:nth-child(2) p { color: rgba(255,255,255,.78); }
.premium-help-grid a { margin-top: auto; }

.public-footer,
.premium-footer { background: #001f83; }
.footer-intro,
.footer-links a,
.footer-bottom { color: rgba(255,255,255,.76); }

/* Connexion */
.auth-aside { background: #001f83; }
.auth-aside .brand-logo-horizontal { width: 210px; }
.auth-benefit .svg-icon { color: #ffd700; font-size: 1.3rem; }
.auth-card h2 { font-size: 3rem; }
.btn {
  min-height: 48px;
  box-shadow: 0 7px 18px rgba(0,31,131,.13);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn:hover { box-shadow: 0 10px 24px rgba(0,31,131,.18); transform: translateY(-1px); }
.btn:active { box-shadow: 0 4px 12px rgba(0,31,131,.12); transform: translateY(0); }
.btn:disabled { box-shadow: none; transform: none; }
.btn-primary { color: #ffffff; background: #001f83; }
.btn-primary:hover { color: #001f83; background: #ffd700; }
.auth-tabs { gap: 8px; padding: 0; }
.auth-tab { min-height: 46px; background: #ffffff; box-shadow: 0 5px 18px rgba(0,31,131,.07); }
.auth-tab[aria-selected="true"] { color: #001f83; background: #ffd700; box-shadow: none; }
.auth-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.auth-field-heading label { margin-bottom: 0; }
.auth-help-button {
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 5px;
  color: #001f83;
  background: #ffd700;
  box-shadow: 0 5px 14px rgba(0,31,131,.11);
  cursor: pointer;
}
.auth-help-button:hover { color: #ffffff; background: #001f83; }
.form-control {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0,31,131,.14), 0 5px 14px rgba(0,31,131,.05);
}
.form-control:hover { box-shadow: 0 0 0 1px rgba(0,31,131,.28), 0 5px 14px rgba(0,31,131,.06); }
.form-control:focus { box-shadow: 0 0 0 3px rgba(65,105,255,.22); }
.form-control[aria-invalid="true"] { box-shadow: 0 0 0 2px rgba(189,61,74,.28); }
.password-toggle { right: 4px; width: 44px; height: 40px; color: #ffffff; background: #001f83; box-shadow: 0 4px 12px rgba(0,31,131,.16); }
.password-toggle:hover { color: #001f83; background: #ffd700; }
.auth-login-actions .btn { min-width: 172px; }
.auth-register-cta {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,31,131,.09);
}
.auth-register-cta p { margin: 0; color: #001f83; font-size: 1rem; }
.auth-register-cta small { color: #485981; }
.btn-register { justify-content: space-between; color: #001f83; background: #ffd700; box-shadow: 0 7px 18px rgba(217,161,0,.22); }
.btn-register:hover { color: #ffffff; background: #001f83; }
.security-note,
.alert { box-shadow: 0 7px 22px rgba(0,31,131,.07); }
.security-note > .svg-icon,
.alert > .svg-icon { color: #4169ff; font-size: 1.2rem; }
.btn-secondary,
.btn-soft { color: #001f83; background: #ffd700; }

/* Choix du profil d’inscription */
.signup-shell { grid-template-columns: minmax(390px,.7fr) minmax(620px,1.3fr); }
.signup-aside { background: #001f83; }
.signup-card { width: min(100%, 780px); }
.signup-card > p { max-width: 560px; }
.signup-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.signup-choice {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 28px;
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(0,31,131,.13);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.signup-choice:hover { box-shadow: 0 16px 34px rgba(0,31,131,.18); text-decoration: none; transform: translateY(-3px); }
.signup-choice-student { color: #001f83; background: #ffd700; }
.signup-choice-firm { color: #ffffff; background: #001f83; }
.signup-choice-icon { width: 48px; height: 48px; }
.signup-choice-copy { display: grid; gap: 8px; margin-top: 40px; }
.signup-choice-copy strong { font-family: "Aura", "Arial Narrow", Arial, sans-serif; font-size: 2.2rem; font-weight: normal; line-height: 1; }
.signup-choice-copy small { color: inherit; font-size: .95rem; opacity: .84; }
.signup-choice-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 34px; font-size: .94rem; }
.signup-choice:hover .signup-choice-action .svg-icon { transform: translateX(3px); }
.signup-login-button { width: min(100%, 360px); justify-content: space-between; margin: 24px auto 0; }

@media (max-width: 900px) {
  .signup-shell { grid-template-columns: minmax(0,1fr); }
  .signup-card { min-width: 0; }
}

/* Espaces authentifiés */
.app-shell { background: #ffffff; }
.sidebar { box-shadow: 8px 0 24px rgba(0,31,131,.05); }
.sidebar-role { color: #001f83; background: #ffd700; font-weight: normal; }
.sidebar-nav { gap: 7px; }
.sidebar-link:hover { color: #001f83; background: #ffffff; box-shadow: 0 5px 16px rgba(0,31,131,.07); }
.sidebar-link[aria-current="page"],
.sidebar-link.is-active { color: #001f83; background: #ffd700; box-shadow: none; }
.nav-icon .svg-icon,
.icon-button .svg-icon,
.sidebar-toggle .svg-icon,
.modal-close .svg-icon { width: 19px; height: 19px; }
.app-topbar { box-shadow: 0 8px 24px rgba(0,31,131,.05); }
.icon-button { box-shadow: 0 5px 16px rgba(0,31,131,.08); }
.icon-button .dot { border: 0; background: #ffd700; }
.stat-card,
.panel,
.toolbar,
.talent-card,
.file-card,
.switch-row {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,31,131,.07);
}
.stat-card::before,
.stat-card::after { display: none; }
.stat-value { color: #001f83; }
.profile-progress { background: #4169ff; }
.profile-progress .progress-bar { background: #ffd700; }
.progress-track { background: #ffffff; box-shadow: 0 0 0 1px rgba(0,31,131,.12); }
.profile-progress .progress-track { background: rgba(255,255,255,.28); box-shadow: none; }
.checklist li::before { background: rgba(255,255,255,.18); }
.checklist li.done::before { color: #001f83; background: #ffd700; }
.list { gap: 4px; }
.list-item { border-radius: 5px; }
.data-table th { color: #001f83; }
.data-table tbody tr:hover { box-shadow: 0 6px 18px rgba(0,31,131,.06); }
.spinner {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: url("../assets/images/iconetype-bleu-profond.png") center / contain no-repeat;
}
.upload-zone { box-shadow: 0 8px 24px rgba(0,31,131,.08); }
.upload-zone:hover,
.upload-zone.is-dragover { background: #ffffff; box-shadow: 0 10px 28px rgba(0,31,131,.13); }
.badge { color: #001f83; background: #ffd700; }
.badge-primary { color: #ffffff; background: #4169ff; }
.badge-neutral { color: #001f83; background: #ffffff; box-shadow: 0 3px 10px rgba(0,31,131,.08); }
.feature-icon,
.empty-icon { color: #001f83; background: #ffd700; }
.feature-card:nth-child(2) .feature-icon { color: #ffffff; background: #4169ff; }
.feature-card:nth-child(3) .feature-icon { color: #ffffff; background: #001f83; }
.tabs { gap: 8px; padding: 0; }
.tab-button { box-shadow: 0 5px 16px rgba(0,31,131,.06); }
.tab-button[aria-selected="true"] { color: #001f83; background: #ffd700; box-shadow: none; }
.switch span { background: #ffffff; box-shadow: 0 0 0 1px rgba(0,31,131,.16), 0 4px 12px rgba(0,31,131,.08); }
.switch span::after { background: #4169ff; }
.switch input:checked + span { background: #001f83; }
.switch input:checked + span::after { background: #ffffff; }
.timeline-item:not(:last-child)::before { display: none; }
.timeline-dot { border: 0; background: #ffd700; }
.modal-close { color: #001f83; background: #ffd700; }
.toast { box-shadow: 0 10px 30px rgba(0,31,131,.14); }
.notification-drawer { box-shadow: -14px 0 35px rgba(0,31,131,.12); }
hr { height: 20px; margin: 0; border: 0 !important; background: transparent; }

@media (max-width: 640px) {
  .premium-hero { padding: 74px 0 78px; }
  .premium-hero h1 { font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .premium-facts-grid { gap: 0; }
  .premium-facts p { border: 0 !important; }
  .premium-section-head { gap: 18px; }
  .premium-help-grid article { min-height: 250px; }
  .auth-field-heading { align-items: flex-start; }
  .auth-help-button { flex: 0 0 auto; }
  .auth-register-cta { padding: 16px; }
  .signup-aside { min-height: 280px; }
  .signup-choice-grid { grid-template-columns: 1fr; }
  .signup-choice { min-height: 215px; padding: 24px; }
  .signup-choice-copy { margin-top: 28px; }
}

/* Contrôles visuels partagés : contours utiles, icônes contrastées et notifications lisibles. */
:where(button, .btn, .premium-action, .signup-choice) {
  border: 2px solid #001f83 !important;
  border-top: 2px solid #001f83 !important;
  border-right: 2px solid #001f83 !important;
  border-bottom: 2px solid #001f83 !important;
  border-left: 2px solid #001f83 !important;
}

:where(button, .btn, .premium-action, .signup-choice) .svg-icon,
:where(button, .btn, .premium-action, .signup-choice) > svg {
  color: currentColor;
}

.btn-primary,
.btn-secondary,
.btn-soft,
.btn-register,
.premium-action,
.premium-action-primary,
.signup-choice-student {
  border-color: #001f83 !important;
}

.btn-danger,
.logout-button { border-color: currentColor !important; }

.signup-choice-firm { border-color: #ffd700 !important; }

.auth-tab,
.tab-button,
.pagination button,
.icon-button,
.mobile-menu-button,
.sidebar-toggle,
.modal-close,
.auth-help-button {
  border-color: #001f83 !important;
}

.password-toggle {
  border-color: #ffd700 !important;
  color: #ffffff;
  background: #001f83;
}

.password-toggle:hover {
  border-color: #001f83 !important;
  color: #001f83;
  background: #ffd700;
}

.sidebar-link {
  border: 2px solid #4169ff !important;
  border-top: 2px solid #4169ff !important;
  border-right: 2px solid #4169ff !important;
  border-bottom: 2px solid #4169ff !important;
  border-left: 2px solid #4169ff !important;
}

.sidebar-link[aria-current="page"],
.sidebar-link.is-active { border-color: #001f83 !important; }

.btn:focus-visible,
button:focus-visible,
.premium-action:focus-visible,
.signup-choice:focus-visible {
  outline: 3px solid #4169ff;
  outline-offset: 3px;
}

.auth-card-login { width: min(100%, 600px); }
.signup-card { width: min(100%, 780px); }
.signup-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.auth-tab .svg-icon { width: 19px; height: 19px; }

.auth-register-cta,
.auth-login-cta {
  display: grid;
  gap: 9px;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 5px;
  color: #001f83;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,31,131,.09);
}

.auth-register-cta p,
.auth-login-cta p { margin: 0; color: #001f83; font-size: 1rem; }
.auth-register-cta small { color: #485981; }
.auth-register-cta .btn,
.auth-login-cta .btn { justify-content: space-between; }
.modal-intro { margin-top: 0; color: #485981; }

.auth-benefit > .svg-icon {
  width: 22px;
  height: 22px;
  color: #ffd700;
}

.security-note > .svg-icon,
.alert > .svg-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #4169ff;
}

.session-notice a { color: #001f83; text-decoration: underline; text-underline-offset: 3px; }

.toast-region {
  position: fixed;
  z-index: 2000;
  top: 18px;
  right: auto;
  bottom: auto;
  left: 50%;
  display: grid;
  width: min(620px, calc(100vw - 32px));
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 15px;
  border: 2px solid #001f83 !important;
  border-radius: 5px;
  color: #001f83;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(0,31,131,.20);
  animation: toast-in 180ms ease-out;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-leaving { opacity: 0; transform: translateY(-10px); }

.toast-icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 5px;
  color: #001f83;
  background: #ffd700;
}

.toast.is-info .toast-icon-box { color: #ffffff; background: #4169ff; }
.toast.is-error .toast-icon-box { color: #ffffff; background: #001f83; }
.toast.is-warning .toast-icon-box { color: #001f83; background: #ffd700; }
.toast-icon { width: 24px; height: 24px; }
.toast-content { min-width: 0; }
.toast-heading { display: grid; gap: 2px; }
.toast-heading strong { color: #001f83; font-size: .98rem; line-height: 1.25; }
.toast-meta { color: #485981; font-size: .72rem; }
.toast-content p { margin: 7px 0 0; color: #485981; font-size: .86rem; line-height: 1.42; }

.toast .toast-close {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-color: #ffd700 !important;
  border-radius: 5px;
  color: #ffffff;
  background: #001f83;
  cursor: pointer;
}

.toast .toast-close:hover {
  border-color: #001f83 !important;
  color: #001f83;
  background: #ffd700;
}

.toast .toast-close .svg-icon { width: 17px; height: 17px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 640px) {
  .signup-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-register-cta,
  .auth-login-cta { padding: 16px; }
  .toast-region { top: 10px; width: min(100% - 20px, 620px); }
  .toast { grid-template-columns: auto minmax(0, 1fr); }
  .toast-close { grid-column: 2; justify-self: start; }
}

/* Hiérarchie plus légère : seuls les boutons d’action gardent un contour. */
:where(
  .auth-help-button,
  .password-toggle,
  .auth-tab,
  .btn-soft,
  .sidebar-link,
  .logout-button,
  .icon-button,
  .mobile-menu-button,
  .sidebar-toggle,
  .modal-close,
  .tab-button,
  .pagination button,
  .toast .toast-close
) {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
}

.auth-help-button {
  padding-inline: 4px;
  color: #001f83;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-help-button:hover { color: #4169ff; background: transparent; }
.password-toggle { box-shadow: none; }
.auth-tab { box-shadow: none; }
.sidebar-link { box-shadow: none; }
.icon-button,
.mobile-menu-button,
.sidebar-toggle { color: #ffffff; background: #001f83; }
.modal-close,
.logout-button { color: #001f83; background: #ffd700; }

.auth-login-actions {
  display: grid;
  align-items: stretch;
  gap: 16px;
}

.auth-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-primary-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  justify-content: center;
}

.action-icon {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  overflow: visible;
  color: currentColor;
}

.btn .svg-icon { width: 21px; height: 21px; color: currentColor; }
.premium-action .svg-icon { width: 24px; height: 24px; color: currentColor; }
.icon-link .svg-icon { width: 21px; height: 21px; color: currentColor; }
.auth-tab .svg-icon { width: 22px; height: 22px; }

.nav-icon {
  width: 32px;
  height: 32px;
  color: #001f83;
  background: #ffd700;
}

.nav-icon .svg-icon { width: 20px; height: 20px; color: currentColor; }
.sidebar-link[aria-current="page"] .nav-icon,
.sidebar-link.is-active .nav-icon { color: #ffffff; background: #001f83; }
.icon-button .svg-icon,
.mobile-menu-button .svg-icon,
.sidebar-toggle .svg-icon { width: 22px; height: 22px; color: #ffffff; }
.modal-close .svg-icon { color: #001f83; }

/* Les types d’offre utilisent exclusivement l’or ou le bleu roi. */
.offer-type-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  color: #001f83;
  background: #ffd700;
  font-size: .76rem;
  line-height: 1.15;
  white-space: nowrap;
}

.premium-offer-card:nth-child(even) .offer-type-chip,
.offer-card:nth-child(even) .offer-type-chip,
.list-item:nth-child(even) .offer-type-chip,
.data-table tbody tr:nth-child(even) .offer-type-chip,
.offer-type-chip.is-blue {
  color: #ffffff;
  background: #4169ff;
}

.offer-type-chip.is-compact { min-height: 24px; padding: 4px 8px; font-size: .72rem; }
.list-item-main .offer-type-chip,
.data-table .offer-type-chip { margin-top: 6px; }

@media (max-width: 420px) {
  .auth-primary-actions { gap: 8px; }
  .auth-primary-actions .btn { padding-inline: 10px; font-size: .9rem; }
  .action-icon { width: 21px; height: 21px; }
}

/* Demande finale : aucun contour de bouton et icônes de la couleur du texte associé. */
:where(button, .btn, .premium-action, .signup-choice) {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
}

:where(button, .btn, .premium-action, .signup-choice, .icon-link, .sidebar-link) :where(.svg-icon, .action-icon, .signup-choice-icon),
.auth-benefit > .svg-icon,
.security-note > .svg-icon,
.alert > .svg-icon,
.nav-icon,
.nav-icon .svg-icon,
.modal-close .svg-icon {
  color: currentColor !important;
}

.nav-icon,
.sidebar-link[aria-current="page"] .nav-icon,
.sidebar-link.is-active .nav-icon {
  color: currentColor;
  background: transparent;
}

.toast-icon-box,
.toast.is-info .toast-icon-box,
.toast.is-error .toast-icon-box,
.toast.is-warning .toast-icon-box {
  color: #001f83;
  background: transparent;
}

.feature-icon,
.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(3) .feature-icon,
.empty-icon,
.file-icon {
  color: currentColor;
  background: transparent;
}

/* Une bordure n’est utile que si le bouton se confond avec la couleur de son parent. */
:where(
  .auth-tab:not([aria-selected="true"]),
  .tab-button:not([aria-selected="true"]),
  .pagination button,
  .btn-danger,
  .premium-action:not(.premium-action-primary)
) {
  border: 1px solid currentColor !important;
  border-top: 1px solid currentColor !important;
  border-right: 1px solid currentColor !important;
  border-bottom: 1px solid currentColor !important;
  border-left: 1px solid currentColor !important;
}

/* Actions qui se lisent comme des liens : soulignées, jamais encadrées. */
:where(.icon-link, .auth-help-button, .public-links > a:not(.btn), .btn-soft, .sidebar-link) {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
}

.icon-link > span,
.auth-help-button,
.public-links > a:not(.btn),
.btn-soft,
.sidebar-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.btn-soft,
.btn-soft:hover,
.btn-soft:focus-visible {
  color: #001f83;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.sidebar-link,
.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: #001f83;
  background: transparent;
  box-shadow: none;
}

.sidebar-link[aria-current="page"],
.sidebar-link.is-active {
  color: #001f83;
  background: #ffd700;
  text-decoration-color: currentColor;
}

.sidebar-link,
.sidebar-link[aria-current="page"],
.sidebar-link.is-active {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
}

.icon-link :where(.svg-icon, .action-icon) {
  width: 23px;
  height: 23px;
  color: currentColor !important;
}

.premium-action .action-icon,
.mobile-menu-button .action-icon,
.logout-button .action-icon,
.upload-zone .action-icon,
.alert .action-icon {
  width: 24px;
  height: 24px;
  color: currentColor !important;
  flex: 0 0 24px;
}

.upload-zone { color: #001f83; }
.upload-zone .action-icon { align-self: center; }
.alert .action-icon { width: 22px; height: 22px; flex-basis: 22px; }
.logout-button .action-icon { width: 21px; height: 21px; flex-basis: 21px; }
.toast-close .svg-icon {
  width: 21px !important;
  height: 21px !important;
  min-width: 21px;
  color: currentColor !important;
}

.modal-close .svg-icon {
  width: 21px !important;
  height: 21px !important;
  min-width: 21px;
  color: currentColor !important;
}

:where(
  .auth-tab[aria-selected="true"],
  .sidebar-link[aria-current="page"],
  .sidebar-link.is-active,
  .tab-button[aria-selected="true"],
  .premium-action-primary
) {
  border: 0 !important;
}

/* Harmonisation premium des espaces - 14 août 2026. */
:root {
  --sidebar-width: 272px;
  --sidebar-collapsed-width: 88px;
  --shadow-sm: 0 7px 18px rgba(0, 31, 131, .07);
  --shadow: 0 16px 38px rgba(0, 31, 131, .10);
}

.app-shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: #ffffff;
  transition: grid-template-columns 190ms ease;
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar {
  width: 100%;
  padding: 20px 14px 18px;
  background: #ffffff;
  box-shadow: 8px 0 28px rgba(0, 31, 131, .08);
  transition: width 190ms ease, padding 190ms ease, transform 200ms ease;
}

.sidebar .brand {
  min-height: 78px;
  justify-content: center;
  padding: 0 2px 12px;
}

.sidebar .brand-logo-horizontal {
  width: 210px;
  transition: opacity 120ms ease;
}

.sidebar .brand-logo-mark {
  display: none;
  width: 48px;
  height: 58px;
  object-fit: contain;
  background: #ffffff;
}

.sidebar-role {
  margin: 0 6px 12px;
  padding: 10px 12px;
  color: #001f83;
  background: #ffd700;
}

.sidebar-collapse {
  display: flex;
  width: calc(100% - 12px);
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 6px 16px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: #001f83;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 31, 131, .15);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar-collapse:hover,
.sidebar-collapse:focus-visible {
  color: #001f83;
  background: #ffd700;
  transform: translateY(-1px);
}

.sidebar-collapse .action-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: currentColor;
  transition: transform 190ms ease;
}

.sidebar-collapse span { font-size: .82rem; }
.sidebar-nav { gap: 6px; }
.nav-section-label { margin: 18px 12px 6px; color: #485981; }

.sidebar-link,
.sidebar-link:hover,
.sidebar-link:focus-visible {
  position: relative;
  min-height: 48px;
  gap: 11px;
  padding: 8px 10px;
  color: #001f83;
  background: #ffffff;
  text-decoration: none;
  box-shadow: none;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: #001f83;
  background: #ffd700;
  transform: translateX(2px);
}

.sidebar-link[aria-current="page"],
.sidebar-link.is-active {
  color: #ffffff;
  background: #001f83;
  text-decoration: none;
}

.nav-icon,
.sidebar-link[aria-current="page"] .nav-icon,
.sidebar-link.is-active .nav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: currentColor;
  background: #ffd700;
}

.sidebar-link[aria-current="page"] .nav-icon,
.sidebar-link.is-active .nav-icon {
  color: currentColor;
  background: transparent;
}

.nav-icon .svg-icon {
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
  opacity: 1;
}

.sidebar-footer { padding-top: 16px; }
.sidebar-user { padding: 7px 4px; }
.logout-button { color: #001f83; background: #ffd700; }

.app-shell.is-sidebar-collapsed .sidebar { padding-inline: 10px; }
.app-shell.is-sidebar-collapsed .sidebar .brand-logo-horizontal { display: none; }
.app-shell.is-sidebar-collapsed .sidebar .brand-logo-mark { display: block; }
.app-shell.is-sidebar-collapsed .sidebar-role,
.app-shell.is-sidebar-collapsed .nav-section-label,
.app-shell.is-sidebar-collapsed .sidebar-collapse span,
.app-shell.is-sidebar-collapsed .sidebar-user > span:not(.avatar) { display: none; }

.app-shell.is-sidebar-collapsed .sidebar-collapse {
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 auto 16px;
  padding: 0;
}

.app-shell.is-sidebar-collapsed .sidebar-collapse .action-icon { transform: rotate(180deg); }

.app-shell.is-sidebar-collapsed .sidebar-link {
  min-height: 52px;
  justify-content: center;
  gap: 0;
  padding: 8px;
  overflow: visible;
  font-size: 0;
  transform: none;
}

.app-shell.is-sidebar-collapsed .sidebar-link .nav-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.app-shell.is-sidebar-collapsed .sidebar-link::after {
  position: absolute;
  z-index: 1200;
  top: 50%;
  left: calc(100% + 12px);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 5px;
  color: #ffffff;
  background: #001f83;
  box-shadow: 0 8px 20px rgba(0, 31, 131, .18);
  content: attr(data-nav-label);
  font-size: .78rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-5px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.app-shell.is-sidebar-collapsed .sidebar-link:hover::after,
.app-shell.is-sidebar-collapsed .sidebar-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.app-shell.is-sidebar-collapsed .nav-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 19px;
  margin: 0;
  padding: 2px 4px;
  font-size: .61rem;
}

.app-shell.is-sidebar-collapsed .sidebar-user {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
}

.app-shell.is-sidebar-collapsed .sidebar-user .avatar,
.app-shell.is-sidebar-collapsed .logout-button { margin-inline: auto; }

.sidebar-backdrop {
  position: fixed;
  z-index: 880;
  inset: 0;
  display: none;
  padding: 0;
  border: 0;
  background: rgba(0, 31, 131, .34);
  cursor: pointer;
}

.app-main { background: #ffffff; }
.app-topbar {
  min-height: 78px;
  padding: 14px clamp(20px, 2.4vw, 38px);
  background: #ffffff;
  box-shadow: 0 9px 28px rgba(0, 31, 131, .07);
}

.app-content {
  width: min(100%, 1480px);
  padding: clamp(28px, 3vw, 46px);
}

.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.page-heading p { max-width: 62ch; margin-top: 8px; }
.page-actions { align-items: center; }

.stats-grid { gap: 14px; margin-bottom: 26px; }
.stat-card {
  min-height: 136px;
  padding: 23px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 31, 131, .08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 31, 131, .11); }
.stats-grid .stat-card:first-child { color: #ffffff; background: #001f83; }
.stats-grid .stat-card:first-child .stat-label,
.stats-grid .stat-card:first-child .stat-value { color: #ffffff; }
.stats-grid .stat-card:first-child .stat-trend { color: #ffd700; }

.dashboard-grid { gap: 24px; }
.panel,
.toolbar,
.talent-card,
.file-card,
.switch-row {
  background: #ffffff;
  box-shadow: 0 13px 34px rgba(0, 31, 131, .08);
}
.panel { overflow: hidden; }
.panel-header { min-height: 78px; padding: 19px 22px; }
.panel-header h2,
.panel-header h3 { font-size: 1.16rem; }
.panel-header p { margin-top: 5px; font-size: .83rem; }
.panel-body { padding: 22px; }
.list { gap: 7px; padding: 4px 0; }
.list-item { padding: 17px 20px; }
.list-item:hover { background: #ffd700; }

.icon-button,
.sidebar-toggle {
  color: #ffffff;
  background: #001f83;
  box-shadow: 0 8px 18px rgba(0, 31, 131, .15);
}

.svg-icon,
.action-icon {
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.btn .svg-icon,
.icon-button .svg-icon,
.sidebar-toggle .svg-icon,
.modal-close .svg-icon,
.toast-close .svg-icon {
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
}

.feature-icon,
.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(3) .feature-icon,
.empty-icon,
.file-icon,
.toast-icon-box {
  color: #001f83;
  background: #ffd700;
}

.feature-icon .svg-icon,
.empty-icon .svg-icon,
.file-icon .svg-icon,
.toast-icon-box .svg-icon { width: 24px; height: 24px; color: currentColor !important; }
.alert > .svg-icon { width: 23px !important; height: 23px !important; color: currentColor !important; }

.btn-primary,
.btn-secondary {
  box-shadow: 0 9px 20px rgba(0, 31, 131, .14);
}
.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-1px); }

@media (max-width: 900px) {
  .app-shell,
  .app-shell.is-sidebar-collapsed { display: block; }

  .sidebar,
  .app-shell.is-sidebar-collapsed .sidebar {
    width: min(286px, calc(100vw - 54px));
    padding: 18px 14px;
    transform: translateX(-105%);
  }

  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop.is-open { display: block; }
  body.sidebar-open { overflow: hidden; }
  .sidebar-collapse { display: none; }

  .app-shell.is-sidebar-collapsed .sidebar .brand-logo-horizontal { display: block; }
  .app-shell.is-sidebar-collapsed .sidebar .brand-logo-mark { display: none; }
  .app-shell.is-sidebar-collapsed .sidebar-role,
  .app-shell.is-sidebar-collapsed .nav-section-label,
  .app-shell.is-sidebar-collapsed .sidebar-user > span:not(.avatar) { display: block; }

  .app-shell.is-sidebar-collapsed .sidebar-link {
    min-height: 48px;
    justify-content: flex-start;
    gap: 11px;
    padding: 8px 10px;
    font-size: .9rem;
  }

  .app-shell.is-sidebar-collapsed .sidebar-link::after { display: none; }
  .app-shell.is-sidebar-collapsed .nav-count {
    position: static;
    min-width: 22px;
    margin-left: auto;
    padding: 2px 6px;
    font-size: .66rem;
  }

  .app-shell.is-sidebar-collapsed .sidebar-user {
    grid-template-columns: 38px 1fr auto;
    justify-items: stretch;
    gap: 9px;
  }
}

@media (max-width: 640px) {
  .app-topbar { padding-inline: 14px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .btn-small { padding-inline: 12px; }
  .app-content { padding: 25px 14px 88px; }
  .page-heading { margin-bottom: 24px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 122px; padding: 17px; }
  .panel-header { min-height: 0; padding: 18px; }
  .panel-body { padding: 18px; }
}

/* Priorité finale des composants métier. */
.premium-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-option.is-selected { color: #ffffff; background: #001f83; border-color: #001f83; }
.notification-row.is-unread { background: #eaf0ff; }
.entity-row.is-student { background: #f4f7ff; }
.entity-row.is-firm { background: #fffbea; }
.application-state.is-accepted { background: #e8f5ee; }
.application-state.is-rejected { background: #fdecea; }
.application-state.is-submitted { background: #eaf0ff; }

.badge.badge-submitted { color: #5b357d; background: #f0e8f7; }
.badge.badge-viewed { color: #0f665f; background: #ddf3f0; }
.badge.badge-warning { color: #7a4000; background: #ffe5ba; }
.badge.badge-danger { color: #8f1d15; background: #fdecea; }
.badge.badge-success { color: #155d39; background: #e8f5ee; }
.badge.badge-neutral { color: #4b5563; background: #eef0f4; box-shadow: none; }

.list { gap: 12px; padding: 12px; }
.list-item,
.notification-row,
.talent-card,
.offer-card,
.file-card { border: 1px solid #dfe5f2; border-radius: 5px; background: #ffffff; box-shadow: 0 8px 22px rgba(0, 31, 131, .07); }
.list-item + .list-item,
.notification-row + .notification-row { box-shadow: 0 8px 22px rgba(0, 31, 131, .07); }
.list-item:hover,
.notification-row:hover,
.talent-card:hover,
.offer-card:hover { background: #f4f7ff; box-shadow: 0 12px 26px rgba(0, 31, 131, .11); }
.notification-list { gap: 12px; padding: 14px; }
.notification-row { grid-template-columns: 42px minmax(0, 1fr) auto; margin: 0; }
.notification-row.is-unread { border-color: #9db2ff; background: #eaf0ff; box-shadow: 0 9px 24px rgba(65, 105, 255, .12); }

.data-table-wrap { padding: 12px; overflow-x: auto; }
.data-table { border-collapse: separate; border-spacing: 0 10px; }
.data-table thead th { color: #ffffff; background: #001f83; border: 0; font-size: .75rem; }
.data-table thead th:first-child { border-radius: 5px 0 0 5px; }
.data-table thead th:last-child { border-radius: 0 5px 5px 0; }
.data-table tbody tr { box-shadow: 0 7px 20px rgba(0, 31, 131, .07); }
.data-table tbody td { background: #ffffff; border-top: 1px solid #e1e6f0; border-bottom: 1px solid #e1e6f0; }
.data-table tbody td:first-child { border-left: 1px solid #e1e6f0; border-radius: 5px 0 0 5px; }
.data-table tbody td:last-child { border-right: 1px solid #e1e6f0; border-radius: 0 5px 5px 0; }
.data-table tbody tr.entity-row.is-student td { background: #f4f7ff; }
.data-table tbody tr.entity-row.is-firm td { background: #fffbea; }
.data-table tbody tr.application-state.is-accepted td { background: #e8f5ee; }
.data-table tbody tr.application-state.is-rejected td { background: #fdecea; }
.data-table tbody tr.application-state.is-viewed td { background: #ffffff; }
.data-table tbody tr.application-state.is-submitted td,
.data-table tbody tr.is-unread-row td { background: #eaf0ff; }

@media (max-width: 780px) {
  .notification-list { padding: 10px; }
  .notification-row { grid-template-columns: 38px minmax(0, 1fr); }
  .notification-row > .badge { grid-column: 2; justify-self: start; }
  .data-table { border-spacing: 0; }
  .data-table tbody tr { display: block; margin-bottom: 12px; padding: 6px 0; border: 1px solid #dfe5f2; border-radius: 5px; background: #ffffff; box-shadow: 0 8px 22px rgba(0, 31, 131, .08); }
  .data-table tbody td,
  .data-table tbody td:first-child,
  .data-table tbody td:last-child { border: 0; border-radius: 0; background: transparent !important; }
}

/* Les en-têtes restent lisibles sur ordinateur et tablette ; les libellés de cellule prennent le relais sur petit écran. */
.data-table thead { display: table-header-group; }
.data-table thead tr { background: #001f83; }
.data-table thead th {
  color: #ffffff !important;
  background: #001f83 !important;
  border: 0;
  opacity: 1;
}

@media (min-width: 641px) and (max-width: 900px) {
  .data-table { display: table; width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0 10px; }
  .data-table thead { display: table-header-group; }
  .data-table tbody { display: table-row-group; width: auto; }
  .data-table tr,
  .data-table tbody tr { display: table-row; width: auto; margin: 0; padding: 0; border: 0; background: transparent; }
  .data-table th,
  .data-table td,
  .data-table tbody td,
  .data-table tbody td:first-child,
  .data-table tbody td:last-child { display: table-cell; width: auto; padding: 14px 18px; }
  .data-table tbody td { background: #ffffff !important; border-top: 1px solid #e1e6f0; border-bottom: 1px solid #e1e6f0; }
  .data-table tbody td:first-child { border-left: 1px solid #e1e6f0; border-radius: 5px 0 0 5px; }
  .data-table tbody td:last-child { border-right: 1px solid #e1e6f0; border-radius: 0 5px 5px 0; }
  .data-table tbody tr.entity-row.is-student td { background: #f4f7ff !important; }
  .data-table tbody tr.entity-row.is-firm td { background: #fffbea !important; }
  .data-table tbody tr.application-state.is-accepted td { background: #e8f5ee !important; }
  .data-table tbody tr.application-state.is-rejected td { background: #fdecea !important; }
  .data-table tbody tr.application-state.is-submitted td,
  .data-table tbody tr.is-unread-row td { background: #eaf0ff !important; }
  .data-table td::before { content: none; }
}

@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table td::before { color: #001f83; }
}

/* Harmonisation UX/UI générale - août 2026. */
@font-face {
  font-family: "Aura";
  src: local("Aura");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-title: "Aura", "Arial Narrow", Arial, sans-serif;
  --font-body: "Times New Roman", Times, serif;
}

html,
body,
button,
input,
select,
textarea,
table {
  font-family: var(--font-body) !important;
  font-synthesis: none;
  letter-spacing: 0 !important;
}

*,
*::before,
*::after { letter-spacing: 0 !important; }

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.sidebar-role,
.topbar-title strong,
.stat-value,
.report-header h2,
.report-metrics strong {
  font-family: var(--font-title) !important;
  font-weight: 400 !important;
}

/* Le libellé d'espace et la sortie de session restent immédiatement identifiables. */
.sidebar-role {
  overflow: hidden;
  padding: 12px;
  font-size: 1.08rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-collapse,
.sidebar-collapse:hover,
.sidebar-collapse:focus-visible {
  color: #001f83;
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
}

.sidebar-mobile-close { display: none; }

.logout-button-labeled {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  color: #001f83;
  background: transparent;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.logout-button-labeled:hover { color: #b42318; background: transparent; }
.app-shell.is-sidebar-collapsed .logout-button-labeled { width: 42px; padding: 0; text-decoration: none; }
.app-shell.is-sidebar-collapsed .logout-button-labeled span { display: none; }

.student-greeting { gap: 0; }
.student-greeting > span { display: block; color: #485981; font-size: .76rem; line-height: 1; }
.student-greeting > strong { color: #001f83; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.05; }

/* Couleurs déterministes des catégories d'offre. */
.offer-type-chip,
.offer-type-chip.is-standard { color: #ffffff; background: #5b357d; }
.offer-type-chip.is-permanent { color: #ffffff; background: #19704a; }
.offer-type-chip.is-fixed { color: #ffffff; background: #4169ff; }
.offer-type-chip.is-internship-pro { color: #3f3000; background: #ffd700; }
.offer-type-chip.is-internship-academic { color: #ffffff; background: #001f83; }
.offer-type-chip.is-apprenticeship { color: #ffffff; background: #0f665f; }
.offer-type-chip.is-mission { color: #ffffff; background: #a85d00; }

/* L'icône porte la couleur sémantique de la notification. */
.notification-icon { color: #001f83; background: #eaf0ff; }
.notification-icon.is-info { color: #001f83; background: #eaf0ff; }
.notification-icon.is-important { color: #714400; background: #fff1d6; }
.notification-icon.is-danger { color: #b42318; background: #fdecea; }
.notification-icon.is-success { color: #19704a; background: #e8f5ee; }
.notification-icon.is-application { color: #4169ff; background: #eaf0ff; }
.notification-icon.is-offer { color: #5b357d; background: #f0e8f7; }
.notification-icon.is-announcement { color: #a85d00; background: #fff1d6; }
.notification-icon.is-account { color: #001f83; background: #fff4b8; }
.notification-icon.is-document { color: #0f665f; background: #ddf3f0; }
.notification-icon .svg-icon { color: currentColor !important; }

/* Détails : le contexte, l'identité et les documents sont séparés visuellement. */
.detail-context {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  font-family: var(--font-body) !important;
  font-size: .75rem;
  line-height: 1;
}

.detail-modal-header .detail-context { color: #ffd700; }
.detail-modal-header h2 { margin: 4px 0 3px; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.identity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.identity-strip > span {
  min-width: 0;
  padding: 13px;
  color: #001f83;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 7px 20px rgba(0, 31, 131, .08);
}
.identity-strip small,
.identity-strip strong { display: block; }
.identity-strip small { color: #485981; font-size: .72rem; }
.identity-strip strong { margin-top: 4px; overflow-wrap: anywhere; }

.document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 16px;
  background: #eaf0ff;
  border-radius: 5px;
}
.document-unavailable { color: #485981; font-size: .86rem; }
.decision-panel {
  margin-top: 24px;
  padding: 20px;
  background: #fff4b8;
  border-radius: 5px;
}
.detail-records { margin-top: 22px; }
.detail-records h3 { margin: 0 0 10px; }
.mini-record {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 13px 15px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 7px 20px rgba(0, 31, 131, .07);
}
.mini-record span,
.mini-record p { color: #485981; }
.mini-record p { margin: 5px 0 0; }

/* Rapports sobres, filtrables et prêts à l'impression. */
.report-sheet {
  min-height: 420px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 44px);
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 14px 38px rgba(0, 31, 131, .10);
}
.report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.report-header span { color: #d9a100; }
.report-header h2 { margin: 5px 0; color: #001f83; font-size: clamp(2rem, 4vw, 3.2rem); }
.report-header p { margin: 0; color: #485981; }
.report-header img { width: 56px; height: 70px; object-fit: contain; }
.report-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.report-metrics article { min-height: 112px; padding: 17px; color: #001f83; background: #eaf0ff; border-radius: 5px; }
.report-metrics article:first-child { color: #ffffff; background: #001f83; }
.report-metrics span,
.report-metrics strong { display: block; }
.report-metrics span { font-size: .8rem; }
.report-metrics strong { margin-top: 12px; font-size: 1.9rem; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 22px 0; }
.report-grid section,
.report-sheet > section { min-width: 0; }
.report-sheet h3 { margin: 0 0 13px; color: #001f83; font-size: 1.25rem; }
.report-bars { display: grid; gap: 11px; }
.report-bar-row { display: grid; grid-template-columns: 72px minmax(80px, 1fr) 34px; align-items: center; gap: 9px; }
.report-bar-track { height: 12px; overflow: hidden; background: #eaf0ff; border-radius: 5px; }
.report-bar-track i { display: block; min-width: 4px; height: 100%; background: #4169ff; border-radius: 5px; }
.report-table { min-width: 0; }

@media (max-width: 900px) {
  /* Le tiroir arrive de la droite, à proximité de la zone du pouce droit. */
  .sidebar,
  .app-shell.is-sidebar-collapsed .sidebar {
    right: 0;
    left: auto;
    width: min(330px, calc(100vw - 52px));
    transform: translateX(105%);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-mobile-close {
    position: absolute;
    z-index: 3;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    color: #001f83;
    background: #ffd700;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 31, 131, .16);
  }
  .sidebar-mobile-close .svg-icon { width: 23px; height: 23px; color: currentColor !important; }
  body.sidebar-open .sidebar-toggle { visibility: hidden; pointer-events: none; }
  .sidebar-toggle {
    position: fixed;
    z-index: 1300;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: grid;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: #001f83;
    box-shadow: 0 10px 28px rgba(0, 31, 131, .28);
  }
  .app-content { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .identity-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-topbar { min-height: 72px; padding: 11px 14px; }
  .app-topbar > div:first-child { min-width: 0; }
  .topbar-title { min-width: 0; }
  .student-greeting > strong { overflow: hidden; font-size: 1.55rem; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions .btn { display: none; }
  .page-heading { display: grid; gap: 16px; }
  .page-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .page-actions .btn,
  .page-actions .text-link { width: 100%; justify-content: center; }
  .toolbar,
  .report-filters { display: grid; grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .toolbar .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-width: 0; }
  .list { padding: 8px; }
  .list-item { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 14px; }
  .list-item > :last-child { grid-column: 2; justify-self: start; }
  .notification-row { align-items: start; padding: 13px; }
  .notification-heading { display: grid; justify-items: start; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog,
  .modal-dialog-wide {
    width: 100%;
    max-height: 94dvh;
    border-radius: 5px 5px 0 0;
  }
  .modal-header { padding: 17px; }
  .modal-body { padding: 17px; }
  .modal-footer {
    position: sticky;
    z-index: 2;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 17px calc(14px + env(safe-area-inset-bottom));
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(0, 31, 131, .09);
  }
  .modal-footer .btn,
  .modal-footer .text-link { width: 100%; justify-content: center; }
  .candidate-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .candidate-summary-status { grid-column: 1 / -1; justify-self: start; }
  .identity-strip { grid-template-columns: 1fr; }
  .document-actions { display: grid; grid-template-columns: 1fr; }
  .document-actions .btn { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .decision-panel { padding: 16px; }
  .report-sheet { padding: 18px 14px; }
  .report-header img { width: 42px; height: 52px; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .report-metrics article { min-height: 96px; padding: 14px; }
  .report-metrics strong { font-size: 1.55rem; }
  .report-bar-row { grid-template-columns: 62px minmax(60px, 1fr) 28px; }
}

@media (max-width: 390px) {
  .stats-grid,
  .report-metrics { grid-template-columns: 1fr; }
  .sidebar,
  .app-shell.is-sidebar-collapsed .sidebar { width: calc(100vw - 34px); }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { color: #001f83; background: #ffffff; }
  body * { visibility: hidden !important; }
  #rapports,
  #rapports .report-sheet,
  #rapports .report-sheet * { visibility: visible !important; }
  #rapports { position: absolute; inset: 0; display: block !important; }
  #rapports .page-heading,
  #rapports .report-filters { display: none !important; }
  #rapports .report-sheet { margin: 0; padding: 0; box-shadow: none; }
  .report-grid { break-inside: avoid; }
  .data-table tbody tr { break-inside: avoid; box-shadow: none; }
}

/* Finitions navigation, mobile et rapports officiels - 21 août 2026. */
@font-face {
  font-family: "Aura";
  src: local("Aura Regular"), local("Aura");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Le pied de menu reste visible et la navigation centrale défile indépendamment. */
.sidebar { overflow: hidden; }
.sidebar .brand,
.sidebar-role,
.sidebar-collapse,
.sidebar-footer { flex: 0 0 auto; }
.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 2px 5px 12px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #4169ff #ffffff;
  scrollbar-width: thin;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: #ffffff; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #4169ff; border-radius: 5px; }
.sidebar-footer { margin-top: 0; background: #ffffff; }

.modal-header > div { min-width: 0; }
.modal-header h2 { overflow-wrap: anywhere; }
.modal-header .detail-context { margin-bottom: 6px; color: #001f83; }
.modal-subtitle,
.modal-header > div > small:not(.detail-context) { display: block; margin-top: 5px; color: #485981; line-height: 1.35; }
.detail-modal-header { color: #ffffff; background-color: #001f83 !important; background-image: none !important; }
.detail-modal-header h2,
.detail-modal-header small:not(.detail-context) { color: #ffffff; }
.detail-modal-header .detail-context { color: #ffd700; }

/* Le rapport est présenté comme un document A4 et non comme une capture du tableau de bord. */
.report-sheet {
  width: min(100%, 210mm);
  min-height: 297mm;
  margin: 22px auto 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}
.official-report-document { padding: 14mm 13mm 11mm; color: #17223d; background: #ffffff; }
.official-report-header {
  display: grid;
  grid-template-columns: 47mm minmax(0, 1fr);
  align-items: center;
  gap: 9mm;
  padding-bottom: 7mm;
  border-bottom: 2px solid #001f83;
}
.official-report-app-logo { width: 44mm; height: auto; object-fit: contain; }
.official-report-heading { text-align: right; }
.official-report-heading > span { color: #d9a100; font-size: .76rem; }
.official-report-heading h2 { margin: 2mm 0 1mm; color: #001f83; font-size: 1.75rem; line-height: 1.05; }
.official-report-heading p { margin: 0; color: #485981; font-size: .84rem; }
.official-report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 6mm 0 7mm;
  padding: 4mm 0;
  border-top: 1px solid #dfe5f2;
  border-bottom: 1px solid #dfe5f2;
}
.official-report-meta > div { padding: 0 4mm; }
.official-report-meta > div + div { border-left: 1px solid #dfe5f2; }
.official-report-meta dt { color: #485981; font-size: .68rem; }
.official-report-meta dd { margin: 1mm 0 0; color: #001f83; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.official-report-intro { max-width: 150mm; margin: 0 0 6mm; color: #34415f; font-size: .88rem; line-height: 1.45; }
.official-report-body { min-height: 190mm; }
.official-report-section { margin-top: 8mm; }
.official-report-section h3 { margin: 0 0 3mm; color: #001f83; font-size: 1.15rem; }
.official-report-section h4 { margin: 5mm 0 2.5mm; color: #001f83; font-size: .94rem; }
.official-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 5mm; margin-bottom: 3mm; }
.official-section-heading h3 { margin: 0; }
.official-section-heading span { color: #485981; font-size: .76rem; white-space: nowrap; }
.report-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5mm; margin: 0 0 7mm; }
.report-metrics article,
.report-metrics article:first-child {
  min-height: 0;
  padding: 3.5mm;
  color: #001f83;
  background: #ffffff;
  border: 1px solid #dfe5f2;
  box-shadow: 0 4px 14px rgba(0, 31, 131, .07);
}
.report-metrics span { color: #485981; font-size: .68rem; line-height: 1.2; }
.report-metrics strong { margin-top: 2mm; color: #001f83; font-size: 1.3rem; }
.official-table-wrap { width: 100%; overflow-x: auto; }
.official-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.official-table thead { display: table-header-group; }
.official-table th { padding: 2.5mm 2mm; color: #ffffff; background: #001f83; font-weight: 700; text-align: left; }
.official-table td { padding: 2.4mm 2mm; border-bottom: 1px solid #dfe5f2; vertical-align: top; }
.official-table td strong,
.official-table td small { display: block; }
.official-table td small { margin-top: 1mm; color: #485981; font-size: .65rem; }
.official-table tbody tr:nth-child(even) td { background: #f4f7ff; }
.report-grid { gap: 6mm; margin: 4mm 0 6mm; }
.report-bar-row { grid-template-columns: 20mm minmax(25mm, 1fr) 8mm; gap: 2mm; font-size: .72rem; }
.report-bar-track { height: 2.5mm; }
.official-report-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8mm;
  margin-top: 12mm;
  padding-top: 5mm;
  border-top: 1px solid #001f83;
}
.official-report-footer > div { display: flex; align-items: center; gap: 3mm; color: #485981; font-size: .68rem; line-height: 1.25; }
.official-report-footer > div img { width: 8mm; height: 10mm; object-fit: contain; }
.official-report-onecca-logo { width: 45mm; max-height: 14mm; object-fit: contain; }

@media (max-width: 900px) {
  .sidebar {
    height: 100%;
  }
  .sidebar-nav { padding-right: 7px; }
  .sidebar-mobile-close {
    width: 48px;
    height: 48px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 12px;
  }
  .sidebar .brand { padding-right: 50px; }
}

@media (max-width: 640px) {
  .app-content { padding: 22px max(18px, env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .dashboard-grid,
  .profile-layout,
  .form-grid { gap: 16px; }
  .panel-header,
  .panel-body { padding-inline: 18px; }
  .modal { padding: 8px 8px 0; }
  .modal-dialog,
  .modal-dialog-wide,
  .modal-small .modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 8px);
  }
  .modal-header { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; gap: 12px; padding: 19px 18px 16px; }
  .modal-close { width: 44px; height: 44px; justify-self: end; }
  .modal-body { padding: 20px 18px; }
  .detail-modal-title { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; }
  .detail-modal-header h2 { font-size: 1.42rem; line-height: 1.08; }
  .candidate-summary { gap: 12px; }
  .candidate-summary .avatar { width: 46px; height: 46px; }
  .identity-strip { gap: 9px; margin: 15px 0; }
  .identity-strip > span { padding: 14px; }
  .detail-grid section { padding: 16px; }
  .report-sheet { width: 100%; min-height: 0; overflow: hidden; }
  .official-report-document { min-width: 0; padding: 22px 18px; }
  .official-report-header { grid-template-columns: 1fr; gap: 18px; }
  .official-report-app-logo { width: 150px; }
  .official-report-heading { text-align: left; }
  .official-report-heading h2 { font-size: 1.55rem; }
  .official-report-meta { grid-template-columns: 1fr; }
  .official-report-meta > div { padding: 11px 0; }
  .official-report-meta > div + div { border-top: 1px solid #dfe5f2; border-left: 0; }
  .official-table { min-width: 620px; }
  .official-report-footer { align-items: center; }
  .official-report-onecca-logo { width: 132px; }
  .report-filters .form-group { min-width: 0; }
  .list-item-main,
  .table-person > span { min-width: 0; }
  .list-item-main strong,
  .list-item-main small { overflow-wrap: anywhere; }
}

@media print {
  @page { size: A4 portrait; margin: 9mm; }
  html,
  body { width: 210mm; background: #ffffff !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #rapports .report-sheet {
    position: static;
    width: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
  }
  .official-report-document { padding: 0; }
  .official-report-body { min-height: 0; }
  .official-report-header { grid-template-columns: 42mm minmax(0, 1fr); gap: 7mm; padding-bottom: 5mm; }
  .official-report-app-logo { width: 40mm; }
  .official-report-heading h2 { font-size: 18pt; }
  .official-report-meta { margin: 4mm 0 5mm; padding: 3mm 0; }
  .official-report-section { margin-top: 6mm; }
  .official-report-section,
  .report-metrics,
  .report-grid { break-inside: avoid; }
  .report-page-section { break-before: auto; }
  .official-table-wrap { overflow: visible; }
  .official-table { font-size: 7.5pt; }
  .official-table th { color: #ffffff !important; background: #001f83 !important; }
  .official-table tbody tr { break-inside: avoid; }
  .official-report-footer { margin-top: 8mm; }
}
