/* ============================================================
   PORTAIL DOSSIER ÉTUDIANT – ESEF BERRECHID
   portal.css — Bootstrap 5.3 companion stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --esef-primary:       #1a4b8c;
  --esef-primary-dark:  #0f3060;
  --esef-primary-light: #2060b0;
  --esef-accent:        #c8102e;
  --esef-success:       #1a7a4a;
  --esef-warning:       #c07b00;
  --esef-bg:            #f0f4f9;
  --esef-surface:       #ffffff;
  --esef-border:        #d0daea;
  --esef-text:          #1a2a3a;
  --esef-muted:         #6b7c93;
  --esef-font-body:     'Source Sans 3', system-ui, sans-serif;
  --esef-font-heading:  'IBM Plex Sans', system-ui, sans-serif;
  --esef-radius:        10px;
  --esef-shadow-sm:     0 1px 4px rgba(26,75,140,.08);
  --esef-shadow:        0 2px 12px rgba(26,75,140,.12);
  --esef-shadow-lg:     0 4px 24px rgba(26,75,140,.16);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: var(--esef-font-body);
  background-color: var(--esef-bg);
  color: var(--esef-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .fw-heading {
  font-family: var(--esef-font-heading);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #b0bdd0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8899b0; }

/* ============================================================
   HEADER
   ============================================================ */
