/* ==========================================================================
   UverOk — feuille de style principale
   Palette (logo) : bleu nuit #0b2545 · corail #d9480f · bleu acier #2c6e9b
   Typo : "Montserrat" (titres) + "DM Sans" (texte courant)
   Les noms de variables (--brass…) sont conservés pour la compatibilité
   avec les gabarits : --brass = orange (boutons d'action), --teal = turquoise (accents).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --ink: #0b2545;
  --ink-soft: #1d4e7a;
  --paper: #f5f8fb;
  --paper-dim: #e3ecf4;
  --brass: #d9480f;
  --brass-dark: #b53a0a;
  --teal: #2c6e9b;
  --teal-dark: #1f5379;
  --charcoal: #13263a;
  --charcoal-soft: #566b80;
  --hairline: #d4e1ec;
  --success: #1c7a3c;
  --error: #b13a3a;

  --font-display: "Montserrat", "DM Sans", Arial, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --radius: 14px;
  --radius-lg: 26px;
  --photo-radius: 26px;
  --shadow: 0 14px 40px rgba(11,37,69, 0.10);
  --shadow-sm: 0 6px 18px rgba(11,37,69, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--charcoal-soft); }

.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }

.section--ink {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--ink::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -200px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.18;
  pointer-events: none;
}
.section--ink > .container { position: relative; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #b9cfe0; }

.section--dim { background: var(--paper-dim); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(44,110,155, 0.10);
  padding: 6px 14px;
  border-radius: 18px;
  line-height: 1.4;
  margin-bottom: 1.1em;
}
.section--ink .eyebrow { color: #9fc6e0; background: rgba(159,198,224, 0.16); }

.hairline { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* ---------- Boutons (en pilule) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(11,37,69, 0.22); }
.btn--primary:hover { background: var(--ink-soft); }

.btn--brass { background: var(--brass); color: #fff; box-shadow: 0 8px 20px rgba(217,72,15, 0.35); }
.btn--brass:hover { background: var(--brass-dark); color: #fff; }

/* Bouton d'action principal du haut d'accueil (corail) */
.btn--green { background: var(--brass); color: #fff; box-shadow: 0 8px 20px rgba(217,72,15, 0.35); }
.btn--green:hover { background: var(--brass-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero .btn--primary { background: #fff; color: var(--ink); box-shadow: none; }
.hero .btn--primary:hover { background: var(--paper-dim); }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--hairline);
}

.topbar {
  background: var(--ink);
  color: #b9cfe0;
  padding: 8px 0;
  font-size: 0.8rem;
}
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: #9fc6e0; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 28px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.logo img { height: 60px; width: auto; display: block; }  /* hauteur du logo : modifiez ici */

.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--paper-dim); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.88rem; white-space: nowrap; }
@media (max-width: 1180px) { .nav-cta .btn { display: none; } }

/* ---------- Sélecteur de langue (menu déroulant) ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 2px solid var(--hairline); border-radius: 999px; background: #fff;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--ink);
  transition: border-color .15s ease, background .15s ease; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--teal); background: var(--paper-dim); }
.lang-menu summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.lang-menu .chev { width: 12px; height: 12px; transition: transform .15s ease; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-code { display: none; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border-radius: 18px; box-shadow: 0 18px 44px rgba(11,37,69, 0.22); border: 1px solid var(--hairline); z-index: 60;
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 14px; border-radius: 12px; font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.lang-list a small { font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; color: var(--charcoal-soft); letter-spacing: .06em; }
.lang-list a:hover { background: var(--paper-dim); }
.lang-list a.is-active { background: var(--ink); color: #fff; }
.lang-list a.is-active small { color: #9fc6e0; }

.nav-toggle {
  display: none;
  background: var(--paper-dim);
  border: none;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------- Hero (fond sombre) ---------- */
.hero {
  padding: 84px 0 92px;
  color: #fff;
  background: var(--ink) url('../img/img16.jpg') center / cover no-repeat;
}
.hero .eyebrow { color: #9fc6e0; background: rgba(159,198,224, 0.16); }
.hero h1 { color: #fff; }
.hero-slide > p:not(.eyebrow) { color: #cfe0ee; font-size: 1.02rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 14px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-trust div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 20px;
  min-width: 128px;
}
.hero-trust div strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.hero-trust div span { font-size: 0.82rem; color: #a8c3d8; }

/* ---------- Simulateur ---------- */
.simulator {
  background: #fff;
  color: var(--charcoal);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}
.simulator h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }
.simulator .sub { color: var(--charcoal-soft); font-size: 0.9rem; margin-bottom: 26px; }

.field { margin-bottom: 26px; }
.field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; color: var(--ink-soft);
}
.field label .val {
  background: var(--paper-dim); color: var(--ink);
  font-weight: 700; font-family: var(--font-display); font-size: 0.95rem;
  padding: 4px 12px; border-radius: 999px;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: var(--paper-dim); outline-offset: 6px; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--paper-dim); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--paper-dim); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--brass); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(11,37,69,.35);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brass); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(11,37,69,.35); }

