/* BerioxHub — étude de cas */

.bh-case {
	--bh-bg: #0e0c18;
	--bh-bg-alt: #100e1a;
	--bh-card: rgba(255, 255, 255, 0.04);
	--bh-border: rgba(255, 255, 255, 0.08);
	--bh-accent: #7c4dff;
	--bh-accent-dark: #5e35b1;
	--bh-accent-soft: rgba(124, 77, 255, 0.15);
	--bh-text: #f1f5f9;
	--bh-muted: #c9ceda;
	background: var(--bh-bg);
	color: var(--bh-text);
}

[data-theme="light"] .bh-case {
	--bh-bg: #f8f7fc;
	--bh-bg-alt: #eeeef8;
	--bh-card: #fff;
	--bh-border: rgba(124, 77, 255, 0.12);
	--bh-text: #1e293b;
	--bh-muted: #64748b;
}

.bh-container { max-width: var(--layout-max-width); margin: 0 auto; padding: 0 var(--layout-pad-x); box-sizing: border-box; }

.bh-hero {
	position: relative; overflow: hidden;
	padding: 3rem var(--layout-pad-x) 4rem;
	background:
		radial-gradient(ellipse 70% 60% at 80% 20%, rgba(124, 77, 255, 0.25) 0%, transparent 55%),
		radial-gradient(ellipse 50% 40% at 10% 80%, rgba(90, 95, 202, 0.15) 0%, transparent 50%),
		linear-gradient(160deg, #0e0c18 0%, #14101f 45%, #0f0c18 100%);
}

.bh-hero-inner { max-width: var(--layout-max-width); margin: 0 auto; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .bh-hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.bh-back-link { display: inline-block; margin-bottom: 1rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.bh-back-link:hover { color: #fff; text-decoration: underline; }
.bh-product-link { display: inline-block; margin: 0 0 1rem 1rem; color: #b39dff; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.bh-product-link:hover { color: #fff; text-decoration: underline; }

.bh-status-badge {
	display: inline-block; margin-bottom: 0.75rem; padding: 0.3rem 0.85rem; border-radius: 9999px;
	background: rgba(124, 77, 255, 0.15); border: 1px solid rgba(124, 77, 255, 0.4);
	color: #b39dff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}

.bh-kicker { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin: 0 0 0.75rem; }
.bh-hero-title { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.75rem; color: #fff; }
.bh-hero-subtitle { font-size: 1.1rem; line-height: 1.55; color: rgba(255,255,255,0.88); margin: 0 0 1.25rem; max-width: 34rem; }

.bh-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.bh-pills li { padding: 0.35rem 0.8rem; border-radius: 9999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.9); }

.bh-hero-intro { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.72); margin: 0; max-width: 36rem; }

.bh-hero-visual { position: relative; min-height: 300px; }
.bh-mockup-desktop { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.45); position: relative; z-index: 2; }
.bh-mockup-desktop img { display: block; width: 100%; height: auto; }

.bh-float-card {
	position: absolute; padding: 0.45rem 0.85rem; border-radius: 9999px;
	background: rgba(255,255,255,0.95); color: var(--bh-accent-dark);
	font-size: 0.72rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 3;
}
.bh-float-card--1 { top: 5%; right: 0; transform: rotate(3deg); }
.bh-float-card--2 { top: 30%; left: -5%; transform: rotate(-4deg); }
.bh-float-card--3 { bottom: 30%; right: -3%; transform: rotate(2deg); }
.bh-float-card--4 { bottom: 5%; left: 10%; transform: rotate(-2deg); }

.bh-section { padding: 4rem 0; }
.bh-section:nth-child(even) { background: var(--bh-bg-alt); }

.bh-section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--bh-text); }
.bh-section-lead { font-size: 1.05rem; line-height: 1.7; color: var(--bh-muted); margin: 0 0 2rem; max-width: 42rem; }

.bh-summary-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bh-summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bh-summary-grid { grid-template-columns: repeat(4, 1fr); } }

.bh-summary-item { padding: 1.25rem; border-radius: 0.85rem; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-summary-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bh-accent); margin-bottom: 0.4rem; }
.bh-summary-value { font-size: 0.95rem; line-height: 1.5; font-weight: 600; margin: 0; color: var(--bh-text); }

.bh-why-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .bh-why-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.bh-why-text h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 1rem; }
.bh-why-text p { font-size: 1rem; line-height: 1.75; color: var(--bh-muted); margin: 0; }

