/* ISPMM site.css — design tokens and base typography
   Phase 1 of the editorial-academic redesign (2026-05-28).
   Legacy styles preserved at the bottom of this file in a legacy block. */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --ink: #0c1a3a;
    --navy: #162856;
    --navy-2: #1e4a78;
    --paper: #fbfaf6;
    --paper-2: #f1ede2;
    --rule: #d8d2c0;
    --gold: #f8bd0c;
    --gold-text: #7a5900; /* dark gold for gold-flavoured TEXT on paper/paper-2 (F30): ~6.2:1 on paper, passes AA. Raw --gold (#f8bd0c) is ~1.6:1 on paper and must never carry text on light surfaces. */
    --muted: #5d616d;   /* mid gray — raised from #6b6f7a (4.29:1 on paper-2, failed AA) to #5d616d: 5.29:1 on paper-2, 5.92:1 on paper — passes AA body everywhere */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', Times, serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 4.5rem;
    --error: #b42318;        /* form errors: 6.1:1 on paper, 5.4:1 on paper-2 (AA) */
    --error-bg: #fdf1ef;
    --success: #1e6b3a;      /* 6.6:1 on paper (AA) */
    --success-bg: #eef6f0;
}

/* ============================================================
   1b. REBOOT — the few element defaults the site used to inherit from
   Bootstrap 5.3 Reboot (bootstrap.min.css removed in F37). Kept first so
   every component rule below wins exactly as it did before.
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h4 { font-size: 1.5rem; }
}

p,
address,
blockquote,
figure,
pre {
    margin-top: 0;
    margin-bottom: 1rem;
}

blockquote,
figure {
    margin-inline: 0;
}

address {
    font-style: normal;
    line-height: inherit;
}

ol,
ul {
    padding-left: 2rem;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol, ol ul, ul ol, ul ul {
    margin-bottom: 0;
}

dt { font-weight: 700; }
dd { margin-bottom: 0.5rem; margin-left: 0; }

b,
strong {
    font-weight: bolder;
}

small {
    font-size: 0.875em;
}

a {
    color: var(--navy-2);
    text-decoration: underline;
}

a:hover {
    color: var(--navy);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

code,
pre {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
}

code {
    color: var(--navy-2);
    overflow-wrap: break-word;
}

img,
svg {
    vertical-align: middle;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead, tbody, tfoot, tr, td, th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
[role="button"] {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

iframe {
    border: 0;
}

summary {
    display: list-item;
    cursor: pointer;
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

[hidden] {
    display: none !important;
}

/* Screen-reader-only text (replaces Bootstrap .visually-hidden). */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Horizontal scroll wrapper for wide tables (replaces Bootstrap .table-responsive). */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Short note printed under a comparison table (e.g. Admission/Frais). */
.compare-note {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0.75rem 0 0;
}

/* Inline SVG icons rendered by the <icon> tag helper (TagHelpers/IconTagHelper.cs),
   which replaced the Font Awesome CDN stylesheet. 1em square, drawn in currentColor,
   so a parent's font-size / color rule sizes and tints them like the old glyphs. */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
    overflow: visible;
}

.icon--2x {
    font-size: 2em;
}

/* Anti-spam honeypot (Components/_Honeypot.cshtml). Moved out of an inline
   style attribute so a strict CSP (no 'unsafe-inline') still hides it. */
.ispmm-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============================================================
   2. BASE RESETS
   ============================================================ */
html {
    scroll-behavior: smooth;
    font-size: 14px; /* parity with the retired layout.css (F37); 16px from md up */
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
    line-height: 1.6;
}

/* ============================================================
   3. HEADING SCALE (spec §3.1)
   Fluid type — standard interpolation between 360px and 1280px viewports.
   Formula: clamp(MIN_rem, calc(m·vw + b_rem), MAX_rem)
   where m = (MAX_px − MIN_px) / 920 × 100  and  b = MIN_rem − (m/100)×360/16
   ============================================================ */
.h1-hero,
.h1-page,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.15;
}

/* 2.75rem at 360px → 5.25rem at 1280px */
.h1-hero {
    font-size: clamp(2.75rem, calc(4.348vw + 1.772rem), 5.25rem);
}

/* 2.25rem at 360px → 3.5rem at 1280px */
.h1-page {
    font-size: clamp(2.25rem, calc(2.174vw + 1.761rem), 3.5rem);
}

/* 1.625rem at 360px → 2.25rem at 1280px */
h2 {
    font-size: clamp(1.625rem, calc(1.087vw + 1.380rem), 2.25rem);
}

/* 1.25rem at 360px → 1.5rem at 1280px */
h3 {
    font-size: clamp(1.25rem, calc(0.435vw + 1.152rem), 1.5rem);
}

/* ============================================================
   4. LAYOUT PRIMITIVES
   ============================================================ */
.container {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.section {
    padding-block: clamp(4rem, 8vw, 8rem);
}

.section--paper-2 {
    background: var(--paper-2);
}

.hairline {
    border-top: 1px solid var(--rule);
}

/* ============================================================
   5. FOCUS RING (spec §12)
   ============================================================ */
/* F30: navy ring on light surfaces (gold on paper is ~1.6:1 and fails
   WCAG 2.4.11 / 1.4.11). Gold is only allowed on navy surfaces, below. */
:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}
.skip-link:focus-visible,
.cta-band :focus-visible,
.compare thead :focus-visible,
.admission-condition-card__header :focus-visible,
.on-navy :focus-visible {
    outline-color: var(--gold);
}

/* ============================================================
   6. MOTION GUARD (spec §3.5)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

/* Language switch (spec §6.3) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lang-switch__pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0.25rem;
    transition: color 200ms ease;
}

.lang-switch__pill:hover {
    color: var(--navy);
}

.lang-switch__pill.is-active {
    color: var(--navy);
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* Top navigation (spec §6.1) */

/* Skip link (a11y) */
.skip-link.sr-only-focusable {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
}
.skip-link.sr-only-focusable:focus-visible {
    left: 0.5rem;
    top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--navy);
    color: var(--paper);
    border-radius: 0.25rem;
}

/* Header shell */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-nav.is-scrolled {
    border-bottom-color: var(--rule);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.site-nav__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    min-height: var(--nav-height);
    padding-block: 0.75rem;
}

