/* ============================================================
   syaga-audit-site.css — Feuille de style partagée SyagaAudit
   Thème clair · variables + utilitaires + composants
   ============================================================ */

/* ---- 0. TYPOGRAPHIE PREMIUM (auto-hebergee, zero CDN tiers = RGPD-safe) ----
   Fraunces = serif editorial de caractere (titres). Instrument Sans = grotesque
   humaniste net (texte/UI). Poids reels servis depuis /fonts/ sur notre domaine. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/fonts/instrument-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/fonts/instrument-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/fonts/instrument-600.woff2") format("woff2"); }

/* ---- 1. VARIABLES ROOT ---- */
:root {
  --bg:       #f6f8fb;
  --surface:  #ffffff;
  --ink:      #0f172a;
  --body:     #334155;
  --muted:    #606f85;
  --line:     #e6e9f0;
  --graphite: #111827;
  --graphite-h:#1f2937;
  --teal:     #0a7d73;
  --teal-d:   #0f766e;
  --danger:   #e5484d;
  --warn:     #f59e0b;
  --ok:       #12805c;

  --sh-s: 0 1px 3px rgba(16,24,40,.08);
  --sh-m: 0 10px 30px rgba(16,24,40,.08);
  --sh-l: 0 24px 60px rgba(16,24,40,.12);

  --r:    14px;
  --maxw: 1180px;
}

/* ---- 2. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* Titres = Fraunces (serif editorial premium), le reste en Instrument Sans */
h1, h2, h3, .r-slogan, .hero h1, .logo {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

/* ---- 3. LAYOUT ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 4. HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,251,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: .3s;
}
header.shrunk {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-s);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  transition: height .3s;
}
header.shrunk .nav { height: 60px; }

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -.5px;
}
.logo b { color: var(--teal); }
.logo span {
  display: block;
  font-size: .6rem;
  letter-spacing: 3px;
  color: #6b7584;
  font-weight: 700;
  margin-top: -3px;
}

.nav .links {
  display: flex;
  gap: 24px;
  margin-left: 18px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--body);
}
.nav .links a {
  position: relative;
  padding: 4px 0;
}
.nav .links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: .25s;
}
.nav .links a:hover::after { width: 100%; }

.nav .right {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---- 5. BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 11px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--graphite);
  color: #fff;
  box-shadow: var(--sh-s);
}
.btn-primary:hover {
  background: var(--graphite-h);
  transform: translateY(-2px);
  box-shadow: var(--sh-m);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--sh-s);
}

.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 13px; }

/* ---- 6. PILL ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2f7;
  color: #475569;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(13,148,136,.5);
  animation: pulse 2.2s infinite;
}

/* ---- 7. FRAMEWORK BADGE ---- */
.fw {
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #475569;
}

/* ---- 8. CARD / STEP / PLAN ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh-s);
  transition: .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
  border-color: #dbe2ec;
}

/* Step (=card avec numéro) */
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh-s);
  transition: .25s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
  border-color: #dbe2ec;
}
.step .num {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--graphite);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; }
.step p   { font-size: .92rem; color: var(--muted); }

/* Pricing plan */
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--sh-s);
  display: flex;
  flex-direction: column;
  transition: .25s;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
}
.plan.feat {
  border: 2px solid var(--teal);
  box-shadow: 0 18px 40px rgba(13,148,136,.14);
  position: relative;
}
.plan.feat .rec {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: .5px;
}
.plan .pn   { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.plan .pp   { font-size: 2.1rem; font-weight: 800; color: var(--ink); margin: 10px 0 2px; }
.plan .pp small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.plan .pnote { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.plan ul   { list-style: none; margin: 8px 0 20px; flex: 1; }
.plan li   { font-size: .9rem; padding: 7px 0; color: var(--body); display: flex; gap: 9px; }
.plan li svg { color: var(--teal); flex: 0 0 auto; }
.plan .btn { width: 100%; justify-content: center; }

/* ---- 9. SECTION / SHEAD ---- */
.section { padding: 64px 0; }
.shead {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 40px;
}
.shead .k {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: .82rem;
  text-transform: uppercase;
}
.shead h2 {
  font-size: 2.1rem;
  color: var(--ink);
  letter-spacing: -.8px;
  margin: 8px 0 10px;
  font-weight: 800;
}
.shead p { color: var(--muted); font-size: 1.05rem; }

/* ---- 10. GAUGE ---- */
.gauge {
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: conic-gradient(var(--danger) 0deg, var(--danger) 0deg, #eef2f7 0deg);
}
.gauge .in {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
}

/* ---- 11. PROGRESS BAR ---- */
.pbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  font-size: .78rem;
}
.pbar .nm  { width: 130px; color: var(--body); }
.pbar .track {
  flex: 1; height: 8px;
  background: #eef2f7;
  border-radius: 99px;
  overflow: hidden;
}
.pbar .fill {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width 1.1s cubic-bezier(.2,.7,.3,1);
}
.pbar .pc { width: 38px; text-align: right; font-weight: 700; color: var(--body); }

/* ---- 12. FLOATING BADGE ---- */
.float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-m);
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floaty 4s ease-in-out infinite;
}
.float.f1 { top: -18px; right: -14px; }
.float.f2 { bottom: -18px; left: -16px; animation-delay: 1.5s; }
.float .badge {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #e7f6ef;
  color: var(--ok);
  display: grid;
  place-items: center;
}

/* ---- 13. SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- 14. FOOTER ---- */
footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 40px;
  padding: 30px 0;
}
.foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}
.foot .logo { font-size: 1.05rem; }
.foot .sp   { margin-left: auto; display: flex; gap: 18px; }
.foot .sp span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- 15. KEYFRAMES ---- */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(13,148,136,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0   rgba(13,148,136,0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ---- 16. RESPONSIVE < 920px ---- */
@media (max-width: 920px) {
  .hero             { grid-template-columns: 1fr; gap: 32px; }
  h1                { font-size: 2.3rem; }
  .steps, .pricing  { grid-template-columns: 1fr; }
  .nav              { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 0; }
  .nav .links       { display: none; }
  header .right .btn-ghost { display: none; }   /* mobile : garder le CTA principal, masquer 'Se connecter' */
  .btn-lg           { width: 100%; justify-content: center; }
  .pkpi             { grid-template-columns: repeat(2,1fr); }
  .product, .browser { max-width: 100%; overflow: hidden; }
}
