/* ===== VENDEENE FINANCE - STYLES GLOBAUX ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
  /* Couleurs extraites du logo SOVEFI */
  --primary: #1a237e;        /* Bleu marine logo */
  --primary-dark: #0d1456;   /* Bleu très foncé */
  --primary-light: #283593;  /* Bleu intermédiaire */
  --green: #2e7d32;          /* Vert logo (flèches) */
  --green-light: #388e3c;    /* Vert clair */
  --accent: #f57c00;         /* Orange logo */
  --accent-light: #fb8c00;   /* Orange clair */
  --cyan: #0288d1;           /* Cyan logo */
  --white: #ffffff;
  --gray-light: #f4f6fb;
  --gray: #8a9ab0;
  --gray-dark: #4a5568;
  --text: #1a1e2e;
  --text-light: #5a6480;
  --danger: #e53e3e;
  --success: #2e7d32;
  --border: #e0e4f0;
  --shadow: 0 4px 24px rgba(26,35,126,0.10);
  --shadow-lg: 0 12px 48px rgba(26,35,126,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', sans-serif;
  --nav-height: 80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.99);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.nav-logo-text .brand-sub {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
/* Desktop menu = nav-menu-desktop */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

/* Mobile panel = nav-menu-mobile, caché par défaut */
.nav-menu-mobile {
  display: none;
  list-style: none;
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--white);
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  z-index: 1010;
  overflow-y: auto;
  overflow-x: hidden;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 48px rgba(0,0,0,0.18);
}

.nav-menu-mobile.open {
  right: 0;
}

/* Styles de base des liens pour le panel mobile */
.nav-menu-mobile a {
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

.nav-menu-mobile .dropdown { position: relative; }
.nav-menu-mobile .dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-right: 2px;
}


.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-menu a:hover {
  color: var(--primary);
  background: var(--gray-light);
}

.nav-menu .dropdown { position: relative; }

/* dropdown arrow: voir nav-menu-mobile .dropdown > a::after ci-dessus */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.dropdown-menu a:hover {
  background: var(--gray-light);
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--green) 100%);
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,36,64,0.92) 40%, rgba(15,36,64,0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,124,0,0.2);
  border: 1px solid rgba(245,124,0,0.4);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 24px;
}

.hero h1 span { color: var(--accent-light); }

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-rate {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  font-weight: 700;
}

.hero-rate .rate-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.hero-rate .rate-label { font-size: 0.85rem; }

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-num span { color: var(--green); }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== SECTIONS ===== */
.section {
  padding: 90px 24px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 24px;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card-link {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== SIMULATOR ===== */
.simulator-section {
  background: var(--gray-light);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.simulator-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.simulator-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45,90,142,0.12);
}

.range-control {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  cursor: pointer;
}

.range-value {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}

.range-current {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.simulator-result {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.result-item:last-of-type { border-bottom: none; }

.result-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.result-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.result-value.highlight {
  color: var(--accent-light);
  font-size: 1.8rem;
}

.amortization-table {
  margin-top: 24px;
  max-height: 280px;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
}

.amortization-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.amortization-table th {
  background: rgba(255,255,255,0.1);
  padding: 10px 12px;
  text-align: left;
  color: #fb8c00;
  font-weight: 700;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.amortization-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.amortization-table tr:hover td { background: rgba(255,255,255,0.04); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--white); }

.testimonials-track-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-left 35s linear infinite;
  width: max-content;
}

.testimonials-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== WHY US ===== */
.why-us {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--green-dark, #1b5e20) 100%);
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.why-content .section-title { color: var(--white); }
.why-content .section-tag { color: var(--accent-light); }
.why-content .section-desc { color: rgba(255,255,255,0.75); }

.why-points { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-point-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,124,0,0.18);
  border: 1px solid rgba(245,124,0,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.why-point-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.why-point-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 160px 24px 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--green-dark, #1b5e20) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,36,64,0.88) 0%, rgba(26,58,92,0.75) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.breadcrumb-current { color: var(--accent-light); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-stack {
  position: relative;
  height: 480px;
}

.about-img-main {
  width: 75%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: absolute;
  left: 0; top: 0;
}

.about-img-secondary {
  width: 55%;
  height: 55%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: absolute;
  right: 0; bottom: 0;
  border: 6px solid var(--white);
}

.about-badge-card {
  position: absolute;
  top: 40px; right: 0;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.about-badge-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.value-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.value-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}

.value-icon { font-size: 1.5rem; flex-shrink: 0; }

.value-text h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.value-text p { font-size: 0.88rem; color: var(--text-light); }

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 40px);
  right: calc(12.5% + 40px);
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary-light));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.4);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-desc { font-size: 0.86rem; color: var(--text-light); line-height: 1.7; }

