/* GM Courtage & Financement — design system C1 « Épuré » */
:root {
  --vert: #2d5a4a;
  --vert-hover: #24483b;
  --encre: #1f2d27;
  --texte: #33403a;
  --muted: #5c6660;
  --creme: #fdfcf9;
  --tuile: #eef2ec;
  --bordure: #e6e3da;
  --blanc: #ffffff;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--creme);
  color: var(--texte);
  line-height: 1.6;
  font-size: 17px;
}

.conteneur { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.entete {
  background: var(--creme);
  border-bottom: 1px solid var(--bordure);
  position: sticky; top: 0; z-index: 10;
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px;
}
.logo { font-weight: 800; font-size: 1.15rem; color: var(--vert); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--encre); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 4px 2px; }
.nav a:hover { color: var(--vert); }
.nav a.actif { color: var(--vert); font-weight: 700; border-bottom: 2px solid var(--vert); }

/* ---------- Héros ---------- */
.heros {
  background: linear-gradient(180deg, var(--tuile), var(--creme));
  padding: 64px 0 48px;
  text-align: left;
}
.heros h1 { font-size: 2.3rem; line-height: 1.2; color: var(--encre); font-weight: 800; max-width: 640px; }
.heros .sous-titre { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.heros .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.heros-texte { flex: 1 1 auto; }
.heros .illu { flex: 0 0 auto; width: 310px; height: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--vert); color: #fff;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; margin-top: 22px;
}
.btn:hover { background: var(--vert-hover); }
.btn-secondaire {
  display: inline-block; color: var(--vert); border: 2px solid var(--vert);
  padding: 10px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; margin-top: 22px;
}
.btn-secondaire:hover { background: var(--tuile); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--tuile); }
.section h2 { font-size: 1.6rem; color: var(--encre); font-weight: 800; margin-bottom: 8px; }
.section .intro { color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.section h3 { font-size: 1.15rem; color: var(--encre); margin-bottom: 6px; }

/* ---------- Tuiles ---------- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tuile {
  background: var(--tuile); border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: var(--texte); display: block;
}
.section-alt .tuile { background: var(--blanc); border: 1px solid var(--bordure); }
.tuile:hover { outline: 2px solid var(--vert); }
.tuile h3 { color: var(--vert); }
.tuile p { font-size: 0.95rem; color: var(--muted); }
.tuile .lien { display: inline-block; margin-top: 10px; color: var(--vert); font-weight: 700; font-size: 0.9rem; }

/* ---------- Pictos (icônes SVG inline) ---------- */
.picto { display: block; line-height: 1; margin-bottom: 10px; }
.picto svg { display: block; width: 30px; height: 30px; }

/* ---------- Étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: etape; }
.etape { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius); padding: 22px; }
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--vert); color: #fff; font-weight: 800; margin-bottom: 12px;
}

/* ---------- Listes à coche ---------- */
.liste-coche { list-style: none; }
.liste-coche li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.liste-coche li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 800; }

/* ---------- Encadré ---------- */
.encadre {
  background: var(--tuile); border-left: 4px solid var(--vert);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0;
}
.encadre-legal { background: var(--blanc); border: 1px solid var(--bordure); border-left: 4px solid var(--vert); font-size: 0.9rem; color: var(--muted); }

/* ---------- Bloc contact ---------- */
.bloc-contact { text-align: center; }
.bloc-contact .gros-tel { font-size: 1.7rem; font-weight: 800; color: var(--encre); text-decoration: none; display: inline-block; margin-top: 8px; }

/* ---------- Tableaux ---------- */
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bordure); }
th { color: var(--encre); }

/* ---------- Pages texte (mentions, etc.) ---------- */
.page-texte h1 { font-size: 1.8rem; color: var(--encre); margin: 42px 0 20px; }
.page-texte h2 { font-size: 1.25rem; color: var(--encre); margin: 28px 0 8px; }
.page-texte p, .page-texte li { font-size: 0.98rem; }
.page-texte ul { padding-left: 22px; margin: 8px 0; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--encre); color: #c8d2cc; margin-top: 60px;
  padding: 40px 0 24px; font-size: 0.88rem;
}
.pied .colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.pied h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.pied a { color: #c8d2cc; text-decoration: underline; }
.pied a:hover { color: #fff; }
.pied .bas { border-top: 1px solid #3a4a42; margin-top: 28px; padding-top: 16px; font-size: 0.8rem; color: #93a39b; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .heros .illu { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .heros { padding: 40px 0 32px; }
  .heros h1 { font-size: 1.7rem; }
  .section { padding: 36px 0; }
}
