/* =========================================================
   Site public — thème vert profond / vert lime
   ========================================================= */
:root {
  --green-950: #04231f;
  --green-900: #062f2a;
  --green-800: #0a3d36;
  --green-700: #11524a;
  --lime: #b6f171;
  --lime-600: #9fdc55;
  --lime-100: #eefbdd;
  --cream: #f6f5ee;
  --cream-2: #efeee4;
  --white: #ffffff;
  --ink: #0d2b26;
  --body: #4f605c;
  --muted: #6d7c78;
  --line: #e2e5dc;
  --star: #f5a524;
  --danger: #c2412d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(6, 47, 42, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 8px; left: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--lime-600); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--green-900); color: var(--white); }
.btn-primary:hover { background: var(--green-700); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-600); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-900); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); padding: 9px 18px; font-size: 14px; }
.btn-outline-light:hover { border-color: var(--lime); color: var(--lime); }
.btn-ghost-light { color: var(--white); padding: 9px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Bouton signature « pilule + chevrons » */
.btn-cta {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--lime); border-radius: 999px; padding: 4px;
  font-weight: 600; font-size: 14px; color: var(--white); transition: .2s ease; white-space: nowrap;
}
.btn-cta-label { background: var(--green-900); padding: 9px 18px; border-radius: 999px; }
.btn-cta-ico { display: grid; place-items: center; width: 34px; height: 34px; color: var(--green-900); transition: transform .2s ease; }
.btn-cta:hover .btn-cta-ico { transform: translateX(3px); }
.btn-cta.is-light .btn-cta-label { background: var(--white); color: var(--ink); }
.btn-cta.is-lg { font-size: 15px; }
.btn-cta.is-lg .btn-cta-label { padding: 12px 24px; }
.btn-cta.is-lg .btn-cta-ico { width: 40px; height: 40px; }
button.btn-cta { border: 0; cursor: pointer; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 500; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-info, .topbar-social { display: flex; align-items: center; gap: 22px; }
.topbar-info > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { gap: 14px; }
.topbar-social a { display: inline-flex; }
.topbar-social a:hover, .topbar-info a:hover { opacity: .7; }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 50; background: var(--green-900); }
.is-home .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 1px solid rgba(255,255,255,.12); }
/* Pas de backdrop-filter ni de transform persistant : ils enfermeraient le menu mobile (position: fixed) dans la hauteur de l'en-tête */
.site-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; background: rgba(6,47,42,.98); box-shadow: 0 8px 30px -12px rgba(0,0,0,.4); animation: slideDown .3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--green-900); }
.logo-mark .icon { width: 21px; height: 21px; }

