/* S-Management — Style system
   Palette : navy (#0B1C39) + or (#E8A838) — moderne, éditorial, consulting
*/

:root {
  --navy-900: #0B1C39;
  --navy-800: #142749;
  --navy-700: #1E3A8A;
  --navy-600: #2E4CA2;
  --gold-500: #E8A838;
  --gold-400: #F3BE5A;
  --ink-900: #0E172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-300: #94A3B8;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-alt: #EEF2F9;
  --line: #E2E8F0;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(11, 28, 57, 0.06);
  --shadow: 0 10px 30px rgba(11, 28, 57, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 28, 57, 0.25);
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1180px;
  --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  --ff-display: 'Plus Jakarta Sans', var(--ff-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-500); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.15; color: var(--ink-900); letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-700); }

.container { width: min(92%, var(--container)); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ff-display); font-weight: 800; color: var(--ink-900); }
.brand-mark { width: 36px; height: 36px; object-fit: contain; display: block; }
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; }
.brand-dark { color: #fff; }
.brand-dark .brand-name { color: #fff; }

.primary-nav { display: flex; gap: 1.4rem; }
.primary-nav a { color: var(--ink-700); font-weight: 500; position: relative; }
.primary-nav a::after {
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--gold-500);
  transition: width .25s var(--ease);
}
.primary-nav a:hover { color: var(--ink-900); }
.primary-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; gap: 5px; flex-direction: column; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-900); display: block; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 1rem 4%; border-top: 1px solid var(--line); background: #fff; gap: .8rem; }
.mobile-nav a { color: var(--ink-900); font-weight: 600; padding: .4rem 0; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  text-align: center; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; box-shadow: 0 10px 20px -10px rgba(11,28,57,.6); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 28px -12px rgba(11,28,57,.7); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-900); color: var(--ink-900); }

/* ===== Hero ===== */
.hero { position: relative; overflow: clip; padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(232,168,56,.18), transparent 60%),
    radial-gradient(800px 420px at 10% 10%, rgba(30,58,138,.15), transparent 60%),
    linear-gradient(180deg, #fff, #F7F9FC 100%);
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display); font-weight: 600; font-size: .85rem;
  color: var(--navy-700); text-transform: uppercase; letter-spacing: .12em;
  padding: .35rem .75rem; border-radius: 999px; background: rgba(30,58,138,.08);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-400); background: rgba(232,168,56,.12); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(232,168,56,.25); }
.hero h1 .accent { color: var(--navy-700); background: linear-gradient(120deg, var(--navy-700), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--ink-700); max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1.8rem; }