.portal-header {
  background: linear-gradient(135deg, #0f3060 0%, #1a4b8c 60%, #2060b0 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.portal-topbar {
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 6px 0;
  font-size: .75rem;
}

.portal-topbar a,
.portal-topbar span { color: #b8d0f0; text-decoration: none; }
.portal-topbar a:hover { color: #fff; }

.portal-brand-area { padding: 16px 0; }

.logo-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  flex-shrink: 0;
}

.logo-esef {
  width: 60px; height: 60px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}

.portal-title-sub {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #90b8e0;
}

.portal-title-main {
  font-family: var(--esef-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 2px 0;
}

.portal-title-desc {
  font-size: .85rem;
  color: #b0ccee;
}

/* ── Breadcrumb bar ── */
.portal-breadcrumb {
  background: #eef2f8;
  border-bottom: 1px solid var(--esef-border);
  padding: 7px 0;
  font-size: .78rem;
  color: var(--esef-muted);
}
.portal-breadcrumb .breadcrumb { margin: 0; padding: 0; background: none; }
.portal-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--esef-muted); }
.portal-breadcrumb .breadcrumb-item.active { color: var(--esef-primary); font-weight: 600; }

/* ── Admin topbar ── */
.admin-topbar {
  background: #0a2040;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 6px 0;
  font-size: .75rem;
  color: #6a8abc;
}

/* ============================================================
   FOOTER
   ============================================================ */
.portal-footer {
  background: #0f3060;
  border-top: 3px solid var(--esef-accent);
  color: #8099c0;
  font-size: .82rem;
  margin-top: auto;
}

.portal-footer h6 {
  color: #b8d0f0;
  font-family: var(--esef-font-heading);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.portal-footer a { color: #6a8abc; text-decoration: none; }
.portal-footer a:hover { color: #b8d0f0; }
.portal-footer hr { border-color: #1a3060; }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.portal-card {
  background: var(--esef-surface);
  border: 1px solid var(--esef-border);
  border-radius: var(--esef-radius);
  box-shadow: var(--esef-shadow-sm);
  overflow: hidden;
}

.portal-card-header {
  background: linear-gradient(90deg, var(--esef-primary-dark) 0%, var(--esef-primary) 100%);
  padding: 16px 24px;
}
.portal-card-header h5,
.portal-card-header h4 {
  color: #fff;
  font-family: var(--esef-font-heading);
  font-weight: 700;
  margin: 0;
}
.portal-card-header p {
  color: #b0ccee;
  font-size: .85rem;
  margin: 4px 0 0;
}

.portal-card-body { padding: 28px; }
@media (max-width: 576px) { .portal-card-body { padding: 18px; } }

/* ── Info card (announcement) ── */
.info-card {
  background: #e8f0fb;
  border: 1px solid #b8d0f0;
  border-radius: var(--esef-radius);
  padding: 16px 20px;
}

.warning-card {
  background: #fff8e8;
  border: 1px solid #f0d890;
  border-radius: var(--esef-radius);
  padding: 14px 18px;
}

.danger-card {
  background: #fff0f2;
  border: 1px solid #f0b0b8;
  border-radius: var(--esef-radius);
  padding: 14px 18px;
}

.success-card {
  background: #eefaf3;
  border: 1px solid #7dd3a8;
  border-radius: var(--esef-radius);
  padding: 14px 18px;
}

.cndp-card {
  background: #f5f8ff;
  border: 1px solid #c8d8f0;
  border-radius: var(--esef-radius);
  padding: 20px;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-label {
  font-family: var(--esef-font-heading);
  font-weight: 600;
  font-size: .875rem;
  color: var(--esef-text);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border: 1.5px solid var(--esef-border);
  border-radius: 8px;
  background-color: #f8fafc;
  font-family: var(--esef-font-body);
  font-size: .9rem;
  color: var(--esef-text);
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--esef-primary);
  box-shadow: 0 0 0 3px rgba(26,75,140,.12);
  background-color: #fff;
  outline: none;
}

.form-control[readonly],
.form-control.readonly-field {
  background-color: #eef4ff;
  border-color: #b8d0f0;
  color: var(--esef-primary);
  font-weight: 600;
  cursor: not-allowed;
}

.form-control.is-invalid { border-color: var(--esef-accent); }
.invalid-feedback { font-size: .78rem; color: var(--esef-accent); }

.form-hint {
  font-size: .75rem;
  color: var(--esef-muted);
  margin-top: 3px;
}

/* ── RTL field ── */
.field-rtl { direction: rtl; }

/* ── Section heading inside form ── */
.form-section-title {
  font-family: var(--esef-font-heading);
  font-size: .875rem;
  font-weight: 700;
  color: var(--esef-primary);
  border-bottom: 2px solid var(--esef-primary);
  padding-bottom: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

/* ── Readonly block ── */
.readonly-block {
  background: #eef4ff;
  border: 1px solid #b8d0f0;
  border-radius: 8px;
  padding: 14px 18px;
}
.readonly-block .readonly-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6a8abc;
  font-family: var(--esef-font-heading);
}
.readonly-block .readonly-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--esef-primary);
  font-family: monospace;
  letter-spacing: .04em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-portal-primary {
  background: linear-gradient(90deg, var(--esef-primary-dark) 0%, var(--esef-primary) 100%);
  border: none;
  color: #fff;
  font-family: var(--esef-font-heading);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 8px;
  padding: 10px 28px;
  box-shadow: 0 2px 8px rgba(26,75,140,.3);
  transition: opacity .15s, transform .1s;
}
.btn-portal-primary:hover {
  color: #fff;
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,75,140,.35);
}
.btn-portal-primary:active { transform: none; }

.btn-portal-outline {
  background: #fff;
  border: 1.5px solid var(--esef-border);
  color: var(--esef-muted);
  font-family: var(--esef-font-heading);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 24px;
  transition: border-color .15s, color .15s;
}
.btn-portal-outline:hover {
  border-color: var(--esef-primary);
  color: var(--esef-primary);
}

.btn-portal-success {
  background: linear-gradient(90deg, #136038 0%, var(--esef-success) 100%);
  border: none;
  color: #fff;
  font-family: var(--esef-font-heading);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 28px;
  box-shadow: 0 2px 8px rgba(26,122,74,.3);
}
.btn-portal-success:hover { color: #fff; opacity: .9; }

/* ============================================================
   STEP PROGRESS
   ============================================================ */
.step-progress {
  display: flex;
  align-items: center;
  padding: 16px 24px 12px;
}

.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; }

.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background .3s, box-shadow .3s;
  position: relative;
  z-index: 1;
}

.step-circle.done {
  background: var(--esef-success);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(26,122,74,.15);
}
.step-circle.active {
  background: var(--esef-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26,75,140,.18);
}
.step-circle.pending {
  background: #e8edf5;
  color: #8899b0;
}

.step-label {
  font-size: .66rem;
  font-family: var(--esef-font-heading);
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
}
.step-label.done   { color: var(--esef-success); }
.step-label.active { color: var(--esef-primary); font-weight: 600; }
.step-label.pending { color: #9ab0c8; }

.step-connector {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background .3s;
}
.step-connector.done   { background: var(--esef-success); }
.step-connector.pending { background: #d8e4f0; }

@media (max-width: 576px) {
  .step-label { display: none; }
  .step-circle { width: 28px; height: 28px; font-size: .7rem; }
}

/* ============================================================
   FILE DROP ZONE
   ============================================================ */
.drop-zone {
  border: 2px dashed var(--esef-border);
  border-radius: var(--esef-radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #f8fafc;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--esef-primary);
  background: #eff4fb;
}
.drop-zone .dz-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--esef-primary);
}
.drop-zone .dz-title { font-weight: 600; font-size: .9rem; color: var(--esef-text); }
.drop-zone .dz-hint  { font-size: .78rem; color: var(--esef-muted); margin-top: 4px; }

.file-preview {
  background: #eefaf3;
  border: 1.5px solid #7dd3a8;
  border-radius: 8px;
  padding: 12px 16px;
  display: none;
}
.file-preview.visible { display: flex; align-items: center; }
.file-preview .fp-icon {
  width: 36px; height: 36px;
  background: var(--esef-success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.file-preview .fp-name { font-weight: 600; font-size: .85rem; color: var(--esef-success); }
.file-preview .fp-size { font-size: .75rem; color: #4a9a6a; }
.file-preview .fp-remove {
  margin-left: auto;
  background: #fff;
  color: var(--esef-accent);
  border: 1px solid #f0b0b8;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Upload progress row ── */
.upload-progress-row {
  background: #f8fafc;
  border: 1px solid var(--esef-border);
  border-radius: 8px;
  padding: 12px 16px;
}
.up-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.up-dot.done { background: var(--esef-success); color: #fff; }
.up-dot.pending { background: #d0daea; }

/* ============================================================
   SUMMARY / RECAP
   ============================================================ */
.recap-section-title {
  font-family: var(--esef-font-heading);
  font-size: .82rem;
  font-weight: 700;
  color: var(--esef-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--esef-border);
  margin-bottom: 10px;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #edf0f5;
  margin-bottom: 4px;
  font-size: .87rem;
}
.recap-row .rr-label {
  color: var(--esef-muted);
  font-family: var(--esef-font-heading);
  font-size: .78rem;
  font-weight: 500;
  flex-shrink: 0;
}
.recap-row .rr-value {
  color: var(--esef-text);
  font-weight: 500;
  text-align: right;
}

.honor-pledge {
  background: #f5f8ff;
  border: 2px solid var(--esef-primary);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: .875rem;
  color: #1a3a6a;
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-hero {
  background: linear-gradient(135deg, #136038 0%, #22a060 100%);
  padding: 40px 28px 32px;
  text-align: center;
  color: #fff;
}

.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.ref-box {
  background: #f0f4ff;
  border: 2px solid var(--esef-primary);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.ref-box .ref-label {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: #6a8abc; font-family: var(--esef-font-heading);
  margin-bottom: 6px;
}
.ref-box .ref-number {
  font-size: 1.8rem; font-weight: 700;
  color: var(--esef-primary); font-family: monospace;
  letter-spacing: .06em;
}

/* ── Next step bullets ── */
.next-step {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.next-step .ns-num {
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 50%;
  background: var(--esef-primary);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.next-step p { margin: 0; font-size: .875rem; color: #3a4a5a; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-wrapper {
  display: flex;
  min-height: calc(100vh - 130px);
}

.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: #0f2040;
  color: #8099c0;
  display: flex; flex-direction: column;
  border-right: 1px solid #1a3060;
}

.admin-sidebar .sidebar-section {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #4a6080;
  padding: 16px 20px 6px;
  font-family: var(--esef-font-heading);
}

.admin-sidebar .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: #8099c0;
  font-size: .875rem;
  font-family: var(--esef-font-heading);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,.05);
  color: #c0d8f0;
  border-left-color: rgba(255,255,255,.2);
}

.admin-sidebar .nav-link.active {
  background: rgba(26,75,140,.35);
  color: #fff;
  border-left-color: var(--esef-primary-light);
}

.admin-sidebar .nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-content {
  flex: 1;
  padding: 24px;
  overflow: auto;
  background: var(--esef-bg);
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px; }
}

/* ── Stat cards ── */
.stat-card {
  background: #fff;
  border: 1px solid var(--esef-border);
  border-radius: var(--esef-radius);
  padding: 20px;
  box-shadow: var(--esef-shadow-sm);
}
.stat-card .sc-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--esef-muted);
  font-family: var(--esef-font-heading);
  margin-bottom: 6px;
}
.stat-card .sc-value {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--esef-font-heading);
  line-height: 1;
}
.stat-card .sc-sub {
  font-size: .75rem;
  color: var(--esef-muted);
  margin-top: 4px;
}
.sc-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── Progress bar custom ── */
.portal-progress {
  height: 10px;
  border-radius: 5px;
  background: #e8edf5;
  overflow: hidden;
}
.portal-progress-bar {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--esef-primary) 0%, var(--esef-success) 100%);
  transition: width .6s ease;
}

/* ── Institutional table ── */
.inst-table { width: 100%; border-collapse: collapse; }

.inst-table thead th {
  background: var(--esef-primary);
  color: #fff;
  font-family: var(--esef-font-heading);
  font-weight: 500;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 14px;
  white-space: nowrap;
  border: none;
}

.inst-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #e8edf5;
  font-size: .875rem;
  vertical-align: middle;
  color: var(--esef-text);
}

.inst-table tbody tr:hover td { background: #f4f7fc; }
.inst-table tbody tr:last-child td { border-bottom: none; }

.table-wrapper {
  border: 1px solid var(--esef-border);
  border-radius: var(--esef-radius);
  overflow: hidden;
  overflow-x: auto;
}

/* ── Badges ── */
.badge-esef {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: var(--esef-font-heading);
}
.badge-success  { background: #d6f0e4; color: #1a7a4a; }
.badge-warning  { background: #fff3d6; color: #c07b00; }
.badge-info     { background: #dbeafe; color: #1a4b8c; }
.badge-danger   { background: #ffe0e4; color: #c8102e; }
.badge-secondary { background: #e8edf5; color: #6b7c93; }

/* ── Tabs ── */
.portal-tabs {
  border-bottom: 1px solid var(--esef-border);
  display: flex; overflow-x: auto;
}
.portal-tab {
  padding: 10px 22px;
  font-family: var(--esef-font-heading);
  font-weight: 500;
  font-size: .855rem;
  border-bottom: 2px solid transparent;
  color: var(--esef-muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  background: none; border-top: none; border-left: none; border-right: none;
  transition: color .15s, border-color .15s;
}
.portal-tab:hover { color: var(--esef-text); border-bottom-color: var(--esef-border); }
.portal-tab.active { color: var(--esef-primary); border-bottom-color: var(--esef-primary); }

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .form-control,
.filter-bar .form-select { font-size: .875rem; padding: 8px 12px; flex: 1; min-width: 180px; }

/* ── Admin login ── */
.admin-login-hero {
  background: linear-gradient(135deg, #0a2040 0%, #1a4b8c 100%);
  padding: 32px 28px 24px;
  text-align: center;
}
.admin-login-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

/* ── Import zone ── */
.import-format-box {
  background: #f0f4ff;
  border: 1px solid #b8d0f0;
  border-radius: 8px;
  padding: 16px 20px;
}
.import-format-box code {
  display: block;
  background: #dde8f8;
  color: #1a3a6a;
  font-family: monospace;
  font-size: .8rem;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── CNDP notice ── */
.cndp-notice {
  background: #f5f8ff;
  border: 1px solid #c8d8f0;
  border-radius: 8px;
  padding: 16px 20px;
}
.cndp-ref-badge {
  background: var(--esef-primary);
  color: #fff;
  font-family: var(--esef-font-heading);
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

/* ── Consent checkbox ── */
.consent-box {
  border: 2px solid var(--esef-border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.consent-box:has(input:checked) {
  border-color: var(--esef-primary);
  background: #eef4ff;
}
.consent-box input[type="checkbox"] { accent-color: var(--esef-primary); }

/* ── Detail view ── */
.detail-section {
  background: #fff;
  border: 1px solid var(--esef-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.detail-section .ds-title {
  font-family: var(--esef-font-heading);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--esef-primary);
  border-bottom: 1px solid #e8edf5;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.detail-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  font-size: .875rem;
  border-bottom: 1px solid #f2f4f8;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .dr-label { color: var(--esef-muted); font-family: var(--esef-font-heading); font-size: .8rem; }
.detail-row .dr-value { font-weight: 500; color: var(--esef-text); text-align: right; }

/* ============================================================
   UTILITIES
   ============================================================ */
.font-mono { font-family: 'Courier New', monospace; letter-spacing: .04em; }
.text-primary-esef { color: var(--esef-primary) !important; }
.text-muted-esef   { color: var(--esef-muted) !important; }
.bg-esef           { background: var(--esef-bg) !important; }
.border-esef       { border-color: var(--esef-border) !important; }
.rounded-portal    { border-radius: var(--esef-radius) !important; }

/* ── Demo hint (remove in production) ── */
.demo-hint {
  background: #f0f4ff;
  border: 1px dashed #b0c0e8;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .78rem;
  color: #4a6aac;
}
.demo-hint strong { font-family: monospace; }

/* ── Spinner overlay ── */
.submit-spinner { display: none; }
.form-submitting .submit-spinner { display: inline-block; }
.form-submitting .submit-text    { display: none; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .3s ease forwards; }

/* ── Print ── */
@media print {
  .no-print { display: none !important; }
  .portal-header, .portal-footer, .portal-breadcrumb { display: none !important; }
  body { background: white; }
}

.logo-esef {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-esef-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.brand-logo-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand-esef-logo {
    width: 155px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 767.98px) {

    .brand-esef-logo {
        width: 120px;
    }

}

/* =========================================
   HEADER - COULEURS
   ========================================= */

   .portal-topbar {
       background-color: #24588f;
   }

   .portal-brand-area {
       background-color: #3474b8;
   }