.bh-before-after { display: grid; gap: 1rem; }
.bh-ba-card { padding: 1.25rem; border-radius: 0.85rem; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-ba-card--before { background: linear-gradient(165deg, var(--bh-card) 0%, rgba(100, 116, 139, 0.1) 100%); }
.bh-ba-card--after { background: linear-gradient(165deg, var(--bh-card) 0%, rgba(124, 77, 255, 0.1) 100%); border-color: rgba(124, 77, 255, 0.25); }
.bh-ba-card h3 { font-size: 0.9rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--bh-text); }
.bh-ba-card p { font-size: 0.88rem; line-height: 1.55; color: var(--bh-muted); margin: 0; }

.bh-objectives-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .bh-objectives-grid { grid-template-columns: repeat(3, 1fr); } }
.bh-objective-card { padding: 1.5rem; border-radius: 1rem; background: var(--bh-card); border: 1px solid var(--bh-border); text-align: center; }
.bh-objective-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--bh-accent); }
.bh-objective-card p { font-size: 0.9rem; line-height: 1.6; color: var(--bh-muted); margin: 0; }

.bh-concept-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bh-concept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bh-concept-grid { grid-template-columns: repeat(3, 1fr); } }
.bh-concept-card { padding: 1.25rem; border-radius: 0.85rem; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-concept-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--bh-accent); }
.bh-concept-card p { font-size: 0.88rem; line-height: 1.55; color: var(--bh-muted); margin: 0; }

.bh-modules-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bh-modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bh-modules-grid { grid-template-columns: repeat(3, 1fr); } }
.bh-module-card {
	padding: 1.5rem; border-radius: 1rem; background: var(--bh-card); border: 1px solid var(--bh-border);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.bh-module-card:hover { border-color: rgba(124, 77, 255, 0.35); box-shadow: 0 8px 24px rgba(124, 77, 255, 0.08); }
.bh-module-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--bh-text); }
.bh-module-card p { font-size: 0.88rem; line-height: 1.6; color: var(--bh-muted); margin: 0; }

.bh-focus-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
	.bh-focus-grid { grid-template-columns: 1.1fr 0.9fr; }
	.bh-focus-grid--reverse { grid-template-columns: 0.9fr 1.1fr; }
	.bh-focus-grid--reverse .bh-focus-text { order: 1; }
	.bh-focus-grid--reverse .bh-focus-visual { order: 2; }
}

.bh-focus--featured { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 77, 255, 0.1) 0%, transparent 60%), var(--bh-bg-alt); }

.bh-focus-visual img { display: block; width: 100%; height: auto; border-radius: 0.85rem; box-shadow: 0 16px 48px rgba(0,0,0,0.25); border: 1px solid var(--bh-border); }
.bh-focus-visual--dual { display: grid; gap: 1rem; }
.bh-focus-pdf { max-width: 70%; margin: 0 auto; }

.bh-focus-text h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.75rem; color: var(--bh-text); }
.bh-focus-text p { font-size: 0.95rem; line-height: 1.7; color: var(--bh-muted); margin: 0 0 1.25rem; }

.bh-focus-tag {
	display: inline-block; margin-bottom: 0.5rem; padding: 0.25rem 0.65rem; border-radius: 9999px;
	background: var(--bh-accent-soft); color: var(--bh-accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}

.bh-source-cards { display: grid; gap: 0.75rem; }
.bh-source-card { padding: 1rem; border-radius: 0.75rem; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-source-card h3 { font-size: 0.9rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--bh-accent); }
.bh-source-card p { font-size: 0.85rem; line-height: 1.5; color: var(--bh-muted); margin: 0; }

.bh-check-list { list-style: none; margin: 0; padding: 0; }
.bh-check-list li { position: relative; padding-left: 1.35rem; font-size: 0.9rem; line-height: 1.6; color: var(--bh-muted); margin-bottom: 0.45rem; }
.bh-check-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--bh-accent); }

.bh-prospecteur-grid { display: grid; gap: 0.65rem; }
@media (min-width: 480px) { .bh-prospecteur-grid { grid-template-columns: repeat(2, 1fr); } }
.bh-prospecteur-card { padding: 1rem; border-radius: 0.75rem; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-prospecteur-card h3 { font-size: 0.88rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--bh-accent); }
.bh-prospecteur-card p { font-size: 0.82rem; line-height: 1.5; color: var(--bh-muted); margin: 0; }

