/* === BfastAI — Pages de lecture : articles de blog et études de cas ==========
   Partagé par les pages blog-*.html et realisation-*.html. Lié depuis le
   <helmet>, juste après le bloc du design system : le runtime x-dc reporte ce
   <link> dans le <head> à la même place, l'ordre de la cascade ne change donc
   pas (les règles body / a ci-dessous passent toujours après celles du design
   system). Une règle propre à un seul article reste dans un <style> de sa page.
   ============================================================================ */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background-color: #0A0A0F;
  color: #FFFCF8;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* La colonne de lecture. 760px : au-dela, l'oeil perd la ligne suivante. */
.bf-article { max-width: 760px; margin: 0 auto; padding: 28px 24px 8px; }
/* Une ancre (a-propos#rayane-tchakiguewe) amène son titre sous la nav sticky,
   qui le recouvrirait : on garde la hauteur de la nav et un peu d'air. */
.bf-article [id] { scroll-margin-top: 104px; }

.bf-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255,252,248,0.55);
  transition: color 0.25s ease;
}
.bf-back:hover { color: #FFFCF8; }

.bf-eyebrow {
  display: inline-flex; align-items: center;
  padding: 5px 13px; margin: 22px 0 18px;
  border-radius: 999px;
  background: rgba(255,252,248,0.08);
  border: 1px solid rgba(255,252,248,0.10);
  color: rgba(255,252,248,0.80);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}

.bf-article h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  color: #FFFCF8;
}

.bf-lead {
  margin: 0;
  font-size: 16.5px; line-height: 1.65;
  color: rgba(255,252,248,0.60);
}

/* Sous le chapeau : la signature à gauche, la date et la durée de lecture à
   droite, qui passent dessous quand la colonne est étroite. */
.bf-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px;
  margin: 20px 0 30px; padding-top: 18px;
  border-top: 1px solid rgba(255,252,248,0.08);
  font-size: 12.5px; color: rgba(255,252,248,0.40);
}

/* Signature de l'auteur (E-E-A-T) : renvoie à la page À propos. Les initiales
   tiennent lieu de photo tant qu'il n'y en a pas. */
.bf-byline { display: inline-flex; align-items: center; gap: 12px; }
.bf-byline__avatar {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.55), rgba(106,47,216,0.30));
  border: 1px solid rgba(163,123,255,0.45);
  color: #FFFCF8; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.bf-byline__who { display: flex; flex-direction: column; line-height: 1.35; }
.bf-byline__name { font-size: 14px; font-weight: 600; color: #FFFCF8; transition: color 0.2s ease; }
.bf-byline__role { font-size: 12.5px; color: rgba(255,252,248,0.55); }
.bf-byline:hover .bf-byline__name { color: #A37BFF; }
.bf-byline:focus-visible { outline: 2px solid #A37BFF; outline-offset: 4px; border-radius: 999px; }

/* Page À propos : la carte du dirigeant reprend la signature, en plus grand. */
.bf-person {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 18px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255,252,248,0.04); border: 1px solid rgba(255,252,248,0.09);
}
.bf-person__avatar { width: 52px; height: 52px; font-size: 17px; }
.bf-person .bf-byline__name { font-size: 16px; }
.bf-person .bf-byline__role { font-size: 13.5px; }

/* Les deux visuels occupent toute la largeur de la colonne de lecture.
   Le degrade et le ratio tiennent la place tant que la photo n'est pas
   posee dans assets/blog/ : la mise en page ne bouge pas a l'arrivee du
   fichier, seul le fond est recouvert. */
.bf-fig {
  position: relative;
  margin: 34px 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(139,92,246,0.20), rgba(139,92,246,0.04));
  border: 1px solid rgba(255,252,248,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,252,248,0.08);
}
.bf-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-fig::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 28px; text-align: center;
  font-size: 13px; letter-spacing: 0.03em;
  color: rgba(255,252,248,0.32);
  pointer-events: none;
}
.bf-fig.has-img::after { content: none; }

.bf-article h2 {
  margin: 42px 0 16px;
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.25;
  color: #FFFCF8;
}

.bf-article p {
  margin: 0 0 18px;
  font-size: 15.5px; line-height: 1.75;
  color: rgba(255,252,248,0.75);
}
.bf-article p:last-child { margin-bottom: 0; }

