/**
 * AJSF Loan Compass - Feuille de styles principale
 * Reproduit au pixel près le design Tailwind v4 / OKLCH original de Lovable
 * et intègre le nouveau design prestige (Bleu marine #0F2242 et Or #C9962E) pour les formulaires.
 */

:root {
  --radius: 0.35rem;

  /* Charte AJSF originale (OKLCH) */
  --background: oklch(0.99 0.004 150);
  --foreground: oklch(0.2 0.015 155);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.015 155);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.015 155);
  --primary: oklch(0.23 0.02 155);
  --primary-foreground: oklch(0.98 0.006 150);
  --secondary: oklch(0.95 0.016 152);
  --secondary-foreground: oklch(0.23 0.02 155);
  --muted: oklch(0.96 0.01 152);
  --muted-foreground: oklch(0.49 0.02 155);
  --accent: oklch(0.72 0.15 150);
  --accent-foreground: oklch(0.26 0.06 155);
  --destructive: oklch(0.55 0.2 27);
  --destructive-foreground: oklch(0.98 0.006 150);
  --border: oklch(0.9 0.012 152);
  --input: oklch(0.9 0.012 152);
  --ring: oklch(0.6 0.14 150);

  /* Couleurs spécifiques nouveau formulaire prestige */
  --color-navy: #0F2242;
  --color-navy-dark: #0A1830;
  --color-gold: #C9962E;
  --color-gold-light: #E8B85C;
  --color-gray: #6B7280;
  --color-panel-light: #F7F5F1;
  --color-panel-alt: #EEF0F4;
  --color-form-border: #D8DCE3;

  /* Typographies */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dark {
  --background: oklch(0.129 0.042 264.695);
  --foreground: oklch(0.984 0.003 247.858);
  --card: oklch(0.208 0.042 265.755);
  --card-foreground: oklch(0.984 0.003 247.858);
  --popover: oklch(0.208 0.042 265.755);
  --popover-foreground: oklch(0.984 0.003 247.858);
  --primary: oklch(0.929 0.013 255.508);
  --primary-foreground: oklch(0.208 0.042 265.755);
  --secondary: oklch(0.279 0.041 260.031);
  --secondary-foreground: oklch(0.984 0.003 247.858);
  --muted: oklch(0.279 0.041 260.031);
  --muted-foreground: oklch(0.704 0.04 256.788);
  --accent: oklch(0.279 0.041 260.031);
  --accent-foreground: oklch(0.984 0.003 247.858);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.551 0.027 264.364);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: inherit;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   LAYOUT & GRID UTILITIES
   ========================================================================== */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[780px\] { max-width: 780px; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-16 { gap: 4rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }

/* Paddings & Margins */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-24 { margin-top: 6rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-auto { margin-left: auto; }

/* Dimensions */
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.min-h-11 { min-height: 2.75rem; }
.min-h-12 { min-height: 3rem; }
.min-w-11 { min-width: 2.75rem; }
.min-w-12 { min-width: 3rem; }

/* Bordures & Arrondis */
.border { border-width: 1px; border-style: solid; border-color: var(--border); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--border); }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; border-color: var(--border); }
.border-border { border-color: var(--border); }
.border-border\/70 { border-color: color-mix(in oklch, var(--border) 70%, transparent); }
.border-input { border-color: var(--input); }
.border-dashed { border-style: dashed; }
.border-primary-foreground\/15 { border-color: color-mix(in oklch, var(--primary-foreground) 15%, transparent); }
.border-primary-foreground\/30 { border-color: color-mix(in oklch, var(--primary-foreground) 30%, transparent); }
.border-accent\/40 { border-color: color-mix(in oklch, var(--accent) 40%, transparent); }
.border-destructive\/40 { border-color: color-mix(in oklch, var(--destructive) 40%, transparent); }

.rounded-sm { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) + 2px); }
.rounded-full { border-radius: 9999px; }

