/* ============================================================
   MAROC CRÉDIT — Feuille de style principale
   Palette : Vert #006B3F | Or #C8A84B | Blanc #FAFAFA
   ============================================================ */

:root {
  --green:       #006B3F;
  --green-light: #008A50;
  --green-dark:  #004D2C;
  --gold:        #C8A84B;
  --gold-light:  #E8C96A;
  --navy:        #1A2B3C;
  --white:       #FFFFFF;
  --ivory:       #FAFAF8;
  --warm-gray:   #F4F2EE;
  --border:      #E5E2DC;
  --text-muted:  #6B7280;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,107,63,.08);
  --shadow-lg:   0 12px 40px rgba(0,107,63,.15);
  --transition:  all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--navy); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); }
.fw-500 { font-weight: 500; }

/* ── TOPBAR ── */
.topbar { background: var(--green-dark); color: rgba(255,255,255,.8); font-size: .78rem; padding: 8px 0; position: fixed; top: 0; left: 0; right: 0; z-index: 1050; }
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: var(--gold-light); }
.topbar-cta { background: var(--gold); color: white !important; padding: 3px 12px; border-radius: 20px; font-weight: 600; font-size: .72rem; }
.topbar-cta:hover { background: #a8882e !important; }

/* ── NAVBAR ── */
#mainNav { top: 36px !important; border-bottom: 1px solid var(--border); padding: 14px 0; transition: var(--transition); }
#mainNav.scrolled { box-shadow: var(--shadow-lg) !important; }
.logo-mc-vert { font-family: var(--font-display); font-size: 1.5rem; color: var(--green); font-weight: 700; letter-spacing: -.5px; }
.logo-mc-gold { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); font-weight: 700; }
.logo-tagline  { font-size: .58rem; letter-spacing: 3px; color: var(--text-muted); text-transform: uppercase; display: block; margin-top: -4px; }

.navbar-nav .nav-link { color: var(--navy) !important; font-weight: 500; font-size: .9rem; padding: 8px 14px; border-radius: 8px; transition: var(--transition); }
.navbar-nav .nav-link:hover { background: var(--warm-gray); color: var(--green) !important; }

/* ── BOUTONS ── */
.btn-green { background: var(--green); color: white; border: 2px solid var(--green); border-radius: 8px; font-weight: 600; transition: var(--transition); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: white; transform: translateY(-1px); }
.btn-outline-green { background: transparent; color: var(--green); border: 2px solid var(--green); border-radius: 8px; font-weight: 600; transition: var(--transition); }
.btn-outline-green:hover { background: var(--green); color: white; }
.btn-gold { background: var(--gold); color: white; border: 2px solid var(--gold); border-radius: 8px; font-weight: 600; transition: var(--transition); }
.btn-gold:hover { background: #a8882e; border-color: #a8882e; color: white; }
.text-green { color: var(--green) !important; }
.text-gold  { color: var(--gold)  !important; }
.bg-green   { background: var(--green) !important; }

/* ── HERO ── */
.hero-mc {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-mc-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, rgba(200,168,75,.3) 100%);
  z-index: 0;
}
.hero-mc-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(200,168,75,.1) 0%, transparent 50%);
}
.hero-mc-content { position: relative; z-index: 2; padding: 60px 0; }
.hero-eyebrow { font-size: .75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 16px; display: block; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); color: white; font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 32px; }

/* ── SIMULATEUR HERO ── */
.simulateur-hero {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
}
.sim-tabs { display: flex; background: var(--warm-gray); border-bottom: 1px solid var(--border); }
.sim-tab { flex: 1; padding: 14px 8px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; transition: var(--transition); border-bottom: 3px solid transparent; }
.sim-tab.active { color: var(--green); border-bottom-color: var(--green); background: white; }
.sim-body { padding: 28px 24px; }

/* Slider */
.sim-slider-wrap { margin-bottom: 20px; }
.sim-slider-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sim-slider-label span { font-size: .82rem; font-weight: 500; color: var(--text-muted); }
.sim-slider-val { font-size: 1.2rem; font-weight: 700; color: var(--green); font-family: var(--font-display); }
.sim-range { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--border); outline: none; }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green); cursor: pointer; box-shadow: 0 2px 8px rgba(0,107,63,.3); border: 3px solid white; }