/* Brand lockup */
.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    text-decoration: none;
    flex-shrink: 0;
}
/* Logo: alt text inherits these font rules, so a missing image still reads
   as the "ISPMM" wordmark instead of a broken-image icon. */
.site-nav__brand-logo {
    display: block;
    height: 3rem;
    width: auto;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--navy);
}
.site-nav__brand-dot {
    color: var(--gold);
    font-size: 1.25rem;
    line-height: 1;
}
.site-nav__brand-tagline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

/* Menu container — flex on desktop, collapses on mobile */
.site-nav__menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
}

/* Primary nav */
.site-nav__primary {
    flex: 1;
    display: flex;
    justify-content: center;
}
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
}
.site-nav__item {
    position: relative;
}
.site-nav__link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0.5rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-expanded="true"]::after {
    transform: scaleX(1);
}
.site-nav__chevron {
    font-size: 0.625rem;
}

/* Dropdown — hover-open at desktop, click-open at mobile (Phase 7 ui.js) */
.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}
/* F32: dropdowns are driven by ui.js alone (no Flowbite). Hover and
   focus-within still open them at desktop width (also the no-JS fallback);
   `.is-dismissed` (set by ui.js on Escape / toggle-close) wins over both. */
.site-nav__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
@media (min-width: 1024px) {
    .site-nav__item--has-dropdown:not(.is-dismissed):hover > .site-nav__dropdown,
    .site-nav__item--has-dropdown:not(.is-dismissed):focus-within > .site-nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }
    .site-nav__item--has-dropdown.is-dismissed > .site-nav__dropdown {
        opacity: 0;
        visibility: hidden;
    }
}
.site-nav__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav__dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease;
}
.site-nav__dropdown-link:hover {
    background: var(--paper-2);
    color: var(--navy);
}

/* Right cluster (language switch + CTA) */
.site-nav__cluster {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.site-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 200ms ease, transform 200ms ease;
}
.site-nav__cta:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* Mobile menu toggle (visible <1024px) */
.site-nav__mobile-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-direction: column;
    gap: 4px;
}
.site-nav__mobile-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 200ms ease, opacity 200ms ease;
}

/* Responsive — collapse menu under 1024px */
@media (max-width: 1023.98px) {
    .site-nav__mobile-toggle { display: inline-flex; }
    .site-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        max-height: 0;
        overflow: hidden;
        /* F31: a closed panel is visibility:hidden so its links leave the tab
           order; visibility flips only after the collapse animation ends. */
        visibility: hidden;
        transition: max-height 300ms ease, visibility 0s linear 300ms;
    }
    .site-nav__menu.is-open {
        max-height: 80vh;
        overflow-y: auto;
        visibility: visible;
        transition-delay: 0s;
    }
    .site-nav__primary { justify-content: flex-start; }
    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .site-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--rule);
        padding-left: 1rem;
        margin-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 200ms ease, visibility 0s linear 200ms;
    }
    .site-nav__dropdown.is-open {
        max-height: 30rem;
        visibility: visible;
        transition-delay: 0s;
    }
    .site-nav__cluster {
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid var(--rule);
    }
}

/* Footer (spec §6.2) */
.site-footer {
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    margin-top: clamp(4rem, 8vw, 8rem);
    font-family: var(--font-body);
    color: var(--ink);
}
.site-footer__inner {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1.2fr 2fr 1fr;
    }
}
.site-footer__col--links {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 640px) {
    .site-footer__col--links {
        grid-template-columns: repeat(3, 1fr);
    }
}
.site-footer__brand-logo {
    display: block;
    height: 5rem;
    width: auto;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--navy);
}
.site-footer__motto {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--navy-2);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.site-footer__description {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 24rem;
}
.site-footer__col-header {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.site-footer__address address {
    font-style: normal;
    color: var(--muted);
    font-size: 0.9375rem;
}
.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer__list--contact .icon {
    margin-right: 0.5rem;
    color: var(--muted);
    width: 1rem;
}
.site-footer__link {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 200ms ease;
}
.site-footer__link:hover {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-footer__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}
.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--rule);
    border-radius: 50%;
    color: var(--navy);
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.site-footer__social-link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--paper);
}

/* Bottom strip */
.site-footer__bottom {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.site-footer__copyright {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}
.site-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.site-footer__legal .site-footer__link {
    font-size: 0.875rem;
    color: var(--muted);
}
.site-footer__legal .site-footer__link:hover {
    color: var(--navy);
}

/* Breadcrumb (spec §9) */
.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    padding-block: 1rem;
    margin-bottom: 1rem;
}
.breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.breadcrumb__link {
    color: var(--muted);
    text-decoration: none;
    transition: color 200ms ease;
}
.breadcrumb__link:hover {
    color: var(--navy);
}
.breadcrumb__current {
    color: var(--ink);
}
.breadcrumb__separator {
    color: var(--rule);
}

/* Hero — editorial (spec §7 item 1) */
.hero-editorial {
    padding-block: clamp(3rem, 6vw, 6rem);
    background: var(--paper);
}
.hero-editorial__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-editorial__inner {
        grid-template-columns: 1.1fr 1fr;
    }
}
.hero-editorial__kicker {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 1rem;
}
.hero-editorial__headline {
    margin: 0 0 1.5rem;
    color: var(--navy);
}
.hero-editorial__paragraph {
    font-size: 1.0625rem;
    color: var(--ink);
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 0 2rem;
}
.hero-editorial__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}
.hero-editorial__photo-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 32rem;
    margin-inline: auto;
}
.hero-editorial__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}
.hero-editorial__photo-accent {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 6rem;
    height: 2px;
    background: var(--gold);
    z-index: 1;
}

/* Buttons (used by hero and other components) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn--primary {
    background: var(--gold);
    color: var(--ink);
}
.btn--primary:hover {
    background: #e0a800;
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: transparent;
}
.btn--ghost:hover {
    color: var(--navy-2);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Numbers strip (spec §7 item 2) */