.main-nav > ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--white); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--lime); }
.main-nav .caret { width: 15px; height: 15px; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 18px); left: -18px; min-width: 260px;
  background: var(--white); border-radius: var(--radius-sm); padding: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.dropdown::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { color: var(--ink); display: flex; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.dropdown a .icon { color: var(--green-700); }
.dropdown a:hover { background: var(--cream); color: var(--green-900); }
.dropdown-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown-all a { font-weight: 600; justify-content: space-between; }
.nav-actions-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.link-login { color: var(--white); font-size: 14px; font-weight: 500; }
.link-login:hover { color: var(--lime); }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--white); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Bannière des pages intérieures ---------- */
.page-banner { background: var(--green-900); color: rgba(255,255,255,.75); padding: 56px 0 72px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(182,241,113,.22), transparent 70%); }
.page-banner h1 { color: var(--white); font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 12px; }
.page-banner p { max-width: 640px; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--lime); }
.crumbs .icon { width: 14px; color: var(--lime); }
.crumbs span { color: var(--lime); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); color: rgba(255,255,255,.78); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 30%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green-900) 0%, rgba(6,47,42,.85) 28%, rgba(6,47,42,.25) 62%, rgba(6,47,42,.05) 100%); }
.hero-inner { position: relative; padding: 190px 0 110px; max-width: 640px; }
.rating-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); font-size: 13px; color: var(--white); margin-bottom: 24px; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; }
.hero h1 { color: var(--white); text-transform: uppercase; font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-lead { font-size: 17px; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.call-box { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.call-box-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--green-900); }
.call-box small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.65); }
.call-box strong { font-size: 18px; font-weight: 600; }
.hero-badge { position: absolute; z-index: 2; right: 48px; bottom: 120px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(255,255,255,.95); color: var(--body); font-size: 13px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.hero-badge-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--lime); color: var(--green-900); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge-ico .icon { width: 22px; height: 22px; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--ink); line-height: 1.1; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--lime); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--green-900); color: rgba(255,255,255,.75); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.eyebrow .icon { width: 13px; height: 13px; color: var(--green-700); }
.section-dark .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--white); }
.section-dark .eyebrow .icon { color: var(--lime); }
.section-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head p { margin: 0; max-width: 460px; justify-self: end; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center p { justify-self: center; max-width: 620px; }

/* ---------- Cartes « approche » ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; background: var(--white); border-radius: var(--radius); padding: 34px 30px 76px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .f-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--cream); color: var(--green-900); margin-bottom: 30px; }
.feature-card .f-ico .icon { width: 28px; height: 28px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; margin: 0; }
.feature-card .f-link { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px 12px 30px; background: var(--cream); border-top-right-radius: 16px; font-size: 13px; font-weight: 600; color: var(--ink); }
.feature-card .f-link .icon { width: 14px; }
.feature-card.is-lime { background: var(--lime); }
.feature-card.is-lime .f-ico { background: rgba(255,255,255,.55); }
.feature-card.is-lime p { color: var(--green-800); }
.feature-card.is-lime::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.25); }
.feature-card.is-dark { background: var(--green-900); }
.feature-card.is-dark h3 { color: var(--white); }
.feature-card.is-dark p { color: rgba(255,255,255,.7); }
.feature-card.is-dark .f-ico { background: rgba(255,255,255,.08); color: var(--lime); }
.feature-card.is-dark .f-link, .feature-card.is-lime .f-link { background: var(--cream); }

/* ---------- Simulateur ---------- */
.simulator { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.sim-controls { padding: 40px; }
.sim-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.sim-type { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer; transition: .2s; color: var(--ink); }
.sim-type .icon { width: 15px; height: 15px; color: var(--green-700); }
.sim-type:hover { border-color: var(--green-700); }
.sim-type.is-active { background: var(--green-900); color: var(--white); border-color: var(--green-900); }
.sim-type.is-active .icon { color: var(--lime); }
.sim-field { margin-bottom: 30px; }
.sim-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sim-field-head label { font-weight: 600; color: var(--ink); }
.sim-value { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; background: var(--cream); }
.sim-value input { width: 110px; border: 0; background: transparent; text-align: right; font-weight: 700; font-size: 18px; color: var(--ink); font-family: var(--font-head); -moz-appearance: textfield; }
.sim-value input::-webkit-outer-spin-button, .sim-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-value input:focus { outline: none; }
.sim-value span { font-weight: 600; color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--green-900) var(--p, 50%), var(--cream-2) var(--p, 50%)); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 5px solid var(--green-900); box-shadow: 0 4px 12px rgba(6,47,42,.3); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); border: 5px solid var(--green-900); }
.sim-minmax { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.sim-result { background: var(--green-900); color: rgba(255,255,255,.75); padding: 40px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sim-result::before { content: ""; position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(182,241,113,.25), transparent 70%); }
.sim-result .label { font-size: 14px; }
.sim-monthly { font-family: var(--font-head); font-size: clamp(42px, 5vw, 56px); font-weight: 700; color: var(--lime); line-height: 1; margin: 8px 0 4px; letter-spacing: -.03em; }
.sim-monthly small { font-size: 18px; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: 0; }
.sim-lines { margin: 26px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sim-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.sim-lines strong { color: var(--white); font-weight: 600; }
.sim-result .btn-cta { margin-top: auto; align-self: flex-start; }
.sim-legal { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.6); margin: 18px 0 0; }
.sim-example { font-size: 13px; color: var(--muted); margin-top: 20px; padding: 16px 18px; background: var(--cream); border-radius: 12px; border-left: 3px solid var(--lime-600); }

/* Tableau d'amortissement */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th { background: var(--cream); color: var(--ink); font-weight: 600; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.about-media .main-img { grid-column: 1 / -1; border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.about-media .sub-img { border-radius: var(--radius); width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; }
.stat-lime { background: var(--lime); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 12px; color: var(--green-800); font-size: 13px; font-weight: 500; }
.stat-lime .icon { width: 26px; height: 26px; color: var(--green-900); margin-bottom: 8px; }
.stat-lime strong { font-family: var(--font-head); font-size: 30px; color: var(--ink); line-height: 1.1; }
.about-text .lead { font-size: 16px; margin: 18px 0 28px; }
.about-person { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; color: var(--ink); font-size: 15px; }
.person small { font-size: 12px; color: var(--muted); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.mini-card .big { font-family: var(--font-head); font-size: 40px; font-weight: 600; color: var(--ink); line-height: 1; margin: 10px 0 18px; }
.mini-card .big small { font-size: 16px; color: var(--muted); }
.mini-card h3 { font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 6px 11px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Cartes prêts ---------- */
.loan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.loan-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.loan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.loan-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.loan-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.loan-card:hover .loan-card-media img { transform: scale(1.05); }
.loan-card-ico { position: absolute; left: 18px; bottom: -22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--lime); color: var(--green-900); border: 4px solid var(--white); }
.loan-card-ico .icon { width: 22px; height: 22px; }
.loan-card-body { padding: 34px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.loan-card h3 { font-size: 19px; margin-bottom: 8px; }
.loan-card p { font-size: 14px; margin-bottom: 16px; }
.loan-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.loan-card-foot strong { color: var(--ink); font-size: 15px; }
.loan-card-foot .arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--green-900); transition: .2s; }
.loan-card:hover .arrow { background: var(--green-900); color: var(--lime); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step-num { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--green-900); background: var(--lime); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; }
.step .icon-lg { position: absolute; right: 24px; top: 28px; width: 30px; height: 30px; color: rgba(182,241,113,.6); }
.step h3 { font-size: 19px; }
.step p { font-size: 14px; margin: 0; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.stats-band div { text-align: center; }
.stats-band strong { display: block; font-family: var(--font-head); font-size: clamp(34px, 4vw, 48px); color: var(--lime); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stats-band span { font-size: 14px; }

/* ---------- Témoignages ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.testi { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.testi .quote-ico { width: 34px; height: 34px; color: var(--lime-600); margin-bottom: 14px; }
.testi p { font-size: 15px; color: var(--ink); flex: 1; }
.testi .person { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Slider des témoignages */
.testi-slider { position: relative; }
.testi-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px 0; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-track:focus-visible { outline: 2px solid var(--lime-600); outline-offset: 4px; border-radius: var(--radius); }
.testi-slider .testi { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; margin: 0; padding: 30px; }
.testi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.testi-top .quote-ico { margin: 0; width: 38px; height: 38px; color: var(--lime-600); }
.testi blockquote { margin: 0; flex: 1; }
.testi blockquote p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi-initials { width: 44px; height: 44px; border-radius: 50%; background: var(--green-900); color: var(--lime); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.testi-author strong { display: block; color: var(--ink); font-size: 15px; }
.testi-author small { font-size: 13px; color: var(--muted); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--green-900); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.slider-btn:hover:not(:disabled) { background: var(--green-900); color: var(--lime); border-color: var(--green-900); }
.slider-btn:disabled { opacity: .4; cursor: default; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button.is-active { width: 28px; background: var(--green-900); }
@media (max-width: 1024px) { .testi-slider .testi { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 720px) {
  .testi-track { gap: 14px; }
  .testi-slider .testi { flex-basis: 88%; padding: 24px 22px; }
  .testi blockquote p { font-size: 15px; }
  .slider-nav { margin-top: 22px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-aside img { border-radius: var(--radius); margin-top: 28px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; color: var(--ink); font-family: var(--font-head); font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--cream); transition: transform .25s, background .25s; }
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--lime); }
.faq-item .faq-a { padding: 0 22px 20px; font-size: 15px; }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: 70px 60px; color: rgba(255,255,255,.8); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,47,42,.96) 0%, rgba(6,47,42,.85) 50%, rgba(6,47,42,.45) 100%); z-index: 1; }
.cta-band > div { position: relative; z-index: 2; max-width: 600px; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 42px); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; align-items: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.65); padding: 60px 0 0; font-size: 15px; }
.footer-warning { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius-sm); background: rgba(182,241,113,.08); border: 1px solid rgba(182,241,113,.22); margin-bottom: 56px; font-size: 13px; }
.footer-warning .icon { width: 22px; height: 22px; color: var(--lime); margin-top: 2px; }
.footer-warning p { margin: 0; }
.footer-warning strong { color: var(--white); display: block; font-size: 14px; margin-bottom: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-about p { margin: 18px 0 22px; max-width: 320px; }
.footer-col h3 { color: var(--white); font-size: 17px; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a:hover { color: var(--lime); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--lime); margin-top: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: var(--white); transition: .2s; }
.footer-social a:hover { background: var(--lime); color: var(--green-900); border-color: var(--lime); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 12.5px; line-height: 1.7; }
.footer-legal p { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--lime); }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border-radius: 24px; padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(182,241,113,.35); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-900); flex-shrink: 0; }
.check a { color: var(--green-700); text-decoration: underline; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-suffix input { padding-right: 52px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 14px; border: 1px solid; }
.alert .icon { width: 20px; height: 20px; margin-top: 2px; }
.alert-success { background: var(--lime-100); border-color: #c9eb9f; color: #24521a; }
.alert-error { background: #fdeeea; border-color: #f4c7bc; color: #8a2a17; }
.alert-info { background: #eef5f4; border-color: #cfe1de; color: var(--green-800); }
.flash-wrap { padding-top: 24px; }

/* Demande de prêt en étapes */
.wizard { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.stepper { display: flex; gap: 10px; margin-bottom: 30px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); padding-bottom: 12px; border-bottom: 3px solid var(--line); }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.stepper li.is-active { color: var(--ink); border-color: var(--green-900); }
.stepper li.is-active span { background: var(--green-900); color: var(--lime); }
.stepper li.is-done { border-color: var(--lime-600); color: var(--ink); }
.stepper li.is-done span { background: var(--lime); color: var(--green-900); }
.wizard-step h2 { font-size: 24px; margin-bottom: 22px; }
.js .wizard-step:not(.is-active) { display: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.summary-card { position: sticky; top: 110px; background: var(--green-900); color: rgba(255,255,255,.75); border-radius: 24px; padding: 30px; }
.summary-card h3 { color: var(--white); font-size: 19px; }
.summary-card .sim-monthly { font-size: 40px; }
.summary-card ul { margin-top: 18px; }
.summary-card li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.summary-card li strong { color: var(--white); }
.summary-card .trust { margin-top: 20px; display: grid; gap: 10px; font-size: 13px; }
.summary-card .trust span { display: flex; gap: 8px; align-items: center; }
.summary-card .trust .icon { color: var(--lime); }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 8px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--ink); transition: .2s; height: 100%; }
.choice span .icon { width: 24px; height: 24px; color: var(--green-700); }
.choice input:checked + span { border-color: var(--green-900); background: var(--lime-100); box-shadow: inset 0 0 0 1px var(--green-900); }
.choice input:focus-visible + span { outline: 2px solid var(--lime-600); outline-offset: 2px; }

/* Authentification */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--white); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-media { position: relative; }
.auth-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,47,42,.92), rgba(6,47,42,.1) 60%); }
.auth-media-text { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 36px; color: rgba(255,255,255,.8); }
.auth-media-text h2 { color: var(--white); font-size: 28px; }
.auth-media-text li { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.auth-media-text .icon { color: var(--lime); }
.auth-form { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 32px; }
.auth-form .sub { margin-bottom: 28px; }
.auth-switch { margin-top: 22px; font-size: 14px; text-align: center; }
.auth-switch a { color: var(--green-700); font-weight: 600; text-decoration: underline; }

/* Espace client */
.dash-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.profile-card { background: var(--green-900); color: rgba(255,255,255,.75); border-radius: 24px; padding: 30px; }
.profile-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 24px; margin-bottom: 16px; }
.profile-card h2 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.profile-card ul { margin: 20px 0; display: grid; gap: 10px; font-size: 14px; }
.profile-card li { display: flex; gap: 8px; align-items: center; word-break: break-all; }
.profile-card .icon { color: var(--lime); }
.req-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.req-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.req-card-head h3 { margin: 0; font-size: 19px; }
.req-card-head small { color: var(--muted); }
.req-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.req-meta div { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.req-meta span { display: block; font-size: 12px; color: var(--muted); }
.req-meta strong { color: var(--ink); }
.req-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--lime-100); color: var(--green-800); font-size: 14px; display: flex; gap: 10px; }
.progress-track { display: flex; gap: 6px; margin-top: 18px; }
.progress-track span { flex: 1; height: 6px; border-radius: 4px; background: var(--cream-2); }
.progress-track span.on { background: var(--lime-600); }
.progress-track.is-ko span.on { background: var(--danger); }
.empty { text-align: center; padding: 50px 20px; background: var(--cream); border-radius: var(--radius); }
.empty .icon { width: 40px; height: 40px; color: var(--green-700); margin: 0 auto 12px; display: block; }

