/* =========================================================
   LSG Finance — Design system
   Palette sobre & institutionnelle (audit / expertise comptable)
   ========================================================= */

:root {
  --navy-900: #0d1f3c;
  --navy-800: #12294b;
  --navy-700: #1b3a63;
  --navy-100: #e8eef6;
  --gold-600: #b5893f;
  --gold-500: #c9a24b;
  --gold-100: #f6ecd6;
  --ink: #1a2230;
  --muted: #5a6675;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(13, 31, 60, .08);
  --shadow-md: 0 10px 30px rgba(13, 31, 60, .10);
  --shadow-lg: 0 24px 60px rgba(13, 31, 60, .16);
  --container: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-900);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--muted); }

a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: #fff; color: var(--navy-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 30px; width: auto; display: block; }
.site-footer .brand-logo { height: 36px; margin-bottom: 4px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-500);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--serif); font-size: 1.25rem; color: var(--navy-900); font-weight: 600; letter-spacing: -.01em; }
.brand-name span { color: var(--gold-600); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--navy-900); transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,.16), transparent 60%),
              linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--gold-500); }
.hero-lead { font-size: 1.22rem; color: rgba(255,255,255,.82); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.hero-trust div { }
.hero-trust .num { font-family: var(--serif); font-size: 2rem; color: var(--gold-500); line-height: 1; }
.hero-trust .lbl { font-size: .9rem; color: rgba(255,255,255,.7); margin-top: 6px; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-100); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy-100); color: var(--navy-800);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--gold-600); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split-media {
  border-radius: var(--radius);
  min-height: 420px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(201,162,75,.14) 1px, transparent 0);
  background-size: 26px 26px;
}
.split-media .badge {
  position: absolute; left: 28px; bottom: 28px; right: 28px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 12px; padding: 20px 22px; color: #fff;
}
.split-media .badge strong { color: var(--gold-500); font-family: var(--serif); font-size: 1.1rem; }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b5893f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 20px; }
.step .n {
  font-family: var(--serif); font-size: 2.4rem; color: var(--gold-500);
  display: block; line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: .96rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; border-radius: var(--radius); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.8); margin: .5rem 0 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Login (espace client) ---------- */
.login-wrap { max-width: 460px; margin: 0 auto; }
.login-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-md);
}
.portal-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.portal-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--navy-900); font-weight: 600;
  transition: border-color .2s ease, transform .15s ease;
}
.portal-list a:hover { border-color: var(--gold-500); transform: translateX(3px); }

/* ---------- Contact info ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico {
  width: 44px; height: 44px; flex: none; border-radius: 11px;
  background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center;
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--navy-900); font-family: var(--sans); }
.info-list span { color: var(--muted); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 90px 0 70px;
}
.page-hero .eyebrow { color: var(--gold-500); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 60ch; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand-name { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-links a:hover { color: var(--gold-500); }
.footer-about p { color: rgba(255,255,255,.62); font-size: .95rem; }
.footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 13px 20px 13px 15px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  transition: transform .18s ease, box-shadow .2s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 620px) {
  .wa-float { right: 16px; bottom: 16px; padding: 14px; }
  .wa-float .wa-label { display: none; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  section { padding: 72px 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .form-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .login-card { padding: 28px; }
}