.numbers-strip {
    padding-block: clamp(3rem, 6vw, 5rem);
    border-block: 1px solid var(--rule);
    background: var(--paper);
}
.numbers-strip__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .numbers-strip__list {
        grid-template-columns: repeat(4, 1fr);
    }
}
.numbers-strip__item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.numbers-strip__number {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.25rem, calc(1.087vw + 2rem), 3.25rem);
    color: var(--navy);
    line-height: 1;
}
.numbers-strip__label {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Program card (spec §7 item 3) */
.program-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
    height: 100%;
}
.program-card:hover {
    box-shadow: 0 8px 24px rgba(12, 26, 58, 0.08);
    transform: translateY(-2px);
    border-color: var(--navy-2);
}
.program-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}
.program-card__lead {
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.program-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--navy);
    margin-top: auto;
    padding-top: 0.5rem;
}
.program-card__arrow {
    transition: transform 200ms ease;
}
.program-card:hover .program-card__arrow {
    transform: translateX(2px);
}

/* Pull quote (spec §7 item 5) */
.pull-quote {
    padding-block: clamp(4rem, 8vw, 6rem);
}
.pull-quote__figure {
    margin: 0;
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
}
.pull-quote__quote {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.5rem, calc(0.5vw + 1.4rem), 2rem);
    line-height: 1.4;
    color: var(--navy);
}
.pull-quote__quote p {
    margin: 0;
}
.pull-quote__caption {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.pull-quote__portrait {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}
.pull-quote__attribution {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
}

/* Timeline (spec §7 item 6) */
.timeline-section {
    padding-block: clamp(3rem, 6vw, 5rem);
}
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 1px;
    background: var(--rule);
}
.timeline__item {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.timeline__dot {
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--gold);
    border: 2px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--rule);
}
.timeline__step {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.timeline__date {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}
.timeline__label {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
}

@media (min-width: 768px) {
    .timeline {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    .timeline::before {
        top: 0.875rem;
        bottom: auto;
        left: 1rem;
        right: 1rem;
        width: auto;
        height: 1px;
    }
    .timeline__item {
        flex: 1;
        padding-left: 0;
        padding-top: 2.25rem;
        text-align: left;
    }
    .timeline__dot {
        left: 0;
        top: 0.5rem;
    }
}

/* Step Process partial (Phase 11.3) — vertical list of rich sequential steps */
.step-process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.step-process__item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding-block: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--rule);
    align-items: start;
}

.step-process__item:first-child {
    border-top: none;
}

/* Icon frame — circular gold badge */
.step-process__icon-frame {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;   /* optical alignment with the eyebrow label */
}

.step-process__icon {
    font-size: 1.125rem;
    color: var(--navy);
    line-height: 1;
}

/* Numbered badge (when no icon is supplied) */
.step-process__badge-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Content column */
.step-process__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Eyebrow label */
.step-process__label {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0;
}

/* Step heading */
.step-process__title {
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

/* Body paragraph */
.step-process__description {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.65;
}

/* Optional sub-list — inherits .formation-bullets spacing */
.step-process__bullets {
    padding-left: 1.25rem;
    list-style: disc;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.65;
}

.step-process__bullets li + li {
    margin-top: 0.375rem;
}

/* Optional callout block */
.step-process__callout {
    border-left: 3px solid var(--gold);
    background: var(--paper-2);
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-radius: 0 0.25rem 0.25rem 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Optional CTA link — btn--ghost style */
.step-process__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
    align-self: flex-start;
}

.step-process__cta:hover {
    color: var(--navy-2);
    border-bottom-color: var(--navy-2);
}

.step-process__cta:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Mobile: stack icon above content when viewport is very narrow */
@media (max-width: 639px) {
    .step-process__item {
        grid-template-columns: 1fr;
    }

    .step-process__icon-frame {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.25rem;
    }

    .step-process__icon {
        font-size: 1rem;
    }
}

/* CTA band (spec §7 item 8) */
.cta-band {
    background: var(--navy);
    color: var(--paper);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}
@media (min-width: 768px) {
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
}
.cta-band__heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, calc(1vw + 1.5rem), 2.5rem);
    color: var(--paper);
    margin: 0;
    line-height: 1.2;
    max-width: 40rem;
}
.cta-band__cta {
    flex-shrink: 0;
}

/* At-a-glance card (spec §8.2 item 3) */
.at-a-glance {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .at-a-glance {
        position: sticky;
        top: calc(var(--nav-height) + 1rem);
    }
}
.at-a-glance__heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
}
.at-a-glance__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.at-a-glance__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted var(--rule);
}
.at-a-glance__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.at-a-glance__label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0;
}
.at-a-glance__value {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    text-align: right;
}
.at-a-glance__link {
    color: var(--navy);
    text-decoration: none;
}
.at-a-glance__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.at-a-glance__apply {
    width: 100%;
    justify-content: center;
}

/* === Homepage layout primitives (Task 4.2) === */
.h2 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0;
}
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.why-card h3 {
    color: var(--navy);
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
}
.why-card p {
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
}
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
    padding: 1.5rem;
    border-top: 1px solid var(--rule);
}
.news-card__date {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}
.news-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.news-card__lead {
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
}
.why-section__heading,
.programs-section__heading,
.news-section__heading {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0;
    font-size: clamp(1.625rem, calc(1.087vw + 1.38rem), 2.25rem);
}

/* === Formation Index page (Task 5.1) === */

/* Programs grid override — 2-col base so the 5-card wrap is 2+2+1 (less awkward than 3+2) */
.program-grid--formation {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
    .program-grid--formation {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Compare section heading */
.formation-compare__heading {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0 0 1.5rem;
    font-size: clamp(1.625rem, calc(1.087vw + 1.38rem), 2.25rem);
}

/* Compare table wrapper — horizontal scroll on narrow viewports */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Compare table — single definition shared by Formation/Index (inside
   .compare-wrap) and the Admission fee / conditions tables (inside
   .table-responsive). Header: white text on navy for legible contrast. */
.compare {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    border: 1px solid var(--rule);
}

.compare-wrap .compare {
    min-width: 36rem;       /* keep columns legible; wrapper scrolls on mobile */
}

.compare thead {
    background-color: var(--navy);
    color: #fff;
}

.compare th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background-color: var(--navy);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--navy);
    white-space: nowrap;
}

.compare td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
    color: var(--ink);
    line-height: 1.5;
}

.compare tbody tr:last-child td {
    border-bottom: none;
}

/* Programme column — display name, heavier weight, Fraunces */
.compare__programme {
    font-family: var(--font-display);
    font-weight: 600;
    white-space: nowrap;
}

.compare__programme a {
    color: var(--navy);
    text-decoration: none;
}

.compare__programme a:hover {
    color: var(--navy-2);
    text-decoration: underline;
}