.simulator-result {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #b9cfe0;
  border-radius: 18px; padding: 18px 22px; margin-top: 8px;
}
.simulator-result .amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; }
.simulator-result .amount small { font-size: 0.95rem; color: #9fc6e0; font-weight: 500; }

/* ---------- Grilles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Cartes « pourquoi nous » */
.feature {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #b5cde0;
}
.feature-icon, .loan-icon {
  width: 60px; height: 60px; margin-bottom: 18px; display: block;
  object-fit: cover; border-radius: 18px; background: var(--paper-dim);
}
.feature p { margin: 0; font-size: 0.9rem; }

/* ---------- Cartes de prêt ---------- */
.loan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.loan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.loan-card h3 { margin-bottom: 10px; }
.loan-card .rate {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: var(--brass-dark); background: rgba(217,72,15, 0.14);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.loan-card a { font-weight: 700; color: var(--teal-dark); font-size: 0.92rem; }
.loan-card a::after { content: " →"; }

/* ---------- Avatars ---------- */
.quote-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: var(--paper-dim); display: block; flex-shrink: 0;
}
.quote-footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 0.85rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Illustrations ---------- */
.about-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--photo-radius); background: var(--paper-dim); box-shadow: var(--shadow-sm);
}

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; font-size: 0.9rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brass); color: #fff;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
}

