/* =========================================================
   STS — feuille de style principale
   ========================================================= */
:root {
  --navy-950: #04213f;
  --navy-900: #062c55;
  --navy: #0066b3;          /* bleu du logo STS */
  --navy-600: #0a55a0;
  --accent: #ee7d00;        /* orange du logo STS */
  --accent-600: #c25e00;
  --accent-50: #fff1e0;
  --ink: #0f172a;
  --text: #334155;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --success: #059669;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(0, 51, 102, .25);
  --container: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #cbd5e1; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--navy); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: auto; align-self: flex-start; }
.site-footer .brand-logo { background: #fff; border-radius: 12px; padding: 8px 12px; height: 72px; box-sizing: content-box; }
.brand-mark { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark b { color: var(--accent); }
.brand-sub { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.nav { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-600); background: var(--accent-50); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(194, 94, 0, .55); }
.btn-primary:hover { background: #a64f00; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(238, 125, 0, .25), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(0, 102, 179, .55), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #f59e0b, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; max-width: 600px; color: #cbd5e1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: .92rem; color: #94a3b8; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: #f59e0b; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.badge-35 {
  position: absolute; right: 0; bottom: 6%;
  background: #fff; color: var(--navy); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.2;
}
.badge-35 strong { font-size: 2rem; color: var(--accent-600); }
.badge-35 small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow, .page-hero .eyebrow, .on-dark .eyebrow { color: #f59e0b; }

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(238, 125, 0, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy));
  padding: 56px 0 72px;
}
.page-hero h1 { color: #fff; max-width: 860px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { font-size: 1.15rem; max-width: 760px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: .88rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #64748b; }
.breadcrumb a { color: #94a3b8; }
.breadcrumb [aria-current] { color: #e2e8f0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-950); color: #cbd5e1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-head p { color: #94a3b8; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%;
}
.card p { color: var(--muted); margin-bottom: 0; }
a.card { display: flex; flex-direction: column; color: inherit; }
a.card:hover, .card.hover:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: #fdd7aa; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--accent-600); display: inline-flex; align-items: center; gap: 6px; }
.card .more .icon { width: 18px; height: 18px; transition: transform .2s; }
a.card:hover .more .icon { transform: translateX(4px); }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card p { color: #94a3b8; }

.icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent-600); margin-bottom: 20px;
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge.navy { background: var(--navy); color: #fff; }
.section-dark .icon-badge { background: rgba(238,125,0,.15); color: #f59e0b; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 2; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.panel-visual {
  border-radius: var(--radius-lg); min-height: 380px; position: relative; overflow: hidden;
  background: radial-gradient(400px 260px at 70% 30%, rgba(238,125,0,.35), transparent 70%), linear-gradient(150deg, var(--navy-900), var(--navy-600));
  display: grid; place-items: center; color: #fff; padding: 40px;
}
.panel-visual svg { width: min(320px, 80%); height: auto; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li .icon { color: var(--success); margin-top: 4px; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list a { color: inherit; }
.pill-list li:has(a):hover { border-color: var(--accent); }
.pill-list li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 1.9rem; color: var(--accent); margin-bottom: 10px; letter-spacing: -.03em;
}
.steps li p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Risques (data protection) ---------- */
.risk-card h3 { display: flex; align-items: center; gap: 10px; }
.risk-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.risk-card li { padding: 8px 12px; border-radius: 8px; background: var(--bg-soft); font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ---------- Partenaires ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-tile {
  display: grid; place-items: center; height: 92px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 1.12rem;
  color: #475569; letter-spacing: -.01em; text-align: center; padding: 10px;
  transition: color .2s, border-color .2s;
}
.logo-tile:hover { color: var(--navy); border-color: #fdd7aa; }
.partner-card h3 { margin-bottom: .3em; }
.partner-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-600); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: 56px; color: #cbd5e1;
  background: radial-gradient(600px 300px at 100% 0%, rgba(238,125,0,.35), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy));
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; width: 48px; height: 48px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a, .contact-list span { color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(238,125,0,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--success); }
.map-frame { border: 0; width: 100%; height: 360px; border-radius: var(--radius-lg); display: block; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }
.lead-dark { font-size: 1.15rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-sub { color: #94a3b8; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 4px; width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .nav-cta { display: none; }
}
@media (max-width: 1180px) {
  .nav a { padding: 8px 7px; font-size: .9rem; }
  .brand-sub { display: none; }
}
@media (max-width: 1080px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .site-header nav.open { display: block; }
  .nav { flex-direction: column; padding: 12px 20px 20px; }
  .nav a { padding: 12px; }
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero .container { padding-top: 56px; padding-bottom: 88px; }
  .hero-visual { max-width: 420px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .topbar .addr { display: none; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row, .checklist.cols-2 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .card, .form { padding: 24px; }
  .cta-band { padding: 32px 24px; }
  .hero-actions .btn { width: 100%; }
  .badge-35 { position: static; margin-top: 16px; display: inline-flex; }
  .panel-visual { min-height: 260px; }
}