/* Subtle zebra striping using brand paper tones */
.compare tbody tr:nth-child(even) {
    background-color: var(--paper-2);
}

.compare__date {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* === Formation detail page (Task 6.2) === */

.formation-hero {
    background-color: var(--paper-2);
    border-top: 1px solid var(--rule);
}

.formation-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
    .formation-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
}

.formation-hero__kicker {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
}

.formation-hero__title {
    margin: 0.5rem 0 1.25rem;
}

.formation-hero__summary {
    margin: 0 0 1.75rem;
    color: var(--ink);
    line-height: 1.65;
}

.formation-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.formation-hero__photo-frame {
    overflow: hidden;
    border-radius: 0.5rem;
}

.formation-hero__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

/* Two-column layout: main content + sticky aside */
.formation-detail__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* Mobile: aside (at-a-glance) is last in DOM but appears above main via order: -1
   so the mobile card is shown first visually without breaking keyboard tab order
   on desktop (where main content comes first both visually and in DOM). */
.formation-detail__aside {
    order: -1;
    align-self: start;
}

@media (min-width: 1024px) {
    .formation-detail__layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
        gap: 3rem;
        align-items: start;
    }

    /* On desktop, explicit grid-column/grid-row pin each item; the mobile
       order:-1 on .formation-detail__aside is overridden back to 0 here so
       it can't leak into the auto-placement algorithm. Tab order = source
       order: main, then aside. */
    .formation-detail__aside {
        order: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .formation-detail__main {
        grid-column: 1;
        grid-row: 1;
    }
}

/* Long-form content sections */
.formation-section + .formation-section {
    margin-top: 3rem;
    border-top: 1px solid var(--rule);
    padding-top: 2.5rem;
}

/* Curriculum semesters */
.curriculum-semester + .curriculum-semester {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.curriculum-semester__label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.curriculum-semester__modules {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.6;
}

.curriculum-semester__modules li + li {
    margin-top: 0.375rem;
}

/* Admission / Career bullets */
.formation-bullets {
    padding-left: 1.25rem;
    list-style: disc;
    font-family: var(--font-body);
    margin: 0;
}

.formation-bullets li + li {
    margin-top: 0.5rem;
}

/* FAQ accordion (disclosure wiring: initDisclosures() in wwwroot/js/ui.js) */
.formation-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    background: none;
    border: none;
    border-top: 1px solid var(--rule);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    text-align: left;
    cursor: pointer;
}

.formation-faq__trigger:hover span {
    text-decoration: underline;
}

.formation-faq__chevron {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.formation-faq__trigger[aria-expanded="true"] .formation-faq__chevron {
    transform: rotate(180deg);
}

.formation-faq__panel[hidden] {
    display: none !important;
}

.formation-faq__trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.formation-faq__panel {
    padding: 0 0 1.25rem;
    color: var(--ink);
    line-height: 1.65;
}

/* === Micro-interactions (Task 7.1) === */
/* Note: .site-nav.is-scrolled, .site-nav__menu.is-open, and
   .site-nav__dropdown.is-open are already defined earlier in this file
   (lines ~169, ~287, ~374, ~398). ui.js toggles those existing classes;
   this block only adds the rules that did not exist yet. */

[data-reveal] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Body scroll lock while the mobile menu is open. ui.js adds .is-menu-open
   to .site-nav when the menu opens; :has() lets us hide overflow without
   touching <body> from JS. */
body:has(.site-nav.is-menu-open) {
    overflow: hidden;
}

/* === Admission pages === */

/* Shared section wrapper — consistent vertical rhythm */
.admission-section {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    border-top: 1px solid var(--rule);
}

.admission-section:first-of-type {
    border-top: none;
}

/* Editorial intro paragraph */
.editorial-intro {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.editorial-intro__text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--ink);
    margin: 0;
}

/* Section heading shared across admission pages */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

/* "Notes importantes" 2×2 grid */
.admission-notes__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 640px) {
    .admission-notes__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.admission-note-card {
    background: var(--surface, #fff);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admission-note-card__icon {
    color: var(--accent, #f8bd0c);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.admission-note-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin: 0;
}

.admission-note-card__body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.admission-note-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 0.5rem;
}

.admission-note-card__cta:hover {
    color: var(--accent, #f8bd0c);
}

/* Payment modality 2-card grid (Frais page) */
.payment-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 640px) {
    .payment-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-card {
    background: var(--surface, #fff);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--navy);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent, #f8bd0c);
}

.payment-card__lead {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
}

.payment-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.55;
}

.payment-card__list li {
    padding-left: 1rem;
    position: relative;
}

.payment-card__list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent, #f8bd0c);
    font-weight: 700;
}

.payment-card__note {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    border-top: 1px solid var(--rule);
    padding-top: 0.75rem;
}

/* Admission conditions 2-card stack (Procedure page) */
.admission-conditions {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2rem);
}

.admission-condition-card {
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    overflow: hidden;
}

.admission-condition-card__header {
    background-color: var(--navy);
    padding: 0.875rem 1.25rem;
}

.admission-condition-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

/* Download CTA card (Procedure page) */
.admission-download__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    background: hsl(220 30% 97%);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.admission-download__icon {
    color: var(--navy);
    flex-shrink: 0;
}

.admission-download__body {
    flex: 1;
    min-width: 14rem;
}

.admission-download__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy);
    margin: 0 0 0.25rem;
}

.admission-download__desc {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.55;
    margin: 0;
}

/* === Contact page ===
   Editorial page-scoped styles for the redesigned Contact view.
   No external file — everything lives here so cache-busting matches site.css. */

.contact-section {
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

.contact-section:first-of-type {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* Two-column layout: info aside (left) + form block (right). Stacks below 900px. */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Sub-heading used inside .contact-info for "Suivez-nous". */
.section-subheading {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    color: var(--ink);
    margin: 2.25rem 0 1rem;
    letter-spacing: -0.005em;
}

/* — Left column: coordinates list — */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid var(--rule);
}

.contact-info-item:first-child {
    border-top: none;
    padding-top: 0;
}

.contact-info-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--navy);
    font-size: 1rem;
}

.contact-info-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.contact-info-item__label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}

.contact-info-item__value {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.5;
}

.contact-info-item__link {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.contact-info-item__link:hover,
.contact-info-item__link:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

/* — Social links as compact chips — */
.contact-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.contact-social__link:hover,
.contact-social__link:focus-visible {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--paper-2);
}

