/* Shams Djazair — Carrières. Built from the approved artboards (Main, Offre, Candidature, Confirmation).
   Values are the design's inline styles; colours and fonts come from ds/shamsdjazair/tokens.css. */

@font-face {
  font-family: "Fractul Alt";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/FractulAlt-Bold.woff2) format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Montserrat-latin.woff2) format("woff2");
}

:root {
  /* brand tokens (tokens.css) */
  --sd-navy: #192e45;
  --sd-navy-900: #101f31;
  --sd-navy-700: #213a55;
  --sd-navy-600: #3a5168;
  --sd-navy-400: #6e8196;
  --sd-navy-200: #b9c3cd;
  --sd-navy-100: #dce2e8;
  --sd-navy-050: #eef1f4;
  --sd-chartreuse: #e0ff04;
  --sd-purple: #4222e5;
  --sd-white: #ffffff;
  --text-strong: var(--sd-navy);
  --text-body: #34465a;
  --text-secondary: var(--sd-navy-600);
  --text-on-dark-muted: #9fb0c2;
  --footer-link: #c9d4df;
  --surface-field: var(--sd-navy-050);
  --focus-ring: #4222e5;
  --error: #b3261e;
  --error-bg: #fcebea;
  --success: #1e7b53;
  --success-bg: #e5f4ec;
  --warning: #9a5b00;
  --warning-bg: #fff4e0;
  --font-display: "Fractul Alt", Montserrat, sans-serif;
  --font-body: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* layout */
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-field: 16px;
  --radius-card: 20px;
  --radius-block: 28px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--sd-white); color: var(--text-body); font-family: var(--font-body); font-size: 16px; line-height: normal; }
img, video, svg { display: block; }
svg.icon { flex: none; }
a { color: var(--text-strong); }
a:hover { color: var(--text-secondary); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-pill); background: var(--sd-navy); color: var(--sd-white); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--sd-white); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  background: var(--sd-navy); color: var(--sd-white); border: 2px solid var(--sd-navy);
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--sd-navy-700); border-color: var(--sd-navy-700); color: var(--sd-white); }
.btn--sm { height: 44px; padding: 0 20px; }
.btn--lg { height: 56px; padding: 0 32px; }
.btn--outline { background: transparent; color: var(--sd-navy); }
.btn--outline:hover { background: var(--sd-navy-050); color: var(--sd-navy); border-color: var(--sd-navy); }
.btn--danger { background: var(--error); border-color: var(--error); }
.btn--danger:hover { background: #8c1d17; border-color: #8c1d17; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--sd-navy-200); border-color: var(--sd-navy-200); color: var(--sd-white); cursor: not-allowed; }

/* ---------- header ---------- */
.site-header { background: var(--sd-white); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 44px; min-height: 84px; }
.site-header__logo { display: flex; }
.site-header__logo img { height: 40px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; flex: 1 1 auto; }
.main-nav a { padding: 12px 2px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text-strong); }
.main-nav a:hover { color: var(--text-secondary); }

