/* Concept : raies diagonales issues du logo, reprises en décor et en puces.
   Palette : bleu ardoise (raies foncées), bleu pétrole (barres), gris-bleu (raies claires). */
:root {
  --bg: #f5f9fb;
  --surface: #ffffff;
  --ink: #17303f;
  --muted: #4d6475;
  --brand: #386482;
  --teal: #5f9aaf;
  --teal-ink: #2d6c84;
  --steel: #8c9ca9;
  --line: #d5e0e7;
  --tint: #e5eff4;
  --btn: #386482;
  --btn-hover: #2a4d67;
  --btn-ink: #ffffff;
  --band: #1f3f57;
  --band-ink: #f2f8fb;
  --band-muted: #b9cfdc;
  --danger: #b3402f;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgba(23,48,63,.06), 0 8px 24px rgba(23,48,63,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a23; --surface: #152531; --ink: #e8f0f5; --muted: #9fb5c3;
    --brand: #7fb0c7; --teal: #5f9aaf; --teal-ink: #86bbcf; --steel: #8c9ca9;
    --line: #27404f; --tint: #1a2e3b; --btn: #5f9aaf; --btn-hover: #7fb0c7; --btn-ink: #0b141b;
    --band: #0a131a; --band-ink: #f2f8fb; --band-muted: #9fb5c3; --danger: #ff9b88;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1a23; --surface: #152531; --ink: #e8f0f5; --muted: #9fb5c3;
  --brand: #7fb0c7; --teal: #5f9aaf; --teal-ink: #86bbcf; --steel: #8c9ca9;
  --line: #27404f; --tint: #1a2e3b; --btn: #5f9aaf; --btn-hover: #7fb0c7; --btn-ink: #0b141b;
  --band: #0a131a; --band-ink: #f2f8fb; --band-muted: #9fb5c3; --danger: #ff9b88;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--teal-ink); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--teal); transform: skewX(-30deg); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

/* Barre de contact + en-tête */
.topbar { background: var(--band); color: var(--band-muted); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-block: 8px; }
.topbar a { text-decoration: none; color: var(--band-ink); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
header.site { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 52px; height: 40px; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: .01em; color: var(--brand); line-height: 1; white-space: nowrap; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--radius); color: var(--ink); }
nav.main a:hover { background: var(--tint); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--btn); background: var(--btn); color: var(--btn-ink); font: inherit; font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--tint); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: var(--radius); cursor: pointer; font-size: 17px; }

/* Accueil */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .stripes { position: absolute; right: -40px; top: -20px; width: min(720px, 70vw); opacity: .16; pointer-events: none; }
.hero .wrap { position: relative; padding-block: 72px 80px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); font-weight: 700; color: var(--ink); margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 54ch; }
.hero .lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 26px; display: grid; gap: 18px; }
.hero-card h2 { font-size: 28px; }
.pillar { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.pillar .ico { width: 44px; height: 44px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.pillar span { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; }

.ticker { background: var(--band); color: var(--band-ink); }
.ticker .wrap { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-block: 14px; font-family: var(--font-display); font-size: 19px; letter-spacing: .06em; text-transform: uppercase; justify-content: space-between; }
.ticker span::before { content: "/"; color: var(--teal); margin-right: 10px; font-weight: 700; }

/* Sections */
section { padding-block: 84px; }
.sec-head { max-width: 760px; display: grid; gap: 14px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(36px, 5vw, 56px); }
.sec-head p { color: var(--muted); font-size: 18px; }
.sec-head h2 em { font-style: normal; color: var(--brand); }

.engage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.engage > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.engage > div:last-child { border-right: 0; }
.engage h3 { font-size: 28px; margin-bottom: 10px; color: var(--brand); }
.engage p { color: var(--muted); font-size: 16px; }
.engage .tag { font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 14px; }

.alt { background: var(--tint); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.card .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--teal-ink); font-weight: 600; }
.card h3 { font-size: 32px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.card li::before { content: ""; width: 14px; height: 6px; background: var(--teal); transform: skewX(-30deg); margin-top: 9px; }
.card .more { margin-top: 6px; font-weight: 700; color: var(--brand); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.ribbon { position: absolute; top: -13px; right: 20px; background: var(--btn); color: var(--btn-ink); font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; padding: 4px 12px; border-radius: 3px; }

/* Offres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.offer.soon { background: transparent; border-style: dashed; }
.offer .meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.badge { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; padding: 2px 10px; border-radius: 3px; background: var(--tint); color: var(--teal-ink); font-weight: 600; white-space: nowrap; }
.badge.app { background: var(--btn); color: var(--btn-ink); }
.offer h3 { font-size: 27px; line-height: 1.1; }
.offer p { color: var(--muted); font-size: 15px; }
.offer .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; align-self: end; }
.offer .btn { justify-self: start; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Secteurs */
.sectors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sector { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; }
.sector::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 64px; height: 64px; background: var(--tint); transform: skewX(-30deg); }
.sector > * { position: relative; z-index: 1; }
.sector .letter { font-family: var(--font-display); font-size: 54px; font-weight: 700; color: var(--teal); line-height: .9; }
.sector h3 { font-size: 24px; }
.sector p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.sector small { font-weight: 600; color: var(--teal-ink); font-size: 14px; line-height: 1.4; }

/* Parcours */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: grid; gap: 22px; align-content: start; }
.path h3 { font-size: 36px; }
.path ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.path li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.path li::before { content: counter(s); font-family: var(--font-display); font-size: 22px; font-weight: 700; width: 38px; height: 38px; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); border-radius: 4px; transform: skewX(-12deg); }
.path li b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.path li span { color: var(--muted); font-size: 16px; line-height: 1.5; display: block; }

