/* ==========================================================================
   Club Entreprise – Business Plan · Design premium (v2.0.0)
   ========================================================================== */

.cbp-app {
	--cbp-ink: #0f2c4c;
	--cbp-navy: #143a63;
	--cbp-primary: #1d5c8c;
	--cbp-primary-2: #2a7fb8;
	--cbp-accent: #12b886;
	--cbp-accent-d: #0c8f69;
	--cbp-gold: #d99a3f;
	--cbp-danger: #e0556b;
	--cbp-bg: #f4f7fb;
	--cbp-surface: #ffffff;
	--cbp-border: #e3eaf3;
	--cbp-border-2: #cdd9e8;
	--cbp-text: #1f3145;
	--cbp-muted: #65788f;
	--cbp-shadow: 0 1px 2px rgba(15,44,76,.06), 0 8px 24px rgba(15,44,76,.06);
	--cbp-shadow-lg: 0 12px 40px rgba(15,44,76,.14);
	--cbp-radius: 14px;

	max-width: 1040px;
	margin: 0 auto;
	padding: 0;
	color: var(--cbp-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.cbp-app *, .cbp-app *::before, .cbp-app *::after { box-sizing: border-box; }
.cbp-app h2, .cbp-app h3, .cbp-app h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

.cbp-header {
	background: linear-gradient(135deg, var(--cbp-ink) 0%, var(--cbp-primary) 100%);
	color: #fff;
	padding: 2.4rem 2rem 2.6rem;
	border-radius: var(--cbp-radius) var(--cbp-radius) 0 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.cbp-header::after {
	content: ""; position: absolute; right: -60px; top: -60px;
	width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(46,196,182,.25), transparent 70%);
}
.cbp-title { margin: 0 0 .5rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.cbp-subtitle { margin: 0 auto; max-width: 620px; color: rgba(255,255,255,.85); font-size: .98rem; }
.cbp-badge-private {
	display: inline-flex; align-items: center; gap: .4rem;
	margin-top: 1rem; padding: .35rem .8rem; border-radius: 999px;
	background: rgba(255,255,255,.14); font-size: .78rem; font-weight: 600; color: #eafff8;
}

.cbp-body {
	background: var(--cbp-bg);
	border: 1px solid var(--cbp-border);
	border-top: none;
	border-radius: 0 0 var(--cbp-radius) var(--cbp-radius);
	padding: 1.6rem 1.8rem 2rem;
	box-shadow: var(--cbp-shadow);
}

.cbp-steps-nav { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem 0 1rem; scrollbar-width: thin; margin-bottom: .25rem; }
.cbp-step-tab {
	flex: 0 0 auto; display: flex; align-items: center; gap: .45rem;
	background: transparent; border: none; cursor: pointer;
	padding: .35rem .55rem; border-radius: 10px; color: var(--cbp-muted);
	font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; white-space: nowrap; transition: background .15s;
}
.cbp-step-tab:hover { background: #eaf1f9; }
.cbp-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%; background: #dfe8f3; color: var(--cbp-muted);
	font-size: .76rem; font-weight: 700; flex: 0 0 auto;
}
.cbp-step-tab.is-active { color: var(--cbp-primary); background: #e7f0fa; }
.cbp-step-tab.is-active .cbp-step-num { background: var(--cbp-primary); color: #fff; }
.cbp-step-tab.is-done .cbp-step-num { background: var(--cbp-accent); color: #fff; }

.cbp-progress { height: 7px; background: #e0e8f2; border-radius: 999px; overflow: hidden; margin-bottom: 1.8rem; }
.cbp-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--cbp-accent), var(--cbp-primary-2)); border-radius: 999px; transition: width .35s ease; }

.cbp-step { animation: cbpFade .3s ease; }
@keyframes cbpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cbp-step-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .25rem; }
.cbp-step-head h3 { color: var(--cbp-ink); margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.cbp-step-kicker { color: var(--cbp-accent-d); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.cbp-step h4 { color: var(--cbp-primary); margin: 1.6rem 0 .6rem; font-size: 1.05rem; font-weight: 700; }
.cbp-help { color: var(--cbp-muted); font-size: .9rem; margin: .2rem 0 1.1rem; }

.cbp-callout { display: flex; gap: .7rem; align-items: flex-start; background: #eef5ff; border-left: 4px solid var(--cbp-primary-2); padding: .85rem 1rem; border-radius: 10px; margin: 0 0 1.3rem; font-size: .88rem; color: #234; }
.cbp-callout.is-tip { background: #e8faf3; border-left-color: var(--cbp-accent); }
.cbp-callout.is-warn { background: #fff5ec; border-left-color: var(--cbp-gold); }
.cbp-callout .cbp-ico { flex: 0 0 auto; font-size: 1.1rem; line-height: 1.3; }
.cbp-callout strong { color: var(--cbp-ink); }

.cbp-app label { display: block; margin-bottom: 1.05rem; font-weight: 600; font-size: .88rem; color: var(--cbp-ink); }
.cbp-app input[type="text"], .cbp-app input[type="number"], .cbp-app select, .cbp-app textarea {
	display: block; width: 100%; margin-top: .35rem; padding: .6rem .8rem; border: 1.5px solid var(--cbp-border-2); border-radius: 10px;
	font-size: .92rem; font-weight: 400; font-family: inherit; background: var(--cbp-surface); color: var(--cbp-text); transition: border-color .15s, box-shadow .15s;
}
.cbp-app textarea { line-height: 1.5; resize: vertical; }
.cbp-app input:focus, .cbp-app select:focus, .cbp-app textarea:focus { outline: none; border-color: var(--cbp-primary); box-shadow: 0 0 0 4px rgba(29,92,140,.13); }
.cbp-app input::placeholder, .cbp-app textarea::placeholder { color: #9fb0c4; }
.cbp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.cbp-tip { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--cbp-primary-2); color: #fff; font-size: .7rem; font-weight: 700; cursor: help; position: relative; }
.cbp-tip:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 150%; transform: translateX(-50%); width: 240px; background: var(--cbp-ink); color: #fff; padding: .6rem .75rem; border-radius: 8px; font-size: .76rem; font-weight: 500; line-height: 1.45; z-index: 20; box-shadow: var(--cbp-shadow-lg); text-align: left; }

.cbp-btn { cursor: pointer; border: none; border-radius: 10px; padding: .65rem 1.2rem; font-size: .9rem; font-weight: 700; font-family: 'Inter', sans-serif; transition: transform .1s, box-shadow .15s, background .15s; }
.cbp-btn:active { transform: translateY(1px); }
.cbp-btn-add { background: var(--cbp-surface); color: var(--cbp-primary); border: 1.5px dashed var(--cbp-primary-2); margin: .3rem 0 1.2rem; }
.cbp-btn-add:hover { background: #eef5ff; }
.cbp-btn-next { background: linear-gradient(135deg, var(--cbp-primary), var(--cbp-primary-2)); color: #fff; box-shadow: 0 6px 16px rgba(29,92,140,.28); }
.cbp-btn-next:hover { box-shadow: 0 8px 22px rgba(29,92,140,.36); }
.cbp-btn-prev { background: #e7eef6; color: var(--cbp-text); }
.cbp-btn-prev:hover { background: #d8e3f0; }
.cbp-btn-prev:disabled { opacity: .4; cursor: not-allowed; }
.cbp-btn-export { background: linear-gradient(135deg, var(--cbp-accent-d), var(--cbp-accent)); color: #fff; margin: .3rem; box-shadow: 0 6px 16px rgba(18,184,134,.28); display: inline-flex; align-items: center; gap: .5rem; }
.cbp-btn-export:hover { box-shadow: 0 8px 22px rgba(18,184,134,.36); }
.cbp-btn-remove { background: transparent; color: var(--cbp-danger); border: none; font-size: 1.25rem; cursor: pointer; line-height: 1; padding: .15rem .4rem; border-radius: 6px; }
.cbp-btn-remove:hover { background: #fdecef; }

.cbp-nav-buttons { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--cbp-border); }
.cbp-step-indicator { color: var(--cbp-muted); font-size: .85rem; font-weight: 600; }

.cbp-card { border: 1px solid var(--cbp-border); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; background: var(--cbp-surface); box-shadow: var(--cbp-shadow); }
.cbp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.cbp-card-head strong { color: var(--cbp-primary); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; }

.cbp-table-wrap { overflow-x: auto; margin-bottom: .6rem; border-radius: 12px; box-shadow: var(--cbp-shadow); }
.cbp-dyn-table, .cbp-fin-table { width: 100%; border-collapse: collapse; background: var(--cbp-surface); font-size: .86rem; overflow: hidden; }
.cbp-dyn-table th, .cbp-fin-table th { background: var(--cbp-navy); color: #fff; padding: .6rem .65rem; text-align: left; font-weight: 600; font-size: .8rem; }
.cbp-dyn-table td, .cbp-fin-table td { border-bottom: 1px solid var(--cbp-border); padding: .4rem .5rem; vertical-align: middle; }
.cbp-dyn-table input, .cbp-dyn-table select, .cbp-fin-table input { margin: 0; width: 100%; min-width: 78px; padding: .45rem .5rem; border-radius: 8px; }
.cbp-tag { display: inline-block; font-size: .7rem; padding: .2rem .5rem; border-radius: 999px; background: #eef3f9; color: var(--cbp-muted); font-weight: 600; }
.cbp-mini-recap { font-size: .88rem; color: var(--cbp-primary); margin-top: .6rem; font-weight: 700; background: #eef5ff; padding: .6rem .8rem; border-radius: 9px; }

.cbp-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px,1fr)); gap: .85rem; margin: 1.2rem 0 1.6rem; }
.cbp-kpi { border: 1px solid var(--cbp-border); border-radius: 12px; padding: 1rem 1.1rem; background: var(--cbp-surface); box-shadow: var(--cbp-shadow); border-top: 3px solid var(--cbp-primary-2); }
.cbp-kpi .cbp-kpi-lbl { font-size: .76rem; color: var(--cbp-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cbp-kpi .cbp-kpi-val { font-size: 1.45rem; font-weight: 800; color: var(--cbp-ink); margin-top: .2rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.cbp-kpi.is-pos { border-top-color: var(--cbp-accent); }
.cbp-kpi.is-pos .cbp-kpi-val { color: var(--cbp-accent-d); }
.cbp-kpi.is-neg { border-top-color: var(--cbp-danger); }
.cbp-kpi.is-neg .cbp-kpi-val { color: var(--cbp-danger); }

.cbp-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.2rem 0 1.6rem; }
.cbp-chart-card { background: var(--cbp-surface); border: 1px solid var(--cbp-border); border-radius: 12px; padding: 1rem 1.1rem 1.2rem; box-shadow: var(--cbp-shadow); }
.cbp-chart-card h5 { margin: 0 0 .7rem; font-size: .92rem; color: var(--cbp-ink); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.cbp-chart-card canvas { width: 100% !important; height: 230px !important; }

#cbp-results table { width: 100%; border-collapse: collapse; margin: .6rem 0 .4rem; font-size: .85rem; background: var(--cbp-surface); border-radius: 12px; overflow: hidden; box-shadow: var(--cbp-shadow); }
#cbp-results th, #cbp-results td { border-bottom: 1px solid var(--cbp-border); padding: .5rem .7rem; text-align: right; }
#cbp-results th:first-child, #cbp-results td:first-child { text-align: left; }
#cbp-results thead th { background: var(--cbp-navy); color: #fff; font-weight: 600; }
#cbp-results caption { caption-side: top; text-align: left; font-weight: 800; color: var(--cbp-ink); margin: 1.6rem 0 .5rem; font-size: 1.05rem; font-family: 'Plus Jakarta Sans', sans-serif; }
#cbp-results tr:nth-child(even) td { background: #f8fafd; }
#cbp-results tr.cbp-row-total td { font-weight: 700; background: #eef3f9 !important; }
#cbp-results tr.cbp-row-key td { font-weight: 800; background: #e6f7f1 !important; color: var(--cbp-ink); }

.cbp-analysis { background: var(--cbp-surface); border: 1px solid var(--cbp-border); border-left: 4px solid var(--cbp-accent); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; box-shadow: var(--cbp-shadow); }
.cbp-analysis h5 { margin: 0 0 .6rem; color: var(--cbp-ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.cbp-analysis ul { margin: 0; padding-left: 1.1rem; }
.cbp-analysis li { margin-bottom: .4rem; font-size: .89rem; }

.cbp-export-section { margin-top: 1.8rem; background: linear-gradient(135deg, #f0f6fc, #eafaf4); border: 1px solid var(--cbp-border); border-radius: 14px; padding: 1.4rem; text-align: center; }
.cbp-export-section h4 { margin: 0 0 .3rem; color: var(--cbp-ink); }
.cbp-export-section p.sub { margin: 0 0 1rem; color: var(--cbp-muted); font-size: .88rem; }
.cbp-export-note { margin: .8rem 0 0; color: var(--cbp-muted); font-size: .84rem; min-height: 1.2em; font-weight: 600; }

.cbp-disclaimer { margin: 1.6rem 0 0; padding: .9rem 1rem; background: #f4f6f9; border: 1px solid var(--cbp-border); border-radius: 10px; color: var(--cbp-muted); font-size: .76rem; line-height: 1.5; text-align: justify; }

@media (max-width: 700px) {
	.cbp-grid-2 { grid-template-columns: 1fr; }
	.cbp-charts-grid { grid-template-columns: 1fr; }
	.cbp-body { padding: 1.1rem; }
	.cbp-header { padding: 1.8rem 1.1rem 2rem; }
	.cbp-title { font-size: 1.5rem; }
}

/* ---------- Contenu éditorial SEO ---------- */
.cbp-seo { max-width: 1040px; margin: 2.4rem auto 0; padding: 0 .25rem; color: var(--cbp-text); line-height: 1.7; font-size: 1rem; }
.cbp-seo h2 { color: var(--cbp-ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin: 2.1rem 0 .7rem; }
.cbp-seo h3 { color: var(--cbp-primary); font-size: 1.08rem; font-weight: 700; margin: 1.3rem 0 .35rem; }
.cbp-seo p { margin: 0 0 1rem; }
.cbp-seo strong { color: var(--cbp-ink); font-weight: 700; }
.cbp-faq { margin-top: .5rem; }
.cbp-faq-item { border-top: 1px solid var(--cbp-border); padding: 1.1rem 0; }
.cbp-faq-item:last-child { border-bottom: 1px solid var(--cbp-border); }
.cbp-faq-item h3 { margin: 0 0 .4rem; color: var(--cbp-ink); }
.cbp-faq-item p { margin: 0; color: var(--cbp-muted); }