.contact-social__link .icon {
    font-size: 0.95rem;
    color: var(--navy);
}

/* — Right column: form block — */
.contact-form-block {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.contact-form__label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-form__required {
    color: var(--gold-text);
    font-weight: 700;
    margin-left: 0.15rem;
}

.contact-form__input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 9rem;
}

.contact-form__error {
    color: #b91c1c;
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-form__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem 0.75rem;
    align-items: start;
    padding: 0.75rem 0;
}

.contact-form__checkbox {
    margin-top: 0.25rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--navy);
}

.contact-form__consent-label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
    cursor: pointer;
}

.contact-form__consent .contact-form__error {
    grid-column: 1 / -1;
}

.contact-form__actions {
    margin-top: 0.5rem;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.contact-form-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

/* — Alerts inside form block — */
.contact-alert {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 4px;
    border-left: 3px solid var(--rule);
    background: var(--paper-2);
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-alert .icon {
    font-size: 1.15rem;
    line-height: 1.2;
}

.contact-alert p {
    margin: 0;
}

.contact-alert--success {
    border-left-color: #16a34a;
    background: color-mix(in srgb, #16a34a 8%, var(--paper));
}

.contact-alert--success .icon {
    color: #16a34a;
}

.contact-alert--error {
    border-left-color: #b91c1c;
    background: color-mix(in srgb, #b91c1c 8%, var(--paper));
}

.contact-alert--error .icon {
    color: #b91c1c;
}

.contact-alert--warning {
    border-left-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, var(--paper));
}

.contact-alert--warning .icon {
    color: #92740a;
}

/* — Map — */
.contact-map {
    position: relative;
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    border: 0;
}

.contact-map__caption {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--paper);
    border-left: 3px solid var(--gold);
    padding: 0.75rem 1rem;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(12, 26, 58, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 60%;
}

.contact-map__caption strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--navy);
}

.contact-map__caption span {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .contact-map__caption {
        position: static;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ============================================================
   FORMS — Bourses (/Bourses) and online registration
   (/Admission/Registration). Replaces the retired bourse.css and
   registration.css (F41). Everything is scoped under .form-card (the
   form surface) or a page wrapper, so the Contact form keeps its own
   .contact-form__* styles. Tokens only; contrast notes inline.
   ============================================================ */

:root {
    /* Field and upload-zone borders: #857f6e is 3.8:1 on paper, so the
       control boundary passes WCAG 1.4.11 (3:1). --rule stays for hairlines. */
    --field-border: #857f6e;
}

/* --- Page scaffolding --------------------------------------- */
.form-page-section {
    padding-block: clamp(2rem, 5vw, 3.5rem);
    border-top: 1px solid var(--rule);
}

.form-page-section:first-of-type {
    border-top: 0;
}

/* Tighten spacing between the numbers strip and the first section. */
.numbers-strip + .container .form-page-section:first-of-type {
    padding-top: clamp(2rem, 5vw, 3rem);
}

/* Anchor targets clear the sticky header. */
.form-page-section,
.form-card {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* --- Eligibility criteria (Bourses) ------------------------- */
.criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 720px) {
    .criteria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
    .criteria-grid { grid-template-columns: repeat(4, 1fr); }
}

.criteria-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--paper);
    border: 1px solid var(--rule);
    transition: border-color 200ms ease, transform 200ms ease;
}

.criteria-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--gold);
}

.criteria-card:hover {
    border-color: color-mix(in srgb, var(--navy) 25%, var(--rule));
    transform: translateY(-1px);
}

.criteria-card__index {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.criteria-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

.criteria-card__body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink);
}

/* --- Form surface ------------------------------------------- */
.form-card {
    position: relative;
    max-width: 56rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    background: var(--paper);
    border: 1px solid var(--rule);
}

.form-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4rem;
    height: 3px;
    background: var(--gold);
}

.form-required-note {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.875rem;
}

/* --- Alerts -------------------------------------------------- */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--rule);
    border-left-width: 3px;
    background: var(--paper-2);
    color: var(--ink);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.form-alert > .icon {
    font-size: 1.25rem;
    margin-top: 0.05rem;
}

.form-alert__content {
    flex: 1;
    min-width: 0;
}

.form-alert__title {
    display: block;
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

.form-alert__content p {
    margin: 0 0 0.5rem;
}

.form-alert__content > :last-child {
    margin-bottom: 0;
}

.form-alert__content ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.form-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-alert--success {
    border-left-color: var(--success);
    background: var(--success-bg);
}

.form-alert--success > .icon { color: var(--success); }

.form-alert--error {
    border-left-color: var(--error);
    background: var(--error-bg);
}

.form-alert--error > .icon,
.form-alert--error .form-alert__title { color: var(--error); }

.form-alert--info,
.form-alert--warning {
    border-left-color: var(--gold);
}

.form-alert--info > .icon { color: var(--navy); }
.form-alert--warning > .icon { color: var(--gold-text); }
.form-alert--info .form-alert__title,
.form-alert--success .form-alert__title,
.form-alert--warning .form-alert__title { color: var(--navy); }

.form-alert a {
    color: var(--navy);
    font-weight: 600;
}

/* Validation summary list rendered by asp-validation-summary. */
.form-alert .validation-summary-errors ul,
.form-alert .validation-summary-valid ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.form-alert .validation-summary-valid {
    display: none;
}

.form-alert__reference {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.form-alert__reference strong {
    font-family: var(--font-display);
    color: var(--navy);
    letter-spacing: 0.02em;
}

/* Inline list with check marks (documents requirements). */
.check-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.check-list .icon {
    margin-top: 0.2rem;
    color: var(--navy);
}

/* --- Progress ------------------------------------------------ */
/* Fill is navy (not gold) so the bar itself reaches 3:1 against the
   track (WCAG 1.4.11); a gold cap keeps the brand accent. */
.form-progress {
    margin-bottom: 1.75rem;
}

.form-progress__track {
    position: relative;
    height: 0.5rem;
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
}

.form-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--navy) calc(100% - 0.5rem), var(--gold) 0);
    border-radius: inherit;
    transition: width 0.4s ease;
}

/* Native <progress> (registration: value rendered by the server, no
   inline style and no script needed). */
