/* ============================================================
   MBEZORA — Section budget (refonte marketing)
   ------------------------------------------------------------
   Fichier : assets/css/budget.css   (remplace l'ancien)
   Préfixe : .bd-
   S'appuie sur les variables de :root (--blue, --accent,
   --border, --text, --text-muted, --bg, --bg2, --radius-lg…).
============================================================ */

.bd-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.bd-glow {
  position: absolute;
  top: -180px; right: -140px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,.10), transparent 68%);
  pointer-events: none;
}
.bd-section .container { position: relative; max-width: 1180px; }

.bd-section h2,
.bd-section h3,
.bd-section h4 { color: var(--text); }

.bd-section a:focus-visible,
.bd-section button:focus-visible,
.bd-section summary:focus-visible,
.bd-section input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
}

/* ============================================================
   1. PRINCIPE
============================================================ */
.bd-intro { max-width: 800px; margin: 0 auto 3.5rem; text-align: center; }
.bd-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.bd-intro p { font-size: 1.08rem; line-height: 1.75; }

/* ============================================================
   2. CLASSIQUE vs MBEZORA
============================================================ */
.bd-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto 6rem;
  align-items: stretch;
}
.bd-versus-col {
  padding: 2rem 2rem 1.75rem;
  border-radius: 22px;
}
.bd-versus-col h3 {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1.4rem;
  font-size: 1.2rem;
}
.bd-versus-col ul { display: grid; gap: .95rem; }
.bd-versus-col li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .95rem; line-height: 1.55;
}
.bd-versus-col li > i {
  width: 22px; height: 22px; flex-shrink: 0;
  margin-top: .1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem;
}

.bd-versus-col--old {
  background: #F1F4FA;
  border: 1px dashed #C7D0E4;
}
.bd-versus-col--old h3,
.bd-versus-col--old h3 i { color: #64748B; }
.bd-versus-col--old li { color: #64748B; }
.bd-versus-col--old li > i { background: #E2E8F0; color: #94A3B8; }

.bd-versus-col--new {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--border));
  box-shadow: 0 40px 70px -46px rgba(0,102,255,.65);
}
.bd-versus-col--new h3 i { color: var(--blue); }
.bd-versus-col--new li { color: var(--text); font-weight: 500; }
.bd-versus-col--new li > i { background: #DCFCE7; color: #15803D; }

/* ============================================================
   3. SIMULATEUR
============================================================ */
.bd-sim-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.bd-sim-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: .8rem;
}
.bd-sim-head p { font-size: 1rem; line-height: 1.7; }

.bd-sim {
  padding: 2rem;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 50px 90px -56px rgba(0,102,255,.6), var(--shadow);
}

/* ---- Commande ---- */
.bd-control { margin-bottom: 2rem; padding-bottom: 1.75rem; border-bottom: 1px dashed var(--border); }
.bd-control-label {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 1rem; font-weight: 700;
}
.bd-control input[type="range"] {
  --p: 33%;
  -webkit-appearance: none; appearance: none;
  display: block;
  width: 100%; height: 10px;
  margin: 0;
  border-radius: 50px;
  background:
          linear-gradient(90deg, var(--blue), var(--accent)) 0 / var(--p) 100% no-repeat,
          #E2E8F5;
  cursor: pointer;
  outline: none;
}
.bd-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  box-shadow: 0 8px 18px -6px rgba(0,102,255,.8);
  cursor: grab;
  transition: transform .2s;
}
.bd-control input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.bd-control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  box-shadow: 0 8px 18px -6px rgba(0,102,255,.8);
  cursor: grab;
}
.bd-control input[type="range"]::-moz-range-track { background: transparent; }

