/* Header géré globalement via mu-plugin (wp_head) */
/* ── VARIABLES ────────────────────────────────────────────── */
:root{
  --cf-blue:#0a3d8f; --cf-blue2:#1565c0;
  --cf-orange:#e65100; --cf-orange2:#f57c00;
  --cf-light:#f0f4fb; --cf-border:#dde5f4;
  --cf-text:#1a1a2e;  --cf-muted:#6b7a99;
}
/* ── NEUTRALISER CONTENEURS WORDPRESS ────────────────────── */
body.home { overflow-x: hidden !important; }
body.home .site-content, body.home #content,
body.home #primary, body.home .content-area,
body.home main, body.home article, body.home .entry-content {
  max-width: 100% !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important; float: none !important;
}
/* ── CONTAINER PRINCIPAL — pleine largeur (technique transform) */
#cf-home {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0; margin-bottom: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  z-index: 1;
}
/* Reset minimal — PAS de margin:0 global qui casserait margin:auto */
#cf-home * { box-sizing: border-box; }
#cf-home a { color: inherit; text-decoration: none; }
#cf-home img { max-width: 100%; display: block; }
#cf-home p, #cf-home h1, #cf-home h2, #cf-home h3,
#cf-home h4, #cf-home ul, #cf-home ol, #cf-home li,
#cf-home figure, #cf-home blockquote { margin: 0; padding: 0; font-size: inherit; }
/* ── HERO ─────────────────────────────────────────────────── */
.cf-hero {
  background: linear-gradient(135deg, #061e5e 0%, #0a3d8f 45%, #1565c0 100%);
  padding: 72px 5% 80px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cf-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cf-hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.cf-hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50px;
  padding: 6px 18px; font-size: .82rem; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 20px; color: rgba(255,255,255,.9);
}
.cf-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.cf-hero h1 span { color: #ffd54f; }
.cf-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); opacity: .88; max-width: 600px;
  margin: 0 auto 32px;
}
.cf-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* ── BOUTONS ──────────────────────────────────────────────── */
.cf-btn-primary {
  padding: 15px 40px;
  background: linear-gradient(135deg, #e65100, #f57c00);
  color: #fff; border-radius: 50px; font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 6px 24px rgba(230,81,0,.4); transition: all .2s;
  letter-spacing: .3px; display: inline-block; border: none; cursor: pointer;
}
.cf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(230,81,0,.5); color: #fff; }
.cf-btn-secondary {
  padding: 15px 40px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35); color: #fff; border-radius: 50px;
  font-size: 1.05rem; font-weight: 600; transition: all .2s; display: inline-block; cursor: pointer;
}
.cf-btn-secondary:hover { background: rgba(255,255,255,.2); color: #fff; }
.cf-btn-white {
  padding: 15px 40px; background: #0a3d8f; color: #fff;
  border-radius: 50px; font-size: 1.05rem; font-weight: 800;
  box-shadow: 0 6px 24px rgba(10,61,143,.4); transition: all .2s; display: inline-block;
}
.cf-btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(10,61,143,.5); color: #fff; background: #1565c0; }
/* ── STATS BAR ────────────────────────────────────────────── */
.cf-stats {
  background: #fff; box-shadow: 0 4px 32px rgba(10,61,143,.1);
  padding: 28px 5%;
}
.cf-stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.cf-stat-item { text-align: center; padding: 12px 8px; }
.cf-stat-item .num {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--cf-blue); line-height: 1;
}
.cf-stat-item .num span { font-size: .7em; color: var(--cf-orange); }
.cf-stat-item .lbl { font-size: .82rem; color: var(--cf-muted); margin-top: 4px; font-weight: 500; }
/* ── SECTION GÉNÉRIQUE ────────────────────────────────────── */
.cf-section { padding: 64px 5%; }
.cf-section-inner { max-width: 1100px; margin: 0 auto; }
.cf-section-alt { background: var(--cf-light); }
.cf-section-dark { background: linear-gradient(135deg, #061e5e, #0a3d8f); color: #fff; }
.cf-section-tag {
  display: inline-block; background: rgba(21,101,192,.1); color: var(--cf-blue2);
  border-radius: 50px; padding: 5px 16px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.cf-section-dark .cf-section-tag { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.cf-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px;
}
.cf-section-sub { font-size: 1rem; color: var(--cf-muted); max-width: 600px; margin-bottom: 40px; }
.cf-section-dark .cf-section-sub { color: rgba(255,255,255,.75); }
/* ── PRODUITS CARDS ───────────────────────────────────────── */
.cf-products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
  margin-top: 8px;
}
.cf-product-card {
  background: #fff; border-radius: 16px; padding: 32px 28px;
  box-shadow: 0 2px 20px rgba(10,61,143,.08); border: 1.5px solid var(--cf-border);
  transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.cf-product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cf-blue), var(--cf-blue2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.cf-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(10,61,143,.15); border-color: var(--cf-blue2); }
.cf-product-card:hover::before { transform: scaleX(1); }
.cf-product-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,61,143,.08), rgba(21,101,192,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.cf-product-card-title { display: block; font-size: 1.15rem; font-weight: 700; color: var(--cf-blue); margin-bottom: 8px; }
.cf-product-card p { font-size: .9rem; color: var(--cf-muted); line-height: 1.55; margin-bottom: 16px; }
.cf-product-rate {
  display: inline-block; background: rgba(21,101,192,.08); color: var(--cf-blue2);
  border-radius: 50px; padding: 4px 14px; font-size: .82rem; font-weight: 700; margin-bottom: 14px;
}
.cf-product-link {
  font-size: .9rem; font-weight: 700; color: var(--cf-orange);
  display: flex; align-items: center; gap: 6px;
}
.cf-product-link::after { content: '→'; transition: transform .2s; }
.cf-product-card:hover .cf-product-link::after { transform: translateX(4px); }
/* ── SIMULATEUR EMBED ─────────────────────────────────────── */
.cf-sim-section { padding: 64px 5%; background: var(--cf-light); }
.cf-sim-section .cf-section-inner { max-width: 780px; }
/* ── PROCESS STEPS ────────────────────────────────────────── */
.cf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.cf-step { text-align: center; padding: 24px 20px; position: relative; }
.cf-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cf-blue), var(--cf-blue2));
  color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 6px 20px rgba(10,61,143,.25);
}
.cf-step-title { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--cf-blue); }
.cf-step p { font-size: .88rem; color: var(--cf-muted); }
.cf-step-arrow { position: absolute; right: -12px; top: 28px; font-size: 1.5rem; color: var(--cf-border); display: none; }
/* ── TRUST FEATURES ───────────────────────────────────────── */
.cf-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.cf-feature {
  background: rgba(255,255,255,.08); border-radius: 12px; padding: 24px 20px;
  border: 1px solid rgba(255,255,255,.12);
}
.cf-feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.cf-feat-title { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.cf-feature p { font-size: .83rem; opacity: .75; line-height: 1.5; }
/* ── FAQ ──────────────────────────────────────────────────── */
.cf-faq { max-width: 700px; margin: 0 auto; }
.cf-faq-item { border: 1.5px solid var(--cf-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.cf-faq-q {
  padding: 18px 24px; font-weight: 700; font-size: .97rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; color: var(--cf-blue); transition: background .15s;
}
.cf-faq-q:hover { background: #f7f9ff; }
.cf-faq-q .arrow { font-size: .9rem; transition: transform .2s; color: var(--cf-muted); }
.cf-faq-item.open .cf-faq-q .arrow { transform: rotate(180deg); }
.cf-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; font-size: .9rem; color: var(--cf-muted); line-height: 1.6; }
.cf-faq-item.open .cf-faq-a { max-height: 300px; }
.cf-faq-a-inner { padding: 0 24px 18px; }
/* ── CTA FINALE ───────────────────────────────────────────── */
.cf-cta-final {
  background: linear-gradient(135deg, #e65100, #f57c00);
  padding: 64px 5%; text-align: center; color: #fff;
}
.cf-cta-final h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cf-cta-final p { font-size: 1rem; opacity: .9; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
/* ── RESPONSIVE MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .cf-hero { padding: 52px 6% 64px; }
  .cf-stats { padding: 24px 6%; }
  .cf-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cf-section { padding: 48px 6%; }
  .cf-sim-section { padding: 48px 6%; }
  .cf-cta-final { padding: 48px 6%; }
  /* Boutons : marge 12% sur mobile */
  .cf-hero-btns { flex-direction: column; align-items: center; gap: 12px; }
  .cf-btn-primary, .cf-btn-secondary {
    width: 76%; margin: 0 auto; text-align: center;
    padding: 14px 20px;
  }
  .cf-btn-white { width: 76%; margin: 0 auto; text-align: center; }
  .cf-products-grid { grid-template-columns: 1fr; gap: 16px; }
  .cf-steps { grid-template-columns: 1fr; }
  .cf-features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cf-features-grid { grid-template-columns: 1fr; }
  .cf-btn-primary, .cf-btn-secondary, .cf-btn-white { width: 86%; }
}
@media (min-width: 768px) {
  .cf-step-arrow { display: block; }
  .cf-steps { grid-template-columns: repeat(3, 1fr); }
}
/* ── ANIMATION ────────────────────────────────────────────── */
@keyframes cf-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.cf-animate { animation: cf-fade-up .6s ease forwards; opacity: 0; }

/* ===== SIMULATEUR (bloc style #2, nettoyé wpautop) ===== */
/* ── SIMULATEUR ─────────────────────────────────────────────── */
#cf-sim-wrap * { box-sizing: border-box; }
#cf-sim-wrap {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(10,61,143,.18);
  overflow: hidden;
  margin: 0 auto;
}
.cf-sim-header {
  background: linear-gradient(135deg, #0a3d8f 0%, #1565c0 60%, #1976d2 100%);
  padding: 32px 40px;
  color: #fff;
  text-align: center;
}
.cf-sim-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.cf-sim-header p  { font-size: .95rem; opacity: .88; }
.cf-sim-tabs { display: flex; background: #e8eef8; border-bottom: 2px solid #c5d3e8; }
.cf-sim-tab {
  flex: 1; padding: 18px 10px; text-align: center;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  color: #556; transition: all .2s; line-height: 1.3;
  border-right: 1px solid #c5d3e8;
}
.cf-sim-tab:last-child { border-right: none; }
.cf-sim-tab.active { background: #fff; color: #0a3d8f; border-bottom: 3px solid #0a3d8f; margin-bottom: -2px; }
.cf-sim-tab:hover:not(.active) { background: #f0f4fa; color: #0a3d8f; }
/* Corps avec marges généreuses */
.cf-sim-body { padding: 40px 44px; }
/* Rangées de champs */
.cf-form-row { display: flex; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.cf-form-col  { flex: 1; min-width: 200px; }
/* Labels lisibles */
.cf-form-col label {
  display: block;
  font-size: .85rem; font-weight: 700;
  color: #2a3a5c; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .6px;
}
/* Champs grands et confortables */
.cf-form-col input,
.cf-form-col select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #d0d8e8;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1a1a2e;
  background: #f7f9ff;
  transition: border .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.cf-form-col input:focus,
.cf-form-col select:focus {
  outline: none;
  border-color: #1565c0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21,101,192,.12);
}
/* Sliders */
.cf-slider-wrap { margin-top: 14px; }
.cf-slider {
  width: 100%; -webkit-appearance: none;
  height: 7px; border-radius: 4px;
  background: #d0d8e8;
  outline: none; cursor: pointer;
}
.cf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  border: 3px solid #1565c0;
  box-shadow: 0 2px 10px rgba(21,101,192,.35);
  cursor: pointer; transition: transform .15s;
}
.cf-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cf-slider-labels {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: #778; margin-top: 8px; font-weight: 500;
}
/* Résultats */
.cf-result-box {
  background: linear-gradient(135deg, #e8f0fe, #f3f8ff);
  border: 2px solid #b0c4ef;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 8px;
}
.cf-result-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cf-mensualite { text-align: center; min-width: 140px; }
.cf-mensualite .label   { font-size: .8rem; color: #556; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cf-mensualite .montant { font-size: 2.6rem; font-weight: 900; color: #0a3d8f; line-height: 1.1; }
.cf-mensualite .mois    { font-size: .85rem; color: #778; margin-top: 4px; }
.cf-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-width: 220px; }
.cf-detail-item { background: #fff; border-radius: 10px; padding: 12px 16px; border: 1px solid #d8e4f4; }
.cf-detail-item .lbl { font-size: .72rem; color: #778; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.cf-detail-item .val { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin-top: 4px; }
/* Formulaire lead */
.cf-cta-section { margin-top: 32px; border-top: 2px solid #e8eef8; padding-top: 32px; }
.cf-cta-title { font-size: 1.05rem; font-weight: 800; color: #0a3d8f; margin-bottom: 22px; }
.cf-btn-submit {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, #e65100, #f57c00);
  color: #fff; border: none; border-radius: 12px;
  font-size: 1.1rem; font-weight: 800;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 6px 20px rgba(230,81,0,.3);
  letter-spacing: .3px; margin-top: 6px;
}
.cf-btn-submit:hover { background: linear-gradient(135deg, #bf360c, #e65100); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(230,81,0,.4); }
.cf-legal { font-size: .75rem; color: #aaa; margin-top: 12px; line-height: 1.5; text-align: center; }
.cf-success {
  display: none; background: #e8f5e9;
  border: 2px solid #a5d6a7; border-radius: 12px;
  padding: 20px 24px; text-align: center; margin-top: 16px;
}
.cf-success .icon { font-size: 2rem; }
.cf-success p { font-size: 1rem; color: #2e7d32; font-weight: 700; margin-top: 6px; }
@media (max-width: 600px) {
  .cf-sim-tab   { font-size: .82rem; padding: 12px 4px; }
  .cf-sim-body  { padding: 20px 16px; }
  .cf-form-row  { gap: 14px; margin-bottom: 18px; }
  .cf-form-col input,
  .cf-form-col select { padding: 13px 12px; font-size: .97rem; }
  /* Bouton submit : texte long FR → taille réduite + wrapping */
  .cf-btn-submit {
    font-size: .88rem;
    padding: 14px 12px;
    white-space: normal;
    line-height: 1.35;
    letter-spacing: 0;
  }
  /* Résultat : flux vertical */
  .cf-result-main { flex-direction: column; gap: 12px; }
  .cf-mensualite .montant { font-size: 2.2rem; }
  /* Boîte résultat : padding réduit pour gagner de la place */
  .cf-result-box { padding: 16px 14px; }
  /* Grille 2 colonnes : empêcher l'overflow et le retour à la ligne des valeurs */
  .cf-detail-grid {
    min-width: unset;
    width: 100%;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }
  .cf-detail-item { padding: 10px 10px; }
  /* Labels : plus petits pour tenir sur une ligne */
  .cf-detail-item .lbl {
    font-size: .62rem;
    letter-spacing: 0;
    line-height: 1.3;
    word-break: break-word;
  }
  /* Valeurs : ne pas casser "51 836 €" */
  .cf-detail-item .val {
    font-size: .92rem;
    white-space: nowrap;
  }
}