/* Couleurs de fond */
.bg-background { background-color: var(--background); }
.bg-background\/90 { background-color: color-mix(in oklch, var(--background) 90%, transparent); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary\/40 { background-color: color-mix(in oklch, var(--secondary) 40%, transparent); }
.bg-secondary\/50 { background-color: color-mix(in oklch, var(--secondary) 50%, transparent); }
.bg-secondary\/60 { background-color: color-mix(in oklch, var(--secondary) 60%, transparent); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/10 { background-color: color-mix(in oklch, var(--accent) 10%, transparent); }
.bg-destructive\/10 { background-color: color-mix(in oklch, var(--destructive) 10%, transparent); }

/* Couleurs de texte */
.text-foreground { color: var(--foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-primary-foreground\/60 { color: color-mix(in oklch, var(--primary-foreground) 60%, transparent); }
.text-primary-foreground\/70 { color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); }
.text-primary-foreground\/80 { color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-accent-foreground\/70 { color: color-mix(in oklch, var(--accent-foreground) 70%, transparent); }
.text-destructive { color: var(--destructive); }

/* Typographie */
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-\[0\.22em\] { letter-spacing: 0.22em; }
.tracking-\[0\.24em\] { letter-spacing: 0.24em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }

.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Effets & Transitions */
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-4 { bottom: 1rem; }
.right-4 { right: 1rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-blur: blur(8px); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:bg-secondary:hover { background-color: var(--secondary); }
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:bg-primary-foreground\/10:hover { background-color: color-mix(in oklch, var(--primary-foreground) 10%, transparent); }
.hover\:text-foreground:hover { color: var(--foreground); }

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-ring:focus { border-color: var(--ring); }
.disabled\:opacity-60:disabled { opacity: 0.6; cursor: not-allowed; }

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:inline { display: inline; }
  .sm\:h-10 { height: 2.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-\[1\.1fr_0\.9fr\] { grid-template-columns: 1.1fr 0.9fr; }
  .md\:items-center { align-items: center; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[380px_1fr\] { grid-template-columns: 380px 1fr; }
  .lg\:grid-cols-\[1\.2fr_0\.8fr\] { grid-template-columns: 1.2fr 0.8fr; }
  .lg\:grid-cols-\[1\.25fr_0\.75fr\] { grid-template-columns: 1.25fr 0.75fr; }
  .lg\:grid-cols-\[1\.3fr_0\.7fr\] { grid-template-columns: 1.3fr 0.7fr; }
}

/* ==========================================================================
   COMPOSANTS SPÉCIFIQUES DU SITE
   ========================================================================== */

/* En-tête de page Hero */
.page-hero {
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--secondary) 50%, transparent);
  padding: 4rem 1.25rem;
}

/* Badge ORIAS */
.orias-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 150ms;
}
.orias-badge:hover {
  background-color: var(--secondary);
}
.orias-badge.dark-tone {
  border-color: color-mix(in oklch, var(--primary-foreground) 30%, transparent);
  color: var(--primary-foreground);
}
.orias-badge.dark-tone:hover {
  background-color: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
}

/* Accordéon FAQ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.accordion-content {
  padding-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  display: none;
}
.accordion-item.active .accordion-content {
  display: block;
}
.accordion-item .chevron {
  transition: transform 200ms;
}
.accordion-item.active .chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   NOUVEAU FORMULAIRE PRESTIGE DE DEMANDE DE CRÉDIT (Bleu Marine & Or)
   ========================================================================== */
.credit-app-card {
  max-width: 780px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--color-form-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(15, 34, 66, 0.08);
  overflow: hidden;
}

.credit-app-header {
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 2rem 2.5rem;
  text-align: center;
}
.credit-app-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
}
.credit-app-header p {
  color: var(--color-gold-light);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.credit-app-body {
  padding: 2rem 2.5rem;
}

.credit-panel-calc {
  background-color: var(--color-panel-light);
  border: 1px solid var(--color-form-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.credit-metric-box {
  background-color: #ffffff;
  border: 1px solid var(--color-form-border);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}
.credit-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-gray);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.credit-metric-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 0.25rem;
}

.credit-btn-gold {
  width: 100%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: var(--color-navy-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(201, 150, 46, 0.25);
  transition: all 150ms ease-in-out;
  cursor: pointer;
}
.credit-btn-gold:hover {
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(201, 150, 46, 0.35);
  transform: translateY(-1px);
}
.credit-btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.credit-field {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--color-form-border);
  background-color: #ffffff;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--color-navy);
  outline: none;
  transition: border-color 150ms;
}
.credit-field:focus {
  border-color: var(--color-gold);
}
.credit-field.is-invalid {
  border-color: #ef4444;
}

/* Modal de confirmation de soumission */
.credit-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 24, 48, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.credit-modal-card {
  background: #ffffff;
  border-radius: 8px;
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   DESIGN DÉTENDU & MODERNE : SIMULATEUR & DEMANDE DE FINANCEMENT
   ========================================================================== */

.ajsf-page-relaxed {
  background: #F8FAFC;
  min-height: calc(100vh - 160px);
  padding: 40px 20px 80px;
}

.dark .ajsf-page-relaxed {
  background: #0B132B;
}

.ajsf-container-relaxed {
  max-width: 880px;
  margin: 0 auto;
}

.ajsf-container-wide {
  max-width: 1140px;
  margin: 0 auto;
}

/* En-tête détendu */
.ajsf-header-relaxed {
  text-align: center;
  margin-bottom: 36px;
}

.ajsf-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 150, 46, 0.12);
  border: 1px solid rgba(201, 150, 46, 0.35);
  color: #B2801F;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.dark .ajsf-badge-pill {
  background: rgba(201, 150, 46, 0.2);
  color: #E8B85C;
}

.ajsf-title-relaxed {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #0F2242;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.dark .ajsf-title-relaxed {
  color: #F8FAFC;
}

.ajsf-subtitle-relaxed {
  font-size: 1.05rem;
  color: #64748B;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark .ajsf-subtitle-relaxed {
  color: #94A3B8;
}

/* Carte principale détendue */
.ajsf-card-relaxed {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px -5px rgba(15, 34, 66, 0.06), 0 4px 10px rgba(0, 0, 0, 0.02);
  padding: 44px;
  transition: box-shadow 0.2s ease;
}

.dark .ajsf-card-relaxed {
  background: #151F38;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .ajsf-card-relaxed {
    padding: 24px 20px;
    border-radius: 14px;
  }
}

/* Titre de section détendu */
.ajsf-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #F1F5F9;
}

