/* Palette de couleurs Fintech */
:root {
  --primary-blue: #0A2540;
  --secondary-blue: #1E3A5F;
  --accent-green: #00D4AA;
  --light-gray: #F7F9FC;
  --dark-gray: #425466;
  --white: #FFFFFF;
  --success-green: #10B981;
  --warning-orange: #F59E0B;
  --error-red: #EF4444;
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  background-color: var(--white);
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-brand i {
  font-size: 1.8rem;
  color: var(--accent-green);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-green);
  background-color: rgba(0, 212, 170, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--accent-green);
  font-weight: 600;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent-green), #00B894);
  border: none;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 212, 170, 0.2);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 212, 170, 0.3);
  background: linear-gradient(135deg, #00B894, var(--accent-green));
}

.navbar-toggler {
  border: 2px solid var(--accent-green);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300D4AA' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-green), #00B894);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

/* Stats Section */
.stats-section {
  background-color: var(--light-gray);
  padding: 4rem 0;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form Styles */
.form-section {
  background-color: var(--white);
  padding: 3rem 0;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-control, .form-select {
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.testimonial-stars {
  color: #FFC107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* Trust Badges */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Services Grid */
.service-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

/* Alert Messages */
.alert-custom {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: #D1FAE5;
  color: #065F46;
}

.alert-error {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* Recap Page */
.recap-container {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.recap-header {
  background: linear-gradient(135deg, var(--accent-green), #00B894);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.recap-body {
  padding: 2.5rem;
}

.recap-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--light-gray);
}

.recap-section:last-child {
  border-bottom: none;
}

.recap-section h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.recap-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.recap-item:last-child {
  border-bottom: none;
}

.recap-label {
  font-weight: 600;
  color: var(--dark-gray);
}

.recap-value {
  color: var(--primary-blue);
}

.highlight-box {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.highlight-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-green);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .recap-body {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 0.2rem;
}

/* Success Checkmark */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--success-green);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--success-green);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px var(--success-green); }
}
