/* ========================================
   CREDIT OFFERS PAGE - CORPORATE TRUST DESIGN
   Navy #0F172A / Gold #46BD42
   ======================================== */

/* === PAGE CONTAINER === */
.credit-offers-page {
  background: #fafbfc;
  min-height: 100vh;
}

/* === HERO SECTION === */
.credit-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 50%, #0F172A 100%);
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(2.5rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
}

.credit-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(70, 189, 66, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.credit-hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.credit-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.credit-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(70, 189, 66, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(70, 189, 66, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  color: #5DD83D;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.credit-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #5DD83D;
  border-radius: 50%;
  animation: credit-hero-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes credit-hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.credit-hero__title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.credit-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.credit-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.credit-hero__stat {
  text-align: center;
}

.credit-hero__stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #5DD83D;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.credit-hero__stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.credit-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.credit-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.credit-hero__cta--primary {
  background: linear-gradient(135deg, #5DD83D 0%, #46BD42 100%);
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(93, 216, 61, 0.4);
}

.credit-hero__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(70, 189, 66, 0.5);
  text-decoration: none;
  color: white;
}

.credit-hero__cta--secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credit-hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.credit-hero__cta-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* === CREDIT CATEGORIES === */
.credit-categories {
  padding: clamp(3rem, 6vh, 5rem) 0;
}

.credit-categories__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.credit-categories__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.credit-categories__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.credit-categories__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === CREDIT CATEGORY === */
.credit-category {
  margin-bottom: clamp(3rem, 5vh, 4rem);
}

.credit-category__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #e2e8f0;
}

.credit-category__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.credit-category__icon--auto {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
}

.credit-category__icon--personal {
  background: linear-gradient(135deg, #1e293b 0%, #0F172A 100%);
}

.credit-category__icon--business {
  background: linear-gradient(135deg, #46BD42 0%, #a16207 100%);
}

.credit-category__icon-svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.credit-category__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.credit-category__subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: #475569;
}

/* === GRID 2 COLONNES === */
.credit-category__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* === CREDIT ITEM === */
.credit-item {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.credit-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #46BD42, #5DD83D);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit-item:hover {
  border-color: #46BD42;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.credit-item:hover::before {
  transform: scaleX(1);
}

.credit-item__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.credit-item__content {
  flex: 1;
  min-width: 0;
}

.credit-item__title {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.credit-item__description {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: #475569;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
}

.credit-item__rate {
  text-align: right;
  flex-shrink: 0;
  background: rgba(70, 189, 66, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.credit-item__rate-value {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: #2D7335;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.credit-item__rate-label {
  font-size: 0.6875rem;
  color: #0F172A;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credit-item__content-text {
  flex: 1;
  margin-bottom: 1rem;
}

.credit-item__content-text p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  line-height: 1.5;
  color: #475569;
  text-align: justify;
  hyphens: auto;
}

.credit-item__content-text p:last-child {
  margin-bottom: 0;
}

.credit-item__content-text-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #0F172A;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.credit-item__content-text strong {
  color: #0F172A;
  font-weight: 600;
}

.credit-item__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.credit-item__actions {
  display: flex;
  gap: 0.75rem;
}

.credit-item__action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  min-height: 2.5rem;
}

.credit-item__action--primary {
  background: linear-gradient(135deg, #46BD42 0%, #a16207 100%);
  color: white;
}

.credit-item__action--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 189, 66, 0.3);
  text-decoration: none;
  color: white;
}

.credit-item__action--secondary {
  background: transparent;
  color: #0F172A;
  border: 1px solid #e2e8f0;
}

.credit-item__action--secondary:hover {
  background: #f8fafc;
  border-color: #0F172A;
  text-decoration: none;
  color: #0F172A;
}

.credit-item__action-icon {
  width: 1rem;
  height: 1rem;
}

/* === ADVANTAGES SECTION === */
.credit-advantages {
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 50%, #0F172A 100%);
  padding: clamp(3rem, 6vh, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.credit-advantages::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(70, 189, 66, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.credit-advantages__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.credit-advantages__header {
  text-align: center;
  margin-bottom: 3rem;
}

.credit-advantages__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.credit-advantages__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
}

.credit-advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 3rem;
}

.credit-advantage {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(70, 189, 66, 0.2);
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: all 0.3s;
}

.credit-advantage:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(70, 189, 66, 0.4);
}

.credit-advantage__number {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 900;
  color: #5DD83D;
  margin-bottom: 1rem;
  line-height: 1;
}

.credit-advantage__title {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.credit-advantage__description {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.credit-advantages__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
}

.credit-advantages__stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #5DD83D;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.credit-advantages__stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* === CTA SECTION === */
.credit-cta {
  padding: clamp(3rem, 6vh, 5rem) 0;
  background: #ffffff;
}

.credit-cta__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.credit-cta__content {
  text-align: center;
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 1.125rem;
  border: 1px solid rgba(70, 189, 66, 0.2);
}

.credit-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.credit-cta__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.credit-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.credit-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: 3rem;
}

.credit-cta__button--primary {
  background: linear-gradient(135deg, #46BD42 0%, #a16207 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(70, 189, 66, 0.3);
}

.credit-cta__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(70, 189, 66, 0.4);
  text-decoration: none;
  color: white;
}

.credit-cta__button--secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.credit-cta__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transform: translateY(-2px);
  color: white;
}

.credit-cta__button-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* === RESPONSIVE === */

/* Tablets */
@media (max-width: 1024px) {
  .credit-category__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Small tablets */
@media (max-width: 768px) {
  .credit-hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .credit-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .credit-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .credit-category__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .credit-category__grid {
    grid-template-columns: 1fr;
  }

  .credit-item__header {
    flex-direction: column;
  }

  .credit-item__rate {
    text-align: left;
  }

  .credit-item__actions {
    flex-direction: column;
  }

  .credit-advantages__grid {
    grid-template-columns: 1fr;
  }

  .credit-advantages__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .credit-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .credit-cta__button {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .credit-hero__stats {
    grid-template-columns: 1fr;
  }

  .credit-advantages__stats {
    grid-template-columns: 1fr;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .credit-category__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
