/* ENSSP apps kit — the one stylesheet of bourse, concours, depot and diplome-auth (copied identically into each app).
   Values come from the platform: brand/tokens.css is its app/resources/css/tokens.css verbatim, and the measured live
   components (masthead, banner, institutional rule A, inset panel B, footer). One component per job; no build step, no script. */

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; --ens-wrap: 1400px; --ens-gutter: clamp(16px, 3.34vw, 48px); --ens-accent-red: #ff6055; --ens-deep-2: #003a54; }
body { margin: 0; min-block-size: 100vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text-primary);
  font: var(--fw-body) var(--type-body)/var(--leading-body) var(--font-latin); }
html[lang='ar'] body { font-family: var(--font-arabic); line-height: var(--leading-arabic); }
h1, h2, h3, legend { font-family: var(--font-heading); font-weight: var(--fw-heading); line-height: var(--leading-heading); color: var(--heading); margin: 0 0 .6em; }
html[lang='ar'] :is(h1, h2, h3, legend) { line-height: var(--leading-arabic-heading); letter-spacing: 0; }
h2 { font-size: var(--type-h3); } h3 { font-size: var(--type-h4); }
p { margin: 0 0 1em; }
a { color: var(--brand-primary); text-underline-offset: .18em; }
a:hover { color: var(--brand-primary-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
img { max-inline-size: 100%; block-size: auto; }
.icon { inline-size: 1.25em; block-size: 1.25em; flex: none; fill: none; vertical-align: -.25em; }
html[dir='rtl'] .icon-directional { transform: scaleX(-1); }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { inline-size: min(100% - 2 * var(--ens-gutter), var(--ens-wrap)); margin-inline: auto; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200; display: flex; align-items: center; min-block-size: 44px; padding-inline: 16px;
  background: #1b201f; color: #fff; border-inline-start: 3px solid var(--enssp-mint); border-radius: var(--radius-control); font-size: 14px; font-weight: 600; text-decoration: none; }
.skip:not(:focus) { inset-block-start: -100px; }
.muted, .hint { color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- masthead: one white sticky bar, the official logo unchanged, the service, its menu, back to enssp.dz, the globe */
.masthead { position: sticky; inset-block-start: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--border), 0 8px 24px -18px rgba(0, 40, 60, .35); }
.masthead .wrap { display: flex; align-items: center; gap: 8px 24px; min-block-size: 67px; padding-block: 6px; }
.mh-logo { display: block; flex: none; } .mh-logo img { display: block; inline-size: clamp(120px, 11vw, 148px); }
.mh-service { display: flex; align-items: center; gap: 10px; padding-inline-start: 20px; border-inline-start: 1px solid var(--border); color: var(--heading); font-weight: var(--fw-nav-strong); text-decoration: none; line-height: 1.25; }
.mh-service .tile { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: var(--radius-control); background: var(--brand-primary-soft); color: var(--brand-primary); }
.mh-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; margin-inline-start: auto; }
.mh-nav a, .mh-nav button { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 0; border: 0; background: none; color: var(--heading); font: inherit; font-weight: var(--fw-nav); text-decoration: none; cursor: pointer; }
.mh-nav a:hover, .mh-nav button:hover { color: var(--brand-primary); }
.mh-nav [aria-current='page'] { color: var(--brand-primary); box-shadow: inset 0 -2px 0 var(--enssp-mint); }
.mh-nav form { margin: 0; }
.mh-actions { display: flex; align-items: center; gap: 8px; }
.mh-btn, .langs > summary, .mh-menu > summary { display: inline-grid; place-items: center; inline-size: 42px; block-size: 42px; border: 1px solid transparent; border-radius: 10px; color: var(--heading); background: none; cursor: pointer; list-style: none; text-decoration: none; }
.mh-btn:hover, .langs > summary:hover, .langs[open] > summary, .mh-menu > summary:hover, .mh-menu[open] > summary { background: var(--surface-soft); border-color: var(--border); color: var(--heading); }
:is(.langs, .mh-menu) > summary::-webkit-details-marker { display: none; }
.langs, .mh-menu { position: relative; }
.lang-menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); z-index: 110; display: grid; min-inline-size: 160px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: var(--shadow-overlay); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 44px; padding: 8px 12px; border-radius: var(--radius-control); color: var(--text-primary); font-size: 14px; text-decoration: none; }
.lang-menu a:hover { background: var(--brand-primary-soft); }
.lang-menu a[aria-current='true'] { background: var(--brand-primary-soft); color: var(--brand-primary-strong); font-weight: 600; }
.lang-menu small { color: var(--text-muted); font-size: 12px; }
.mh-menu { display: none; }
@media (max-width: 960px) {
  .mh-service .label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mh-nav { display: none; }
  .mh-menu { display: block; margin-inline-start: auto; }
  .mh-menu .lang-menu { min-inline-size: 240px; }
  .mh-menu .lang-menu :is(a, button) { inline-size: 100%; justify-content: flex-start; min-block-size: 44px; padding: 8px 12px; border: 0; background: none; color: var(--text-primary); font: inherit; font-size: 15px; text-align: start; cursor: pointer; }
  .mh-menu .lang-menu form { margin: 0; }
}
@media (max-width: 420px) { .mh-service { padding-inline-start: 12px; } .masthead .wrap { gap: 8px; } }

