/* --- Responsive global layout --- */
@media (max-width: 900px) {
    .section {
        padding: 1.2rem 0.5rem !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }
    .grid, .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .special-hero-content {
        padding: 1rem 0.2rem !important;
        text-align: center !important;
    }
    .carousel img {
        max-width: 90vw !important;
        height: auto !important;
    }
}
@media (max-width: 600px) {
    h1, h2, h3 {
        font-size: 1.1em !important;
    }
    .btn {
        font-size: 1em !important;
        padding: 0.7rem 1.2rem !important;
    }
    .stat {
        font-size: 1.3rem !important;
    }
    .card {
        padding: 1rem 0.5rem !important;
    }
}
/* Section spéciale hero et carrousel */
.special-hero {
    background: linear-gradient(120deg, #f8fafc 60%, #4f46e5 100%);
    padding: 3.5rem 0 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.carousel {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.carousel img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px rgba(29,58,119,0.10);
    transition: transform 0.3s;
}
.carousel img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 4px 24px rgba(79,70,229,0.18);
}
.special-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.special-hero-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #312e81;
    margin-bottom: 1.2rem;
}
.special-hero-content p {
    font-size: 1.15rem;
    color: #312e81;
    margin-bottom: 2rem;
}
.special-hero .btn {
    background: #312e81;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2.2rem;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(49,46,129,0.08);
    transition: background 0.2s;
}
.special-hero .btn:hover {
    background: #4f46e5;
    color: #fff;
}
/* Responsive pour le formulaire d'emprunt */
/* Grille du formulaire d'emprunt : deux colonnes forcées */
body .loan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    body .loan-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .loan-grid {
        grid-template-columns: 1fr;
    }
}
/* Credynex - style.css (optimisé, moderne, responsive) */


:root {
  --primary: #4f46e5;
  --primary-dark: #1e40af;
  --bg: #f8fafc;
  --text: #1e293b;
  --card-bg: #fff;
  --card-shadow: 0 2px 12px rgba(30,64,175,0.07);
  --radius: 1.2rem;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
}

header {
  background: var(--primary-dark);
  box-shadow: var(--card-shadow);
  padding: 1rem 0 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.2s;
}
.nav-btn {
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s;
  position: relative;
  background: none;
}
.nav-btn:hover, .nav-btn.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

main {
  flex: 1;
  padding: 2rem 0 0 0;
}

footer {
  background: var(--text);
  color: #fff;
  padding: 2rem 0 1rem 0;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 2rem;
}
footer a {
  color: #cbd5e1;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,125,68,0.08);
  transition: background 0.2s, transform 0.2s;
  margin: 0.5rem 0.5rem 0.5rem 0;
  letter-spacing: 1px;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.04);
}

.section {
  padding: 3rem 0;
}
.text-center { text-align: center; }

.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #4f46e5;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(255,125,68,0.13);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--primary-dark);
}
.stat {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.success {
  background: #f8fafc;
  color: #4f46e5;
  border-radius: 0.7rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #4f46e5;
}
.error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 0.7rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #4f46e5;
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ff7d44;
  border-radius: 0.7rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #eef2ff;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #312e81;
  outline: none;
  box-shadow: 0 0 0 2px #312e8133;
}
label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  display: block;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
@media (max-width: 767px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .section { padding: 1.2rem 0; }
  .container { padding: 0 0.5rem; }
  .card {
    padding: 1rem 0.7rem;
    font-size: 0.98rem;
  }
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
}
::-webkit-scrollbar {
  width: 8px;
  background: #e5e7eb;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
} 