.form-progress__native {
    display: block;
    width: 100%;
    height: 0.5rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    overflow: hidden;
    background: var(--paper-2);
    color: var(--navy);
    -webkit-appearance: none;
    appearance: none;
}

.form-progress__native::-webkit-progress-bar {
    background: var(--paper-2);
}

.form-progress__native::-webkit-progress-value {
    background: linear-gradient(90deg, var(--navy) calc(100% - 0.5rem), var(--gold) 0);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.form-progress__native::-moz-progress-bar {
    background: linear-gradient(90deg, var(--navy) calc(100% - 0.5rem), var(--gold) 0);
    border-radius: 999px;
}

.form-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.form-progress__percentage {
    font-weight: 600;
    color: var(--navy);
}

/* --- Step indicator (registration) -------------------------- */
.step-indicator {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.step-indicator .step {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.step-indicator .step-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid var(--field-border);
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.step-indicator .step-number .icon {
    font-size: 1rem;
}

.step-indicator .step-title {
    max-width: 9rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Connector drawn from each step to the next one. */
.step-indicator .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.125rem;
    left: calc(50% + 1.375rem);
    right: calc(-50% + 1.375rem);
    height: 2px;
    background: var(--rule);
}

.step-indicator .step--completed .step-number {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--paper);
}

.step-indicator .step--completed .step-title {
    color: var(--navy);
}

.step-indicator .step--completed:not(:last-child)::after {
    background: var(--navy);
}

.step-indicator .step--active .step-number {
    border-color: var(--navy);
    color: var(--navy);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 45%, transparent);
}

.step-indicator .step--active .step-title {
    border-bottom-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
}

@media (max-width: 520px) {
    .step-indicator .step-title {
        display: none; /* chips only; the screen-reader text stays */
    }
    .step-indicator .step-number {
        width: 2rem;
        height: 2rem;
    }
    .step-indicator .step:not(:last-child)::after {
        top: 1rem;
        left: calc(50% + 1.25rem);
        right: calc(-50% + 1.25rem);
    }
}

/* Current step label shown under the chips on phones. */
.step-indicator__current {
    display: none;
    margin: -1.25rem 0 1.5rem;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 520px) {
    .step-indicator__current { display: block; }
}

/* --- Fieldset blocks ---------------------------------------- */
.form-card .form-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--rule);
    background: var(--paper);
}

.form-card .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-2);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
}

.form-card .section-number {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
}

.form-card .section-number .icon {
    font-size: 0.95rem;
}

.form-card .section-body {
    padding: 1.25rem 1.25rem 0.5rem;
}

.form-card .section-description {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.form-card .section-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.form-card .section-note .icon {
    margin-top: 0.2rem;
    color: var(--navy);
}

/* --- Layout -------------------------------------------------- */
.form-card .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.125rem;
}

.form-card .form-row--single {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 641px) {
    .form-card .form-row--single > .form-group {
        max-width: calc(50% - 0.625rem);
    }
}

@media (max-width: 640px) {
    .form-card .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

.form-card .form-group {
    position: relative; /* keeps the visually hidden file input next to its zone */
    min-width: 0;
}

/* --- Labels, inputs ----------------------------------------- */
.form-card .form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Gold-text asterisk: 6.2:1 on paper (raw gold would be 1.6:1). */
.form-card .form-label.required::after {
    content: " *";
    color: var(--gold-text);
    font-weight: 700;
}

.form-card .form-control,
.form-card .form-select {
    display: block;
    width: 100%;
    min-height: 2.75rem; /* 44px touch target */
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--field-border);
    border-radius: 4px;
    background-color: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px: no zoom-on-focus on iOS */
    line-height: 1.4;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-card textarea.form-control {
    min-height: 5.5rem;
}

.form-card .form-control::placeholder {
    color: var(--muted);
    opacity: 1;
}

.form-card .form-control:hover,
.form-card .form-select:hover {
    border-color: var(--navy-2);
}

/* Visible focus: navy outline + soft gold halo (F30). */
.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--navy);
    outline: 2px solid var(--navy);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent);
}

.form-card .form-control.is-invalid,
.form-card .form-select.is-invalid,
.form-card .input-validation-error {
    border-color: var(--error);
    box-shadow: inset 3px 0 0 var(--error);
}

/* Custom chevron for selects (shared with the Contact form's .form-select). */
.form-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162856' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
}

.form-card .form-select {
    padding-right: 2.5rem;
}

.form-card .form-text {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.form-card .form-text--success {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--success);
    font-weight: 600;
}

/* Suffix (e.g. "/20" after the average). */
.form-card .input-group {
    display: flex;
    width: 100%;
}

.form-card .input-group .form-control {
    flex: 1;
    min-width: 0;
    border-radius: 4px 0 0 4px;
}

.form-card .input-group-text {
    display: inline-flex;
    align-items: center;
    padding: 0 0.875rem;
    border: 1px solid var(--field-border);
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: var(--paper-2);
    color: var(--navy);
    font-weight: 600;
}

/* Validation messages (server tag helper, jQuery unobtrusive, page scripts). */
.form-card .text-danger,
.form-card .field-validation-error {
    display: block;
    margin-top: 0.3rem;
    color: var(--error);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.form-card .text-danger:empty,
.form-card .field-validation-valid {
    display: none;
}

/* --- File upload zones -------------------------------------- */
/* The real <input type="file"> stays focusable but visually hidden; the
   zone is its <label for>, so Enter/Space and click open the dialog. */
.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload-zone {
    display: block;
    padding: 1.5rem 1rem;
    border: 2px dashed var(--field-border);
    border-radius: 4px;
    background: var(--paper-2);
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--navy);
    background: var(--paper);
}

.file-upload-zone.has-files {
    border-style: solid;
    border-color: var(--navy);
    background: var(--paper);
}

.file-upload-zone.is-invalid {
    border-style: solid;
    border-color: var(--error);
}

.file-input-hidden:focus-visible + .file-upload-zone,
.file-input-hidden:focus + .file-upload-zone {
    border-color: var(--navy);
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.file-upload-zone .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.file-upload-zone .upload-content > span {
    display: block;
}

.file-upload-zone .upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 1.25rem;
}

