/* Connecteur WooCommerce ERP : compléments propres à la page (préfixe b-con-). */

/* Hero : carte des deux sens d'échange */
.b-con-visual { padding-bottom: 120px; }
.b-con-dir { position: absolute; left: 0; bottom: 0; width: min(430px, 82%); padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -18px #11182059, 0 0 0 1px #1118200d; }
.b-con-dir-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.b-con-dir-head em { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-style: normal; font-weight: 500; white-space: nowrap; }
.b-con-dir-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b-con-dir-cols > div { display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: 12px; background: var(--blue-soft); }
.b-con-dir-cols > .b-con-back { background: var(--paper); }
.b-con-dir-cols small { color: var(--blue); font-size: 12.5px; font-weight: 600; }
.b-con-dir-cols .b-con-back small { color: #1f7a4d; }
.b-con-dir-cols b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.25; }
.b-con-f3 { bottom: 150px; }

/* Ressaisie + fonctionnement */
.b-con-side { gap: 16px; }
.b-con-side > p { font-size: 16px; }
.b-con-tiles { margin: 4px 0; }
.b-con-tiles .b-tile b { font-size: clamp(26px, 2.4vw, 34px); }
.b-con-tiles .b-tile:last-child { background: #fff; box-shadow: 0 0 0 1px #1118200d; }
.b-con-how { display: grid; gap: 12px; }
.b-con-how-head { display: grid; gap: 16px; margin-bottom: 6px; }
.b-con-how-head h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; }
.b-con-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.b-con-flow span { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #1118200d; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.2; }
.b-con-flow span small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.b-con-flow span.hl { background: var(--blue); color: #fff; }
.b-con-flow span.hl small { color: #dfe3ff; }
.b-con-flow span.ok small { color: #1f7a4d; }
.b-con-flow i { color: var(--muted); font-style: normal; }
.b-con-card { padding: 24px 26px; }
.b-con-card p { font-size: 15.5px; }
.b-con-way { display: inline-block; margin: 0 0 10px !important; padding: 4px 10px; border-radius: 7px; background: var(--blue-soft); color: var(--blue) !important; font-size: 13px !important; font-weight: 600; }
.b-con-card-back .b-con-way { background: #e5f3ec; color: #1f7a4d !important; }

/* Comparatif des trois projets : rubriques alignées */
.b-con-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto auto auto; column-gap: 16px; }
.b-con-case { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding: 18px 18px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #1118200d; }
.b-con-img { aspect-ratio: 16 / 10; border-radius: 12px; box-shadow: 0 0 0 1px #1118200f; }
.b-con-img img { height: 100%; object-fit: cover; object-position: top left; }
.b-con-case-title { display: grid; align-content: start; gap: 6px; padding: 18px 4px 14px; }
.b-con-name { color: var(--blue); font-size: 14px; font-weight: 600; }
.b-con-case-title h3 { font-size: 21px; line-height: 1.2; }
.b-con-rub { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; margin: 0; }
.b-con-rub > div { padding: 14px 4px; border-top: 1px solid var(--line); }
.b-con-rub dt { margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.b-con-rub dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.b-con-rub > div:last-child { border-radius: 10px; border-top-color: transparent; background: var(--paper); padding: 14px 12px; }
.b-con-case > .b-link { align-self: end; padding: 14px 4px 0; }

/* Suivi */
.b-con-suivi { display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 11fr); align-items: start; gap: clamp(28px, 4vw, 56px); }
.b-con-suivi-head { display: grid; gap: 24px; }
.b-con-suivi-copy { display: grid; gap: 14px; }
.b-con-suivi-copy p { margin: 0; font-size: 16px; }

/* Plugin ou sur mesure */
.b-con-plug { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.b-con-plug-main { background: var(--ink); }
.b-con-plug-main h3 { color: #fff; }
.b-con-plug-main p { color: #d6dce2; }

@media (max-width: 980px) {
  .b-con-cmp { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
  .b-con-case, .b-con-rub { grid-row: auto; grid-template-rows: none; }
  .b-con-suivi, .b-con-plug { grid-template-columns: minmax(0, 1fr); }
  .b-con-visual { padding-bottom: 130px; }
  .b-con-f3 { bottom: 140px; }
}
@media (max-width: 600px) {
  .b-con-dir { width: 100%; }
  .b-con-dir-head { flex-wrap: wrap; }
  .b-con-f3 { display: none; }
  .b-con-card { padding: 20px; }
}
.b-con-hero .b-hero-copy h1.b-title { font-size: clamp(34px, 3.2vw, 46px); }
.b-con-hero .b-hero-copy .b-title .b-sub { font-size: .62em; }
.b-con-side .b-h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; }
.b-con-how-head h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; }
@media (max-width: 600px) {
  .b-con-visual { padding-bottom: 20px; }
  .b-con-dir { position: relative; width: auto; margin: -36px 0 0 10px; }
}
/* Mobile : la carte des deux sens passe sous la capture au lieu de la couvrir. */
@media (max-width: 600px) {
  .b-con-dir { position: relative; inset: auto; width: auto; margin: 14px 0 0; transform: none; }
  .b-con-visual .b-float:not(.b-con-dir) { display: none; }
}