/* ---------- page banner: the platform's functional banner, compact (deep blue, mint eyebrow, white serif title, coral-then-mint baseline) */
.page-head { position: relative; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #0a6a96 0%, transparent 55%), linear-gradient(160deg, var(--ens-deep-2), var(--enssp-teal-deep) 60%); }
html[dir='rtl'] .page-head { background: radial-gradient(120% 140% at 100% 0%, #0a6a96 0%, transparent 55%), linear-gradient(200deg, var(--ens-deep-2), var(--enssp-teal-deep) 60%); }
.page-head::after { content: ''; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 4px; background: linear-gradient(to right, var(--ens-accent-red) 0 9%, var(--enssp-mint) 9%); }
html[dir='rtl'] .page-head::after { background: linear-gradient(to left, var(--ens-accent-red) 0 9%, var(--enssp-mint) 9%); }
.page-head .wrap { padding-block: clamp(24px, 3.4vw, 44px) clamp(28px, 3.8vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: 13px; color: #c1d3db; }
.crumbs a { color: #e3edf1; text-decoration: none; } .crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .icon { inline-size: 14px; block-size: 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--enssp-mint); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; inline-size: 28px; block-size: 2px; background: var(--enssp-mint); }
html[lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.page-head h1 { margin: 0; max-inline-size: 30ch; color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.01em; overflow-wrap: anywhere; }
html[lang='ar'] .page-head h1 { letter-spacing: 0; }
.page-head .lead { margin: 12px 0 0; max-inline-size: 68ch; color: #e3edf1; font-size: var(--type-lead); }
.page-body { flex: 1; padding-block: clamp(28px, 3.4vw, 48px) clamp(40px, 5vw, 72px); }
.page-body > :is(form, fieldset, .narrow), .narrow { max-inline-size: var(--content-form); }

/* ---------- signature A: the institutional rule under section titles (hairline with a short mint segment at the start edge) */
.section-head, .rule { position: relative; padding-block-end: 14px; margin-block: 0 20px; background: linear-gradient(var(--enssp-mint), var(--enssp-mint)) no-repeat 0 100% / 44px 2px, linear-gradient(var(--border), var(--border)) no-repeat 0 100% / 100% 1px; }
html[dir='rtl'] :is(.section-head, .rule) { background-position: 100% 100%, 100% 100%; }
h2.section-head { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }

/* ---------- surfaces: card (hairline, 4px) and signature B: the inset panel (3px blue start edge) */
.card { padding: clamp(18px, 2.2vw, 24px); margin-block-end: 20px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-card); }
.card > :last-child, .panel > :last-child { margin-block-end: 0; }
.card h2, .card h3 { font-size: var(--type-h4); }
.panel, .band { padding: clamp(18px, 2.2vw, 26px); margin-block-end: 24px; background: var(--surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--brand-primary); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
html[dir='rtl'] :is(.panel, .band) { border-radius: var(--radius-card) 0 0 var(--radius-card); }
.panel.pale, .band { background: var(--enssp-pale); }
.tile { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: var(--radius-control); background: var(--brand-primary-soft); color: var(--brand-primary); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); align-items: stretch; }
.grid > .card { display: flex; flex-direction: column; margin: 0; }
.grid > .card > .card-action { margin-block-start: auto; }

/* ---------- alerts (one component; tone by modifier) */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-block-end: 20px; border: 1px solid var(--border); border-inline-start: 3px solid var(--brand-primary); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--enssp-pale); }
html[dir='rtl'] .notice { border-radius: var(--radius-control) 0 0 var(--radius-control); }
.notice > .icon { color: var(--brand-primary); margin-block-start: 2px; }
.notice.success { border-inline-start-color: var(--success); background: var(--success-soft); } .notice.success > .icon { color: var(--success); }
.notice.error { border-inline-start-color: var(--danger); background: var(--danger-soft); } .notice.error > .icon { color: var(--danger); }
.notice p:last-child { margin: 0; }

/* ---------- status badges (one per state of an application, candidate, appeal or deposit) */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid currentColor; border-radius: var(--radius-control); font-size: var(--type-metadata); font-weight: 600; line-height: 1.6; white-space: nowrap; color: var(--brand-primary); background: var(--brand-primary-soft); }
.badge::before { content: ''; inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentColor; }
.badge:is(.accepted, .validated, .received, .open, .published) { color: var(--success); background: var(--success-soft); }
.badge:is(.under_review, .pending, .corrections_requested) { color: var(--warning); background: #fff7e6; }
.badge:is(.rejected, .refused, .closed) { color: var(--danger); background: var(--danger-soft); }

/* ---------- buttons: outlined (secondary), primary (blue), cta (the logo red, the main call to action only) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding: 8px 18px; border: 1px solid var(--brand-primary); border-radius: var(--radius-control);
  background: #fff; color: var(--brand-primary); font: inherit; font-size: var(--type-button); font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-primary-soft); color: var(--brand-primary-strong); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-text); }
.btn.cta { background: var(--enssp-red); border-color: var(--enssp-red); color: #fff; }
.btn.cta:hover { background: var(--enssp-red-hover); border-color: var(--enssp-red-hover); color: #fff; }
.btn.link { border-color: transparent; background: none; padding-inline: 4px; }
.btn .icon { inline-size: 18px; block-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block: 20px 0; }

/* ---------- forms: label, help, error, one input style */
form .field, .field { margin-block-end: 18px; }
label, .label { display: block; margin-block-end: 6px; font-size: var(--type-label); font-weight: 600; color: var(--heading); }
.hint { margin: 6px 0 0; font-size: var(--type-small); }
.required-mark { color: var(--danger); }
input:is([type=text], [type=email], [type=password], [type=number], [type=url], [type=date], [type=datetime-local], [type=search], [type=tel]), select, textarea {
  inline-size: 100%; max-inline-size: 36rem; min-block-size: 44px; padding: 9px 12px; border: 1px solid var(--border-control); border-radius: var(--radius-control); background: #fff; color: inherit; font: inherit; }
textarea { min-block-size: 7rem; resize: vertical; }
input[type=file] { max-inline-size: 100%; font: inherit; padding: 8px 0; }
input[type=file]::file-selector-button { min-block-size: 40px; margin-inline-end: 12px; padding: 6px 14px; border: 1px solid var(--brand-primary); border-radius: var(--radius-control); background: #fff; color: var(--brand-primary); font: inherit; font-weight: 600; cursor: pointer; }
:is(input, select, textarea):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; border-color: var(--brand-primary); }
:is(input, select, textarea)[aria-invalid='true'] { border-color: var(--danger); box-shadow: inset 3px 0 0 var(--danger); }
.error-text { display: flex; gap: 6px; margin: 6px 0 0; color: var(--danger); font-size: var(--type-small); font-weight: 500; }
fieldset { min-inline-size: 0; margin: 0 0 24px; padding: 18px 20px 4px; border: 1px solid var(--border); border-radius: var(--radius-card); }
legend { padding-inline: 6px; font-size: var(--type-h4); }
.radios { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; margin: 0; font-weight: 400; }
input[type=checkbox], input[type=radio] { inline-size: 20px; block-size: 20px; accent-color: var(--brand-primary); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px; margin-block-end: 20px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-card); }
.filters .field { margin: 0; } .filters :is(select, input) { inline-size: auto; min-inline-size: 10rem; }

/* ---------- tables */
.table-wrap { overflow-x: auto; margin-block-end: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); }
table { inline-size: 100%; border-collapse: collapse; font-size: var(--type-table); }
th, td { padding: 10px 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--border); }
th { background: var(--enssp-pale); color: var(--heading); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-block-end: 0; }
tbody tr:hover td { background: #fbfcfc; }
td .btn { min-block-size: 36px; padding: 4px 12px; }
@media (max-width: 640px) { th, td { padding: 8px 10px; } }

/* ---------- answers (definition lists), receipts */
dl.answers { display: grid; grid-template-columns: minmax(10rem, 22rem) 1fr; gap: 10px 20px; margin: 0; }
dl.answers dt { font-weight: 600; color: var(--heading); } dl.answers dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { dl.answers { grid-template-columns: 1fr; gap: 2px; } dl.answers dd { margin-block-end: 10px; } }
.receipt { padding: clamp(20px, 2.6vw, 30px); margin-block-end: 24px; border: 1px solid var(--border); border-block-start: 4px solid var(--enssp-mint); border-radius: var(--radius-card); background: #fff; }
.receipt .receipt-number { display: block; margin-block: 4px 16px; font-family: var(--font-heading); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 600; color: var(--heading); letter-spacing: .02em; }

/* ---------- numbered procedure steps (the platform's ordered steps) */
.steps, .procedure { margin: 0 0 24px; padding-inline-start: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
:is(.steps, .procedure) > li { counter-increment: step; position: relative; padding-inline-start: 52px; min-block-size: 36px; }
:is(.steps, .procedure) > li::before { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0; display: grid; place-items: center; inline-size: 36px; block-size: 36px;
  border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
:is(.steps, .procedure) > li > strong:first-child { display: block; color: var(--heading); }

/* ---------- empty state */
.empty { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; margin-block-end: 24px; text-align: center; color: var(--text-secondary); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); background: var(--surface-soft); }
.empty .tile { inline-size: 52px; block-size: 52px; } .empty p { margin: 0; max-inline-size: 48ch; }

/* ---------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.pagination :is(a, span) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-inline-size: 44px; min-block-size: 44px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--brand-primary); text-decoration: none; }
.pagination a:hover { background: var(--brand-primary-soft); }
.pagination [aria-current='page'] span, .pagination span[aria-current='page'] { background: var(--action); border-color: var(--action); color: #fff; font-weight: 700; }
.pagination [aria-disabled='true'] span { color: var(--text-muted); }

/* ---------- footer: the platform's deep footer, shortened */
.foot { margin-block-start: auto; padding-block-start: clamp(44px, 5vw, 64px); border-block-end: 4px solid var(--ens-accent-red); background: linear-gradient(160deg, var(--ens-deep-2), var(--enssp-teal-deep) 60%); color: var(--footer-text); font-size: 15px; }
.foot-grid { display: grid; gap: 32px 48px; grid-template-columns: 1.1fr 1.2fr 1fr; padding-block-end: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-id { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-id img { display: block; inline-size: 200px; margin-block-end: 16px; }
.foot-id p { max-inline-size: 34ch; color: var(--footer-muted); font-size: 14.4px; }
.foot h2 { margin: 0 0 14px; padding-block-end: 10px; color: #fff; font-size: 1.05rem; background: linear-gradient(var(--enssp-mint), var(--enssp-mint)) no-repeat 0 100% / 28px 2px; }
html[dir='rtl'] .foot h2 { background-position: 100% 100%; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.foot-services { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.foot a { display: inline-flex; align-items: center; gap: 10px; min-block-size: 34px; color: var(--footer-muted); font-weight: 500; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a .icon { inline-size: 18px; block-size: 18px; color: #fff; }
.foot a[aria-current='true'] { color: #fff; }
.foot address { font-style: normal; display: grid; gap: 2px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-block-start: 1px solid rgba(255, 255, 255, .15); color: var(--footer-muted); font-size: 13px; }
.foot-bottom p { margin: 0; } .foot-bottom a { min-block-size: 24px; font-size: 13px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- error pages */
.error-page { display: grid; gap: 8px; justify-items: start; }
.error-page .code { font-family: var(--font-heading); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--brand-primary); font-weight: 600; }

/* ---------- print (receipts, applications) */
@media print {
  .masthead, .foot, .no-print, .actions, .skip { display: none !important; }
  body { display: block; font-size: 11pt; }
  .page-head { background: none; color: #000; } .page-head::after { display: none; } .page-head h1 { color: #000; } .page-head :is(.crumbs, .eyebrow) { display: none; }
  .card, fieldset, .panel, .receipt { border: 0; padding: 0; }
}

/* ---------- small shared pieces used by the pages */
.compact { max-inline-size: 36rem; }
label.check { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; margin: 0; font-weight: 400; }
.radios-wrap { margin: 0 0 6px; padding: 0; border: 0; }
.radios-wrap > legend { padding: 0; font-family: inherit; font-size: var(--type-label); font-weight: 600; }
textarea.short { min-block-size: 3.5rem; }
ul.plain { margin: 0; padding: 0; list-style: none; }
.history { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.history > li { padding-inline-start: 16px; border-inline-start: 2px solid var(--border); }
.history .icon { inline-size: 16px; block-size: 16px; vertical-align: -.2em; }
td.empty-row { padding: 28px 14px; text-align: center; color: var(--text-secondary); background: var(--surface-soft); }
.card.verified { border-color: var(--success); border-block-start: 4px solid var(--success); }
.back { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; text-decoration: none; font-weight: 600; }
.card > .tile { margin-block-end: 14px; }
.panel .actions:first-child { margin-block-start: 0; }
select { max-inline-size: 100%; text-overflow: ellipsis; }
.filters :is(select, input) { max-inline-size: 100%; }
pre { max-inline-size: 100%; overflow-x: auto; padding: 14px 16px; margin: 0 0 20px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-card); font-size: var(--type-small); line-height: 1.6; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.eyebrow-dark { margin: 0; color: var(--brand-primary); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; } html[lang='ar'] .eyebrow-dark { letter-spacing: 0; text-transform: none; }
.filters > * { min-inline-size: 0; max-inline-size: 100%; }
@media (max-width: 640px) { .filters .field, .filters :is(select, input) { inline-size: 100%; } }
.table-wrap:focus-visible { outline-offset: 2px; }

/* ---------- 2026-11-24: banner photo, header parity with enssp.dz, form + help layout */
/* Banner: the homepage hero photograph of enssp.dz on the end side, fading into the deep blue behind the text
   (the website's inner-page banner); on phones it lies under a strong tint. */
.page-head { overflow: hidden; isolation: isolate; }
.page-head-photo { position: absolute; inset: 0; z-index: -1; }
.page-head-photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% 40%; }
.page-head-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 120% 95% at 25% 40%, rgb(0 58 84 / .95), rgb(0 58 84 / .86) 55%, rgb(0 58 84 / .74)); }
html[dir='rtl'] .page-head-photo::after { background: radial-gradient(ellipse 120% 95% at 75% 40%, rgb(0 58 84 / .95), rgb(0 58 84 / .86) 55%, rgb(0 58 84 / .74)); }
.page-head .wrap { position: relative; }
@media (min-width: 900px) {
  .page-head, html[dir='rtl'] .page-head { min-block-size: 300px; display: flex; align-items: center; background: var(--enssp-teal-deep); }
  .page-head .wrap { inline-size: min(100% - 2 * var(--ens-gutter), var(--ens-wrap)); }
  .page-head-photo { inset-inline-start: auto; inline-size: min(56vw, 960px); }
  .page-head-photo::after { background: linear-gradient(to right, var(--enssp-teal-deep) 0%, rgb(0 75 106 / .8) 26%, rgb(0 75 106 / .28) 60%, rgb(0 75 106 / .08) 100%); }
  html[dir='rtl'] .page-head-photo::after { background: linear-gradient(to left, var(--enssp-teal-deep) 0%, rgb(0 75 106 / .8) 26%, rgb(0 75 106 / .28) 60%, rgb(0 75 106 / .08) 100%); }
  .page-head .lead { max-inline-size: 56ch; }
}
@media print { .page-head-photo { display: none; } }

/* Header utilities as on enssp.dz: unboxed ink icons, no grey box on hover (only the open menu keeps a ground). */
.mh-btn, .langs > summary { color: var(--heading); }
.mh-btn:hover, .langs > summary:hover, .mh-btn:focus-visible, .langs > summary:focus-visible { background: transparent; border-color: transparent; color: var(--brand-primary); }
.langs[open] > summary { background: var(--surface-soft); border-color: var(--border); }
.mh-btn .icon, .langs > summary .icon, .mh-menu > summary .icon { inline-size: 22px; block-size: 22px; }

/* Form beside its help: the form card and a pale help panel side by side, stacked on phones. */
.split { display: grid; gap: 24px; align-items: start; margin-block-end: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; } }
.split > .card { margin: 0; }
.split > .card.compact { max-inline-size: none; }
.split > .card.compact :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { max-inline-size: none; }
.card.compact { padding: clamp(20px, 2.6vw, 32px); border-block-start: 3px solid var(--brand-primary); box-shadow: 0 14px 32px -26px rgb(0 40 60 / .45); }
.card.compact .actions { margin-block-start: 8px; }
.card.compact .btn { min-block-size: 46px; padding-inline: 22px; }
.form-title { margin: 0 0 18px; font-size: var(--type-h4); color: var(--heading); }
.help { padding: clamp(20px, 2.4vw, 28px); background: var(--enssp-pale); border-radius: var(--radius-card); }
.help h2 { margin: 0 0 14px; font-size: 1.125rem; color: var(--heading); }
.help ol, .help ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: help; }
.help li { position: relative; padding-inline-start: 40px; line-height: 1.55; }
.help ol > li::before { counter-increment: help; content: counter(help); position: absolute; inset-inline-start: 0; inset-block-start: -1px; display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%; background: #fff; color: var(--brand-primary); font-weight: 700; font-size: 14px; }
.help ul > li > .icon { position: absolute; inset-inline-start: 2px; inset-block-start: 2px; inline-size: 22px; block-size: 22px; color: var(--brand-primary); }
.help .help-foot { margin: 18px 0 0; padding-block-start: 14px; border-block-start: 1px solid rgb(0 75 106 / .15); color: var(--text-secondary); font-size: 14px; }
.help .help-foot a { font-weight: 600; }

/* Status card: what is open now, with its actions (concours, bourse home). */
.status { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 28px); margin-block-end: 28px; background: #fff; border: 1px solid var(--border); border-inline-start: 4px solid var(--brand-primary); border-radius: 0 var(--radius-card) var(--radius-card) 0; box-shadow: 0 14px 32px -26px rgb(0 40 60 / .45); }
html[dir='rtl'] .status { border-radius: var(--radius-card) 0 0 var(--radius-card); }
@media (min-width: 900px) { .status { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; } }
.status > .tile { display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 12px; background: var(--brand-primary-soft); color: var(--brand-primary); }
.status > .tile .icon { inline-size: 26px; block-size: 26px; }
.status-text h2 { margin: 0 0 4px; font-size: 1.125rem; }
.status-text p { margin: 0; color: var(--text-secondary); }
.status .actions { margin: 0; }
