/* ────────────────────────────────────────────────────────────────────────
   Démo COURTIER EN CRÉDIT — "Boréal Crédit"
   Archétype : comparateur / concurrence bancaire, tableau de bord financier.
   Univers : navy profond + menthe (confiance fintech), typo Sora + Public Sans.
   Look TOTALEMENT indépendant du site Ready Player Web. Préfixe : c-
   Mobile d'abord.
   ──────────────────────────────────────────────────────────────────────── */

body.courtier {
  --c-ink: #0f1c3f;      /* navy profond, texte fort */
  --c-navy2: #16264f;    /* navy panneaux */
  --c-mint: #16c98c;     /* accent menthe (gain, CTA) */
  --c-mint-d: #0ea472;
  --c-paper: #f5f8fc;    /* fond frais */
  --c-card: #ffffff;
  --c-line: #e3e9f3;
  --c-muted: #5c6b8a;
  --c-marche: #c94f5a;   /* rouge sobre : le "trop cher" du marché */

  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.courtier h1,
body.courtier h2,
body.courtier h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
body.courtier p { margin: 0 0 1rem; }
body.courtier a { color: inherit; text-decoration: none; }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.c-btn--mint { background: var(--c-mint); color: #06241a; box-shadow: 0 6px 18px rgba(22, 201, 140, 0.28); }
.c-btn--mint:hover { background: var(--c-mint-d); transform: translateY(-2px); }
.c-btn--light { background: #fff; color: var(--c-ink); }
.c-btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.c-btn--full { width: 100%; }
.c-btn--lg { padding: 0.95rem 1.8rem; font-size: 1.05rem; }

/* ── Header ──────────────────────────────────────────────────────────── */
.c-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.c-logo { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--c-ink); }
.c-logo span { color: var(--c-mint-d); }
.c-nav { display: none; margin-left: auto; gap: 1.5rem; align-items: center; font-weight: 500; }
.c-nav a:hover { color: var(--c-mint-d); }
.c-header .c-btn { margin-left: auto; }
.c-header .c-nav + .c-btn { margin-left: 0; }

@media (min-width: 860px) {
  .c-nav { display: flex; }
  .c-header .c-btn { margin-left: 0; }
}

/* ── Hero scindé ─────────────────────────────────────────────────────── */
.c-hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}
.c-hero__eyebrow {
  color: var(--c-mint-d);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.c-hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; }
.c-hero h1 em { color: var(--c-mint-d); font-style: normal; }
.c-hero__lead { font-size: 1.08rem; color: var(--c-muted); margin: 1.1rem 0 1.5rem; max-width: 34ch; }
.c-hero__proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.c-hero__proof li { font-size: 0.95rem; color: var(--c-ink); }
.c-hero__proof li span {
  display: inline-block;
  min-width: 3.4rem;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: var(--c-mint-d);
}

@media (min-width: 900px) {
  .c-hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 3.5rem; }
}

/* ── Simulateur inline ───────────────────────────────────────────────── */
.c-sim {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 28, 63, 0.12);
}
.c-sim__head h2 { font-size: 1.35rem; }
.c-sim__head p { color: var(--c-muted); font-size: 0.9rem; margin: 0.2rem 0 1.2rem; }

.c-sim__field { margin-bottom: 1.15rem; }
.c-sim__field label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-muted);
}
.c-sim__field output {
  float: right;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--c-ink);
}

/* Curseurs stylés (WebKit + Firefox) */
.c-sim input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--c-line);
  outline: none;
}
.c-sim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-mint);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(22, 201, 140, 0.5);
  cursor: pointer;
}
.c-sim input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-mint);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(22, 201, 140, 0.5);
  cursor: pointer;
}