.bh-copilot-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.bh-copilot-list li { padding: 0.5rem 1rem; border-radius: 9999px; background: var(--bh-accent-soft); border: 1px solid rgba(124, 77, 255, 0.25); font-size: 0.85rem; font-weight: 600; color: var(--bh-text); }

.bh-architecture-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .bh-architecture-grid { grid-template-columns: 1fr 1fr; } }
.bh-architecture-text h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 1rem; }
.bh-architecture-text p { font-size: 1rem; line-height: 1.75; color: var(--bh-muted); margin: 0; }

.bh-stack-list { list-style: none; margin: 0; padding: 1.5rem; border-radius: 1rem; background: var(--bh-card); border: 1px solid var(--bh-border); display: grid; gap: 0.5rem; }
.bh-stack-list li { font-size: 0.9rem; font-weight: 600; color: var(--bh-text); padding-left: 1.25rem; position: relative; }
.bh-stack-list li::before { content: '▸'; position: absolute; left: 0; color: var(--bh-accent); }

.bh-skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.bh-skills-list li { padding: 0.5rem 1rem; border-radius: 9999px; background: var(--bh-accent-soft); border: 1px solid rgba(124, 77, 255, 0.25); font-size: 0.85rem; font-weight: 600; color: var(--bh-text); }

.bh-gallery-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .bh-gallery-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; } .bh-gallery-item--large:first-of-type { grid-row: span 2; } }
.bh-gallery-frame { border-radius: 0.85rem; overflow: hidden; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-gallery-frame img { display: block; width: 100%; height: auto; }
.bh-gallery-item figcaption { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--bh-muted); }

/* Galerie — masquée temporairement */
.bh-gallery { display: none; }

.bh-results-grid { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .bh-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bh-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .bh-results-grid { grid-template-columns: repeat(5, 1fr); } }

.bh-result-item { padding: 1.5rem; border-radius: 1rem; background: var(--bh-card); border: 1px solid var(--bh-border); }
.bh-result-item h3 { font-size: 1rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--bh-accent); }
.bh-result-item p { font-size: 0.88rem; line-height: 1.6; color: var(--bh-muted); margin: 0; }

.bh-results-summary { list-style: none; margin: 0; padding: 1.5rem; border-radius: 1rem; background: var(--bh-accent-soft); border: 1px solid rgba(124, 77, 255, 0.2); display: grid; gap: 0.5rem; }
@media (min-width: 768px) { .bh-results-summary { grid-template-columns: repeat(2, 1fr); } }
.bh-results-summary li { font-size: 0.9rem; font-weight: 600; color: var(--bh-text); padding-left: 1.25rem; position: relative; }
.bh-results-summary li::before { content: '→'; position: absolute; left: 0; color: var(--bh-accent); }

.bh-conclusion-inner { max-width: 42rem; }
.bh-conclusion-inner h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 1rem; }
.bh-conclusion-inner p { font-size: 1.05rem; line-height: 1.75; color: var(--bh-muted); margin: 0; }

.bh-quote-band { padding: 3.5rem var(--layout-pad-x); background: linear-gradient(135deg, rgba(124, 77, 255, 0.12) 0%, rgba(90, 95, 202, 0.08) 100%); border-top: 1px solid var(--bh-border); border-bottom: 1px solid var(--bh-border); }
.bh-quote-band blockquote { margin: 0; max-width: 48rem; }
.bh-quote-band p { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 700; line-height: 1.55; color: var(--bh-text); margin: 0; }

.bh-cta { padding: 4rem var(--layout-pad-x) 5rem; background: linear-gradient(135deg, #7c4dff 0%, #5e35b1 50%, #4527a0 100%); color: #fff; text-align: center; }
.bh-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 0.75rem; color: #fff; }
.bh-cta-inner p { font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,0.9); margin: 0 auto 1.75rem; max-width: 38rem; }
.bh-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.bh-btn { display: inline-flex; align-items: center; padding: 0.65rem 1.25rem; border-radius: 9999px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background 0.2s, transform 0.15s; border: 1px solid transparent; }
.bh-btn--primary { background: var(--bh-accent); color: #fff; }
.bh-btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.bh-btn--on-accent.bh-btn--primary { background: #fff; color: var(--bh-accent-dark); }
.bh-btn--on-accent.bh-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.bh-btn--primary:hover, .bh-btn--on-accent.bh-btn--primary:hover { transform: translateY(-1px); }