.bf-article ul { margin: 0; padding: 0; list-style: none; }
.bf-article ul li {
  position: relative;
  margin-bottom: 14px; padding-left: 22px;
  font-size: 15.5px; line-height: 1.75;
  color: rgba(255,252,248,0.75);
}
.bf-article ul li:last-child { margin-bottom: 0; }
.bf-article ul li::before {
  content: ""; position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #A37BFF;
}
.bf-article ul li strong { color: #FFFCF8; font-weight: 600; }

.bf-article h3 {
  margin: 30px 0 12px;
  font-size: clamp(17px, 2.2vw, 19.5px);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.35;
  color: #FFFCF8;
}

/* Phrases appuyees sur une etude ou un texte de loi (et, dans une etude de cas,
   lien vers le site du client) : soulignees, le lien ouvre dans un nouvel onglet. */
.bf-article a.bf-ref {
  text-decoration: underline;
  text-decoration-color: rgba(163,123,255,0.75);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.bf-article a.bf-ref:hover { color: #FFFCF8; text-decoration-color: #A37BFF; }
.bf-article a.bf-ref:focus-visible { outline: 2px solid #A37BFF; outline-offset: 2px; border-radius: 3px; }

.bf-sources { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,252,248,0.08); }
.bf-article .bf-sources h2 { margin: 0 0 14px; font-size: 16px; letter-spacing: 0; }
.bf-sources ol { margin: 0; padding-left: 20px; }
.bf-sources li {
  margin-bottom: 8px;
  font-size: 13.5px; line-height: 1.6;
  color: rgba(255,252,248,0.55);
}
.bf-sources li::marker { color: rgba(163,123,255,0.8); }

/* À lire aussi : trois liens vers des pages voisines (articles, études de cas),
   en fin de colonne. Écrits en dur dans le HTML et non rendus en JS : c'est ce
   qui relie les pages entre elles pour les robots qui n'exécutent pas le
   JavaScript. Les puces et le retrait des listes d'article sont neutralisés. */
.bf-related { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,252,248,0.08); }
.bf-article .bf-related h2 { margin: 0 0 16px; font-size: 16px; letter-spacing: 0; }
.bf-article .bf-related ul { display: grid; gap: 12px; }
.bf-article .bf-related li { margin: 0; padding: 0; }
.bf-article .bf-related li::before { content: none; }
.bf-related a {
  display: block; padding: 16px 18px; border-radius: 16px;
  background: rgba(255,252,248,0.04); border: 1px solid rgba(255,252,248,0.09);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.bf-related a:hover { border-color: rgba(163,123,255,0.45); background-color: rgba(139,92,246,0.07); }
.bf-related a:focus-visible { outline: 2px solid #A37BFF; outline-offset: 2px; }
.bf-related__kind {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #A37BFF;
}
.bf-related__title { display: block; margin-top: 6px; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: #FFFCF8; }
.bf-related__desc { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: rgba(255,252,248,0.55); }

/* Le composant Card reecrit entierement son attribut style : le text-align pose
   sur le <x-import> n'atteint jamais son div interne (le host, lui, est en
   display:contents). On centre donc depuis une regle CSS, que le composant
   n'ecrase pas puisqu'il ne pose pas text-align en inline. */
.bf-cta > .sc-host-x > div{ text-align:center; }

.bf-cta-title {
  max-width: none;
  font-size: clamp(26px, calc((100vw - 130px) / 15.9), 56px);
}

/* === Étude de cas : chiffres clés et citation du client ======================
   Le reste (colonne, titres, listes, liens .bf-ref) vient des styles d'article. */
.bf-kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:32px 0 8px; }
.bf-kpi{
  padding:18px 14px; border-radius:16px; text-align:center;
  background:rgba(255,252,248,0.04); border:1px solid rgba(255,252,248,0.09);
  box-shadow:var(--inner-highlight);
}
.bf-kpi strong{
  display:block; font-family:'JetBrains Mono',monospace;
  font-size:clamp(22px,3.4vw,30px); font-weight:700; line-height:1.15; color:#A37BFF;
}
.bf-kpi span{ display:block; margin-top:6px; font-size:12.5px; line-height:1.4; color:rgba(255,252,248,0.60); }
.bf-quote{
  margin:36px 0 0; padding:26px 26px 22px; border-radius:18px;
  background:linear-gradient(160deg,rgba(139,92,246,0.14),rgba(139,92,246,0.04));
  border:1px solid rgba(163,123,255,0.30);
}
.bf-quote blockquote{ margin:0; }
.bf-article .bf-quote p{ margin:0; font-size:16px; line-height:1.7; font-style:italic; color:#FFFCF8; }
.bf-quote figcaption{ margin-top:14px; font-size:13px; color:rgba(255,252,248,0.55); }
@media (max-width:560px){ .bf-kpis{ grid-template-columns:1fr; } }