.dark .ajsf-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ajsf-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0F2242;
  color: #C9962E;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.dark .ajsf-step-num {
  background: #C9962E;
  color: #0F2242;
}

.ajsf-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #0F2242;
  margin: 0;
}

.dark .ajsf-section-title {
  color: #F8FAFC;
}

/* Grille détendue */
.ajsf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .ajsf-grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.ajsf-grid-full {
  grid-column: 1 / -1;
}

/* Champs de formulaires détendus */
.ajsf-field-group {
  display: flex;
  flex-direction: column;
}

.ajsf-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark .ajsf-label {
  color: #CBD5E1;
}

.ajsf-req {
  color: #E11D48;
  font-weight: 700;
}

.ajsf-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  color: #0F2242;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.dark .ajsf-input {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.ajsf-input:focus {
  background: #FFFFFF;
  border-color: #C9962E;
  box-shadow: 0 0 0 4px rgba(201, 150, 46, 0.15);
}

.dark .ajsf-input:focus {
  background: #1E293B;
  border-color: #C9962E;
}

.ajsf-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  color: #0F2242;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .ajsf-select {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.ajsf-select:focus {
  border-color: #C9962E;
  box-shadow: 0 0 0 4px rgba(201, 150, 46, 0.15);
}

.ajsf-input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ajsf-input-prefix-wrap .ajsf-input {
  padding-right: 44px;
}

.ajsf-input-suffix {
  position: absolute;
  right: 16px;
  font-weight: 600;
  color: #94A3B8;
  pointer-events: none;
  font-size: 1rem;
}

.ajsf-helper {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 6px;
}

/* Slider détendu */
.ajsf-range-wrap {
  margin-top: 10px;
}

.ajsf-range {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #E2E8F0;
  outline: none;
  accent-color: #C9962E;
  cursor: pointer;
}

.dark .ajsf-range {
  background: rgba(255, 255, 255, 0.15);
}

