:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0b0e3a;          /* marine Spottt adouci */
  --ink-2: #464a6b;
  --ink-3: #8a8eaa;
  --line: #e2e4f0;
  --accent: #000dff;       /* bleu Spottt */
  --accent-ink: #ffffff;
  --accent-soft: #e8eaff;
  --green: #27cb8b;        /* vert Spottt */
  --navy: #000d8b;
  --danger: #c4261d;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.dot {
  display: inline-block;
  width: .42em; height: .42em;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  vertical-align: baseline;
}
.dot-big { width: 44px; height: 44px; border-radius: 6px; margin: 8px; box-shadow: 18px -18px 0 -6px var(--green); }

/* Barre du haut ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  --pad: clamp(20px, 5vw, 56px);
  padding: 14px max(var(--pad), calc((100% - 1240px) / 2 + var(--pad)));
  min-height: 62px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 16px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--navy); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.topbar .btn-small { opacity: 0; pointer-events: none; transition: opacity .2s; }
.topbar.scrolled .btn-small { opacity: 1; pointer-events: auto; }
.topbar.hide-cta .btn-small { opacity: 0; pointer-events: none; }
.topbar.scrolled { border-bottom-color: var(--line); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
  max-width: 1240px; margin: 0 auto;
}
.hero > :not(.hero-mark) { position: relative; z-index: 1; }
/* Motif du logo : deux losanges qui se chevauchent */
.hero-mark { position: absolute; right: calc(clamp(20px, 5vw, 56px) - 7px); top: clamp(90px, 12vw, 150px); width: 261px; height: 212px; pointer-events: none; }
.hero-mark span { position: absolute; border-radius: 18px; transform: rotate(45deg); }
.hero-mark span:first-child { left: 31px; top: 31px; width: 150px; height: 150px; background: var(--accent); }
.hero-mark span:last-child { left: 146px; top: 58px; width: 95px; height: 95px; background: var(--green); mix-blend-mode: multiply; }
.hero h1, .hero .lead { max-width: calc(100% - 300px); }
@media (max-width: 1020px) {
  .hero-mark { display: none; }
  .hero h1, .hero .lead { max-width: none; }
}
.eyebrow {
  margin: 0 0 18px;
  font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; }
h1 {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: .98; letter-spacing: -.045em; font-weight: 800;
}
h1 .muted { color: var(--accent); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 28px; padding: 0; list-style: none; }
.facts li {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 15px; color: var(--ink-2);
}
.facts strong { color: var(--ink); }
.lead { max-width: 760px; margin: 0 0 32px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); }