/* mobile menu (as the main site: round button, panel from the right) */
.burger { display: none; }
.drawer { display: none; }
@media (max-width: 900px) {
  .main-nav, .site-header__cta { display: none; }
  .site-header__inner { flex-wrap: nowrap; justify-content: space-between; min-height: 76px; }
  .burger {
    display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px;
    border-radius: var(--radius-pill); border: 1.5px solid var(--sd-navy-200); color: var(--sd-navy);
  }
  .burger:hover { border-color: var(--sd-navy); }
  .burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .burger__lines { position: relative; }
  .burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
  .burger__lines::before { top: -6px; }
  .burger__lines::after { top: 6px; }
  .drawer[open], .drawer:target {
    display: block; position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: rgba(16, 31, 49, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .drawer::backdrop { background: transparent; }
  .drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 400px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px; padding: 22px 26px 40px 28px;
    background: var(--sd-navy-900); border-left: 3px solid var(--sd-chartreuse); animation: drawer-in .25s ease-out;
  }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
  .drawer__close {
    align-self: flex-end; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: var(--radius-pill); border: 1.5px solid rgba(255, 255, 255, .25); color: var(--sd-white);
  }
  .drawer__close:hover { color: var(--sd-chartreuse); border-color: var(--sd-chartreuse); }
  .drawer__nav { display: flex; flex-direction: column; }
  .drawer__nav a {
    padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-display); font-weight: 700;
    font-size: 24px; line-height: 1.15; color: var(--sd-white); text-decoration: none;
  }
  .drawer__nav a:hover, .drawer__nav a[aria-current="page"] { color: var(--sd-chartreuse); }
  .drawer__cta {
    display: flex; align-items: center; justify-content: center; height: 54px; border-radius: var(--radius-pill);
    background: var(--sd-chartreuse); color: var(--sd-navy); font-size: 17px; font-weight: 700; text-decoration: none;
  }
  .drawer__cta:hover { color: var(--sd-navy); background: #ebff5c; }
  .drawer :focus-visible { outline-color: var(--sd-chartreuse); }
}

/* ---------- type ---------- */
.title {
  margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  color: var(--text-strong); text-align: center; text-wrap: balance; font-size: clamp(2.5rem, 4.6vw, 3.75rem);
}
.title__accent { color: var(--sd-purple, #4222e5); }
.title--job { font-size: clamp(2.25rem, 4.2vw, 3.5rem); max-width: 20ch; }
.title--apply { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 24ch; }
/* Application form heading: a quiet lead-in line, then the job title at a readable size. */
.title__kicker {
  display: block; margin-bottom: 12px; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--text-secondary);
}
.title__job { display: block; font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 26ch; margin: 0 auto; }
@media (max-width: 600px) { .title__kicker { font-size: 13px; margin-bottom: 10px; } }
.h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  color: var(--text-strong); font-size: clamp(2rem, 3.4vw, 2.75rem);
}
.h2--center { letter-spacing: -0.02em; line-height: 1.08; text-align: center; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; font-size: 28px; color: var(--text-strong); }
.lead { margin: 0; font-size: 20px; line-height: 1.6; text-align: center; color: var(--text-secondary); text-wrap: pretty; }
.lead--strong { color: var(--text-strong); font-weight: 500; }
.text-lg { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.text-center { text-align: center; }
.label-strong { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--text-strong); }

.stack-center { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stack-center--lg { gap: 24px; }
.stack-center--md, .stack-center--apply { gap: 20px; }

.meta { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.meta > span { display: inline-flex; align-items: center; gap: 10px; }
.meta--center { align-items: center; gap: 8px; font-size: 16px; }

/* ---------- list page ---------- */
.hero { padding: 72px 0 0; }
.hero--job { padding: 72px 0 56px; }
.jobs { padding: 56px 0 96px; }
.jobs__inner { display: flex; flex-direction: column; gap: 32px; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row > .field, .filters > .field { flex: 1 1 260px; }
.field > label, .field-label { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.filters > .field--place { flex: 0 1 280px; }
.filters > .field--search { flex: 999 1 320px; }
.row > .field--prefix { flex: 0 1 140px; }
.row > .field--lang { flex: 1 1 200px; }

.input {
  width: 100%; height: 60px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--radius-field);
  background: var(--surface-field); font: inherit; font-size: 16px; font-weight: 500; color: var(--text-strong);
}
.input::placeholder { color: var(--sd-navy-400); opacity: 1; }
.input:hover { border-color: var(--sd-navy-200); }
.input:focus { border-color: var(--sd-navy); outline: none; }
.input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.input--area { height: auto; padding: 16px 20px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 52px; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
input[type="search"].input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.select-wrap, .search-wrap { position: relative; display: block; }
.select-wrap > svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-strong); }
.search-wrap .input { padding-right: 56px; }
.search-wrap > svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-strong); }

.jobs__layout { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.team-filter { flex: 0 1 240px; display: flex; flex-direction: column; gap: 8px; }
.team-filter ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.team-filter a { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.team-filter a:hover { color: var(--text-strong); text-decoration: underline; text-underline-offset: 4px; }
.team-filter a[aria-current="true"] { font-weight: 700; color: var(--text-strong); }
.jobs__list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px;
  background: var(--surface-field); border-radius: var(--radius-card); text-decoration: none; transition: background-color .15s ease;
}
.job-card:hover { background: var(--sd-navy-100); }
.job-card__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.job-card__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--text-strong); }
.job-card__arrow { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--sd-navy); color: var(--sd-white); }

