/* Page /cas-client-contenu-automatise : cas client anonymisé : un reel
 * Instagram devient un post LinkedIn et un article de blog.
 * Réutilise le design system (audit-hero, expertises-cases, ba-*, arch-*,
 * partners-cta-final) + blocs cc-* spécifiques (schéma reel → 2 sorties,
 * offre avant/maintenant). L'avis client passe par CaseQuote (style.css). */

/* === Bandeau KPI héro === */
.cc-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.cc-hero-kpi {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  background: rgba(var(--violet-rgb), 0.05);
}
.theme-light .cc-hero-kpi { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-hero-kpi-value,
.cc-kpi-value {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cc-hero-kpi-value { font-size: clamp(32px, 3.4vw, 46px); }
.cc-hero-kpi-label {
  font-family: var(--sans);
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.45; margin-top: 10px;
}

/* === Schéma : reel → post LinkedIn + article === */
.cc-split {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 80px 1fr;
  align-items: stretch;
  gap: 0 8px;
  margin-top: 8px;
}

/* Le reel (format téléphone) */
.cc-reel {
  align-self: center;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 14px;
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.30);
}
.theme-light .cc-reel { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 20px 50px rgba(0,0,0,0.10); }
.cc-reel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.cc-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF);
  box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px #DD2A7B;
}
.theme-light .cc-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #DD2A7B; }
.cc-reel-who { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cc-reel-video {
  position: relative;
  aspect-ratio: 9 / 13;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 30% 20%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(160deg, #F8B26A 0%, #E86A8E 45%, #7B5CF0 100%);
  display: flex; align-items: center; justify-content: center;
}
.cc-reel-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #fff; background: rgba(0,0,0,0.28);
  padding: 4px 8px; border-radius: 999px;
}
.cc-reel-play {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.cc-reel-time {
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--mono); font-size: 10.5px; color: #fff;
  background: rgba(0,0,0,0.28); padding: 3px 7px; border-radius: 6px;
}
.cc-reel-caption {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  line-height: 1.45; margin-top: 12px;
}
.cc-source-tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 10.5px; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* La fourche */
.cc-fork { position: relative; min-height: 240px; }
.cc-fork svg { position: absolute; inset: 0; }
.cc-fork svg { width: 100%; height: 100%; display: block; }
.cc-fork-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--mono); font-size: 10px; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap;
  background: var(--bg); padding: 2px 6px;
}
.theme-light .cc-fork-label { background: var(--bg); }
.cc-fork-mobile { display: none; }

/* Les deux sorties */
.cc-outputs { display: flex; flex-direction: column; gap: 14px; }
.cc-out {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}
.theme-light .cc-out { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.cc-out-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.cc-out-chip {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 13px; color: #fff;
}
.cc-chip-li { background: #0A66C2; }
.cc-chip-wp { background: #21759B; border-radius: 50%; font-family: Georgia, serif; }
.cc-out-title { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); }
.cc-out-meta {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cc-li-body { padding: 14px 16px 16px; }
.cc-li-body p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cc-li-body p + p { margin-top: 8px; }
.cc-li-body .cc-li-hook { color: var(--ink); font-weight: 700; font-size: 14.5px; }
.cc-li-body .cc-li-tags { color: #0A66C2; font-size: 12.5px; }
.theme-violet .cc-li-body .cc-li-tags,
.theme-cyber .cc-li-body .cc-li-tags,
.theme-mono .cc-li-body .cc-li-tags { color: var(--cyan); }

.cc-blog-body { padding: 14px 16px 16px; }
.cc-blog-cat {
  font-family: var(--mono); font-size: 10.5px; color: var(--violet-2);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.cc-blog-title {
  font-family: var(--serif, Georgia, serif); font-size: 23px; line-height: 1.15;
  color: var(--ink); margin: 6px 0 8px; font-weight: 400;
}
.cc-blog-chapo { font-family: var(--sans); font-size: 13.5px; font-style: italic; color: var(--ink-2); line-height: 1.5; }
.cc-blog-h2 { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-blog-h2 li { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cc-blog-h2 li span {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: var(--mute);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 4px;
}
.cc-blog-link { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 12.5px; color: var(--violet-2); font-weight: 600; }

.cc-demo-note {
  font-family: var(--mono); font-size: 11.5px; color: var(--mute);
  line-height: 1.5; margin-top: 18px;
}

/* === Offre : avant / maintenant === */
.cc-offer {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 8px;
}
.cc-offer-card {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 24px; background: var(--surface);
}
.theme-light .cc-offer-card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-offer-after {
  border-color: rgba(var(--violet-rgb), 0.45);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.10), rgba(var(--cyan-rgb), 0.06));
}
.theme-light .cc-offer-after {
  border-color: rgba(var(--violet-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.07), rgba(var(--cyan-rgb), 0.05));
}
.cc-offer-tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); }
.cc-offer-after .cc-offer-tag { color: var(--cyan); }
.cc-offer-card h3 { font-family: var(--sans); font-size: 19px; font-weight: 800; color: var(--ink); margin: 8px 0 14px; letter-spacing: -0.01em; }
.cc-offer-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cc-offer-card li { font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); line-height: 1.4; display: flex; gap: 9px; align-items: flex-start; }
.cc-offer-before li { color: var(--mute); }
.cc-offer-before li::before { content: "·"; font-weight: 800; }
.cc-offer-card li svg { flex-shrink: 0; margin-top: 2px; }
.cc-offer-arrow { display: flex; align-items: center; color: var(--violet-2); font-size: 26px; font-weight: 700; }

/* Les 4 étapes en 2 x 2 plutôt qu'en 3 + 1 */
.contenu-auto-page .expertises-cases-grid { grid-template-columns: repeat(2, 1fr); }

/* Lien dans un paragraphe d'introduction */
.contenu-auto-page .expertises-cases-lead a { color: var(--violet-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* === KPI de résultats === */
.cc-kpis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cc-kpi {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px; background: var(--surface);
}
.theme-light .cc-kpi { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-kpi-value { font-size: clamp(30px, 3vw, 42px); }
.cc-kpi-label { font-family: var(--sans); font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-top: 12px; }

/* === Bénéfices === */
.cc-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cc-benefit {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; background: var(--surface);
}
.theme-light .cc-benefit { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-benefit svg { flex-shrink: 0; margin-top: 2px; }
.cc-benefit h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.cc-benefit p { font-family: var(--sans); font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* Responsive */
@media (max-width: 1000px) {
  .cc-hero-kpis { grid-template-columns: 1fr; }
  .cc-kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .contenu-auto-page .expertises-cases-grid { grid-template-columns: 1fr; }
  .cc-split { grid-template-columns: 1fr; gap: 14px; }
  .cc-reel { max-width: 260px; width: 100%; justify-self: center; }
  .cc-reel-video { aspect-ratio: 4 / 5; }
  .cc-fork { display: none; }
  .cc-fork-mobile {
    display: block; text-align: center;
    font-family: var(--mono); font-size: 11px; color: var(--cyan);
    text-transform: uppercase; letter-spacing: 0.14em;
  }
  .cc-offer { grid-template-columns: 1fr; }
  .cc-offer-arrow { justify-content: center; transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .cc-kpis-grid { grid-template-columns: 1fr; }
  .cc-out-meta { display: none; }
}