/* Mise en page ----------------------------------------------------------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px);
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) 80px;
  align-items: start;
}
.content section { padding: 40px 0; border-top: 1px solid var(--line); }
.content section:first-child { padding-top: 32px; }
h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
h2 .num { flex: none; font: 600 13px/1 var(--mono); color: var(--accent); }
h3 { margin: 28px 0 10px; font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.content p { margin: 0 0 14px; color: var(--ink-2); }

.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 10px 0 10px 26px; color: var(--ink-2); }
.list li + li { border-top: 1px dashed var(--line); }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 8px; height: 8px; border-radius: 1.5px; transform: rotate(45deg); background: var(--accent);
}
.list strong { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.cards li {
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.45; color: var(--ink-2);
}
.cards strong { display: block; margin-bottom: 4px; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.cards li { display: flex; flex-direction: column; }
.cards .logo { flex: none; display: flex; align-items: center; height: 36px; margin-bottom: 14px; }
.cards .logo img { display: block; height: 36px; width: auto; }
.cards .logo img.wide { height: 24px; margin-top: -4px; } /* compense le jambage du « y » */
.cards .tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; }
.cards .tile-dark { background: #1b286a; } /* fond Planexpo */
.cards .tile img { height: 22px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.callout { padding: 18px 20px; border-left: 3px solid var(--green); background: #e5f8f0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink) !important; }

.stack { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.stack dt, .stack dd { padding: 14px 0; border-top: 1px solid var(--line); }
.stack dt { font-weight: 700; }
.stack dd { margin: 0; color: var(--ink-2); }
.stack dt:first-of-type, .stack dd:first-of-type { border-top: 0; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 18px; font: 600 13px/1 var(--mono); color: var(--green); }
.steps strong { display: block; margin-bottom: 4px; }
@supports (grid-template-rows: subgrid) {
  .steps { grid-template-rows: repeat(2, auto auto 1fr); }
  .steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}
.steps span { font-size: 15px; color: var(--ink-2); }

/* Carte résumé (colonne de droite) ---------------------------------------- */
.summary { position: sticky; top: 96px; }
.summary-card {
  position: relative; overflow: hidden;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px -28px rgba(0, 13, 139, .3);
}
.summary-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.summary-kicker { margin: 0 0 6px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.summary-title { margin: 0 0 18px; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.summary-facts { margin: 0 0 22px; }
.summary-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.summary-facts dt { color: var(--ink-3); }
.summary-facts dd { margin: 0; font-weight: 600; }
.summary-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }

/* Section candidature ------------------------------------------------------ */
.apply {
  max-width: 1240px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 56px) 96px;
  scroll-margin-top: 72px;
}
.apply-head { max-width: 640px; margin-bottom: 28px; }
.apply-head h2 { display: block; margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.apply-head p:last-child { margin: 0; color: var(--ink-2); }

.form, .success {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 60px -32px rgba(0, 13, 139, .28);
}
.form::before, .success::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.form { --legend: 260px; --gap: 48px; padding: 8px clamp(20px, 4vw, 48px); }

.group { margin: 0; padding: 32px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.group:first-of-type { border-top: 0; }
.group::after { content: ""; display: table; clear: both; }
.group-head {
  float: left; width: var(--legend); padding: 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 700; letter-spacing: -.02em;
}
.group-num {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font: 700 13px/1 var(--mono);
}
.group-body { margin-left: calc(var(--legend) + var(--gap)); max-width: 680px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.row { margin-bottom: 18px; }
.row > .field { margin-bottom: 0; }
.group-body > :last-child { margin-bottom: 0; }
.field > label, .field > .label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 600; }
.opt { margin-left: 4px; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.help { margin: -2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.counter { margin: 6px 0 0; text-align: right; font: 12px/1 var(--mono); color: var(--ink-3); }

input[type="text"], input:not([type]), input[type="email"], input[type="tel"], input[type="url"], textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font: 16px/1.4 var(--font); color: var(--ink); /* 16px : pas de zoom auto sur iOS */
  transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select {
  width: 100%; min-height: 46px; padding: 11px 40px 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23464a6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px;
  font: 16px/1.4 var(--font); color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
select:invalid { color: var(--ink-3); }
select option { color: var(--ink); }
select:hover { border-color: #c9cce0; }
select:focus { outline: none; border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.invalid select { border-color: var(--danger); background-color: #fffafa; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, textarea:hover { border-color: #c9cce0; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Zone de dépôt du CV */
.drop {
  position: relative; display: flex; align-items: center; min-height: 92px; padding: 18px 20px;
  border: 1.5px dashed #c9cce0; border-radius: 12px; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:hover, .drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.drop-empty, .drop-file { display: flex; align-items: center; gap: 14px; width: 100%; font-size: 15px; color: var(--ink-2); }
.drop-empty { flex-wrap: wrap; justify-content: center; text-align: center; pointer-events: none; }
.drop-empty strong { color: var(--ink); }
.drop-empty u { color: var(--accent); text-underline-offset: 3px; }
.drop-hint { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.drop-icon { width: 24px; height: 24px; flex: none; color: var(--accent); }
.drop-file { display: none; }
.drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.drop[data-state="file"] { border-style: solid; border-color: var(--green); background: #effbf6; min-height: 64px; }
.drop[data-state="file"] .drop-empty { display: none; }
.drop[data-state="file"] .drop-file { display: flex; }
.drop[data-state="file"] .drop-icon { color: var(--green); }
.drop[data-state="file"] input { pointer-events: none; }
.link { position: relative; z-index: 1; padding: 4px 2px; border: 0; background: none; font: 600 14px var(--font); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--danger); }

/* Consentement + envoi */
.submit-area { margin-left: calc(var(--legend) + var(--gap)); max-width: 680px; padding: 28px 0 36px; border-top: 1px solid var(--line); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: 22px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.check .error { grid-column: 2; }

.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.invalid input, .invalid textarea { border-color: var(--danger); background: #fffafa; }
.invalid .drop { border-color: var(--danger); background: #fffafa; }
.error { display: flex; gap: 6px; margin: 7px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--danger); }
.error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: #fff; font: 700 11px/1 var(--font); }
.form-error { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #f3c4c0; border-radius: 12px; background: #fdf0ef; color: var(--danger); font-size: 14px; }
.form-error:focus { outline: none; }
.form-error p { margin: 0; }
.form-error ul { margin: 6px 0 0; padding-left: 18px; }
.form-error a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.success { max-width: 640px; margin: 0 auto; padding: 56px clamp(24px, 5vw, 56px); text-align: center; }
.success:focus { outline: none; }
.success-mark { position: relative; display: block; width: 84px; height: 64px; margin: 0 auto 8px; }
.success-mark span { position: absolute; border-radius: 9px; transform: rotate(45deg); }
.success-mark span:first-child { left: 6px; top: 8px; width: 46px; height: 46px; background: var(--accent); }
.success-mark span:last-child { left: 38px; top: 13px; width: 36px; height: 36px; background: var(--green); mix-blend-mode: multiply; }
.success h2 { display: block; margin: 16px 0 10px; font-size: clamp(26px, 3.4vw, 34px); }
.success p { margin: 0 0 10px; color: var(--ink-2); }
.success .success-lead { font-size: 18px; color: var(--ink); }
.success-mail { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--ink) !important; font-size: 15px; }

/* Pages simples ---------------------------------------------------------- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 56px); }
.page h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 24px; }
.page h2 { margin-top: 36px; font-size: 22px; }
.page p, .page li { color: var(--ink-2); }

.footer { padding: 28px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); text-align: center; }
.footer p { margin: 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .summary { display: none; }
  .form { --legend: 100%; --gap: 0px; }
  .group-head { margin-bottom: 22px; }
  .group-body { clear: both; }
  .group-body, .submit-area { margin-left: 0; max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .steps { grid-template-rows: none; row-gap: 12px; }
  .steps li { display: block; grid-row: auto; }
  .row { grid-template-columns: 1fr; gap: 18px; }
  .group { padding: 28px 0; }
  .stack { grid-template-columns: 1fr; }
  .stack dd { padding-top: 0; border-top: 0; }
  .form { padding: 4px 18px; }
  .btn-lg { width: 100%; }
  .drop-empty { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