.empty-state { padding: 26px 28px; background: var(--surface-field); border-radius: var(--radius-card); font-size: 15px; color: var(--text-secondary); }
.empty-state p { margin: 0; }
.empty-state__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--text-strong); margin-bottom: 8px !important; }
.empty-state a, .spontaneous a { font-weight: 700; }
.spontaneous { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); padding: 8px 4px 0; text-wrap: pretty; }

/* testimonial */
.testimonial-section { padding: 0 0 96px; }
.testimonial {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(40px, 5vw, 72px);
  padding-top: 64px; padding-bottom: 64px; background: var(--surface-field); border-radius: var(--radius-block);
}
.video-trigger { position: relative; flex: 0 1 440px; min-width: 0; display: block; border-radius: var(--radius-card); overflow: hidden; }
.video-trigger img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
/* Play button: lighter and below the face, so the face stays visible. */
.video-trigger__play {
  position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: var(--radius-pill); background: rgba(224, 255, 4, .62); color: var(--sd-navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; transition: transform .15s ease, background-color .15s ease;
}
.video-trigger:hover .video-trigger__play, .video-trigger:focus-visible .video-trigger__play { transform: translate(-50%, -50%) scale(1.06); background: var(--sd-chartreuse); }
.video-trigger__time { position: absolute; right: 16px; bottom: 16px; padding: 5px 10px; border-radius: 8px; background: rgba(16, 31, 49, .85); font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--sd-white); }
.testimonial__text { flex: 0 1 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
/* Stacked (tablet, phone): video and text share one column with the same left edge and width. */
@media (max-width: 900px) {
  .testimonial { flex-direction: column; align-items: center; }
  .video-trigger, .testimonial__text { flex: none; width: 100%; max-width: 480px; }
}

.video-modal {
  padding: 0; border: 0; border-radius: var(--radius-card); background: #000; overflow: visible;
  width: min(92vw, calc(88vh * 9 / 16)); width: min(92vw, calc(88dvh * 9 / 16)); max-width: 460px; aspect-ratio: 9 / 16; max-height: 88dvh;
}
.video-modal::backdrop { background: rgba(16, 31, 49, .88); }
.video-modal video { width: 100%; height: 100%; border-radius: var(--radius-card); background: #000; object-fit: contain; }
.video-modal__close {
  position: absolute; top: -56px; right: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill); border: 0; background: var(--sd-white); color: var(--sd-navy); cursor: pointer;
}
.video-modal__close:hover { background: var(--sd-chartreuse); }
@media (max-height: 640px) { .video-modal__close { top: 8px; right: 8px; } }

/* values */
.values { padding: 0 0 24px; }
.values__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.values__head { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 680px; }
.values__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px; align-self: stretch; }
.values__list li { box-sizing: content-box; /* as the artboard: 200px + padding, so 3 + 1 at 1440px */ flex: 1 1 200px; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface-field); border-radius: var(--radius-card); }
.values__list h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; font-size: 22px; color: var(--text-strong); }
.values__list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.values__icon { display: flex; color: var(--text-strong); }

/* benefits */
.benefits { padding: 96px 0; }
.benefits__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.benefits__text { flex: 1 1 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--text-strong); }
.checklist__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--sd-navy); color: var(--sd-white); }
.benefits__media { flex: 1 1 380px; min-width: 0; display: block; }
.benefits__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; border-radius: var(--radius-card); }

/* ---------- job page ---------- */
.job-article { max-width: 960px; display: flex; flex-direction: column; gap: 44px; padding-bottom: 72px; }
.job-article > section { display: flex; flex-direction: column; gap: 16px; }
.job-article p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.bullets { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--text-body); }
.notice { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; background: var(--surface-field); border-radius: var(--radius-card); }
.notice p { font-size: 15px; }
.notice .notice__title { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.job-article__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.status-closed {
  margin: 0; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--warning-bg); color: var(--warning); font-size: 15px; font-weight: 700;
}
.legal h2 { font-size: 24px; }
.legal .small-print { color: var(--text-secondary); }