/* ===== LOAN TYPES ===== */
.loan-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.loan-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.loan-detail.reverse { direction: rtl; }
.loan-detail.reverse > * { direction: ltr; }

.loan-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.loan-detail-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.loan-detail-body {}

.loan-tag {
  display: inline-block;
  background: rgba(46,125,50,0.1);
  color: var(--green);
  border: 1px solid rgba(46,125,50,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.loan-detail-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.loan-detail-body p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.loan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.loan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.loan-feature::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
}

.contact-info-text a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.maps-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
  height: 400px;
}

.maps-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== APPLICATION FORM ===== */
.application-section { background: var(--gray-light); }

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.application-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.application-sidebar .section-title { text-align: left; font-size: 1.5rem; }

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.trust-badge-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--gray-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-text h5 { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.trust-badge-text p { font-size: 0.8rem; color: var(--text-light); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-control.error { border-color: var(--danger); }

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
}

.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-light);
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--primary-light);
  background: rgba(45,90,142,0.04);
}

.file-upload-area.error-border {
  border-color: var(--danger);
  background: rgba(229,62,62,0.04);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.file-upload-title { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.file-upload-desc { font-size: 0.82rem; color: var(--text-light); }
.file-selected { color: var(--success); font-weight: 700; margin-top: 8px; font-size: 0.85rem; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent-label input { margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }

.consent-label span { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo-text .brand-name { color: var(--white); font-size: 1.4rem; }
.footer-brand .nav-logo-text .brand-sub { font-size: 0.7rem; }

.footer-brand-desc {
  margin: 16px 0 24px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer-col-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--accent-light); }
.footer-links a::before { content: '→'; font-size: 0.75rem; color: var(--green); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-icon { color: var(--green); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--accent-light); }

/* ===== SUCCESS MESSAGE ===== */
.success-message {
  background: rgba(56,161,105,0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--success);
  font-weight: 600;
  display: none;
  margin-top: 20px;
  text-align: center;
}

.success-message.show { display: block; }

/* ===== LOADER ===== */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGE TRANSITION ===== */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.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);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.nav-overlay.show { display: block; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: 80px 24px;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */

/* ── TABLET 1024px ── */
/* ── MOBILE 768px ── */
/* ── SMALL MOBILE 480px ── */
/* ===== TOUCH & MOBILE IMPROVEMENTS ===== */
* { -webkit-tap-highlight-color: transparent; }
button, a, .btn, .service-card, .faq-question { touch-action: manipulation; }
/* Prevent horizontal overflow on mobile */
html, body { max-width: 100vw; overflow-x: hidden; }
/* Mobile: make amortization table scrollable horizontally */
.amortization-table { -webkit-overflow-scrolling: touch; }
/* Mobile: simulator range input bigger touch target */
/* =====================================================
   CORRECTIFS MOBILES — PAGES DÉTAIL + NAVIGATION
   ===================================================== */
/* ── PAGE DETAIL GRID (remplacement des grids inline) ── */
.page-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.page-detail-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.page-detail-sim-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  margin-top: 32px;
}
.page-detail-sim-card h4 {
  font-family: var(--font-display);
  color: var(--accent-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.page-detail-sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.page-detail-sim-row:last-of-type { border-bottom: none; }
.page-detail-sim-row span:first-child { color: rgba(255,255,255,0.7); }
.page-detail-sim-row .sim-val { font-weight: 700; color: var(--white); }
.page-detail-sim-row .sim-val-big {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-light);
  font-weight: 800;
}
.page-detail-sim-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}
.page-detail-sim-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  background: rgba(245,124,0,0.18);
  color: var(--accent-light);
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}
.page-detail-sim-link:hover { background: rgba(245,124,0,0.3); }
/* ── ABOUT: SLIDER ENGAGEMENTS ── */
.engagements-slider {
  position: relative;
  overflow: hidden;
}
.engagements-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.engagement-slide {
  min-width: 100%;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-sizing: border-box;
}
.engagement-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: block;
}
.engagement-slide h3 {
  font-family: var(--font-display);
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.engagement-slide p {
  font-size: 0.9rem;
  line-height: 1.75;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}
.slider-arrows {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-arrow:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
/* Desktop: grille classique 3 cols pour engagements */
.engagements-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.engagements-mobile { display: none; }
/* ── IDENTITÉ LÉGALE MOBILE ── */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.legal-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-row {
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-row-key {
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.legal-row-val {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: right;
}
/* ── MOBILE 768px ── */
/* Identité légale wrapper */
.legal-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
/* ================================================================
   BLOC FINAL — SIMULATEUR MOBILE + NAV MOBILE REDESIGN
   Priorité maximale — écrase tout ce qui précède
   ================================================================ */
/* ── SIMULATEUR : layout mobile propre ── */
/* Desktop : cacher le bouton toggle */
.amortization-toggle-btn { display: none; }
/* ================================================================
   NAVIGATION MOBILE — REDESIGN COMPLET
   ================================================================ */
/* Fond overlay avec blur */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 40, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  transition: opacity 0.3s ease;
}
.nav-overlay.show { display: block; }

/* Nav mobile header/footer — cachés sur desktop, visibles sur mobile */
.nav-mobile-header,
.nav-mobile-footer {
  display: none;
  list-style: none;
}
/* ================================================================
   MEDIA QUERIES CONSOLIDÉES — SOURCE UNIQUE DE VÉRITÉ
   Remplace tous les blocs @media dispersés précédents
   ================================================================ */

/* ── TABLETTE 1024px ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .simulator-wrapper { grid-template-columns: 1fr; gap: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-stack { height: 300px; max-width: 480px; }
  .loan-detail { grid-template-columns: 1fr; gap: 32px; }
  .loan-detail.reverse { direction: ltr; }
  .loan-detail-img { height: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .application-grid { grid-template-columns: 1fr; gap: 32px; }
  .application-sidebar { position: static; }
  .hero-content { padding: 110px 32px 70px; }
  .section { padding: 70px 32px; }
  .page-hero { padding: 120px 32px 60px; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 20px 12px; }
  .simulator-result { margin-top: 0; }
  .amortization-table { max-height: 220px; }
}

/* ── MOBILE 768px ── */
@media (max-width: 768px) {

  /* === NAVIGATION === */
  :root { --nav-height: 64px; }

  /* Cacher menu desktop, afficher panel mobile */
  .nav-menu-desktop { display: none !important; }
  .nav-menu-mobile { display: flex; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border: none;
    background: none;
    z-index: 1001;
    position: relative;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Panel menu slide */
  /* nav-menu-mobile styles sont définis en base, on ajuste ici */

  /* Header/footer injectés en HTML */
  .nav-mobile-header {
    display: block;
    padding: 32px 24px 18px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: var(--text-light);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    pointer-events: none;
    user-select: none;
  }

  .nav-mobile-footer {
    display: block;
    padding: 16px 24px;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  /* Séparateur entre items */
  .nav-menu-mobile > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu-mobile > li:last-child { border-bottom: none; }

  /* Liens principaux */
  .nav-menu-mobile > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    letter-spacing: 0.01em;
    min-height: 52px;
  }

  .nav-menu-mobile > li > a:hover {
    background: var(--gray-light);
    color: var(--primary);
    padding-left: 30px;
  }

  /* Indicateur dropdown */
  .nav-menu-mobile .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-right: 2px;
  }

  .nav-menu-mobile .dropdown.mobile-open > a::after {
    transform: rotate(-135deg);
    border-color: var(--primary);
  }

  .nav-menu-mobile .dropdown.mobile-open > a {
    color: var(--primary);
    background: rgba(26,35,126,0.05);
    padding-left: 30px;
  }

  /* Sous-menu */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--gray-light);
    padding: 4px 0 8px;
    min-width: unset;
    width: 100%;
    display: none;
  }

  .dropdown.mobile-open .dropdown-menu { display: block; }

  .dropdown-menu li { width: 100%; }

  .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px 11px 38px;
    font-size: 0.87rem;
    color: var(--text-light);
    border-radius: 0;
    background: transparent;
    transition: color 0.2s, padding-left 0.2s, background 0.2s;
    min-height: 44px;
  }

  .dropdown-menu a::before {
    content: '—';
    font-size: 0.68rem;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
  }

  .dropdown-menu a:hover {
    color: var(--primary);
    padding-left: 44px;
    background: rgba(26,35,126,0.05);
  }

  /* Bouton CTA */
  .nav-menu-mobile > li.nav-cta-item {
    padding: 16px 20px;
    border-bottom: none;
  }

  .nav-menu-mobile .nav-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-height: 50px;
    width: 100%;
    box-shadow: 0 4px 18px rgba(26,35,126,0.25);
    transition: background 0.2s, transform 0.15s;
  }

  .nav-menu-mobile .nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    padding-left: 20px;
  }

  /* === LAYOUT GÉNÉRAL === */
  .section { padding: 48px 16px; }
  .page-hero { padding: 85px 16px 40px; }
  .hero-content { padding: 90px 20px 60px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  /* === SIMULATEUR MOBILE === */

  /* Wrapper : empilement vertical, soudé */
  .simulator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Formulaire */
  .simulator-form {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 22px 18px;
    box-shadow: none;
    border-bottom: 2px solid rgba(0,0,0,0.08);
  }

  .simulator-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .form-group { margin-bottom: 14px; }

  .form-label { font-size: 0.78rem; margin-bottom: 6px; }

  /* Valeur actuelle du range — grande et lisible */
  .range-current {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
  }

  .range-control {
    width: 100%;
    height: 5px;
    accent-color: var(--primary);
  }

  .range-value {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
  }

  /* Panneau résultats */
  .simulator-result {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 22px 18px;
  }

  .result-title {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  /* Chaque ligne : label à gauche, valeur à droite */
  .result-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .result-item:last-of-type { border-bottom: none; }

  .result-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.3;
  }

  .result-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .result-value.highlight {
    font-size: 1.3rem;
    color: var(--accent-light);
  }

  /* Tableau d'amortissement : caché, révélé par bouton */
  .amortization-table {
    display: none;
  }

  .amortization-table.show-mobile {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 240px;
    margin-top: 12px;
    border-radius: var(--radius);
  }

  .amortization-table.show-mobile table { min-width: 360px; font-size: 0.75rem; }
  .amortization-table.show-mobile th,
  .amortization-table.show-mobile td { padding: 7px 8px; white-space: nowrap; }

  /* Bouton toggle tableau : visible seulement sur mobile */
  .amortization-toggle-btn {
    display: flex;
    width: 100%;
    margin-top: 14px;
    padding: 11px 16px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
  }

  .amortization-toggle-btn:hover {
    background: rgba(255,255,255,0.16);
  }

  /* Titre du tableau : masqué sur mobile tant que tableau fermé */
  .amort-heading { display: none; }

  /* === AUTRES COMPOSANTS === */
  .loan-detail { grid-template-columns: 1fr; gap: 28px; }
  .loan-detail.reverse { direction: ltr; }
  .loan-detail-img { height: 220px; border-radius: var(--radius); }

  .page-detail-grid { grid-template-columns: 1fr; gap: 0; }
  .page-detail-img { height: 220px; border-radius: var(--radius); margin-bottom: 28px; }
  .page-detail-sim-card { padding: 20px 16px; margin-top: 24px; }
  .page-detail-sim-card h4 { font-size: 1rem; margin-bottom: 14px; }
  .page-detail-sim-row { font-size: 0.85rem; padding: 8px 0; }
  .page-detail-sim-row span:first-child { font-size: 0.78rem; }
  .page-detail-sim-row .sim-val-big { font-size: 1.4rem; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-stack { height: 260px; }
  .about-badge-card { bottom: -16px; right: 8px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { padding: 20px 12px; }
  .stat-num { font-size: 2.2rem; }

  .value-list { gap: 16px; }
  .value-item { gap: 12px; }
  .value-icon { font-size: 1.4rem; min-width: 36px; height: 36px; }

  .loan-features { gap: 8px; }
  .loan-feature { font-size: 0.85rem; }

  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-desc { font-size: 0.9rem; }

  .btn { padding: 12px 22px; font-size: 0.88rem; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .application-grid { grid-template-columns: 1fr; gap: 24px; }
  .application-sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid > div { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-grid > div:last-child { border-bottom: none; }

  .cta-section { padding: 56px 20px; }

  .engagements-desktop { display: none; }
  .engagements-mobile { display: block; }

  .legal-grid { grid-template-columns: 1fr; gap: 12px; }
  .legal-row { flex-direction: column; gap: 4px; }
  .legal-row-val { text-align: left; font-size: 0.85rem; word-break: break-all; }
  .legal-row-key { font-size: 0.85rem; }
  .legal-wrapper { padding: 20px 16px; border-radius: var(--radius); }

  .breadcrumb { font-size: 0.78rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .page-hero p { font-size: 0.9rem; }
}

/* ── MOBILE PETIT 480px ── */
@media (max-width: 480px) {
  .section { padding: 40px 14px; }
  .page-hero { padding: 80px 14px 36px; }
  .simulator-form, .simulator-result { padding: 18px 14px; }
  .range-current { font-size: 1.3rem; }
  .result-value { font-size: 0.88rem; }
  .result-value.highlight { font-size: 1.2rem; }
  .page-detail-img { height: 180px; }
  .page-detail-sim-card { padding: 16px 14px; }
  .stat-num { font-size: 1.9rem; }
  .hero-title { font-size: clamp(1.5rem, 8vw, 2rem); }
  .testimonial-card { min-width: 240px; max-width: 240px; padding: 18px; }
  .testimonial-text { font-size: 0.85rem; }
}

/* Desktop : toggle bouton caché */
@media (min-width: 769px) {
  .amortization-toggle-btn { display: none; }
  .nav-mobile-header, .nav-mobile-footer { display: none; }
}