.c-sim__result {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border-radius: 14px;
  background: var(--c-ink);
  color: #eaf1ff;
}
.c-sim__mensu { text-align: center; }
.c-sim__mensu-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fb2d8; }
.c-sim__mensu-val { display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 2rem; color: var(--c-mint); margin: 0.2rem 0; }
.c-sim__mensu-sub { display: block; font-size: 0.78rem; color: #9fb2d8; }
.c-sim__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.c-sim__meta span { display: block; font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.98rem; }
.c-sim__meta small { display: block; font-size: 0.68rem; color: #9fb2d8; margin-top: 0.15rem; }
.c-sim .c-btn--full { margin-top: 1.2rem; }
.c-sim__note { font-size: 0.72rem; color: var(--c-muted); margin: 0.8rem 0 0; text-align: center; }

/* ── En-têtes de section ─────────────────────────────────────────────── */
.c-section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.c-kicker { color: var(--c-mint-d); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.c-section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.c-section-head--light .c-kicker { color: var(--c-mint); }
.c-section-head--light h2 { color: #fff; }

/* ── Panneau des taux (board) ───────────────────────────────────────── */
.c-taux { background: var(--c-ink); color: #eaf1ff; padding: 3rem 1.25rem 3.2rem; }
.c-board {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
}
.c-board__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.c-board__row:last-child { border-bottom: 0; }
.c-board__row--head {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fb2d8;
  font-weight: 600;
}
.c-board__duree { font-family: "Sora", sans-serif; font-weight: 700; }
.c-board__marche { font-family: "Sora", sans-serif; font-weight: 700; color: #eaf1ff; }
/* Sélecteur à deux classes : bat `body.courtier p` (qui remet les marges à 0),
   sinon `margin: auto` est écrasé et la note reste collée à gauche. */
.c-taux .c-board__foot { max-width: 820px; margin: 1rem auto 0; text-align: center; font-size: 0.75rem; color: #9fb2d8; }

/* ── Bandeau de preuves ──────────────────────────────────────────────── */
.c-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  max-width: 1180px;
  margin: 0 auto;
}
.c-stat { background: var(--c-paper); padding: 1.8rem 1rem; text-align: center; }
.c-stat__big { display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--c-ink); }
.c-stat__label { display: block; font-weight: 600; margin-top: 0.25rem; }
.c-stat__sub { display: block; font-size: 0.8rem; color: var(--c-muted); }

@media (min-width: 760px) {
  .c-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ── Comment ça marche ───────────────────────────────────────────────── */
.c-how { padding: 3.5rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.c-steps { display: grid; gap: 1.2rem; }
.c-step {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 1.6rem;
}
.c-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--c-mint);
  color: #06241a;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.c-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.c-step p { color: var(--c-muted); margin: 0; }

@media (min-width: 760px) { .c-steps { grid-template-columns: repeat(3, 1fr); } }

/* ── Types de projet ─────────────────────────────────────────────────── */
.c-projets { padding: 1rem 1.25rem 3.5rem; max-width: 1080px; margin: 0 auto; }
.c-projets__grid { display: grid; gap: 1rem; }
.c-projet {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.c-projet:hover { border-color: var(--c-mint); transform: translateY(-3px); }
.c-projet__icon { font-size: 1.8rem; }
.c-projet h3 { font-size: 1.1rem; margin: 0.6rem 0 0.4rem; }
.c-projet p { color: var(--c-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.c-projet__cta { background: none; border: 0; padding: 0; color: var(--c-mint-d); font-weight: 700; font-family: "Sora", sans-serif; cursor: pointer; }
.c-projet__cta:hover { text-decoration: underline; }

@media (min-width: 720px) { .c-projets__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .c-projets__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Partenaires ─────────────────────────────────────────────────────── */
.c-partners { padding: 2.5rem 1.25rem; text-align: center; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.c-partners__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-muted); margin-bottom: 1.2rem; }
.c-partners__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.6rem; }
.c-partners__logo { font-family: "Sora", sans-serif; font-weight: 700; color: #8595b5; font-size: 1rem; }

/* ── Avis ────────────────────────────────────────────────────────────── */
.c-reviews { padding: 3.5rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.c-reviews__grid { display: grid; gap: 1.2rem; }
.c-review {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0;
}
.c-review__stars { color: #f4b740; letter-spacing: 0.1em; margin: 0 0 0.6rem; }
.c-review blockquote { margin: 0 0 0.8rem; font-size: 1.02rem; }
.c-review figcaption { color: var(--c-muted); font-weight: 600; font-size: 0.9rem; }

@media (min-width: 820px) { .c-reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.c-faq { padding: 1rem 1.25rem 3.5rem; max-width: 1000px; margin: 0 auto; }
.c-faq__grid { display: grid; gap: 1.2rem; }
.c-faq__item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.c-faq__item p { color: var(--c-muted); margin: 0; }
@media (min-width: 760px) { .c-faq__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.4rem; } }

/* ── CTA final ───────────────────────────────────────────────────────── */
.c-cta { padding: 1rem 1.25rem 4rem; }
.c-cta__inner {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--c-navy2), var(--c-ink));
  color: #fff;
  border-radius: 24px;
  padding: 2.8rem 1.8rem;
  text-align: center;
}
.c-cta__inner h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff; }
/* Deux classes pour battre `body.courtier p` et garder le `margin: auto` (centrage). */
.c-cta .c-cta__inner p { color: #b7c4e0; margin: 0.8rem auto 1.6rem; max-width: 44ch; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.c-foot { background: var(--c-ink); color: #b7c4e0; text-align: center; padding: 2.5rem 1.25rem; }
.c-foot__name { font-family: "Sora", sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem; margin-bottom: 0.3rem; }
.c-foot p { margin: 0 0 0.4rem; }
/* Deux classes : bat `.c-foot p` et `body.courtier p`, sinon `margin: auto` sauté → collé à gauche. */
.c-foot .c-foot__legal { font-size: 0.72rem; color: #7f8fb0; max-width: 620px; margin: 1rem auto 0; }

/* ── Modale demande de rappel ────────────────────────────────────────── */
.cb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
/* L'attribut `hidden` (display:none du navigateur) est écrasé par la règle
   .cb ci-dessus : on le rétablit explicitement, sinon la modale reste ouverte. */
.cb[hidden] { display: none; }
.cb__step[hidden] { display: none; }
.cb__overlay { position: absolute; inset: 0; background: rgba(15, 28, 63, 0.55); backdrop-filter: blur(3px); }
.cb__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--c-card);
  border-radius: 20px;
  padding: 2rem 1.7rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.cb__x {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-muted);
  cursor: pointer;
}
.cb__title { font-size: 1.4rem; margin: 0.2rem 0 0.6rem; }
.cb__ctx {
  background: rgba(22, 201, 140, 0.1);
  border: 1px solid rgba(22, 201, 140, 0.3);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
  color: var(--c-ink);
  margin-bottom: 1rem;
}
.cb__fields { display: grid; gap: 0.7rem; margin-bottom: 1.1rem; }
.cb__input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: 11px;
  font: inherit;
  color: var(--c-ink);
  background: #fff;
}
.cb__input:focus { outline: none; border-color: var(--c-mint); box-shadow: 0 0 0 3px rgba(22, 201, 140, 0.18); }
.cb__confirm { font-size: 1.05rem; }
.cb__note { font-size: 0.78rem; color: var(--c-muted); }
.c-check {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--c-mint);
  color: #06241a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
}
.cb__step[data-cb-step="done"] { text-align: center; }
