/* Dumortier Courtage — identité pétrole #003040 + or #B0A050 */

:root {
  --petrol: #003040;
  --petrol-dark: #001F2A;
  --gold: #B0A050;
  --gold-dark: #8E8038;
  --creme: #FBF9F3;
  --creme-2: #F4F0E6;
  --ink: #272727;
  --ink-soft: #4A4A4A;
  --white: #FFFFFF;
  --line: #E3DDCD;
  --radius: 2px;
  --shadow: 0 6px 24px rgba(0, 31, 42, 0.10);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--petrol);
  letter-spacing: 0.005em;
  text-transform: none;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; }

section { padding: 76px 0; }

.section-eyebrow, .eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 36em; }

/* Ligne dorée horizontale, comme sur la référence */
.gold-rule {
  display: block;
  width: 54px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 24px;
}
.gold-rule.center { margin: 18px auto 30px; }

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-ghost { background: transparent; color: var(--petrol); border: 1.5px solid var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: var(--white); }

.btn-full { width: 100%; text-align: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 243, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 88px;
}

.logo img { display: block; height: 58px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--petrol); }

.nav-cta { padding: 12px 22px; font-size: 0.88rem; white-space: nowrap; }

/* ---- Hero ---- */
.hero { background: var(--creme); padding: 92px 0 84px; }

.hero-inner { max-width: 1120px; }
.hero h1 { margin-bottom: 6px; }
.hero .lead { margin-top: 4px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }

.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-proof li {
  font-size: 0.95rem; color: var(--ink-soft);
  position: relative; padding-left: 18px;
}
.hero-proof li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}

/* ---- Taux : pastilles rondes avec % à l'intérieur ---- */
.taux { background: var(--petrol); }
.taux h2 { color: var(--white); text-align: center; }
.taux .section-eyebrow { text-align: center; }

.taux-grid {
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  margin: 40px 0 30px;
}

.taux-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.taux-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--white);
}

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

.taux-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  max-width: 62em;
  text-align: center;
  margin: 0 auto;
}

/* ---- Méthode ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---- À propos / engagements ---- */
.apropos { background: var(--creme-2); }

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

.apropos .lead { margin-bottom: 26px; }

.engagements { display: flex; flex-direction: column; gap: 18px; }

.engagement {
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.engagement h3 { margin-bottom: 8px; font-size: 1.12rem; }
.engagement p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Partenaires ---- */
.partenaires {
  background: var(--white);
}
.partenaires h2 { text-align: center; margin-bottom: 6px; }
.partenaires .section-eyebrow { text-align: center; }

/* Conteneur avec masque latéral pour un fondu des bords */
.banques-track {
  overflow: hidden;
  margin-top: 28px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Le groupe animé : les deux listes côte à côte, on les fait glisser de -50% */
.banques-slide {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.banques {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 52px;
  margin: 0;
  padding: 0 26px;
  flex-shrink: 0;
}

.banques li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 56px;
}

.banques li img {
  display: block;
  max-height: 40px;
  max-width: 150px;
  width: auto;
  height: auto;
  opacity: 0.72;
  transition: opacity 0.25s;
}

.banques-track:hover li img { opacity: 1; }

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

/* Pause au survol */
.banques-track:hover .banques-slide { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .banques-slide { animation: none; }
  .banques { flex-wrap: wrap; justify-content: center; }
}

/* ---- Avis ---- */
.avis { background: var(--petrol); }
.avis h2 { color: var(--white); text-align: center; }
.avis .section-eyebrow { text-align: center; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.avis-card {
  background: var(--petrol-dark);
  border: 1px solid rgba(176, 160, 80, 0.35);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.avis-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.avis-card footer {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---- Contact ---- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.contact-details { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-details div { display: flex; gap: 14px; align-items: center; }
.contact-details dt { font-weight: 700; color: var(--petrol); min-width: 96px; font-size: 0.95rem; }
.contact-details dd { color: var(--ink-soft); margin: 0; }
.contact-details dd.home-icon { display: flex; align-items: center; gap: 8px; }
.contact-details a { color: var(--ink-soft); text-decoration: none; }
.contact-details a:hover { color: var(--petrol); text-decoration: underline; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }

.field label { font-weight: 600; font-size: 0.9rem; color: var(--petrol); }

.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-legal {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-status { grid-column: 1 / -1; font-size: 0.92rem; color: var(--petrol); min-height: 1.2em; }

/* ---- Footer ---- */
.site-footer { background: var(--petrol-dark); color: rgba(255, 255, 255, 0.72); padding: 52px 0 40px; }

.footer-inner { display: grid; gap: 22px; }

.site-footer img { display: block; height: 60px; width: auto; }

.footer-tagline { font-size: 0.9rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.footer-legal { font-size: 0.8rem; line-height: 1.7; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { gap: 16px; height: 74px; }
  .logo img { height: 46px; }
  .apropos-inner, .contact-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
  .taux-grid { gap: 26px; }
  .taux-circle { width: 150px; height: 150px; }
  section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .taux-circle { width: 132px; height: 132px; }
}