/* ========================================================================== */
/* FlexiCash 2026 — identité vert & blanc inspirée de l'affiche de campagne   */
/* Couche visuelle uniquement : aucune logique financière n'est modifiée.     */
/* ========================================================================== */

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 100% 0, rgba(13,146,80,.08), transparent 26rem),
    radial-gradient(circle at 0 100%, rgba(244,180,0,.055), transparent 24rem),
    var(--bg);
}

h1, h2, h3, h4, h5 { color: var(--text); }
:focus-visible { outline-color: var(--emerald-500); }
::selection { background: var(--amber-100); color: var(--navy-900); }

/* Wordmark */
.brand { gap: 9px; color: var(--text); }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--amber-500), #FFD75A);
  color: var(--navy-900);
  box-shadow: 0 9px 20px -9px rgba(244,180,0,.75);
  font-size: 1rem;
  font-style: italic;
  transform: rotate(-3deg);
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand-flexi { color: var(--amber-500); font-style: italic; }
.brand-cash { color: var(--navy-800); }
.admin-badge {
  display:inline-flex; align-items:center; margin-left:7px; padding:4px 8px;
  border-radius:999px; background:var(--amber-100); color:var(--navy-900);
  font-size:.63rem; letter-spacing:.04em; font-weight:800;
}

/* Shared surfaces */
.card, .admin-panel, .kpi, .table-wrap, .admin-table-wrap {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card:hover, .feature:hover, .steps-3 .s:hover {
  border-color: color-mix(in srgb, var(--emerald-500) 40%, var(--border));
}
.card-title, .section-title { color: var(--navy-900); }

.btn { border-radius: 999px; font-weight: 700; }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-800), var(--emerald-500));
  color: #fff;
  box-shadow: 0 9px 22px -12px rgba(6,107,61,.7);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.btn-success {
  background: linear-gradient(135deg, var(--amber-500), #FFD34E);
  color: var(--navy-900);
  box-shadow: 0 9px 22px -12px rgba(244,180,0,.72);
}
.btn-success:hover { background: #FFC928; color: var(--navy-900); }
.btn-outline { border-color: var(--emerald-600); color: var(--emerald-600); }
.btn-link { color: var(--emerald-600); font-weight: 700; }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-sunken); }

.input, .select, .textarea {
  background: color-mix(in srgb, var(--bg-elev) 94%, var(--emerald-100));
  border-color: var(--border);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px var(--ring);
}
.checkbox input { accent-color: var(--emerald-600); }