.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-new { background: #e7f0ff; color: #1d4ea8; }
.st-progress { background: #fff3dc; color: #8a5a00; }
.st-docs { background: #f3e8ff; color: #6b2fb3; }
.st-ok { background: var(--lime-100); color: #2f6b12; }
.st-ko { background: #fdeeea; color: #a2311c; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: var(--cream); padding: 22px; border-radius: var(--radius); }
.info-item .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-900); color: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.info-item h3 { font-size: 16px; margin-bottom: 4px; }
.info-item p, .info-item a { margin: 0; font-size: 15px; color: var(--body); word-break: break-word; }

/* Détail prêt */
.loan-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.loan-detail-img { border-radius: 24px; aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 32px; }
.loan-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.loan-facts div { background: var(--cream); border-radius: 14px; padding: 18px; }
.loan-facts span { display: block; font-size: 13px; color: var(--muted); }
.loan-facts strong { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
.check-list { display: grid; gap: 10px; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green-700); background: var(--lime); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }
.sidebar-box { background: var(--cream); border-radius: 24px; padding: 28px; margin-bottom: 20px; }
.sidebar-box h3 { font-size: 19px; }
.sidebar-links li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--white); border-radius: 12px; margin-bottom: 8px; font-weight: 500; color: var(--ink); }
.sidebar-links li a:hover, .sidebar-links li a.active { background: var(--green-900); color: var(--white); }

.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--green-700); text-decoration: underline; }
.legal-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.legal-table div { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--line); }
.legal-table div:last-child { border-bottom: 0; }
.legal-table dt, .legal-table dd { margin: 0; padding: 12px 16px; }
.legal-table dt { background: var(--cream); font-weight: 600; color: var(--ink); }