/* Formulaires */
.forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 36px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; min-width: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); border-color: var(--teal); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--btn); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.status { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.status.ok { color: var(--teal-ink); }
.status.err { color: var(--danger); }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

/* Bandeau final + pied de page */
.cta { background: var(--band); color: var(--band-ink); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-block: 64px; }
.cta h2 { font-size: clamp(34px, 5vw, 54px); max-width: 16ch; }
.cta p { color: var(--band-muted); max-width: 46ch; margin-top: 12px; }
.cta .btn { background: var(--teal); border-color: var(--teal); color: #0b141b; }
.cta .btn:hover { background: #7fb0c7; border-color: #7fb0c7; }
.cta .btn.ghost { background: transparent; color: var(--band-ink); border-color: var(--band-muted); }
.cta .btn.ghost:hover { background: rgba(255,255,255,.08); }
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--muted); }
.foot-grid a:hover { color: var(--brand); }
.foot-grid p { color: var(--muted); max-width: 36ch; margin-top: 14px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: 14px; }

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage > div:nth-child(2) { border-right: 0; }
  .engage > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards3, .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .forms-grid, .paths { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px; }
  header.site .actions-d { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding-block: 56px; }
  .hero .wrap { padding-block: 44px 52px; }
  .engage, .cards3, .offers, .sectors { grid-template-columns: minmax(0, 1fr); }
  .engage > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .engage > div:last-child { border-bottom: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .form-card, .path { padding: 22px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .brand b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ===== Pages d'offres ===== */
.offer h3 a { text-decoration: none; }
.offer h3 a:hover { text-decoration: underline; }
.lead { font-size: 20px; color: var(--muted); max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--brand); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.job-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.job-hero .stripes { position: absolute; right: -40px; top: -30px; width: min(560px, 60vw); opacity: .13; pointer-events: none; }
.job-hero .wrap { position: relative; padding-block: 48px 56px; display: grid; gap: 18px; }
.job-hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; max-width: 18ch; }
.job-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.job-main { display: grid; gap: 34px; }
.job-main h2 { font-size: 34px; margin-bottom: 14px; }
.job-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job-main li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.job-main li::before { content: ""; width: 14px; height: 6px; background: var(--teal); transform: skewX(-30deg); margin-top: 11px; }
.job-side { position: sticky; top: 90px; }
.job-side h2 { font-size: 28px; }
.job-side dl { margin: 0; display: grid; gap: 12px; }
.job-side dt { font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.job-side dd { margin: 0; font-weight: 600; }
.job-side .btn { width: 100%; }
.job-side .small-note { font-size: 14px; color: var(--muted); font-weight: 400; }
.job-side .small-note a { color: var(--brand); font-weight: 700; }
.job-note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 1020px) {
  .job-grid { grid-template-columns: minmax(0, 1fr); }
  .job-side { position: static; }
}
@media (max-width: 620px) {
  .job-hero .wrap { padding-block: 32px 40px; }
  .job-main h2 { font-size: 30px; }
}

/* ===== Gestion des offres ===== */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-side { display: grid; gap: 24px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg); }
.admin-list b { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.1; font-weight: 600; }
.admin-list small { color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.field label small { font-weight: 400; color: var(--muted); }
.admin-steps { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
#downloadBtn { margin-bottom: 10px; }
@media (max-width: 1020px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .admin-list li { grid-template-columns: minmax(0, 1fr); } .admin-actions { justify-content: flex-start; } }