.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 520px; }
.hero-stats li { display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hero-stats strong { font-family: var(--ff-display); font-size: 1.5rem; color: var(--navy-900); }
.hero-stats span { font-size: .85rem; color: var(--ink-500); }

/* Orbit visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.orbit {
  position: relative; width: min(420px, 90%); aspect-ratio: 1/1; border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(30,58,138,.1), rgba(232,168,56,.15), rgba(30,58,138,.1));
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  animation: floaty 8s ease-in-out infinite;
}
.orbit::before, .orbit::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px dashed rgba(30,58,138,.2);
}
.orbit::after { inset: 28%; border-color: rgba(232,168,56,.35); }
.orbit-core {
  width: 48%; aspect-ratio: 1/1; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: grid; place-items: center;
  box-shadow: 0 20px 40px -15px rgba(11,28,57,.6), inset 0 0 0 3px rgba(255,255,255,.08);
  padding: 14%;
}
.orbit-core svg, .orbit-core img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.chip {
  position: absolute; padding: .4rem .7rem; border-radius: 999px;
  background: #fff; color: var(--navy-900); font-weight: 600; font-size: .82rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.chip-1 { top: 4%; left: 38%; }
.chip-2 { top: 30%; right: -2%; }
.chip-3 { bottom: 8%; right: 18%; }
.chip-4 { bottom: 12%; left: 8%; }
.chip-5 { top: 38%; left: -4%; }
.chip-6 { top: 8%; right: 10%; background: var(--gold-500); color: var(--navy-900); border-color: transparent; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Trust bar */
.trust-bar {
  margin-top: 3rem; padding: 1rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: center; color: var(--ink-500);
}
.trust-bar ul { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.trust-bar li { font-family: var(--ff-display); font-weight: 700; letter-spacing: .03em; color: var(--ink-700); opacity: .85; }

/* ===== Sections ===== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #E6ECF7; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }
.section-contact { background: linear-gradient(180deg, #fff, #F7F9FC); }

.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-sub { color: var(--ink-500); font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col.align-center { align-items: center; }

/* Pillars */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillars li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.pillars h3 { font-size: 1.02rem; margin: .4rem 0 .2rem; }
.pillars p { margin: 0; font-size: .95rem; }
.pillar-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(232,168,56,.15); color: var(--navy-700); }
.pillar-icon svg { width: 22px; height: 22px; }

/* Service Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(30,58,138,.25); }
.card.featured { border-color: transparent; background: linear-gradient(180deg, #fff, #F7F9FC);
  box-shadow: 0 25px 60px -30px rgba(11,28,57,.35); outline: 2px solid var(--navy-900); outline-offset: -2px; }
.card .badge { position: absolute; top: -12px; left: 20px; background: var(--gold-500); color: var(--navy-900);
  padding: .25rem .7rem; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; margin-bottom: .9rem; }
.card-icon svg { width: 24px; height: 24px; }
.card-lead { font-weight: 600; color: var(--ink-900); margin-bottom: .4rem; }
.card-list { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .4rem; }
.card-list li { position: relative; padding-left: 1.3rem; font-size: .95rem; color: var(--ink-700); }
.card-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.card-link { font-weight: 600; color: var(--navy-700); }
.card-link:hover { color: var(--gold-500); }

/* Mini grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.mini svg { width: 26px; height: 26px; color: var(--navy-700); margin-bottom: .4rem; }
.mini h4 { font-size: 1rem; margin: .2rem 0 .3rem; }
.mini p { margin: 0; font-size: .9rem; color: var(--ink-500); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding: 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.step-n { font-family: var(--ff-display); font-size: 1.6rem; color: var(--gold-400); font-weight: 800; display: block; margin-bottom: .4rem; }
.steps h3 { color: #fff; font-size: 1.05rem; }
.steps p { font-size: .92rem; margin: 0; }

/* Checks */
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-700); }
.checks svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; }

/* Quote */
.quote {
  margin: 0; padding: 2rem; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff, #F7F9FC);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--ff-display); font-size: 5rem;
  color: var(--gold-500); position: absolute; top: -10px; left: 18px; line-height: 1;
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.08rem; color: var(--ink-900); font-style: italic; }
.quote figcaption { color: var(--ink-500); font-size: .92rem; }
.quote figcaption strong { display: block; color: var(--navy-900); font-style: normal; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; color: var(--ink-700); }
.contact-list svg { width: 20px; height: 20px; color: var(--navy-700); }
.socials { display: flex; gap: .6rem; margin-top: .8rem; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-alt); color: var(--navy-900);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.socials a:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* Form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-900); }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink-900); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(30,58,138,.12);
}
.field-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-500); }
.field-check input { margin-top: .2rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--navy-700); }
.form-status { margin: .8rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #15803D; }
.form-status.err { color: #B91C1C; }

/* Footer */
.site-footer { background: var(--navy-900); color: #C7D0E4; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-grid h4 { color: #fff; margin-bottom: .9rem; font-size: 1rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .4rem; }
.footer-grid nav a, .footer-grid a { color: #C7D0E4; }
.footer-grid nav a:hover, .footer-grid a:hover { color: var(--gold-400); }
.footer-grid .muted { color: rgba(199,208,228,.6); font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; color: inherit; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