.success-box { text-align: center; max-width: 640px; margin: 0 auto; }
.success-box .big-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; margin: 0 auto 24px; }
.success-box .big-ico .icon { width: 40px; height: 40px; }
.ref { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 22px; background: var(--cream); padding: 10px 20px; border-radius: 12px; color: var(--ink); letter-spacing: .05em; margin: 10px 0 24px; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 90; }
.chat-launcher { width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--green-900); color: var(--lime); box-shadow: 0 14px 34px -10px rgba(6,47,42,.6); display: grid; place-items: center; position: relative; transition: transform .2s; }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .icon { width: 28px; height: 28px; }
.chat-launcher-close { display: none; }
.chat.is-open .chat-launcher-open { display: none; }
.chat.is-open .chat-launcher-close { display: grid; }
.chat-launcher::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lime); opacity: .6; animation: pulse 2.4s infinite; }
.chat.is-open .chat-launcher::after { display: none; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.chat-badge { position: absolute; top: -2px; right: -2px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.chat-panel { position: absolute; right: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 140px); background: var(--white); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(6,47,42,.5); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--green-900); color: var(--white); }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); }
.chat-head strong { display: block; font-size: 15px; }
.chat-status { font-size: 12px; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 6px; }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f5a524; }
.chat-status.is-online::before { background: var(--lime); }
.chat-close { margin-left: auto; background: rgba(255,255,255,.1); border: 0; color: var(--white); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg small { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.msg-visitor { align-self: flex-end; background: var(--green-900); color: var(--white); border-bottom-right-radius: 4px; }
.msg-admin, .msg-bot { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.msg-admin { border-color: var(--lime-600); }
.msg-who { font-size: 11px; font-weight: 700; color: var(--green-700); margin-bottom: 2px; display: block; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; background: var(--white); border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex-shrink: 0; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 7px 12px; font-size: 12px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.chat-quick button:hover { border-color: var(--green-900); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 6px; background: var(--white); }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 14px; min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--green-700); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lime); color: var(--green-900); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-legal { font-size: 11px; color: var(--muted); text-align: center; margin: 0; padding: 4px 14px 10px; background: var(--white); }
.chat-legal a { text-decoration: underline; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hide-md { display: none !important; }
  .loan-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-header.is-stuck { animation: none; }
  body.nav-open .site-header { animation: none; transform: none; }
  body.nav-open .chat { display: none; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--green-900); padding: 90px 28px 28px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.3); z-index: 60; }
  .main-nav.is-open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav > ul > li > a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 4px 0 8px 10px; min-width: 0; display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,.8); }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: var(--lime); }
  .dropdown a .icon { color: var(--lime); }
  .dropdown-all { border-color: rgba(255,255,255,.1); }
  .nav-actions-mobile { display: grid; gap: 10px; margin-top: 24px; }
  .header-actions { position: relative; z-index: 70; }
  body.nav-open { overflow: hidden; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .simulator, .about-grid, .faq-grid, .wizard, .contact-grid, .loan-detail, .dash-grid { grid-template-columns: 1fr; }
  .faq-aside, .summary-card { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-media { min-height: 260px; }
  .hero-media { inset: 0; }
  .hero-media::after { background: linear-gradient(90deg, rgba(6,47,42,.95) 0%, rgba(6,47,42,.8) 60%, rgba(6,47,42,.55) 100%); }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .topbar-info span:first-child { display: none; }
  .header-inner { min-height: 72px; gap: 12px; }
  .logo { font-size: 19px; }
  .header-actions .btn-cta-label { padding: 8px 12px; font-size: 13px; }
  .header-actions .btn-cta-ico { display: none; }
  .hero-inner { padding: 150px 0 80px; }
  .section { padding: 70px 0; }
  .feature-grid, .loan-grid, .testi-grid, .steps, .stats-band, .footer-grid, .form-grid, .about-cards, .loan-facts { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .req-meta { grid-template-columns: 1fr 1fr; }
  .sim-controls, .sim-result, .form-card, .auth-form { padding: 26px 20px; }
  .cta-band { padding: 44px 24px; border-radius: 20px; }
  .stepper li { font-size: 0; gap: 0; justify-content: center; }
  .stepper li span { font-size: 13px; }
  .legal-table div { grid-template-columns: 1fr; }
  .chat { right: 16px; bottom: 16px; }
  .chat-panel { bottom: 74px; height: 70vh; }
  .footer-bottom { flex-direction: column; }
}
/* ---------- Ajustements téléphone ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  /* Hero mobile : texte en haut, photo en carte en dessous */
  .hero { display: flex; flex-direction: column; padding-bottom: 24px; }
  .hero > .container { order: 1; }
  .hero-media { order: 2; position: relative; inset: auto; height: 190px; margin: 0 16px; border-radius: 20px; overflow: hidden; }
  .hero-media img { object-position: 62% 25%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(6,47,42,0) 50%, rgba(6,47,42,.55) 100%); }
  .hero-badge { right: auto; left: 14px; bottom: 14px; padding: 8px 14px 8px 8px; font-size: 12px; border-radius: 14px; }
  .hero-badge-ico { width: 36px; height: 36px; border-radius: 10px; }
  .hero-badge strong { font-size: 17px; }
  .hero-inner { padding: 98px 0 22px; }
  .rating-chip { font-size: 12px; padding: 4px 11px; margin-bottom: 12px; gap: 7px; }
  .rating-chip .stars .icon { width: 11px; height: 11px; }
  .hero h1 { font-size: 29px; line-height: 1.08; margin-bottom: 10px; }
  .hero-lead { font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn-cta { flex: 1; justify-content: space-between; }
  .hero-actions .btn-cta-label { flex: 1; text-align: center; padding: 11px 14px; }
  .hero-actions .btn-cta-ico { width: 34px; height: 34px; }
  .call-box > span:last-child { display: none; }
  .call-box-ico { width: 50px; height: 50px; }
  .hero-trust { display: none; }
  .page-banner { padding: 36px 0 44px; }
  .page-banner p { font-size: 15px; }
  .section-title { font-size: 28px; }
  .section-head { gap: 14px; margin-bottom: 30px; }
  .feature-grid { gap: 16px; }
  .feature-card { padding: 24px 22px 70px; }
  .feature-card .f-ico { margin-bottom: 18px; width: 48px; height: 48px; }
  .feature-card h3 { font-size: 19px; }

  /* Simulateur */
  .sim-types { gap: 6px; margin-bottom: 24px; }
  .sim-type { padding: 8px 11px; font-size: 12.5px; }
  .sim-field { margin-bottom: 24px; }
  .sim-field-head { flex-wrap: wrap; }
  .sim-value input { width: 96px; font-size: 17px; }
  .sim-lines li { font-size: 14px; }
  .table th, .table td { padding: 10px 12px; font-size: 13px; }

  /* À propos */
  .about-grid { gap: 36px; }
  .about-media { grid-template-columns: 1fr 1.5fr; gap: 12px; }
  .stat-lime { padding: 14px 8px; font-size: 12px; }
  .stat-lime strong { font-size: 22px; white-space: nowrap; }
  .stat-lime .icon { width: 22px; height: 22px; margin-bottom: 4px; }
  .about-cards { gap: 12px; }
  .mini-card { padding: 20px; }
  .mini-card .big { font-size: 34px; margin: 8px 0 10px; }

  /* Cartes prêts */
  .loan-grid { gap: 16px; }
  .loan-card-media { aspect-ratio: 16/9; }

  /* Étapes */
  .steps { gap: 12px; }
  .step { padding: 22px 20px; }
  .step-num { margin-bottom: 14px; }
  .stats-band { margin-top: 40px; padding-top: 32px; gap: 24px 12px; }

  /* FAQ */
  .faq-grid { gap: 28px; }
  .faq-aside img { display: none; }
  .faq-item summary { font-size: 16px; padding: 16px 18px; }
  .faq-item .faq-a { padding: 0 18px 18px; }

  /* Détail prêt */
  .loan-detail-img { border-radius: 18px; margin-bottom: 22px; }
  .loan-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .loan-facts div { padding: 14px; }
  .loan-facts div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .loan-facts strong { font-size: 17px; }

  /* Contact */
  .info-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .info-item { flex-direction: column; gap: 10px; padding: 16px; }
  .info-item .ico { width: 40px; height: 40px; border-radius: 12px; }
  .info-item p, .info-item a { font-size: 13.5px; }
  .info-item:nth-child(-n+2) { grid-column: 1 / -1; flex-direction: row; align-items: center; }

  /* Connexion / inscription */
  .auth { border-radius: 20px; min-height: 0; }
  .auth-media { min-height: 0; padding: 110px 22px 22px; }
  .auth-media-text { position: relative; left: auto; right: auto; bottom: auto; }
  .auth-media-text h2 { font-size: 24px; }
  .auth-form h1 { font-size: 27px; }

  /* Demande de prêt */
  .wizard { gap: 20px; }
  .wizard-step h2 { font-size: 21px; }
  .choice span { padding: 14px 6px; font-size: 12.5px; }
  .wizard-nav .btn-cta-label { padding: 12px 18px; }
  .summary-card { padding: 24px; border-radius: 20px; }

  /* Espace client */
  .req-card { padding: 18px; }

  /* Pied de page */
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-bottom: 36px; }
  .footer-about, .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col h3 { margin-bottom: 14px; }
  .footer-bottom { padding-bottom: 96px; }

  /* Chat */
  .chat { right: 14px; bottom: 14px; }
  .chat-launcher { width: 54px; height: 54px; }
  .chat-launcher .icon { width: 24px; height: 24px; }
  .chat-panel { bottom: 66px; }
}

@media (max-width: 400px) {
  .logo-text { font-size: 17px; }
  .header-actions .btn-cta-label { padding: 8px 10px; font-size: 12px; }
}
