/**
 * BlueVisa - Composeur en briques des pages Services (LLC aux États-Unis, société à Maurice ; FR et EN)
 *
 * Le bloc .bvc est rempli par /scripts/services-composer.js : trois briques (création, conformité, comptabilité)
 * avec leurs options à l'intérieur, et un récapitulatif collant à droite. Styles autonomes (aucune classe Tailwind
 * dans le balisage généré, tailwind.css n'ayant pas à être recompilé). Couleurs et rayons du design system :
 * brand #06a0f7 (400 #33a7f7, 600 #0580c6), slate, dégradé cyan-500 → brand-600 sur les totaux ; jamais de vert (décision du 2026-09-15).
 */
.bvc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.bvc-bricks { display: grid; gap: 1rem; min-width: 0; }
.bvc-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; }

/* Brique */
.bvc-brick { border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.bvc-brick.is-on { border-color: #33a7f7; box-shadow: 0 0 0 1px #33a7f7; }
.bvc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.25rem 1.25rem 1rem; cursor: pointer; margin: 0; }
.bvc-head input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bvc-ck { width: 1.5rem; height: 1.5rem; border-radius: .4rem; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; color: #fff; background: #fff; flex: none; margin-top: .15rem; transition: background-color .15s, border-color .15s; }
.bvc-ck svg { opacity: 0; }
.bvc-brick.is-on .bvc-ck { background: #06a0f7; border-color: #06a0f7; }
.bvc-brick.is-on .bvc-ck svg { opacity: 1; }
.bvc-head:hover .bvc-ck { border-color: #66bdf9; }
.bvc-head:has(input:focus-visible) .bvc-ck { box-shadow: 0 0 0 3px rgba(6, 160, 247, .35); }
.bvc-head h3 { margin: .25rem 0 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; color: #0f172a; line-height: 1.3; }
.bvc-head p { margin: .25rem 0 0; font-size: .875rem; color: #64748b; line-height: 1.5; }
.bvc-price-col { text-align: right; flex: none; }
.bvc-price { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: #0f172a; white-space: nowrap; line-height: 1.2; }
.bvc-price small { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: .72rem; font-weight: 400; letter-spacing: 0; color: #64748b; }
.bvc-state { display: block; font-size: .75rem; color: #64748b; margin-top: .15rem; }
.bvc-brick.is-on .bvc-state { color: #0580c6; font-weight: 600; }
.bvc-body { padding: 0 1.25rem 1.25rem 3.75rem; transition: opacity .15s; }
.bvc-brick:not(.is-on) .bvc-body { opacity: .7; }
.bvc-body .bvc-eyebrow { margin-bottom: .5rem; }
.bvc-inc { display: grid; gap: .375rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bvc-inc li { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: #475569; line-height: 1.5; }
.bvc-inc svg { width: 1rem; height: 1rem; flex: none; margin-top: .15rem; color: #0473b3; }
.bvc-pill { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .35rem; padding: .2rem .6rem; border-radius: 9999px; font-family: 'Inter', system-ui, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: 0; background: #e6f4fe; color: #046094; white-space: nowrap; }

/* Options (cases) et paliers (boutons radio) à l'intérieur d'une brique */
.bvc-opts { display: grid; gap: .5rem; }
.bvc-opt { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .9rem; border-radius: .75rem; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; position: relative; margin: 0; transition: border-color .15s, background-color .15s; }
.bvc-opt:hover { border-color: #66bdf9; }
.bvc-opt.is-on { border-color: #33a7f7; background: rgba(230, 244, 254, .45); }
.bvc-brick:not(.is-on) .bvc-opt { border-style: dashed; }
.bvc-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bvc-box { width: 1.15rem; height: 1.15rem; border-radius: .3rem; border: 2px solid #cbd5e1; flex: none; margin-top: .15rem; display: flex; align-items: center; justify-content: center; color: #fff; background: #fff; transition: background-color .15s, border-color .15s; }
.bvc-box svg { opacity: 0; }
.bvc-opt.is-on .bvc-box { background: #06a0f7; border-color: #06a0f7; }
.bvc-opt.is-on .bvc-box svg { opacity: 1; }
.bvc-radio { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; margin-top: .2rem; background: #fff; position: relative; transition: border-color .15s; }
.bvc-opt.is-on .bvc-radio { border-color: #06a0f7; }
.bvc-opt.is-on .bvc-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #06a0f7; }
.bvc-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(6, 160, 247, .35); }
.bvc-opt-main { flex: 1; min-width: 0; }
.bvc-opt-row { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.bvc-opt-name { font-size: .875rem; font-weight: 600; color: #0f172a; line-height: 1.4; }
.bvc-opt-price { font-size: .875rem; font-weight: 700; color: #0f172a; white-space: nowrap; }
.bvc-opt-desc { display: block; font-size: .75rem; color: #64748b; margin-top: .15rem; line-height: 1.5; }

/* Bandeau de la remise gestion complète */
.bvc-deal { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-radius: 1rem; border: 1px dashed #99d3fb; background: #fff; color: #046094; transition: background-color .15s, box-shadow .15s; }
.bvc-deal.is-on { border: 2px solid #33a7f7; background: rgba(230, 244, 254, .45); box-shadow: 0 8px 30px rgba(4, 96, 148, .08); }
.bvc-deal-title { font-weight: 600; font-size: .9rem; }
.bvc-deal-text { font-size: .75rem; margin-top: .15rem; line-height: 1.5; }
.bvc-deal-amt { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.04em; white-space: nowrap; flex: none; }
.bvc-deal-amt small { font-family: 'Inter', system-ui, sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: 0; }

/* Récapitulatif (facture) */
.bvc-invoice { border: 1px solid #99d3fb; border-radius: 1rem; background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); padding: 1.5rem; }
.bvc-invoice > .bvc-eyebrow { margin-bottom: .75rem; }
.bvc-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px dashed #e2e8f0; font-size: .875rem; }
.bvc-row:first-child { border-top: 0; }
.bvc-row-main { min-width: 0; }
.bvc-row-name { color: #334155; font-weight: 500; }
.bvc-row-when { font-size: .75rem; color: #94a3b8; font-weight: 400; }
.bvc-row-sub { display: block; font-size: .75rem; color: #64748b; margin-top: .15rem; line-height: 1.4; }
.bvc-row-amt { font-weight: 600; color: #0f172a; white-space: nowrap; }
.bvc-row.is-deal { background: #e6f4fe; margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: .5rem; border-top: 0; color: #046094; font-weight: 600; }
.bvc-row.is-deal .bvc-row-name, .bvc-row.is-deal .bvc-row-amt { color: #046094; }
.bvc-totals { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; display: grid; gap: .75rem; }
.bvc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bvc-total-label { font-size: .875rem; font-weight: 600; color: #334155; }
.bvc-total-amt { text-align: right; white-space: nowrap; }
.bvc-grad { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.875rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; background-image: linear-gradient(90deg, #06b6d4, #0580c6); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bvc-grad--sm { font-size: 1.5rem; }
.bvc-total-sub { display: block; font-size: .75rem; color: #94a3b8; white-space: normal; }
.bvc-note { font-size: .72rem; color: #94a3b8; margin: .75rem 0 0; line-height: 1.5; }
.bvc-cta { display: inline-flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.25rem; padding: .875rem 1.5rem; border-radius: .75rem; background: #06a0f7; color: #fff; font-size: .95rem; font-weight: 600; text-decoration: none; box-shadow: 0 10px 25px -5px rgba(6, 160, 247, .3), 0 5px 10px -5px rgba(6, 160, 247, .2); transition: background-color .2s, transform .2s; }
.bvc-cta:hover { background: #0580c6; transform: translateY(-2px); }
.bvc-cta svg { width: 1rem; height: 1rem; }

@media (min-width: 640px) {
  .bvc-invoice { padding: 1.75rem; }
}
@media (min-width: 1024px) {
  .bvc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; }
  .bvc-invoice { position: sticky; top: 6rem; }
}
@media (max-width: 639px) {
  .bvc-head { grid-template-columns: auto minmax(0, 1fr); padding: 1rem 1rem .75rem; }
  .bvc-price-col { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: .5rem; }
  .bvc-price { font-size: 1.25rem; }
  .bvc-price small { display: inline; margin-right: .25rem; }
  .bvc-body { padding: 0 1rem 1rem 1rem; }
  .bvc-opt-row { flex-wrap: wrap; gap: .25rem .75rem; }
  .bvc-deal { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .bvc-brick, .bvc-ck, .bvc-opt, .bvc-box, .bvc-radio, .bvc-deal, .bvc-body, .bvc-cta { transition: none; }
  .bvc-cta:hover { transform: none; }
}

/* Page Comptabilité : sélecteur de structure, cartes d'offres, upsell conformité, récapitulatif */
.bvo { max-width: 64rem; margin: 0 auto; }
.bvo-seg { display: flex; justify-content: center; margin-bottom: 2rem; }
.bvo-seg > div { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: .75rem; background: rgba(226, 232, 240, .7); }
.bvo-seg button { padding: .55rem .9rem; border: 0; border-radius: .6rem; background: transparent; font: inherit; font-size: .875rem; font-weight: 600; color: #64748b; cursor: pointer; }
.bvo-seg button[aria-pressed="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.bvo-seg button:focus-visible { outline: 3px solid #0473b3; outline-offset: 2px; }
.bvo-cards { display: grid; gap: 1.5rem; align-items: stretch; }
.bvo-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bvo-card:hover { border-color: #a5d9f7; box-shadow: 0 14px 34px #0759850a; }
.bvo-card.is-pop { border: 2px solid #33a7f7; }
.bvo-card.is-sel { border: 2px solid #33a7f7; box-shadow: 0 0 0 4px rgba(6, 160, 247, .12); }
.bvo-card:focus-visible { outline: 3px solid #0473b3; outline-offset: 3px; }
.bvo-card h3 { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; color: #0f172a; }
.bvo-sub { margin: .25rem 0 0; min-height: 2.6rem; font-size: .875rem; color: #64748b; line-height: 1.5; }
.bvo-badge { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); padding: .35rem .8rem; border-radius: 9999px; background: #06a0f7; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 4px #fff; }
.bvo-price { margin: 1.25rem 0 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f1f5f9; }
.bvo-price .bvc-grad { font-size: 2.25rem; }
.bvo-price-year { display: block; margin-top: .25rem; font-size: .75rem; color: #64748b; }
.bvo-price { flex: 1; margin-bottom: 0; }
.bvo-pick { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .8rem; font-weight: 600; color: #64748b; }
.bvo-shared { max-width: 48rem; margin: 1.5rem auto 0; padding: 1.25rem 1.5rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.bvo-shared .bvc-eyebrow { margin-bottom: .6rem; }
.bvo-shared .bvc-inc { margin: 0; }
@media (min-width: 768px) { .bvo-shared .bvc-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }
.bvo-pick .bvc-radio { margin-top: 0; }
.bvo-card.is-sel .bvo-pick { color: #0580c6; }
.bvo-card.is-sel .bvo-pick .bvc-radio { border-color: #06a0f7; }
.bvo-card.is-sel .bvo-pick .bvc-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #06a0f7; }
.bvo-more { max-width: 48rem; margin: 1.5rem auto 0; }
.bvo-upsell { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border: 1px dashed #99d3fb; border-radius: 1.25rem; background: #fff; cursor: pointer; margin: 0; transition: border-color .15s, background-color .15s; }
.bvo-upsell:hover { border-color: #66bdf9; }
.bvo-upsell.is-on { border: 2px solid #33a7f7; background: rgba(230, 244, 254, .45); }
.bvo-upsell input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bvo-upsell:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(6, 160, 247, .35); }
.bvo-upsell .bvc-ck { margin-top: .15rem; }
.bvo-upsell.is-on .bvc-ck { background: #06a0f7; border-color: #06a0f7; }
.bvo-upsell.is-on .bvc-ck svg { opacity: 1; }
.bvo-up-main { flex: 1; min-width: 0; }
.bvo-up-head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.bvo-up-title { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; color: #0f172a; }
.bvo-up-pill { display: inline-flex; padding: .2rem .6rem; border-radius: 9999px; background: #e6f4fe; color: #046094; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.bvo-upsell.is-on .bvo-up-pill { background: #06a0f7; color: #fff; }
.bvo-up-desc { display: block; margin-top: .25rem; font-size: .875rem; color: #64748b; line-height: 1.5; }
.bvo-upsell .bvc-inc { margin: .75rem 0 0; }
.bvo-up-price { text-align: right; flex: none; }
.bvo-up-price .bvo-up-amt { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: #0f172a; white-space: nowrap; }
.bvo-up-year { display: block; font-size: .75rem; color: #64748b; }
.bvo-recap { margin-top: 1rem; padding: 1.25rem 1.5rem; border: 1px solid #99d3fb; border-radius: 1rem; background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.bvo-recap .bvc-totals { margin-top: .5rem; }
.bvo-foot { display: block; margin: 2rem auto 0; max-width: 42rem; text-align: center; font-size: .875rem; color: #64748b; line-height: 1.6; }
a.bvo-foot { text-decoration: none; }
a.bvo-foot:hover { color: #0580c6; }
@media (min-width: 768px) {
  .bvo-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; margin: 0 auto; }
  .bvo-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .bvo-seg > div { flex-wrap: wrap; justify-content: center; }
  .bvo-upsell { flex-wrap: wrap; }
  .bvo-up-price { width: 100%; text-align: left; padding-left: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .bvo-card, .bvo-upsell { transition: none; } }
