/* =========================================================
   TASNIM WALLET — MODERN DESIGN v2
   Overrides style.css — chargé après pour la priorité CSS
   ========================================================= */

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --tw-primary:       #2386ed;
  --tw-primary-dark:  #1563d6;
  --tw-green:         #14c507;
  --tw-green-dark:    #10a806;
  --tw-yellow:        #fecd37;
  --tw-dark:          #0f172a;
  --tw-dark-alt:      #1e293b;
  --tw-slate:         #475569;
  --tw-muted:         #94a3b8;
  --tw-light:         #f8fafc;
  --tw-border:        #e2e8f0;
  --tw-radius-sm:     10px;
  --tw-radius:        16px;
  --tw-radius-lg:     24px;
  --tw-shadow:        0 4px 24px rgba(35, 134, 237, 0.10);
  --tw-shadow-hover:  0 16px 48px rgba(35, 134, 237, 0.20);
}

/* ----------------------------------------------------------
   Typographie générale
   ---------------------------------------------------------- */
body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--tw-dark-alt);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Raleway', sans-serif;
}

a {
  color: var(--tw-primary);
}

a:hover {
  color: var(--tw-primary-dark);
}

/* ----------------------------------------------------------
   Header / Navbar
   ---------------------------------------------------------- */
#header {
  height: 72px;
  background: rgba(35, 134, 237, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(15, 23, 42, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#header.header-transparent {
  background: rgba(35, 134, 237, 0.96);
}

#header.header-scrolled {
  background: rgba(21, 99, 214, 0.98);
  height: 66px;
}

#header .logo h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Navbar links */
.navbar a,
.navbar a:focus {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  margin-left: 2px;
  transition: all 0.2s ease;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  color: #fff;
}

/* Mobile menu */
.navbar-mobile {
  background: var(--tw-dark);
}

.navbar-mobile ul {
  background: #fff;
  border-radius: 16px;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  color: var(--tw-dark-alt);
  font-weight: 500;
  border-radius: 8px;
  margin: 2px 8px;
  padding: 10px 16px;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  background: rgba(35, 134, 237, 0.08);
  color: var(--tw-primary);
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
#hero .carousel-container-fluid::before {
  background: linear-gradient(
    150deg,
    rgba(9, 25, 64, 0.80) 0%,
    rgba(15, 50, 110, 0.65) 100%
  );
}

#hero h2 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  #hero h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
}

#hero p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

#hero .btn-get-started {
  background: linear-gradient(135deg, #14c507 0%, #10a806 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 38px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(20, 197, 7, 0.42);
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}

#hero .btn-get-started:hover {
  background: linear-gradient(135deg, #10a806 0%, #0d9005 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(20, 197, 7, 0.52);
  color: #fff;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Section générale
   ---------------------------------------------------------- */
section {
  padding: 90px 0;
}

/* Alternance légère des sections */
#services { background: #fff; }
#app.cta  { background: linear-gradient(135deg, #0d1b36, #1a3055) !important; }
#cta      { background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark)); }
#pricing  { background: var(--tw-light); }
#about    { background: #fff; }
#contact  { background: var(--tw-light); }

/* ----------------------------------------------------------
   Section Titles
   ---------------------------------------------------------- */
.section-title h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--tw-muted);
  font-family: 'Inter', 'Poppins', sans-serif;
}

.section-title h2::after {
  background: linear-gradient(90deg, var(--tw-primary), var(--tw-green));
  height: 2px;
  width: 80px;
}

.section-title p {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--tw-dark);
  /* gradient text */
  background: linear-gradient(135deg, var(--tw-dark) 30%, var(--tw-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------
   Service & Pricing Cards (icon-box)
   Passage de l'icône positionnée à gauche → icône en haut
   ---------------------------------------------------------- */
.services .icon-box {
  padding: 32px 28px 28px;
  border-radius: var(--tw-radius);
  background: #fff;
  box-shadow: var(--tw-shadow);
  border: 1px solid rgba(35, 134, 237, 0.07);
  transition: all 0.32s ease;
  position: relative;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Barre de couleur en haut de la carte */
.services .icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tw-primary), var(--tw-green));
  border-radius: 3px 3px 0 0;
}

.services .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--tw-shadow-hover);
  border-color: rgba(35, 134, 237, 0.18);
}

/* Icône : repositionnement static, style "badge" */
.services .icon {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(35, 134, 237, 0.10), rgba(20, 197, 7, 0.08));
  margin-bottom: 20px;
  flex-shrink: 0;
}