.file-upload-zone .upload-text {
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.file-upload-zone .upload-hint {
    color: var(--muted);
    font-size: 0.8125rem;
}

.file-upload-zone .upload-formats {
    margin-top: 0.25rem;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.file-preview {
    margin-top: 0.625rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.file-preview:empty {
    display: none;
}

.file-preview-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--paper-2);
}

.file-preview-item .file-name {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.file-preview .remove-file {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--field-border);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.8125rem;
    cursor: pointer;
}

.file-preview .remove-file:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* --- Certification (Bourses) -------------------------------- */
.certification-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.certification-item {
    padding: 0.875rem 1rem;
    border: 1px solid var(--rule);
    background: var(--paper-2);
}

.form-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-card .form-check-input {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--navy);
    cursor: pointer;
}

.form-card .form-check-label {
    color: var(--ink);
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
}

.signature-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.875rem;
}

.signature-date strong {
    color: var(--navy);
    font-weight: 600;
}

.signature-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.signature-note .icon {
    color: var(--gold-text);
}

/* --- Actions ------------------------------------------------- */
/* Outlined secondary button (save draft, previous step). */
.btn--outline {
    border-color: var(--navy);
    background: transparent;
    color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--paper);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.form-actions .btn {
    min-height: 2.75rem;
}

.form-actions__spacer {
    flex: 1;
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .form-actions .btn {
        width: 100%;
    }
    .form-actions__spacer {
        display: none;
    }
}

.draft-status {
    flex-basis: 100%;
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.draft-status:empty {
    display: none;
}

.draft-status--success { color: var(--success); }
.draft-status--error { color: var(--error); }

/* --- Reduced motion / print --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .form-progress__fill,
    .form-progress__native::-webkit-progress-value,
    .criteria-card,
    .file-upload-zone,
    .step-indicator .step-number,
    .form-card .form-control,
    .form-card .form-select {
        transition: none !important;
    }
    .criteria-card:hover {
        transform: none;
    }
}

@media print {
    .form-card {
        border-color: #000;
    }
    .form-card::before,
    .form-progress,
    .step-indicator,
    .form-actions,
    .hero-editorial,
    .numbers-strip,
    .cta-band,
    .breadcrumb {
        display: none !important;
    }
    .form-card .form-section {
        break-inside: avoid;
        border-color: #999;
    }
    .form-card .section-title {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* === About page ===
   Editorial page-scoped styles for the redesigned About / L'institut view.
   All values use design tokens (--ink, --navy, --paper, --paper-2, --rule,
   --gold, --muted, --font-display, --font-body). No hex literals. */

.about-section {
    margin-top: clamp(2.5rem, 6vw, 4.25rem);
}

.about-section:first-of-type {
    margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

/* Eyebrow label — small uppercase tag that sits above section headings. */
.about-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navy);
    font-weight: 600;
    margin: 0 0 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.about-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: 1px;
    background: var(--gold);
}

/* Editorial lead paragraph below an h2. */
.about-lead {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 60ch;
    margin: 0.75rem 0 2rem;
}

/* Long-form body: paragraphs stacked, first one slightly larger. */
.about-body {
    max-width: 68ch;
    color: var(--ink);
    font-family: var(--font-body);
}

.about-body p {
    line-height: 1.7;
    font-size: 1rem;
    margin: 0 0 1.1rem;
}

.about-body__lead {
    font-size: 1.1rem !important;
    color: var(--ink);
}

/* --- Mission grid: Vision + Mission side by side --- */
.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    margin: 0.5rem 0 2.5rem;
}

@media (max-width: 760px) {
    .about-mission-grid {
        grid-template-columns: 1fr;
    }
}

.about-mission-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--navy);
    border-radius: 4px;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-mission-card:nth-child(2) {
    border-top-color: var(--gold);
}

.about-mission-card:hover {
    transform: translateY(-3px);
    border-color: var(--navy);
}

.about-mission-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.about-mission-card:nth-child(2) .about-mission-card__icon {
    color: var(--gold);
}

.about-mission-card__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.005em;
}

.about-mission-card__body {
    font-family: var(--font-body);
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.98rem;
    margin: 0;
}

.about-mission-card__pill {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.85rem;
    border-left: 3px solid var(--gold);
    background: var(--paper-2);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
}

/* --- Motto blockquote --- */
.about-motto {
    margin: 2rem 0 0;
    padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
    border-left: 3px solid var(--gold);
    background: var(--paper-2);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.about-motto__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    color: var(--ink);
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.about-motto__cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.88rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Values: 3-card grid with numbered chrome --- */
.about-values {
    border-top: 1px solid var(--rule);
    padding-top: clamp(2rem, 5vw, 3rem);
}

.about-values__motto {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--navy);
    margin: 0.25rem 0 2rem;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (max-width: 880px) {
    .about-values-grid {
        grid-template-columns: 1fr;
    }
}

.about-value-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-value-card:hover {
    border-color: var(--navy);
    transform: translateY(-3px);
}

.about-value-card__number {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold-text);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.about-value-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.about-value-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.005em;
}

.about-value-card__body {
    font-family: var(--font-body);
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

/* --- Advantages: editorial list, icon + body, divider rules between rows --- */
.about-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}

@media (max-width: 720px) {
    .about-advantages-list {
        grid-template-columns: 1fr;
    }
}

.about-advantage {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.1rem;
    align-items: start;
    padding: 1.5rem clamp(0.5rem, 1.5vw, 1.25rem) 1.5rem 0;
    border-bottom: 1px solid var(--rule);
}

/* Right column gets a vertical rule on wide layouts. */
@media (min-width: 721px) {
    .about-advantage:nth-child(2n) {
        padding-left: clamp(1rem, 2vw, 1.75rem);
        border-left: 1px solid var(--rule);
    }
}

.about-advantage__icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--navy);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-advantage__body {
    min-width: 0;
}

.about-advantage__title {
    margin: 0 0 0.5rem !important;
    font-size: 1.15rem !important;
    color: var(--ink) !important;
}