/* ---------- Engagements (cartes translucides) ---------- */
.quote {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.quote p { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; line-height: 1.5; color: #fff; }
.section--ink .quote p { color: #fff; }
.quote footer, .section--ink .quote footer, .section--ink .quote-footer { color: #a8c3d8; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff; border-radius: 18px; margin-bottom: 12px;
  padding: 0 24px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-weight: 700;
  font-size: 0.93rem; color: var(--ink); display: flex; justify-content: space-between;
  align-items: center; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 30px; height: 30px; margin-left: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--paper-dim); color: var(--teal-dark); font-size: 1.2rem; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; background: var(--brass); color: #fff; }
.faq-item .answer { padding-bottom: 20px; }
.faq-item .answer p { margin: 0; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-group .hint { font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 6px; }
.form-group .error-msg { font-size: 0.78rem; color: var(--error); margin-top: 6px; display: none; }
.form-group.has-error .error-msg { display: block; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--error); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--hairline); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.92rem; background: var(--paper); color: var(--charcoal);
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea { resize: vertical; min-height: 120px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 5px; accent-color: var(--teal); }
.checkbox-row label { font-size: 0.85rem; color: var(--charcoal-soft); font-weight: 400; }
.checkbox-row label a { color: var(--teal-dark); text-decoration: underline; }

.form-feedback { display: none; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.92rem; }
.form-feedback.show { display: block; }
.form-feedback.success { background: #e2f4ec; color: var(--success); border: 1px solid #b7e0c6; }
.form-feedback.error { background: #fbe9e9; color: var(--error); border: 1px solid #efc3c3; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  background: var(--ink); border-radius: 32px; padding: 44px 48px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9cfe0; }
.cta-band .btn--primary { background: var(--brass); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--brass-dark); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #a8c3d8; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer .logo { background: #fff; border-radius: 18px; padding: 10px 16px; }
.site-footer .logo img { height: 74px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-links a { color: #a8c3d8; }
.footer-links a:hover { color: var(--brass); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 0.8rem; color: #7fa0ba; flex-wrap: wrap; gap: 10px;
}
.footer-note { font-size: 0.85rem; color: #8ba9c0; max-width: 44ch; margin-top: 14px; }

/* ---------- En-tête des pages internes ---------- */
.page-header {
  padding: 64px 0 52px;
  background: linear-gradient(180deg, var(--paper-dim) 0%, var(--paper) 100%);
}
.page-header p { max-width: 60ch; font-size: 1rem; }

/* ---------- Bandeau illustré (page Nos offres) ---------- */
.offers-banner { padding: 8px 0 56px; }
.offers-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--photo-radius); background: var(--paper-dim); box-shadow: var(--shadow-sm);
}

/* ---------- Écran de transition (logo) ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: #fff; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease .12s, visibility 0s linear .37s;
}
.page-loader.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease .12s, visibility 0s linear .12s; }
.page-loader img { width: 84px; height: 84px; animation: mf-pulse 1.1s ease-in-out infinite; }
@keyframes mf-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.1); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 28px; }
}
@media (max-width: 680px) {
  .topbar { display: none; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .logo img { height: 48px; }
  .lang-name { display: none; }
  .lang-code { display: inline; }
  .lang-menu summary { padding: 9px 12px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .form-card { padding: 26px 20px; }
  .simulator { padding: 26px 22px; }
  .offers-photo { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .page-loader img { animation: none; }
}

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* Pages légales */
.legal-content { max-width: 780px; }
.legal-content h2 { margin: 1.8em 0 .5em; }
.legal-content p, .legal-content ul { margin-bottom: 1em; line-height: 1.7; }
.legal-content ul { padding-left: 1.3em; list-style: disc; }
.footer-legal a { color: inherit; text-decoration: underline; margin-right: 14px; }

/* Hero : texte défilant */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hero .h1like { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.hero-dots { display: flex; gap: 8px; margin-top: 22px; }
.hero-dot { width: 26px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s, width .3s; }
.hero-dot.is-active { background: #fff; width: 42px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Hero : une image de fond par message */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 2; }
.hero-bgs { position: absolute; inset: 0; z-index: 0; }
.hero-bgs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,37,69,.88) 0%, rgba(11,37,69,.62) 55%, rgba(11,37,69,.35) 100%); }
.hero-bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.hero-bg.is-active { opacity: 1; }
@media (max-width: 900px) { .hero-bgs::after { background: rgba(11,37,69,.78); } }
.loan-icon, .feature-icon { object-fit: contain; }

/* Hero : coins arrondis en bas */
.hero { border-radius: 0 0 48px 48px; }
@media (max-width: 700px) { .hero { border-radius: 0 0 28px 28px; } }

/* Engagements : photo en arrière-plan, texte par-dessus */
.quote {
  position: relative; overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-color: var(--ink); background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 0;
}
.quote::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(11,37,69,.25) 0%, rgba(11,37,69,.72) 45%, rgba(11,37,69,.94) 100%);
}
.quote > * { position: relative; z-index: 1; }
.quote .quote-footer { color: #d4e8f5; }

/* Carte Google Maps (page Contact) */
.map-box { margin-top: 22px; }
.map-box iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: var(--radius-lg); background: var(--paper-dim); }
.map-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--teal-dark); }

/* Bannière de consentement aux cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; max-width: 560px; margin: 0 auto; background: #0b2545; color: #fff; padding: 18px 20px; border-radius: 14px; box-shadow: 0 14px 40px rgba(11,37,69,.4); font-size: .92rem; line-height: 1.5; }
.cookie-banner p { margin: 0 0 14px; color: #fff; }
.cookie-banner a { color: #ffd0b8; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn { padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid #fff; }
.cookie-no { background: transparent; color: #fff; }
.cookie-ok { background: #d9480f; border-color: #d9480f; color: #fff; }

/* ---------- UverOk : mises en page propres au site ---------- */
/* Accueil : simulateur à gauche, texte à droite */
.hero-grid > .simulator { order: -1; }
.hero-bgs::after { background: linear-gradient(270deg, rgba(11,37,69,.9) 0%, rgba(11,37,69,.66) 55%, rgba(11,37,69,.4) 100%); }
/* « Pourquoi nous » : grande illustration + 4 raisons en 2 colonnes */
.why-wrap { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 36px; align-items: stretch; margin-top: 40px; }
.why-photo { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--photo-radius); box-shadow: var(--shadow-sm); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-grid .feature { padding: 24px 22px; }
/* Offres : cartes en 2 colonnes, icône à gauche */
.loans-2 { grid-template-columns: repeat(2, 1fr); }
.loans-2 .loan-card { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; align-items: start; }
.loans-2 .loan-card > * { grid-column: 2; }
.loans-2 .loan-card > .loan-icon { grid-column: 1; grid-row: 1 / span 5; margin: 0; }
/* Sections à image/texte inversés */
.grid-2--rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .why-wrap { grid-template-columns: 1fr; }
  .why-photo { min-height: 220px; max-height: 280px; }
  .grid-2--rev > :first-child { order: 0; }
  .hero-grid > .simulator { order: 0; }
  .hero-bgs::after { background: rgba(11,37,69,.78); }
}
@media (max-width: 700px) { .why-grid, .loans-2 { grid-template-columns: 1fr; } }
.hero-trust { flex-wrap: nowrap; }
.hero-trust div { min-width: 0; flex: 1; padding: 14px 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-trust { flex-wrap: wrap; } .hero-trust div { flex: 1 1 128px; } }

/* ---------- UverOk : mentions réglementaires (intermédiaire de crédit) ---------- */
.broker-note { background: var(--paper-dim); border-bottom: 1px solid var(--hairline); }
.broker-note p { margin: 0; padding: 14px 0; font-size: 0.86rem; color: var(--ink); text-align: center; }
.footer-reg { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: 0.8rem; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 980px; }
.footer-reg a { text-decoration: underline; }
.company-card { margin: 26px 0 0; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 8px 26px; box-shadow: var(--shadow-sm); }
.company-card > div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.company-card > div:last-child { border-bottom: 0; }
.company-card dt { font-weight: 700; color: var(--ink); }
.company-card dd { margin: 0; }
.company-card a { color: var(--brass-dark); text-decoration: underline; }
@media (max-width: 640px) { .company-card > div { grid-template-columns: 1fr; gap: 2px; } }
