/* =========================================================
   Corporate Access Capital — Site vitrine banque d'investissement
   Charte : Blanc / Anthracite / Cyan / Jaune — premium, institutionnel
========================================================= */

:root{
  --bg: #ffffff;
  --bg-alt: #f3f6f8;
  --bg-card: #ffffff;
  --bg-card-2: #f7f9fb;
  --border: rgba(51, 51, 51, 0.12);
  --border-strong: rgba(51, 51, 51, 0.24);

  /* Cyan — accentuation, interactions, liens, icônes, progression */
  --green: #8ED1FC;
  --green-soft: #DDF1FE;
  --green-dark: #0B6E99; /* dérivé foncé du cyan, utilisé pour le texte/liens sur fond blanc (accessibilité) */
  --green-glow: rgba(142, 209, 252, 0.45);

  /* Jaune — appel à l'action, boutons importants, badges d'attention */
  --cta: #FFF100;
  --cta-soft: #FFD500;

  /* Texte / structure — anthracite */
  --text: #333333;
  --text-muted: #5c5c5c;
  --text-dim: #8a8a8a;

  /* Sémantique fonctionnelle (attention = jaune foncé lisible ; négatif = rouge sourd minimal, hors palette de marque, pour l'accessibilité) */
  --danger: #8A6D00;
  --error: #C0392B;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-glow: 0 20px 40px -22px rgba(51,51,51,0.22);
  --ff-head: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(142,209,252,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 20%, rgba(255,241,0,0.06), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 120%, rgba(142,209,252,0.07), transparent 60%),
    var(--bg);
}

body::after{
  content:"";
  position: fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(51,51,51,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,51,51,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 20%, transparent 75%);
}

/* Le décor de fond (dégradés + grille) n'a pas sa place derrière les tableaux
   de bord d'administration : on le masque dès qu'un shell admin est présent. */
body:has(.admin-app)::before,
body:has(.admin-app)::after{ display:none; }

h1,h2,h3,h4{
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
}

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

a{ color: inherit; text-decoration:none; }

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

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

.gradient-text{
  background: linear-gradient(100deg, #eaf6ff 0%, var(--green) 45%, var(--green-soft) 70%, #eaf6ff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine{
  to{ background-position: -250% center; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(142,209,252,0.12);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--green-dark);
  box-shadow: 0 0 10px var(--green-dark);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.4; transform:scale(1.6); }
}

/* ---------- Buttons ---------- */
.btn{
  --btn-bg: transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--border-strong);
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary{
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-soft) 100%);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 8px 26px -8px rgba(255,213,0,0.55);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 36px -8px rgba(255,213,0,0.6); }
.btn-ghost{
  background: #fff;
  color: var(--text);
  border-color: var(--green-dark);
}
.btn-ghost:hover{ background: rgba(142,209,252,0.14); border-color: var(--green-dark); transform: translateY(-2px); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; transform:none !important; }
.btn-sm{ padding: 9px 18px; font-size:.85rem; }

