/* =========================================================
   TROP CASH — Feuille de style globale
   Design : fintech moderne, navy + accent teal/corail
   ========================================================= */

:root {
  --navy:        #0d2440;
  --navy-deep:   #081a30;
  --brand:       #1b6ef3;
  --brand-dark:  #1457c8;
  --accent:      #14c9a6;
  --accent-dark: #0fae8e;
  --cta:         #ff7a59;
  --cta-dark:    #f2603c;
  --ink:         #0f2438;
  --body:        #46546b;
  --muted:       #7c8aa0;
  --line:        #e6ebf2;
  --bg:          #ffffff;
  --bg-soft:     #f5f8fc;
  --bg-tint:     #eef4ff;
  --white:       #ffffff;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(13,36,64,.08);
  --shadow-lg:   0 24px 60px rgba(13,36,64,.16);
  --maxw:        1180px;
  --font-head:   'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d6e0ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--body); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--accent); }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 8px 22px rgba(255,122,89,.35); }
.btn--cta:hover { background: var(--cta-dark); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(27,110,243,.3); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--bg-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,36,64,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 42px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links > li { position: relative; }
.nav__links a { color: #cdd9ea; font-family: var(--font-head); font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 8px; display: block; transition: color .15s, background .15s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__links .has-sub > a::after { content: "▾"; font-size: .7rem; margin-left: 5px; opacity: .7; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; list-style: none; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .18s ease; border: 1px solid var(--line);
}
.nav__links .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { color: var(--ink); font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.submenu a:hover { background: var(--bg-tint); color: var(--brand); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #1b3a63 0%, var(--navy) 55%, var(--navy-deep) 100%); color: #fff; padding: 90px 0 100px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); }
.hero p { color: #c4d2e6; font-size: 1.2rem; margin: 22px 0 32px; }
.hero__img { position: relative; }
.hero__img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: #c4d2e6; font-weight: 500; }
.hero__badges span::before { content: "✓"; color: var(--accent); font-weight: 800; }

.page-hero { background: linear-gradient(180deg, var(--navy) 0%, #123257 100%); color: #fff; padding: 70px 0 64px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c4d2e6; max-width: 720px; margin: 18px auto 0; font-size: 1.15rem; }
.breadcrumb { font-size: .85rem; color: #8fa6c4; margin-bottom: 16px; }
.breadcrumb a { color: #b9c9e0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.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);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); margin: 0; font-size: .98rem; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--bg-tint); color: var(--brand); }
.card__icon--accent { background: #e3fbf4; color: var(--accent-dark); }
.card__icon--cta { background: #ffeee9; color: var(--cta-dark); }

/* Sector cards (with photo) */
.sector { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; aspect-ratio: 4/3; }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sector:hover img { transform: scale(1.06); }
.sector__label { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; background: linear-gradient(180deg, rgba(8,26,48,0) 35%, rgba(8,26,48,.85) 100%); }
.sector__label h3 { color: #fff; font-size: 1.15rem; }

/* Feature list */
.featlist { list-style: none; display: grid; gap: 16px; }
.featlist li { display: flex; gap: 14px; align-items: flex-start; }
.featlist .ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.section--navy .featlist .ic { background: rgba(20,201,166,.18); color: var(--accent); }
.featlist b { color: var(--ink); font-family: var(--font-head); }
.section--navy .featlist b { color: #fff; }
.featlist span { font-size: .98rem; }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--reverse .split__media { order: 2; }

/* Story callout */
.story { background: var(--bg-tint); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 30px 34px; }
.story p:last-child { margin-bottom: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); }
.stat .lbl { color: #c4d2e6; font-size: .95rem; }

/* Product cards */
.product { text-align: center; }
.product .ph { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px; margin-bottom: 18px; }
.product .ph img { height: 190px; width: auto; margin: 0 auto; object-fit: contain; }
.product .price { color: var(--accent-dark); font-weight: 700; font-family: var(--font-head); }

/* Logo wall */
.logowall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 44px; }
.logowall img { height: 66px; width: auto; filter: grayscale(1); opacity: .65; transition: .2s; }
.logowall img:hover { filter: none; opacity: 1; }

/* Pills (cartes acceptées) */
.pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pills span { background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 8px 18px; font-weight: 600; font-family: var(--font-head); color: var(--ink); font-size: .9rem; box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--brand) 0%, #2b8fff 100%); color: #fff; border-radius: 22px; padding: 54px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4eeff; max-width: 620px; margin: 14px auto 28px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.faq summary { font-family: var(--font-head); font-weight: 600; color: var(--ink); cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Form */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  color: var(--ink); transition: border .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.contact-aside { display: grid; gap: 22px; align-content: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.contact-item b { font-family: var(--font-head); color: var(--ink); display: block; }

/* ---------- Blog ---------- */
.article-body { max-width: 820px; margin: 0 auto; }
.article-body h2 { margin-top: 40px; margin-bottom: 14px; }
.article-body h3 { margin-top: 28px; margin-bottom: 10px; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; display: grid; gap: 6px; }
.article-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card h3 { margin-bottom: 8px; }
.blog-card .article-meta { margin-bottom: 6px; }
.blog-card p { flex: 1; }
.blog-card .btn { align-self: flex-start; margin-top: 12px; }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { margin-top: 36px; margin-bottom: 12px; font-size: 1.3rem; }
.legal-body p { margin-bottom: .9rem; }
.legal-body ul { margin: 0 0 1rem 1.4rem; display: grid; gap: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb1c9; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #9fb1c9; }
.site-footer a:hover { color: var(--accent); }
.footer-brand .logo { display: inline-flex; margin-bottom: 16px; }
.footer-brand .logo img { height: 42px; width: auto; display: block; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd9ea; font-weight: 700; }
.footer-social a:hover { background: var(--accent); color: var(--navy-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #7d90aa; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split, .form-grid, .contact-layout { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero__img { order: -1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--navy); padding: 14px; gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,.1); display: none;
  }
  .nav__links.open { display: flex; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); border: none; margin: 4px 0 8px; }
  .submenu a { color: #cdd9ea; }
  .submenu a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav__cta .btn--cta { display: none; }
  .page-hero { padding: 50px 0 44px; }
  .page-hero h1 { font-size: 1.7rem; }
  .hero { padding: 60px 0 70px; }
  .split { gap: 32px; }
  .article-body { padding: 0 4px; }
  .faq { padding: 0 4px; }
}
@media (max-width: 620px) {
  .section { padding: 50px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 20px; border-radius: 14px; }
  .cta-band h2 { font-size: 1.4rem; }
  .form-wrap { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 54px; }
  .hero p { font-size: 1.05rem; }
  .hero__badges { gap: 6px 16px; }
  .page-hero { padding: 36px 0 32px; }
  .page-hero p { font-size: 1rem; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 20px 16px; }
  .stat .num { font-size: 1.8rem; }
  .split { gap: 24px; }
  .btn { padding: 12px 22px; font-size: .95rem; }
  .btn-row { gap: 10px; }
  .article-body h2 { margin-top: 28px; font-size: 1.3rem; }
  .blog-card { padding: 24px 20px; }
  .legal-body h2 { font-size: 1.15rem; }
  .featlist { gap: 12px; }
  .card { padding: 24px 20px; }
  .logowall img { height: 50px; }
  .logowall { gap: 18px 28px; }
  .story { padding: 22px 20px; }
  .faq details summary { font-size: .95rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