.services .icon i {
  font-size: 28px !important;
  line-height: 1;
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.services .icon img {
  width: 34px !important;
  height: 34px !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
}

/* Titre : supprimer l'ancien margin-left */
.services .title {
  margin-left: 0;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--tw-dark);
  line-height: 1.3;
}

.services .title a {
  color: var(--tw-dark);
  transition: color 0.2s;
}

.services .title a:hover {
  color: var(--tw-primary);
}

/* Description : supprimer float + ancien margin-left */
.services .description {
  float: none !important;
  margin-left: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tw-slate);
  flex: 1;
}

/* ----------------------------------------------------------
   CTA Section principale (Rejoignez les utilisateurs…)
   ---------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--tw-primary-dark), var(--tw-primary));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Effet décoratif cercle */
.cta::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 450px;
  height: 450px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.7;
}

/* Bouton CTA sur fond bleu → blanc */
.cta-btn {
  background: #fff;
  color: var(--tw-primary) !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  padding: 13px 34px;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.cta-btn:hover {
  background: var(--tw-green);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 197, 7, 0.42);
}

/* ----------------------------------------------------------
   Section App Download (#app)
   ---------------------------------------------------------- */
#app.cta p {
  color: rgba(255, 255, 255, 0.82);
}

#app.cta h4 {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

/* ----------------------------------------------------------
   About
   ---------------------------------------------------------- */
.about .content p {
  color: var(--tw-slate);
  line-height: 1.85;
  font-size: 15px;
}

.about .content ul li {
  color: var(--tw-dark-alt);
  font-size: 15px;
}

.about .content ul i {
  color: var(--tw-green);
  font-size: 18px;
}

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact .info {
  background: #fff;
  border-radius: var(--tw-radius);
  padding: 32px 28px;
  box-shadow: var(--tw-shadow);
  border: 1px solid var(--tw-border);
}

.contact .info i {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(35, 134, 237, 0.12), rgba(20, 197, 7, 0.08));
  color: var(--tw-primary);
  border-radius: 12px;
  font-size: 19px;
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-green));
  color: #fff;
}

/* Champs de formulaire */
.contact .form-control,
.contact input.form-control,
.contact textarea.form-control {
  border: 1.5px solid var(--tw-border);
  border-radius: var(--tw-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  background: var(--tw-light);
  color: var(--tw-dark-alt);
  transition: all 0.22s ease;
  box-shadow: none !important;
}

.contact .form-control:focus,
.contact input.form-control:focus,
.contact textarea.form-control:focus {
  border-color: var(--tw-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 134, 237, 0.12) !important;
}

/* Bouton d'envoi */
.contact .btn.cta-btn,
.contact button[type="submit"] {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  color: #fff !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 13px 42px;
  border: none;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(35, 134, 237, 0.32);
  letter-spacing: 0.3px;
}

.contact .btn.cta-btn:hover,
.contact button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--tw-green), var(--tw-green-dark));
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 197, 7, 0.40);
  border-radius: 50px;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
#footer {
  background: var(--tw-dark);
  color: rgba(255, 255, 255, 0.70);
  padding: 56px 0 32px;
  font-size: 14px;
}

#footer h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  /* Reset gradient text du style.css si besoin */
  -webkit-text-fill-color: #fff;
}

#footer p {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}

#footer .social-links a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.80);
  transition: all 0.3s ease;
}

#footer .social-links a:hover {
  background: var(--tw-green);
  border-color: var(--tw-green);
  color: #fff;
  transform: translateY(-3px);
}

#footer .copyright {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

#footer .credits {
  color: rgba(255, 255, 255, 0.32);
  font-size: 11px;
}

#footer .credits a {
  color: var(--tw-primary);
}

#footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

#footer a:hover {
  color: var(--tw-green);
}

/* ----------------------------------------------------------
   Back to top
   ---------------------------------------------------------- */
.back-to-top {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-green));
  box-shadow: 0 4px 18px rgba(35, 134, 237, 0.42);
  width: 44px;
  height: 44px;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--tw-green), var(--tw-primary));
  box-shadow: 0 8px 24px rgba(20, 197, 7, 0.42);
}

/* ----------------------------------------------------------
   Utilitaires — espacement & responsive
   ---------------------------------------------------------- */
@media (max-width: 991px) {
  .section-title p {
    font-size: 26px;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 767px) {
  .section-title p {
    font-size: 22px;
    letter-spacing: -0.3px;
  }

  .services .icon-box {
    padding: 24px 20px 20px;
  }

  section {
    padding: 60px 0;
  }

  .cta {
    padding: 60px 0;
  }
}