/* ---------- application form ---------- */
.apply { padding: 72px 0 96px; }
.apply-closed { max-width: 760px; margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.apply-closed p { margin: 0; }
.apply-form { max-width: 760px; margin-top: 64px; display: flex; flex-direction: column; gap: 52px; }
.apply-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.apply-form legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--text-strong); }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row--end { align-items: flex-start; }
.hint { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.field-error { margin: 0; display: flex; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--error); }
.field-error::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--error) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5M8 11.5v.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.cv-field { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cv-field__label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.file-btn { position: relative; }
.file-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.cv-field.is-invalid .file-btn { box-shadow: 0 0 0 2px var(--sd-white), 0 0 0 4px var(--error); }
.cv-file { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; padding: 14px 16px 14px 18px; background: var(--surface-field); border-radius: var(--radius-field); }
.cv-file__icon { display: flex; color: var(--text-strong); }
.cv-file__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cv-file__name { font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-file__size { font-size: 14px; color: var(--text-secondary); }
.cv-file__remove { flex: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--sd-navy); border-radius: var(--radius-pill); background: transparent; color: var(--sd-navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cv-file__remove:hover { background: var(--sd-white); }

.apply-form__end { display: flex; flex-direction: column; gap: 24px; }
.consent { display: flex; flex-direction: column; gap: 8px; }
.checkbox { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; font-size: 15px; line-height: 1.5; color: var(--text-body); cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--sd-navy); cursor: pointer; }
.checkbox input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.checkbox a { font-weight: 600; }
.small-print { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.apply-form__submit { display: flex; justify-content: center; padding-top: 12px; }
.form-alert { margin: 0; padding: 16px 20px; border-radius: var(--radius-field); background: var(--error-bg); color: var(--error); font-weight: 600; }
.grecaptcha-badge { visibility: hidden !important; }
.small-print a { color: inherit; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--sd-white); animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.btn.is-loading { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- confirmation / simple pages ---------- */
.confirmation { flex: 1; padding: 88px 0 240px; }
.confirmation__cta { padding-top: 20px; }
.gate-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; padding-top: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--sd-navy); color: var(--text-on-dark-muted); padding: 72px 0 40px; margin-top: auto; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; flex: 1 1 280px; }
.site-footer__brand img { height: 44px; width: auto; align-self: flex-start; }
.site-footer__brand p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 36ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; flex: 0 1 220px; font-size: 15px; }
.site-footer__contact { flex: 0 1 320px; line-height: 1.5; }
.site-footer__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--sd-white); }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { color: var(--sd-white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--sd-chartreuse); }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.site-footer__bottom a { color: var(--text-on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- phone and tablet: tighter rhythm, team filter as chips ---------- */
@media (max-width: 900px) {
  .jobs__layout { flex-direction: column; gap: 24px; }
  .team-filter { flex: none; gap: 12px; }
  .team-filter ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .team-filter a {
    min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--surface-field);
    font-size: 15px; color: var(--text-strong); white-space: nowrap;
  }
  .team-filter a:hover { text-decoration: none; background: var(--sd-navy-100); }
  .team-filter a[aria-current="true"] { background: var(--sd-navy); color: var(--sd-white); }
  .jobs__list { flex: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 24px; }
  .hero--job { padding: 24px 0 40px; }
  .stack-center { gap: 12px; }
  .stack-center--lg { gap: 20px; }
  .lead { font-size: 18px; }
  .jobs { padding: 32px 0 64px; }
  .jobs__inner { gap: 24px; }
  .job-card { padding: 22px 20px; gap: 16px; }
  .job-card__title { font-size: 21px; }
  .job-card__arrow { width: 44px; height: 44px; }
  .testimonial-section { padding-bottom: 64px; }
  .testimonial { padding-top: 32px; padding-bottom: 40px; gap: 28px; border-radius: 24px; }
  .values__inner { gap: 28px; }
  .values__list { gap: 14px; }
  .values__list li { padding: 24px; }
  .benefits { padding: 64px 0; }
  .benefits__inner { gap: 36px; }
  .job-article { gap: 36px; padding-bottom: 56px; }
  .apply { padding: 24px 0 72px; }
  .apply-form { margin-top: 40px; gap: 40px; }
  .confirmation { padding: 48px 0 120px; }
  .site-footer { padding-top: 56px; }
  .site-footer__bottom { margin-top: 36px; }
}

/* ---------- admin ---------- */
.admin { background: #f4f5f3; }
.admin-bar { background: var(--sd-navy); color: var(--sd-white); }
.admin-bar__inner { max-width: 1440px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.admin-bar__logo { display: flex; align-items: center; gap: 14px; color: var(--sd-white); text-decoration: none; font-weight: 700; }
.admin-bar__logo:hover { color: var(--sd-chartreuse); }
.admin-bar :focus-visible { outline-color: var(--sd-chartreuse); }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.admin-nav a, .admin-nav__button { padding: 10px 2px; color: var(--sd-white); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.admin-nav a:hover, .admin-nav__button:hover { color: var(--sd-chartreuse); }
.admin-nav form { margin: 0; }
.admin-main { max-width: 1440px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-narrow { max-width: 520px; margin: 40px auto; }
.admin-h1 { margin: 0 0 16px; font-family: var(--font-display); font-size: 32px; line-height: 1.15; color: var(--text-strong); }
.admin-h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; color: var(--text-strong); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.admin-head .admin-h1 { margin: 0; }
.admin-count { display: inline-block; margin-left: 8px; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--sd-navy); color: var(--sd-white); font-family: var(--font-body); font-size: 16px; vertical-align: middle; }
.admin-flash { padding: 12px 16px; border-radius: 12px; background: var(--success-bg); color: var(--success); font-weight: 600; }
.admin-warn { padding: 12px 16px; border-radius: 12px; background: var(--warning-bg); color: var(--warning); font-weight: 600; }
.admin-warn a { color: inherit; }
.admin-empty { padding: 32px; background: var(--sd-white); border-radius: var(--radius-card); text-align: center; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 8px 0 20px; padding: 16px; background: var(--sd-white); border-radius: var(--radius-card); }
.admin-filters .field { flex: 0 1 260px; }
.admin-filters .field--grow { flex: 1 1 280px; }
.admin-filters .input, .admin-form .input:not(.input--area) { height: 48px; border-radius: 12px; }
.admin .input { background: var(--sd-white); border-color: var(--sd-navy-100); }
.admin .admin-filters .input { background: var(--surface-field); border-color: transparent; }
.table-wrap { overflow-x: auto; background: var(--sd-white); border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(16, 31, 49, .06); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sd-navy-100); }
.admin-table thead th { position: sticky; top: 0; background: var(--sd-navy-050); font-size: 13px; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.admin-table tbody th { font-weight: 700; }
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table a { display: inline-flex; align-items: center; gap: 4px; }
.nowrap { white-space: nowrap; }
.col-job { min-width: 240px; }
.col-name { min-width: 150px; }
.muted { color: var(--sd-navy-400); font-size: 13px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--sd-navy-050); color: var(--text-strong); }
.pill--nouvelle { background: #e8e4fd; color: #3415c7; }
.pill--en_cours, .pill--entretien { background: var(--warning-bg); color: var(--warning); }
.pill--retenue { background: var(--success-bg); color: var(--success); }
.pill--refusee { background: var(--sd-navy-100); color: var(--sd-navy-600); }
.admin-detail { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.admin-detail > * { flex: 1 1 380px; min-width: 0; }
.admin-dl { margin: 0; padding: 8px 20px; background: var(--sd-white); border-radius: var(--radius-card); }
.admin-dl > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--sd-navy-100); }
.admin-dl > div:last-child { border-bottom: 0; }
.admin-dl dt { flex: 0 0 180px; font-weight: 600; color: var(--text-secondary); font-size: 14px; }
.admin-dl dd { margin: 0; flex: 1 1 200px; color: var(--text-strong); overflow-wrap: anywhere; }
.admin-quote { margin: 0 0 24px; padding: 16px 20px; background: var(--sd-white); border-radius: var(--radius-card); white-space: normal; }
.admin-form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.admin-form > .field, .admin-form fieldset, .admin-form .row { width: 100%; }
.admin-form--wide { max-width: 900px; }
.admin-form fieldset { margin: 0 0 8px; padding: 20px; border: 0; border-radius: var(--radius-card); background: var(--sd-white); display: flex; flex-direction: column; gap: 16px; }
.admin-form legend { float: left; width: 100%; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-strong); }
.admin-form .row > .field { flex: 1 1 220px; }
.admin-radios { display: flex; flex-direction: column; gap: 4px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin-danger-link { margin-top: 24px; font-size: 14px; }
.admin-danger-link a { color: var(--error); }