/* Résultat simulateur */
.sim-result { background: linear-gradient(135deg, var(--green), var(--green-light)); border-radius: 10px; padding: 20px; color: white; text-align: center; margin-top: 20px; }
.sim-mensualite { font-size: 2.2rem; font-weight: 700; font-family: var(--font-display); color: white; line-height: 1; }
.sim-result-label { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.sim-details { display: flex; justify-content: space-around; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.sim-detail-item span { display: block; font-size: .72rem; color: rgba(255,255,255,.6); }
.sim-detail-item strong { font-size: .88rem; color: white; }
.sim-disclaimer { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 10px; }

/* ── SECTIONS ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: 3px; color: var(--green); font-weight: 700; margin-bottom: 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin: 0; }
.section-sub { color: var(--text-muted); margin-top: 8px; font-size: .95rem; }
.bg-light-warm { background: var(--warm-gray); }

/* ── PRODUITS CRÉDIT ── */
.produit-card {
  background: white; border-radius: var(--radius);
  padding: 32px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: var(--transition);
  height: 100%; position: relative; overflow: hidden;
}
.produit-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--green); }
.produit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--green); }
.produit-card.featured::before { background: linear-gradient(90deg, var(--green), var(--gold)); }
.produit-icon { width: 60px; height: 60px; background: rgba(0,107,63,.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--green); margin-bottom: 18px; }
.produit-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.produit-card p { font-size: .87rem; color: var(--text-muted); margin-bottom: 16px; }
.produit-taux { font-size: 1.6rem; font-family: var(--font-display); font-weight: 700; color: var(--green); }
.produit-taux small { font-size: .75rem; color: var(--text-muted); font-family: var(--font-body); }
.badge-pop { position: absolute; top: 16px; right: 16px; background: var(--gold); color: white; font-size: .68rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; }

/* ── ÉTAPES ── */
.etape-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.etape-num { width: 48px; height: 48px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; flex-shrink: 0; }
.etape-content h6 { font-weight: 700; margin-bottom: 4px; }
.etape-content p { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* ── TEMOIGNAGES ── */
.temoignage-mc { background: white; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--green); height: 100%; }
.temo-stars-mc { color: var(--gold); font-size: .88rem; margin-bottom: 12px; }
.temo-texte-mc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.temo-avatar-mc { width: 40px; height: 40px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: .9rem; flex-shrink: 0; }

/* ── IMMO COBAN PARTNER ── */
.partner-banner { background: linear-gradient(90deg, var(--navy) 0%, #2C4470 100%); color: white; padding: 36px 0; }
.partner-logo-ic { font-family: var(--font-display); font-size: 1.3rem; }
.partner-logo-ic span:first-child { color: white; }
.partner-logo-ic span:last-child  { color: #C8833A; }

/* ── SIMULATEUR PAGE ── */
.page-simulateur { padding-top: 120px; padding-bottom: 60px; }
.sim-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.sim-card-header { background: linear-gradient(135deg, var(--green), var(--green-light)); padding: 32px; color: white; }
.sim-card-body { padding: 36px; }
.form-control-mc, .form-select-mc { border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: .9rem; width: 100%; transition: var(--transition); font-family: var(--font-body); }
.form-control-mc:focus, .form-select-mc:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,107,63,.1); outline: none; }
.result-box { background: var(--warm-gray); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.result-main { font-size: 2.5rem; font-family: var(--font-display); font-weight: 700; color: var(--green); line-height: 1; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.result-item { background: white; border-radius: 10px; padding: 16px; text-align: center; border: 1px solid var(--border); }
.result-item .val { font-size: 1.2rem; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.result-item .lbl { font-size: .73rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── FOOTER ── */
.site-footer-mc { background: var(--green-dark); color: rgba(255,255,255,.75); }
.footer-bottom-mc { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 12px; }
.footer-bottom-mc a { color: rgba(255,255,255,.4); text-decoration: none; transition: var(--transition); }
.footer-bottom-mc a:hover { color: var(--gold-light); }
.footer-links-mc { list-style: none; padding: 0; margin: 0; }
.footer-links-mc li { margin-bottom: 8px; font-size: .87rem; }
.footer-links-mc a { color: rgba(255,255,255,.6); text-decoration: none; transition: var(--transition); }
.footer-links-mc a:hover { color: var(--gold-light); }
.footer-title-mc { color: white; font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; font-family: var(--font-body); }
.footer-socials-mc a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; color: rgba(255,255,255,.7); text-decoration: none; margin-right: 8px; transition: var(--transition); font-size: .95rem; }
.footer-socials-mc a:hover { background: var(--gold); color: white; }

/* ── DISCLAIMER ── */
.disclaimer { background: #f8f9fa; border-top: 1px solid var(--border); padding: 20px 0; font-size: .73rem; color: var(--text-muted); line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-mc { min-height: auto; }
  .sim-tabs .sim-tab { font-size: .72rem; padding: 10px 4px; }
  .simulateur-hero { margin-top: 32px; }
  .result-grid { grid-template-columns: 1fr; }
}
