/* ═══════════════════════════════════════════════════════════════════════════
ZYVER WEB — DESIGN SYSTEM (donate)
Fichier : css/donate.css
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --scaffold-bg: #0a0d14;
  --surface: #101422;
  --surface-card: #181e2e;
  --on-surface: #e8edf2;
  --on-surface-sec: #8a9bb0;
  --divider: #2a3d55;
  --success: #00c2a8;
  --primary: #2b8fff;
  --grad-start: #4dffd2;
  --grad-mid: #2b8fff;
  --grad-end: #5b3fe8;
  --sp-s: 8px;
  --sp-m: 16px;
  --sp-l: 24px;
  --sp-xl: 32px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-full: 100px;
}

:root[data-theme="light"] {
  --scaffold-bg: #f8faff;
  --surface: #eef2fb;
  --surface-card: #ffffff;
  --on-surface: #1c2a3a;
  --on-surface-sec: #5a6b7c;
  --divider: #c5d0de;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--scaffold-bg);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── HEADER & NAV ──────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
}
:root[data-theme="light"] header {
  background: rgba(248, 250, 255, 0.92);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--sp-m) var(--sp-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-m);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
}
.nav-logo img {
  width: 32px;
  height: 32px;
}
.nav-logo span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-logo small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.6;
  -webkit-text-fill-color: var(--on-surface-sec);
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: var(--sp-xs);
  list-style: none;
  flex-wrap: wrap;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-m);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-sec);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nav-link:hover {
  color: var(--primary);
  background: rgba(43, 143, 255, 0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
}

.lang-switch {
  position: relative;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--surface-card);
  border: 1px solid var(--divider);
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle svg {
  width: 16px;
  height: 16px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  list-style: none;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 50;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu li {
  padding: 8px 12px;
  border-radius: var(--r-s);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--on-surface-sec);
}
.lang-menu li:hover,
.lang-menu li.active {
  background: rgba(43, 143, 255, 0.08);
  color: var(--primary);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--surface-card);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--on-surface);
  position: relative;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ── SPLASH SCREEN ─────────────────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(43, 143, 255, 0.08),
    var(--scaffold-bg) 70%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px var(--sp-l) 60px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#splash[hidden] {
  display: none;
}
#splash.visible {
  opacity: 1;
}
#splash.leaving {
  opacity: 0;
}
.splash-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  animation: splashIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes splashIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.splash-lottie {
  width: 120px;
  height: 120px;
}
.splash-brand {
  text-align: center;
}
.splash-brand .zyver-text {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.splash-brand .tagline {
  font-size: 12px;
  color: var(--on-surface-sec);
  margin-top: 4px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}
.splash-rcbg {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.5;
}

/* ── PAGE HERO ─────────────────────────────────────────────────────────── */
.page-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-l) var(--sp-m);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: var(--sp-s);
}
.page-hero .gradient {
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  color: var(--on-surface-sec);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── DONATE CONTAINER & CARDS ──────────────────────────────────────────── */
.donate-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-l) var(--sp-l) 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-l);
  flex: 1;
}

.donate-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: var(--sp-l);
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.donate-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  flex-wrap: wrap;
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg {
  width: 24px;
  height: 24px;
}
.mobile-icon {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
}
.bank-icon {
  background: rgba(43, 143, 255, 0.15);
  color: var(--primary);
}
.card-icon {
  background: rgba(0, 194, 168, 0.15);
  color: var(--success);
}

.card-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.card-desc {
  font-size: 13.5px;
  color: var(--on-surface-sec);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   CORRECTION ICI : BOUTON D'AIDE & TOOLTIP
   On cible le wrapper (.help-wrapper) au survol, et le frère adjacent (+) au focus.
═══════════════════════════════════════════════════════════════════════ */
.help-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.help-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--on-surface-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
html[dir="rtl"] .help-btn {
  margin-left: 0;
  margin-right: 8px;
}
.help-btn:hover,
.help-btn:focus {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(43, 143, 255, 0.1);
  outline: none;
}
.help-btn svg {
  width: 14px;
  height: 14px;
}

.tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 20;
  pointer-events: none;
}
html[dir="rtl"] .tooltip {
  right: auto;
  left: 0;
}
.tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--surface-card);
  border-left: 1px solid var(--divider);
  border-top: 1px solid var(--divider);
  transform: rotate(45deg);
}
html[dir="rtl"] .tooltip::before {
  right: auto;
  left: 6px;
  border-left: none;
  border-right: 1px solid var(--divider);
  border-top: 1px solid var(--divider);
}

/* C'est cette règle qui fait fonctionner le survol et le clic ! */
.help-wrapper:hover .tooltip,
.help-btn:focus + .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* ═══════════════════════════════════════════════════════════════════════ */

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  padding: var(--sp-m);
  margin-top: auto;
}
.info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface-sec);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.info-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-s);
}
.info-value {
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0.5px;
  word-break: break-all;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: var(--r-s);
  padding: 6px 10px;
  color: var(--on-surface-sec);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn svg {
  width: 14px;
  height: 14px;
}
.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(43, 143, 255, 0.05);
}
.copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
  background: rgba(0, 194, 168, 0.05);
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
  margin-top: var(--sp-s);
}
.steps-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--on-surface-sec);
  line-height: 1.5;
}
html[dir="rtl"] .steps-list li {
  padding-left: 0;
  padding-right: 20px;
}
.steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
html[dir="rtl"] .steps-list li::before {
  left: auto;
  right: 0;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: var(--sp-xl) var(--sp-l) var(--sp-l);
  margin-top: auto;
}
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
}
.footer-brand .logos {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
}
.footer-brand .logos img {
  height: 38px;
}
.footer-brand .logos .separator {
  width: 1px;
  height: 26px;
  background: var(--divider);
}
.footer-brand p {
  color: var(--on-surface-sec);
  font-size: 13px;
  max-width: 350px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--sp-m);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: var(--sp-s);
}
.footer-col ul a {
  color: var(--on-surface-sec);
  font-size: 13px;
  transition: color 0.2s ease;
  display: inline-block;
}
.footer-col ul a:hover {
  color: var(--primary);
}
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: var(--sp-l);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-m);
  font-size: 12px;
  color: var(--on-surface-sec);
}
.footer-bottom .rcbg {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
}
.footer-bottom .rcbg img {
  height: 20px;
  opacity: 0.7;
}

/* ── ANIMATIONS & UTILS ────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-l);
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  .footer-brand .logos {
    justify-content: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: var(--sp-m);
    border-bottom: 1px solid var(--divider);
    gap: var(--sp-xs);
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-l);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col {
    margin: 0 auto;
    max-width: 300px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom .rcbg {
    justify-content: center;
  }
  .donate-container {
    grid-template-columns: 1fr;
    padding: var(--sp-m);
  }
  .tooltip {
    width: 240px;
    right: -10px;
  }
  html[dir="rtl"] .tooltip {
    left: -10px;
  }
}
