:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#eef2ff;
  --text:#111827;
  --muted:#5b6475;
  --line:rgba(17,24,39,.10);
  --primary:#4f67ff;
  --primary-2:#6f86ff;
  --accent:#10b981;
  --shadow:0 18px 50px rgba(17,24,39,.08);
  --shadow-strong:0 20px 55px rgba(17,24,39,.14);
  --radius:20px;
  --max:1180px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 350px at 10% 0%, rgba(79,103,255,.08), transparent 50%),
    radial-gradient(900px 350px at 90% 0%, rgba(16,185,129,.06), transparent 50%),
    var(--bg);
  overflow-x:hidden;
}

body.menu-open{
  overflow:hidden;
}

a{
  color:inherit;
}

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

.wrap{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.wrap,
.hero-grid,
.hero-grid > *,
.mock,
.mock-grid,
.mock-item,
.footer-grid,
.split,
.grid-2,
.grid-3,
.kpis,
.linkgrid,
.article-grid,
.stats-grid{
  min-width:0;
}

/* =========================
   HEADER
   ========================= */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow:0 10px 30px rgba(17,24,39,.05);
}

.topbar .nav{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  min-height:86px;
}

.topbar .brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  min-width:0;
  flex:0 0 auto;
}

.topbar .brand img{
  width:160px;
  max-width:none;
  height:auto;
  border:0;
  background:none;
  padding:0;
  box-shadow:none;
}

.topbar .brand span{
  display:none;
}

.topbar .menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
  flex-wrap:nowrap;
}

.topbar .menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  transition:all .18s ease;
}

.topbar .menu a:hover,
.topbar .menu a:focus-visible{
  background:rgba(79,103,255,.07);
  color:var(--text);
}

.topbar .actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:12px 18px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  box-shadow:0 10px 24px rgba(17,24,39,.06);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
  cursor:pointer;
}

.btn:hover,
.btn:focus-visible{
  transform:translateY(-1px);
  box-shadow:var(--shadow-strong);
}

.btn.primary{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
}

.btn.secondary{
  background:#fff;
  color:var(--text);
}

.btn.nav-toggle{
  display:none;
  border-color:transparent;
  background:#111827;
  color:#fff;
}

.mobile-nav{
  display:none;
  padding:0 0 18px;
}

.mobile-nav.open{
  display:grid;
  gap:10px;
}

.mobile-nav a{
  display:block;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 8px 20px rgba(17,24,39,.04);
}

.mobile-nav .btn{
  width:100%;
}

/* =========================
   TYPO / BASE
   ========================= */

h1{
  font-size:clamp(2.3rem,5.1vw,4.5rem);
  line-height:.98;
  margin:14px 0 16px;
  letter-spacing:-.045em;
}

h2{
  font-size:clamp(1.55rem,2.4vw,2.25rem);
  line-height:1.12;
  margin:0 0 12px;
  letter-spacing:-.03em;
}

h3{
  font-size:1.08rem;
  line-height:1.3;
  margin:0 0 8px;
}

p{
  margin:0 0 14px;
  line-height:1.7;
  color:var(--muted);
}

.lead{
  font-size:1.08rem;
}

.small{
  font-size:13px;
  color:var(--muted);
}

.eyebrow{
  display:inline-block;
  margin-bottom:8px;
  font-size:.95rem;
  font-weight:700;
  color:var(--text);
}

.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
  font-weight:700;
  color:var(--text);
  box-shadow:0 8px 18px rgba(17,24,39,.04);
}

/* =========================
   LAYOUT
   ========================= */

.section{
  padding:18px 0 34px;
}

.section.alt{
  padding:28px 0 40px;
}

.page-hero{
  padding:18px 0 10px;
}

.hero{
  padding:28px 0 30px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:34px;
  align-items:start;
}

.split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:start;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.linkgrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

.trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

/* =========================
   CARDS
   ========================= */

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card.pad{
  padding:26px;
}

.cta-band{
  padding:28px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(79,103,255,.08), rgba(111,134,255,.12));
  border:1px solid rgba(79,103,255,.12);
  box-shadow:var(--shadow);
}

/* =========================
   LISTES
   ========================= */

.hero-bullets{
  margin:18px 0 0;
  padding-left:22px;
  color:var(--text);
}

.hero-bullets li{
  margin:8px 0;
  line-height:1.55;
}

.mini-steps{
  margin:12px 0 0;
  padding-left:22px;
}

.mini-steps li{
  margin:10px 0;
  line-height:1.65;
  color:var(--text);
}

.quote{
  font-size:1.03rem;
  line-height:1.7;
  color:var(--text);
  font-style:italic;
}

.proof-list{
  margin:12px 0 0;
  padding-left:20px;
}

.proof-list li{
  margin:8px 0;
  color:var(--text);
}

/* =========================
   HERO MOCKUP
   ========================= */

.card.mock{
  width:100%;
  max-width:100%;
  overflow:hidden;
  padding:0;
}

.mock-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:18px 18px 16px;
  border-bottom:1px solid rgba(17,24,39,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,251,.92));
}