.badge-info, .badge-success {
  background: var(--emerald-100);
  color: var(--emerald-600);
}
.badge-warning { background: var(--amber-100); color: #795400; }
.chip { background: #fff; color: var(--emerald-600); border-color: var(--border-strong); font-weight: 700; }
.chip.active { background: var(--emerald-600); border-color: var(--emerald-600); }
.progress > span { background: linear-gradient(90deg, var(--emerald-600), var(--amber-500)); }
.steps .step.current { background: var(--amber-500); }

.table th, .admin-table th { background: var(--bg-sunken); color: var(--navy-800); }
.table tr:hover td, .admin-table tbody tr:hover {
  background: color-mix(in srgb, var(--emerald-100) 55%, transparent);
}

/* Public website */
.site-header {
  background: color-mix(in srgb, #fff 93%, transparent);
  border-bottom-color: rgba(8,107,61,.12);
  box-shadow: 0 8px 30px -24px rgba(6,69,47,.45);
}
.site-header .inner { height: 74px; }
.nav a { border-radius: 999px; font-weight: 650; }
.nav a:hover, .nav a.active { background: var(--emerald-100); color: var(--emerald-600); }

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 88% 22%, rgba(13,146,80,.13), transparent 18rem),
    radial-gradient(circle at 73% 2%, rgba(244,180,0,.14), transparent 11rem),
    linear-gradient(180deg, #FFFFFF 0%, #F4FAF5 100%);
}
.hero::before {
  background:
    linear-gradient(135deg, transparent 0 69%, rgba(13,146,80,.07) 69% 72%, transparent 72%),
    radial-gradient(700px 320px at 6% 90%, rgba(13,146,80,.075), transparent 62%);
}
.hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(330px,.92fr); gap: 70px; }
.hero .eyebrow { background: #fff; color: var(--emerald-600); border-color: var(--border-strong); font-weight: 700; }
.hero h1 { max-width: 17ch; font-size: clamp(2.55rem,5.4vw,5rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 .hero-green { color: var(--emerald-600); }
.hero h1 .hero-yellow { color: var(--amber-500); }
.hero .lead { color: var(--text-muted); max-width: 55ch; }
.hero-benefits { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:24px; }
.hero-benefit { display:flex; gap:8px; align-items:center; color:var(--text-muted); font-size:.88rem; font-weight:650; }
.hero-benefit::before { content:"✓"; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:var(--emerald-100); color:var(--emerald-600); font-weight:900; }

.hero-visual { position:relative; min-height:510px; display:grid; place-items:center; }
.hero-device {
  width:min(100%,350px); min-height:500px; position:relative; z-index:2;
  padding:34px 22px 24px; border:9px solid #153A29; border-radius:48px;
  background:#fff; box-shadow:0 34px 70px -28px rgba(6,69,47,.55);
  transform:rotate(2.5deg);
}
.hero-device::before { content:""; position:absolute; top:9px; left:50%; width:92px; height:18px; transform:translateX(-50%); background:#153A29; border-radius:0 0 14px 14px; }
.device-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.device-brand { font-family:var(--font-display); font-weight:900; font-style:italic; color:var(--emerald-600); }
.device-brand span { color:var(--amber-500); }
.device-avatar { width:34px; height:34px; border-radius:50%; background:var(--emerald-100); display:grid; place-items:center; color:var(--emerald-600); font-weight:800; }
.device-balance { padding:22px; border-radius:24px; color:#fff; background:linear-gradient(145deg,var(--navy-800),var(--emerald-500)); box-shadow:0 18px 30px -20px rgba(6,107,61,.7); }
.device-balance small { color:rgba(255,255,255,.72); }
.device-balance strong { display:block; margin-top:7px; font-size:1.7rem; font-family:var(--font-display); }
.device-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }
.device-action { display:grid; gap:7px; place-items:center; padding:12px 5px; border-radius:15px; background:var(--bg-sunken); color:var(--navy-800); font-size:.7rem; font-weight:800; }
.device-action i { width:32px; height:32px; display:grid; place-items:center; border-radius:11px; background:#fff; color:var(--emerald-600); font-style:normal; font-size:1rem; }
.device-list { display:grid; gap:9px; }
.device-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 2px; border-bottom:1px solid var(--border); font-size:.78rem; }
.device-row:last-child { border-bottom:0; }
.device-row span { color:var(--text-muted); }
.device-row strong.plus { color:var(--emerald-600); }
.hero-trust-card {
  position:absolute; z-index:3; right:-5px; bottom:30px; max-width:220px;
  padding:15px 18px; border-radius:18px; background:var(--navy-800); color:#fff;
  border:4px solid #fff; box-shadow:var(--shadow-lg); transform:rotate(-3deg);
  font-size:.78rem; font-weight:750; text-transform:uppercase; letter-spacing:.035em;
}
.hero-trust-card strong { color:#FFD34E; }
.hero-quote-card {
  margin-top:24px; display:inline-flex; align-items:center; gap:12px; padding:13px 17px;
  border:2px solid var(--amber-500); border-radius:18px; background:#FFFDF4;
  color:var(--navy-900); font-weight:800; transform:rotate(-1deg);
}
.hero-quote-card::before { content:'“'; color:var(--emerald-600); font-size:2rem; line-height:.7; }

.stats-strip { border-color:var(--border); box-shadow:var(--shadow-md); background:rgba(255,255,255,.92); }
.stats-strip .k { color:var(--emerald-600); font-size:1.35rem; }
.stats-strip .l { color:var(--text-muted); }
.feature, .steps-3 .s { border-radius:22px; box-shadow:var(--shadow-sm); transition:.2s ease; }
.feature:hover, .steps-3 .s:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.feature .ic { background:var(--emerald-100); color:var(--emerald-600); border-radius:14px; }
.feature:nth-child(3n+2) .ic { background:var(--amber-100); color:#8A6200; }
.steps-3 .s::before { color:var(--amber-500); }
.cta-band { background:linear-gradient(125deg,var(--navy-900),var(--emerald-600)); }
.cta-band::after { content:""; position:absolute; width:280px; height:280px; border-radius:50%; right:-90px; top:-140px; border:45px solid rgba(255,255,255,.07); }
.site-footer { background:var(--navy-900); border-top:5px solid var(--amber-500); color:#fff; }
.site-footer p, .site-footer a, .site-footer .footer-bottom { color:rgba(255,255,255,.72); }
.site-footer h4 { color:#fff; }
.site-footer a:hover { color:#FFD34E; }
.site-footer .brand-cash { color:#fff; }
.site-footer .footer-bottom { border-top-color:rgba(255,255,255,.12); }

/* Client app */
.app-shell { background:transparent; }
.sidebar {
  background:#fff; border-right-color:rgba(8,107,61,.12); padding:18px 13px;
  box-shadow:12px 0 38px -36px rgba(6,69,47,.7);
}
.sidebar .brand { padding-bottom:18px; }
.sidebar-section .lbl { color:#88A093; font-weight:800; }
.sidebar a.nav-item { border-radius:13px; font-weight:650; }
.sidebar a.nav-item:hover { background:var(--bg-sunken); color:var(--emerald-600); }
.sidebar a.nav-item.active {
  background:linear-gradient(135deg,var(--navy-800),var(--emerald-500));
  color:#fff; box-shadow:0 10px 22px -16px rgba(6,107,61,.75);
}
.sidebar a.nav-item.active .i { color:#FFD34E; }
.sidebar-foot { background:#fff; }
.topbar { background:color-mix(in srgb,#fff 94%,transparent); border-bottom-color:rgba(8,107,61,.1); backdrop-filter:blur(14px); }
.avatar { background:linear-gradient(135deg,var(--navy-800),var(--emerald-500)); border:2px solid #fff; box-shadow:0 7px 17px -9px rgba(6,107,61,.75); }
.icon-btn { border-radius:13px; }
.icon-btn:hover { color:var(--emerald-600); border-color:var(--border-strong); }
.page { padding-top:32px; }
.page-head h1 { color:var(--navy-900); letter-spacing:-.045em; }
.balance-card {
  background:linear-gradient(135deg,#086238 0%,#0B8449 57%,#14A35B 100%);
  border:1px solid rgba(255,255,255,.18); box-shadow:0 28px 55px -27px rgba(6,69,47,.7);
}
.balance-card::before { right:-55px; top:-80px; width:245px; height:245px; border:34px solid rgba(255,211,78,.18); border-radius:50%; background:transparent; pointer-events:none; }
.balance-card::after { left:auto; right:34px; bottom:-95px; width:180px; height:180px; background:radial-gradient(circle,rgba(255,255,255,.14),transparent 62%); pointer-events:none; }
.balance-card .amt { text-shadow:0 3px 12px rgba(0,0,0,.12); }
.balance-card .meta { position:relative; z-index:1; }
.balance-card .badge-success {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--amber-500);
  border-color: rgba(255,255,255,.3);
}
.quick-actions { grid-template-columns:repeat(3,1fr); }
.qa { border-radius:18px; border-color:var(--border); box-shadow:0 8px 22px -20px rgba(6,69,47,.65); }
.qa:hover { border-color:var(--emerald-500); box-shadow:var(--shadow-md); }
.qa .ic, .qa .ic.g, .qa .ic.n { background:var(--emerald-100); color:var(--emerald-600); border-radius:14px; }
.qa:nth-child(2n) .ic { background:var(--amber-100); color:#805A00; }
.activity-stat { border-radius:15px; background:var(--bg-sunken); }
.notification-preview:hover, .notification-row:hover { background:var(--emerald-100); }
.notification-preview:focus-visible, .notification-row:focus-visible { outline-color:var(--emerald-500); }
.bottom-nav { background:#fff; border-top-color:rgba(8,107,61,.14); box-shadow:0 -12px 30px -25px rgba(6,69,47,.65); }
.bottom-nav a.active { color:var(--emerald-600); }
/* La pastille jaune vit sur .fab-ic : le lien lui-même reste une colonne
   normale (repère + libellé), comme les quatre autres onglets.
   L'anneau reprend le fond réel de la barre (#fff) — `var(--bg)` est un blanc
   verdâtre et dessinait un liseré visible autour du cercle. */
.bottom-nav .fab { color:var(--emerald-600); }
.bottom-nav .fab .fab-ic { background:linear-gradient(135deg,var(--amber-500),#FFD34E); color:var(--navy-900); border:5px solid #fff; }

/* Funding / QR / savings surfaces */
.send-method-card.selected, .funding-channel.selected {
  border-color:var(--emerald-500);
  background:linear-gradient(135deg,var(--emerald-100),var(--card));
}
.send-method-icon, .send-method-mini-icon, .funding-channel-icon { background:var(--emerald-100); color:var(--emerald-600); }
.send-method-card:nth-child(2n) .send-method-icon,
.funding-channel:nth-child(2n) .funding-channel-icon { background:var(--amber-100); color:#805A00; }
.scan-camera-frame, .send-qr-preview { border-color:var(--emerald-500); }
.send-qr-target { border-color:#FFD34E; }
.savings-history-icon { background:var(--emerald-100); color:var(--emerald-600); }

/* Authentication / onboarding */
.auth-shell { background:var(--bg); }
.auth-side {
  background:
    radial-gradient(circle at 88% 10%, rgba(255,211,78,.24), transparent 15rem),
    radial-gradient(circle at 8% 92%, rgba(255,255,255,.12), transparent 18rem),
    linear-gradient(150deg,var(--navy-900),var(--emerald-600));
}
.auth-side::after { background:linear-gradient(135deg,transparent 0 68%,rgba(255,255,255,.06) 68% 72%,transparent 72%); }
.auth-side .brand-cash { color:#fff; }
.auth-side .quote { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.16); }
.auth-panel { background:linear-gradient(145deg,#F9FCF9,var(--bg-sunken)); }
.auth-card { max-width:480px; padding:34px; border:1px solid var(--border); border-radius:28px; background:var(--card); box-shadow:var(--shadow-lg); }
.auth-card h1 { color:var(--navy-900); }
.auth-foot a { color:var(--emerald-600); }
.onb-top { border-bottom-color:rgba(8,107,61,.12); }
.doc-uploader:hover { border-color:var(--emerald-500); background:var(--emerald-100); }
.doc-uploader .ic { color:var(--emerald-600); }

/* Administration */
.admin-shell { background:radial-gradient(circle at 100% 0,rgba(13,146,80,.09),transparent 28rem),var(--bg); }
.admin-side {
  background:#fff; color:var(--text); border-right:1px solid rgba(8,107,61,.12);
  box-shadow:12px 0 38px -36px rgba(6,69,47,.72);
}
.admin-side .brand { color:var(--text); }
.admin-side .brand-cash { color:var(--navy-800); }
.admin-side .lbl { color:#88A093; }
.admin-side a:not(.brand) { color:var(--text-muted); border-radius:12px; }
.admin-side a:not(.brand):hover { background:var(--bg-sunken); color:var(--emerald-600); transform:translateX(2px); }
.admin-side a.active { background:linear-gradient(135deg,var(--navy-800),var(--emerald-500)); color:#fff; box-shadow:0 10px 22px -16px rgba(6,107,61,.75); }
.admin-side a.active .i { color:#FFD34E; }
.admin-side-foot { border-color:var(--border); background:var(--bg-sunken); color:var(--text-muted); }
.admin-side-foot strong { color:var(--navy-800); }
.admin-top { background:color-mix(in srgb,#fff 94%,transparent); border-bottom-color:rgba(8,107,61,.1); }
.kpi, .admin-panel { border-radius:20px; }
.kpi::after { background:var(--emerald-100); }
.kpi-icon { color:var(--emerald-600); background:var(--emerald-100); }
.admin-table-wrap { border-radius:18px; }
.admin-pagination .pagination-buttons button.active,
.pagination-buttons button.active { background:var(--emerald-600); border-color:var(--emerald-600); }
.admin-client-link { background:var(--emerald-100)!important; border-color:var(--border-strong)!important; color:var(--emerald-600)!important; }

/* Responsive */
@media (max-width:900px) {
  .hero-grid { grid-template-columns:1fr; gap:30px; }
  .hero h1 { max-width:18ch; }
  .hero-visual { min-height:490px; }
  .hero-trust-card { right:5%; }
}
@media (max-width:760px) {
  .auth-card { padding:26px 20px; border-radius:22px; }
  .quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .hero { padding-top:42px; }
  .hero h1 { font-size:clamp(2.35rem,13vw,3.45rem); }
  .hero-visual { min-height:440px; }
  .hero-device { width:290px; min-height:420px; border-width:7px; border-radius:40px; padding:30px 17px 20px; }
  .device-balance { padding:18px; }
  .device-actions { gap:7px; }
  .hero-trust-card { right:0; bottom:5px; max-width:180px; font-size:.68rem; }
  .stats-strip { padding:20px; }
  .brand-wordmark { font-size:1.15rem; }
}

/* Connexion administrateur */
.admin-login-visual {
  background:
    radial-gradient(circle at 88% 8%, rgba(255,211,78,.24), transparent 17rem),
    radial-gradient(circle at 5% 92%, rgba(255,255,255,.11), transparent 20rem),
    linear-gradient(150deg,var(--navy-900),var(--emerald-600));
}
.admin-login-visual::before { background:rgba(255,211,78,.13); }
.admin-login-visual::after { background:rgba(255,255,255,.08); }
.admin-login-content p { color:rgba(255,255,255,.76); }
.security-point { color:rgba(255,255,255,.88); background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.14); }
.admin-login-form-wrap { background:linear-gradient(145deg,#F9FCF9,var(--bg-sunken)); }
.admin-login-card { padding:32px; border:1px solid var(--border); border-radius:26px; background:var(--card); box-shadow:var(--shadow-lg); }
