/* ═══════════════════════════════════════
   BDD ENTREPRISE PAGE — style.css
═══════════════════════════════════════ */

/* ── BACK BAR ── */
.back-bar { position: sticky; top: 52px; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); }
.back-inner { max-width: 1100px; margin: 0 auto; padding: 10px 40px; display: flex; align-items: center; gap: 20px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--blue); transition: var(--transition); }
.back-btn:hover { opacity: 0.7; }
.back-breadcrumb { font-size: 13px; color: var(--text-3); }
.back-breadcrumb::before { content: '/'; margin-right: 8px; opacity: 0.4; }

/* ── HERO ── */
.bdd-hero {
  padding: 80px 40px 60px;
  background: linear-gradient(160deg, #faf5ff 0%, #fbfbfd 60%);
  border-bottom: 1px solid var(--border-light);
}
.bdd-hero h1 span { color: #7c3aed; }

.project-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.project-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-chip { background: #fff; border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 980px; }
.bdd-chip { background: #f5f3ff; border-color: rgba(124,58,237,0.3); color: #7c3aed; }
.project-chip.blue { background: var(--blue-light); border-color: rgba(0,113,227,0.25); color: var(--blue); }
.project-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; color: var(--text); }
.project-lead { font-size: 1.05rem; color: var(--text-3); line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.project-stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.pstat-num { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -1px; }
.pstat-num span { color: #7c3aed; font-size: 1.2rem; }
.bdd-num { color: #7c3aed; font-size: 1.4rem !important; }
.pstat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 500; }
.project-hero-caption { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 10px; }

.bdd-hero-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); cursor: zoom-in; transition: var(--transition); background: #fff; }
.bdd-hero-img:hover { transform: scale(1.02); }

/* ── PBLOCK ── */
.pblock { padding: 80px 0; }
.pblock-alt { background: var(--bg2); }
.pblock-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ── CONTEXT ── */
.context-2col { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.context-txt p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.context-txt strong { color: var(--text); font-weight: 600; }
.context-txt em { color: var(--text-3); font-style: italic; }
.context-infos { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.info-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.info-item:last-child { border-bottom: none; padding-bottom: 0; } .info-item:first-child { padding-top: 0; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.info-val { font-size: 14px; font-weight: 500; color: var(--text); }

/* ── BDD BLOCKS ── */
.bdd-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}
.bdd-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bdd-block-reverse { direction: rtl; }
.bdd-block-reverse > * { direction: ltr; }

.bdd-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: zoom-in;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.bdd-visual.dark-bg { background: #1a1a2e; }
.bdd-visual:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.bdd-visual img { width: 100%; display: block; }
.bdd-zoom { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 980px; backdrop-filter: blur(4px); }

.bdd-step-num { font-size: 3rem; font-weight: 700; color: #7c3aed; opacity: 0.15; line-height: 1; margin-bottom: 8px; letter-spacing: -2px; }
.bdd-info h3 { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.bdd-info p { font-size: 14px; color: var(--text-3); line-height: 1.75; margin-bottom: 16px; }
.bdd-info strong { color: var(--text); font-weight: 600; }
.bdd-info em { color: var(--text-3); }

.bdd-entities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.entity-badge { background: #f5f3ff; color: #7c3aed; border: 1px solid rgba(124,58,237,0.2); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 6px; }

.real-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg2); color: var(--text-2); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; }
.chip.blue { background: var(--blue-light); color: var(--blue); }

/* ── SQL QUERIES ── */
.sql-queries { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sql-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #faf5ff;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.sql-num {
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'SF Mono', monospace;
}

/* ── STACK ── */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stack-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 20px 16px; text-align: center; transition: var(--transition); }
.stack-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(124,58,237,0.2); }
.stack-icon { font-size: 1.6rem; margin-bottom: 8px; }
.stack-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.stack-type { font-size: 11px; color: var(--text-3); }

/* ── LIGHTBOX ── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.9); backdrop-filter: blur(12px); align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox-close { position: fixed; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1rem; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font); }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-content { max-width: 1100px; width: 100%; cursor: default; }
.lightbox-content img { width: 100%; border-radius: var(--radius); }
.lightbox-caption { text-align: center; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .project-hero-inner { grid-template-columns: 1fr; }
  .project-hero-visual { order: -1; }
  .context-2col { grid-template-columns: 1fr; }
  .bdd-block { grid-template-columns: 1fr; }
  .bdd-block-reverse { direction: ltr; }
  .back-inner { padding: 10px 20px; }
  .pblock-inner { padding: 0 20px; }
  .bdd-hero { padding: 60px 20px 40px; }
}
@media (max-width: 600px) {
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .bdd-entities { gap: 6px; }
}