.mock-head strong{
  margin-left:6px;
  font-size:1.02rem;
  line-height:1.25;
}

.ball{
  width:10px;
  height:10px;
  border-radius:50%;
  flex:0 0 10px;
}

.ball:nth-child(1){ background:#f2a8a8; }
.ball:nth-child(2){ background:#f1cc7a; }
.ball:nth-child(3){ background:#a8dfb0; }

.mock-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:18px;
}

.mock-box{
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8faff);
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 10px 24px rgba(17,24,39,.04);
  min-width:0;
}

.mock-stat{
  margin:10px 0 8px;
  font-size:2rem;
  font-weight:900;
  line-height:1;
  color:var(--text);
}

.mock-list{
  padding:0 18px 18px;
}

.mock-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:16px 0;
  border-bottom:1px solid rgba(17,24,39,.06);
}

.mock-item:last-child{
  border-bottom:0;
}

.mock-item span{
  flex:1 1 auto;
  min-width:0;
  color:var(--text);
  line-height:1.45;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.mock-item strong{
  flex:0 0 auto;
  white-space:nowrap;
  color:var(--text);
}

/* =========================
   BLOCS INDEX
   ========================= */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

.stat-card{
  padding:24px;
  border-radius:18px;
  background:#fff;
  min-width:0;
}

.stat-card .kicker{
  display:inline-block;
  margin-bottom:10px;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--primary);
}

.stat-card strong{
  display:block;
  margin-bottom:10px;
  font-size:1.18rem;
  line-height:1.3;
  color:var(--text);
}

.stat-card p{
  margin:0;
  line-height:1.65;
}

.article-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

.article-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:100%;
  text-decoration:none;
  isolation:isolate;
  overflow:hidden;
}

.article-card::before,
.article-card::after,
.article-card *::before,
.article-card *::after{
  box-shadow:none !important;
}

.article-card h3,
.article-card p{
  position:relative;
  z-index:2;
}

.article-card p{
  margin-bottom:0;
}

/* =========================
   TABLE / FAQ
   ========================= */

.table-wrap{
  width:100%;
  overflow-x:auto;
}

table{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
}

th,
td{
  padding:12px 14px;
  border:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  background:#fff;
}

.faq{
  display:grid;
  gap:12px;
}

.faq details{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 8px 18px rgba(17,24,39,.04);
}

summary{
  cursor:pointer;
  font-weight:700;
  color:var(--text);
}

/* =========================
   FOOTER
   ========================= */

footer{
  padding:36px 0 60px;
  background:#0f172a;
  color:#e5edf7;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.35fr repeat(4,minmax(0,1fr));
  gap:24px;
  align-items:start;
}

.footer-grid > div{
  min-width:0;
}

.footer-grid strong{
  display:block;
  margin:0 0 10px;
  color:#fff;
  font-size:1rem;
}

.footer-grid p{
  color:#b9c5d4;
  margin:0 0 10px;
}

.footer-grid a{
  color:#dce6f3;
  text-decoration:none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible{
  text-decoration:underline;
}

footer .brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  text-decoration:none;
}

footer .brand img{
  width:176px;
  height:auto;
  max-width:100%;
}

footer .brand span{
  display:none;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:1400px){
  .topbar .brand img{
    width:150px;
  }

  .topbar .menu a{
    font-size:13px;
    padding:8px 7px;
  }

  .topbar .actions .btn{
    padding:10px 14px;
  }
}

@media (max-width:1320px){
  .topbar .menu,
  .topbar .actions .btn.secondary,
  .topbar .actions .btn.primary{
    display:none;
  }

  .topbar .nav{
    grid-template-columns:auto auto;
    justify-content:space-between;
  }

  .btn.nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}

@media (max-width:1180px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .card.mock{
    max-width:760px;
  }

  .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:900px){
  .wrap{
    width:min(var(--max), calc(100% - 28px));
  }

  .topbar .nav{
    min-height:74px;
    gap:12px;
  }

  .topbar .brand img{
    width:136px;
  }

  .mobile-nav{
    padding-bottom:14px;
    border-top:1px solid var(--line);
  }

  .hero,
  .page-hero{
    padding-top:18px;
  }

  .split,
  .grid-2,
  .grid-3,
  .kpis,
  .linkgrid,
  .stats-grid,
  .article-grid{
    grid-template-columns:1fr;
  }

  .section-head{
    display:block;
  }

  .cta-row{
    flex-direction:column;
  }

  .cta-row .btn{
    width:100%;
  }

  h1{
    font-size:clamp(2rem,9vw,3.2rem);
  }

  .card.pad,
  .cta-band,
  .stat-card{
    padding:20px;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .topbar .brand img{
    width:128px;
  }

  .mock-grid{
    grid-template-columns:1fr;
  }

  .mock-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .mock-item strong{
    white-space:normal;
  }

  .trust{
    gap:8px;
  }

  .tag{
    width:100%;
    justify-content:center;
  }
}

@media (min-width:1321px){
  .mobile-nav{
    display:none !important;
  }

  .btn.nav-toggle{
    display:none !important;
  }
}