/* Brand discovery form (/outils/formulaire-decouverte-marque), loaded after tools.css */
.bf-app { max-width: 920px; margin: 0 auto; }
.bf-card, .bf-report { background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -45px rgba(17, 17, 17, .35); padding: clamp(18px, 3vw, 34px); display: grid; gap: 16px; }
.bf-h2 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; margin: 0; line-height: 1.25; }
.bf-h3 { font-size: 17px; font-weight: 700; margin: 0; }
.bf-muted { color: var(--muted); margin: 0; line-height: 1.5; }
.bf-link { background: none; border: 0; padding: 8px 4px; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 44px; }
.bf-link:hover { color: var(--red); }

/* who fills it */
.bf-who { display: grid; gap: 16px; }
.bf-who__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bf-who__c { display: grid; gap: 6px; text-align: start; padding: 24px; border-radius: 22px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.bf-who__c b { font-size: 20px; font-weight: 800; }
.bf-who__c span { color: var(--muted); line-height: 1.5; }
.bf-who__c:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--red), 0 24px 50px -28px rgba(17, 17, 17, .4); }
.bf-who__c:first-child { background: var(--red); color: #fff; box-shadow: none; }
.bf-who__c:first-child span { color: rgba(255, 255, 255, .88); }
@media (max-width: 640px) { .bf-who__cards { grid-template-columns: 1fr; } }

.bf-from { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FFF1F1; line-height: 1.5; }
.bf-from b { color: var(--red); }
.bf-linkbox { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }

/* progress */
.bf-prog { display: grid; gap: 8px; }
.bf-prog__top { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.bf-prog__bar { height: 8px; border-radius: 99px; background: #F1EEE9; overflow: hidden; }
.bf-prog__bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .4s var(--ease); }
.bf-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-dots button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F1EEE9; font-weight: 700; font-size: 13px; cursor: pointer; }
.bf-dots button.on { background: var(--ink); color: #fff; }

/* questions */
.bf-q { border: 0; margin: 0; padding: 16px 0 4px; border-top: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.bf-q legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 17px; line-height: 1.35; }
[dir="rtl"] .bf-q legend { float: right; }
.bf-q__hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.bf-q__img { width: 100%; max-width: 560px; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.bf-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bf-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px; border-radius: 14px; background: #F7F5F2; cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.35; transition: background .2s, box-shadow .2s; }
.bf-opt:hover { background: #EFEBE5; }
.bf-opt input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin: 0; }
.bf-opt small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.bf-opt.on { background: #FFF1F1; box-shadow: inset 0 0 0 1.5px var(--red); }
.bf-opt__txt { grid-column: 1 / -1; }
.bf-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.bf-nav .tbtn--red { margin-inline-start: auto; }
@media (max-width: 480px) {
  .bf-opts { grid-template-columns: 1fr; }
  .bf-nav .tbtn { flex: 1 1 40%; }
  .bf-nav .bf-link { order: 3; width: 100%; }
}

/* report */
.bf-rhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bf-rhead h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 4px 0 6px; line-height: 1.15; overflow-wrap: anywhere; }
.bf-rinfo { margin: 0; display: grid; gap: 6px; background: #F7F5F2; border-radius: 16px; padding: 14px 16px; }
.bf-rinfo div { display: flex; gap: 10px; justify-content: space-between; font-size: 14.5px; }
.bf-rinfo dt { color: var(--muted); }
.bf-rinfo dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
@media (max-width: 700px) { .bf-rhead { grid-template-columns: 1fr; } }
.bf-actions { display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: #FBFAF8; box-shadow: 0 0 0 1px var(--line); }
.bf-send { display: grid; gap: 10px; }
.bf-rsec { display: grid; gap: 0; }
.bf-rsec h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin: 10px 0 4px; }
html[lang="ar"] .bf-rsec h3 { letter-spacing: 0; }
.bf-rq { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.bf-rq__q { margin: 0; font-weight: 600; font-size: 14.5px; }
.bf-rq__a { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chip { display: inline-block; padding: 5px 11px; border-radius: 99px; background: #FFF1F1; color: #7a0000; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bf-none { color: #b3aca3; font-size: 14px; font-style: italic; }
.bf-rq.empty .bf-rq__q { color: var(--muted); }
@media (max-width: 560px) { .bf-rq { grid-template-columns: 1fr; gap: 6px; } }
.bf-foot { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 0; }

@media print {
  .noprint, .bh, .bf, .ctaband, .tdoc, .ttoast, .nl-band, [class*="nlpop"] { display: none !important; }
  .printonly { display: block !important; }
  body { background: #fff !important; }
  .bf-app { max-width: none; }
  .bf-report { box-shadow: none; padding: 0; gap: 8px; }
  .bf-chip { background: none; color: #000; box-shadow: inset 0 0 0 1px #c9c2b8; }
  .bf-rinfo { background: none; box-shadow: inset 0 0 0 1px #ddd; }
  @page { size: A4; margin: 14mm; }
}