/* ---------- Nav ---------- */
/* Par défaut, le nav flotte, transparent, sur la photo sombre du hero :
   texte clair. Une fois "scrolled" (fond blanc plein), le texte repasse en
   anthracite. Les pages sans hero photo utilisent directement class="nav scrolled". */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 16px 0;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, padding .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.nav .logo{ color:#fff; }
.nav-links a{ color: rgba(255,255,255,0.85); }
.nav-links a:hover{ color:#fff; }
.nav-actions > .btn-ghost{ background: rgba(255,255,255,0.1); color:#fff; border-color: rgba(255,255,255,0.55); }
.nav-actions > .btn-ghost:hover{ background: rgba(255,255,255,0.2); }
.nav-toggle{ color:#fff; }

.nav.scrolled{
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(51,51,51,0.06);
  padding: 10px 0;
}
.nav.scrolled .logo{ color: var(--text); }
.nav.scrolled .nav-links a{ color: var(--text-muted); }
.nav.scrolled .nav-links a:hover{ color: var(--text); }
.nav.scrolled .nav-actions > .btn-ghost{ background: #fff; color: var(--text); border-color: var(--green-dark); }
.nav.scrolled .nav-actions > .btn-ghost:hover{ background: rgba(142,209,252,0.14); }
.nav.scrolled .nav-toggle{ color: var(--text); }

.nav .container{ display:flex; align-items:center; justify-content:space-between; gap: 24px; }

.logo{ display:flex; align-items:center; gap:10px; font-family: var(--ff-head); font-weight:700; font-size:1.25rem; white-space:nowrap; transition: color .3s ease; }
.logo-mark{
  width: 34px; height:34px; border-radius: 10px;
  background: var(--text);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:.78rem; letter-spacing:0;
  box-shadow: 0 4px 14px rgba(51,51,51,0.25);
  flex-shrink:0;
}

.nav-links{ display:flex; align-items:center; gap: 30px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:.92rem; position:relative; padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background: var(--green); transition: width .25s ease;
}
.nav-links a:hover::after{ width:100%; }

.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-toggle{ display:none; background:none; border:none; font-size:1.4rem; cursor:pointer; transition: color .3s ease; }
.nav-mobile-actions{ display:none; }

@media (max-width: 880px){
  .nav-links{
    position:fixed; top:0; right:-100%; height:100vh; width: min(320px,80vw);
    background: #ffffff; backdrop-filter: blur(10px);
    flex-direction:column; justify-content:center; align-items:flex-start;
    padding: 40px; gap: 26px; border-left:1px solid var(--border);
    box-shadow: -20px 0 60px rgba(51,51,51,0.12);
    transition: right .4s cubic-bezier(.65,0,.35,1);
  }
  .nav-links.open{ right:0; }
  .nav-links a{ color: var(--text-muted); }
  .nav-links a:hover{ color: var(--text); }
  .nav-toggle{ display:block; }
  .nav-actions .btn-ghost{ display:none; }
  .nav-mobile-actions{
    display:flex; flex-direction:column; gap:12px; width:100%;
    margin-top:10px; padding-top:26px; border-top:1px solid var(--border);
  }
  .nav-mobile-actions .btn{ width:100%; }
  .nav-mobile-actions .btn-ghost{ color: var(--text); border-color: var(--green-dark); background:#fff; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 190px 0 120px;
  overflow:hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20,22,24,.78) 0%, rgba(20,22,24,.90) 55%, var(--bg) 100%),
    url("../images/hongkong-skyline-hero.jpg") center 30% / cover no-repeat;
}
.hero p, .hero .hint{ color: rgba(255,255,255,0.78); }
.hero .eyebrow{ color:#eaf6ff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.hero .eyebrow .dot{ background:#fff; box-shadow:0 0 10px #fff; }
.hero .btn-ghost{ background: rgba(255,255,255,0.08); color:#fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover{ background: rgba(255,255,255,0.18); }
.hero-canvas{
  position:absolute; inset:0; z-index:-1; opacity:.55;
}
.hero-locations{
  display:flex; align-items:center; gap:28px; flex-wrap:wrap;
  margin-top:52px; padding-top:28px; border-top:1px solid rgba(255,255,255,0.18);
}
.hero-locations span{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color: rgba(255,255,255,0.55);
}
.hero-locations strong{
  font-family: var(--ff-head); font-weight:600; font-size:.85rem; color: rgba(255,255,255,0.9);
  letter-spacing:.03em;
}
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items:center; }
.hero h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); color:#fff; }
.hero p.lead{ font-size: 1.1rem; max-width: 520px; }
.hero-cta{ display:flex; gap:16px; margin-top: 32px; flex-wrap:wrap; }

.hero-stats{ display:flex; gap:40px; margin-top:60px; flex-wrap:wrap; }
.stat b{
  display:block; font-family: var(--ff-head); font-size:2rem; color: var(--green);
}
.hero-stats .stat span{ font-size:.85rem; color: rgba(255,255,255,0.6); }

.hero-visual{ position:relative; height: 460px; }
.card-float{
  position:absolute;
  width: 300px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(38,40,43,.92), rgba(20,21,23,.92));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  animation: floatY 6s ease-in-out infinite;
}
.card-float.card-2{
  top: 190px; left: 60px; width: 260px;
  animation-delay: -3s;
  animation-duration: 7s;
}
.card-float .chip{
  width:42px; height:30px; border-radius:6px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  margin-bottom: 18px;
}
.card-float .num{ font-family: var(--ff-head); letter-spacing:.12em; font-size:1.05rem; margin-bottom:14px; color:#fff; }
.card-float .row{ display:flex; justify-content:space-between; font-size:.75rem; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:.05em; }
.card-float .row b{ display:block; color:#fff; font-size:.9rem; text-transform:none; margin-top:4px; }

@keyframes floatY{
  0%,100%{ transform: translateY(0) rotate(-2deg); }
  50%{ transform: translateY(-22px) rotate(1deg); }
}

.blob{
  position:absolute; border-radius:50%; filter: blur(70px); opacity:.30; z-index:-1;
  animation: blobMove 12s ease-in-out infinite;
}
.blob-1{ width:380px; height:380px; background: var(--green); top:-120px; right:-100px; }
.blob-2{ width:300px; height:300px; background: var(--cta); bottom:-100px; left:-80px; animation-delay:-6s; }
@keyframes blobMove{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(30px,-30px) scale(1.15); }
}

/* ---------- Bannière panoramique Hong Kong ---------- */
.hk-banner{
  position:relative;
  height: 460px;
  display:flex; align-items:flex-end;
  color:#fff;
  background:
    linear-gradient(0deg, rgba(16,18,20,.92) 0%, rgba(16,18,20,.45) 45%, rgba(16,18,20,.15) 100%),
    url("../images/hongkong-victoria-harbour-day.jpg") center 60% / cover no-repeat;
}
.hk-banner .container{ padding-bottom: 56px; }
.hk-banner h2{ font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 640px; color:#fff; }
.hk-banner p{ max-width: 520px; font-size: 1.02rem; color: rgba(255,255,255,0.82); }
.hk-banner .eyebrow{ color:#eaf6ff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.hk-banner .eyebrow .dot{ background:#fff; box-shadow:0 0 10px #fff; }
/* ---------- Showcase photos ---------- */
.showcase-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.showcase-card{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -24px rgba(51,51,51,.35);
}
.showcase-card img{
  width:100%; height:100%; object-fit:cover; object-position: center top;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.showcase-card:hover img{ transform: scale(1.06); }
.showcase-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(16,18,20,.92) 0%, rgba(16,18,20,.25) 55%, transparent 85%);
}
.showcase-card .showcase-text{
  position:absolute; left:0; right:0; bottom:0; padding: 24px 22px;
  z-index:1;
}
.showcase-card .showcase-eyebrow{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color: var(--green);
  margin-bottom:6px; display:block;
}
.showcase-card h4{ font-size:1.05rem; margin-bottom:6px; color:#fff; }
.showcase-card p{ font-size:.83rem; margin:0; color: rgba(255,255,255,.78); }

@media (max-width: 900px){
  .showcase-grid{ grid-template-columns: 1fr 1fr; }
  .showcase-card{ aspect-ratio: 1 / 1; }
}
@media (max-width: 560px){
  .showcase-grid{ grid-template-columns: 1fr; }
  .hk-banner{ height: 400px; }
}

/* ---------- En-tête de page interne (Forum, À propos, Carrière) ---------- */
.page-hero{
  padding: 170px 0 90px;
  text-align:center;
}
.page-hero .container{ max-width: 760px; }
.page-hero h1{ font-size: clamp(2.1rem, 4.2vw, 3rem); }
.page-hero p.lead{ max-width:600px; margin-left:auto; margin-right:auto; }

/* ---------- Forum ---------- */
.filter-row{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:46px; }
.filter-pill{
  padding: 8px 18px; border-radius:999px; border:1px solid var(--border);
  background: #fff; color: var(--text-muted); font-size:.85rem; cursor:pointer;
  transition: all .2s ease;
}
.filter-pill:hover{ border-color: var(--green-dark); color: var(--text); }
.filter-pill.active{ background: linear-gradient(135deg, var(--green), var(--green-dark)); color:#fff; border-color:transparent; font-weight:600; }

.article-card{ display:flex; flex-direction:column; }
.article-tag{
  display:inline-flex; align-self:flex-start; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em;
  color: var(--green-dark); background: rgba(142,209,252,0.14); border:1px solid var(--border);
  padding:4px 12px; border-radius:999px; margin-bottom:16px;
}
.article-card h3{ font-size:1.1rem; margin-bottom:10px; }
.article-card p{ font-size:.9rem; flex:1; }
.article-meta{
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:18px;
  padding-top:16px; border-top:1px solid var(--border); font-size:.78rem; color: var(--text-dim);
}
.article-meta .read-more{ color: var(--green-dark); font-weight:600; }

/* ---------- À propos : équipe & valeurs ---------- */
.value-card{ text-align:center; }
.value-card .card-icon{ margin-left:auto; margin-right:auto; }

.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:26px; }
@media (max-width:900px){ .team-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{ text-align:center; }
.team-avatar{
  width:84px; height:84px; border-radius:50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-head); font-size:1.5rem; font-weight:700; color:#fff;
  box-shadow: 0 8px 24px -6px var(--green-glow);
}
.team-card h4{ font-size:1.02rem; margin-bottom:4px; }
.team-card .role{ font-size:.8rem; color: var(--green-dark); margin-bottom:12px; display:block; }
.team-card p{ font-size:.85rem; }

.stat-strip{ display:flex; justify-content:space-around; flex-wrap:wrap; gap:30px; text-align:center; }
.stat-strip .stat b{ color: var(--green-dark); font-size:2.2rem; }
.stat-strip .stat span{ color: var(--text-dim); }

/* ---------- Carrière ---------- */
.job-list{ display:flex; flex-direction:column; gap:16px; max-width:820px; margin:0 auto; }
.job-item{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 26px; transition: all .25s ease;
}
.job-item:hover{ border-color: var(--green-dark); box-shadow: var(--shadow-glow); }
.job-item h4{ font-size:1rem; margin-bottom:8px; }
.job-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.job-tag{
  font-size:.72rem; color: var(--text-dim); background: var(--bg-alt);
  border:1px solid var(--border); padding:4px 11px; border-radius:999px;
}
.perk-card{ text-align:center; }
.perk-card .card-icon{ margin-left:auto; margin-right:auto; }

/* ---------- Sections ---------- */
section{ padding: 110px 0; position:relative; }
.section-head{ max-width: 640px; margin: 0 auto 60px; text-align:center; }
.section-head.left{ margin: 0 0 60px; text-align:left; }

/* Services */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }

.card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0; opacity:0;
  background: radial-gradient(circle at 30% 0%, rgba(142,209,252,.16), transparent 60%);
  transition: opacity .35s ease;
}
.card:hover{ transform: translateY(-8px); border-color: var(--green-dark); box-shadow: var(--shadow-glow); }
.card:hover::before{ opacity:1; }
.card-icon{
  width:52px; height:52px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(142,209,252,0.16); color: var(--green-dark);
  font-size: 1.3rem; margin-bottom: 22px;
  border: 1px solid var(--border);
}
.card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.card p{ font-size: .92rem; margin-bottom: 0; }

/* Checklist */
.check-list{ list-style:none; padding:0; margin: 26px 0; }
.check-list li{ display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; color: var(--text-muted); }
.check-list i{
  flex-shrink:0; width:26px; height:26px; border-radius:50%;
  background: rgba(142,209,252,.2); color: var(--green-dark);
  display:flex; align-items:center; justify-content:center; font-size:.75rem;
  margin-top:2px;
}

.visual-panel{
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  border:1px solid var(--border); border-radius: var(--radius);
  padding: 40px; position:relative; overflow:hidden;
}
.visual-panel .ring{
  position:absolute; border-radius:50%; border:1px solid var(--border-strong);
  animation: spin 20s linear infinite;
}
.ring-1{ width:280px; height:280px; top:-60px; right:-60px; }
.ring-2{ width:180px; height:180px; bottom:-40px; left:-40px; animation-direction: reverse; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.progress-item{ margin-bottom: 22px; }
.progress-item .top{ display:flex; justify-content:space-between; font-size:.85rem; margin-bottom:8px; color:var(--text-muted); }
.progress-bar{ height:8px; border-radius:999px; background: rgba(51,51,51,.08); overflow:hidden; }
.progress-bar span{
  display:block; height:100%; border-radius:999px;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  width:0;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}

/* Steps / timeline */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step{ position:relative; padding: 30px 22px; text-align:center; border-radius: var(--radius); border:1px solid var(--border); background: var(--bg-card); }
.step .step-num{
  width:46px; height:46px; border-radius:50%; margin: 0 auto 18px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-head); font-weight:700;
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color:#fff;
  box-shadow: 0 8px 20px -6px var(--green-glow);
}
.step h4{ font-size: 1rem; margin-bottom:8px; }
.step p{ font-size: .85rem; margin:0; }
.steps .step:not(:last-child)::after{
  content:""; position:absolute; top:44px; left:100%; width:24px; height:1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
@media (max-width: 900px){ .steps .step::after{ display:none; } }

/* Testimonials */
.testi-track{ display:flex; gap:26px; overflow:hidden; }
.testi-card{
  min-width: 340px; flex: 0 0 auto;
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 4px 20px rgba(51,51,51,0.05);
}
.testi-stars{ color: var(--cta-soft); margin-bottom:16px; letter-spacing:2px; filter: drop-shadow(0 1px 1px rgba(51,51,51,.25)); }
.testi-card p{ font-style: italic; color: var(--text); }
.testi-user{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.avatar{
  width:42px; height:42px; border-radius:50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff;
}
.testi-user span{ display:block; font-size:.8rem; color: var(--text-dim); }

/* CTA banner — bloc anthracite pour faire ressortir le bouton jaune */
.cta-banner{
  border-radius: 28px;
  padding: 70px 50px;
  text-align:center;
  color:#fff;
  background: linear-gradient(135deg, #333333, #202020);
  border: 1px solid rgba(255,255,255,0.08);
  position:relative; overflow:hidden;
}
.cta-banner .eyebrow{ background: rgba(255,255,255,0.12); color:#fff; border-color: rgba(255,255,255,0.25); }
.cta-banner .eyebrow .dot{ background: var(--cta); box-shadow:0 0 10px var(--cta); }
.cta-banner h2{ font-size: clamp(1.8rem,4vw,2.6rem); max-width:640px; margin: 0 auto 18px; color:#fff; }
.cta-banner p{ color: rgba(255,255,255,0.72); }
.cta-banner::before{
  content:""; position:absolute; width:500px; height:500px; background: var(--green);
  filter: blur(130px); opacity:.20; top:-200px; left:50%; transform:translateX(-50%);
}

/* Footer */
footer{ padding: 70px 0 30px; border-top:1px solid var(--border); background: var(--bg-alt); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h5{ font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color: var(--text); margin-bottom:18px; }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.footer-grid a{ color: var(--text-muted); font-size:.9rem; transition: color .2s ease; }
.footer-grid a:hover{ color: var(--green-dark); }
.social-row{ display:flex; gap:12px; margin-top:20px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:#fff;
  display:flex; align-items:center; justify-content:center; transition: all .2s ease;
}
.social-row a:hover{ background: var(--green); color:var(--text); border-color:transparent; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem; color: var(--text-dim); padding-top:24px; border-top:1px solid var(--border); }
.legal-disclaimer{ font-size:.68rem; color: rgba(138,138,138,0.7); max-width:640px; }

@media (max-width: 900px){
  .hero-grid, .grid-2{ grid-template-columns: 1fr; }
  .hero-visual{ display:none; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .grid-3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 150px 0 80px; }
  .cta-banner{ padding: 50px 24px; }
}

/* ---------- Auth pages (inscription / connexion) ---------- */
.auth-wrap{
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  padding: 140px 20px 60px;
  position:relative;
  background: var(--bg-alt);
}
.back-link{
  display:inline-flex; align-items:center; gap:8px;
  color: var(--text-muted); font-size:.85rem; margin-bottom:16px;
  transition: color .2s ease, gap .2s ease;
}
.back-link:hover{ color: var(--green-dark); gap:11px; }
.auth-card{
  width: 100%; max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 46px;
  box-shadow: 0 30px 70px -30px rgba(51,51,51,.25);
  animation: cardIn .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardIn{
  from{ opacity:0; transform: translateY(30px) scale(.98); }
  to{ opacity:1; transform:none; }
}
.auth-head{ text-align:center; margin-bottom: 34px; }
.auth-head h1{ font-size: 1.7rem; }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:640px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 18px; position:relative; }
.field.full{ grid-column: 1 / -1; }
.field label{ display:block; font-size:.82rem; color: var(--text-muted); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding: 13px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size:.95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea{ resize:vertical; min-height:110px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--green-dark); background: #fff;
  box-shadow: 0 0 0 4px rgba(142,209,252,0.28);
}
.field .toggle-pass{
  position:absolute; right:14px; top:38px; background:none; border:none; color: var(--text-dim); cursor:pointer;
}
.field small.err{ color: var(--danger); font-size: .78rem; display:none; margin-top:6px; }
.field.invalid input{ border-color: var(--danger); }
.field.invalid small.err{ display:block; }

.pw-meter{ height:5px; border-radius:999px; background: rgba(51,51,51,.08); margin-top:8px; overflow:hidden; }
.pw-meter span{ display:block; height:100%; width:0%; background: var(--danger); transition: all .3s ease; }

/* ---------- Upload de documents (KYC) ---------- */
.kyc-section{ margin: 6px 0 22px; }
.kyc-section-head{ display:flex; align-items:baseline; gap:10px; margin-bottom:4px; flex-wrap:wrap; }
.kyc-section-head h4{ font-size:.95rem; margin:0; }
.kyc-optional-badge{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.06em;
  color: var(--text-dim); background: var(--bg-alt);
  border:1px solid var(--border); padding:2px 9px; border-radius:999px;
}
.kyc-section-note{ font-size:.82rem; margin-bottom:16px; }
.kyc-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-bottom:22px; }
@media (max-width:640px){ .kyc-grid{ grid-template-columns: 1fr; } }

.dropzone{
  position:relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  padding: 22px 16px;
  text-align:center;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone:focus-visible{ border-color: var(--green-dark); background: rgba(142,209,252,0.08); outline:none; }
.dropzone.dragover{ border-color: var(--green-dark); background: rgba(142,209,252,0.14); }
.dropzone.invalid{ border-color: var(--danger); background: rgba(255,241,0,0.10); }
.dropzone.filled{ cursor:default; text-align:left; padding:16px; }

.dropzone-icon{
  width:46px; height:46px; border-radius:50%; margin:0 auto 12px;
  background: rgba(142,209,252,.2); color: var(--green-dark);
  display:flex; align-items:center; justify-content:center; font-size:1.15rem;
}
.dropzone-title{ font-weight:600; font-size:.92rem; margin-bottom:4px; color: var(--text); }
.dropzone-hint{ font-size:.8rem; margin-bottom:6px; }
.dropzone-meta{ font-size:.73rem; color: var(--text-dim); margin:0; }

.dropzone-preview{ display:flex; align-items:center; gap:14px; }
.dropzone-preview[hidden], .dropzone-empty[hidden]{ display:none; }
.dropzone-preview img{
  width:60px; height:60px; object-fit:cover; border-radius:10px;
  border:1px solid var(--border); flex-shrink:0; background: var(--bg-card-2);
}
.dropzone-file-icon{
  width:60px; height:60px; border-radius:10px; background: rgba(142,209,252,.18);
  display:flex; align-items:center; justify-content:center; font-size:1.5rem;
  color: var(--green-dark); flex-shrink:0;
}
.dropzone-file-icon[hidden], .dropzone-preview img[hidden]{ display:none; }
.dropzone-file-info{ flex:1; min-width:0; }
.dropzone-filename{
  display:block; font-weight:600; font-size:.85rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.dropzone-filesize{ display:block; font-size:.75rem; color: var(--text-dim); margin-top:2px; }
.dropzone-remove{
  background:none; border:1px solid var(--border-strong); color: var(--text-muted);
  border-radius:8px; padding:8px 11px; font-size:.78rem; cursor:pointer; flex-shrink:0;
  display:flex; align-items:center; gap:6px; transition: all .2s ease;
}
.dropzone-remove:hover{ color:var(--danger); border-color: rgba(138,109,0,.4); background: rgba(255,241,0,0.10); }

@media (max-width:480px){
  .dropzone-preview{ flex-wrap:wrap; }
  .dropzone-remove{ width:100%; justify-content:center; }
}

.check-row{ display:flex; align-items:flex-start; gap:10px; font-size:.85rem; color: var(--text-muted); margin: 8px 0 22px; }
.check-row input{ margin-top:3px; accent-color: var(--green-dark); }

.form-foot{ text-align:center; margin-top: 22px; font-size:.9rem; color: var(--text-muted); }
.form-foot a{ color: var(--green-dark); font-weight:600; }

.shake{ animation: shakeX .4s; }
@keyframes shakeX{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-10px); }
  40%{ transform: translateX(8px); }
  60%{ transform: translateX(-6px); }
  80%{ transform: translateX(4px); }
}

.alert{
  padding: 13px 16px; border-radius: 12px; font-size:.85rem; margin-bottom:20px;
  display:none; align-items:center; gap:10px;
}
.alert.show{ display:flex; }
.alert-error{ background: rgba(255,241,0,.16); border:1px solid rgba(138,109,0,.35); color:#6b5500; }
.alert-success{ background: rgba(142,209,252,.16); border:1px solid var(--border-strong); color: var(--green-dark); }

/* Success modal (account created) */
.modal-backdrop{
  position:fixed; inset:0; background: rgba(20,20,20,.55); backdrop-filter: blur(6px);
  display:none; align-items:center; justify-content:center; z-index: 200; padding:20px;
}
.modal-backdrop.show{ display:flex; }
.modal{
  width:100%; max-width: 480px; background: var(--bg-card);
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 40px; text-align:center;
  animation: cardIn .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 30px 70px -20px rgba(51,51,51,.3);
}
.check-circle{
  width:70px; height:70px; border-radius:50%; margin:0 auto 22px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display:flex; align-items:center; justify-content:center; font-size:1.8rem; color:#fff;
  box-shadow: 0 8px 26px -6px var(--green-glow);
  animation: pop .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes pop{ from{ transform: scale(0); } to{ transform: scale(1); } }
.credential-box{
  background: var(--bg-alt); border:1px dashed var(--border-strong);
  border-radius: 14px; padding: 18px; margin: 22px 0; text-align:left;
}
.credential-row{ display:flex; justify-content:space-between; align-items:center; padding: 10px 0; border-bottom:1px solid var(--border); gap: 10px; }
.credential-row:last-child{ border-bottom:none; }
.credential-row .lbl{ font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color: var(--text-dim); }
.credential-row .val{ font-family: var(--ff-head); font-size:1.05rem; letter-spacing:.04em; word-break:break-all; }
.copy-btn{ background:none; border:1px solid var(--border-strong); color: var(--green-dark); border-radius:8px; padding:6px 10px; font-size:.75rem; cursor:pointer; flex-shrink:0; }
.copy-btn:hover{ background: rgba(142,209,252,.16); }
.warn-note{ font-size:.78rem; color: var(--text-dim); margin-top:14px; }

/* ---------- Dashboard (espace client) ---------- */
.dash-shell{ display:flex; min-height:100vh; }
.sidebar{
  width: 260px; flex-shrink:0; background: var(--bg-card);
  border-right: 1px solid var(--border); padding: 28px 22px;
  position: sticky; top:0; height:100vh; display:flex; flex-direction:column;
}
.sidebar .logo{ margin-bottom: 46px; color: var(--text); }
.side-nav{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; flex:1; }
.side-nav a{
  display:flex; align-items:center; gap:12px; padding: 12px 14px; border-radius: 12px;
  color: var(--text-muted); font-size:.92rem; transition: all .2s ease;
}
.side-nav a i{ width:18px; text-align:center; }
.side-nav a:hover{ background: var(--bg-alt); color: var(--text); }
.side-nav a.active{ background: rgba(142,209,252,0.16); color: var(--green-dark); border:1px solid var(--border); }
.sidebar .logout-btn{
  display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px;
  color: var(--text-dim); background:none; border:1px solid var(--border); cursor:pointer; font-family: var(--ff-body);
  width:100%; margin-top: 12px; transition: all .2s ease;
}
.sidebar .logout-btn:hover{ color:var(--error); border-color: rgba(192,57,43,.35); background: rgba(192,57,43,.06); }

.dash-main{ flex:1; padding: 34px 40px 60px; max-width: 1140px; }
.dash-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 34px; flex-wrap:wrap; gap:16px; }
.dash-top h1{ font-size:1.5rem; margin:0; }
.dash-top p{ margin:4px 0 0; font-size:.88rem; color: var(--text-muted); }
.user-chip{ display:flex; align-items:center; gap:12px; }

.dash-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin-bottom: 30px; }
.balance-card{
  color:#fff;
  background: linear-gradient(140deg, #333333, #1e1e1e 65%);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 32px; position:relative; overflow:hidden;
}
.balance-card::before{
  content:""; position:absolute; width:300px; height:300px; background: var(--green);
  filter: blur(110px); opacity:.25; top:-120px; right:-80px;
}
.balance-card .lbl{ font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color: rgba(255,255,255,.55); }
.balance-amount{ font-family: var(--ff-head); font-size: 2.6rem; margin: 10px 0 22px; color:#fff; }
.balance-meta{ display:flex; gap:26px 30px; flex-wrap:wrap; position:relative; z-index:1; }
.balance-meta div span{ display:block; font-size:.75rem; color: rgba(255,255,255,.55); margin-bottom:4px; }
.balance-meta div b{ font-family: var(--ff-head); font-size:1rem; letter-spacing:.03em; color:#fff; display:flex; align-items:center; gap:8px; }
.balance-meta .copy-btn{ border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); padding:4px 7px; font-size:.7rem; }
.balance-meta .copy-btn:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.info-card{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.info-card h4{ font-size:.95rem; margin-bottom:18px; }
.info-row{ display:flex; justify-content:space-between; padding: 10px 0; border-bottom:1px solid var(--border); font-size:.88rem; }
.info-row:last-child{ border-bottom:none; }
.info-row span:first-child{ color: var(--text-dim); }

.quick-actions{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-bottom: 30px; }
.qa-btn{
  display:block; background: var(--bg-card); border:1px solid var(--border); border-radius: 16px;
  padding: 20px; text-align:center; cursor:pointer; color: var(--text); font-family: var(--ff-body);
  text-decoration:none; font-size:.95rem;
  transition: all .25s ease;
}
.qa-btn i{ font-size:1.3rem; color: var(--green-dark); display:block; margin-bottom:10px; }
.qa-btn:hover{ transform: translateY(-4px); border-color: var(--green-dark); box-shadow: var(--shadow-glow); }

/* ---------- Virement (parcours en plusieurs étapes) ---------- */
.vt-back{
  display:inline-flex; align-items:center; gap:8px;
  color: var(--text-muted); font-size:.85rem; margin-bottom:22px;
  transition: color .2s ease;
}
.vt-back:hover{ color: var(--green-dark); }

.stepper{ display:flex; align-items:center; margin-bottom:38px; max-width:640px; }
.stepper .st-item{ display:flex; align-items:center; gap:10px; }
.stepper .st-circle{
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  border:1px solid var(--border-strong); display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-head); font-size:.85rem; color: var(--text-dim);
  transition: all .3s ease;
}
.stepper .st-label{ font-size:.82rem; color: var(--text-dim); white-space:nowrap; }
.stepper .st-line{ flex:1; height:1px; background: var(--border); margin:0 14px; min-width:20px; }
.stepper .st-item.active .st-circle{
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color:#fff; border-color:transparent; box-shadow: 0 0 14px var(--green-glow);
}
.stepper .st-item.active .st-label{ color: var(--text); font-weight:600; }
.stepper .st-item.done .st-circle{ background: rgba(142,209,252,.2); border-color: var(--border-strong); color: var(--green-dark); }
.stepper .st-item.done .st-label{ color: var(--text-muted); }
@media (max-width:640px){ .stepper .st-label{ display:none; } .stepper{ max-width:none; } }

.wizard-card{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width:680px; box-shadow: 0 4px 24px rgba(51,51,51,0.06); }
@media (max-width:640px){ .wizard-card{ padding:24px; } }
.wizard-step{ display:none; }
.wizard-step.active{ display:block; animation: cardIn .4s ease; }
.wizard-step h3{ font-size:1.2rem; margin-bottom:6px; }
.wizard-step > p.hint{ font-size:.88rem; margin-bottom:26px; }

.recap-amount{ text-align:center; padding:20px 0 26px; border-bottom:1px solid var(--border); margin-bottom:6px; }
.recap-amount .big{ display:block; font-family: var(--ff-head); font-size:2.3rem; color: var(--green-dark); }
.recap-amount .to{ font-size:.85rem; color: var(--text-dim); margin-top:6px; }
.recap-row{ display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid var(--border); font-size:.9rem; }
.recap-row:last-child{ border-bottom:none; }
.recap-row span:first-child{ color: var(--text-dim); flex-shrink:0; }
.recap-row span:last-child{ font-weight:600; text-align:right; word-break:break-word; }

.otp-single{
  display:block; width:240px; margin: 24px auto; text-align:center;
  font-size:1.7rem; font-family: var(--ff-head); letter-spacing:.6em; padding:14px 10px 14px 24px;
  background: #fff; border:1px solid var(--border); border-radius:12px; color: var(--text);
}
.otp-single:focus{ outline:none; border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(142,209,252,0.25); }

.demo-otp-note{
  background: rgba(255,241,0,.14); border:1px dashed rgba(138,109,0,.4); border-radius:12px;
  padding:14px 16px; font-size:.82rem; color:#6b5500; text-align:center; margin-bottom:24px;
}
.demo-otp-note b{ font-family: var(--ff-head); letter-spacing:.12em; font-size:1.05rem; }

.wizard-actions{ display:flex; gap:12px; margin-top:30px; }
.wizard-actions .btn{ flex:1; }

.vt-success{ text-align:center; padding: 10px 0; }
.vt-success p{ max-width:420px; margin-left:auto; margin-right:auto; }

/* ---- Écran de progression du virement ---- */
.transfer-progress{ text-align:center; padding:20px 0; }
.transfer-progress-ring{
  width:120px; height:120px; margin:0 auto 26px; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.transfer-progress-ring svg{ width:120px; height:120px; transform:rotate(-90deg); }
.transfer-progress-ring circle{ fill:none; stroke-width:8; }
.transfer-progress-ring .track{ stroke: var(--border); }
.transfer-progress-ring .bar{
  stroke: var(--green-dark); stroke-linecap:round;
  transition: stroke-dashoffset .25s ease;
}
.transfer-progress-pct{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-head); font-size:1.5rem; font-weight:700;
}
.transfer-progress h3{ margin-bottom:8px; }
.transfer-progress p.hint{ margin-bottom:0 !important; }
.transfer-progress-status{ font-size:.85rem; color: var(--text-dim); min-height:20px; }

.pending-icon{
  width:70px; height:70px; border-radius:50%; margin:0 auto 22px;
  background: rgba(255,241,0,.22); color: var(--danger);
  display:flex; align-items:center; justify-content:center; font-size:1.8rem;
}
.pending-reference{
  font-family: monospace; font-size:1.05rem; background: var(--bg-card-2);
  border:1px dashed var(--border-strong); border-radius:10px; padding:12px 16px;
  display:inline-block; margin:16px 0; letter-spacing:.05em;
}

/* ---------- Carte bancaire virtuelle (espace client) ---------- */
.card-scene{ perspective:1500px; max-width:400px; margin:0 auto; }
.card-flip{
  position:relative; width:100%; aspect-ratio:1.586/1; cursor:pointer;
  transform-style:preserve-3d; transition:transform .7s cubic-bezier(.4,.2,.2,1);
}
.card-flip.flipped{ transform:rotateY(180deg); }
.card-face{
  position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden;
  border-radius:18px; color:#fff; box-shadow:0 20px 50px -18px rgba(51,51,51,.55);
  overflow:hidden;
}
.card-face.front{
  background: linear-gradient(135deg, #333333 0%, #1c1c1c 55%, #0B6E99 150%);
  padding:24px 26px; display:flex; flex-direction:column; justify-content:space-between;
}
.card-face.back{ background: linear-gradient(135deg, #1c1c1c 0%, #333333 100%); transform:rotateY(180deg); }
.card-top-row{ display:flex; justify-content:space-between; align-items:flex-start; }
.card-brand{ display:flex; align-items:center; gap:8px; font-family:var(--ff-head); font-weight:700; font-size:1rem; }
.card-brand .logo-mark{ width:26px; height:26px; font-size:.6rem; border-radius:7px; }
.card-chip{ width:42px; height:32px; border-radius:6px; background:linear-gradient(135deg,#FFE9A8,#D9B65C); margin-top:14px; }
.card-number{ font-family:var(--ff-head); font-size:1.25rem; letter-spacing:.14em; margin:16px 0 4px; }
.card-bottom-row{ display:flex; justify-content:space-between; align-items:flex-end; }
.card-bottom-row span{ display:block; font-size:.65rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.55); margin-bottom:4px; }
.card-bottom-row b{ font-family:var(--ff-head); font-size:.85rem; letter-spacing:.03em; }
.card-status-ribbon{
  position:absolute; top:16px; right:-38px; transform:rotate(35deg);
  background: var(--danger); color:#fff; font-size:.64rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; padding:5px 42px;
  box-shadow:0 4px 10px rgba(0,0,0,.35); z-index:2;
}
.card-face.front.is-active .card-status-ribbon{ display:none; }
.card-stripe{ height:44px; background:#111; margin-top:24px; }
.card-signature{
  margin:26px 22px 0; height:36px; border-radius:4px;
  background:repeating-linear-gradient(45deg,#e9e9e9,#e9e9e9 4px,#f4f4f4 4px,#f4f4f4 8px);
  display:flex; align-items:center; padding:0 14px; font-size:.68rem; color:#555;
}
.card-back-note{ margin:18px 22px 0; font-size:.68rem; line-height:1.5; color:rgba(255,255,255,.55); }
.card-flip-actions{ text-align:center; margin-top:18px; }

.table-card{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 10px 0; }
.table-card h4{ padding: 18px 26px 0; font-size:.95rem; }
table{ width:100%; border-collapse: collapse; }
thead th{ text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color: var(--text-dim); padding: 14px 26px; }
tbody td{ padding: 14px 26px; font-size:.87rem; border-top:1px solid var(--border); }
tbody tr{ animation: rowIn .4s ease both; }
@keyframes rowIn{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }
.tx-amount.in{ color: var(--green-dark); }
.tx-amount.out{ color: var(--danger); }
.tx-badge{ font-size:.72rem; padding:4px 10px; border-radius:999px; border:1px solid var(--border); color: var(--text-dim); }

.dash-topbar{
  display:none;
  position: fixed; top:0; left:0; right:0; z-index:150;
  align-items:center; justify-content:space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.dash-topbar .logo{ font-size:1.1rem; }
.dash-topbar button{
  background:none; border:1px solid var(--border-strong); color: var(--text);
  width:40px; height:40px; border-radius:10px; font-size:1.1rem; cursor:pointer;
}

@media (max-width: 980px){
  .dash-topbar{ display:flex; }
  .sidebar{
    position: fixed; top:0; left: -100%; z-index: 160; width: min(300px, 82vw);
    height: 100vh; transition: left .35s cubic-bezier(.65,0,.35,1);
    box-shadow: 40px 0 80px rgba(51,51,51,.15);
  }
  .sidebar.open{ left:0; }
  .sidebar-backdrop{
    display:none; position:fixed; inset:0; background: rgba(20,20,20,.5); z-index:155;
  }
  .sidebar-backdrop.show{ display:block; }
  .dash-grid{ grid-template-columns: 1fr; }
  .quick-actions{ grid-template-columns: 1fr 1fr; }
  .dash-main{ padding: 100px 20px 60px; }
}

/* Loader */
#page-loader{
  position:fixed; inset:0; z-index:999; background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s ease, visibility .5s ease;
}
#page-loader.hide{ opacity:0; visibility:hidden; }
.loader-ring{
  width:48px; height:48px; border-radius:50%;
  border: 3px solid rgba(142,209,252,0.25); border-top-color: var(--green-dark);
  animation: spin 0.9s linear infinite;
}

::selection{ background: var(--green); color:var(--text); }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--green-dark); border-radius:10px; }

/* =========================================================
   Back-office administrateur
   Par défaut, le back-office suit la charte claire ci-dessus.
   Un mode sombre optionnel est proposé (mêmes accents cyan/jaune).
========================================================= */
.admin-app{ min-height:100vh; }

/* Espace Administrateur & Espace Client : le jaune (couleur CTA) est
   remplacé par le cyan de la charte pour tous les boutons, badges et
   éléments décoratifs qui l'utilisaient comme couleur principale. Le
   jaune reste réservé aux éléments d'alerte/attention réelle (statuts
   en attente, messages d'erreur, cartes d'avertissement, notes de
   sécurité), qui ne dépendent pas de la variable --cta et ne sont donc
   pas concernés par cette redéfinition. Le site vitrine public et les
   pages d'inscription/connexion client conservent le jaune d'origine. */
.admin-app,
body.client-app{
  --cta: var(--green);
  --cta-soft: var(--green-soft);
}
.admin-app .btn-primary,
body.client-app .btn-primary{
  box-shadow: 0 8px 26px -8px var(--green-glow);
}
.admin-app .btn-primary:hover,
body.client-app .btn-primary:hover{
  box-shadow: 0 14px 36px -8px var(--green-glow);
}
body.client-app::before{
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(142,209,252,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 20%, rgba(142,209,252,0.06), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 120%, rgba(142,209,252,0.07), transparent 60%),
    var(--bg);
}

body[data-theme="dark"]{
  --bg: #1c1c1c;
  --bg-alt: #232323;
  --bg-card: #262626;
  --bg-card-2: #2d2d2d;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.22);
  --text: #f1f1f1;
  --text-muted: #c7c7c7;
  --text-dim: #979797;
  --shadow-glow: 0 20px 40px -20px rgba(0,0,0,0.55);
}
body[data-theme="dark"] .logout-btn{ color:var(--text-dim); }
body[data-theme="dark"] .dash-topbar{ background: rgba(38,38,38,0.94); }
body[data-theme="dark"] ::-webkit-scrollbar-track{ background: var(--bg); }
body[data-theme="dark"] .otp-single,
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select{ background: var(--bg-card-2); }

.admin-topbar-row{ display:flex; align-items:center; gap:14px; }
.theme-toggle{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); cursor:pointer; font-size:1rem;
  display:flex; align-items:center; justify-content:center; transition: all .2s ease;
}
.theme-toggle:hover{ border-color: var(--green-dark); color: var(--green-dark); }

.role-badge{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; font-weight:700;
  padding:4px 10px; border-radius:999px; display:inline-block;
}
.role-badge.super_admin{ background: rgba(142,209,252,.22); color: var(--green-dark); border:1px solid var(--border-strong); }
.role-badge.admin{ background: var(--green-dark); color:#fff; border:1px solid var(--green-dark); }
.role-badge.support{ background: rgba(51,51,51,.08); color: var(--text-muted); border:1px solid var(--border); }
body[data-theme="dark"] .role-badge.support{ background: rgba(255,255,255,.08); }

.admin-user-chip{ display:flex; align-items:center; gap:10px; }
.admin-user-chip .name{ font-weight:600; font-size:.88rem; }

/* ---- Stat cards ---- */
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:18px; margin-bottom:28px; }
.stat-card{
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:20px 22px; display:flex; flex-direction:column; gap:10px;
}
.stat-card .stat-icon{
  width:38px; height:38px; border-radius:10px; background: rgba(142,209,252,.2); color: var(--green-dark);
  display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.stat-card .stat-value{ font-family: var(--ff-head); font-size:1.7rem; font-weight:700; }
.stat-card .stat-label{ font-size:.78rem; color: var(--text-dim); }
.stat-card.warn .stat-icon{ background: rgba(255,241,0,.28); color: var(--danger); }

.chart-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:20px; margin-bottom:28px; }
@media (max-width:900px){ .chart-grid{ grid-template-columns:1fr; } }
.chart-card{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding:24px; }
.chart-card h4{ font-size:.95rem; margin-bottom:18px; }
.chart-card canvas{ max-height:260px; }
.demo-tag{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color: var(--text-dim);
  border:1px solid var(--border); padding:2px 9px; border-radius:999px; margin-left:8px; vertical-align:middle;
}

/* ---- Toolbar / recherche & filtres ---- */
.table-toolbar{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:20px; }
.search-input{ position:relative; flex:1; min-width:220px; }
.search-input i{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-dim); }
.search-input input{
  width:100%; padding:11px 16px 11px 38px; border-radius:10px; background: var(--bg-card);
  border:1px solid var(--border); color:var(--text); font-family:var(--ff-body); font-size:.9rem;
}
.search-input input:focus{ outline:none; border-color:var(--green-dark); }
.filter-select{
  padding:11px 14px; border-radius:10px; background: var(--bg-card); border:1px solid var(--border);
  color:var(--text); font-family:var(--ff-body); font-size:.87rem;
}

/* ---- Badges de statut ----
   Cyan = positif/actif · Jaune = attention/en cours · Rouge sourd = bloqué/négatif
   (le rouge n'appartient pas à la palette de marque ; il est réservé, à dessein,
   aux deux seuls statuts qui doivent se distinguer sans ambiguïté d'une simple
   attente, pour l'accessibilité et la clarté d'un back-office financier). */
.status-pill{ font-size:.72rem; font-weight:600; padding:4px 11px; border-radius:999px; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.status-pill::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-active, .status-confirmed{ background: rgba(142,209,252,.22); color: var(--green-dark); }
.status-suspended, .status-rejected{ background: rgba(192,57,43,.12); color: var(--error); }
.status-pending, .status-waiting{ background: rgba(255,241,0,.28); color: var(--danger); }
.status-cancelled{ background: rgba(51,51,51,.08); color: var(--text-dim); }
body[data-theme="dark"] .status-cancelled{ background: rgba(255,255,255,.08); }

/* ---- Tables admin ---- */
.admin-table-card{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; }
.admin-table-wrap{ overflow-x:auto; }
.admin-table-card table{ width:100%; min-width:760px; }
.admin-table-card thead th{ padding:14px 20px; }
.admin-table-card tbody td{ padding:14px 20px; vertical-align:middle; }
.admin-table-card tbody tr:hover{ background: rgba(142,209,252,.06); }
.row-link{ color: var(--green-dark); font-weight:600; font-size:.85rem; }
.icon-btn{
  width:32px; height:32px; border-radius:8px; border:1px solid var(--border); background:none;
  color: var(--text-muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  transition: all .2s ease; margin-right:4px;
}
.icon-btn:hover{ border-color: var(--green-dark); color: var(--green-dark); }

/* ---- Fiche client ---- */
.detail-grid{ display:grid; grid-template-columns: 2fr 1fr; gap:22px; align-items:start; }
@media (max-width:1000px){ .detail-grid{ grid-template-columns:1fr; } }
.detail-header{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding:24px; margin-bottom:22px;
}
.detail-identity{ display:flex; align-items:center; gap:16px; }
.detail-identity .avatar{ width:58px; height:58px; font-size:1.3rem; }
.section-card{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding:24px; margin-bottom:22px; }
.section-card h4{ font-size:.95rem; margin-bottom:18px; display:flex; align-items:center; gap:8px; }

.timeline-item{ display:flex; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); font-size:.85rem; }
.timeline-item:last-child{ border-bottom:none; }
.timeline-item i{ color: var(--green-dark); margin-top:2px; }
.timeline-item .meta{ color: var(--text-dim); font-size:.78rem; }

.note-item{ background: var(--bg-card-2); border:1px solid var(--border); border-radius:10px; padding:14px 16px; margin-bottom:12px; }
.note-item .meta{ font-size:.72rem; color:var(--text-dim); margin-top:6px; }

.doc-card{ background: var(--bg-card-2); border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:14px; }
.doc-card:last-child{ margin-bottom:0; }
.doc-card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.doc-card-title{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:.95rem; }
.doc-card-title i{ color: var(--green-dark); font-size:1.05rem; }
.doc-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.doc-verify-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }

.action-btn-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:480px){ .action-btn-grid{ grid-template-columns:1fr; } }
.action-btn-grid .btn{ font-size:.85rem; padding:11px 14px; }

.locked-note{
  display:flex; gap:10px; align-items:flex-start; font-size:.78rem; color:var(--text-dim);
  background: rgba(255,241,0,.10); border:1px dashed rgba(138,109,0,.35); border-radius:10px; padding:12px 14px; margin-top:12px;
}
.locked-note i{ color: var(--danger); margin-top:2px; }

.hash-chip{
  font-family: monospace; font-size:.75rem; background: var(--bg-card-2); border:1px solid var(--border);
  padding:6px 10px; border-radius:8px; word-break:break-all; color:var(--text-dim);
}

/* ---- Journal d'activité ---- */
.log-item{ display:flex; gap:16px; padding:16px 0; border-bottom:1px solid var(--border); }
.log-item:last-child{ border-bottom:none; }
.log-item .log-icon{
  width:36px; height:36px; border-radius:50%; background: rgba(142,209,252,.2); color:var(--green-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.85rem;
}
.log-item .log-action{ font-weight:600; font-size:.9rem; }
.log-item .log-details{ font-size:.83rem; color:var(--text-muted); margin-top:2px; }
.log-item .log-meta{ font-size:.75rem; color:var(--text-dim); margin-top:6px; }

.perm-disabled{ opacity:.4; cursor:not-allowed !important; }

/* ---- Modale d'action compte ---- */
.admin-app .modal{ text-align:left; }
.admin-app .modal h2{ text-align:center; margin-bottom:6px; }
.admin-app .modal > p{ text-align:center; }