.bd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1.25rem;
}
.bd-step {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem .55rem .55rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.bd-step b {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: .8rem; font-weight: 800;
  transition: background .25s, color .25s;
}
.bd-step span { min-width: 0; line-height: 1.25; }
.bd-step:hover { border-color: var(--blue); color: var(--text); }
.bd-step.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.bd-step.is-active b { background: rgba(255,255,255,.22); color: #fff; }

/* ---- Corps : maquette + texte ---- */
.bd-sim-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 2.25rem;
  align-items: start;
}

/* ---- Maquette : l'élément mémorable de la section ---- */
.bd-blueprint-wrap {
  padding: 1.5rem;
  border-radius: 20px;
  background:
          linear-gradient(rgba(0,102,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
          linear-gradient(90deg, rgba(0,102,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
          var(--bg);
  border: 1px solid var(--border);
}
.bd-blueprint-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-bottom: .8rem;
}
.bd-blueprint-head strong { color: var(--text); font-size: .98rem; }
.bd-meter-text { color: var(--text-muted); font-size: .84rem; }
.bd-meter-text b { color: var(--blue); font-size: 1rem; }
.bd-meter { height: 8px; margin-bottom: 1.25rem; border-radius: 50px; background: #E2E8F5; overflow: hidden; }
.bd-meter i {
  display: block; height: 100%; width: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

.bd-blueprint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.bd-mod {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  min-width: 0;
  padding: .9rem .9rem .8rem;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  transition: background .35s, border-color .35s, box-shadow .35s, opacity .35s;
}
.bd-mod-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: background .35s, color .35s;
}
.bd-mod-label { color: var(--text); font-size: .84rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bd-mod-state {
  margin-top: auto;
  padding: .12rem .55rem;
  border-radius: 50px;
  font-size: .68rem; font-weight: 700;
}

/* Module livré dans la phase choisie */
.bd-mod.is-on {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
  box-shadow: 0 16px 30px -22px rgba(0,102,255,.8);
}
.bd-mod.is-on .bd-mod-ic { background: var(--blue); color: #fff; }
.bd-mod.is-on .bd-mod-state { background: #DCFCE7; color: #15803D; }

/* Module reporté : visible, jamais supprimé */
.bd-mod.is-later { border-style: dashed; background: rgba(255,255,255,.55); }
.bd-mod.is-later .bd-mod-ic { background: #EDF1F8; color: #94A3B8; }
.bd-mod.is-later .bd-mod-label { color: var(--text-muted); font-weight: 500; }
.bd-mod.is-later .bd-mod-state { background: #EDF1F8; color: #64748B; }

/* ---- Texte du niveau ---- */
.bd-panel[hidden] { display: none; }
.bd-panel { animation: bd-in .4s cubic-bezier(.2,.8,.2,1); }
@keyframes bd-in { from { opacity: 0; transform: translateY(8px); } }

.bd-panel-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .85rem;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .8rem; font-weight: 700;
}
.bd-panel h4 { margin: .9rem 0 .6rem; font-size: 1.3rem; line-height: 1.3; }
.bd-panel-resume { font-size: .95rem; line-height: 1.7; }
.bd-panel-repere {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .85rem;
  color: var(--text);
  font-size: .9rem; font-weight: 700;
}
.bd-panel-repere i { color: var(--blue); }

.bd-panel-facts { display: grid; gap: .75rem; margin-top: 1.4rem; }
.bd-panel-facts > div {
  padding: .95rem 1.1rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.bd-panel-facts dt {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: .25rem;
  color: var(--text);
  font-size: .85rem; font-weight: 700;
}
.bd-panel-facts dt i { color: var(--blue); font-size: .8rem; }
.bd-panel-facts dd { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

.bd-sim-cta { width: 100%; justify-content: center; margin-top: 1.4rem; }

/* ============================================================
   4. COMMENT ON S'ADAPTE
============================================================ */
.bd-how { margin-top: 6rem; }
.bd-how-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.bd-how-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; margin-bottom: .7rem; }
.bd-how-head p { font-size: 1rem; line-height: 1.7; }

.bd-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.bd-how-item {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.bd-how-ic {
  width: 50px; height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--blue), var(--accent));
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 12px 24px -12px rgba(0,102,255,.8);
}
.bd-how-item h4 { margin-bottom: .5rem; font-size: 1.05rem; line-height: 1.35; }
.bd-how-item p { font-size: .9rem; line-height: 1.65; }

/* ============================================================
   5. OBJECTIONS
============================================================ */
.bd-faq { max-width: 820px; margin: 6rem auto 0; }
.bd-faq > h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  text-align: center;
}
.bd-faq-item {
  margin-bottom: .75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.bd-faq-item[open] {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--border));
  box-shadow: 0 20px 40px -30px rgba(0,102,255,.6);
}
.bd-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem;
  color: var(--text);
  font-size: .98rem; font-weight: 600; line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.bd-faq-item summary::-webkit-details-marker { display: none; }
.bd-faq-item summary i { flex-shrink: 0; color: var(--text-muted); font-size: .8rem; transition: transform .3s, color .3s; }
.bd-faq-item[open] summary i { transform: rotate(180deg); color: var(--blue); }
.bd-faq-item p { padding: 0 1.4rem 1.3rem; font-size: .93rem; line-height: 1.7; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .bd-sim-body { grid-template-columns: 1fr; gap: 1.75rem; }
  .bd-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .bd-versus { grid-template-columns: 1fr; margin-bottom: 4.5rem; }
  .bd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-blueprint { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bd-section { padding: 70px 0; }
  .bd-intro { margin-bottom: 2.5rem; }
  .bd-versus-col { padding: 1.5rem 1.25rem; }
  .bd-sim { padding: 1.25rem; border-radius: 20px; }
  .bd-blueprint-wrap { padding: 1rem; }
  .bd-how { margin-top: 4.5rem; }
  .bd-how-grid { grid-template-columns: 1fr; }
  .bd-faq { margin-top: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-panel { animation: none; }
  .bd-meter i, .bd-mod, .bd-step, .bd-faq-item summary i { transition: none; }
}

/* ============================================================
   POINTS D'ENTRÉE (fond sombre) — RESTAURÉ À L'IDENTIQUE
   Composant situé sous la section budget : non modifié.
============================================================ */
.bd-entry {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: #fff;
  background:
          radial-gradient(820px 420px at 92% 0%, rgba(0,194,255,.14), transparent 60%),
          radial-gradient(700px 400px at 0% 100%, rgba(124,58,237,.16), transparent 60%),
          linear-gradient(160deg, var(--sv-navy, #060F26) 0%, var(--sv-navy-2, #0A1A42) 100%);
}
.bd-entry .sv-title h2 { color: #fff; max-width: 30ch; margin-inline: auto; }
.bd-entry .sv-title p  { color: rgba(226,232,255,.75); }

.bd-diagram {
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.bd-diagram svg { display: block; width: 100%; height: auto; }

.bd-dg-in rect {
  fill: rgba(255,255,255,.06);
  stroke: color-mix(in srgb, var(--c, #fff) 55%, transparent);
  stroke-width: 1.4;
}
.bd-dg-in text {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  text-anchor: middle;
}
.bd-dg-link {
  fill: none;
  stroke: var(--c, #fff);
  stroke-width: 1.8;
  stroke-dasharray: 6 6;
  opacity: .75;
  animation: bd-dash 1.4s linear infinite;
  animation-delay: calc(var(--d, 0) * -.35s);
}
@keyframes bd-dash { to { stroke-dashoffset: -24; } }

.bd-dg-core rect {
  fill: rgba(0,102,255,.22);
  stroke: rgba(0,194,255,.65);
  stroke-width: 1.6;
}
.bd-dg-core--2 rect { fill: rgba(124,58,237,.22); stroke: rgba(167,139,250,.7); }
.bd-dg-core--3 rect { fill: rgba(13,148,136,.22); stroke: rgba(45,212,191,.7); }
.bd-dg-core text {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  text-anchor: middle;
}
.bd-dg-core .bd-dg-small { font-size: 11px; font-weight: 500; fill: rgba(226,232,255,.72); }
.bd-dg-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-dasharray: 8 7;
  animation: bd-dash 1.1s linear infinite;
  animation-delay: calc(var(--d, 0) * -.4s);
}

.bd-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.bd-entry-card {
  --c: var(--accent);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.11);
  transition: background .35s, border-color .35s, transform .35s;
}
.bd-entry-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--c);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.bd-entry-card:hover {
  background: rgba(255,255,255,.08);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  transform: translateY(-5px);
}
.bd-entry-card:hover::before { transform: scaleX(1); }

.bd-entry-card .bd-entry-ic {
  width: 54px; height: 54px;
  margin-bottom: 1.15rem;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}
.bd-entry-card .bd-entry-ic i { font-size: inherit; color: inherit; }
.bd-entry-card h3 { color: #fff; font-size: 1.1rem; line-height: 1.3; margin-bottom: .5rem; }
.bd-entry-etat { color: rgba(226,232,255,.72); font-size: .88rem; line-height: 1.6; margin-bottom: 1.1rem; }
.bd-entry-label {
  margin-bottom: .6rem;
  color: var(--c);
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bd-entry-card ul { display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.bd-entry-card li {
  display: flex; align-items: flex-start; gap: .55rem;
  min-width: 0;
  color: rgba(255,255,255,.88);
  font-size: .86rem; line-height: 1.5;
  overflow-wrap: anywhere;
}
.bd-entry-card li i { margin-top: .3rem; color: var(--c); font-size: .62rem; flex-shrink: 0; }

.bd-entry-link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto;
  color: #fff;
  font-size: .87rem; font-weight: 700;
  line-height: 1.35;
}
.bd-entry-link i { transition: transform .3s; }
.bd-entry-link:hover { color: #fff; }
.bd-entry-card:hover .bd-entry-link i { transform: translateX(4px); }

@media (max-width: 1100px) {
  .bd-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bd-diagram { display: none; }
}
@media (max-width: 640px) {
  .bd-entry { padding: 70px 0; }
  .bd-entry-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-dg-link, .bd-dg-flow { animation: none; }
  .bd-entry-card:hover { transform: none; }
}

/* ============================================================
   HERO — promesse « budget + étape » (index.php)
   (conservé tel quel : utilisé par le hero de l'accueil)
============================================================ */
.hm-hero-promise {
  display: grid; gap: .6rem;
  margin-top: 1.75rem;
}
.hm-hero-promise li {
  display: flex; align-items: flex-start; gap: .7rem;
  color: rgba(226,232,255,.85);
  font-size: .92rem; line-height: 1.55;
}
.hm-hero-promise li > i {
  width: 28px; height: 28px; flex-shrink: 0;
  margin-top: .05rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,194,255,.14);
  color: var(--accent);
  font-size: .8rem;
  line-height: 1;
}