.about-advantage__body p {
    font-family: var(--font-body);
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.about-advantage__feature {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem !important;
    background: color-mix(in srgb, var(--gold) 12%, var(--paper));
    border-radius: 999px;
    font-size: 0.85rem !important;
    font-weight: 600;
    color: var(--navy) !important;
    margin: 0 !important;
}

.about-advantage__feature .icon {
    color: var(--gold);
    font-size: 0.85rem;
}

/* === Legal pages ===
   Shared editorial chrome for Legal / Privacy / Terms — text-heavy documents
   that benefit from a narrow reading width, generous whitespace and an
   editorial section heading style. Uniform across the three pages so each
   feels like a chapter of the same booklet rather than three bespoke views.
   All values use design tokens (--ink, --navy, --paper, --paper-2, --rule,
   --gold, --muted, --font-display, --font-body). No hex literals. */

.legal-container {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
    padding-top: clamp(1.5rem, 4vw, 2.75rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.legal-doc {
    color: var(--ink);
    font-family: var(--font-body);
}

/* Meta header — sits above the first section as a hairline-bordered
   "last updated" line. Small, deliberate, never shouty. */
.legal-doc__meta {
    padding: 0.85rem 0 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.legal-doc__updated {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.legal-doc__updated strong {
    color: var(--navy);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin-right: 0.4rem;
}

/* Section wrapper — generous vertical rhythm. Numbered headings (the resx
   values already start "1. ", "2. " etc.) carry the document's outline. */
.legal-section {
    margin-top: clamp(2rem, 4.5vw, 3rem);
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.legal-section:first-of-type {
    margin-top: 0;
}

.legal-section__heading {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--rule);
}

/* Body copy — long-form reading. Slightly looser leading than the marketing
   pages because legal text is denser and visited rarely. */
.legal-section__body {
    color: var(--ink);
}

.legal-section__body p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1rem;
}

.legal-section__body p:last-child {
    margin-bottom: 0;
}

.legal-section__body strong {
    color: var(--navy);
    font-weight: 600;
}

.legal-section__body a {
    color: var(--navy-2);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease;
}

.legal-section__body a:hover {
    color: var(--navy);
    text-decoration-thickness: 2px;
}

.legal-section__body ul,
.legal-section__body ol {
    margin: 0.25rem 0 1.1rem;
    padding-left: 1.4rem;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
}

.legal-section__body ul {
    list-style: none;
    padding-left: 0;
}

.legal-section__body ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.55rem;
}

.legal-section__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.45rem;
    height: 1px;
    background: var(--gold);
}

.legal-section__body ol li {
    margin-bottom: 0.55rem;
}

.legal-section__body ul ul,
.legal-section__body ol ol {
    margin: 0.4rem 0 0.6rem;
}

/* Inline contact block — kept compact and quietly emphasised. */
.legal-section__body address {
    font-style: normal;
    line-height: 1.7;
    padding: 0.9rem 1.1rem;
    background: var(--paper-2);
    border-left: 2px solid var(--gold);
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    color: var(--ink);
}

.legal-section__body address strong {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: var(--navy);
}


/* ===========================================================
   Formation — grouped sections + sticky section nav
   Spec: docs/superpowers/specs/2026-06-02-formation-pages-redesign-and-l10n-design.md
   =========================================================== */

/* Allow anchor jumps to clear the fixed site header. */
html {
    scroll-padding-top: calc(var(--header-height, 80px) + 0.75rem);
}

.formation-grouped {
    /* The three middle sections + their nav form one visual block. */
    margin: 2.5rem 0;
}

.formation-section-nav {
    position: sticky;
    top: var(--header-height, 80px);
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid rgba(22, 40, 86, 0.08);
    margin: 0 0 1.5rem 0;
}

.formation-section-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.formation-section-nav__list::-webkit-scrollbar {
    display: none;
}

.formation-section-nav__link {
    display: inline-block;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #1e4a78;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 120ms ease, border-color 120ms ease;
}

.formation-section-nav__link:hover,
.formation-section-nav__link:focus-visible {
    color: #162856;
    border-bottom-color: rgba(248, 189, 12, 0.5);
}

.formation-section-nav__link[aria-current="true"] {
    color: #162856;
    border-bottom-color: #f8bd0c;
}

/* Tighten spacing on the three grouped sections so they read as one block. */
.formation-section--grouped {
    scroll-margin-top: calc(var(--header-height, 80px) + 3.5rem);
    margin-top: 1.75rem;
}

.formation-section--grouped:first-of-type {
    margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    .formation-section-nav {
        display: none;
    }
    .formation-section--grouped {
        margin-top: 1.5rem;
    }
}


/* ============================================================
   Cookie consent banner (markup in Pages/Shared/_Layout.cshtml;
   shown/hidden by initCookieConsent() in ui.js)
   ============================================================ */
.cookie-consent {
    position: fixed !important;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: var(--navy) !important;
    color: #fff !important;
    border-top: 3px solid var(--gold);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(12, 26, 58, 0.25);
    font-family: var(--font-body);
}

/* Starts hidden (hidden attribute in _Layout, no inline style: CSP F07); ui.js toggles it. */
.cookie-consent[hidden] {
    display: none !important;
}

/* Honeypot field (Pages/Shared/Components/_Honeypot.cshtml): off-screen for humans,
   still in the DOM for bots. Was an inline style attribute before F07. */
.ispmm-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cookie-consent .cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cookie-consent .cookie-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #fff;
}

.cookie-consent .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.cookie-consent__link {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__link:hover {
    color: var(--gold);
}

.cookie-consent__accept {
    padding: 0.5rem 1.25rem;
    background: var(--gold);
    color: var(--ink);
    border: 0;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
}

.cookie-consent__accept:hover {
    background: #ffd04a;
}

.cookie-consent__link:focus-visible,
.cookie-consent__accept:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (min-width: 640px) {
    .cookie-consent .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .cookie-consent .cookie-actions {
        flex-shrink: 0;
    }
}


/* ============================================================
   Back-to-top button (markup in Pages/Shared/_Layout.cshtml;
   .is-visible toggled by initBackToTop() in ui.js)
   ============================================================ */
.btn-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(12, 26, 58, 0.3);
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
}

.btn-back-to-top.is-visible {
    display: inline-flex;
}

.btn-back-to-top:hover {
    background: var(--navy-2, #1e4a78);
    transform: translateY(-3px);
}

.btn-back-to-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-back-to-top,
    .btn-back-to-top:hover {
        transition: none;
        transform: none;
    }
}

/* Custom status page (404 and other empty error responses, F35) */
.status-page {
    max-width: 40rem;
}
.status-page__code {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 1;
    color: var(--gold-text);
    margin: 0 0 1rem;
}
.status-page__lead {
    color: var(--muted);
    margin: 1rem 0 2rem;
}
.status-page__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}
.status-page__links a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