.ajsf-range-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 6px;
}

.ajsf-badge-val {
  background: #0F2242;
  color: #C9962E;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.dark .ajsf-badge-val {
  background: #C9962E;
  color: #0F2242;
}

/* Bloc d'estimation indicative détendu */
.ajsf-estimate-box {
  background: linear-gradient(135deg, #0F2242 0%, #162F59 100%);
  border: 1px solid rgba(201, 150, 46, 0.4);
  border-radius: 16px;
  padding: 28px 32px;
  color: #FFFFFF;
  margin: 32px 0;
  box-shadow: 0 12px 30px rgba(15, 34, 66, 0.15);
}

@media (max-width: 640px) {
  .ajsf-estimate-box {
    padding: 22px 18px;
    border-radius: 12px;
  }
}

.ajsf-estimate-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .ajsf-estimate-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.ajsf-estimate-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-bottom: 6px;
}

.ajsf-estimate-amount-monthly {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.ajsf-estimate-amount-monthly span {
  color: #E8B85C;
  font-size: 0.65em;
  font-weight: 600;
}

.ajsf-estimate-total-wrap {
  text-align: right;
}

@media (max-width: 640px) {
  .ajsf-estimate-total-wrap {
    text-align: left;
  }
}

.ajsf-estimate-total-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.ajsf-estimate-mention {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ajsf-estimate-mention strong {
  color: #E8B85C;
}

.ajsf-mention-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Consentement & Bouton détendu */
.ajsf-consent-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1.5px solid #F1F5F9;
}

.dark .ajsf-consent-wrap {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ajsf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.ajsf-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #0F2242;
  cursor: pointer;
  margin-top: 3px;
  flex-shrink: 0;
}

.ajsf-consent-text {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.6;
}

.dark .ajsf-consent-text {
  color: #94A3B8;
}

.ajsf-btn-relaxed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  margin-top: 24px;
  background: linear-gradient(135deg, #C9962E 0%, #E8B85C 100%);
  color: #0A1830;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 150, 46, 0.35);
  transition: all 0.2s ease;
}

.ajsf-btn-relaxed:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 150, 46, 0.45);
  opacity: 0.98;
}

.ajsf-btn-relaxed:active {
  transform: translateY(0);
}

.ajsf-btn-relaxed:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ajsf-reassurance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: #64748B;
}

.ajsf-reassurance-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Écran de confirmation détendu */
.ajsf-success-card {
  text-align: center;
  padding: 60px 40px;
}

.ajsf-success-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
  margin-bottom: 24px;
}

.ajsf-ref-pill {
  display: inline-block;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F2242;
  margin: 12px 0 20px;
}

.dark .ajsf-ref-pill {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #E8B85C;
}

/* Grille 2 colonnes pour Simulateur détendu */
.ajsf-simulator-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 980px) {
  .ajsf-simulator-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.ajsf-sim-results-card {
  background: linear-gradient(145deg, #0F2242 0%, #17325F 100%);
  border-radius: 20px;
  border: 1px solid rgba(201, 150, 46, 0.35);
  box-shadow: 0 15px 35px -5px rgba(15, 34, 66, 0.25);
  padding: 36px;
  color: #FFFFFF;
  position: sticky;
  top: 100px;
}

@media (max-width: 640px) {
  .ajsf-sim-results-card {
    padding: 24px 20px;
    position: static;
  }
}

.ajsf-kpi-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.ajsf-kpi-subcard {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.ajsf-kpi-subcard-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.ajsf-kpi-subcard-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Tableau d'amortissement détendu */
.ajsf-schedule-drawer {
  margin-top: 36px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.dark .ajsf-schedule-drawer {
  background: #151F38;
  border-color: rgba(255, 255, 255, 0.08);
}

.ajsf-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.ajsf-schedule-table th {
  background: #F1F5F9;
  color: #475569;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
}

.dark .ajsf-schedule-table th {
  background: #1E293B;
  color: #94A3B8;
}

.ajsf-schedule-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
}

.dark .ajsf-schedule-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
}

.ajsf-schedule-table tr:hover td {
  background: rgba(201, 150, 46, 0.04);
}

