/* =========================================
   GCM – Gestion Credit Management
   Custom Styles
   ========================================= */

:root {
  --gcm-primary:   #1a3a5c;
  --gcm-secondary: #2ecc71;
  --gcm-accent:    #e8f4fd;
  --gcm-dark:      #0d2137;
  --gcm-light:     #f8fafc;
  --gcm-text:      #334155;
  --gcm-muted:     #64748b;
}

/* ---------- Global ---------- */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gcm-text);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

a {
  color: var(--gcm-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gcm-secondary);
}

.section-title {
  font-weight: 700;
  color: var(--gcm-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gcm-secondary);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-subtitle {
  color: var(--gcm-muted);
  font-size: 1.05rem;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--gcm-primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 0.85rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
  color: #ffffff !important;
}

.navbar-brand span {
  color: var(--gcm-secondary);
}

.nav-link {
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gcm-secondary) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}

.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='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero (Home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--gcm-dark) 0%, var(--gcm-primary) 60%, #1e5f8a 100%);
  color: #fff;
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: rgba(46, 204, 113, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.hero-tag {
  display: inline-block;
  background: rgba(46, 204, 113, 0.2);
  color: var(--gcm-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--gcm-secondary);
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gcm-secondary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
}

.hero-card .icon-circle {
  width: 52px;
  height: 52px;
  background: rgba(46, 204, 113, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn-gcm {
  background-color: var(--gcm-secondary);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  border: none;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(46,204,113,0.35);
}

.btn-gcm:hover {
  background-color: #27ae60;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46,204,113,0.45);
}

.btn-gcm-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}

.btn-gcm-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Feature Cards ---------- */
.features-section {
  padding: 90px 0;
  background: var(--gcm-light);
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid #e8edf3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,58,92,0.12);
}

.feature-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--gcm-accent), #dbeeff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-card h5 {
  font-weight: 700;
  color: var(--gcm-primary);
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--gcm-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--gcm-primary) 0%, var(--gcm-dark) 100%);
  padding: 80px 0;
  color: #fff;
}

.cta-section h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

/* ---------- Page Hero (About / Contact) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--gcm-dark) 0%, var(--gcm-primary) 100%);
  color: #fff;
  padding: 80px 0 70px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.82;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- About Page ---------- */
.about-section {
  padding: 90px 0;
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gcm-secondary);
  color: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(46,204,113,0.35);
}

.about-badge .badge-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge .badge-text {
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  opacity: 0.9;
}

.values-section {
  background: var(--gcm-light);
  padding: 80px 0;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-item h5 {
  font-weight: 700;
  color: var(--gcm-primary);
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--gcm-muted);
  font-size: 0.92rem;
}

.team-section {
  padding: 80px 0;
}

.team-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  padding-bottom: 1.5rem;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26,58,92,0.12);
}

.team-avatar {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gcm-accent), #dbeeff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gcm-primary);
}

.team-card h6 {
  font-weight: 700;
  color: var(--gcm-primary);
  margin: 1.1rem 0 0.2rem;
}

.team-card .team-role {
  color: var(--gcm-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.team-card p {
  color: var(--gcm-muted);
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem 0;
}

/* ---------- Contact Page ---------- */
.contact-section {
  padding: 90px 0;
}

.contact-info-card {
  background: var(--gcm-light);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  border: 1px solid #e8edf3;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--gcm-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-weight: 700;
  color: var(--gcm-primary);
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item p {
  color: var(--gcm-muted);
  margin: 0;
  font-size: 0.93rem;
}

.contact-form-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  border: 1px solid #e8edf3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gcm-primary);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border: 1.5px solid #d1dbe8;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.93rem;
  color: var(--gcm-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gcm-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
  outline: none;
}

.form-control.is-invalid {
  border-color: #e74c3c;
}

.form-control.is-valid {
  border-color: var(--gcm-secondary);
}

#formMessage {
  display: none;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--gcm-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand span {
  color: var(--gcm-secondary);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gcm-secondary);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-right: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--gcm-secondary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

/* ---------- Scroll Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to Top Button ---------- */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gcm-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(26,58,92,0.35);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--gcm-secondary);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
  .hero {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-badge {
    bottom: -12px;
    right: 10px;
  }

  .contact-form-card {
    padding: 1.75rem;
  }
}
