/* Article « vibe business » (/blog/vibe-business) — styles de ses visuels.
   Chargés par blog/show.blade.php uniquement pour cet article, grâce à la
   convention public/css/article-{slug}.css : aucune autre page n'est touchée.
   Couleurs et polices : celles de la charte (site.css). */

/* Blocs visuels : un peu plus larges que la colonne de lecture quand l'écran le permet. */
.vb-fig { margin: clamp(36px, 6vw, 64px) 0 0; }
@media (min-width: 1000px) { .article-body .vb-fig { margin-inline: -90px; max-width: none; } }
.vb-fig + .vb-fig { margin-top: clamp(24px, 4vw, 36px); }
.vb-fig-title {
  margin: 0 0 18px;
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15;
}
.vb-fig-title .bar { margin-bottom: 14px; }

/* ---- 1. Illustration d'en-tête ---- */
.vb-hero { margin: 0; }
.vb-hero svg { display: block; width: 100%; height: auto; }

/* ---- 2. Du vibe coding au vibe business ---- */
.vb-split-grid { display: grid; gap: 14px; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.vb-arrow { align-self: center; color: var(--green); }
.vb-arrow svg { display: block; width: 34px; height: 34px; }
.vb-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(18px, 2.6vw, 26px);
  border: 2px solid var(--navy); border-radius: var(--radius);
  background: #fff;
}
.vb-card--accent { background: var(--navy); color: var(--off); border-color: var(--navy); }
.vb-card p { margin: 0; }
.vb-card-line { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.2; letter-spacing: -0.01em; }
.vb-card--accent .vb-card-line strong { color: var(--green); }
.vb-pills, .article-body .vb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.vb-pills li, .article-body .vb-pills li + li { margin-top: 0; }
.vb-pills li {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(245, 243, 238, .35); background: rgba(16, 185, 129, .14);
  font-size: 15px; font-weight: 500;
}
.vb-split-foot {
  margin: 14px 0 0; padding: 14px 18px;
  border: 2px dashed var(--green); border-radius: var(--radius);
  text-align: center; font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.25rem); letter-spacing: -0.01em;
}

/* ---- 3. Organigramme ---- */
.vb-org-level { display: grid; gap: 12px; }
.vb-org-level--duo { grid-template-columns: repeat(2, 1fr); }
.vb-org-level--row { grid-template-columns: repeat(4, 1fr); }
.vb-node {
  padding: 14px 16px; border: 2px solid var(--navy); border-radius: var(--radius);
  background: #fff; font-size: 16px; line-height: 1.35;
}
.vb-node strong { display: block; font-family: var(--font-title); font-weight: 800; letter-spacing: -0.01em; }
.vb-node span { color: var(--grey); font-size: 15px; }
.vb-node--top { background: var(--navy); color: var(--off); }
.vb-node--top span { color: rgba(245, 243, 238, .78); }
.vb-node--small { padding: 12px 14px; font-size: 15px; text-align: center; }
.vb-org-link { display: block; width: 4px; height: 26px; margin: 0 auto; border-radius: 2px; background: var(--green); }

/* ---- 4. Bandeau de chiffres ---- */
.vb-stats { display: grid; gap: 10px; grid-template-columns: repeat(5, 1fr); }
.vb-stat {
  padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.vb-stat-value { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1; letter-spacing: -0.02em; }
.vb-stat-label { margin: 8px 0 0; color: var(--grey); font-size: 15px; line-height: 1.35; }

/* ---- 5. Le pari ---- */
.vb-bet { padding: clamp(22px, 3.4vw, 32px); border: 2px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: var(--off); }
.vb-bet .vb-fig-title { color: var(--off); }
.vb-gauge-track {
  position: relative; height: 22px; border-radius: 11px;
  background: rgba(245, 243, 238, .12); border: 1px solid rgba(245, 243, 238, .28);
  overflow: hidden;
}
.vb-gauge-fill { display: block; width: 1%; min-width: 10px; height: 100%; background: var(--green); }
.vb-gauge-scale { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 14px; color: rgba(245, 243, 238, .75); }
.vb-bet-legend { margin: 16px 0 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.2; letter-spacing: -0.01em; }

/* Les visuels vivent dans la colonne de lecture : neutraliser la marge des <p> du corps. */
.article-body .vb-fig p, .article-body .vb-take p { margin-bottom: 0; }
.article-body .vb-fig-title { margin-bottom: 18px; }
.article-body .vb-take + .vb-take { margin-top: 14px; }

/* ---- Encadrés « ce que j'en retiens » ---- */
.vb-take { margin: 0 0 14px; padding: 18px 20px; border-left: 4px solid var(--green); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.vb-take:last-of-type { margin-bottom: 0; }
.vb-take p { margin: 0; }

/* Reprise du texte après un visuel. */
.article-body .vb-fig + p, .article-body .vb-take + p { margin-top: clamp(32px, 5vw, 52px); }

/* ---- Fin d'article ---- */
.vb-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: clamp(32px, 5vw, 48px) 0 0; }
.vb-signature { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--grey); font-size: 16px; }

/* ---- Téléphone (390 px) : une colonne, aucun débordement ---- */
@media (max-width: 760px) {
  .vb-split-grid { grid-template-columns: 1fr; }
  .vb-arrow { justify-self: center; transform: rotate(90deg); }
  .vb-org-level--row { grid-template-columns: repeat(2, 1fr); }
  .vb-stats { grid-template-columns: repeat(2, 1fr); }
  .vb-stats .vb-stat:first-child { grid-column: 1 / -1; }
  .vb-org-link { height: 18px; }
  .vb-actions .btn { width: 100%; }
}
@media (max-width: 430px) {
  /* Les deux rôles de pilotage et les chiffres passent en pleine largeur ;
     les huit agents restent sur deux colonnes, leurs libellés sont courts. */
  .vb-org-level--duo, .vb-stats { grid-template-columns: 1fr; }
  .vb-node--small { padding: 11px 10px; font-size: 14px; }
}
